/** * <code>optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;</code> */ public Builder setRtcConfigurationCommand( com.openxc.BinaryMessages.RTCConfigurationCommand.Builder builderForValue) { if (rtcConfigurationCommandBuilder_ == null) { rtcConfigurationCommand_ = builderForValue.build(); onChanged(); } else { rtcConfigurationCommandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /**
subBuilder.mergeFrom(rtcConfigurationCommand_); rtcConfigurationCommand_ = subBuilder.buildPartial();
/** * <code>optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;</code> */ public Builder mergeRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) { if (rtcConfigurationCommandBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && rtcConfigurationCommand_ != null && rtcConfigurationCommand_ != com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) { rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder(rtcConfigurationCommand_).mergeFrom(value).buildPartial(); } else { rtcConfigurationCommand_ = value; } onChanged(); } else { rtcConfigurationCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openxc.BinaryMessages.RTCConfigurationCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openxc.BinaryMessages.RTCConfigurationCommand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
/** * <code>optional uint32 unix_time = 1;</code> */ public Builder setUnixTime(int value) { bitField0_ |= 0x00000001; unixTime_ = value; onChanged(); return this; } /**
public static Builder newBuilder(com.openxc.BinaryMessages.RTCConfigurationCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openxc.BinaryMessages.RTCConfigurationCommand) { return mergeFrom((com.openxc.BinaryMessages.RTCConfigurationCommand)other); } else { super.mergeFrom(other); return this; } }
/** * <code>optional uint32 unix_time = 1;</code> */ public Builder clearUnixTime() { bitField0_ = (bitField0_ & ~0x00000001); unixTime_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
public Builder mergeFrom(com.openxc.BinaryMessages.RTCConfigurationCommand other) { if (other == com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) return this; if (other.hasUnixTime()) { setUnixTime(other.getUnixTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public com.openxc.BinaryMessages.RTCConfigurationCommand build() { com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public com.openxc.BinaryMessages.RTCConfigurationCommand buildPartial() { com.openxc.BinaryMessages.RTCConfigurationCommand result = new com.openxc.BinaryMessages.RTCConfigurationCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.unixTime_ = unixTime_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }