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_;
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; } }
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 toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); }
public static Builder newBuilder(com.openxc.BinaryMessages.RTCConfigurationCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {