/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public Builder setPassthroughModeRequest( com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) { if (passthroughModeRequestBuilder_ == null) { passthroughModeRequest_ = builderForValue.build(); onChanged(); } else { passthroughModeRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
subBuilder.mergeFrom(passthroughModeRequest_); passthroughModeRequest_ = subBuilder.buildPartial();
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) { if (passthroughModeRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && passthroughModeRequest_ != null && passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) { passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial(); } else { passthroughModeRequest_ = value; } onChanged(); } else { passthroughModeRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openxc.BinaryMessages.PassthroughModeControlCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openxc.BinaryMessages.PassthroughModeControlCommand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() { com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(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.enabled_ = enabled_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) { return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other); } else { super.mergeFrom(other); return this; } }
/** * <code>optional int32 bus = 1;</code> */ public Builder clearBus() { bitField0_ = (bitField0_ & ~0x00000001); bus_ = 0; onChanged(); return this; }
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; } /**
public com.openxc.BinaryMessages.PassthroughModeControlCommand build() { com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>optional bool enabled = 2;</code> */ public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000002); enabled_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bool enabled = 2;</code> */ public Builder setEnabled(boolean value) { bitField0_ |= 0x00000002; enabled_ = value; onChanged(); return this; } /**
/** * <code>optional int32 bus = 1;</code> */ public Builder setBus(int value) { bitField0_ |= 0x00000001; bus_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) { if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasEnabled()) { setEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }