/** * <code>required string identifier = 1;</code> */ public Builder setIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; identifier_ = value; onChanged(); return this; }
/** * <code>required .State state = 2;</code> */ public Builder setState(com.microsoft.reef.proto.ReefServiceProtos.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; state_ = value; onChanged(); return this; } /**
/** * <code>optional string diagnostics = 3;</code> */ public Builder setDiagnosticsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; diagnostics_ = value; onChanged(); return this; }
public Builder mergeFrom(com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceStatusProto other) { if (other == com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceStatusProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasDiagnostics()) { bitField0_ |= 0x00000004; diagnostics_ = other.diagnostics_; onChanged(); } if (other.hasExitCode()) { setExitCode(other.getExitCode()); } if (other.hasIsFromPreviousDriver()) { setIsFromPreviousDriver(other.getIsFromPreviousDriver()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional string diagnostics = 3;</code> */ public Builder setDiagnostics( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; diagnostics_ = value; onChanged(); return this; } /**
/** * <code>required string identifier = 1;</code> */ public Builder setIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; identifier_ = value; onChanged(); return this; } /**
/** * <code>optional string diagnostics = 3;</code> */ public Builder clearDiagnostics() { bitField0_ = (bitField0_ & ~0x00000004); diagnostics_ = getDefaultInstance().getDiagnostics(); onChanged(); return this; } /**
/** * <code>required .State state = 2;</code> */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = com.microsoft.reef.proto.ReefServiceProtos.State.INIT; onChanged(); return this; }
/** * <code>optional int32 exit_code = 4;</code> */ public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000008); exitCode_ = 0; onChanged(); return this; }
/** * <code>optional bool is_from_previous_driver = 5;</code> */ public Builder clearIsFromPreviousDriver() { bitField0_ = (bitField0_ & ~0x00000010); isFromPreviousDriver_ = false; onChanged(); return this; }
/** * <code>optional bool is_from_previous_driver = 5;</code> */ public Builder setIsFromPreviousDriver(boolean value) { bitField0_ |= 0x00000010; isFromPreviousDriver_ = value; onChanged(); return this; } /**
/** * <code>required string identifier = 1;</code> */ public Builder clearIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); identifier_ = getDefaultInstance().getIdentifier(); onChanged(); return this; } /**
/** * <code>optional int32 exit_code = 4;</code> */ public Builder setExitCode(int value) { bitField0_ |= 0x00000008; exitCode_ = value; onChanged(); return this; } /**