/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public Builder setPayloadFormatCommand( com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) { if (payloadFormatCommandBuilder_ == null) { payloadFormatCommand_ = builderForValue.build(); onChanged(); } else { payloadFormatCommandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
subBuilder.mergeFrom(payloadFormatCommand_); payloadFormatCommand_ = subBuilder.buildPartial();
/** * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code> */ public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; format_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) { if (payloadFormatCommandBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && payloadFormatCommand_ != null && payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) { payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial(); } else { payloadFormatCommand_ = value; } onChanged(); } else { payloadFormatCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openxc.BinaryMessages.PayloadFormatCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openxc.BinaryMessages.PayloadFormatCommand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) { return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other); } else { super.mergeFrom(other); return this; } }
public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public com.openxc.BinaryMessages.PayloadFormatCommand build() { com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
/** * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code> */ public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000001); format_ = 1; onChanged(); return this; } public final Builder setUnknownFields(
public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() { com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.format_ = format_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) { if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this; if (other.hasFormat()) { setFormat(other.getFormat()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }