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