1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: openxc.proto
6 public final class BinaryMessages {
7 private BinaryMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface VehicleMessageOrBuilder extends
12 // @@protoc_insertion_point(interface_extends:openxc.VehicleMessage)
13 com.google.protobuf.MessageOrBuilder {
16 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
20 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
22 com.openxc.BinaryMessages.VehicleMessage.Type getType();
25 * <code>optional .openxc.CanMessage can_message = 2;</code>
27 boolean hasCanMessage();
29 * <code>optional .openxc.CanMessage can_message = 2;</code>
31 com.openxc.BinaryMessages.CanMessage getCanMessage();
33 * <code>optional .openxc.CanMessage can_message = 2;</code>
35 com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder();
38 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
40 boolean hasSimpleMessage();
42 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
44 com.openxc.BinaryMessages.SimpleMessage getSimpleMessage();
46 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
48 com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder();
51 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
53 boolean hasDiagnosticResponse();
55 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
57 com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse();
59 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
61 com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder();
64 * <code>optional .openxc.ControlCommand control_command = 5;</code>
66 boolean hasControlCommand();
68 * <code>optional .openxc.ControlCommand control_command = 5;</code>
70 com.openxc.BinaryMessages.ControlCommand getControlCommand();
72 * <code>optional .openxc.ControlCommand control_command = 5;</code>
74 com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder();
77 * <code>optional .openxc.CommandResponse command_response = 6;</code>
79 boolean hasCommandResponse();
81 * <code>optional .openxc.CommandResponse command_response = 6;</code>
83 com.openxc.BinaryMessages.CommandResponse getCommandResponse();
85 * <code>optional .openxc.CommandResponse command_response = 6;</code>
87 com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder();
90 * Protobuf type {@code openxc.VehicleMessage}
92 public static final class VehicleMessage extends
93 com.google.protobuf.GeneratedMessage implements
94 // @@protoc_insertion_point(message_implements:openxc.VehicleMessage)
95 VehicleMessageOrBuilder {
96 // Use VehicleMessage.newBuilder() to construct.
97 private VehicleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
99 this.unknownFields = builder.getUnknownFields();
101 private VehicleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
103 private static final VehicleMessage defaultInstance;
104 public static VehicleMessage getDefaultInstance() {
105 return defaultInstance;
108 public VehicleMessage getDefaultInstanceForType() {
109 return defaultInstance;
112 private final com.google.protobuf.UnknownFieldSet unknownFields;
114 public final com.google.protobuf.UnknownFieldSet
116 return this.unknownFields;
118 private VehicleMessage(
119 com.google.protobuf.CodedInputStream input,
120 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
121 throws com.google.protobuf.InvalidProtocolBufferException {
123 int mutable_bitField0_ = 0;
124 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
125 com.google.protobuf.UnknownFieldSet.newBuilder();
127 boolean done = false;
129 int tag = input.readTag();
135 if (!parseUnknownField(input, unknownFields,
136 extensionRegistry, tag)) {
142 int rawValue = input.readEnum();
143 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
145 unknownFields.mergeVarintField(1, rawValue);
147 bitField0_ |= 0x00000001;
153 com.openxc.BinaryMessages.CanMessage.Builder subBuilder = null;
154 if (((bitField0_ & 0x00000002) == 0x00000002)) {
155 subBuilder = canMessage_.toBuilder();
157 canMessage_ = input.readMessage(com.openxc.BinaryMessages.CanMessage.PARSER, extensionRegistry);
158 if (subBuilder != null) {
159 subBuilder.mergeFrom(canMessage_);
160 canMessage_ = subBuilder.buildPartial();
162 bitField0_ |= 0x00000002;
166 com.openxc.BinaryMessages.SimpleMessage.Builder subBuilder = null;
167 if (((bitField0_ & 0x00000004) == 0x00000004)) {
168 subBuilder = simpleMessage_.toBuilder();
170 simpleMessage_ = input.readMessage(com.openxc.BinaryMessages.SimpleMessage.PARSER, extensionRegistry);
171 if (subBuilder != null) {
172 subBuilder.mergeFrom(simpleMessage_);
173 simpleMessage_ = subBuilder.buildPartial();
175 bitField0_ |= 0x00000004;
179 com.openxc.BinaryMessages.DiagnosticResponse.Builder subBuilder = null;
180 if (((bitField0_ & 0x00000008) == 0x00000008)) {
181 subBuilder = diagnosticResponse_.toBuilder();
183 diagnosticResponse_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticResponse.PARSER, extensionRegistry);
184 if (subBuilder != null) {
185 subBuilder.mergeFrom(diagnosticResponse_);
186 diagnosticResponse_ = subBuilder.buildPartial();
188 bitField0_ |= 0x00000008;
192 com.openxc.BinaryMessages.ControlCommand.Builder subBuilder = null;
193 if (((bitField0_ & 0x00000010) == 0x00000010)) {
194 subBuilder = controlCommand_.toBuilder();
196 controlCommand_ = input.readMessage(com.openxc.BinaryMessages.ControlCommand.PARSER, extensionRegistry);
197 if (subBuilder != null) {
198 subBuilder.mergeFrom(controlCommand_);
199 controlCommand_ = subBuilder.buildPartial();
201 bitField0_ |= 0x00000010;
205 com.openxc.BinaryMessages.CommandResponse.Builder subBuilder = null;
206 if (((bitField0_ & 0x00000020) == 0x00000020)) {
207 subBuilder = commandResponse_.toBuilder();
209 commandResponse_ = input.readMessage(com.openxc.BinaryMessages.CommandResponse.PARSER, extensionRegistry);
210 if (subBuilder != null) {
211 subBuilder.mergeFrom(commandResponse_);
212 commandResponse_ = subBuilder.buildPartial();
214 bitField0_ |= 0x00000020;
219 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
220 throw e.setUnfinishedMessage(this);
221 } catch (java.io.IOException e) {
222 throw new com.google.protobuf.InvalidProtocolBufferException(
223 e.getMessage()).setUnfinishedMessage(this);
225 this.unknownFields = unknownFields.build();
226 makeExtensionsImmutable();
229 public static final com.google.protobuf.Descriptors.Descriptor
231 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
234 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
235 internalGetFieldAccessorTable() {
236 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
237 .ensureFieldAccessorsInitialized(
238 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
241 public static com.google.protobuf.Parser<VehicleMessage> PARSER =
242 new com.google.protobuf.AbstractParser<VehicleMessage>() {
243 public VehicleMessage parsePartialFrom(
244 com.google.protobuf.CodedInputStream input,
245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
246 throws com.google.protobuf.InvalidProtocolBufferException {
247 return new VehicleMessage(input, extensionRegistry);
252 public com.google.protobuf.Parser<VehicleMessage> getParserForType() {
257 * Protobuf enum {@code openxc.VehicleMessage.Type}
260 implements com.google.protobuf.ProtocolMessageEnum {
262 * <code>CAN = 1;</code>
266 * <code>SIMPLE = 2;</code>
270 * <code>DIAGNOSTIC = 3;</code>
274 * <code>CONTROL_COMMAND = 4;</code>
276 CONTROL_COMMAND(3, 4),
278 * <code>COMMAND_RESPONSE = 5;</code>
280 COMMAND_RESPONSE(4, 5),
284 * <code>CAN = 1;</code>
286 public static final int CAN_VALUE = 1;
288 * <code>SIMPLE = 2;</code>
290 public static final int SIMPLE_VALUE = 2;
292 * <code>DIAGNOSTIC = 3;</code>
294 public static final int DIAGNOSTIC_VALUE = 3;
296 * <code>CONTROL_COMMAND = 4;</code>
298 public static final int CONTROL_COMMAND_VALUE = 4;
300 * <code>COMMAND_RESPONSE = 5;</code>
302 public static final int COMMAND_RESPONSE_VALUE = 5;
305 public final int getNumber() { return value; }
307 public static Type valueOf(int value) {
310 case 2: return SIMPLE;
311 case 3: return DIAGNOSTIC;
312 case 4: return CONTROL_COMMAND;
313 case 5: return COMMAND_RESPONSE;
314 default: return null;
318 public static com.google.protobuf.Internal.EnumLiteMap<Type>
319 internalGetValueMap() {
320 return internalValueMap;
322 private static com.google.protobuf.Internal.EnumLiteMap<Type>
324 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
325 public Type findValueByNumber(int number) {
326 return Type.valueOf(number);
330 public final com.google.protobuf.Descriptors.EnumValueDescriptor
331 getValueDescriptor() {
332 return getDescriptor().getValues().get(index);
334 public final com.google.protobuf.Descriptors.EnumDescriptor
335 getDescriptorForType() {
336 return getDescriptor();
338 public static final com.google.protobuf.Descriptors.EnumDescriptor
340 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
343 private static final Type[] VALUES = values();
345 public static Type valueOf(
346 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
347 if (desc.getType() != getDescriptor()) {
348 throw new java.lang.IllegalArgumentException(
349 "EnumValueDescriptor is not for this type.");
351 return VALUES[desc.getIndex()];
354 private final int index;
355 private final int value;
357 private Type(int index, int value) {
362 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
365 private int bitField0_;
366 public static final int TYPE_FIELD_NUMBER = 1;
367 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
369 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
371 public boolean hasType() {
372 return ((bitField0_ & 0x00000001) == 0x00000001);
375 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
377 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
381 public static final int CAN_MESSAGE_FIELD_NUMBER = 2;
382 private com.openxc.BinaryMessages.CanMessage canMessage_;
384 * <code>optional .openxc.CanMessage can_message = 2;</code>
386 public boolean hasCanMessage() {
387 return ((bitField0_ & 0x00000002) == 0x00000002);
390 * <code>optional .openxc.CanMessage can_message = 2;</code>
392 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
396 * <code>optional .openxc.CanMessage can_message = 2;</code>
398 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
402 public static final int SIMPLE_MESSAGE_FIELD_NUMBER = 3;
403 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_;
405 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
407 public boolean hasSimpleMessage() {
408 return ((bitField0_ & 0x00000004) == 0x00000004);
411 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
413 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
414 return simpleMessage_;
417 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
419 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
420 return simpleMessage_;
423 public static final int DIAGNOSTIC_RESPONSE_FIELD_NUMBER = 4;
424 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_;
426 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
428 public boolean hasDiagnosticResponse() {
429 return ((bitField0_ & 0x00000008) == 0x00000008);
432 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
434 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
435 return diagnosticResponse_;
438 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
440 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
441 return diagnosticResponse_;
444 public static final int CONTROL_COMMAND_FIELD_NUMBER = 5;
445 private com.openxc.BinaryMessages.ControlCommand controlCommand_;
447 * <code>optional .openxc.ControlCommand control_command = 5;</code>
449 public boolean hasControlCommand() {
450 return ((bitField0_ & 0x00000010) == 0x00000010);
453 * <code>optional .openxc.ControlCommand control_command = 5;</code>
455 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
456 return controlCommand_;
459 * <code>optional .openxc.ControlCommand control_command = 5;</code>
461 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
462 return controlCommand_;
465 public static final int COMMAND_RESPONSE_FIELD_NUMBER = 6;
466 private com.openxc.BinaryMessages.CommandResponse commandResponse_;
468 * <code>optional .openxc.CommandResponse command_response = 6;</code>
470 public boolean hasCommandResponse() {
471 return ((bitField0_ & 0x00000020) == 0x00000020);
474 * <code>optional .openxc.CommandResponse command_response = 6;</code>
476 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
477 return commandResponse_;
480 * <code>optional .openxc.CommandResponse command_response = 6;</code>
482 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
483 return commandResponse_;
486 private void initFields() {
487 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
488 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
489 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
490 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
491 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
492 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
494 private byte memoizedIsInitialized = -1;
495 public final boolean isInitialized() {
496 byte isInitialized = memoizedIsInitialized;
497 if (isInitialized == 1) return true;
498 if (isInitialized == 0) return false;
500 memoizedIsInitialized = 1;
504 public void writeTo(com.google.protobuf.CodedOutputStream output)
505 throws java.io.IOException {
507 if (((bitField0_ & 0x00000001) == 0x00000001)) {
508 output.writeEnum(1, type_.getNumber());
510 if (((bitField0_ & 0x00000002) == 0x00000002)) {
511 output.writeMessage(2, canMessage_);
513 if (((bitField0_ & 0x00000004) == 0x00000004)) {
514 output.writeMessage(3, simpleMessage_);
516 if (((bitField0_ & 0x00000008) == 0x00000008)) {
517 output.writeMessage(4, diagnosticResponse_);
519 if (((bitField0_ & 0x00000010) == 0x00000010)) {
520 output.writeMessage(5, controlCommand_);
522 if (((bitField0_ & 0x00000020) == 0x00000020)) {
523 output.writeMessage(6, commandResponse_);
525 getUnknownFields().writeTo(output);
528 private int memoizedSerializedSize = -1;
529 public int getSerializedSize() {
530 int size = memoizedSerializedSize;
531 if (size != -1) return size;
534 if (((bitField0_ & 0x00000001) == 0x00000001)) {
535 size += com.google.protobuf.CodedOutputStream
536 .computeEnumSize(1, type_.getNumber());
538 if (((bitField0_ & 0x00000002) == 0x00000002)) {
539 size += com.google.protobuf.CodedOutputStream
540 .computeMessageSize(2, canMessage_);
542 if (((bitField0_ & 0x00000004) == 0x00000004)) {
543 size += com.google.protobuf.CodedOutputStream
544 .computeMessageSize(3, simpleMessage_);
546 if (((bitField0_ & 0x00000008) == 0x00000008)) {
547 size += com.google.protobuf.CodedOutputStream
548 .computeMessageSize(4, diagnosticResponse_);
550 if (((bitField0_ & 0x00000010) == 0x00000010)) {
551 size += com.google.protobuf.CodedOutputStream
552 .computeMessageSize(5, controlCommand_);
554 if (((bitField0_ & 0x00000020) == 0x00000020)) {
555 size += com.google.protobuf.CodedOutputStream
556 .computeMessageSize(6, commandResponse_);
558 size += getUnknownFields().getSerializedSize();
559 memoizedSerializedSize = size;
563 private static final long serialVersionUID = 0L;
565 protected java.lang.Object writeReplace()
566 throws java.io.ObjectStreamException {
567 return super.writeReplace();
570 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
571 com.google.protobuf.ByteString data)
572 throws com.google.protobuf.InvalidProtocolBufferException {
573 return PARSER.parseFrom(data);
575 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
576 com.google.protobuf.ByteString data,
577 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
578 throws com.google.protobuf.InvalidProtocolBufferException {
579 return PARSER.parseFrom(data, extensionRegistry);
581 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
582 throws com.google.protobuf.InvalidProtocolBufferException {
583 return PARSER.parseFrom(data);
585 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
587 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
588 throws com.google.protobuf.InvalidProtocolBufferException {
589 return PARSER.parseFrom(data, extensionRegistry);
591 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
592 throws java.io.IOException {
593 return PARSER.parseFrom(input);
595 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
596 java.io.InputStream input,
597 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
598 throws java.io.IOException {
599 return PARSER.parseFrom(input, extensionRegistry);
601 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
602 throws java.io.IOException {
603 return PARSER.parseDelimitedFrom(input);
605 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
606 java.io.InputStream input,
607 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
608 throws java.io.IOException {
609 return PARSER.parseDelimitedFrom(input, extensionRegistry);
611 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
612 com.google.protobuf.CodedInputStream input)
613 throws java.io.IOException {
614 return PARSER.parseFrom(input);
616 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
617 com.google.protobuf.CodedInputStream input,
618 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
619 throws java.io.IOException {
620 return PARSER.parseFrom(input, extensionRegistry);
623 public static Builder newBuilder() { return Builder.create(); }
624 public Builder newBuilderForType() { return newBuilder(); }
625 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
626 return newBuilder().mergeFrom(prototype);
628 public Builder toBuilder() { return newBuilder(this); }
631 protected Builder newBuilderForType(
632 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
633 Builder builder = new Builder(parent);
637 * Protobuf type {@code openxc.VehicleMessage}
639 public static final class Builder extends
640 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
641 // @@protoc_insertion_point(builder_implements:openxc.VehicleMessage)
642 com.openxc.BinaryMessages.VehicleMessageOrBuilder {
643 public static final com.google.protobuf.Descriptors.Descriptor
645 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
648 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
649 internalGetFieldAccessorTable() {
650 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
651 .ensureFieldAccessorsInitialized(
652 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
655 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
657 maybeForceBuilderInitialization();
661 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
663 maybeForceBuilderInitialization();
665 private void maybeForceBuilderInitialization() {
666 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
667 getCanMessageFieldBuilder();
668 getSimpleMessageFieldBuilder();
669 getDiagnosticResponseFieldBuilder();
670 getControlCommandFieldBuilder();
671 getCommandResponseFieldBuilder();
674 private static Builder create() {
675 return new Builder();
678 public Builder clear() {
680 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
681 bitField0_ = (bitField0_ & ~0x00000001);
682 if (canMessageBuilder_ == null) {
683 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
685 canMessageBuilder_.clear();
687 bitField0_ = (bitField0_ & ~0x00000002);
688 if (simpleMessageBuilder_ == null) {
689 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
691 simpleMessageBuilder_.clear();
693 bitField0_ = (bitField0_ & ~0x00000004);
694 if (diagnosticResponseBuilder_ == null) {
695 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
697 diagnosticResponseBuilder_.clear();
699 bitField0_ = (bitField0_ & ~0x00000008);
700 if (controlCommandBuilder_ == null) {
701 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
703 controlCommandBuilder_.clear();
705 bitField0_ = (bitField0_ & ~0x00000010);
706 if (commandResponseBuilder_ == null) {
707 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
709 commandResponseBuilder_.clear();
711 bitField0_ = (bitField0_ & ~0x00000020);
715 public Builder clone() {
716 return create().mergeFrom(buildPartial());
719 public com.google.protobuf.Descriptors.Descriptor
720 getDescriptorForType() {
721 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
724 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
725 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
728 public com.openxc.BinaryMessages.VehicleMessage build() {
729 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
730 if (!result.isInitialized()) {
731 throw newUninitializedMessageException(result);
736 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
737 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
738 int from_bitField0_ = bitField0_;
739 int to_bitField0_ = 0;
740 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
741 to_bitField0_ |= 0x00000001;
743 result.type_ = type_;
744 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
745 to_bitField0_ |= 0x00000002;
747 if (canMessageBuilder_ == null) {
748 result.canMessage_ = canMessage_;
750 result.canMessage_ = canMessageBuilder_.build();
752 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
753 to_bitField0_ |= 0x00000004;
755 if (simpleMessageBuilder_ == null) {
756 result.simpleMessage_ = simpleMessage_;
758 result.simpleMessage_ = simpleMessageBuilder_.build();
760 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
761 to_bitField0_ |= 0x00000008;
763 if (diagnosticResponseBuilder_ == null) {
764 result.diagnosticResponse_ = diagnosticResponse_;
766 result.diagnosticResponse_ = diagnosticResponseBuilder_.build();
768 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
769 to_bitField0_ |= 0x00000010;
771 if (controlCommandBuilder_ == null) {
772 result.controlCommand_ = controlCommand_;
774 result.controlCommand_ = controlCommandBuilder_.build();
776 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
777 to_bitField0_ |= 0x00000020;
779 if (commandResponseBuilder_ == null) {
780 result.commandResponse_ = commandResponse_;
782 result.commandResponse_ = commandResponseBuilder_.build();
784 result.bitField0_ = to_bitField0_;
789 public Builder mergeFrom(com.google.protobuf.Message other) {
790 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
791 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
793 super.mergeFrom(other);
798 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
799 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
800 if (other.hasType()) {
801 setType(other.getType());
803 if (other.hasCanMessage()) {
804 mergeCanMessage(other.getCanMessage());
806 if (other.hasSimpleMessage()) {
807 mergeSimpleMessage(other.getSimpleMessage());
809 if (other.hasDiagnosticResponse()) {
810 mergeDiagnosticResponse(other.getDiagnosticResponse());
812 if (other.hasControlCommand()) {
813 mergeControlCommand(other.getControlCommand());
815 if (other.hasCommandResponse()) {
816 mergeCommandResponse(other.getCommandResponse());
818 this.mergeUnknownFields(other.getUnknownFields());
822 public final boolean isInitialized() {
826 public Builder mergeFrom(
827 com.google.protobuf.CodedInputStream input,
828 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
829 throws java.io.IOException {
830 com.openxc.BinaryMessages.VehicleMessage parsedMessage = null;
832 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
833 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
834 parsedMessage = (com.openxc.BinaryMessages.VehicleMessage) e.getUnfinishedMessage();
837 if (parsedMessage != null) {
838 mergeFrom(parsedMessage);
843 private int bitField0_;
845 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
847 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
849 public boolean hasType() {
850 return ((bitField0_ & 0x00000001) == 0x00000001);
853 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
855 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
859 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
861 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
863 throw new NullPointerException();
865 bitField0_ |= 0x00000001;
871 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
873 public Builder clearType() {
874 bitField0_ = (bitField0_ & ~0x00000001);
875 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
880 private com.openxc.BinaryMessages.CanMessage canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
881 private com.google.protobuf.SingleFieldBuilder<
882 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder> canMessageBuilder_;
884 * <code>optional .openxc.CanMessage can_message = 2;</code>
886 public boolean hasCanMessage() {
887 return ((bitField0_ & 0x00000002) == 0x00000002);
890 * <code>optional .openxc.CanMessage can_message = 2;</code>
892 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
893 if (canMessageBuilder_ == null) {
896 return canMessageBuilder_.getMessage();
900 * <code>optional .openxc.CanMessage can_message = 2;</code>
902 public Builder setCanMessage(com.openxc.BinaryMessages.CanMessage value) {
903 if (canMessageBuilder_ == null) {
905 throw new NullPointerException();
910 canMessageBuilder_.setMessage(value);
912 bitField0_ |= 0x00000002;
916 * <code>optional .openxc.CanMessage can_message = 2;</code>
918 public Builder setCanMessage(
919 com.openxc.BinaryMessages.CanMessage.Builder builderForValue) {
920 if (canMessageBuilder_ == null) {
921 canMessage_ = builderForValue.build();
924 canMessageBuilder_.setMessage(builderForValue.build());
926 bitField0_ |= 0x00000002;
930 * <code>optional .openxc.CanMessage can_message = 2;</code>
932 public Builder mergeCanMessage(com.openxc.BinaryMessages.CanMessage value) {
933 if (canMessageBuilder_ == null) {
934 if (((bitField0_ & 0x00000002) == 0x00000002) &&
935 canMessage_ != com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) {
937 com.openxc.BinaryMessages.CanMessage.newBuilder(canMessage_).mergeFrom(value).buildPartial();
943 canMessageBuilder_.mergeFrom(value);
945 bitField0_ |= 0x00000002;
949 * <code>optional .openxc.CanMessage can_message = 2;</code>
951 public Builder clearCanMessage() {
952 if (canMessageBuilder_ == null) {
953 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
956 canMessageBuilder_.clear();
958 bitField0_ = (bitField0_ & ~0x00000002);
962 * <code>optional .openxc.CanMessage can_message = 2;</code>
964 public com.openxc.BinaryMessages.CanMessage.Builder getCanMessageBuilder() {
965 bitField0_ |= 0x00000002;
967 return getCanMessageFieldBuilder().getBuilder();
970 * <code>optional .openxc.CanMessage can_message = 2;</code>
972 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
973 if (canMessageBuilder_ != null) {
974 return canMessageBuilder_.getMessageOrBuilder();
980 * <code>optional .openxc.CanMessage can_message = 2;</code>
982 private com.google.protobuf.SingleFieldBuilder<
983 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>
984 getCanMessageFieldBuilder() {
985 if (canMessageBuilder_ == null) {
986 canMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
987 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>(
989 getParentForChildren(),
993 return canMessageBuilder_;
996 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
997 private com.google.protobuf.SingleFieldBuilder<
998 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder> simpleMessageBuilder_;
1000 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1002 public boolean hasSimpleMessage() {
1003 return ((bitField0_ & 0x00000004) == 0x00000004);
1006 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1008 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
1009 if (simpleMessageBuilder_ == null) {
1010 return simpleMessage_;
1012 return simpleMessageBuilder_.getMessage();
1016 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1018 public Builder setSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
1019 if (simpleMessageBuilder_ == null) {
1020 if (value == null) {
1021 throw new NullPointerException();
1023 simpleMessage_ = value;
1026 simpleMessageBuilder_.setMessage(value);
1028 bitField0_ |= 0x00000004;
1032 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1034 public Builder setSimpleMessage(
1035 com.openxc.BinaryMessages.SimpleMessage.Builder builderForValue) {
1036 if (simpleMessageBuilder_ == null) {
1037 simpleMessage_ = builderForValue.build();
1040 simpleMessageBuilder_.setMessage(builderForValue.build());
1042 bitField0_ |= 0x00000004;
1046 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1048 public Builder mergeSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
1049 if (simpleMessageBuilder_ == null) {
1050 if (((bitField0_ & 0x00000004) == 0x00000004) &&
1051 simpleMessage_ != com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) {
1053 com.openxc.BinaryMessages.SimpleMessage.newBuilder(simpleMessage_).mergeFrom(value).buildPartial();
1055 simpleMessage_ = value;
1059 simpleMessageBuilder_.mergeFrom(value);
1061 bitField0_ |= 0x00000004;
1065 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1067 public Builder clearSimpleMessage() {
1068 if (simpleMessageBuilder_ == null) {
1069 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
1072 simpleMessageBuilder_.clear();
1074 bitField0_ = (bitField0_ & ~0x00000004);
1078 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1080 public com.openxc.BinaryMessages.SimpleMessage.Builder getSimpleMessageBuilder() {
1081 bitField0_ |= 0x00000004;
1083 return getSimpleMessageFieldBuilder().getBuilder();
1086 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1088 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
1089 if (simpleMessageBuilder_ != null) {
1090 return simpleMessageBuilder_.getMessageOrBuilder();
1092 return simpleMessage_;
1096 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1098 private com.google.protobuf.SingleFieldBuilder<
1099 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>
1100 getSimpleMessageFieldBuilder() {
1101 if (simpleMessageBuilder_ == null) {
1102 simpleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1103 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>(
1105 getParentForChildren(),
1107 simpleMessage_ = null;
1109 return simpleMessageBuilder_;
1112 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
1113 private com.google.protobuf.SingleFieldBuilder<
1114 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder> diagnosticResponseBuilder_;
1116 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1118 public boolean hasDiagnosticResponse() {
1119 return ((bitField0_ & 0x00000008) == 0x00000008);
1122 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1124 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
1125 if (diagnosticResponseBuilder_ == null) {
1126 return diagnosticResponse_;
1128 return diagnosticResponseBuilder_.getMessage();
1132 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1134 public Builder setDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
1135 if (diagnosticResponseBuilder_ == null) {
1136 if (value == null) {
1137 throw new NullPointerException();
1139 diagnosticResponse_ = value;
1142 diagnosticResponseBuilder_.setMessage(value);
1144 bitField0_ |= 0x00000008;
1148 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1150 public Builder setDiagnosticResponse(
1151 com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) {
1152 if (diagnosticResponseBuilder_ == null) {
1153 diagnosticResponse_ = builderForValue.build();
1156 diagnosticResponseBuilder_.setMessage(builderForValue.build());
1158 bitField0_ |= 0x00000008;
1162 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1164 public Builder mergeDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
1165 if (diagnosticResponseBuilder_ == null) {
1166 if (((bitField0_ & 0x00000008) == 0x00000008) &&
1167 diagnosticResponse_ != com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) {
1168 diagnosticResponse_ =
1169 com.openxc.BinaryMessages.DiagnosticResponse.newBuilder(diagnosticResponse_).mergeFrom(value).buildPartial();
1171 diagnosticResponse_ = value;
1175 diagnosticResponseBuilder_.mergeFrom(value);
1177 bitField0_ |= 0x00000008;
1181 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1183 public Builder clearDiagnosticResponse() {
1184 if (diagnosticResponseBuilder_ == null) {
1185 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
1188 diagnosticResponseBuilder_.clear();
1190 bitField0_ = (bitField0_ & ~0x00000008);
1194 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1196 public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() {
1197 bitField0_ |= 0x00000008;
1199 return getDiagnosticResponseFieldBuilder().getBuilder();
1202 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1204 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
1205 if (diagnosticResponseBuilder_ != null) {
1206 return diagnosticResponseBuilder_.getMessageOrBuilder();
1208 return diagnosticResponse_;
1212 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1214 private com.google.protobuf.SingleFieldBuilder<
1215 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>
1216 getDiagnosticResponseFieldBuilder() {
1217 if (diagnosticResponseBuilder_ == null) {
1218 diagnosticResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1219 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>(
1220 getDiagnosticResponse(),
1221 getParentForChildren(),
1223 diagnosticResponse_ = null;
1225 return diagnosticResponseBuilder_;
1228 private com.openxc.BinaryMessages.ControlCommand controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1229 private com.google.protobuf.SingleFieldBuilder<
1230 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder> controlCommandBuilder_;
1232 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1234 public boolean hasControlCommand() {
1235 return ((bitField0_ & 0x00000010) == 0x00000010);
1238 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1240 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
1241 if (controlCommandBuilder_ == null) {
1242 return controlCommand_;
1244 return controlCommandBuilder_.getMessage();
1248 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1250 public Builder setControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1251 if (controlCommandBuilder_ == null) {
1252 if (value == null) {
1253 throw new NullPointerException();
1255 controlCommand_ = value;
1258 controlCommandBuilder_.setMessage(value);
1260 bitField0_ |= 0x00000010;
1264 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1266 public Builder setControlCommand(
1267 com.openxc.BinaryMessages.ControlCommand.Builder builderForValue) {
1268 if (controlCommandBuilder_ == null) {
1269 controlCommand_ = builderForValue.build();
1272 controlCommandBuilder_.setMessage(builderForValue.build());
1274 bitField0_ |= 0x00000010;
1278 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1280 public Builder mergeControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1281 if (controlCommandBuilder_ == null) {
1282 if (((bitField0_ & 0x00000010) == 0x00000010) &&
1283 controlCommand_ != com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) {
1285 com.openxc.BinaryMessages.ControlCommand.newBuilder(controlCommand_).mergeFrom(value).buildPartial();
1287 controlCommand_ = value;
1291 controlCommandBuilder_.mergeFrom(value);
1293 bitField0_ |= 0x00000010;
1297 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1299 public Builder clearControlCommand() {
1300 if (controlCommandBuilder_ == null) {
1301 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1304 controlCommandBuilder_.clear();
1306 bitField0_ = (bitField0_ & ~0x00000010);
1310 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1312 public com.openxc.BinaryMessages.ControlCommand.Builder getControlCommandBuilder() {
1313 bitField0_ |= 0x00000010;
1315 return getControlCommandFieldBuilder().getBuilder();
1318 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1320 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
1321 if (controlCommandBuilder_ != null) {
1322 return controlCommandBuilder_.getMessageOrBuilder();
1324 return controlCommand_;
1328 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1330 private com.google.protobuf.SingleFieldBuilder<
1331 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>
1332 getControlCommandFieldBuilder() {
1333 if (controlCommandBuilder_ == null) {
1334 controlCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1335 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>(
1336 getControlCommand(),
1337 getParentForChildren(),
1339 controlCommand_ = null;
1341 return controlCommandBuilder_;
1344 private com.openxc.BinaryMessages.CommandResponse commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1345 private com.google.protobuf.SingleFieldBuilder<
1346 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder> commandResponseBuilder_;
1348 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1350 public boolean hasCommandResponse() {
1351 return ((bitField0_ & 0x00000020) == 0x00000020);
1354 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1356 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
1357 if (commandResponseBuilder_ == null) {
1358 return commandResponse_;
1360 return commandResponseBuilder_.getMessage();
1364 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1366 public Builder setCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1367 if (commandResponseBuilder_ == null) {
1368 if (value == null) {
1369 throw new NullPointerException();
1371 commandResponse_ = value;
1374 commandResponseBuilder_.setMessage(value);
1376 bitField0_ |= 0x00000020;
1380 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1382 public Builder setCommandResponse(
1383 com.openxc.BinaryMessages.CommandResponse.Builder builderForValue) {
1384 if (commandResponseBuilder_ == null) {
1385 commandResponse_ = builderForValue.build();
1388 commandResponseBuilder_.setMessage(builderForValue.build());
1390 bitField0_ |= 0x00000020;
1394 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1396 public Builder mergeCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1397 if (commandResponseBuilder_ == null) {
1398 if (((bitField0_ & 0x00000020) == 0x00000020) &&
1399 commandResponse_ != com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) {
1401 com.openxc.BinaryMessages.CommandResponse.newBuilder(commandResponse_).mergeFrom(value).buildPartial();
1403 commandResponse_ = value;
1407 commandResponseBuilder_.mergeFrom(value);
1409 bitField0_ |= 0x00000020;
1413 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1415 public Builder clearCommandResponse() {
1416 if (commandResponseBuilder_ == null) {
1417 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1420 commandResponseBuilder_.clear();
1422 bitField0_ = (bitField0_ & ~0x00000020);
1426 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1428 public com.openxc.BinaryMessages.CommandResponse.Builder getCommandResponseBuilder() {
1429 bitField0_ |= 0x00000020;
1431 return getCommandResponseFieldBuilder().getBuilder();
1434 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1436 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
1437 if (commandResponseBuilder_ != null) {
1438 return commandResponseBuilder_.getMessageOrBuilder();
1440 return commandResponse_;
1444 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1446 private com.google.protobuf.SingleFieldBuilder<
1447 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>
1448 getCommandResponseFieldBuilder() {
1449 if (commandResponseBuilder_ == null) {
1450 commandResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1451 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>(
1452 getCommandResponse(),
1453 getParentForChildren(),
1455 commandResponse_ = null;
1457 return commandResponseBuilder_;
1460 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
1464 defaultInstance = new VehicleMessage(true);
1465 defaultInstance.initFields();
1468 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
1471 public interface CanMessageOrBuilder extends
1472 // @@protoc_insertion_point(interface_extends:openxc.CanMessage)
1473 com.google.protobuf.MessageOrBuilder {
1476 * <code>optional int32 bus = 1;</code>
1480 * <code>optional int32 bus = 1;</code>
1485 * <code>optional uint32 id = 2;</code>
1489 * <code>optional uint32 id = 2;</code>
1494 * <code>optional bytes data = 3;</code>
1498 * <code>optional bytes data = 3;</code>
1500 com.google.protobuf.ByteString getData();
1503 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1505 boolean hasFrameFormat();
1507 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1509 com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat();
1512 * Protobuf type {@code openxc.CanMessage}
1514 public static final class CanMessage extends
1515 com.google.protobuf.GeneratedMessage implements
1516 // @@protoc_insertion_point(message_implements:openxc.CanMessage)
1517 CanMessageOrBuilder {
1518 // Use CanMessage.newBuilder() to construct.
1519 private CanMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1521 this.unknownFields = builder.getUnknownFields();
1523 private CanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1525 private static final CanMessage defaultInstance;
1526 public static CanMessage getDefaultInstance() {
1527 return defaultInstance;
1530 public CanMessage getDefaultInstanceForType() {
1531 return defaultInstance;
1534 private final com.google.protobuf.UnknownFieldSet unknownFields;
1536 public final com.google.protobuf.UnknownFieldSet
1537 getUnknownFields() {
1538 return this.unknownFields;
1541 com.google.protobuf.CodedInputStream input,
1542 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1543 throws com.google.protobuf.InvalidProtocolBufferException {
1545 int mutable_bitField0_ = 0;
1546 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1547 com.google.protobuf.UnknownFieldSet.newBuilder();
1549 boolean done = false;
1551 int tag = input.readTag();
1557 if (!parseUnknownField(input, unknownFields,
1558 extensionRegistry, tag)) {
1564 bitField0_ |= 0x00000001;
1565 bus_ = input.readInt32();
1569 bitField0_ |= 0x00000002;
1570 id_ = input.readUInt32();
1574 bitField0_ |= 0x00000004;
1575 data_ = input.readBytes();
1579 int rawValue = input.readEnum();
1580 com.openxc.BinaryMessages.CanMessage.FrameFormat value = com.openxc.BinaryMessages.CanMessage.FrameFormat.valueOf(rawValue);
1581 if (value == null) {
1582 unknownFields.mergeVarintField(4, rawValue);
1584 bitField0_ |= 0x00000008;
1585 frameFormat_ = value;
1591 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1592 throw e.setUnfinishedMessage(this);
1593 } catch (java.io.IOException e) {
1594 throw new com.google.protobuf.InvalidProtocolBufferException(
1595 e.getMessage()).setUnfinishedMessage(this);
1597 this.unknownFields = unknownFields.build();
1598 makeExtensionsImmutable();
1601 public static final com.google.protobuf.Descriptors.Descriptor
1603 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1606 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1607 internalGetFieldAccessorTable() {
1608 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable
1609 .ensureFieldAccessorsInitialized(
1610 com.openxc.BinaryMessages.CanMessage.class, com.openxc.BinaryMessages.CanMessage.Builder.class);
1613 public static com.google.protobuf.Parser<CanMessage> PARSER =
1614 new com.google.protobuf.AbstractParser<CanMessage>() {
1615 public CanMessage parsePartialFrom(
1616 com.google.protobuf.CodedInputStream input,
1617 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1618 throws com.google.protobuf.InvalidProtocolBufferException {
1619 return new CanMessage(input, extensionRegistry);
1624 public com.google.protobuf.Parser<CanMessage> getParserForType() {
1629 * Protobuf enum {@code openxc.CanMessage.FrameFormat}
1631 public enum FrameFormat
1632 implements com.google.protobuf.ProtocolMessageEnum {
1634 * <code>STANDARD = 1;</code>
1638 * <code>EXTENDED = 2;</code>
1644 * <code>STANDARD = 1;</code>
1646 public static final int STANDARD_VALUE = 1;
1648 * <code>EXTENDED = 2;</code>
1650 public static final int EXTENDED_VALUE = 2;
1653 public final int getNumber() { return value; }
1655 public static FrameFormat valueOf(int value) {
1657 case 1: return STANDARD;
1658 case 2: return EXTENDED;
1659 default: return null;
1663 public static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1664 internalGetValueMap() {
1665 return internalValueMap;
1667 private static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1669 new com.google.protobuf.Internal.EnumLiteMap<FrameFormat>() {
1670 public FrameFormat findValueByNumber(int number) {
1671 return FrameFormat.valueOf(number);
1675 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1676 getValueDescriptor() {
1677 return getDescriptor().getValues().get(index);
1679 public final com.google.protobuf.Descriptors.EnumDescriptor
1680 getDescriptorForType() {
1681 return getDescriptor();
1683 public static final com.google.protobuf.Descriptors.EnumDescriptor
1685 return com.openxc.BinaryMessages.CanMessage.getDescriptor().getEnumTypes().get(0);
1688 private static final FrameFormat[] VALUES = values();
1690 public static FrameFormat valueOf(
1691 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1692 if (desc.getType() != getDescriptor()) {
1693 throw new java.lang.IllegalArgumentException(
1694 "EnumValueDescriptor is not for this type.");
1696 return VALUES[desc.getIndex()];
1699 private final int index;
1700 private final int value;
1702 private FrameFormat(int index, int value) {
1707 // @@protoc_insertion_point(enum_scope:openxc.CanMessage.FrameFormat)
1710 private int bitField0_;
1711 public static final int BUS_FIELD_NUMBER = 1;
1714 * <code>optional int32 bus = 1;</code>
1716 public boolean hasBus() {
1717 return ((bitField0_ & 0x00000001) == 0x00000001);
1720 * <code>optional int32 bus = 1;</code>
1722 public int getBus() {
1726 public static final int ID_FIELD_NUMBER = 2;
1729 * <code>optional uint32 id = 2;</code>
1731 public boolean hasId() {
1732 return ((bitField0_ & 0x00000002) == 0x00000002);
1735 * <code>optional uint32 id = 2;</code>
1737 public int getId() {
1741 public static final int DATA_FIELD_NUMBER = 3;
1742 private com.google.protobuf.ByteString data_;
1744 * <code>optional bytes data = 3;</code>
1746 public boolean hasData() {
1747 return ((bitField0_ & 0x00000004) == 0x00000004);
1750 * <code>optional bytes data = 3;</code>
1752 public com.google.protobuf.ByteString getData() {
1756 public static final int FRAME_FORMAT_FIELD_NUMBER = 4;
1757 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_;
1759 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1761 public boolean hasFrameFormat() {
1762 return ((bitField0_ & 0x00000008) == 0x00000008);
1765 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1767 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1768 return frameFormat_;
1771 private void initFields() {
1774 data_ = com.google.protobuf.ByteString.EMPTY;
1775 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1777 private byte memoizedIsInitialized = -1;
1778 public final boolean isInitialized() {
1779 byte isInitialized = memoizedIsInitialized;
1780 if (isInitialized == 1) return true;
1781 if (isInitialized == 0) return false;
1783 memoizedIsInitialized = 1;
1787 public void writeTo(com.google.protobuf.CodedOutputStream output)
1788 throws java.io.IOException {
1789 getSerializedSize();
1790 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1791 output.writeInt32(1, bus_);
1793 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1794 output.writeUInt32(2, id_);
1796 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1797 output.writeBytes(3, data_);
1799 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1800 output.writeEnum(4, frameFormat_.getNumber());
1802 getUnknownFields().writeTo(output);
1805 private int memoizedSerializedSize = -1;
1806 public int getSerializedSize() {
1807 int size = memoizedSerializedSize;
1808 if (size != -1) return size;
1811 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1812 size += com.google.protobuf.CodedOutputStream
1813 .computeInt32Size(1, bus_);
1815 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1816 size += com.google.protobuf.CodedOutputStream
1817 .computeUInt32Size(2, id_);
1819 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1820 size += com.google.protobuf.CodedOutputStream
1821 .computeBytesSize(3, data_);
1823 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1824 size += com.google.protobuf.CodedOutputStream
1825 .computeEnumSize(4, frameFormat_.getNumber());
1827 size += getUnknownFields().getSerializedSize();
1828 memoizedSerializedSize = size;
1832 private static final long serialVersionUID = 0L;
1834 protected java.lang.Object writeReplace()
1835 throws java.io.ObjectStreamException {
1836 return super.writeReplace();
1839 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1840 com.google.protobuf.ByteString data)
1841 throws com.google.protobuf.InvalidProtocolBufferException {
1842 return PARSER.parseFrom(data);
1844 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1845 com.google.protobuf.ByteString data,
1846 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1847 throws com.google.protobuf.InvalidProtocolBufferException {
1848 return PARSER.parseFrom(data, extensionRegistry);
1850 public static com.openxc.BinaryMessages.CanMessage parseFrom(byte[] data)
1851 throws com.google.protobuf.InvalidProtocolBufferException {
1852 return PARSER.parseFrom(data);
1854 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1856 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1857 throws com.google.protobuf.InvalidProtocolBufferException {
1858 return PARSER.parseFrom(data, extensionRegistry);
1860 public static com.openxc.BinaryMessages.CanMessage parseFrom(java.io.InputStream input)
1861 throws java.io.IOException {
1862 return PARSER.parseFrom(input);
1864 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1865 java.io.InputStream input,
1866 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1867 throws java.io.IOException {
1868 return PARSER.parseFrom(input, extensionRegistry);
1870 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(java.io.InputStream input)
1871 throws java.io.IOException {
1872 return PARSER.parseDelimitedFrom(input);
1874 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(
1875 java.io.InputStream input,
1876 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1877 throws java.io.IOException {
1878 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1880 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1881 com.google.protobuf.CodedInputStream input)
1882 throws java.io.IOException {
1883 return PARSER.parseFrom(input);
1885 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1886 com.google.protobuf.CodedInputStream input,
1887 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1888 throws java.io.IOException {
1889 return PARSER.parseFrom(input, extensionRegistry);
1892 public static Builder newBuilder() { return Builder.create(); }
1893 public Builder newBuilderForType() { return newBuilder(); }
1894 public static Builder newBuilder(com.openxc.BinaryMessages.CanMessage prototype) {
1895 return newBuilder().mergeFrom(prototype);
1897 public Builder toBuilder() { return newBuilder(this); }
1900 protected Builder newBuilderForType(
1901 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1902 Builder builder = new Builder(parent);
1906 * Protobuf type {@code openxc.CanMessage}
1908 public static final class Builder extends
1909 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1910 // @@protoc_insertion_point(builder_implements:openxc.CanMessage)
1911 com.openxc.BinaryMessages.CanMessageOrBuilder {
1912 public static final com.google.protobuf.Descriptors.Descriptor
1914 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1917 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1918 internalGetFieldAccessorTable() {
1919 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable
1920 .ensureFieldAccessorsInitialized(
1921 com.openxc.BinaryMessages.CanMessage.class, com.openxc.BinaryMessages.CanMessage.Builder.class);
1924 // Construct using com.openxc.BinaryMessages.CanMessage.newBuilder()
1926 maybeForceBuilderInitialization();
1930 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1932 maybeForceBuilderInitialization();
1934 private void maybeForceBuilderInitialization() {
1935 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1938 private static Builder create() {
1939 return new Builder();
1942 public Builder clear() {
1945 bitField0_ = (bitField0_ & ~0x00000001);
1947 bitField0_ = (bitField0_ & ~0x00000002);
1948 data_ = com.google.protobuf.ByteString.EMPTY;
1949 bitField0_ = (bitField0_ & ~0x00000004);
1950 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1951 bitField0_ = (bitField0_ & ~0x00000008);
1955 public Builder clone() {
1956 return create().mergeFrom(buildPartial());
1959 public com.google.protobuf.Descriptors.Descriptor
1960 getDescriptorForType() {
1961 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1964 public com.openxc.BinaryMessages.CanMessage getDefaultInstanceForType() {
1965 return com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
1968 public com.openxc.BinaryMessages.CanMessage build() {
1969 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1970 if (!result.isInitialized()) {
1971 throw newUninitializedMessageException(result);
1976 public com.openxc.BinaryMessages.CanMessage buildPartial() {
1977 com.openxc.BinaryMessages.CanMessage result = new com.openxc.BinaryMessages.CanMessage(this);
1978 int from_bitField0_ = bitField0_;
1979 int to_bitField0_ = 0;
1980 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1981 to_bitField0_ |= 0x00000001;
1984 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1985 to_bitField0_ |= 0x00000002;
1988 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1989 to_bitField0_ |= 0x00000004;
1991 result.data_ = data_;
1992 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1993 to_bitField0_ |= 0x00000008;
1995 result.frameFormat_ = frameFormat_;
1996 result.bitField0_ = to_bitField0_;
2001 public Builder mergeFrom(com.google.protobuf.Message other) {
2002 if (other instanceof com.openxc.BinaryMessages.CanMessage) {
2003 return mergeFrom((com.openxc.BinaryMessages.CanMessage)other);
2005 super.mergeFrom(other);
2010 public Builder mergeFrom(com.openxc.BinaryMessages.CanMessage other) {
2011 if (other == com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) return this;
2012 if (other.hasBus()) {
2013 setBus(other.getBus());
2015 if (other.hasId()) {
2016 setId(other.getId());
2018 if (other.hasData()) {
2019 setData(other.getData());
2021 if (other.hasFrameFormat()) {
2022 setFrameFormat(other.getFrameFormat());
2024 this.mergeUnknownFields(other.getUnknownFields());
2028 public final boolean isInitialized() {
2032 public Builder mergeFrom(
2033 com.google.protobuf.CodedInputStream input,
2034 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2035 throws java.io.IOException {
2036 com.openxc.BinaryMessages.CanMessage parsedMessage = null;
2038 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2039 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2040 parsedMessage = (com.openxc.BinaryMessages.CanMessage) e.getUnfinishedMessage();
2043 if (parsedMessage != null) {
2044 mergeFrom(parsedMessage);
2049 private int bitField0_;
2053 * <code>optional int32 bus = 1;</code>
2055 public boolean hasBus() {
2056 return ((bitField0_ & 0x00000001) == 0x00000001);
2059 * <code>optional int32 bus = 1;</code>
2061 public int getBus() {
2065 * <code>optional int32 bus = 1;</code>
2067 public Builder setBus(int value) {
2068 bitField0_ |= 0x00000001;
2074 * <code>optional int32 bus = 1;</code>
2076 public Builder clearBus() {
2077 bitField0_ = (bitField0_ & ~0x00000001);
2085 * <code>optional uint32 id = 2;</code>
2087 public boolean hasId() {
2088 return ((bitField0_ & 0x00000002) == 0x00000002);
2091 * <code>optional uint32 id = 2;</code>
2093 public int getId() {
2097 * <code>optional uint32 id = 2;</code>
2099 public Builder setId(int value) {
2100 bitField0_ |= 0x00000002;
2106 * <code>optional uint32 id = 2;</code>
2108 public Builder clearId() {
2109 bitField0_ = (bitField0_ & ~0x00000002);
2115 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
2117 * <code>optional bytes data = 3;</code>
2119 public boolean hasData() {
2120 return ((bitField0_ & 0x00000004) == 0x00000004);
2123 * <code>optional bytes data = 3;</code>
2125 public com.google.protobuf.ByteString getData() {
2129 * <code>optional bytes data = 3;</code>
2131 public Builder setData(com.google.protobuf.ByteString value) {
2132 if (value == null) {
2133 throw new NullPointerException();
2135 bitField0_ |= 0x00000004;
2141 * <code>optional bytes data = 3;</code>
2143 public Builder clearData() {
2144 bitField0_ = (bitField0_ & ~0x00000004);
2145 data_ = getDefaultInstance().getData();
2150 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
2152 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2154 public boolean hasFrameFormat() {
2155 return ((bitField0_ & 0x00000008) == 0x00000008);
2158 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2160 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
2161 return frameFormat_;
2164 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2166 public Builder setFrameFormat(com.openxc.BinaryMessages.CanMessage.FrameFormat value) {
2167 if (value == null) {
2168 throw new NullPointerException();
2170 bitField0_ |= 0x00000008;
2171 frameFormat_ = value;
2176 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2178 public Builder clearFrameFormat() {
2179 bitField0_ = (bitField0_ & ~0x00000008);
2180 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
2185 // @@protoc_insertion_point(builder_scope:openxc.CanMessage)
2189 defaultInstance = new CanMessage(true);
2190 defaultInstance.initFields();
2193 // @@protoc_insertion_point(class_scope:openxc.CanMessage)
2196 public interface ControlCommandOrBuilder extends
2197 // @@protoc_insertion_point(interface_extends:openxc.ControlCommand)
2198 com.google.protobuf.MessageOrBuilder {
2201 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2205 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2207 com.openxc.BinaryMessages.ControlCommand.Type getType();
2210 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2212 boolean hasDiagnosticRequest();
2214 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2216 com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest();
2218 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2220 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder();
2223 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2225 boolean hasPassthroughModeRequest();
2227 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2229 com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest();
2231 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2233 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder();
2236 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2238 boolean hasAcceptanceFilterBypassCommand();
2240 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2242 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand();
2244 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2246 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder();
2249 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2251 boolean hasPayloadFormatCommand();
2253 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2255 com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand();
2257 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2259 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder();
2262 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2264 boolean hasPredefinedObd2RequestsCommand();
2266 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2268 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand();
2270 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2272 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder();
2275 * Protobuf type {@code openxc.ControlCommand}
2277 public static final class ControlCommand extends
2278 com.google.protobuf.GeneratedMessage implements
2279 // @@protoc_insertion_point(message_implements:openxc.ControlCommand)
2280 ControlCommandOrBuilder {
2281 // Use ControlCommand.newBuilder() to construct.
2282 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2284 this.unknownFields = builder.getUnknownFields();
2286 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2288 private static final ControlCommand defaultInstance;
2289 public static ControlCommand getDefaultInstance() {
2290 return defaultInstance;
2293 public ControlCommand getDefaultInstanceForType() {
2294 return defaultInstance;
2297 private final com.google.protobuf.UnknownFieldSet unknownFields;
2299 public final com.google.protobuf.UnknownFieldSet
2300 getUnknownFields() {
2301 return this.unknownFields;
2303 private ControlCommand(
2304 com.google.protobuf.CodedInputStream input,
2305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2306 throws com.google.protobuf.InvalidProtocolBufferException {
2308 int mutable_bitField0_ = 0;
2309 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2310 com.google.protobuf.UnknownFieldSet.newBuilder();
2312 boolean done = false;
2314 int tag = input.readTag();
2320 if (!parseUnknownField(input, unknownFields,
2321 extensionRegistry, tag)) {
2327 int rawValue = input.readEnum();
2328 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2329 if (value == null) {
2330 unknownFields.mergeVarintField(1, rawValue);
2332 bitField0_ |= 0x00000001;
2338 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = null;
2339 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2340 subBuilder = diagnosticRequest_.toBuilder();
2342 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticControlCommand.PARSER, extensionRegistry);
2343 if (subBuilder != null) {
2344 subBuilder.mergeFrom(diagnosticRequest_);
2345 diagnosticRequest_ = subBuilder.buildPartial();
2347 bitField0_ |= 0x00000002;
2351 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = null;
2352 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2353 subBuilder = passthroughModeRequest_.toBuilder();
2355 passthroughModeRequest_ = input.readMessage(com.openxc.BinaryMessages.PassthroughModeControlCommand.PARSER, extensionRegistry);
2356 if (subBuilder != null) {
2357 subBuilder.mergeFrom(passthroughModeRequest_);
2358 passthroughModeRequest_ = subBuilder.buildPartial();
2360 bitField0_ |= 0x00000004;
2364 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = null;
2365 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2366 subBuilder = acceptanceFilterBypassCommand_.toBuilder();
2368 acceptanceFilterBypassCommand_ = input.readMessage(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.PARSER, extensionRegistry);
2369 if (subBuilder != null) {
2370 subBuilder.mergeFrom(acceptanceFilterBypassCommand_);
2371 acceptanceFilterBypassCommand_ = subBuilder.buildPartial();
2373 bitField0_ |= 0x00000008;
2377 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = null;
2378 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2379 subBuilder = payloadFormatCommand_.toBuilder();
2381 payloadFormatCommand_ = input.readMessage(com.openxc.BinaryMessages.PayloadFormatCommand.PARSER, extensionRegistry);
2382 if (subBuilder != null) {
2383 subBuilder.mergeFrom(payloadFormatCommand_);
2384 payloadFormatCommand_ = subBuilder.buildPartial();
2386 bitField0_ |= 0x00000010;
2390 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = null;
2391 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2392 subBuilder = predefinedObd2RequestsCommand_.toBuilder();
2394 predefinedObd2RequestsCommand_ = input.readMessage(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.PARSER, extensionRegistry);
2395 if (subBuilder != null) {
2396 subBuilder.mergeFrom(predefinedObd2RequestsCommand_);
2397 predefinedObd2RequestsCommand_ = subBuilder.buildPartial();
2399 bitField0_ |= 0x00000020;
2404 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2405 throw e.setUnfinishedMessage(this);
2406 } catch (java.io.IOException e) {
2407 throw new com.google.protobuf.InvalidProtocolBufferException(
2408 e.getMessage()).setUnfinishedMessage(this);
2410 this.unknownFields = unknownFields.build();
2411 makeExtensionsImmutable();
2414 public static final com.google.protobuf.Descriptors.Descriptor
2416 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2419 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2420 internalGetFieldAccessorTable() {
2421 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2422 .ensureFieldAccessorsInitialized(
2423 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2426 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2427 new com.google.protobuf.AbstractParser<ControlCommand>() {
2428 public ControlCommand parsePartialFrom(
2429 com.google.protobuf.CodedInputStream input,
2430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2431 throws com.google.protobuf.InvalidProtocolBufferException {
2432 return new ControlCommand(input, extensionRegistry);
2437 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2442 * Protobuf enum {@code openxc.ControlCommand.Type}
2445 implements com.google.protobuf.ProtocolMessageEnum {
2447 * <code>VERSION = 1;</code>
2451 * <code>DEVICE_ID = 2;</code>
2455 * <code>DIAGNOSTIC = 3;</code>
2459 * <code>PASSTHROUGH = 4;</code>
2463 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2465 ACCEPTANCE_FILTER_BYPASS(4, 5),
2467 * <code>PAYLOAD_FORMAT = 6;</code>
2469 PAYLOAD_FORMAT(5, 6),
2471 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2473 PREDEFINED_OBD2_REQUESTS(6, 7),
2477 * <code>VERSION = 1;</code>
2479 public static final int VERSION_VALUE = 1;
2481 * <code>DEVICE_ID = 2;</code>
2483 public static final int DEVICE_ID_VALUE = 2;
2485 * <code>DIAGNOSTIC = 3;</code>
2487 public static final int DIAGNOSTIC_VALUE = 3;
2489 * <code>PASSTHROUGH = 4;</code>
2491 public static final int PASSTHROUGH_VALUE = 4;
2493 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2495 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
2497 * <code>PAYLOAD_FORMAT = 6;</code>
2499 public static final int PAYLOAD_FORMAT_VALUE = 6;
2501 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2503 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
2506 public final int getNumber() { return value; }
2508 public static Type valueOf(int value) {
2510 case 1: return VERSION;
2511 case 2: return DEVICE_ID;
2512 case 3: return DIAGNOSTIC;
2513 case 4: return PASSTHROUGH;
2514 case 5: return ACCEPTANCE_FILTER_BYPASS;
2515 case 6: return PAYLOAD_FORMAT;
2516 case 7: return PREDEFINED_OBD2_REQUESTS;
2517 default: return null;
2521 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2522 internalGetValueMap() {
2523 return internalValueMap;
2525 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2527 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2528 public Type findValueByNumber(int number) {
2529 return Type.valueOf(number);
2533 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2534 getValueDescriptor() {
2535 return getDescriptor().getValues().get(index);
2537 public final com.google.protobuf.Descriptors.EnumDescriptor
2538 getDescriptorForType() {
2539 return getDescriptor();
2541 public static final com.google.protobuf.Descriptors.EnumDescriptor
2543 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2546 private static final Type[] VALUES = values();
2548 public static Type valueOf(
2549 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2550 if (desc.getType() != getDescriptor()) {
2551 throw new java.lang.IllegalArgumentException(
2552 "EnumValueDescriptor is not for this type.");
2554 return VALUES[desc.getIndex()];
2557 private final int index;
2558 private final int value;
2560 private Type(int index, int value) {
2565 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2568 private int bitField0_;
2569 public static final int TYPE_FIELD_NUMBER = 1;
2570 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2572 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2574 public boolean hasType() {
2575 return ((bitField0_ & 0x00000001) == 0x00000001);
2578 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2580 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2584 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2585 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
2587 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2589 public boolean hasDiagnosticRequest() {
2590 return ((bitField0_ & 0x00000002) == 0x00000002);
2593 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2595 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2596 return diagnosticRequest_;
2599 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2601 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2602 return diagnosticRequest_;
2605 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
2606 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
2608 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2610 public boolean hasPassthroughModeRequest() {
2611 return ((bitField0_ & 0x00000004) == 0x00000004);
2614 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2616 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2617 return passthroughModeRequest_;
2620 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2622 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2623 return passthroughModeRequest_;
2626 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2627 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2629 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2631 public boolean hasAcceptanceFilterBypassCommand() {
2632 return ((bitField0_ & 0x00000008) == 0x00000008);
2635 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2637 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2638 return acceptanceFilterBypassCommand_;
2641 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2643 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2644 return acceptanceFilterBypassCommand_;
2647 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2648 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2650 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2652 public boolean hasPayloadFormatCommand() {
2653 return ((bitField0_ & 0x00000010) == 0x00000010);
2656 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2658 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2659 return payloadFormatCommand_;
2662 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2664 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2665 return payloadFormatCommand_;
2668 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2669 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2671 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2673 public boolean hasPredefinedObd2RequestsCommand() {
2674 return ((bitField0_ & 0x00000020) == 0x00000020);
2677 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2679 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2680 return predefinedObd2RequestsCommand_;
2683 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2685 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2686 return predefinedObd2RequestsCommand_;
2689 private void initFields() {
2690 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2691 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2692 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2693 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2694 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2695 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2697 private byte memoizedIsInitialized = -1;
2698 public final boolean isInitialized() {
2699 byte isInitialized = memoizedIsInitialized;
2700 if (isInitialized == 1) return true;
2701 if (isInitialized == 0) return false;
2703 memoizedIsInitialized = 1;
2707 public void writeTo(com.google.protobuf.CodedOutputStream output)
2708 throws java.io.IOException {
2709 getSerializedSize();
2710 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2711 output.writeEnum(1, type_.getNumber());
2713 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2714 output.writeMessage(2, diagnosticRequest_);
2716 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2717 output.writeMessage(3, passthroughModeRequest_);
2719 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2720 output.writeMessage(4, acceptanceFilterBypassCommand_);
2722 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2723 output.writeMessage(5, payloadFormatCommand_);
2725 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2726 output.writeMessage(6, predefinedObd2RequestsCommand_);
2728 getUnknownFields().writeTo(output);
2731 private int memoizedSerializedSize = -1;
2732 public int getSerializedSize() {
2733 int size = memoizedSerializedSize;
2734 if (size != -1) return size;
2737 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2738 size += com.google.protobuf.CodedOutputStream
2739 .computeEnumSize(1, type_.getNumber());
2741 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2742 size += com.google.protobuf.CodedOutputStream
2743 .computeMessageSize(2, diagnosticRequest_);
2745 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2746 size += com.google.protobuf.CodedOutputStream
2747 .computeMessageSize(3, passthroughModeRequest_);
2749 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2750 size += com.google.protobuf.CodedOutputStream
2751 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2753 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2754 size += com.google.protobuf.CodedOutputStream
2755 .computeMessageSize(5, payloadFormatCommand_);
2757 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2758 size += com.google.protobuf.CodedOutputStream
2759 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2761 size += getUnknownFields().getSerializedSize();
2762 memoizedSerializedSize = size;
2766 private static final long serialVersionUID = 0L;
2768 protected java.lang.Object writeReplace()
2769 throws java.io.ObjectStreamException {
2770 return super.writeReplace();
2773 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2774 com.google.protobuf.ByteString data)
2775 throws com.google.protobuf.InvalidProtocolBufferException {
2776 return PARSER.parseFrom(data);
2778 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2779 com.google.protobuf.ByteString data,
2780 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2781 throws com.google.protobuf.InvalidProtocolBufferException {
2782 return PARSER.parseFrom(data, extensionRegistry);
2784 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2785 throws com.google.protobuf.InvalidProtocolBufferException {
2786 return PARSER.parseFrom(data);
2788 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2790 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2791 throws com.google.protobuf.InvalidProtocolBufferException {
2792 return PARSER.parseFrom(data, extensionRegistry);
2794 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2795 throws java.io.IOException {
2796 return PARSER.parseFrom(input);
2798 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2799 java.io.InputStream input,
2800 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2801 throws java.io.IOException {
2802 return PARSER.parseFrom(input, extensionRegistry);
2804 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2805 throws java.io.IOException {
2806 return PARSER.parseDelimitedFrom(input);
2808 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2809 java.io.InputStream input,
2810 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2811 throws java.io.IOException {
2812 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2814 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2815 com.google.protobuf.CodedInputStream input)
2816 throws java.io.IOException {
2817 return PARSER.parseFrom(input);
2819 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2820 com.google.protobuf.CodedInputStream input,
2821 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2822 throws java.io.IOException {
2823 return PARSER.parseFrom(input, extensionRegistry);
2826 public static Builder newBuilder() { return Builder.create(); }
2827 public Builder newBuilderForType() { return newBuilder(); }
2828 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2829 return newBuilder().mergeFrom(prototype);
2831 public Builder toBuilder() { return newBuilder(this); }
2834 protected Builder newBuilderForType(
2835 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2836 Builder builder = new Builder(parent);
2840 * Protobuf type {@code openxc.ControlCommand}
2842 public static final class Builder extends
2843 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
2844 // @@protoc_insertion_point(builder_implements:openxc.ControlCommand)
2845 com.openxc.BinaryMessages.ControlCommandOrBuilder {
2846 public static final com.google.protobuf.Descriptors.Descriptor
2848 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2851 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2852 internalGetFieldAccessorTable() {
2853 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2854 .ensureFieldAccessorsInitialized(
2855 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2858 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2860 maybeForceBuilderInitialization();
2864 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2866 maybeForceBuilderInitialization();
2868 private void maybeForceBuilderInitialization() {
2869 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2870 getDiagnosticRequestFieldBuilder();
2871 getPassthroughModeRequestFieldBuilder();
2872 getAcceptanceFilterBypassCommandFieldBuilder();
2873 getPayloadFormatCommandFieldBuilder();
2874 getPredefinedObd2RequestsCommandFieldBuilder();
2877 private static Builder create() {
2878 return new Builder();
2881 public Builder clear() {
2883 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2884 bitField0_ = (bitField0_ & ~0x00000001);
2885 if (diagnosticRequestBuilder_ == null) {
2886 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2888 diagnosticRequestBuilder_.clear();
2890 bitField0_ = (bitField0_ & ~0x00000002);
2891 if (passthroughModeRequestBuilder_ == null) {
2892 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2894 passthroughModeRequestBuilder_.clear();
2896 bitField0_ = (bitField0_ & ~0x00000004);
2897 if (acceptanceFilterBypassCommandBuilder_ == null) {
2898 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2900 acceptanceFilterBypassCommandBuilder_.clear();
2902 bitField0_ = (bitField0_ & ~0x00000008);
2903 if (payloadFormatCommandBuilder_ == null) {
2904 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2906 payloadFormatCommandBuilder_.clear();
2908 bitField0_ = (bitField0_ & ~0x00000010);
2909 if (predefinedObd2RequestsCommandBuilder_ == null) {
2910 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2912 predefinedObd2RequestsCommandBuilder_.clear();
2914 bitField0_ = (bitField0_ & ~0x00000020);
2918 public Builder clone() {
2919 return create().mergeFrom(buildPartial());
2922 public com.google.protobuf.Descriptors.Descriptor
2923 getDescriptorForType() {
2924 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2927 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2928 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2931 public com.openxc.BinaryMessages.ControlCommand build() {
2932 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2933 if (!result.isInitialized()) {
2934 throw newUninitializedMessageException(result);
2939 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2940 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2941 int from_bitField0_ = bitField0_;
2942 int to_bitField0_ = 0;
2943 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2944 to_bitField0_ |= 0x00000001;
2946 result.type_ = type_;
2947 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2948 to_bitField0_ |= 0x00000002;
2950 if (diagnosticRequestBuilder_ == null) {
2951 result.diagnosticRequest_ = diagnosticRequest_;
2953 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2955 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2956 to_bitField0_ |= 0x00000004;
2958 if (passthroughModeRequestBuilder_ == null) {
2959 result.passthroughModeRequest_ = passthroughModeRequest_;
2961 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2963 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2964 to_bitField0_ |= 0x00000008;
2966 if (acceptanceFilterBypassCommandBuilder_ == null) {
2967 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2969 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2971 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2972 to_bitField0_ |= 0x00000010;
2974 if (payloadFormatCommandBuilder_ == null) {
2975 result.payloadFormatCommand_ = payloadFormatCommand_;
2977 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
2979 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2980 to_bitField0_ |= 0x00000020;
2982 if (predefinedObd2RequestsCommandBuilder_ == null) {
2983 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
2985 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
2987 result.bitField0_ = to_bitField0_;
2992 public Builder mergeFrom(com.google.protobuf.Message other) {
2993 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2994 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2996 super.mergeFrom(other);
3001 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
3002 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
3003 if (other.hasType()) {
3004 setType(other.getType());
3006 if (other.hasDiagnosticRequest()) {
3007 mergeDiagnosticRequest(other.getDiagnosticRequest());
3009 if (other.hasPassthroughModeRequest()) {
3010 mergePassthroughModeRequest(other.getPassthroughModeRequest());
3012 if (other.hasAcceptanceFilterBypassCommand()) {
3013 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
3015 if (other.hasPayloadFormatCommand()) {
3016 mergePayloadFormatCommand(other.getPayloadFormatCommand());
3018 if (other.hasPredefinedObd2RequestsCommand()) {
3019 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
3021 this.mergeUnknownFields(other.getUnknownFields());
3025 public final boolean isInitialized() {
3029 public Builder mergeFrom(
3030 com.google.protobuf.CodedInputStream input,
3031 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3032 throws java.io.IOException {
3033 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
3035 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3036 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3037 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
3040 if (parsedMessage != null) {
3041 mergeFrom(parsedMessage);
3046 private int bitField0_;
3048 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3050 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3052 public boolean hasType() {
3053 return ((bitField0_ & 0x00000001) == 0x00000001);
3056 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3058 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
3062 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3064 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
3065 if (value == null) {
3066 throw new NullPointerException();
3068 bitField0_ |= 0x00000001;
3074 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3076 public Builder clearType() {
3077 bitField0_ = (bitField0_ & ~0x00000001);
3078 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3083 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3084 private com.google.protobuf.SingleFieldBuilder<
3085 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
3087 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3089 public boolean hasDiagnosticRequest() {
3090 return ((bitField0_ & 0x00000002) == 0x00000002);
3093 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3095 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
3096 if (diagnosticRequestBuilder_ == null) {
3097 return diagnosticRequest_;
3099 return diagnosticRequestBuilder_.getMessage();
3103 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3105 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
3106 if (diagnosticRequestBuilder_ == null) {
3107 if (value == null) {
3108 throw new NullPointerException();
3110 diagnosticRequest_ = value;
3113 diagnosticRequestBuilder_.setMessage(value);
3115 bitField0_ |= 0x00000002;
3119 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3121 public Builder setDiagnosticRequest(
3122 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
3123 if (diagnosticRequestBuilder_ == null) {
3124 diagnosticRequest_ = builderForValue.build();
3127 diagnosticRequestBuilder_.setMessage(builderForValue.build());
3129 bitField0_ |= 0x00000002;
3133 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3135 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
3136 if (diagnosticRequestBuilder_ == null) {
3137 if (((bitField0_ & 0x00000002) == 0x00000002) &&
3138 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
3139 diagnosticRequest_ =
3140 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
3142 diagnosticRequest_ = value;
3146 diagnosticRequestBuilder_.mergeFrom(value);
3148 bitField0_ |= 0x00000002;
3152 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3154 public Builder clearDiagnosticRequest() {
3155 if (diagnosticRequestBuilder_ == null) {
3156 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3159 diagnosticRequestBuilder_.clear();
3161 bitField0_ = (bitField0_ & ~0x00000002);
3165 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3167 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
3168 bitField0_ |= 0x00000002;
3170 return getDiagnosticRequestFieldBuilder().getBuilder();
3173 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3175 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
3176 if (diagnosticRequestBuilder_ != null) {
3177 return diagnosticRequestBuilder_.getMessageOrBuilder();
3179 return diagnosticRequest_;
3183 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3185 private com.google.protobuf.SingleFieldBuilder<
3186 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
3187 getDiagnosticRequestFieldBuilder() {
3188 if (diagnosticRequestBuilder_ == null) {
3189 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3190 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
3191 getDiagnosticRequest(),
3192 getParentForChildren(),
3194 diagnosticRequest_ = null;
3196 return diagnosticRequestBuilder_;
3199 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3200 private com.google.protobuf.SingleFieldBuilder<
3201 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
3203 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3205 public boolean hasPassthroughModeRequest() {
3206 return ((bitField0_ & 0x00000004) == 0x00000004);
3209 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3211 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
3212 if (passthroughModeRequestBuilder_ == null) {
3213 return passthroughModeRequest_;
3215 return passthroughModeRequestBuilder_.getMessage();
3219 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3221 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3222 if (passthroughModeRequestBuilder_ == null) {
3223 if (value == null) {
3224 throw new NullPointerException();
3226 passthroughModeRequest_ = value;
3229 passthroughModeRequestBuilder_.setMessage(value);
3231 bitField0_ |= 0x00000004;
3235 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3237 public Builder setPassthroughModeRequest(
3238 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
3239 if (passthroughModeRequestBuilder_ == null) {
3240 passthroughModeRequest_ = builderForValue.build();
3243 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
3245 bitField0_ |= 0x00000004;
3249 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3251 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3252 if (passthroughModeRequestBuilder_ == null) {
3253 if (((bitField0_ & 0x00000004) == 0x00000004) &&
3254 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
3255 passthroughModeRequest_ =
3256 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
3258 passthroughModeRequest_ = value;
3262 passthroughModeRequestBuilder_.mergeFrom(value);
3264 bitField0_ |= 0x00000004;
3268 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3270 public Builder clearPassthroughModeRequest() {
3271 if (passthroughModeRequestBuilder_ == null) {
3272 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3275 passthroughModeRequestBuilder_.clear();
3277 bitField0_ = (bitField0_ & ~0x00000004);
3281 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3283 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
3284 bitField0_ |= 0x00000004;
3286 return getPassthroughModeRequestFieldBuilder().getBuilder();
3289 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3291 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
3292 if (passthroughModeRequestBuilder_ != null) {
3293 return passthroughModeRequestBuilder_.getMessageOrBuilder();
3295 return passthroughModeRequest_;
3299 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3301 private com.google.protobuf.SingleFieldBuilder<
3302 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
3303 getPassthroughModeRequestFieldBuilder() {
3304 if (passthroughModeRequestBuilder_ == null) {
3305 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3306 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
3307 getPassthroughModeRequest(),
3308 getParentForChildren(),
3310 passthroughModeRequest_ = null;
3312 return passthroughModeRequestBuilder_;
3315 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3316 private com.google.protobuf.SingleFieldBuilder<
3317 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
3319 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3321 public boolean hasAcceptanceFilterBypassCommand() {
3322 return ((bitField0_ & 0x00000008) == 0x00000008);
3325 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3327 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
3328 if (acceptanceFilterBypassCommandBuilder_ == null) {
3329 return acceptanceFilterBypassCommand_;
3331 return acceptanceFilterBypassCommandBuilder_.getMessage();
3335 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3337 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3338 if (acceptanceFilterBypassCommandBuilder_ == null) {
3339 if (value == null) {
3340 throw new NullPointerException();
3342 acceptanceFilterBypassCommand_ = value;
3345 acceptanceFilterBypassCommandBuilder_.setMessage(value);
3347 bitField0_ |= 0x00000008;
3351 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3353 public Builder setAcceptanceFilterBypassCommand(
3354 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
3355 if (acceptanceFilterBypassCommandBuilder_ == null) {
3356 acceptanceFilterBypassCommand_ = builderForValue.build();
3359 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
3361 bitField0_ |= 0x00000008;
3365 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3367 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3368 if (acceptanceFilterBypassCommandBuilder_ == null) {
3369 if (((bitField0_ & 0x00000008) == 0x00000008) &&
3370 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
3371 acceptanceFilterBypassCommand_ =
3372 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
3374 acceptanceFilterBypassCommand_ = value;
3378 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
3380 bitField0_ |= 0x00000008;
3384 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3386 public Builder clearAcceptanceFilterBypassCommand() {
3387 if (acceptanceFilterBypassCommandBuilder_ == null) {
3388 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3391 acceptanceFilterBypassCommandBuilder_.clear();
3393 bitField0_ = (bitField0_ & ~0x00000008);
3397 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3399 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
3400 bitField0_ |= 0x00000008;
3402 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
3405 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3407 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
3408 if (acceptanceFilterBypassCommandBuilder_ != null) {
3409 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
3411 return acceptanceFilterBypassCommand_;
3415 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3417 private com.google.protobuf.SingleFieldBuilder<
3418 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
3419 getAcceptanceFilterBypassCommandFieldBuilder() {
3420 if (acceptanceFilterBypassCommandBuilder_ == null) {
3421 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3422 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
3423 getAcceptanceFilterBypassCommand(),
3424 getParentForChildren(),
3426 acceptanceFilterBypassCommand_ = null;
3428 return acceptanceFilterBypassCommandBuilder_;
3431 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3432 private com.google.protobuf.SingleFieldBuilder<
3433 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
3435 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3437 public boolean hasPayloadFormatCommand() {
3438 return ((bitField0_ & 0x00000010) == 0x00000010);
3441 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3443 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
3444 if (payloadFormatCommandBuilder_ == null) {
3445 return payloadFormatCommand_;
3447 return payloadFormatCommandBuilder_.getMessage();
3451 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3453 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3454 if (payloadFormatCommandBuilder_ == null) {
3455 if (value == null) {
3456 throw new NullPointerException();
3458 payloadFormatCommand_ = value;
3461 payloadFormatCommandBuilder_.setMessage(value);
3463 bitField0_ |= 0x00000010;
3467 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3469 public Builder setPayloadFormatCommand(
3470 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
3471 if (payloadFormatCommandBuilder_ == null) {
3472 payloadFormatCommand_ = builderForValue.build();
3475 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
3477 bitField0_ |= 0x00000010;
3481 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3483 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3484 if (payloadFormatCommandBuilder_ == null) {
3485 if (((bitField0_ & 0x00000010) == 0x00000010) &&
3486 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
3487 payloadFormatCommand_ =
3488 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
3490 payloadFormatCommand_ = value;
3494 payloadFormatCommandBuilder_.mergeFrom(value);
3496 bitField0_ |= 0x00000010;
3500 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3502 public Builder clearPayloadFormatCommand() {
3503 if (payloadFormatCommandBuilder_ == null) {
3504 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3507 payloadFormatCommandBuilder_.clear();
3509 bitField0_ = (bitField0_ & ~0x00000010);
3513 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3515 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
3516 bitField0_ |= 0x00000010;
3518 return getPayloadFormatCommandFieldBuilder().getBuilder();
3521 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3523 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
3524 if (payloadFormatCommandBuilder_ != null) {
3525 return payloadFormatCommandBuilder_.getMessageOrBuilder();
3527 return payloadFormatCommand_;
3531 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3533 private com.google.protobuf.SingleFieldBuilder<
3534 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
3535 getPayloadFormatCommandFieldBuilder() {
3536 if (payloadFormatCommandBuilder_ == null) {
3537 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3538 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
3539 getPayloadFormatCommand(),
3540 getParentForChildren(),
3542 payloadFormatCommand_ = null;
3544 return payloadFormatCommandBuilder_;
3547 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3548 private com.google.protobuf.SingleFieldBuilder<
3549 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
3551 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3553 public boolean hasPredefinedObd2RequestsCommand() {
3554 return ((bitField0_ & 0x00000020) == 0x00000020);
3557 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3559 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
3560 if (predefinedObd2RequestsCommandBuilder_ == null) {
3561 return predefinedObd2RequestsCommand_;
3563 return predefinedObd2RequestsCommandBuilder_.getMessage();
3567 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3569 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3570 if (predefinedObd2RequestsCommandBuilder_ == null) {
3571 if (value == null) {
3572 throw new NullPointerException();
3574 predefinedObd2RequestsCommand_ = value;
3577 predefinedObd2RequestsCommandBuilder_.setMessage(value);
3579 bitField0_ |= 0x00000020;
3583 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3585 public Builder setPredefinedObd2RequestsCommand(
3586 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
3587 if (predefinedObd2RequestsCommandBuilder_ == null) {
3588 predefinedObd2RequestsCommand_ = builderForValue.build();
3591 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
3593 bitField0_ |= 0x00000020;
3597 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3599 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3600 if (predefinedObd2RequestsCommandBuilder_ == null) {
3601 if (((bitField0_ & 0x00000020) == 0x00000020) &&
3602 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
3603 predefinedObd2RequestsCommand_ =
3604 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3606 predefinedObd2RequestsCommand_ = value;
3610 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3612 bitField0_ |= 0x00000020;
3616 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3618 public Builder clearPredefinedObd2RequestsCommand() {
3619 if (predefinedObd2RequestsCommandBuilder_ == null) {
3620 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3623 predefinedObd2RequestsCommandBuilder_.clear();
3625 bitField0_ = (bitField0_ & ~0x00000020);
3629 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3631 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3632 bitField0_ |= 0x00000020;
3634 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3637 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3639 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3640 if (predefinedObd2RequestsCommandBuilder_ != null) {
3641 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3643 return predefinedObd2RequestsCommand_;
3647 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3649 private com.google.protobuf.SingleFieldBuilder<
3650 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3651 getPredefinedObd2RequestsCommandFieldBuilder() {
3652 if (predefinedObd2RequestsCommandBuilder_ == null) {
3653 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3654 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3655 getPredefinedObd2RequestsCommand(),
3656 getParentForChildren(),
3658 predefinedObd2RequestsCommand_ = null;
3660 return predefinedObd2RequestsCommandBuilder_;
3663 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3667 defaultInstance = new ControlCommand(true);
3668 defaultInstance.initFields();
3671 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3674 public interface DiagnosticControlCommandOrBuilder extends
3675 // @@protoc_insertion_point(interface_extends:openxc.DiagnosticControlCommand)
3676 com.google.protobuf.MessageOrBuilder {
3679 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3681 boolean hasRequest();
3683 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3685 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3687 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3689 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3692 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3694 boolean hasAction();
3696 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3698 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3701 * Protobuf type {@code openxc.DiagnosticControlCommand}
3703 public static final class DiagnosticControlCommand extends
3704 com.google.protobuf.GeneratedMessage implements
3705 // @@protoc_insertion_point(message_implements:openxc.DiagnosticControlCommand)
3706 DiagnosticControlCommandOrBuilder {
3707 // Use DiagnosticControlCommand.newBuilder() to construct.
3708 private DiagnosticControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3710 this.unknownFields = builder.getUnknownFields();
3712 private DiagnosticControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3714 private static final DiagnosticControlCommand defaultInstance;
3715 public static DiagnosticControlCommand getDefaultInstance() {
3716 return defaultInstance;
3719 public DiagnosticControlCommand getDefaultInstanceForType() {
3720 return defaultInstance;
3723 private final com.google.protobuf.UnknownFieldSet unknownFields;
3725 public final com.google.protobuf.UnknownFieldSet
3726 getUnknownFields() {
3727 return this.unknownFields;
3729 private DiagnosticControlCommand(
3730 com.google.protobuf.CodedInputStream input,
3731 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3732 throws com.google.protobuf.InvalidProtocolBufferException {
3734 int mutable_bitField0_ = 0;
3735 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3736 com.google.protobuf.UnknownFieldSet.newBuilder();
3738 boolean done = false;
3740 int tag = input.readTag();
3746 if (!parseUnknownField(input, unknownFields,
3747 extensionRegistry, tag)) {
3753 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
3754 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3755 subBuilder = request_.toBuilder();
3757 request_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
3758 if (subBuilder != null) {
3759 subBuilder.mergeFrom(request_);
3760 request_ = subBuilder.buildPartial();
3762 bitField0_ |= 0x00000001;
3766 int rawValue = input.readEnum();
3767 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3768 if (value == null) {
3769 unknownFields.mergeVarintField(2, rawValue);
3771 bitField0_ |= 0x00000002;
3778 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3779 throw e.setUnfinishedMessage(this);
3780 } catch (java.io.IOException e) {
3781 throw new com.google.protobuf.InvalidProtocolBufferException(
3782 e.getMessage()).setUnfinishedMessage(this);
3784 this.unknownFields = unknownFields.build();
3785 makeExtensionsImmutable();
3788 public static final com.google.protobuf.Descriptors.Descriptor
3790 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3793 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3794 internalGetFieldAccessorTable() {
3795 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3796 .ensureFieldAccessorsInitialized(
3797 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3800 public static com.google.protobuf.Parser<DiagnosticControlCommand> PARSER =
3801 new com.google.protobuf.AbstractParser<DiagnosticControlCommand>() {
3802 public DiagnosticControlCommand parsePartialFrom(
3803 com.google.protobuf.CodedInputStream input,
3804 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3805 throws com.google.protobuf.InvalidProtocolBufferException {
3806 return new DiagnosticControlCommand(input, extensionRegistry);
3811 public com.google.protobuf.Parser<DiagnosticControlCommand> getParserForType() {
3816 * Protobuf enum {@code openxc.DiagnosticControlCommand.Action}
3819 implements com.google.protobuf.ProtocolMessageEnum {
3821 * <code>ADD = 1;</code>
3825 * <code>CANCEL = 2;</code>
3831 * <code>ADD = 1;</code>
3833 public static final int ADD_VALUE = 1;
3835 * <code>CANCEL = 2;</code>
3837 public static final int CANCEL_VALUE = 2;
3840 public final int getNumber() { return value; }
3842 public static Action valueOf(int value) {
3845 case 2: return CANCEL;
3846 default: return null;
3850 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3851 internalGetValueMap() {
3852 return internalValueMap;
3854 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3856 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3857 public Action findValueByNumber(int number) {
3858 return Action.valueOf(number);
3862 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3863 getValueDescriptor() {
3864 return getDescriptor().getValues().get(index);
3866 public final com.google.protobuf.Descriptors.EnumDescriptor
3867 getDescriptorForType() {
3868 return getDescriptor();
3870 public static final com.google.protobuf.Descriptors.EnumDescriptor
3872 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3875 private static final Action[] VALUES = values();
3877 public static Action valueOf(
3878 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3879 if (desc.getType() != getDescriptor()) {
3880 throw new java.lang.IllegalArgumentException(
3881 "EnumValueDescriptor is not for this type.");
3883 return VALUES[desc.getIndex()];
3886 private final int index;
3887 private final int value;
3889 private Action(int index, int value) {
3894 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3897 private int bitField0_;
3898 public static final int REQUEST_FIELD_NUMBER = 1;
3899 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3901 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3903 public boolean hasRequest() {
3904 return ((bitField0_ & 0x00000001) == 0x00000001);
3907 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3909 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3913 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3915 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3919 public static final int ACTION_FIELD_NUMBER = 2;
3920 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3922 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3924 public boolean hasAction() {
3925 return ((bitField0_ & 0x00000002) == 0x00000002);
3928 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3930 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3934 private void initFields() {
3935 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3936 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3938 private byte memoizedIsInitialized = -1;
3939 public final boolean isInitialized() {
3940 byte isInitialized = memoizedIsInitialized;
3941 if (isInitialized == 1) return true;
3942 if (isInitialized == 0) return false;
3944 memoizedIsInitialized = 1;
3948 public void writeTo(com.google.protobuf.CodedOutputStream output)
3949 throws java.io.IOException {
3950 getSerializedSize();
3951 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3952 output.writeMessage(1, request_);
3954 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3955 output.writeEnum(2, action_.getNumber());
3957 getUnknownFields().writeTo(output);
3960 private int memoizedSerializedSize = -1;
3961 public int getSerializedSize() {
3962 int size = memoizedSerializedSize;
3963 if (size != -1) return size;
3966 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3967 size += com.google.protobuf.CodedOutputStream
3968 .computeMessageSize(1, request_);
3970 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3971 size += com.google.protobuf.CodedOutputStream
3972 .computeEnumSize(2, action_.getNumber());
3974 size += getUnknownFields().getSerializedSize();
3975 memoizedSerializedSize = size;
3979 private static final long serialVersionUID = 0L;
3981 protected java.lang.Object writeReplace()
3982 throws java.io.ObjectStreamException {
3983 return super.writeReplace();
3986 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3987 com.google.protobuf.ByteString data)
3988 throws com.google.protobuf.InvalidProtocolBufferException {
3989 return PARSER.parseFrom(data);
3991 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3992 com.google.protobuf.ByteString data,
3993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3994 throws com.google.protobuf.InvalidProtocolBufferException {
3995 return PARSER.parseFrom(data, extensionRegistry);
3997 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3998 throws com.google.protobuf.InvalidProtocolBufferException {
3999 return PARSER.parseFrom(data);
4001 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4003 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4004 throws com.google.protobuf.InvalidProtocolBufferException {
4005 return PARSER.parseFrom(data, extensionRegistry);
4007 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
4008 throws java.io.IOException {
4009 return PARSER.parseFrom(input);
4011 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4012 java.io.InputStream input,
4013 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4014 throws java.io.IOException {
4015 return PARSER.parseFrom(input, extensionRegistry);
4017 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
4018 throws java.io.IOException {
4019 return PARSER.parseDelimitedFrom(input);
4021 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
4022 java.io.InputStream input,
4023 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4024 throws java.io.IOException {
4025 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4027 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4028 com.google.protobuf.CodedInputStream input)
4029 throws java.io.IOException {
4030 return PARSER.parseFrom(input);
4032 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4033 com.google.protobuf.CodedInputStream input,
4034 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4035 throws java.io.IOException {
4036 return PARSER.parseFrom(input, extensionRegistry);
4039 public static Builder newBuilder() { return Builder.create(); }
4040 public Builder newBuilderForType() { return newBuilder(); }
4041 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
4042 return newBuilder().mergeFrom(prototype);
4044 public Builder toBuilder() { return newBuilder(this); }
4047 protected Builder newBuilderForType(
4048 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4049 Builder builder = new Builder(parent);
4053 * Protobuf type {@code openxc.DiagnosticControlCommand}
4055 public static final class Builder extends
4056 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
4057 // @@protoc_insertion_point(builder_implements:openxc.DiagnosticControlCommand)
4058 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
4059 public static final com.google.protobuf.Descriptors.Descriptor
4061 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
4064 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4065 internalGetFieldAccessorTable() {
4066 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
4067 .ensureFieldAccessorsInitialized(
4068 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
4071 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
4073 maybeForceBuilderInitialization();
4077 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4079 maybeForceBuilderInitialization();
4081 private void maybeForceBuilderInitialization() {
4082 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4083 getRequestFieldBuilder();
4086 private static Builder create() {
4087 return new Builder();
4090 public Builder clear() {
4092 if (requestBuilder_ == null) {
4093 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4095 requestBuilder_.clear();
4097 bitField0_ = (bitField0_ & ~0x00000001);
4098 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4099 bitField0_ = (bitField0_ & ~0x00000002);
4103 public Builder clone() {
4104 return create().mergeFrom(buildPartial());
4107 public com.google.protobuf.Descriptors.Descriptor
4108 getDescriptorForType() {
4109 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
4112 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
4113 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
4116 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
4117 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
4118 if (!result.isInitialized()) {
4119 throw newUninitializedMessageException(result);
4124 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
4125 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
4126 int from_bitField0_ = bitField0_;
4127 int to_bitField0_ = 0;
4128 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4129 to_bitField0_ |= 0x00000001;
4131 if (requestBuilder_ == null) {
4132 result.request_ = request_;
4134 result.request_ = requestBuilder_.build();
4136 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4137 to_bitField0_ |= 0x00000002;
4139 result.action_ = action_;
4140 result.bitField0_ = to_bitField0_;
4145 public Builder mergeFrom(com.google.protobuf.Message other) {
4146 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
4147 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
4149 super.mergeFrom(other);
4154 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
4155 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
4156 if (other.hasRequest()) {
4157 mergeRequest(other.getRequest());
4159 if (other.hasAction()) {
4160 setAction(other.getAction());
4162 this.mergeUnknownFields(other.getUnknownFields());
4166 public final boolean isInitialized() {
4170 public Builder mergeFrom(
4171 com.google.protobuf.CodedInputStream input,
4172 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4173 throws java.io.IOException {
4174 com.openxc.BinaryMessages.DiagnosticControlCommand parsedMessage = null;
4176 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4177 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4178 parsedMessage = (com.openxc.BinaryMessages.DiagnosticControlCommand) e.getUnfinishedMessage();
4181 if (parsedMessage != null) {
4182 mergeFrom(parsedMessage);
4187 private int bitField0_;
4189 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4190 private com.google.protobuf.SingleFieldBuilder<
4191 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
4193 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4195 public boolean hasRequest() {
4196 return ((bitField0_ & 0x00000001) == 0x00000001);
4199 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4201 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
4202 if (requestBuilder_ == null) {
4205 return requestBuilder_.getMessage();
4209 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4211 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4212 if (requestBuilder_ == null) {
4213 if (value == null) {
4214 throw new NullPointerException();
4219 requestBuilder_.setMessage(value);
4221 bitField0_ |= 0x00000001;
4225 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4227 public Builder setRequest(
4228 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
4229 if (requestBuilder_ == null) {
4230 request_ = builderForValue.build();
4233 requestBuilder_.setMessage(builderForValue.build());
4235 bitField0_ |= 0x00000001;
4239 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4241 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4242 if (requestBuilder_ == null) {
4243 if (((bitField0_ & 0x00000001) == 0x00000001) &&
4244 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
4246 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
4252 requestBuilder_.mergeFrom(value);
4254 bitField0_ |= 0x00000001;
4258 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4260 public Builder clearRequest() {
4261 if (requestBuilder_ == null) {
4262 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4265 requestBuilder_.clear();
4267 bitField0_ = (bitField0_ & ~0x00000001);
4271 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4273 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
4274 bitField0_ |= 0x00000001;
4276 return getRequestFieldBuilder().getBuilder();
4279 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4281 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
4282 if (requestBuilder_ != null) {
4283 return requestBuilder_.getMessageOrBuilder();
4289 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4291 private com.google.protobuf.SingleFieldBuilder<
4292 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
4293 getRequestFieldBuilder() {
4294 if (requestBuilder_ == null) {
4295 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4296 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
4298 getParentForChildren(),
4302 return requestBuilder_;
4305 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4307 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4309 public boolean hasAction() {
4310 return ((bitField0_ & 0x00000002) == 0x00000002);
4313 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4315 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
4319 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4321 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
4322 if (value == null) {
4323 throw new NullPointerException();
4325 bitField0_ |= 0x00000002;
4331 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4333 public Builder clearAction() {
4334 bitField0_ = (bitField0_ & ~0x00000002);
4335 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4340 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
4344 defaultInstance = new DiagnosticControlCommand(true);
4345 defaultInstance.initFields();
4348 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
4351 public interface PassthroughModeControlCommandOrBuilder extends
4352 // @@protoc_insertion_point(interface_extends:openxc.PassthroughModeControlCommand)
4353 com.google.protobuf.MessageOrBuilder {
4356 * <code>optional int32 bus = 1;</code>
4360 * <code>optional int32 bus = 1;</code>
4365 * <code>optional bool enabled = 2;</code>
4367 boolean hasEnabled();
4369 * <code>optional bool enabled = 2;</code>
4371 boolean getEnabled();
4374 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4376 public static final class PassthroughModeControlCommand extends
4377 com.google.protobuf.GeneratedMessage implements
4378 // @@protoc_insertion_point(message_implements:openxc.PassthroughModeControlCommand)
4379 PassthroughModeControlCommandOrBuilder {
4380 // Use PassthroughModeControlCommand.newBuilder() to construct.
4381 private PassthroughModeControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4383 this.unknownFields = builder.getUnknownFields();
4385 private PassthroughModeControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4387 private static final PassthroughModeControlCommand defaultInstance;
4388 public static PassthroughModeControlCommand getDefaultInstance() {
4389 return defaultInstance;
4392 public PassthroughModeControlCommand getDefaultInstanceForType() {
4393 return defaultInstance;
4396 private final com.google.protobuf.UnknownFieldSet unknownFields;
4398 public final com.google.protobuf.UnknownFieldSet
4399 getUnknownFields() {
4400 return this.unknownFields;
4402 private PassthroughModeControlCommand(
4403 com.google.protobuf.CodedInputStream input,
4404 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4405 throws com.google.protobuf.InvalidProtocolBufferException {
4407 int mutable_bitField0_ = 0;
4408 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4409 com.google.protobuf.UnknownFieldSet.newBuilder();
4411 boolean done = false;
4413 int tag = input.readTag();
4419 if (!parseUnknownField(input, unknownFields,
4420 extensionRegistry, tag)) {
4426 bitField0_ |= 0x00000001;
4427 bus_ = input.readInt32();
4431 bitField0_ |= 0x00000002;
4432 enabled_ = input.readBool();
4437 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4438 throw e.setUnfinishedMessage(this);
4439 } catch (java.io.IOException e) {
4440 throw new com.google.protobuf.InvalidProtocolBufferException(
4441 e.getMessage()).setUnfinishedMessage(this);
4443 this.unknownFields = unknownFields.build();
4444 makeExtensionsImmutable();
4447 public static final com.google.protobuf.Descriptors.Descriptor
4449 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4452 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4453 internalGetFieldAccessorTable() {
4454 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4455 .ensureFieldAccessorsInitialized(
4456 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4459 public static com.google.protobuf.Parser<PassthroughModeControlCommand> PARSER =
4460 new com.google.protobuf.AbstractParser<PassthroughModeControlCommand>() {
4461 public PassthroughModeControlCommand parsePartialFrom(
4462 com.google.protobuf.CodedInputStream input,
4463 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4464 throws com.google.protobuf.InvalidProtocolBufferException {
4465 return new PassthroughModeControlCommand(input, extensionRegistry);
4470 public com.google.protobuf.Parser<PassthroughModeControlCommand> getParserForType() {
4474 private int bitField0_;
4475 public static final int BUS_FIELD_NUMBER = 1;
4478 * <code>optional int32 bus = 1;</code>
4480 public boolean hasBus() {
4481 return ((bitField0_ & 0x00000001) == 0x00000001);
4484 * <code>optional int32 bus = 1;</code>
4486 public int getBus() {
4490 public static final int ENABLED_FIELD_NUMBER = 2;
4491 private boolean enabled_;
4493 * <code>optional bool enabled = 2;</code>
4495 public boolean hasEnabled() {
4496 return ((bitField0_ & 0x00000002) == 0x00000002);
4499 * <code>optional bool enabled = 2;</code>
4501 public boolean getEnabled() {
4505 private void initFields() {
4509 private byte memoizedIsInitialized = -1;
4510 public final boolean isInitialized() {
4511 byte isInitialized = memoizedIsInitialized;
4512 if (isInitialized == 1) return true;
4513 if (isInitialized == 0) return false;
4515 memoizedIsInitialized = 1;
4519 public void writeTo(com.google.protobuf.CodedOutputStream output)
4520 throws java.io.IOException {
4521 getSerializedSize();
4522 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4523 output.writeInt32(1, bus_);
4525 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4526 output.writeBool(2, enabled_);
4528 getUnknownFields().writeTo(output);
4531 private int memoizedSerializedSize = -1;
4532 public int getSerializedSize() {
4533 int size = memoizedSerializedSize;
4534 if (size != -1) return size;
4537 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4538 size += com.google.protobuf.CodedOutputStream
4539 .computeInt32Size(1, bus_);
4541 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4542 size += com.google.protobuf.CodedOutputStream
4543 .computeBoolSize(2, enabled_);
4545 size += getUnknownFields().getSerializedSize();
4546 memoizedSerializedSize = size;
4550 private static final long serialVersionUID = 0L;
4552 protected java.lang.Object writeReplace()
4553 throws java.io.ObjectStreamException {
4554 return super.writeReplace();
4557 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4558 com.google.protobuf.ByteString data)
4559 throws com.google.protobuf.InvalidProtocolBufferException {
4560 return PARSER.parseFrom(data);
4562 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4563 com.google.protobuf.ByteString data,
4564 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4565 throws com.google.protobuf.InvalidProtocolBufferException {
4566 return PARSER.parseFrom(data, extensionRegistry);
4568 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
4569 throws com.google.protobuf.InvalidProtocolBufferException {
4570 return PARSER.parseFrom(data);
4572 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4575 throws com.google.protobuf.InvalidProtocolBufferException {
4576 return PARSER.parseFrom(data, extensionRegistry);
4578 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
4579 throws java.io.IOException {
4580 return PARSER.parseFrom(input);
4582 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4583 java.io.InputStream input,
4584 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4585 throws java.io.IOException {
4586 return PARSER.parseFrom(input, extensionRegistry);
4588 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
4589 throws java.io.IOException {
4590 return PARSER.parseDelimitedFrom(input);
4592 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
4593 java.io.InputStream input,
4594 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4595 throws java.io.IOException {
4596 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4598 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4599 com.google.protobuf.CodedInputStream input)
4600 throws java.io.IOException {
4601 return PARSER.parseFrom(input);
4603 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4604 com.google.protobuf.CodedInputStream input,
4605 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4606 throws java.io.IOException {
4607 return PARSER.parseFrom(input, extensionRegistry);
4610 public static Builder newBuilder() { return Builder.create(); }
4611 public Builder newBuilderForType() { return newBuilder(); }
4612 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
4613 return newBuilder().mergeFrom(prototype);
4615 public Builder toBuilder() { return newBuilder(this); }
4618 protected Builder newBuilderForType(
4619 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4620 Builder builder = new Builder(parent);
4624 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4626 public static final class Builder extends
4627 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
4628 // @@protoc_insertion_point(builder_implements:openxc.PassthroughModeControlCommand)
4629 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
4630 public static final com.google.protobuf.Descriptors.Descriptor
4632 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4635 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4636 internalGetFieldAccessorTable() {
4637 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4638 .ensureFieldAccessorsInitialized(
4639 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4642 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4644 maybeForceBuilderInitialization();
4648 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4650 maybeForceBuilderInitialization();
4652 private void maybeForceBuilderInitialization() {
4653 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4656 private static Builder create() {
4657 return new Builder();
4660 public Builder clear() {
4663 bitField0_ = (bitField0_ & ~0x00000001);
4665 bitField0_ = (bitField0_ & ~0x00000002);
4669 public Builder clone() {
4670 return create().mergeFrom(buildPartial());
4673 public com.google.protobuf.Descriptors.Descriptor
4674 getDescriptorForType() {
4675 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4678 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4679 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4682 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4683 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4684 if (!result.isInitialized()) {
4685 throw newUninitializedMessageException(result);
4690 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4691 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4692 int from_bitField0_ = bitField0_;
4693 int to_bitField0_ = 0;
4694 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4695 to_bitField0_ |= 0x00000001;
4698 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4699 to_bitField0_ |= 0x00000002;
4701 result.enabled_ = enabled_;
4702 result.bitField0_ = to_bitField0_;
4707 public Builder mergeFrom(com.google.protobuf.Message other) {
4708 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4709 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4711 super.mergeFrom(other);
4716 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4717 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4718 if (other.hasBus()) {
4719 setBus(other.getBus());
4721 if (other.hasEnabled()) {
4722 setEnabled(other.getEnabled());
4724 this.mergeUnknownFields(other.getUnknownFields());
4728 public final boolean isInitialized() {
4732 public Builder mergeFrom(
4733 com.google.protobuf.CodedInputStream input,
4734 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4735 throws java.io.IOException {
4736 com.openxc.BinaryMessages.PassthroughModeControlCommand parsedMessage = null;
4738 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4739 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4740 parsedMessage = (com.openxc.BinaryMessages.PassthroughModeControlCommand) e.getUnfinishedMessage();
4743 if (parsedMessage != null) {
4744 mergeFrom(parsedMessage);
4749 private int bitField0_;
4753 * <code>optional int32 bus = 1;</code>
4755 public boolean hasBus() {
4756 return ((bitField0_ & 0x00000001) == 0x00000001);
4759 * <code>optional int32 bus = 1;</code>
4761 public int getBus() {
4765 * <code>optional int32 bus = 1;</code>
4767 public Builder setBus(int value) {
4768 bitField0_ |= 0x00000001;
4774 * <code>optional int32 bus = 1;</code>
4776 public Builder clearBus() {
4777 bitField0_ = (bitField0_ & ~0x00000001);
4783 private boolean enabled_ ;
4785 * <code>optional bool enabled = 2;</code>
4787 public boolean hasEnabled() {
4788 return ((bitField0_ & 0x00000002) == 0x00000002);
4791 * <code>optional bool enabled = 2;</code>
4793 public boolean getEnabled() {
4797 * <code>optional bool enabled = 2;</code>
4799 public Builder setEnabled(boolean value) {
4800 bitField0_ |= 0x00000002;
4806 * <code>optional bool enabled = 2;</code>
4808 public Builder clearEnabled() {
4809 bitField0_ = (bitField0_ & ~0x00000002);
4815 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4819 defaultInstance = new PassthroughModeControlCommand(true);
4820 defaultInstance.initFields();
4823 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4826 public interface AcceptanceFilterBypassCommandOrBuilder extends
4827 // @@protoc_insertion_point(interface_extends:openxc.AcceptanceFilterBypassCommand)
4828 com.google.protobuf.MessageOrBuilder {
4831 * <code>optional int32 bus = 1;</code>
4835 * <code>optional int32 bus = 1;</code>
4840 * <code>optional bool bypass = 2;</code>
4842 boolean hasBypass();
4844 * <code>optional bool bypass = 2;</code>
4846 boolean getBypass();
4849 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4851 public static final class AcceptanceFilterBypassCommand extends
4852 com.google.protobuf.GeneratedMessage implements
4853 // @@protoc_insertion_point(message_implements:openxc.AcceptanceFilterBypassCommand)
4854 AcceptanceFilterBypassCommandOrBuilder {
4855 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4856 private AcceptanceFilterBypassCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4858 this.unknownFields = builder.getUnknownFields();
4860 private AcceptanceFilterBypassCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4862 private static final AcceptanceFilterBypassCommand defaultInstance;
4863 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4864 return defaultInstance;
4867 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4868 return defaultInstance;
4871 private final com.google.protobuf.UnknownFieldSet unknownFields;
4873 public final com.google.protobuf.UnknownFieldSet
4874 getUnknownFields() {
4875 return this.unknownFields;
4877 private AcceptanceFilterBypassCommand(
4878 com.google.protobuf.CodedInputStream input,
4879 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4880 throws com.google.protobuf.InvalidProtocolBufferException {
4882 int mutable_bitField0_ = 0;
4883 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4884 com.google.protobuf.UnknownFieldSet.newBuilder();
4886 boolean done = false;
4888 int tag = input.readTag();
4894 if (!parseUnknownField(input, unknownFields,
4895 extensionRegistry, tag)) {
4901 bitField0_ |= 0x00000001;
4902 bus_ = input.readInt32();
4906 bitField0_ |= 0x00000002;
4907 bypass_ = input.readBool();
4912 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4913 throw e.setUnfinishedMessage(this);
4914 } catch (java.io.IOException e) {
4915 throw new com.google.protobuf.InvalidProtocolBufferException(
4916 e.getMessage()).setUnfinishedMessage(this);
4918 this.unknownFields = unknownFields.build();
4919 makeExtensionsImmutable();
4922 public static final com.google.protobuf.Descriptors.Descriptor
4924 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4927 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4928 internalGetFieldAccessorTable() {
4929 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4930 .ensureFieldAccessorsInitialized(
4931 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4934 public static com.google.protobuf.Parser<AcceptanceFilterBypassCommand> PARSER =
4935 new com.google.protobuf.AbstractParser<AcceptanceFilterBypassCommand>() {
4936 public AcceptanceFilterBypassCommand parsePartialFrom(
4937 com.google.protobuf.CodedInputStream input,
4938 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4939 throws com.google.protobuf.InvalidProtocolBufferException {
4940 return new AcceptanceFilterBypassCommand(input, extensionRegistry);
4945 public com.google.protobuf.Parser<AcceptanceFilterBypassCommand> getParserForType() {
4949 private int bitField0_;
4950 public static final int BUS_FIELD_NUMBER = 1;
4953 * <code>optional int32 bus = 1;</code>
4955 public boolean hasBus() {
4956 return ((bitField0_ & 0x00000001) == 0x00000001);
4959 * <code>optional int32 bus = 1;</code>
4961 public int getBus() {
4965 public static final int BYPASS_FIELD_NUMBER = 2;
4966 private boolean bypass_;
4968 * <code>optional bool bypass = 2;</code>
4970 public boolean hasBypass() {
4971 return ((bitField0_ & 0x00000002) == 0x00000002);
4974 * <code>optional bool bypass = 2;</code>
4976 public boolean getBypass() {
4980 private void initFields() {
4984 private byte memoizedIsInitialized = -1;
4985 public final boolean isInitialized() {
4986 byte isInitialized = memoizedIsInitialized;
4987 if (isInitialized == 1) return true;
4988 if (isInitialized == 0) return false;
4990 memoizedIsInitialized = 1;
4994 public void writeTo(com.google.protobuf.CodedOutputStream output)
4995 throws java.io.IOException {
4996 getSerializedSize();
4997 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4998 output.writeInt32(1, bus_);
5000 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5001 output.writeBool(2, bypass_);
5003 getUnknownFields().writeTo(output);
5006 private int memoizedSerializedSize = -1;
5007 public int getSerializedSize() {
5008 int size = memoizedSerializedSize;
5009 if (size != -1) return size;
5012 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5013 size += com.google.protobuf.CodedOutputStream
5014 .computeInt32Size(1, bus_);
5016 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5017 size += com.google.protobuf.CodedOutputStream
5018 .computeBoolSize(2, bypass_);
5020 size += getUnknownFields().getSerializedSize();
5021 memoizedSerializedSize = size;
5025 private static final long serialVersionUID = 0L;
5027 protected java.lang.Object writeReplace()
5028 throws java.io.ObjectStreamException {
5029 return super.writeReplace();
5032 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5033 com.google.protobuf.ByteString data)
5034 throws com.google.protobuf.InvalidProtocolBufferException {
5035 return PARSER.parseFrom(data);
5037 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5038 com.google.protobuf.ByteString data,
5039 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5040 throws com.google.protobuf.InvalidProtocolBufferException {
5041 return PARSER.parseFrom(data, extensionRegistry);
5043 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
5044 throws com.google.protobuf.InvalidProtocolBufferException {
5045 return PARSER.parseFrom(data);
5047 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5049 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5050 throws com.google.protobuf.InvalidProtocolBufferException {
5051 return PARSER.parseFrom(data, extensionRegistry);
5053 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
5054 throws java.io.IOException {
5055 return PARSER.parseFrom(input);
5057 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5058 java.io.InputStream input,
5059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5060 throws java.io.IOException {
5061 return PARSER.parseFrom(input, extensionRegistry);
5063 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
5064 throws java.io.IOException {
5065 return PARSER.parseDelimitedFrom(input);
5067 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
5068 java.io.InputStream input,
5069 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5070 throws java.io.IOException {
5071 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5073 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5074 com.google.protobuf.CodedInputStream input)
5075 throws java.io.IOException {
5076 return PARSER.parseFrom(input);
5078 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5079 com.google.protobuf.CodedInputStream input,
5080 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5081 throws java.io.IOException {
5082 return PARSER.parseFrom(input, extensionRegistry);
5085 public static Builder newBuilder() { return Builder.create(); }
5086 public Builder newBuilderForType() { return newBuilder(); }
5087 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
5088 return newBuilder().mergeFrom(prototype);
5090 public Builder toBuilder() { return newBuilder(this); }
5093 protected Builder newBuilderForType(
5094 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5095 Builder builder = new Builder(parent);
5099 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
5101 public static final class Builder extends
5102 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
5103 // @@protoc_insertion_point(builder_implements:openxc.AcceptanceFilterBypassCommand)
5104 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
5105 public static final com.google.protobuf.Descriptors.Descriptor
5107 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
5110 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5111 internalGetFieldAccessorTable() {
5112 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
5113 .ensureFieldAccessorsInitialized(
5114 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
5117 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
5119 maybeForceBuilderInitialization();
5123 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5125 maybeForceBuilderInitialization();
5127 private void maybeForceBuilderInitialization() {
5128 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5131 private static Builder create() {
5132 return new Builder();
5135 public Builder clear() {
5138 bitField0_ = (bitField0_ & ~0x00000001);
5140 bitField0_ = (bitField0_ & ~0x00000002);
5144 public Builder clone() {
5145 return create().mergeFrom(buildPartial());
5148 public com.google.protobuf.Descriptors.Descriptor
5149 getDescriptorForType() {
5150 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
5153 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
5154 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
5157 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
5158 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
5159 if (!result.isInitialized()) {
5160 throw newUninitializedMessageException(result);
5165 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
5166 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
5167 int from_bitField0_ = bitField0_;
5168 int to_bitField0_ = 0;
5169 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5170 to_bitField0_ |= 0x00000001;
5173 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5174 to_bitField0_ |= 0x00000002;
5176 result.bypass_ = bypass_;
5177 result.bitField0_ = to_bitField0_;
5182 public Builder mergeFrom(com.google.protobuf.Message other) {
5183 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
5184 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
5186 super.mergeFrom(other);
5191 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
5192 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
5193 if (other.hasBus()) {
5194 setBus(other.getBus());
5196 if (other.hasBypass()) {
5197 setBypass(other.getBypass());
5199 this.mergeUnknownFields(other.getUnknownFields());
5203 public final boolean isInitialized() {
5207 public Builder mergeFrom(
5208 com.google.protobuf.CodedInputStream input,
5209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5210 throws java.io.IOException {
5211 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parsedMessage = null;
5213 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5214 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5215 parsedMessage = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) e.getUnfinishedMessage();
5218 if (parsedMessage != null) {
5219 mergeFrom(parsedMessage);
5224 private int bitField0_;
5228 * <code>optional int32 bus = 1;</code>
5230 public boolean hasBus() {
5231 return ((bitField0_ & 0x00000001) == 0x00000001);
5234 * <code>optional int32 bus = 1;</code>
5236 public int getBus() {
5240 * <code>optional int32 bus = 1;</code>
5242 public Builder setBus(int value) {
5243 bitField0_ |= 0x00000001;
5249 * <code>optional int32 bus = 1;</code>
5251 public Builder clearBus() {
5252 bitField0_ = (bitField0_ & ~0x00000001);
5258 private boolean bypass_ ;
5260 * <code>optional bool bypass = 2;</code>
5262 public boolean hasBypass() {
5263 return ((bitField0_ & 0x00000002) == 0x00000002);
5266 * <code>optional bool bypass = 2;</code>
5268 public boolean getBypass() {
5272 * <code>optional bool bypass = 2;</code>
5274 public Builder setBypass(boolean value) {
5275 bitField0_ |= 0x00000002;
5281 * <code>optional bool bypass = 2;</code>
5283 public Builder clearBypass() {
5284 bitField0_ = (bitField0_ & ~0x00000002);
5290 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
5294 defaultInstance = new AcceptanceFilterBypassCommand(true);
5295 defaultInstance.initFields();
5298 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
5301 public interface PayloadFormatCommandOrBuilder extends
5302 // @@protoc_insertion_point(interface_extends:openxc.PayloadFormatCommand)
5303 com.google.protobuf.MessageOrBuilder {
5306 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5308 boolean hasFormat();
5310 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5312 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
5315 * Protobuf type {@code openxc.PayloadFormatCommand}
5317 public static final class PayloadFormatCommand extends
5318 com.google.protobuf.GeneratedMessage implements
5319 // @@protoc_insertion_point(message_implements:openxc.PayloadFormatCommand)
5320 PayloadFormatCommandOrBuilder {
5321 // Use PayloadFormatCommand.newBuilder() to construct.
5322 private PayloadFormatCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5324 this.unknownFields = builder.getUnknownFields();
5326 private PayloadFormatCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5328 private static final PayloadFormatCommand defaultInstance;
5329 public static PayloadFormatCommand getDefaultInstance() {
5330 return defaultInstance;
5333 public PayloadFormatCommand getDefaultInstanceForType() {
5334 return defaultInstance;
5337 private final com.google.protobuf.UnknownFieldSet unknownFields;
5339 public final com.google.protobuf.UnknownFieldSet
5340 getUnknownFields() {
5341 return this.unknownFields;
5343 private PayloadFormatCommand(
5344 com.google.protobuf.CodedInputStream input,
5345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5346 throws com.google.protobuf.InvalidProtocolBufferException {
5348 int mutable_bitField0_ = 0;
5349 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5350 com.google.protobuf.UnknownFieldSet.newBuilder();
5352 boolean done = false;
5354 int tag = input.readTag();
5360 if (!parseUnknownField(input, unknownFields,
5361 extensionRegistry, tag)) {
5367 int rawValue = input.readEnum();
5368 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
5369 if (value == null) {
5370 unknownFields.mergeVarintField(1, rawValue);
5372 bitField0_ |= 0x00000001;
5379 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5380 throw e.setUnfinishedMessage(this);
5381 } catch (java.io.IOException e) {
5382 throw new com.google.protobuf.InvalidProtocolBufferException(
5383 e.getMessage()).setUnfinishedMessage(this);
5385 this.unknownFields = unknownFields.build();
5386 makeExtensionsImmutable();
5389 public static final com.google.protobuf.Descriptors.Descriptor
5391 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5394 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5395 internalGetFieldAccessorTable() {
5396 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5397 .ensureFieldAccessorsInitialized(
5398 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5401 public static com.google.protobuf.Parser<PayloadFormatCommand> PARSER =
5402 new com.google.protobuf.AbstractParser<PayloadFormatCommand>() {
5403 public PayloadFormatCommand parsePartialFrom(
5404 com.google.protobuf.CodedInputStream input,
5405 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5406 throws com.google.protobuf.InvalidProtocolBufferException {
5407 return new PayloadFormatCommand(input, extensionRegistry);
5412 public com.google.protobuf.Parser<PayloadFormatCommand> getParserForType() {
5417 * Protobuf enum {@code openxc.PayloadFormatCommand.PayloadFormat}
5419 public enum PayloadFormat
5420 implements com.google.protobuf.ProtocolMessageEnum {
5422 * <code>JSON = 1;</code>
5426 * <code>PROTOBUF = 2;</code>
5432 * <code>JSON = 1;</code>
5434 public static final int JSON_VALUE = 1;
5436 * <code>PROTOBUF = 2;</code>
5438 public static final int PROTOBUF_VALUE = 2;
5441 public final int getNumber() { return value; }
5443 public static PayloadFormat valueOf(int value) {
5445 case 1: return JSON;
5446 case 2: return PROTOBUF;
5447 default: return null;
5451 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5452 internalGetValueMap() {
5453 return internalValueMap;
5455 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5457 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
5458 public PayloadFormat findValueByNumber(int number) {
5459 return PayloadFormat.valueOf(number);
5463 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5464 getValueDescriptor() {
5465 return getDescriptor().getValues().get(index);
5467 public final com.google.protobuf.Descriptors.EnumDescriptor
5468 getDescriptorForType() {
5469 return getDescriptor();
5471 public static final com.google.protobuf.Descriptors.EnumDescriptor
5473 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
5476 private static final PayloadFormat[] VALUES = values();
5478 public static PayloadFormat valueOf(
5479 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5480 if (desc.getType() != getDescriptor()) {
5481 throw new java.lang.IllegalArgumentException(
5482 "EnumValueDescriptor is not for this type.");
5484 return VALUES[desc.getIndex()];
5487 private final int index;
5488 private final int value;
5490 private PayloadFormat(int index, int value) {
5495 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
5498 private int bitField0_;
5499 public static final int FORMAT_FIELD_NUMBER = 1;
5500 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
5502 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5504 public boolean hasFormat() {
5505 return ((bitField0_ & 0x00000001) == 0x00000001);
5508 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5510 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5514 private void initFields() {
5515 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5517 private byte memoizedIsInitialized = -1;
5518 public final boolean isInitialized() {
5519 byte isInitialized = memoizedIsInitialized;
5520 if (isInitialized == 1) return true;
5521 if (isInitialized == 0) return false;
5523 memoizedIsInitialized = 1;
5527 public void writeTo(com.google.protobuf.CodedOutputStream output)
5528 throws java.io.IOException {
5529 getSerializedSize();
5530 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5531 output.writeEnum(1, format_.getNumber());
5533 getUnknownFields().writeTo(output);
5536 private int memoizedSerializedSize = -1;
5537 public int getSerializedSize() {
5538 int size = memoizedSerializedSize;
5539 if (size != -1) return size;
5542 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5543 size += com.google.protobuf.CodedOutputStream
5544 .computeEnumSize(1, format_.getNumber());
5546 size += getUnknownFields().getSerializedSize();
5547 memoizedSerializedSize = size;
5551 private static final long serialVersionUID = 0L;
5553 protected java.lang.Object writeReplace()
5554 throws java.io.ObjectStreamException {
5555 return super.writeReplace();
5558 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5559 com.google.protobuf.ByteString data)
5560 throws com.google.protobuf.InvalidProtocolBufferException {
5561 return PARSER.parseFrom(data);
5563 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5564 com.google.protobuf.ByteString data,
5565 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5566 throws com.google.protobuf.InvalidProtocolBufferException {
5567 return PARSER.parseFrom(data, extensionRegistry);
5569 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
5570 throws com.google.protobuf.InvalidProtocolBufferException {
5571 return PARSER.parseFrom(data);
5573 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5575 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5576 throws com.google.protobuf.InvalidProtocolBufferException {
5577 return PARSER.parseFrom(data, extensionRegistry);
5579 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
5580 throws java.io.IOException {
5581 return PARSER.parseFrom(input);
5583 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5584 java.io.InputStream input,
5585 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5586 throws java.io.IOException {
5587 return PARSER.parseFrom(input, extensionRegistry);
5589 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
5590 throws java.io.IOException {
5591 return PARSER.parseDelimitedFrom(input);
5593 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
5594 java.io.InputStream input,
5595 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5596 throws java.io.IOException {
5597 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5599 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5600 com.google.protobuf.CodedInputStream input)
5601 throws java.io.IOException {
5602 return PARSER.parseFrom(input);
5604 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5605 com.google.protobuf.CodedInputStream input,
5606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5607 throws java.io.IOException {
5608 return PARSER.parseFrom(input, extensionRegistry);
5611 public static Builder newBuilder() { return Builder.create(); }
5612 public Builder newBuilderForType() { return newBuilder(); }
5613 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
5614 return newBuilder().mergeFrom(prototype);
5616 public Builder toBuilder() { return newBuilder(this); }
5619 protected Builder newBuilderForType(
5620 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5621 Builder builder = new Builder(parent);
5625 * Protobuf type {@code openxc.PayloadFormatCommand}
5627 public static final class Builder extends
5628 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
5629 // @@protoc_insertion_point(builder_implements:openxc.PayloadFormatCommand)
5630 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
5631 public static final com.google.protobuf.Descriptors.Descriptor
5633 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5636 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5637 internalGetFieldAccessorTable() {
5638 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5639 .ensureFieldAccessorsInitialized(
5640 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5643 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
5645 maybeForceBuilderInitialization();
5649 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5651 maybeForceBuilderInitialization();
5653 private void maybeForceBuilderInitialization() {
5654 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5657 private static Builder create() {
5658 return new Builder();
5661 public Builder clear() {
5663 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5664 bitField0_ = (bitField0_ & ~0x00000001);
5668 public Builder clone() {
5669 return create().mergeFrom(buildPartial());
5672 public com.google.protobuf.Descriptors.Descriptor
5673 getDescriptorForType() {
5674 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5677 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
5678 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
5681 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
5682 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
5683 if (!result.isInitialized()) {
5684 throw newUninitializedMessageException(result);
5689 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
5690 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
5691 int from_bitField0_ = bitField0_;
5692 int to_bitField0_ = 0;
5693 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5694 to_bitField0_ |= 0x00000001;
5696 result.format_ = format_;
5697 result.bitField0_ = to_bitField0_;
5702 public Builder mergeFrom(com.google.protobuf.Message other) {
5703 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
5704 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
5706 super.mergeFrom(other);
5711 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
5712 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
5713 if (other.hasFormat()) {
5714 setFormat(other.getFormat());
5716 this.mergeUnknownFields(other.getUnknownFields());
5720 public final boolean isInitialized() {
5724 public Builder mergeFrom(
5725 com.google.protobuf.CodedInputStream input,
5726 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5727 throws java.io.IOException {
5728 com.openxc.BinaryMessages.PayloadFormatCommand parsedMessage = null;
5730 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5731 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5732 parsedMessage = (com.openxc.BinaryMessages.PayloadFormatCommand) e.getUnfinishedMessage();
5735 if (parsedMessage != null) {
5736 mergeFrom(parsedMessage);
5741 private int bitField0_;
5743 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5745 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5747 public boolean hasFormat() {
5748 return ((bitField0_ & 0x00000001) == 0x00000001);
5751 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5753 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5757 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5759 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
5760 if (value == null) {
5761 throw new NullPointerException();
5763 bitField0_ |= 0x00000001;
5769 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5771 public Builder clearFormat() {
5772 bitField0_ = (bitField0_ & ~0x00000001);
5773 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5778 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
5782 defaultInstance = new PayloadFormatCommand(true);
5783 defaultInstance.initFields();
5786 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5789 public interface PredefinedObd2RequestsCommandOrBuilder extends
5790 // @@protoc_insertion_point(interface_extends:openxc.PredefinedObd2RequestsCommand)
5791 com.google.protobuf.MessageOrBuilder {
5794 * <code>optional bool enabled = 1;</code>
5796 boolean hasEnabled();
5798 * <code>optional bool enabled = 1;</code>
5800 boolean getEnabled();
5803 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
5805 public static final class PredefinedObd2RequestsCommand extends
5806 com.google.protobuf.GeneratedMessage implements
5807 // @@protoc_insertion_point(message_implements:openxc.PredefinedObd2RequestsCommand)
5808 PredefinedObd2RequestsCommandOrBuilder {
5809 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5810 private PredefinedObd2RequestsCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5812 this.unknownFields = builder.getUnknownFields();
5814 private PredefinedObd2RequestsCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5816 private static final PredefinedObd2RequestsCommand defaultInstance;
5817 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5818 return defaultInstance;
5821 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5822 return defaultInstance;
5825 private final com.google.protobuf.UnknownFieldSet unknownFields;
5827 public final com.google.protobuf.UnknownFieldSet
5828 getUnknownFields() {
5829 return this.unknownFields;
5831 private PredefinedObd2RequestsCommand(
5832 com.google.protobuf.CodedInputStream input,
5833 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5834 throws com.google.protobuf.InvalidProtocolBufferException {
5836 int mutable_bitField0_ = 0;
5837 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5838 com.google.protobuf.UnknownFieldSet.newBuilder();
5840 boolean done = false;
5842 int tag = input.readTag();
5848 if (!parseUnknownField(input, unknownFields,
5849 extensionRegistry, tag)) {
5855 bitField0_ |= 0x00000001;
5856 enabled_ = input.readBool();
5861 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5862 throw e.setUnfinishedMessage(this);
5863 } catch (java.io.IOException e) {
5864 throw new com.google.protobuf.InvalidProtocolBufferException(
5865 e.getMessage()).setUnfinishedMessage(this);
5867 this.unknownFields = unknownFields.build();
5868 makeExtensionsImmutable();
5871 public static final com.google.protobuf.Descriptors.Descriptor
5873 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5876 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5877 internalGetFieldAccessorTable() {
5878 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
5879 .ensureFieldAccessorsInitialized(
5880 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
5883 public static com.google.protobuf.Parser<PredefinedObd2RequestsCommand> PARSER =
5884 new com.google.protobuf.AbstractParser<PredefinedObd2RequestsCommand>() {
5885 public PredefinedObd2RequestsCommand parsePartialFrom(
5886 com.google.protobuf.CodedInputStream input,
5887 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5888 throws com.google.protobuf.InvalidProtocolBufferException {
5889 return new PredefinedObd2RequestsCommand(input, extensionRegistry);
5894 public com.google.protobuf.Parser<PredefinedObd2RequestsCommand> getParserForType() {
5898 private int bitField0_;
5899 public static final int ENABLED_FIELD_NUMBER = 1;
5900 private boolean enabled_;
5902 * <code>optional bool enabled = 1;</code>
5904 public boolean hasEnabled() {
5905 return ((bitField0_ & 0x00000001) == 0x00000001);
5908 * <code>optional bool enabled = 1;</code>
5910 public boolean getEnabled() {
5914 private void initFields() {
5917 private byte memoizedIsInitialized = -1;
5918 public final boolean isInitialized() {
5919 byte isInitialized = memoizedIsInitialized;
5920 if (isInitialized == 1) return true;
5921 if (isInitialized == 0) return false;
5923 memoizedIsInitialized = 1;
5927 public void writeTo(com.google.protobuf.CodedOutputStream output)
5928 throws java.io.IOException {
5929 getSerializedSize();
5930 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5931 output.writeBool(1, enabled_);
5933 getUnknownFields().writeTo(output);
5936 private int memoizedSerializedSize = -1;
5937 public int getSerializedSize() {
5938 int size = memoizedSerializedSize;
5939 if (size != -1) return size;
5942 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5943 size += com.google.protobuf.CodedOutputStream
5944 .computeBoolSize(1, enabled_);
5946 size += getUnknownFields().getSerializedSize();
5947 memoizedSerializedSize = size;
5951 private static final long serialVersionUID = 0L;
5953 protected java.lang.Object writeReplace()
5954 throws java.io.ObjectStreamException {
5955 return super.writeReplace();
5958 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5959 com.google.protobuf.ByteString data)
5960 throws com.google.protobuf.InvalidProtocolBufferException {
5961 return PARSER.parseFrom(data);
5963 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5964 com.google.protobuf.ByteString data,
5965 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5966 throws com.google.protobuf.InvalidProtocolBufferException {
5967 return PARSER.parseFrom(data, extensionRegistry);
5969 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
5970 throws com.google.protobuf.InvalidProtocolBufferException {
5971 return PARSER.parseFrom(data);
5973 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5975 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5976 throws com.google.protobuf.InvalidProtocolBufferException {
5977 return PARSER.parseFrom(data, extensionRegistry);
5979 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
5980 throws java.io.IOException {
5981 return PARSER.parseFrom(input);
5983 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5984 java.io.InputStream input,
5985 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5986 throws java.io.IOException {
5987 return PARSER.parseFrom(input, extensionRegistry);
5989 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
5990 throws java.io.IOException {
5991 return PARSER.parseDelimitedFrom(input);
5993 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
5994 java.io.InputStream input,
5995 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5996 throws java.io.IOException {
5997 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5999 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6000 com.google.protobuf.CodedInputStream input)
6001 throws java.io.IOException {
6002 return PARSER.parseFrom(input);
6004 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6005 com.google.protobuf.CodedInputStream input,
6006 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6007 throws java.io.IOException {
6008 return PARSER.parseFrom(input, extensionRegistry);
6011 public static Builder newBuilder() { return Builder.create(); }
6012 public Builder newBuilderForType() { return newBuilder(); }
6013 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
6014 return newBuilder().mergeFrom(prototype);
6016 public Builder toBuilder() { return newBuilder(this); }
6019 protected Builder newBuilderForType(
6020 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6021 Builder builder = new Builder(parent);
6025 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
6027 public static final class Builder extends
6028 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
6029 // @@protoc_insertion_point(builder_implements:openxc.PredefinedObd2RequestsCommand)
6030 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
6031 public static final com.google.protobuf.Descriptors.Descriptor
6033 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
6036 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6037 internalGetFieldAccessorTable() {
6038 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
6039 .ensureFieldAccessorsInitialized(
6040 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
6043 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
6045 maybeForceBuilderInitialization();
6049 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6051 maybeForceBuilderInitialization();
6053 private void maybeForceBuilderInitialization() {
6054 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6057 private static Builder create() {
6058 return new Builder();
6061 public Builder clear() {
6064 bitField0_ = (bitField0_ & ~0x00000001);
6068 public Builder clone() {
6069 return create().mergeFrom(buildPartial());
6072 public com.google.protobuf.Descriptors.Descriptor
6073 getDescriptorForType() {
6074 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
6077 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
6078 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
6081 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
6082 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
6083 if (!result.isInitialized()) {
6084 throw newUninitializedMessageException(result);
6089 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
6090 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
6091 int from_bitField0_ = bitField0_;
6092 int to_bitField0_ = 0;
6093 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6094 to_bitField0_ |= 0x00000001;
6096 result.enabled_ = enabled_;
6097 result.bitField0_ = to_bitField0_;
6102 public Builder mergeFrom(com.google.protobuf.Message other) {
6103 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
6104 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
6106 super.mergeFrom(other);
6111 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
6112 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
6113 if (other.hasEnabled()) {
6114 setEnabled(other.getEnabled());
6116 this.mergeUnknownFields(other.getUnknownFields());
6120 public final boolean isInitialized() {
6124 public Builder mergeFrom(
6125 com.google.protobuf.CodedInputStream input,
6126 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6127 throws java.io.IOException {
6128 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parsedMessage = null;
6130 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6131 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6132 parsedMessage = (com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) e.getUnfinishedMessage();
6135 if (parsedMessage != null) {
6136 mergeFrom(parsedMessage);
6141 private int bitField0_;
6143 private boolean enabled_ ;
6145 * <code>optional bool enabled = 1;</code>
6147 public boolean hasEnabled() {
6148 return ((bitField0_ & 0x00000001) == 0x00000001);
6151 * <code>optional bool enabled = 1;</code>
6153 public boolean getEnabled() {
6157 * <code>optional bool enabled = 1;</code>
6159 public Builder setEnabled(boolean value) {
6160 bitField0_ |= 0x00000001;
6166 * <code>optional bool enabled = 1;</code>
6168 public Builder clearEnabled() {
6169 bitField0_ = (bitField0_ & ~0x00000001);
6175 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
6179 defaultInstance = new PredefinedObd2RequestsCommand(true);
6180 defaultInstance.initFields();
6183 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
6186 public interface CommandResponseOrBuilder extends
6187 // @@protoc_insertion_point(interface_extends:openxc.CommandResponse)
6188 com.google.protobuf.MessageOrBuilder {
6191 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6195 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6197 com.openxc.BinaryMessages.ControlCommand.Type getType();
6200 * <code>optional string message = 2;</code>
6202 boolean hasMessage();
6204 * <code>optional string message = 2;</code>
6206 java.lang.String getMessage();
6208 * <code>optional string message = 2;</code>
6210 com.google.protobuf.ByteString
6214 * <code>optional bool status = 3;</code>
6216 boolean hasStatus();
6218 * <code>optional bool status = 3;</code>
6220 boolean getStatus();
6223 * Protobuf type {@code openxc.CommandResponse}
6225 public static final class CommandResponse extends
6226 com.google.protobuf.GeneratedMessage implements
6227 // @@protoc_insertion_point(message_implements:openxc.CommandResponse)
6228 CommandResponseOrBuilder {
6229 // Use CommandResponse.newBuilder() to construct.
6230 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6232 this.unknownFields = builder.getUnknownFields();
6234 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6236 private static final CommandResponse defaultInstance;
6237 public static CommandResponse getDefaultInstance() {
6238 return defaultInstance;
6241 public CommandResponse getDefaultInstanceForType() {
6242 return defaultInstance;
6245 private final com.google.protobuf.UnknownFieldSet unknownFields;
6247 public final com.google.protobuf.UnknownFieldSet
6248 getUnknownFields() {
6249 return this.unknownFields;
6251 private CommandResponse(
6252 com.google.protobuf.CodedInputStream input,
6253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6254 throws com.google.protobuf.InvalidProtocolBufferException {
6256 int mutable_bitField0_ = 0;
6257 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6258 com.google.protobuf.UnknownFieldSet.newBuilder();
6260 boolean done = false;
6262 int tag = input.readTag();
6268 if (!parseUnknownField(input, unknownFields,
6269 extensionRegistry, tag)) {
6275 int rawValue = input.readEnum();
6276 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
6277 if (value == null) {
6278 unknownFields.mergeVarintField(1, rawValue);
6280 bitField0_ |= 0x00000001;
6286 com.google.protobuf.ByteString bs = input.readBytes();
6287 bitField0_ |= 0x00000002;
6292 bitField0_ |= 0x00000004;
6293 status_ = input.readBool();
6298 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6299 throw e.setUnfinishedMessage(this);
6300 } catch (java.io.IOException e) {
6301 throw new com.google.protobuf.InvalidProtocolBufferException(
6302 e.getMessage()).setUnfinishedMessage(this);
6304 this.unknownFields = unknownFields.build();
6305 makeExtensionsImmutable();
6308 public static final com.google.protobuf.Descriptors.Descriptor
6310 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6313 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6314 internalGetFieldAccessorTable() {
6315 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6316 .ensureFieldAccessorsInitialized(
6317 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6320 public static com.google.protobuf.Parser<CommandResponse> PARSER =
6321 new com.google.protobuf.AbstractParser<CommandResponse>() {
6322 public CommandResponse parsePartialFrom(
6323 com.google.protobuf.CodedInputStream input,
6324 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6325 throws com.google.protobuf.InvalidProtocolBufferException {
6326 return new CommandResponse(input, extensionRegistry);
6331 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
6335 private int bitField0_;
6336 public static final int TYPE_FIELD_NUMBER = 1;
6337 private com.openxc.BinaryMessages.ControlCommand.Type type_;
6339 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6341 public boolean hasType() {
6342 return ((bitField0_ & 0x00000001) == 0x00000001);
6345 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6347 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6351 public static final int MESSAGE_FIELD_NUMBER = 2;
6352 private java.lang.Object message_;
6354 * <code>optional string message = 2;</code>
6356 public boolean hasMessage() {
6357 return ((bitField0_ & 0x00000002) == 0x00000002);
6360 * <code>optional string message = 2;</code>
6362 public java.lang.String getMessage() {
6363 java.lang.Object ref = message_;
6364 if (ref instanceof java.lang.String) {
6365 return (java.lang.String) ref;
6367 com.google.protobuf.ByteString bs =
6368 (com.google.protobuf.ByteString) ref;
6369 java.lang.String s = bs.toStringUtf8();
6370 if (bs.isValidUtf8()) {
6377 * <code>optional string message = 2;</code>
6379 public com.google.protobuf.ByteString
6381 java.lang.Object ref = message_;
6382 if (ref instanceof java.lang.String) {
6383 com.google.protobuf.ByteString b =
6384 com.google.protobuf.ByteString.copyFromUtf8(
6385 (java.lang.String) ref);
6389 return (com.google.protobuf.ByteString) ref;
6393 public static final int STATUS_FIELD_NUMBER = 3;
6394 private boolean status_;
6396 * <code>optional bool status = 3;</code>
6398 public boolean hasStatus() {
6399 return ((bitField0_ & 0x00000004) == 0x00000004);
6402 * <code>optional bool status = 3;</code>
6404 public boolean getStatus() {
6408 private void initFields() {
6409 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6413 private byte memoizedIsInitialized = -1;
6414 public final boolean isInitialized() {
6415 byte isInitialized = memoizedIsInitialized;
6416 if (isInitialized == 1) return true;
6417 if (isInitialized == 0) return false;
6419 memoizedIsInitialized = 1;
6423 public void writeTo(com.google.protobuf.CodedOutputStream output)
6424 throws java.io.IOException {
6425 getSerializedSize();
6426 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6427 output.writeEnum(1, type_.getNumber());
6429 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6430 output.writeBytes(2, getMessageBytes());
6432 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6433 output.writeBool(3, status_);
6435 getUnknownFields().writeTo(output);
6438 private int memoizedSerializedSize = -1;
6439 public int getSerializedSize() {
6440 int size = memoizedSerializedSize;
6441 if (size != -1) return size;
6444 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6445 size += com.google.protobuf.CodedOutputStream
6446 .computeEnumSize(1, type_.getNumber());
6448 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6449 size += com.google.protobuf.CodedOutputStream
6450 .computeBytesSize(2, getMessageBytes());
6452 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6453 size += com.google.protobuf.CodedOutputStream
6454 .computeBoolSize(3, status_);
6456 size += getUnknownFields().getSerializedSize();
6457 memoizedSerializedSize = size;
6461 private static final long serialVersionUID = 0L;
6463 protected java.lang.Object writeReplace()
6464 throws java.io.ObjectStreamException {
6465 return super.writeReplace();
6468 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6469 com.google.protobuf.ByteString data)
6470 throws com.google.protobuf.InvalidProtocolBufferException {
6471 return PARSER.parseFrom(data);
6473 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6474 com.google.protobuf.ByteString data,
6475 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6476 throws com.google.protobuf.InvalidProtocolBufferException {
6477 return PARSER.parseFrom(data, extensionRegistry);
6479 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
6480 throws com.google.protobuf.InvalidProtocolBufferException {
6481 return PARSER.parseFrom(data);
6483 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6485 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6486 throws com.google.protobuf.InvalidProtocolBufferException {
6487 return PARSER.parseFrom(data, extensionRegistry);
6489 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
6490 throws java.io.IOException {
6491 return PARSER.parseFrom(input);
6493 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6494 java.io.InputStream input,
6495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6496 throws java.io.IOException {
6497 return PARSER.parseFrom(input, extensionRegistry);
6499 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
6500 throws java.io.IOException {
6501 return PARSER.parseDelimitedFrom(input);
6503 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
6504 java.io.InputStream input,
6505 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6506 throws java.io.IOException {
6507 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6509 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6510 com.google.protobuf.CodedInputStream input)
6511 throws java.io.IOException {
6512 return PARSER.parseFrom(input);
6514 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6515 com.google.protobuf.CodedInputStream input,
6516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6517 throws java.io.IOException {
6518 return PARSER.parseFrom(input, extensionRegistry);
6521 public static Builder newBuilder() { return Builder.create(); }
6522 public Builder newBuilderForType() { return newBuilder(); }
6523 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
6524 return newBuilder().mergeFrom(prototype);
6526 public Builder toBuilder() { return newBuilder(this); }
6529 protected Builder newBuilderForType(
6530 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6531 Builder builder = new Builder(parent);
6535 * Protobuf type {@code openxc.CommandResponse}
6537 public static final class Builder extends
6538 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
6539 // @@protoc_insertion_point(builder_implements:openxc.CommandResponse)
6540 com.openxc.BinaryMessages.CommandResponseOrBuilder {
6541 public static final com.google.protobuf.Descriptors.Descriptor
6543 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6546 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6547 internalGetFieldAccessorTable() {
6548 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6549 .ensureFieldAccessorsInitialized(
6550 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6553 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
6555 maybeForceBuilderInitialization();
6559 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6561 maybeForceBuilderInitialization();
6563 private void maybeForceBuilderInitialization() {
6564 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6567 private static Builder create() {
6568 return new Builder();
6571 public Builder clear() {
6573 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6574 bitField0_ = (bitField0_ & ~0x00000001);
6576 bitField0_ = (bitField0_ & ~0x00000002);
6578 bitField0_ = (bitField0_ & ~0x00000004);
6582 public Builder clone() {
6583 return create().mergeFrom(buildPartial());
6586 public com.google.protobuf.Descriptors.Descriptor
6587 getDescriptorForType() {
6588 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6591 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
6592 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
6595 public com.openxc.BinaryMessages.CommandResponse build() {
6596 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
6597 if (!result.isInitialized()) {
6598 throw newUninitializedMessageException(result);
6603 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
6604 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
6605 int from_bitField0_ = bitField0_;
6606 int to_bitField0_ = 0;
6607 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6608 to_bitField0_ |= 0x00000001;
6610 result.type_ = type_;
6611 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6612 to_bitField0_ |= 0x00000002;
6614 result.message_ = message_;
6615 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6616 to_bitField0_ |= 0x00000004;
6618 result.status_ = status_;
6619 result.bitField0_ = to_bitField0_;
6624 public Builder mergeFrom(com.google.protobuf.Message other) {
6625 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
6626 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
6628 super.mergeFrom(other);
6633 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
6634 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
6635 if (other.hasType()) {
6636 setType(other.getType());
6638 if (other.hasMessage()) {
6639 bitField0_ |= 0x00000002;
6640 message_ = other.message_;
6643 if (other.hasStatus()) {
6644 setStatus(other.getStatus());
6646 this.mergeUnknownFields(other.getUnknownFields());
6650 public final boolean isInitialized() {
6654 public Builder mergeFrom(
6655 com.google.protobuf.CodedInputStream input,
6656 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6657 throws java.io.IOException {
6658 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
6660 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6661 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6662 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
6665 if (parsedMessage != null) {
6666 mergeFrom(parsedMessage);
6671 private int bitField0_;
6673 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6675 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6677 public boolean hasType() {
6678 return ((bitField0_ & 0x00000001) == 0x00000001);
6681 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6683 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6687 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6689 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
6690 if (value == null) {
6691 throw new NullPointerException();
6693 bitField0_ |= 0x00000001;
6699 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6701 public Builder clearType() {
6702 bitField0_ = (bitField0_ & ~0x00000001);
6703 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6708 private java.lang.Object message_ = "";
6710 * <code>optional string message = 2;</code>
6712 public boolean hasMessage() {
6713 return ((bitField0_ & 0x00000002) == 0x00000002);
6716 * <code>optional string message = 2;</code>
6718 public java.lang.String getMessage() {
6719 java.lang.Object ref = message_;
6720 if (!(ref instanceof java.lang.String)) {
6721 com.google.protobuf.ByteString bs =
6722 (com.google.protobuf.ByteString) ref;
6723 java.lang.String s = bs.toStringUtf8();
6724 if (bs.isValidUtf8()) {
6729 return (java.lang.String) ref;
6733 * <code>optional string message = 2;</code>
6735 public com.google.protobuf.ByteString
6737 java.lang.Object ref = message_;
6738 if (ref instanceof String) {
6739 com.google.protobuf.ByteString b =
6740 com.google.protobuf.ByteString.copyFromUtf8(
6741 (java.lang.String) ref);
6745 return (com.google.protobuf.ByteString) ref;
6749 * <code>optional string message = 2;</code>
6751 public Builder setMessage(
6752 java.lang.String value) {
6753 if (value == null) {
6754 throw new NullPointerException();
6756 bitField0_ |= 0x00000002;
6762 * <code>optional string message = 2;</code>
6764 public Builder clearMessage() {
6765 bitField0_ = (bitField0_ & ~0x00000002);
6766 message_ = getDefaultInstance().getMessage();
6771 * <code>optional string message = 2;</code>
6773 public Builder setMessageBytes(
6774 com.google.protobuf.ByteString value) {
6775 if (value == null) {
6776 throw new NullPointerException();
6778 bitField0_ |= 0x00000002;
6784 private boolean status_ ;
6786 * <code>optional bool status = 3;</code>
6788 public boolean hasStatus() {
6789 return ((bitField0_ & 0x00000004) == 0x00000004);
6792 * <code>optional bool status = 3;</code>
6794 public boolean getStatus() {
6798 * <code>optional bool status = 3;</code>
6800 public Builder setStatus(boolean value) {
6801 bitField0_ |= 0x00000004;
6807 * <code>optional bool status = 3;</code>
6809 public Builder clearStatus() {
6810 bitField0_ = (bitField0_ & ~0x00000004);
6816 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
6820 defaultInstance = new CommandResponse(true);
6821 defaultInstance.initFields();
6824 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
6827 public interface DiagnosticRequestOrBuilder extends
6828 // @@protoc_insertion_point(interface_extends:openxc.DiagnosticRequest)
6829 com.google.protobuf.MessageOrBuilder {
6832 * <code>optional int32 bus = 1;</code>
6836 * <code>optional int32 bus = 1;</code>
6841 * <code>optional uint32 message_id = 2;</code>
6843 boolean hasMessageId();
6845 * <code>optional uint32 message_id = 2;</code>
6850 * <code>optional uint32 mode = 3;</code>
6854 * <code>optional uint32 mode = 3;</code>
6859 * <code>optional uint32 pid = 4;</code>
6863 * <code>optional uint32 pid = 4;</code>
6868 * <code>optional bytes payload = 5;</code>
6871 * TODO we are capping this at 8 bytes for now - need to change when we
6872 * support multi-frame responses
6875 boolean hasPayload();
6877 * <code>optional bytes payload = 5;</code>
6880 * TODO we are capping this at 8 bytes for now - need to change when we
6881 * support multi-frame responses
6884 com.google.protobuf.ByteString getPayload();
6887 * <code>optional bool multiple_responses = 6;</code>
6889 boolean hasMultipleResponses();
6891 * <code>optional bool multiple_responses = 6;</code>
6893 boolean getMultipleResponses();
6896 * <code>optional double frequency = 7;</code>
6898 boolean hasFrequency();
6900 * <code>optional double frequency = 7;</code>
6902 double getFrequency();
6905 * <code>optional string name = 8;</code>
6909 * <code>optional string name = 8;</code>
6911 java.lang.String getName();
6913 * <code>optional string name = 8;</code>
6915 com.google.protobuf.ByteString
6919 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6921 boolean hasDecodedType();
6923 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6925 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
6928 * Protobuf type {@code openxc.DiagnosticRequest}
6930 public static final class DiagnosticRequest extends
6931 com.google.protobuf.GeneratedMessage implements
6932 // @@protoc_insertion_point(message_implements:openxc.DiagnosticRequest)
6933 DiagnosticRequestOrBuilder {
6934 // Use DiagnosticRequest.newBuilder() to construct.
6935 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6937 this.unknownFields = builder.getUnknownFields();
6939 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6941 private static final DiagnosticRequest defaultInstance;
6942 public static DiagnosticRequest getDefaultInstance() {
6943 return defaultInstance;
6946 public DiagnosticRequest getDefaultInstanceForType() {
6947 return defaultInstance;
6950 private final com.google.protobuf.UnknownFieldSet unknownFields;
6952 public final com.google.protobuf.UnknownFieldSet
6953 getUnknownFields() {
6954 return this.unknownFields;
6956 private DiagnosticRequest(
6957 com.google.protobuf.CodedInputStream input,
6958 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6959 throws com.google.protobuf.InvalidProtocolBufferException {
6961 int mutable_bitField0_ = 0;
6962 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6963 com.google.protobuf.UnknownFieldSet.newBuilder();
6965 boolean done = false;
6967 int tag = input.readTag();
6973 if (!parseUnknownField(input, unknownFields,
6974 extensionRegistry, tag)) {
6980 bitField0_ |= 0x00000001;
6981 bus_ = input.readInt32();
6985 bitField0_ |= 0x00000002;
6986 messageId_ = input.readUInt32();
6990 bitField0_ |= 0x00000004;
6991 mode_ = input.readUInt32();
6995 bitField0_ |= 0x00000008;
6996 pid_ = input.readUInt32();
7000 bitField0_ |= 0x00000010;
7001 payload_ = input.readBytes();
7005 bitField0_ |= 0x00000020;
7006 multipleResponses_ = input.readBool();
7010 bitField0_ |= 0x00000040;
7011 frequency_ = input.readDouble();
7015 com.google.protobuf.ByteString bs = input.readBytes();
7016 bitField0_ |= 0x00000080;
7021 int rawValue = input.readEnum();
7022 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
7023 if (value == null) {
7024 unknownFields.mergeVarintField(9, rawValue);
7026 bitField0_ |= 0x00000100;
7027 decodedType_ = value;
7033 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7034 throw e.setUnfinishedMessage(this);
7035 } catch (java.io.IOException e) {
7036 throw new com.google.protobuf.InvalidProtocolBufferException(
7037 e.getMessage()).setUnfinishedMessage(this);
7039 this.unknownFields = unknownFields.build();
7040 makeExtensionsImmutable();
7043 public static final com.google.protobuf.Descriptors.Descriptor
7045 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7048 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7049 internalGetFieldAccessorTable() {
7050 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
7051 .ensureFieldAccessorsInitialized(
7052 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
7055 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
7056 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
7057 public DiagnosticRequest parsePartialFrom(
7058 com.google.protobuf.CodedInputStream input,
7059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7060 throws com.google.protobuf.InvalidProtocolBufferException {
7061 return new DiagnosticRequest(input, extensionRegistry);
7066 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
7071 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
7073 public enum DecodedType
7074 implements com.google.protobuf.ProtocolMessageEnum {
7076 * <code>NONE = 1;</code>
7080 * <code>OBD2 = 2;</code>
7086 * <code>NONE = 1;</code>
7088 public static final int NONE_VALUE = 1;
7090 * <code>OBD2 = 2;</code>
7092 public static final int OBD2_VALUE = 2;
7095 public final int getNumber() { return value; }
7097 public static DecodedType valueOf(int value) {
7099 case 1: return NONE;
7100 case 2: return OBD2;
7101 default: return null;
7105 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
7106 internalGetValueMap() {
7107 return internalValueMap;
7109 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
7111 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
7112 public DecodedType findValueByNumber(int number) {
7113 return DecodedType.valueOf(number);
7117 public final com.google.protobuf.Descriptors.EnumValueDescriptor
7118 getValueDescriptor() {
7119 return getDescriptor().getValues().get(index);
7121 public final com.google.protobuf.Descriptors.EnumDescriptor
7122 getDescriptorForType() {
7123 return getDescriptor();
7125 public static final com.google.protobuf.Descriptors.EnumDescriptor
7127 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
7130 private static final DecodedType[] VALUES = values();
7132 public static DecodedType valueOf(
7133 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
7134 if (desc.getType() != getDescriptor()) {
7135 throw new java.lang.IllegalArgumentException(
7136 "EnumValueDescriptor is not for this type.");
7138 return VALUES[desc.getIndex()];
7141 private final int index;
7142 private final int value;
7144 private DecodedType(int index, int value) {
7149 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
7152 private int bitField0_;
7153 public static final int BUS_FIELD_NUMBER = 1;
7156 * <code>optional int32 bus = 1;</code>
7158 public boolean hasBus() {
7159 return ((bitField0_ & 0x00000001) == 0x00000001);
7162 * <code>optional int32 bus = 1;</code>
7164 public int getBus() {
7168 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
7169 private int messageId_;
7171 * <code>optional uint32 message_id = 2;</code>
7173 public boolean hasMessageId() {
7174 return ((bitField0_ & 0x00000002) == 0x00000002);
7177 * <code>optional uint32 message_id = 2;</code>
7179 public int getMessageId() {
7183 public static final int MODE_FIELD_NUMBER = 3;
7186 * <code>optional uint32 mode = 3;</code>
7188 public boolean hasMode() {
7189 return ((bitField0_ & 0x00000004) == 0x00000004);
7192 * <code>optional uint32 mode = 3;</code>
7194 public int getMode() {
7198 public static final int PID_FIELD_NUMBER = 4;
7201 * <code>optional uint32 pid = 4;</code>
7203 public boolean hasPid() {
7204 return ((bitField0_ & 0x00000008) == 0x00000008);
7207 * <code>optional uint32 pid = 4;</code>
7209 public int getPid() {
7213 public static final int PAYLOAD_FIELD_NUMBER = 5;
7214 private com.google.protobuf.ByteString payload_;
7216 * <code>optional bytes payload = 5;</code>
7219 * TODO we are capping this at 8 bytes for now - need to change when we
7220 * support multi-frame responses
7223 public boolean hasPayload() {
7224 return ((bitField0_ & 0x00000010) == 0x00000010);
7227 * <code>optional bytes payload = 5;</code>
7230 * TODO we are capping this at 8 bytes for now - need to change when we
7231 * support multi-frame responses
7234 public com.google.protobuf.ByteString getPayload() {
7238 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
7239 private boolean multipleResponses_;
7241 * <code>optional bool multiple_responses = 6;</code>
7243 public boolean hasMultipleResponses() {
7244 return ((bitField0_ & 0x00000020) == 0x00000020);
7247 * <code>optional bool multiple_responses = 6;</code>
7249 public boolean getMultipleResponses() {
7250 return multipleResponses_;
7253 public static final int FREQUENCY_FIELD_NUMBER = 7;
7254 private double frequency_;
7256 * <code>optional double frequency = 7;</code>
7258 public boolean hasFrequency() {
7259 return ((bitField0_ & 0x00000040) == 0x00000040);
7262 * <code>optional double frequency = 7;</code>
7264 public double getFrequency() {
7268 public static final int NAME_FIELD_NUMBER = 8;
7269 private java.lang.Object name_;
7271 * <code>optional string name = 8;</code>
7273 public boolean hasName() {
7274 return ((bitField0_ & 0x00000080) == 0x00000080);
7277 * <code>optional string name = 8;</code>
7279 public java.lang.String getName() {
7280 java.lang.Object ref = name_;
7281 if (ref instanceof java.lang.String) {
7282 return (java.lang.String) ref;
7284 com.google.protobuf.ByteString bs =
7285 (com.google.protobuf.ByteString) ref;
7286 java.lang.String s = bs.toStringUtf8();
7287 if (bs.isValidUtf8()) {
7294 * <code>optional string name = 8;</code>
7296 public com.google.protobuf.ByteString
7298 java.lang.Object ref = name_;
7299 if (ref instanceof java.lang.String) {
7300 com.google.protobuf.ByteString b =
7301 com.google.protobuf.ByteString.copyFromUtf8(
7302 (java.lang.String) ref);
7306 return (com.google.protobuf.ByteString) ref;
7310 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
7311 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
7313 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7315 public boolean hasDecodedType() {
7316 return ((bitField0_ & 0x00000100) == 0x00000100);
7319 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7321 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
7322 return decodedType_;
7325 private void initFields() {
7330 payload_ = com.google.protobuf.ByteString.EMPTY;
7331 multipleResponses_ = false;
7334 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7336 private byte memoizedIsInitialized = -1;
7337 public final boolean isInitialized() {
7338 byte isInitialized = memoizedIsInitialized;
7339 if (isInitialized == 1) return true;
7340 if (isInitialized == 0) return false;
7342 memoizedIsInitialized = 1;
7346 public void writeTo(com.google.protobuf.CodedOutputStream output)
7347 throws java.io.IOException {
7348 getSerializedSize();
7349 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7350 output.writeInt32(1, bus_);
7352 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7353 output.writeUInt32(2, messageId_);
7355 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7356 output.writeUInt32(3, mode_);
7358 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7359 output.writeUInt32(4, pid_);
7361 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7362 output.writeBytes(5, payload_);
7364 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7365 output.writeBool(6, multipleResponses_);
7367 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7368 output.writeDouble(7, frequency_);
7370 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7371 output.writeBytes(8, getNameBytes());
7373 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7374 output.writeEnum(9, decodedType_.getNumber());
7376 getUnknownFields().writeTo(output);
7379 private int memoizedSerializedSize = -1;
7380 public int getSerializedSize() {
7381 int size = memoizedSerializedSize;
7382 if (size != -1) return size;
7385 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7386 size += com.google.protobuf.CodedOutputStream
7387 .computeInt32Size(1, bus_);
7389 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7390 size += com.google.protobuf.CodedOutputStream
7391 .computeUInt32Size(2, messageId_);
7393 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7394 size += com.google.protobuf.CodedOutputStream
7395 .computeUInt32Size(3, mode_);
7397 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7398 size += com.google.protobuf.CodedOutputStream
7399 .computeUInt32Size(4, pid_);
7401 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7402 size += com.google.protobuf.CodedOutputStream
7403 .computeBytesSize(5, payload_);
7405 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7406 size += com.google.protobuf.CodedOutputStream
7407 .computeBoolSize(6, multipleResponses_);
7409 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7410 size += com.google.protobuf.CodedOutputStream
7411 .computeDoubleSize(7, frequency_);
7413 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7414 size += com.google.protobuf.CodedOutputStream
7415 .computeBytesSize(8, getNameBytes());
7417 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7418 size += com.google.protobuf.CodedOutputStream
7419 .computeEnumSize(9, decodedType_.getNumber());
7421 size += getUnknownFields().getSerializedSize();
7422 memoizedSerializedSize = size;
7426 private static final long serialVersionUID = 0L;
7428 protected java.lang.Object writeReplace()
7429 throws java.io.ObjectStreamException {
7430 return super.writeReplace();
7433 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7434 com.google.protobuf.ByteString data)
7435 throws com.google.protobuf.InvalidProtocolBufferException {
7436 return PARSER.parseFrom(data);
7438 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7439 com.google.protobuf.ByteString data,
7440 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7441 throws com.google.protobuf.InvalidProtocolBufferException {
7442 return PARSER.parseFrom(data, extensionRegistry);
7444 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
7445 throws com.google.protobuf.InvalidProtocolBufferException {
7446 return PARSER.parseFrom(data);
7448 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7451 throws com.google.protobuf.InvalidProtocolBufferException {
7452 return PARSER.parseFrom(data, extensionRegistry);
7454 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
7455 throws java.io.IOException {
7456 return PARSER.parseFrom(input);
7458 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7459 java.io.InputStream input,
7460 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7461 throws java.io.IOException {
7462 return PARSER.parseFrom(input, extensionRegistry);
7464 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
7465 throws java.io.IOException {
7466 return PARSER.parseDelimitedFrom(input);
7468 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
7469 java.io.InputStream input,
7470 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7471 throws java.io.IOException {
7472 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7474 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7475 com.google.protobuf.CodedInputStream input)
7476 throws java.io.IOException {
7477 return PARSER.parseFrom(input);
7479 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7480 com.google.protobuf.CodedInputStream input,
7481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7482 throws java.io.IOException {
7483 return PARSER.parseFrom(input, extensionRegistry);
7486 public static Builder newBuilder() { return Builder.create(); }
7487 public Builder newBuilderForType() { return newBuilder(); }
7488 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
7489 return newBuilder().mergeFrom(prototype);
7491 public Builder toBuilder() { return newBuilder(this); }
7494 protected Builder newBuilderForType(
7495 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7496 Builder builder = new Builder(parent);
7500 * Protobuf type {@code openxc.DiagnosticRequest}
7502 public static final class Builder extends
7503 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
7504 // @@protoc_insertion_point(builder_implements:openxc.DiagnosticRequest)
7505 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
7506 public static final com.google.protobuf.Descriptors.Descriptor
7508 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7511 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7512 internalGetFieldAccessorTable() {
7513 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
7514 .ensureFieldAccessorsInitialized(
7515 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
7518 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
7520 maybeForceBuilderInitialization();
7524 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7526 maybeForceBuilderInitialization();
7528 private void maybeForceBuilderInitialization() {
7529 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7532 private static Builder create() {
7533 return new Builder();
7536 public Builder clear() {
7539 bitField0_ = (bitField0_ & ~0x00000001);
7541 bitField0_ = (bitField0_ & ~0x00000002);
7543 bitField0_ = (bitField0_ & ~0x00000004);
7545 bitField0_ = (bitField0_ & ~0x00000008);
7546 payload_ = com.google.protobuf.ByteString.EMPTY;
7547 bitField0_ = (bitField0_ & ~0x00000010);
7548 multipleResponses_ = false;
7549 bitField0_ = (bitField0_ & ~0x00000020);
7551 bitField0_ = (bitField0_ & ~0x00000040);
7553 bitField0_ = (bitField0_ & ~0x00000080);
7554 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7555 bitField0_ = (bitField0_ & ~0x00000100);
7559 public Builder clone() {
7560 return create().mergeFrom(buildPartial());
7563 public com.google.protobuf.Descriptors.Descriptor
7564 getDescriptorForType() {
7565 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7568 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
7569 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
7572 public com.openxc.BinaryMessages.DiagnosticRequest build() {
7573 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
7574 if (!result.isInitialized()) {
7575 throw newUninitializedMessageException(result);
7580 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
7581 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
7582 int from_bitField0_ = bitField0_;
7583 int to_bitField0_ = 0;
7584 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7585 to_bitField0_ |= 0x00000001;
7588 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7589 to_bitField0_ |= 0x00000002;
7591 result.messageId_ = messageId_;
7592 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7593 to_bitField0_ |= 0x00000004;
7595 result.mode_ = mode_;
7596 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7597 to_bitField0_ |= 0x00000008;
7600 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
7601 to_bitField0_ |= 0x00000010;
7603 result.payload_ = payload_;
7604 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
7605 to_bitField0_ |= 0x00000020;
7607 result.multipleResponses_ = multipleResponses_;
7608 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
7609 to_bitField0_ |= 0x00000040;
7611 result.frequency_ = frequency_;
7612 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
7613 to_bitField0_ |= 0x00000080;
7615 result.name_ = name_;
7616 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
7617 to_bitField0_ |= 0x00000100;
7619 result.decodedType_ = decodedType_;
7620 result.bitField0_ = to_bitField0_;
7625 public Builder mergeFrom(com.google.protobuf.Message other) {
7626 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
7627 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
7629 super.mergeFrom(other);
7634 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
7635 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
7636 if (other.hasBus()) {
7637 setBus(other.getBus());
7639 if (other.hasMessageId()) {
7640 setMessageId(other.getMessageId());
7642 if (other.hasMode()) {
7643 setMode(other.getMode());
7645 if (other.hasPid()) {
7646 setPid(other.getPid());
7648 if (other.hasPayload()) {
7649 setPayload(other.getPayload());
7651 if (other.hasMultipleResponses()) {
7652 setMultipleResponses(other.getMultipleResponses());
7654 if (other.hasFrequency()) {
7655 setFrequency(other.getFrequency());
7657 if (other.hasName()) {
7658 bitField0_ |= 0x00000080;
7659 name_ = other.name_;
7662 if (other.hasDecodedType()) {
7663 setDecodedType(other.getDecodedType());
7665 this.mergeUnknownFields(other.getUnknownFields());
7669 public final boolean isInitialized() {
7673 public Builder mergeFrom(
7674 com.google.protobuf.CodedInputStream input,
7675 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7676 throws java.io.IOException {
7677 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
7679 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7680 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7681 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
7684 if (parsedMessage != null) {
7685 mergeFrom(parsedMessage);
7690 private int bitField0_;
7694 * <code>optional int32 bus = 1;</code>
7696 public boolean hasBus() {
7697 return ((bitField0_ & 0x00000001) == 0x00000001);
7700 * <code>optional int32 bus = 1;</code>
7702 public int getBus() {
7706 * <code>optional int32 bus = 1;</code>
7708 public Builder setBus(int value) {
7709 bitField0_ |= 0x00000001;
7715 * <code>optional int32 bus = 1;</code>
7717 public Builder clearBus() {
7718 bitField0_ = (bitField0_ & ~0x00000001);
7724 private int messageId_ ;
7726 * <code>optional uint32 message_id = 2;</code>
7728 public boolean hasMessageId() {
7729 return ((bitField0_ & 0x00000002) == 0x00000002);
7732 * <code>optional uint32 message_id = 2;</code>
7734 public int getMessageId() {
7738 * <code>optional uint32 message_id = 2;</code>
7740 public Builder setMessageId(int value) {
7741 bitField0_ |= 0x00000002;
7747 * <code>optional uint32 message_id = 2;</code>
7749 public Builder clearMessageId() {
7750 bitField0_ = (bitField0_ & ~0x00000002);
7758 * <code>optional uint32 mode = 3;</code>
7760 public boolean hasMode() {
7761 return ((bitField0_ & 0x00000004) == 0x00000004);
7764 * <code>optional uint32 mode = 3;</code>
7766 public int getMode() {
7770 * <code>optional uint32 mode = 3;</code>
7772 public Builder setMode(int value) {
7773 bitField0_ |= 0x00000004;
7779 * <code>optional uint32 mode = 3;</code>
7781 public Builder clearMode() {
7782 bitField0_ = (bitField0_ & ~0x00000004);
7790 * <code>optional uint32 pid = 4;</code>
7792 public boolean hasPid() {
7793 return ((bitField0_ & 0x00000008) == 0x00000008);
7796 * <code>optional uint32 pid = 4;</code>
7798 public int getPid() {
7802 * <code>optional uint32 pid = 4;</code>
7804 public Builder setPid(int value) {
7805 bitField0_ |= 0x00000008;
7811 * <code>optional uint32 pid = 4;</code>
7813 public Builder clearPid() {
7814 bitField0_ = (bitField0_ & ~0x00000008);
7820 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
7822 * <code>optional bytes payload = 5;</code>
7825 * TODO we are capping this at 8 bytes for now - need to change when we
7826 * support multi-frame responses
7829 public boolean hasPayload() {
7830 return ((bitField0_ & 0x00000010) == 0x00000010);
7833 * <code>optional bytes payload = 5;</code>
7836 * TODO we are capping this at 8 bytes for now - need to change when we
7837 * support multi-frame responses
7840 public com.google.protobuf.ByteString getPayload() {
7844 * <code>optional bytes payload = 5;</code>
7847 * TODO we are capping this at 8 bytes for now - need to change when we
7848 * support multi-frame responses
7851 public Builder setPayload(com.google.protobuf.ByteString value) {
7852 if (value == null) {
7853 throw new NullPointerException();
7855 bitField0_ |= 0x00000010;
7861 * <code>optional bytes payload = 5;</code>
7864 * TODO we are capping this at 8 bytes for now - need to change when we
7865 * support multi-frame responses
7868 public Builder clearPayload() {
7869 bitField0_ = (bitField0_ & ~0x00000010);
7870 payload_ = getDefaultInstance().getPayload();
7875 private boolean multipleResponses_ ;
7877 * <code>optional bool multiple_responses = 6;</code>
7879 public boolean hasMultipleResponses() {
7880 return ((bitField0_ & 0x00000020) == 0x00000020);
7883 * <code>optional bool multiple_responses = 6;</code>
7885 public boolean getMultipleResponses() {
7886 return multipleResponses_;
7889 * <code>optional bool multiple_responses = 6;</code>
7891 public Builder setMultipleResponses(boolean value) {
7892 bitField0_ |= 0x00000020;
7893 multipleResponses_ = value;
7898 * <code>optional bool multiple_responses = 6;</code>
7900 public Builder clearMultipleResponses() {
7901 bitField0_ = (bitField0_ & ~0x00000020);
7902 multipleResponses_ = false;
7907 private double frequency_ ;
7909 * <code>optional double frequency = 7;</code>
7911 public boolean hasFrequency() {
7912 return ((bitField0_ & 0x00000040) == 0x00000040);
7915 * <code>optional double frequency = 7;</code>
7917 public double getFrequency() {
7921 * <code>optional double frequency = 7;</code>
7923 public Builder setFrequency(double value) {
7924 bitField0_ |= 0x00000040;
7930 * <code>optional double frequency = 7;</code>
7932 public Builder clearFrequency() {
7933 bitField0_ = (bitField0_ & ~0x00000040);
7939 private java.lang.Object name_ = "";
7941 * <code>optional string name = 8;</code>
7943 public boolean hasName() {
7944 return ((bitField0_ & 0x00000080) == 0x00000080);
7947 * <code>optional string name = 8;</code>
7949 public java.lang.String getName() {
7950 java.lang.Object ref = name_;
7951 if (!(ref instanceof java.lang.String)) {
7952 com.google.protobuf.ByteString bs =
7953 (com.google.protobuf.ByteString) ref;
7954 java.lang.String s = bs.toStringUtf8();
7955 if (bs.isValidUtf8()) {
7960 return (java.lang.String) ref;
7964 * <code>optional string name = 8;</code>
7966 public com.google.protobuf.ByteString
7968 java.lang.Object ref = name_;
7969 if (ref instanceof String) {
7970 com.google.protobuf.ByteString b =
7971 com.google.protobuf.ByteString.copyFromUtf8(
7972 (java.lang.String) ref);
7976 return (com.google.protobuf.ByteString) ref;
7980 * <code>optional string name = 8;</code>
7982 public Builder setName(
7983 java.lang.String value) {
7984 if (value == null) {
7985 throw new NullPointerException();
7987 bitField0_ |= 0x00000080;
7993 * <code>optional string name = 8;</code>
7995 public Builder clearName() {
7996 bitField0_ = (bitField0_ & ~0x00000080);
7997 name_ = getDefaultInstance().getName();
8002 * <code>optional string name = 8;</code>
8004 public Builder setNameBytes(
8005 com.google.protobuf.ByteString value) {
8006 if (value == null) {
8007 throw new NullPointerException();
8009 bitField0_ |= 0x00000080;
8015 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
8017 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8019 public boolean hasDecodedType() {
8020 return ((bitField0_ & 0x00000100) == 0x00000100);
8023 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8025 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
8026 return decodedType_;
8029 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8031 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
8032 if (value == null) {
8033 throw new NullPointerException();
8035 bitField0_ |= 0x00000100;
8036 decodedType_ = value;
8041 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8043 public Builder clearDecodedType() {
8044 bitField0_ = (bitField0_ & ~0x00000100);
8045 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
8050 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
8054 defaultInstance = new DiagnosticRequest(true);
8055 defaultInstance.initFields();
8058 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
8061 public interface DiagnosticResponseOrBuilder extends
8062 // @@protoc_insertion_point(interface_extends:openxc.DiagnosticResponse)
8063 com.google.protobuf.MessageOrBuilder {
8066 * <code>optional int32 bus = 1;</code>
8070 * <code>optional int32 bus = 1;</code>
8075 * <code>optional uint32 message_id = 2;</code>
8077 boolean hasMessageId();
8079 * <code>optional uint32 message_id = 2;</code>
8084 * <code>optional uint32 mode = 3;</code>
8088 * <code>optional uint32 mode = 3;</code>
8093 * <code>optional uint32 pid = 4;</code>
8097 * <code>optional uint32 pid = 4;</code>
8102 * <code>optional bool success = 5;</code>
8104 boolean hasSuccess();
8106 * <code>optional bool success = 5;</code>
8108 boolean getSuccess();
8111 * <code>optional uint32 negative_response_code = 6;</code>
8113 boolean hasNegativeResponseCode();
8115 * <code>optional uint32 negative_response_code = 6;</code>
8117 int getNegativeResponseCode();
8120 * <code>optional bytes payload = 7;</code>
8123 * TODO we are capping this at 8 bytes for now - need to change when we
8124 * support multi-frame responses
8127 boolean hasPayload();
8129 * <code>optional bytes payload = 7;</code>
8132 * TODO we are capping this at 8 bytes for now - need to change when we
8133 * support multi-frame responses
8136 com.google.protobuf.ByteString getPayload();
8139 * <code>optional double value = 8;</code>
8143 * <code>optional double value = 8;</code>
8148 * Protobuf type {@code openxc.DiagnosticResponse}
8150 public static final class DiagnosticResponse extends
8151 com.google.protobuf.GeneratedMessage implements
8152 // @@protoc_insertion_point(message_implements:openxc.DiagnosticResponse)
8153 DiagnosticResponseOrBuilder {
8154 // Use DiagnosticResponse.newBuilder() to construct.
8155 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
8157 this.unknownFields = builder.getUnknownFields();
8159 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
8161 private static final DiagnosticResponse defaultInstance;
8162 public static DiagnosticResponse getDefaultInstance() {
8163 return defaultInstance;
8166 public DiagnosticResponse getDefaultInstanceForType() {
8167 return defaultInstance;
8170 private final com.google.protobuf.UnknownFieldSet unknownFields;
8172 public final com.google.protobuf.UnknownFieldSet
8173 getUnknownFields() {
8174 return this.unknownFields;
8176 private DiagnosticResponse(
8177 com.google.protobuf.CodedInputStream input,
8178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8179 throws com.google.protobuf.InvalidProtocolBufferException {
8181 int mutable_bitField0_ = 0;
8182 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8183 com.google.protobuf.UnknownFieldSet.newBuilder();
8185 boolean done = false;
8187 int tag = input.readTag();
8193 if (!parseUnknownField(input, unknownFields,
8194 extensionRegistry, tag)) {
8200 bitField0_ |= 0x00000001;
8201 bus_ = input.readInt32();
8205 bitField0_ |= 0x00000002;
8206 messageId_ = input.readUInt32();
8210 bitField0_ |= 0x00000004;
8211 mode_ = input.readUInt32();
8215 bitField0_ |= 0x00000008;
8216 pid_ = input.readUInt32();
8220 bitField0_ |= 0x00000010;
8221 success_ = input.readBool();
8225 bitField0_ |= 0x00000020;
8226 negativeResponseCode_ = input.readUInt32();
8230 bitField0_ |= 0x00000040;
8231 payload_ = input.readBytes();
8235 bitField0_ |= 0x00000080;
8236 value_ = input.readDouble();
8241 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8242 throw e.setUnfinishedMessage(this);
8243 } catch (java.io.IOException e) {
8244 throw new com.google.protobuf.InvalidProtocolBufferException(
8245 e.getMessage()).setUnfinishedMessage(this);
8247 this.unknownFields = unknownFields.build();
8248 makeExtensionsImmutable();
8251 public static final com.google.protobuf.Descriptors.Descriptor
8253 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8256 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8257 internalGetFieldAccessorTable() {
8258 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8259 .ensureFieldAccessorsInitialized(
8260 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8263 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
8264 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
8265 public DiagnosticResponse parsePartialFrom(
8266 com.google.protobuf.CodedInputStream input,
8267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8268 throws com.google.protobuf.InvalidProtocolBufferException {
8269 return new DiagnosticResponse(input, extensionRegistry);
8274 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
8278 private int bitField0_;
8279 public static final int BUS_FIELD_NUMBER = 1;
8282 * <code>optional int32 bus = 1;</code>
8284 public boolean hasBus() {
8285 return ((bitField0_ & 0x00000001) == 0x00000001);
8288 * <code>optional int32 bus = 1;</code>
8290 public int getBus() {
8294 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8295 private int messageId_;
8297 * <code>optional uint32 message_id = 2;</code>
8299 public boolean hasMessageId() {
8300 return ((bitField0_ & 0x00000002) == 0x00000002);
8303 * <code>optional uint32 message_id = 2;</code>
8305 public int getMessageId() {
8309 public static final int MODE_FIELD_NUMBER = 3;
8312 * <code>optional uint32 mode = 3;</code>
8314 public boolean hasMode() {
8315 return ((bitField0_ & 0x00000004) == 0x00000004);
8318 * <code>optional uint32 mode = 3;</code>
8320 public int getMode() {
8324 public static final int PID_FIELD_NUMBER = 4;
8327 * <code>optional uint32 pid = 4;</code>
8329 public boolean hasPid() {
8330 return ((bitField0_ & 0x00000008) == 0x00000008);
8333 * <code>optional uint32 pid = 4;</code>
8335 public int getPid() {
8339 public static final int SUCCESS_FIELD_NUMBER = 5;
8340 private boolean success_;
8342 * <code>optional bool success = 5;</code>
8344 public boolean hasSuccess() {
8345 return ((bitField0_ & 0x00000010) == 0x00000010);
8348 * <code>optional bool success = 5;</code>
8350 public boolean getSuccess() {
8354 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
8355 private int negativeResponseCode_;
8357 * <code>optional uint32 negative_response_code = 6;</code>
8359 public boolean hasNegativeResponseCode() {
8360 return ((bitField0_ & 0x00000020) == 0x00000020);
8363 * <code>optional uint32 negative_response_code = 6;</code>
8365 public int getNegativeResponseCode() {
8366 return negativeResponseCode_;
8369 public static final int PAYLOAD_FIELD_NUMBER = 7;
8370 private com.google.protobuf.ByteString payload_;
8372 * <code>optional bytes payload = 7;</code>
8375 * TODO we are capping this at 8 bytes for now - need to change when we
8376 * support multi-frame responses
8379 public boolean hasPayload() {
8380 return ((bitField0_ & 0x00000040) == 0x00000040);
8383 * <code>optional bytes payload = 7;</code>
8386 * TODO we are capping this at 8 bytes for now - need to change when we
8387 * support multi-frame responses
8390 public com.google.protobuf.ByteString getPayload() {
8394 public static final int VALUE_FIELD_NUMBER = 8;
8395 private double value_;
8397 * <code>optional double value = 8;</code>
8399 public boolean hasValue() {
8400 return ((bitField0_ & 0x00000080) == 0x00000080);
8403 * <code>optional double value = 8;</code>
8405 public double getValue() {
8409 private void initFields() {
8415 negativeResponseCode_ = 0;
8416 payload_ = com.google.protobuf.ByteString.EMPTY;
8419 private byte memoizedIsInitialized = -1;
8420 public final boolean isInitialized() {
8421 byte isInitialized = memoizedIsInitialized;
8422 if (isInitialized == 1) return true;
8423 if (isInitialized == 0) return false;
8425 memoizedIsInitialized = 1;
8429 public void writeTo(com.google.protobuf.CodedOutputStream output)
8430 throws java.io.IOException {
8431 getSerializedSize();
8432 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8433 output.writeInt32(1, bus_);
8435 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8436 output.writeUInt32(2, messageId_);
8438 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8439 output.writeUInt32(3, mode_);
8441 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8442 output.writeUInt32(4, pid_);
8444 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8445 output.writeBool(5, success_);
8447 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8448 output.writeUInt32(6, negativeResponseCode_);
8450 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8451 output.writeBytes(7, payload_);
8453 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8454 output.writeDouble(8, value_);
8456 getUnknownFields().writeTo(output);
8459 private int memoizedSerializedSize = -1;
8460 public int getSerializedSize() {
8461 int size = memoizedSerializedSize;
8462 if (size != -1) return size;
8465 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8466 size += com.google.protobuf.CodedOutputStream
8467 .computeInt32Size(1, bus_);
8469 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8470 size += com.google.protobuf.CodedOutputStream
8471 .computeUInt32Size(2, messageId_);
8473 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8474 size += com.google.protobuf.CodedOutputStream
8475 .computeUInt32Size(3, mode_);
8477 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8478 size += com.google.protobuf.CodedOutputStream
8479 .computeUInt32Size(4, pid_);
8481 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8482 size += com.google.protobuf.CodedOutputStream
8483 .computeBoolSize(5, success_);
8485 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8486 size += com.google.protobuf.CodedOutputStream
8487 .computeUInt32Size(6, negativeResponseCode_);
8489 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8490 size += com.google.protobuf.CodedOutputStream
8491 .computeBytesSize(7, payload_);
8493 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8494 size += com.google.protobuf.CodedOutputStream
8495 .computeDoubleSize(8, value_);
8497 size += getUnknownFields().getSerializedSize();
8498 memoizedSerializedSize = size;
8502 private static final long serialVersionUID = 0L;
8504 protected java.lang.Object writeReplace()
8505 throws java.io.ObjectStreamException {
8506 return super.writeReplace();
8509 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8510 com.google.protobuf.ByteString data)
8511 throws com.google.protobuf.InvalidProtocolBufferException {
8512 return PARSER.parseFrom(data);
8514 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8515 com.google.protobuf.ByteString data,
8516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8517 throws com.google.protobuf.InvalidProtocolBufferException {
8518 return PARSER.parseFrom(data, extensionRegistry);
8520 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
8521 throws com.google.protobuf.InvalidProtocolBufferException {
8522 return PARSER.parseFrom(data);
8524 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8526 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8527 throws com.google.protobuf.InvalidProtocolBufferException {
8528 return PARSER.parseFrom(data, extensionRegistry);
8530 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
8531 throws java.io.IOException {
8532 return PARSER.parseFrom(input);
8534 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8535 java.io.InputStream input,
8536 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8537 throws java.io.IOException {
8538 return PARSER.parseFrom(input, extensionRegistry);
8540 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
8541 throws java.io.IOException {
8542 return PARSER.parseDelimitedFrom(input);
8544 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
8545 java.io.InputStream input,
8546 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8547 throws java.io.IOException {
8548 return PARSER.parseDelimitedFrom(input, extensionRegistry);
8550 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8551 com.google.protobuf.CodedInputStream input)
8552 throws java.io.IOException {
8553 return PARSER.parseFrom(input);
8555 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8556 com.google.protobuf.CodedInputStream input,
8557 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8558 throws java.io.IOException {
8559 return PARSER.parseFrom(input, extensionRegistry);
8562 public static Builder newBuilder() { return Builder.create(); }
8563 public Builder newBuilderForType() { return newBuilder(); }
8564 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
8565 return newBuilder().mergeFrom(prototype);
8567 public Builder toBuilder() { return newBuilder(this); }
8570 protected Builder newBuilderForType(
8571 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8572 Builder builder = new Builder(parent);
8576 * Protobuf type {@code openxc.DiagnosticResponse}
8578 public static final class Builder extends
8579 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
8580 // @@protoc_insertion_point(builder_implements:openxc.DiagnosticResponse)
8581 com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
8582 public static final com.google.protobuf.Descriptors.Descriptor
8584 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8587 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8588 internalGetFieldAccessorTable() {
8589 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8590 .ensureFieldAccessorsInitialized(
8591 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8594 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
8596 maybeForceBuilderInitialization();
8600 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8602 maybeForceBuilderInitialization();
8604 private void maybeForceBuilderInitialization() {
8605 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8608 private static Builder create() {
8609 return new Builder();
8612 public Builder clear() {
8615 bitField0_ = (bitField0_ & ~0x00000001);
8617 bitField0_ = (bitField0_ & ~0x00000002);
8619 bitField0_ = (bitField0_ & ~0x00000004);
8621 bitField0_ = (bitField0_ & ~0x00000008);
8623 bitField0_ = (bitField0_ & ~0x00000010);
8624 negativeResponseCode_ = 0;
8625 bitField0_ = (bitField0_ & ~0x00000020);
8626 payload_ = com.google.protobuf.ByteString.EMPTY;
8627 bitField0_ = (bitField0_ & ~0x00000040);
8629 bitField0_ = (bitField0_ & ~0x00000080);
8633 public Builder clone() {
8634 return create().mergeFrom(buildPartial());
8637 public com.google.protobuf.Descriptors.Descriptor
8638 getDescriptorForType() {
8639 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8642 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
8643 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
8646 public com.openxc.BinaryMessages.DiagnosticResponse build() {
8647 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
8648 if (!result.isInitialized()) {
8649 throw newUninitializedMessageException(result);
8654 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
8655 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
8656 int from_bitField0_ = bitField0_;
8657 int to_bitField0_ = 0;
8658 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8659 to_bitField0_ |= 0x00000001;
8662 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8663 to_bitField0_ |= 0x00000002;
8665 result.messageId_ = messageId_;
8666 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8667 to_bitField0_ |= 0x00000004;
8669 result.mode_ = mode_;
8670 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
8671 to_bitField0_ |= 0x00000008;
8674 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
8675 to_bitField0_ |= 0x00000010;
8677 result.success_ = success_;
8678 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
8679 to_bitField0_ |= 0x00000020;
8681 result.negativeResponseCode_ = negativeResponseCode_;
8682 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
8683 to_bitField0_ |= 0x00000040;
8685 result.payload_ = payload_;
8686 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
8687 to_bitField0_ |= 0x00000080;
8689 result.value_ = value_;
8690 result.bitField0_ = to_bitField0_;
8695 public Builder mergeFrom(com.google.protobuf.Message other) {
8696 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
8697 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
8699 super.mergeFrom(other);
8704 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
8705 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
8706 if (other.hasBus()) {
8707 setBus(other.getBus());
8709 if (other.hasMessageId()) {
8710 setMessageId(other.getMessageId());
8712 if (other.hasMode()) {
8713 setMode(other.getMode());
8715 if (other.hasPid()) {
8716 setPid(other.getPid());
8718 if (other.hasSuccess()) {
8719 setSuccess(other.getSuccess());
8721 if (other.hasNegativeResponseCode()) {
8722 setNegativeResponseCode(other.getNegativeResponseCode());
8724 if (other.hasPayload()) {
8725 setPayload(other.getPayload());
8727 if (other.hasValue()) {
8728 setValue(other.getValue());
8730 this.mergeUnknownFields(other.getUnknownFields());
8734 public final boolean isInitialized() {
8738 public Builder mergeFrom(
8739 com.google.protobuf.CodedInputStream input,
8740 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8741 throws java.io.IOException {
8742 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
8744 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
8745 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8746 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
8749 if (parsedMessage != null) {
8750 mergeFrom(parsedMessage);
8755 private int bitField0_;
8759 * <code>optional int32 bus = 1;</code>
8761 public boolean hasBus() {
8762 return ((bitField0_ & 0x00000001) == 0x00000001);
8765 * <code>optional int32 bus = 1;</code>
8767 public int getBus() {
8771 * <code>optional int32 bus = 1;</code>
8773 public Builder setBus(int value) {
8774 bitField0_ |= 0x00000001;
8780 * <code>optional int32 bus = 1;</code>
8782 public Builder clearBus() {
8783 bitField0_ = (bitField0_ & ~0x00000001);
8789 private int messageId_ ;
8791 * <code>optional uint32 message_id = 2;</code>
8793 public boolean hasMessageId() {
8794 return ((bitField0_ & 0x00000002) == 0x00000002);
8797 * <code>optional uint32 message_id = 2;</code>
8799 public int getMessageId() {
8803 * <code>optional uint32 message_id = 2;</code>
8805 public Builder setMessageId(int value) {
8806 bitField0_ |= 0x00000002;
8812 * <code>optional uint32 message_id = 2;</code>
8814 public Builder clearMessageId() {
8815 bitField0_ = (bitField0_ & ~0x00000002);
8823 * <code>optional uint32 mode = 3;</code>
8825 public boolean hasMode() {
8826 return ((bitField0_ & 0x00000004) == 0x00000004);
8829 * <code>optional uint32 mode = 3;</code>
8831 public int getMode() {
8835 * <code>optional uint32 mode = 3;</code>
8837 public Builder setMode(int value) {
8838 bitField0_ |= 0x00000004;
8844 * <code>optional uint32 mode = 3;</code>
8846 public Builder clearMode() {
8847 bitField0_ = (bitField0_ & ~0x00000004);
8855 * <code>optional uint32 pid = 4;</code>
8857 public boolean hasPid() {
8858 return ((bitField0_ & 0x00000008) == 0x00000008);
8861 * <code>optional uint32 pid = 4;</code>
8863 public int getPid() {
8867 * <code>optional uint32 pid = 4;</code>
8869 public Builder setPid(int value) {
8870 bitField0_ |= 0x00000008;
8876 * <code>optional uint32 pid = 4;</code>
8878 public Builder clearPid() {
8879 bitField0_ = (bitField0_ & ~0x00000008);
8885 private boolean success_ ;
8887 * <code>optional bool success = 5;</code>
8889 public boolean hasSuccess() {
8890 return ((bitField0_ & 0x00000010) == 0x00000010);
8893 * <code>optional bool success = 5;</code>
8895 public boolean getSuccess() {
8899 * <code>optional bool success = 5;</code>
8901 public Builder setSuccess(boolean value) {
8902 bitField0_ |= 0x00000010;
8908 * <code>optional bool success = 5;</code>
8910 public Builder clearSuccess() {
8911 bitField0_ = (bitField0_ & ~0x00000010);
8917 private int negativeResponseCode_ ;
8919 * <code>optional uint32 negative_response_code = 6;</code>
8921 public boolean hasNegativeResponseCode() {
8922 return ((bitField0_ & 0x00000020) == 0x00000020);
8925 * <code>optional uint32 negative_response_code = 6;</code>
8927 public int getNegativeResponseCode() {
8928 return negativeResponseCode_;
8931 * <code>optional uint32 negative_response_code = 6;</code>
8933 public Builder setNegativeResponseCode(int value) {
8934 bitField0_ |= 0x00000020;
8935 negativeResponseCode_ = value;
8940 * <code>optional uint32 negative_response_code = 6;</code>
8942 public Builder clearNegativeResponseCode() {
8943 bitField0_ = (bitField0_ & ~0x00000020);
8944 negativeResponseCode_ = 0;
8949 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
8951 * <code>optional bytes payload = 7;</code>
8954 * TODO we are capping this at 8 bytes for now - need to change when we
8955 * support multi-frame responses
8958 public boolean hasPayload() {
8959 return ((bitField0_ & 0x00000040) == 0x00000040);
8962 * <code>optional bytes payload = 7;</code>
8965 * TODO we are capping this at 8 bytes for now - need to change when we
8966 * support multi-frame responses
8969 public com.google.protobuf.ByteString getPayload() {
8973 * <code>optional bytes payload = 7;</code>
8976 * TODO we are capping this at 8 bytes for now - need to change when we
8977 * support multi-frame responses
8980 public Builder setPayload(com.google.protobuf.ByteString value) {
8981 if (value == null) {
8982 throw new NullPointerException();
8984 bitField0_ |= 0x00000040;
8990 * <code>optional bytes payload = 7;</code>
8993 * TODO we are capping this at 8 bytes for now - need to change when we
8994 * support multi-frame responses
8997 public Builder clearPayload() {
8998 bitField0_ = (bitField0_ & ~0x00000040);
8999 payload_ = getDefaultInstance().getPayload();
9004 private double value_ ;
9006 * <code>optional double value = 8;</code>
9008 public boolean hasValue() {
9009 return ((bitField0_ & 0x00000080) == 0x00000080);
9012 * <code>optional double value = 8;</code>
9014 public double getValue() {
9018 * <code>optional double value = 8;</code>
9020 public Builder setValue(double value) {
9021 bitField0_ |= 0x00000080;
9027 * <code>optional double value = 8;</code>
9029 public Builder clearValue() {
9030 bitField0_ = (bitField0_ & ~0x00000080);
9036 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
9040 defaultInstance = new DiagnosticResponse(true);
9041 defaultInstance.initFields();
9044 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
9047 public interface DynamicFieldOrBuilder extends
9048 // @@protoc_insertion_point(interface_extends:openxc.DynamicField)
9049 com.google.protobuf.MessageOrBuilder {
9052 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9056 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9058 com.openxc.BinaryMessages.DynamicField.Type getType();
9061 * <code>optional string string_value = 2;</code>
9063 boolean hasStringValue();
9065 * <code>optional string string_value = 2;</code>
9067 java.lang.String getStringValue();
9069 * <code>optional string string_value = 2;</code>
9071 com.google.protobuf.ByteString
9072 getStringValueBytes();
9075 * <code>optional double numeric_value = 3;</code>
9077 boolean hasNumericValue();
9079 * <code>optional double numeric_value = 3;</code>
9081 double getNumericValue();
9084 * <code>optional bool boolean_value = 4;</code>
9086 boolean hasBooleanValue();
9088 * <code>optional bool boolean_value = 4;</code>
9090 boolean getBooleanValue();
9093 * Protobuf type {@code openxc.DynamicField}
9095 public static final class DynamicField extends
9096 com.google.protobuf.GeneratedMessage implements
9097 // @@protoc_insertion_point(message_implements:openxc.DynamicField)
9098 DynamicFieldOrBuilder {
9099 // Use DynamicField.newBuilder() to construct.
9100 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9102 this.unknownFields = builder.getUnknownFields();
9104 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
9106 private static final DynamicField defaultInstance;
9107 public static DynamicField getDefaultInstance() {
9108 return defaultInstance;
9111 public DynamicField getDefaultInstanceForType() {
9112 return defaultInstance;
9115 private final com.google.protobuf.UnknownFieldSet unknownFields;
9117 public final com.google.protobuf.UnknownFieldSet
9118 getUnknownFields() {
9119 return this.unknownFields;
9121 private DynamicField(
9122 com.google.protobuf.CodedInputStream input,
9123 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9124 throws com.google.protobuf.InvalidProtocolBufferException {
9126 int mutable_bitField0_ = 0;
9127 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9128 com.google.protobuf.UnknownFieldSet.newBuilder();
9130 boolean done = false;
9132 int tag = input.readTag();
9138 if (!parseUnknownField(input, unknownFields,
9139 extensionRegistry, tag)) {
9145 int rawValue = input.readEnum();
9146 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
9147 if (value == null) {
9148 unknownFields.mergeVarintField(1, rawValue);
9150 bitField0_ |= 0x00000001;
9156 com.google.protobuf.ByteString bs = input.readBytes();
9157 bitField0_ |= 0x00000002;
9162 bitField0_ |= 0x00000004;
9163 numericValue_ = input.readDouble();
9167 bitField0_ |= 0x00000008;
9168 booleanValue_ = input.readBool();
9173 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9174 throw e.setUnfinishedMessage(this);
9175 } catch (java.io.IOException e) {
9176 throw new com.google.protobuf.InvalidProtocolBufferException(
9177 e.getMessage()).setUnfinishedMessage(this);
9179 this.unknownFields = unknownFields.build();
9180 makeExtensionsImmutable();
9183 public static final com.google.protobuf.Descriptors.Descriptor
9185 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9188 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9189 internalGetFieldAccessorTable() {
9190 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9191 .ensureFieldAccessorsInitialized(
9192 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9195 public static com.google.protobuf.Parser<DynamicField> PARSER =
9196 new com.google.protobuf.AbstractParser<DynamicField>() {
9197 public DynamicField parsePartialFrom(
9198 com.google.protobuf.CodedInputStream input,
9199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9200 throws com.google.protobuf.InvalidProtocolBufferException {
9201 return new DynamicField(input, extensionRegistry);
9206 public com.google.protobuf.Parser<DynamicField> getParserForType() {
9211 * Protobuf enum {@code openxc.DynamicField.Type}
9214 implements com.google.protobuf.ProtocolMessageEnum {
9216 * <code>STRING = 1;</code>
9220 * <code>NUM = 2;</code>
9224 * <code>BOOL = 3;</code>
9230 * <code>STRING = 1;</code>
9232 public static final int STRING_VALUE = 1;
9234 * <code>NUM = 2;</code>
9236 public static final int NUM_VALUE = 2;
9238 * <code>BOOL = 3;</code>
9240 public static final int BOOL_VALUE = 3;
9243 public final int getNumber() { return value; }
9245 public static Type valueOf(int value) {
9247 case 1: return STRING;
9249 case 3: return BOOL;
9250 default: return null;
9254 public static com.google.protobuf.Internal.EnumLiteMap<Type>
9255 internalGetValueMap() {
9256 return internalValueMap;
9258 private static com.google.protobuf.Internal.EnumLiteMap<Type>
9260 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
9261 public Type findValueByNumber(int number) {
9262 return Type.valueOf(number);
9266 public final com.google.protobuf.Descriptors.EnumValueDescriptor
9267 getValueDescriptor() {
9268 return getDescriptor().getValues().get(index);
9270 public final com.google.protobuf.Descriptors.EnumDescriptor
9271 getDescriptorForType() {
9272 return getDescriptor();
9274 public static final com.google.protobuf.Descriptors.EnumDescriptor
9276 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
9279 private static final Type[] VALUES = values();
9281 public static Type valueOf(
9282 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
9283 if (desc.getType() != getDescriptor()) {
9284 throw new java.lang.IllegalArgumentException(
9285 "EnumValueDescriptor is not for this type.");
9287 return VALUES[desc.getIndex()];
9290 private final int index;
9291 private final int value;
9293 private Type(int index, int value) {
9298 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
9301 private int bitField0_;
9302 public static final int TYPE_FIELD_NUMBER = 1;
9303 private com.openxc.BinaryMessages.DynamicField.Type type_;
9305 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9307 public boolean hasType() {
9308 return ((bitField0_ & 0x00000001) == 0x00000001);
9311 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9313 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9317 public static final int STRING_VALUE_FIELD_NUMBER = 2;
9318 private java.lang.Object stringValue_;
9320 * <code>optional string string_value = 2;</code>
9322 public boolean hasStringValue() {
9323 return ((bitField0_ & 0x00000002) == 0x00000002);
9326 * <code>optional string string_value = 2;</code>
9328 public java.lang.String getStringValue() {
9329 java.lang.Object ref = stringValue_;
9330 if (ref instanceof java.lang.String) {
9331 return (java.lang.String) ref;
9333 com.google.protobuf.ByteString bs =
9334 (com.google.protobuf.ByteString) ref;
9335 java.lang.String s = bs.toStringUtf8();
9336 if (bs.isValidUtf8()) {
9343 * <code>optional string string_value = 2;</code>
9345 public com.google.protobuf.ByteString
9346 getStringValueBytes() {
9347 java.lang.Object ref = stringValue_;
9348 if (ref instanceof java.lang.String) {
9349 com.google.protobuf.ByteString b =
9350 com.google.protobuf.ByteString.copyFromUtf8(
9351 (java.lang.String) ref);
9355 return (com.google.protobuf.ByteString) ref;
9359 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
9360 private double numericValue_;
9362 * <code>optional double numeric_value = 3;</code>
9364 public boolean hasNumericValue() {
9365 return ((bitField0_ & 0x00000004) == 0x00000004);
9368 * <code>optional double numeric_value = 3;</code>
9370 public double getNumericValue() {
9371 return numericValue_;
9374 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
9375 private boolean booleanValue_;
9377 * <code>optional bool boolean_value = 4;</code>
9379 public boolean hasBooleanValue() {
9380 return ((bitField0_ & 0x00000008) == 0x00000008);
9383 * <code>optional bool boolean_value = 4;</code>
9385 public boolean getBooleanValue() {
9386 return booleanValue_;
9389 private void initFields() {
9390 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9393 booleanValue_ = false;
9395 private byte memoizedIsInitialized = -1;
9396 public final boolean isInitialized() {
9397 byte isInitialized = memoizedIsInitialized;
9398 if (isInitialized == 1) return true;
9399 if (isInitialized == 0) return false;
9401 memoizedIsInitialized = 1;
9405 public void writeTo(com.google.protobuf.CodedOutputStream output)
9406 throws java.io.IOException {
9407 getSerializedSize();
9408 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9409 output.writeEnum(1, type_.getNumber());
9411 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9412 output.writeBytes(2, getStringValueBytes());
9414 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9415 output.writeDouble(3, numericValue_);
9417 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9418 output.writeBool(4, booleanValue_);
9420 getUnknownFields().writeTo(output);
9423 private int memoizedSerializedSize = -1;
9424 public int getSerializedSize() {
9425 int size = memoizedSerializedSize;
9426 if (size != -1) return size;
9429 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9430 size += com.google.protobuf.CodedOutputStream
9431 .computeEnumSize(1, type_.getNumber());
9433 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9434 size += com.google.protobuf.CodedOutputStream
9435 .computeBytesSize(2, getStringValueBytes());
9437 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9438 size += com.google.protobuf.CodedOutputStream
9439 .computeDoubleSize(3, numericValue_);
9441 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9442 size += com.google.protobuf.CodedOutputStream
9443 .computeBoolSize(4, booleanValue_);
9445 size += getUnknownFields().getSerializedSize();
9446 memoizedSerializedSize = size;
9450 private static final long serialVersionUID = 0L;
9452 protected java.lang.Object writeReplace()
9453 throws java.io.ObjectStreamException {
9454 return super.writeReplace();
9457 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9458 com.google.protobuf.ByteString data)
9459 throws com.google.protobuf.InvalidProtocolBufferException {
9460 return PARSER.parseFrom(data);
9462 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9463 com.google.protobuf.ByteString data,
9464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9465 throws com.google.protobuf.InvalidProtocolBufferException {
9466 return PARSER.parseFrom(data, extensionRegistry);
9468 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
9469 throws com.google.protobuf.InvalidProtocolBufferException {
9470 return PARSER.parseFrom(data);
9472 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9475 throws com.google.protobuf.InvalidProtocolBufferException {
9476 return PARSER.parseFrom(data, extensionRegistry);
9478 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
9479 throws java.io.IOException {
9480 return PARSER.parseFrom(input);
9482 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9483 java.io.InputStream input,
9484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9485 throws java.io.IOException {
9486 return PARSER.parseFrom(input, extensionRegistry);
9488 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
9489 throws java.io.IOException {
9490 return PARSER.parseDelimitedFrom(input);
9492 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
9493 java.io.InputStream input,
9494 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9495 throws java.io.IOException {
9496 return PARSER.parseDelimitedFrom(input, extensionRegistry);
9498 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9499 com.google.protobuf.CodedInputStream input)
9500 throws java.io.IOException {
9501 return PARSER.parseFrom(input);
9503 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9504 com.google.protobuf.CodedInputStream input,
9505 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9506 throws java.io.IOException {
9507 return PARSER.parseFrom(input, extensionRegistry);
9510 public static Builder newBuilder() { return Builder.create(); }
9511 public Builder newBuilderForType() { return newBuilder(); }
9512 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
9513 return newBuilder().mergeFrom(prototype);
9515 public Builder toBuilder() { return newBuilder(this); }
9518 protected Builder newBuilderForType(
9519 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9520 Builder builder = new Builder(parent);
9524 * Protobuf type {@code openxc.DynamicField}
9526 public static final class Builder extends
9527 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
9528 // @@protoc_insertion_point(builder_implements:openxc.DynamicField)
9529 com.openxc.BinaryMessages.DynamicFieldOrBuilder {
9530 public static final com.google.protobuf.Descriptors.Descriptor
9532 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9535 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9536 internalGetFieldAccessorTable() {
9537 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9538 .ensureFieldAccessorsInitialized(
9539 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9542 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
9544 maybeForceBuilderInitialization();
9548 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9550 maybeForceBuilderInitialization();
9552 private void maybeForceBuilderInitialization() {
9553 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9556 private static Builder create() {
9557 return new Builder();
9560 public Builder clear() {
9562 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9563 bitField0_ = (bitField0_ & ~0x00000001);
9565 bitField0_ = (bitField0_ & ~0x00000002);
9567 bitField0_ = (bitField0_ & ~0x00000004);
9568 booleanValue_ = false;
9569 bitField0_ = (bitField0_ & ~0x00000008);
9573 public Builder clone() {
9574 return create().mergeFrom(buildPartial());
9577 public com.google.protobuf.Descriptors.Descriptor
9578 getDescriptorForType() {
9579 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9582 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
9583 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9586 public com.openxc.BinaryMessages.DynamicField build() {
9587 com.openxc.BinaryMessages.DynamicField result = buildPartial();
9588 if (!result.isInitialized()) {
9589 throw newUninitializedMessageException(result);
9594 public com.openxc.BinaryMessages.DynamicField buildPartial() {
9595 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
9596 int from_bitField0_ = bitField0_;
9597 int to_bitField0_ = 0;
9598 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9599 to_bitField0_ |= 0x00000001;
9601 result.type_ = type_;
9602 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9603 to_bitField0_ |= 0x00000002;
9605 result.stringValue_ = stringValue_;
9606 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9607 to_bitField0_ |= 0x00000004;
9609 result.numericValue_ = numericValue_;
9610 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9611 to_bitField0_ |= 0x00000008;
9613 result.booleanValue_ = booleanValue_;
9614 result.bitField0_ = to_bitField0_;
9619 public Builder mergeFrom(com.google.protobuf.Message other) {
9620 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
9621 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
9623 super.mergeFrom(other);
9628 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
9629 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
9630 if (other.hasType()) {
9631 setType(other.getType());
9633 if (other.hasStringValue()) {
9634 bitField0_ |= 0x00000002;
9635 stringValue_ = other.stringValue_;
9638 if (other.hasNumericValue()) {
9639 setNumericValue(other.getNumericValue());
9641 if (other.hasBooleanValue()) {
9642 setBooleanValue(other.getBooleanValue());
9644 this.mergeUnknownFields(other.getUnknownFields());
9648 public final boolean isInitialized() {
9652 public Builder mergeFrom(
9653 com.google.protobuf.CodedInputStream input,
9654 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9655 throws java.io.IOException {
9656 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
9658 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
9659 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9660 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
9663 if (parsedMessage != null) {
9664 mergeFrom(parsedMessage);
9669 private int bitField0_;
9671 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9673 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9675 public boolean hasType() {
9676 return ((bitField0_ & 0x00000001) == 0x00000001);
9679 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9681 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9685 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9687 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
9688 if (value == null) {
9689 throw new NullPointerException();
9691 bitField0_ |= 0x00000001;
9697 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9699 public Builder clearType() {
9700 bitField0_ = (bitField0_ & ~0x00000001);
9701 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9706 private java.lang.Object stringValue_ = "";
9708 * <code>optional string string_value = 2;</code>
9710 public boolean hasStringValue() {
9711 return ((bitField0_ & 0x00000002) == 0x00000002);
9714 * <code>optional string string_value = 2;</code>
9716 public java.lang.String getStringValue() {
9717 java.lang.Object ref = stringValue_;
9718 if (!(ref instanceof java.lang.String)) {
9719 com.google.protobuf.ByteString bs =
9720 (com.google.protobuf.ByteString) ref;
9721 java.lang.String s = bs.toStringUtf8();
9722 if (bs.isValidUtf8()) {
9727 return (java.lang.String) ref;
9731 * <code>optional string string_value = 2;</code>
9733 public com.google.protobuf.ByteString
9734 getStringValueBytes() {
9735 java.lang.Object ref = stringValue_;
9736 if (ref instanceof String) {
9737 com.google.protobuf.ByteString b =
9738 com.google.protobuf.ByteString.copyFromUtf8(
9739 (java.lang.String) ref);
9743 return (com.google.protobuf.ByteString) ref;
9747 * <code>optional string string_value = 2;</code>
9749 public Builder setStringValue(
9750 java.lang.String value) {
9751 if (value == null) {
9752 throw new NullPointerException();
9754 bitField0_ |= 0x00000002;
9755 stringValue_ = value;
9760 * <code>optional string string_value = 2;</code>
9762 public Builder clearStringValue() {
9763 bitField0_ = (bitField0_ & ~0x00000002);
9764 stringValue_ = getDefaultInstance().getStringValue();
9769 * <code>optional string string_value = 2;</code>
9771 public Builder setStringValueBytes(
9772 com.google.protobuf.ByteString value) {
9773 if (value == null) {
9774 throw new NullPointerException();
9776 bitField0_ |= 0x00000002;
9777 stringValue_ = value;
9782 private double numericValue_ ;
9784 * <code>optional double numeric_value = 3;</code>
9786 public boolean hasNumericValue() {
9787 return ((bitField0_ & 0x00000004) == 0x00000004);
9790 * <code>optional double numeric_value = 3;</code>
9792 public double getNumericValue() {
9793 return numericValue_;
9796 * <code>optional double numeric_value = 3;</code>
9798 public Builder setNumericValue(double value) {
9799 bitField0_ |= 0x00000004;
9800 numericValue_ = value;
9805 * <code>optional double numeric_value = 3;</code>
9807 public Builder clearNumericValue() {
9808 bitField0_ = (bitField0_ & ~0x00000004);
9814 private boolean booleanValue_ ;
9816 * <code>optional bool boolean_value = 4;</code>
9818 public boolean hasBooleanValue() {
9819 return ((bitField0_ & 0x00000008) == 0x00000008);
9822 * <code>optional bool boolean_value = 4;</code>
9824 public boolean getBooleanValue() {
9825 return booleanValue_;
9828 * <code>optional bool boolean_value = 4;</code>
9830 public Builder setBooleanValue(boolean value) {
9831 bitField0_ |= 0x00000008;
9832 booleanValue_ = value;
9837 * <code>optional bool boolean_value = 4;</code>
9839 public Builder clearBooleanValue() {
9840 bitField0_ = (bitField0_ & ~0x00000008);
9841 booleanValue_ = false;
9846 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
9850 defaultInstance = new DynamicField(true);
9851 defaultInstance.initFields();
9854 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
9857 public interface SimpleMessageOrBuilder extends
9858 // @@protoc_insertion_point(interface_extends:openxc.SimpleMessage)
9859 com.google.protobuf.MessageOrBuilder {
9862 * <code>optional string name = 1;</code>
9866 * <code>optional string name = 1;</code>
9868 java.lang.String getName();
9870 * <code>optional string name = 1;</code>
9872 com.google.protobuf.ByteString
9876 * <code>optional .openxc.DynamicField value = 2;</code>
9880 * <code>optional .openxc.DynamicField value = 2;</code>
9882 com.openxc.BinaryMessages.DynamicField getValue();
9884 * <code>optional .openxc.DynamicField value = 2;</code>
9886 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
9889 * <code>optional .openxc.DynamicField event = 3;</code>
9893 * <code>optional .openxc.DynamicField event = 3;</code>
9895 com.openxc.BinaryMessages.DynamicField getEvent();
9897 * <code>optional .openxc.DynamicField event = 3;</code>
9899 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
9902 * Protobuf type {@code openxc.SimpleMessage}
9904 public static final class SimpleMessage extends
9905 com.google.protobuf.GeneratedMessage implements
9906 // @@protoc_insertion_point(message_implements:openxc.SimpleMessage)
9907 SimpleMessageOrBuilder {
9908 // Use SimpleMessage.newBuilder() to construct.
9909 private SimpleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9911 this.unknownFields = builder.getUnknownFields();
9913 private SimpleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
9915 private static final SimpleMessage defaultInstance;
9916 public static SimpleMessage getDefaultInstance() {
9917 return defaultInstance;
9920 public SimpleMessage getDefaultInstanceForType() {
9921 return defaultInstance;
9924 private final com.google.protobuf.UnknownFieldSet unknownFields;
9926 public final com.google.protobuf.UnknownFieldSet
9927 getUnknownFields() {
9928 return this.unknownFields;
9930 private SimpleMessage(
9931 com.google.protobuf.CodedInputStream input,
9932 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9933 throws com.google.protobuf.InvalidProtocolBufferException {
9935 int mutable_bitField0_ = 0;
9936 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9937 com.google.protobuf.UnknownFieldSet.newBuilder();
9939 boolean done = false;
9941 int tag = input.readTag();
9947 if (!parseUnknownField(input, unknownFields,
9948 extensionRegistry, tag)) {
9954 com.google.protobuf.ByteString bs = input.readBytes();
9955 bitField0_ |= 0x00000001;
9960 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
9961 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9962 subBuilder = value_.toBuilder();
9964 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
9965 if (subBuilder != null) {
9966 subBuilder.mergeFrom(value_);
9967 value_ = subBuilder.buildPartial();
9969 bitField0_ |= 0x00000002;
9973 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
9974 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9975 subBuilder = event_.toBuilder();
9977 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
9978 if (subBuilder != null) {
9979 subBuilder.mergeFrom(event_);
9980 event_ = subBuilder.buildPartial();
9982 bitField0_ |= 0x00000004;
9987 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9988 throw e.setUnfinishedMessage(this);
9989 } catch (java.io.IOException e) {
9990 throw new com.google.protobuf.InvalidProtocolBufferException(
9991 e.getMessage()).setUnfinishedMessage(this);
9993 this.unknownFields = unknownFields.build();
9994 makeExtensionsImmutable();
9997 public static final com.google.protobuf.Descriptors.Descriptor
9999 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10002 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10003 internalGetFieldAccessorTable() {
10004 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable
10005 .ensureFieldAccessorsInitialized(
10006 com.openxc.BinaryMessages.SimpleMessage.class, com.openxc.BinaryMessages.SimpleMessage.Builder.class);
10009 public static com.google.protobuf.Parser<SimpleMessage> PARSER =
10010 new com.google.protobuf.AbstractParser<SimpleMessage>() {
10011 public SimpleMessage parsePartialFrom(
10012 com.google.protobuf.CodedInputStream input,
10013 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10014 throws com.google.protobuf.InvalidProtocolBufferException {
10015 return new SimpleMessage(input, extensionRegistry);
10019 @java.lang.Override
10020 public com.google.protobuf.Parser<SimpleMessage> getParserForType() {
10024 private int bitField0_;
10025 public static final int NAME_FIELD_NUMBER = 1;
10026 private java.lang.Object name_;
10028 * <code>optional string name = 1;</code>
10030 public boolean hasName() {
10031 return ((bitField0_ & 0x00000001) == 0x00000001);
10034 * <code>optional string name = 1;</code>
10036 public java.lang.String getName() {
10037 java.lang.Object ref = name_;
10038 if (ref instanceof java.lang.String) {
10039 return (java.lang.String) ref;
10041 com.google.protobuf.ByteString bs =
10042 (com.google.protobuf.ByteString) ref;
10043 java.lang.String s = bs.toStringUtf8();
10044 if (bs.isValidUtf8()) {
10051 * <code>optional string name = 1;</code>
10053 public com.google.protobuf.ByteString
10055 java.lang.Object ref = name_;
10056 if (ref instanceof java.lang.String) {
10057 com.google.protobuf.ByteString b =
10058 com.google.protobuf.ByteString.copyFromUtf8(
10059 (java.lang.String) ref);
10063 return (com.google.protobuf.ByteString) ref;
10067 public static final int VALUE_FIELD_NUMBER = 2;
10068 private com.openxc.BinaryMessages.DynamicField value_;
10070 * <code>optional .openxc.DynamicField value = 2;</code>
10072 public boolean hasValue() {
10073 return ((bitField0_ & 0x00000002) == 0x00000002);
10076 * <code>optional .openxc.DynamicField value = 2;</code>
10078 public com.openxc.BinaryMessages.DynamicField getValue() {
10082 * <code>optional .openxc.DynamicField value = 2;</code>
10084 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10088 public static final int EVENT_FIELD_NUMBER = 3;
10089 private com.openxc.BinaryMessages.DynamicField event_;
10091 * <code>optional .openxc.DynamicField event = 3;</code>
10093 public boolean hasEvent() {
10094 return ((bitField0_ & 0x00000004) == 0x00000004);
10097 * <code>optional .openxc.DynamicField event = 3;</code>
10099 public com.openxc.BinaryMessages.DynamicField getEvent() {
10103 * <code>optional .openxc.DynamicField event = 3;</code>
10105 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10109 private void initFields() {
10111 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10112 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10114 private byte memoizedIsInitialized = -1;
10115 public final boolean isInitialized() {
10116 byte isInitialized = memoizedIsInitialized;
10117 if (isInitialized == 1) return true;
10118 if (isInitialized == 0) return false;
10120 memoizedIsInitialized = 1;
10124 public void writeTo(com.google.protobuf.CodedOutputStream output)
10125 throws java.io.IOException {
10126 getSerializedSize();
10127 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10128 output.writeBytes(1, getNameBytes());
10130 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10131 output.writeMessage(2, value_);
10133 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10134 output.writeMessage(3, event_);
10136 getUnknownFields().writeTo(output);
10139 private int memoizedSerializedSize = -1;
10140 public int getSerializedSize() {
10141 int size = memoizedSerializedSize;
10142 if (size != -1) return size;
10145 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10146 size += com.google.protobuf.CodedOutputStream
10147 .computeBytesSize(1, getNameBytes());
10149 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10150 size += com.google.protobuf.CodedOutputStream
10151 .computeMessageSize(2, value_);
10153 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10154 size += com.google.protobuf.CodedOutputStream
10155 .computeMessageSize(3, event_);
10157 size += getUnknownFields().getSerializedSize();
10158 memoizedSerializedSize = size;
10162 private static final long serialVersionUID = 0L;
10163 @java.lang.Override
10164 protected java.lang.Object writeReplace()
10165 throws java.io.ObjectStreamException {
10166 return super.writeReplace();
10169 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10170 com.google.protobuf.ByteString data)
10171 throws com.google.protobuf.InvalidProtocolBufferException {
10172 return PARSER.parseFrom(data);
10174 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10175 com.google.protobuf.ByteString data,
10176 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10177 throws com.google.protobuf.InvalidProtocolBufferException {
10178 return PARSER.parseFrom(data, extensionRegistry);
10180 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(byte[] data)
10181 throws com.google.protobuf.InvalidProtocolBufferException {
10182 return PARSER.parseFrom(data);
10184 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10187 throws com.google.protobuf.InvalidProtocolBufferException {
10188 return PARSER.parseFrom(data, extensionRegistry);
10190 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(java.io.InputStream input)
10191 throws java.io.IOException {
10192 return PARSER.parseFrom(input);
10194 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10195 java.io.InputStream input,
10196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10197 throws java.io.IOException {
10198 return PARSER.parseFrom(input, extensionRegistry);
10200 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(java.io.InputStream input)
10201 throws java.io.IOException {
10202 return PARSER.parseDelimitedFrom(input);
10204 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(
10205 java.io.InputStream input,
10206 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10207 throws java.io.IOException {
10208 return PARSER.parseDelimitedFrom(input, extensionRegistry);
10210 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10211 com.google.protobuf.CodedInputStream input)
10212 throws java.io.IOException {
10213 return PARSER.parseFrom(input);
10215 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10216 com.google.protobuf.CodedInputStream input,
10217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10218 throws java.io.IOException {
10219 return PARSER.parseFrom(input, extensionRegistry);
10222 public static Builder newBuilder() { return Builder.create(); }
10223 public Builder newBuilderForType() { return newBuilder(); }
10224 public static Builder newBuilder(com.openxc.BinaryMessages.SimpleMessage prototype) {
10225 return newBuilder().mergeFrom(prototype);
10227 public Builder toBuilder() { return newBuilder(this); }
10229 @java.lang.Override
10230 protected Builder newBuilderForType(
10231 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10232 Builder builder = new Builder(parent);
10236 * Protobuf type {@code openxc.SimpleMessage}
10238 public static final class Builder extends
10239 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
10240 // @@protoc_insertion_point(builder_implements:openxc.SimpleMessage)
10241 com.openxc.BinaryMessages.SimpleMessageOrBuilder {
10242 public static final com.google.protobuf.Descriptors.Descriptor
10244 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10247 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10248 internalGetFieldAccessorTable() {
10249 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable
10250 .ensureFieldAccessorsInitialized(
10251 com.openxc.BinaryMessages.SimpleMessage.class, com.openxc.BinaryMessages.SimpleMessage.Builder.class);
10254 // Construct using com.openxc.BinaryMessages.SimpleMessage.newBuilder()
10255 private Builder() {
10256 maybeForceBuilderInitialization();
10260 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10262 maybeForceBuilderInitialization();
10264 private void maybeForceBuilderInitialization() {
10265 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10266 getValueFieldBuilder();
10267 getEventFieldBuilder();
10270 private static Builder create() {
10271 return new Builder();
10274 public Builder clear() {
10277 bitField0_ = (bitField0_ & ~0x00000001);
10278 if (valueBuilder_ == null) {
10279 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10281 valueBuilder_.clear();
10283 bitField0_ = (bitField0_ & ~0x00000002);
10284 if (eventBuilder_ == null) {
10285 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10287 eventBuilder_.clear();
10289 bitField0_ = (bitField0_ & ~0x00000004);
10293 public Builder clone() {
10294 return create().mergeFrom(buildPartial());
10297 public com.google.protobuf.Descriptors.Descriptor
10298 getDescriptorForType() {
10299 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10302 public com.openxc.BinaryMessages.SimpleMessage getDefaultInstanceForType() {
10303 return com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
10306 public com.openxc.BinaryMessages.SimpleMessage build() {
10307 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
10308 if (!result.isInitialized()) {
10309 throw newUninitializedMessageException(result);
10314 public com.openxc.BinaryMessages.SimpleMessage buildPartial() {
10315 com.openxc.BinaryMessages.SimpleMessage result = new com.openxc.BinaryMessages.SimpleMessage(this);
10316 int from_bitField0_ = bitField0_;
10317 int to_bitField0_ = 0;
10318 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10319 to_bitField0_ |= 0x00000001;
10321 result.name_ = name_;
10322 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10323 to_bitField0_ |= 0x00000002;
10325 if (valueBuilder_ == null) {
10326 result.value_ = value_;
10328 result.value_ = valueBuilder_.build();
10330 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10331 to_bitField0_ |= 0x00000004;
10333 if (eventBuilder_ == null) {
10334 result.event_ = event_;
10336 result.event_ = eventBuilder_.build();
10338 result.bitField0_ = to_bitField0_;
10343 public Builder mergeFrom(com.google.protobuf.Message other) {
10344 if (other instanceof com.openxc.BinaryMessages.SimpleMessage) {
10345 return mergeFrom((com.openxc.BinaryMessages.SimpleMessage)other);
10347 super.mergeFrom(other);
10352 public Builder mergeFrom(com.openxc.BinaryMessages.SimpleMessage other) {
10353 if (other == com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) return this;
10354 if (other.hasName()) {
10355 bitField0_ |= 0x00000001;
10356 name_ = other.name_;
10359 if (other.hasValue()) {
10360 mergeValue(other.getValue());
10362 if (other.hasEvent()) {
10363 mergeEvent(other.getEvent());
10365 this.mergeUnknownFields(other.getUnknownFields());
10369 public final boolean isInitialized() {
10373 public Builder mergeFrom(
10374 com.google.protobuf.CodedInputStream input,
10375 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10376 throws java.io.IOException {
10377 com.openxc.BinaryMessages.SimpleMessage parsedMessage = null;
10379 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
10380 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10381 parsedMessage = (com.openxc.BinaryMessages.SimpleMessage) e.getUnfinishedMessage();
10384 if (parsedMessage != null) {
10385 mergeFrom(parsedMessage);
10390 private int bitField0_;
10392 private java.lang.Object name_ = "";
10394 * <code>optional string name = 1;</code>
10396 public boolean hasName() {
10397 return ((bitField0_ & 0x00000001) == 0x00000001);
10400 * <code>optional string name = 1;</code>
10402 public java.lang.String getName() {
10403 java.lang.Object ref = name_;
10404 if (!(ref instanceof java.lang.String)) {
10405 com.google.protobuf.ByteString bs =
10406 (com.google.protobuf.ByteString) ref;
10407 java.lang.String s = bs.toStringUtf8();
10408 if (bs.isValidUtf8()) {
10413 return (java.lang.String) ref;
10417 * <code>optional string name = 1;</code>
10419 public com.google.protobuf.ByteString
10421 java.lang.Object ref = name_;
10422 if (ref instanceof String) {
10423 com.google.protobuf.ByteString b =
10424 com.google.protobuf.ByteString.copyFromUtf8(
10425 (java.lang.String) ref);
10429 return (com.google.protobuf.ByteString) ref;
10433 * <code>optional string name = 1;</code>
10435 public Builder setName(
10436 java.lang.String value) {
10437 if (value == null) {
10438 throw new NullPointerException();
10440 bitField0_ |= 0x00000001;
10446 * <code>optional string name = 1;</code>
10448 public Builder clearName() {
10449 bitField0_ = (bitField0_ & ~0x00000001);
10450 name_ = getDefaultInstance().getName();
10455 * <code>optional string name = 1;</code>
10457 public Builder setNameBytes(
10458 com.google.protobuf.ByteString value) {
10459 if (value == null) {
10460 throw new NullPointerException();
10462 bitField0_ |= 0x00000001;
10468 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10469 private com.google.protobuf.SingleFieldBuilder<
10470 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
10472 * <code>optional .openxc.DynamicField value = 2;</code>
10474 public boolean hasValue() {
10475 return ((bitField0_ & 0x00000002) == 0x00000002);
10478 * <code>optional .openxc.DynamicField value = 2;</code>
10480 public com.openxc.BinaryMessages.DynamicField getValue() {
10481 if (valueBuilder_ == null) {
10484 return valueBuilder_.getMessage();
10488 * <code>optional .openxc.DynamicField value = 2;</code>
10490 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
10491 if (valueBuilder_ == null) {
10492 if (value == null) {
10493 throw new NullPointerException();
10498 valueBuilder_.setMessage(value);
10500 bitField0_ |= 0x00000002;
10504 * <code>optional .openxc.DynamicField value = 2;</code>
10506 public Builder setValue(
10507 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10508 if (valueBuilder_ == null) {
10509 value_ = builderForValue.build();
10512 valueBuilder_.setMessage(builderForValue.build());
10514 bitField0_ |= 0x00000002;
10518 * <code>optional .openxc.DynamicField value = 2;</code>
10520 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
10521 if (valueBuilder_ == null) {
10522 if (((bitField0_ & 0x00000002) == 0x00000002) &&
10523 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10525 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
10531 valueBuilder_.mergeFrom(value);
10533 bitField0_ |= 0x00000002;
10537 * <code>optional .openxc.DynamicField value = 2;</code>
10539 public Builder clearValue() {
10540 if (valueBuilder_ == null) {
10541 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10544 valueBuilder_.clear();
10546 bitField0_ = (bitField0_ & ~0x00000002);
10550 * <code>optional .openxc.DynamicField value = 2;</code>
10552 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
10553 bitField0_ |= 0x00000002;
10555 return getValueFieldBuilder().getBuilder();
10558 * <code>optional .openxc.DynamicField value = 2;</code>
10560 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10561 if (valueBuilder_ != null) {
10562 return valueBuilder_.getMessageOrBuilder();
10568 * <code>optional .openxc.DynamicField value = 2;</code>
10570 private com.google.protobuf.SingleFieldBuilder<
10571 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10572 getValueFieldBuilder() {
10573 if (valueBuilder_ == null) {
10574 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10575 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10577 getParentForChildren(),
10581 return valueBuilder_;
10584 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10585 private com.google.protobuf.SingleFieldBuilder<
10586 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
10588 * <code>optional .openxc.DynamicField event = 3;</code>
10590 public boolean hasEvent() {
10591 return ((bitField0_ & 0x00000004) == 0x00000004);
10594 * <code>optional .openxc.DynamicField event = 3;</code>
10596 public com.openxc.BinaryMessages.DynamicField getEvent() {
10597 if (eventBuilder_ == null) {
10600 return eventBuilder_.getMessage();
10604 * <code>optional .openxc.DynamicField event = 3;</code>
10606 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
10607 if (eventBuilder_ == null) {
10608 if (value == null) {
10609 throw new NullPointerException();
10614 eventBuilder_.setMessage(value);
10616 bitField0_ |= 0x00000004;
10620 * <code>optional .openxc.DynamicField event = 3;</code>
10622 public Builder setEvent(
10623 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10624 if (eventBuilder_ == null) {
10625 event_ = builderForValue.build();
10628 eventBuilder_.setMessage(builderForValue.build());
10630 bitField0_ |= 0x00000004;
10634 * <code>optional .openxc.DynamicField event = 3;</code>
10636 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
10637 if (eventBuilder_ == null) {
10638 if (((bitField0_ & 0x00000004) == 0x00000004) &&
10639 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10641 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
10647 eventBuilder_.mergeFrom(value);
10649 bitField0_ |= 0x00000004;
10653 * <code>optional .openxc.DynamicField event = 3;</code>
10655 public Builder clearEvent() {
10656 if (eventBuilder_ == null) {
10657 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10660 eventBuilder_.clear();
10662 bitField0_ = (bitField0_ & ~0x00000004);
10666 * <code>optional .openxc.DynamicField event = 3;</code>
10668 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
10669 bitField0_ |= 0x00000004;
10671 return getEventFieldBuilder().getBuilder();
10674 * <code>optional .openxc.DynamicField event = 3;</code>
10676 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10677 if (eventBuilder_ != null) {
10678 return eventBuilder_.getMessageOrBuilder();
10684 * <code>optional .openxc.DynamicField event = 3;</code>
10686 private com.google.protobuf.SingleFieldBuilder<
10687 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10688 getEventFieldBuilder() {
10689 if (eventBuilder_ == null) {
10690 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10691 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10693 getParentForChildren(),
10697 return eventBuilder_;
10700 // @@protoc_insertion_point(builder_scope:openxc.SimpleMessage)
10704 defaultInstance = new SimpleMessage(true);
10705 defaultInstance.initFields();
10708 // @@protoc_insertion_point(class_scope:openxc.SimpleMessage)
10711 private static final com.google.protobuf.Descriptors.Descriptor
10712 internal_static_openxc_VehicleMessage_descriptor;
10714 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10715 internal_static_openxc_VehicleMessage_fieldAccessorTable;
10716 private static final com.google.protobuf.Descriptors.Descriptor
10717 internal_static_openxc_CanMessage_descriptor;
10719 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10720 internal_static_openxc_CanMessage_fieldAccessorTable;
10721 private static final com.google.protobuf.Descriptors.Descriptor
10722 internal_static_openxc_ControlCommand_descriptor;
10724 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10725 internal_static_openxc_ControlCommand_fieldAccessorTable;
10726 private static final com.google.protobuf.Descriptors.Descriptor
10727 internal_static_openxc_DiagnosticControlCommand_descriptor;
10729 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10730 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
10731 private static final com.google.protobuf.Descriptors.Descriptor
10732 internal_static_openxc_PassthroughModeControlCommand_descriptor;
10734 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10735 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
10736 private static final com.google.protobuf.Descriptors.Descriptor
10737 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
10739 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10740 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
10741 private static final com.google.protobuf.Descriptors.Descriptor
10742 internal_static_openxc_PayloadFormatCommand_descriptor;
10744 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10745 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
10746 private static final com.google.protobuf.Descriptors.Descriptor
10747 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
10749 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10750 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
10751 private static final com.google.protobuf.Descriptors.Descriptor
10752 internal_static_openxc_CommandResponse_descriptor;
10754 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10755 internal_static_openxc_CommandResponse_fieldAccessorTable;
10756 private static final com.google.protobuf.Descriptors.Descriptor
10757 internal_static_openxc_DiagnosticRequest_descriptor;
10759 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10760 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
10761 private static final com.google.protobuf.Descriptors.Descriptor
10762 internal_static_openxc_DiagnosticResponse_descriptor;
10764 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10765 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10766 private static final com.google.protobuf.Descriptors.Descriptor
10767 internal_static_openxc_DynamicField_descriptor;
10769 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10770 internal_static_openxc_DynamicField_fieldAccessorTable;
10771 private static final com.google.protobuf.Descriptors.Descriptor
10772 internal_static_openxc_SimpleMessage_descriptor;
10774 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10775 internal_static_openxc_SimpleMessage_fieldAccessorTable;
10777 public static com.google.protobuf.Descriptors.FileDescriptor
10781 private static com.google.protobuf.Descriptors.FileDescriptor
10784 java.lang.String[] descriptorData = {
10785 "\n\014openxc.proto\022\006openxc\"\210\003\n\016VehicleMessag" +
10786 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
10787 "Type\022\'\n\013can_message\030\002 \001(\0132\022.openxc.CanMe" +
10788 "ssage\022-\n\016simple_message\030\003 \001(\0132\025.openxc.S" +
10789 "impleMessage\0227\n\023diagnostic_response\030\004 \001(" +
10790 "\0132\032.openxc.DiagnosticResponse\022/\n\017control" +
10791 "_command\030\005 \001(\0132\026.openxc.ControlCommand\0221" +
10792 "\n\020command_response\030\006 \001(\0132\027.openxc.Comman" +
10793 "dResponse\"V\n\004Type\022\007\n\003CAN\020\001\022\n\n\006SIMPLE\020\002\022\016" +
10794 "\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_COMMAND\020\004\022\024\n\020C",
10795 "OMMAND_RESPONSE\020\005\"\224\001\n\nCanMessage\022\013\n\003bus\030" +
10796 "\001 \001(\005\022\n\n\002id\030\002 \001(\r\022\014\n\004data\030\003 \001(\014\0224\n\014frame" +
10797 "_format\030\004 \001(\0162\036.openxc.CanMessage.FrameF" +
10798 "ormat\")\n\013FrameFormat\022\014\n\010STANDARD\020\001\022\014\n\010EX" +
10799 "TENDED\020\002\"\270\004\n\016ControlCommand\022)\n\004type\030\001 \001(" +
10800 "\0162\033.openxc.ControlCommand.Type\022<\n\022diagno" +
10801 "stic_request\030\002 \001(\0132 .openxc.DiagnosticCo" +
10802 "ntrolCommand\022G\n\030passthrough_mode_request" +
10803 "\030\003 \001(\0132%.openxc.PassthroughModeControlCo" +
10804 "mmand\022O\n acceptance_filter_bypass_comman",
10805 "d\030\004 \001(\0132%.openxc.AcceptanceFilterBypassC" +
10806 "ommand\022<\n\026payload_format_command\030\005 \001(\0132\034" +
10807 ".openxc.PayloadFormatCommand\022O\n predefin" +
10808 "ed_obd2_requests_command\030\006 \001(\0132%.openxc." +
10809 "PredefinedObd2RequestsCommand\"\223\001\n\004Type\022\013" +
10810 "\n\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOSTIC" +
10811 "\020\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILTER" +
10812 "_BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDEFI" +
10813 "NED_OBD2_REQUESTS\020\007\"\236\001\n\030DiagnosticContro" +
10814 "lCommand\022*\n\007request\030\001 \001(\0132\031.openxc.Diagn",
10815 "osticRequest\0227\n\006action\030\002 \001(\0162\'.openxc.Di" +
10816 "agnosticControlCommand.Action\"\035\n\006Action\022" +
10817 "\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035PassthroughModeC" +
10818 "ontrolCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007enabled\030\002 " +
10819 "\001(\010\"<\n\035AcceptanceFilterBypassCommand\022\013\n\003" +
10820 "bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"{\n\024PayloadForm" +
10821 "atCommand\022:\n\006format\030\001 \001(\0162*.openxc.Paylo" +
10822 "adFormatCommand.PayloadFormat\"\'\n\rPayload" +
10823 "Format\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\"0\n\035Predef" +
10824 "inedObd2RequestsCommand\022\017\n\007enabled\030\001 \001(\010",
10825 "\"]\n\017CommandResponse\022)\n\004type\030\001 \001(\0162\033.open" +
10826 "xc.ControlCommand.Type\022\017\n\007message\030\002 \001(\t\022" +
10827 "\016\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\022\013\n" +
10828 "\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003" +
10829 " \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022mu" +
10830 "ltiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007 \001(" +
10831 "\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162%." +
10832 "openxc.DiagnosticRequest.DecodedType\"!\n\013" +
10833 "DecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022Diag" +
10834 "nosticResponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_i",
10835 "d\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007su" +
10836 "ccess\030\005 \001(\010\022\036\n\026negative_response_code\030\006 " +
10837 "\001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001\n\014" +
10838 "DynamicField\022\'\n\004type\030\001 \001(\0162\031.openxc.Dyna" +
10839 "micField.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n\rn" +
10840 "umeric_value\030\003 \001(\001\022\025\n\rboolean_value\030\004 \001(" +
10841 "\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003" +
10842 "\"g\n\rSimpleMessage\022\014\n\004name\030\001 \001(\t\022#\n\005value" +
10843 "\030\002 \001(\0132\024.openxc.DynamicField\022#\n\005event\030\003 " +
10844 "\001(\0132\024.openxc.DynamicFieldB\034\n\ncom.openxcB",
10845 "\016BinaryMessages"
10847 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
10848 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
10849 public com.google.protobuf.ExtensionRegistry assignDescriptors(
10850 com.google.protobuf.Descriptors.FileDescriptor root) {
10855 com.google.protobuf.Descriptors.FileDescriptor
10856 .internalBuildGeneratedFileFrom(descriptorData,
10857 new com.google.protobuf.Descriptors.FileDescriptor[] {
10859 internal_static_openxc_VehicleMessage_descriptor =
10860 getDescriptor().getMessageTypes().get(0);
10861 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
10862 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10863 internal_static_openxc_VehicleMessage_descriptor,
10864 new java.lang.String[] { "Type", "CanMessage", "SimpleMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
10865 internal_static_openxc_CanMessage_descriptor =
10866 getDescriptor().getMessageTypes().get(1);
10867 internal_static_openxc_CanMessage_fieldAccessorTable = new
10868 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10869 internal_static_openxc_CanMessage_descriptor,
10870 new java.lang.String[] { "Bus", "Id", "Data", "FrameFormat", });
10871 internal_static_openxc_ControlCommand_descriptor =
10872 getDescriptor().getMessageTypes().get(2);
10873 internal_static_openxc_ControlCommand_fieldAccessorTable = new
10874 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10875 internal_static_openxc_ControlCommand_descriptor,
10876 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", });
10877 internal_static_openxc_DiagnosticControlCommand_descriptor =
10878 getDescriptor().getMessageTypes().get(3);
10879 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
10880 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10881 internal_static_openxc_DiagnosticControlCommand_descriptor,
10882 new java.lang.String[] { "Request", "Action", });
10883 internal_static_openxc_PassthroughModeControlCommand_descriptor =
10884 getDescriptor().getMessageTypes().get(4);
10885 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
10886 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10887 internal_static_openxc_PassthroughModeControlCommand_descriptor,
10888 new java.lang.String[] { "Bus", "Enabled", });
10889 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
10890 getDescriptor().getMessageTypes().get(5);
10891 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
10892 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10893 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
10894 new java.lang.String[] { "Bus", "Bypass", });
10895 internal_static_openxc_PayloadFormatCommand_descriptor =
10896 getDescriptor().getMessageTypes().get(6);
10897 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
10898 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10899 internal_static_openxc_PayloadFormatCommand_descriptor,
10900 new java.lang.String[] { "Format", });
10901 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
10902 getDescriptor().getMessageTypes().get(7);
10903 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
10904 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10905 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
10906 new java.lang.String[] { "Enabled", });
10907 internal_static_openxc_CommandResponse_descriptor =
10908 getDescriptor().getMessageTypes().get(8);
10909 internal_static_openxc_CommandResponse_fieldAccessorTable = new
10910 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10911 internal_static_openxc_CommandResponse_descriptor,
10912 new java.lang.String[] { "Type", "Message", "Status", });
10913 internal_static_openxc_DiagnosticRequest_descriptor =
10914 getDescriptor().getMessageTypes().get(9);
10915 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
10916 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10917 internal_static_openxc_DiagnosticRequest_descriptor,
10918 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", });
10919 internal_static_openxc_DiagnosticResponse_descriptor =
10920 getDescriptor().getMessageTypes().get(10);
10921 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
10922 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10923 internal_static_openxc_DiagnosticResponse_descriptor,
10924 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
10925 internal_static_openxc_DynamicField_descriptor =
10926 getDescriptor().getMessageTypes().get(11);
10927 internal_static_openxc_DynamicField_fieldAccessorTable = new
10928 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10929 internal_static_openxc_DynamicField_descriptor,
10930 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
10931 internal_static_openxc_SimpleMessage_descriptor =
10932 getDescriptor().getMessageTypes().get(12);
10933 internal_static_openxc_SimpleMessage_fieldAccessorTable = new
10934 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10935 internal_static_openxc_SimpleMessage_descriptor,
10936 new java.lang.String[] { "Name", "Value", "Event", });
10939 // @@protoc_insertion_point(outer_class_scope)