/** * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code> */ public Builder setPredefinedObd2RequestsCommand( com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) { if (predefinedObd2RequestsCommandBuilder_ == null) { predefinedObd2RequestsCommand_ = builderForValue.build(); onChanged(); } else { predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /**
subBuilder.mergeFrom(predefinedObd2RequestsCommand_); predefinedObd2RequestsCommand_ = subBuilder.buildPartial();
/** * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code> */ public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) { if (predefinedObd2RequestsCommandBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && predefinedObd2RequestsCommand_ != null && predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) { predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial(); } else { predefinedObd2RequestsCommand_ = value; } onChanged(); } else { predefinedObd2RequestsCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) 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.PredefinedObd2RequestsCommand) { return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other); } else { super.mergeFrom(other); return this; } }
public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() { com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.enabled_ = enabled_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>optional bool enabled = 1;</code> */ public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000001); enabled_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bool enabled = 1;</code> */ public Builder setEnabled(boolean value) { bitField0_ |= 0x00000001; enabled_ = value; onChanged(); return this; } /**
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() { com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) { if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this; if (other.hasEnabled()) { setEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }