/** * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code> */ public Builder setAcceptanceFilterBypassCommand( com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) { if (acceptanceFilterBypassCommandBuilder_ == null) { acceptanceFilterBypassCommand_ = builderForValue.build(); onChanged(); } else { acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
subBuilder.mergeFrom(acceptanceFilterBypassCommand_); acceptanceFilterBypassCommand_ = subBuilder.buildPartial();
/** * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code> */ public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) { if (acceptanceFilterBypassCommandBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && acceptanceFilterBypassCommand_ != null && acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) { acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial(); } else { acceptanceFilterBypassCommand_ = value; } onChanged(); } else { acceptanceFilterBypassCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() { com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bus_ = bus_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.bypass_ = bypass_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>optional bool bypass = 2;</code> */ public Builder clearBypass() { bitField0_ = (bitField0_ & ~0x00000002); bypass_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional int32 bus = 1;</code> */ public Builder clearBus() { bitField0_ = (bitField0_ & ~0x00000001); bus_ = 0; onChanged(); return this; }
/** * <code>optional int32 bus = 1;</code> */ public Builder setBus(int value) { bitField0_ |= 0x00000001; bus_ = value; onChanged(); return this; } /**
public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() { com.openxc.BinaryMessages.AcceptanceFilterBypassCommand 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 bool bypass = 2;</code> */ public Builder setBypass(boolean value) { bitField0_ |= 0x00000002; bypass_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) { if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasBypass()) { setBypass(other.getBypass()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) { return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other); } else { super.mergeFrom(other); return this; } }