public Builder mergeFrom(com.microsoft.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto other) { if (other == com.microsoft.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasError()) { mergeError(other.getError()); } if (other.hasOutstandingContainerRequests()) { setOutstandingContainerRequests(other.getOutstandingContainerRequests()); } if (!other.containerAllocation_.isEmpty()) { if (containerAllocation_.isEmpty()) { containerAllocation_ = other.containerAllocation_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureContainerAllocationIsMutable(); containerAllocation_.addAll(other.containerAllocation_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required string name = 1;</code> * * <pre> * e.g., local, yarn21 * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public com.microsoft.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto getDefaultInstanceForType() { return com.microsoft.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto.getDefaultInstance(); }