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
12 extends com.google.protobuf.MessageOrBuilder {
14 // optional .openxc.VehicleMessage.Type type = 1;
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();
24 // optional .openxc.CanMessage can_message = 2;
26 * <code>optional .openxc.CanMessage can_message = 2;</code>
28 boolean hasCanMessage();
30 * <code>optional .openxc.CanMessage can_message = 2;</code>
32 com.openxc.BinaryMessages.CanMessage getCanMessage();
34 * <code>optional .openxc.CanMessage can_message = 2;</code>
36 com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder();
38 // optional .openxc.SimpleMessage simple_message = 3;
40 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
42 boolean hasSimpleMessage();
44 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
46 com.openxc.BinaryMessages.SimpleMessage getSimpleMessage();
48 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
50 com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder();
52 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
54 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
56 boolean hasDiagnosticResponse();
58 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
60 com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse();
62 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
64 com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder();
66 // optional .openxc.ControlCommand control_command = 5;
68 * <code>optional .openxc.ControlCommand control_command = 5;</code>
70 boolean hasControlCommand();
72 * <code>optional .openxc.ControlCommand control_command = 5;</code>
74 com.openxc.BinaryMessages.ControlCommand getControlCommand();
76 * <code>optional .openxc.ControlCommand control_command = 5;</code>
78 com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder();
80 // optional .openxc.CommandResponse command_response = 6;
82 * <code>optional .openxc.CommandResponse command_response = 6;</code>
84 boolean hasCommandResponse();
86 * <code>optional .openxc.CommandResponse command_response = 6;</code>
88 com.openxc.BinaryMessages.CommandResponse getCommandResponse();
90 * <code>optional .openxc.CommandResponse command_response = 6;</code>
92 com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder();
95 * Protobuf type {@code openxc.VehicleMessage}
97 public static final class VehicleMessage extends
98 com.google.protobuf.GeneratedMessage
99 implements VehicleMessageOrBuilder {
100 // Use VehicleMessage.newBuilder() to construct.
101 private VehicleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
103 this.unknownFields = builder.getUnknownFields();
105 private VehicleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
107 private static final VehicleMessage defaultInstance;
108 public static VehicleMessage getDefaultInstance() {
109 return defaultInstance;
112 public VehicleMessage getDefaultInstanceForType() {
113 return defaultInstance;
116 private final com.google.protobuf.UnknownFieldSet unknownFields;
118 public final com.google.protobuf.UnknownFieldSet
120 return this.unknownFields;
122 private VehicleMessage(
123 com.google.protobuf.CodedInputStream input,
124 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
125 throws com.google.protobuf.InvalidProtocolBufferException {
127 int mutable_bitField0_ = 0;
128 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
129 com.google.protobuf.UnknownFieldSet.newBuilder();
131 boolean done = false;
133 int tag = input.readTag();
139 if (!parseUnknownField(input, unknownFields,
140 extensionRegistry, tag)) {
146 int rawValue = input.readEnum();
147 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
149 unknownFields.mergeVarintField(1, rawValue);
151 bitField0_ |= 0x00000001;
157 com.openxc.BinaryMessages.CanMessage.Builder subBuilder = null;
158 if (((bitField0_ & 0x00000002) == 0x00000002)) {
159 subBuilder = canMessage_.toBuilder();
161 canMessage_ = input.readMessage(com.openxc.BinaryMessages.CanMessage.PARSER, extensionRegistry);
162 if (subBuilder != null) {
163 subBuilder.mergeFrom(canMessage_);
164 canMessage_ = subBuilder.buildPartial();
166 bitField0_ |= 0x00000002;
170 com.openxc.BinaryMessages.SimpleMessage.Builder subBuilder = null;
171 if (((bitField0_ & 0x00000004) == 0x00000004)) {
172 subBuilder = simpleMessage_.toBuilder();
174 simpleMessage_ = input.readMessage(com.openxc.BinaryMessages.SimpleMessage.PARSER, extensionRegistry);
175 if (subBuilder != null) {
176 subBuilder.mergeFrom(simpleMessage_);
177 simpleMessage_ = subBuilder.buildPartial();
179 bitField0_ |= 0x00000004;
183 com.openxc.BinaryMessages.DiagnosticResponse.Builder subBuilder = null;
184 if (((bitField0_ & 0x00000008) == 0x00000008)) {
185 subBuilder = diagnosticResponse_.toBuilder();
187 diagnosticResponse_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticResponse.PARSER, extensionRegistry);
188 if (subBuilder != null) {
189 subBuilder.mergeFrom(diagnosticResponse_);
190 diagnosticResponse_ = subBuilder.buildPartial();
192 bitField0_ |= 0x00000008;
196 com.openxc.BinaryMessages.ControlCommand.Builder subBuilder = null;
197 if (((bitField0_ & 0x00000010) == 0x00000010)) {
198 subBuilder = controlCommand_.toBuilder();
200 controlCommand_ = input.readMessage(com.openxc.BinaryMessages.ControlCommand.PARSER, extensionRegistry);
201 if (subBuilder != null) {
202 subBuilder.mergeFrom(controlCommand_);
203 controlCommand_ = subBuilder.buildPartial();
205 bitField0_ |= 0x00000010;
209 com.openxc.BinaryMessages.CommandResponse.Builder subBuilder = null;
210 if (((bitField0_ & 0x00000020) == 0x00000020)) {
211 subBuilder = commandResponse_.toBuilder();
213 commandResponse_ = input.readMessage(com.openxc.BinaryMessages.CommandResponse.PARSER, extensionRegistry);
214 if (subBuilder != null) {
215 subBuilder.mergeFrom(commandResponse_);
216 commandResponse_ = subBuilder.buildPartial();
218 bitField0_ |= 0x00000020;
223 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
224 throw e.setUnfinishedMessage(this);
225 } catch (java.io.IOException e) {
226 throw new com.google.protobuf.InvalidProtocolBufferException(
227 e.getMessage()).setUnfinishedMessage(this);
229 this.unknownFields = unknownFields.build();
230 makeExtensionsImmutable();
233 public static final com.google.protobuf.Descriptors.Descriptor
235 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
238 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
239 internalGetFieldAccessorTable() {
240 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
241 .ensureFieldAccessorsInitialized(
242 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
245 public static com.google.protobuf.Parser<VehicleMessage> PARSER =
246 new com.google.protobuf.AbstractParser<VehicleMessage>() {
247 public VehicleMessage parsePartialFrom(
248 com.google.protobuf.CodedInputStream input,
249 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
250 throws com.google.protobuf.InvalidProtocolBufferException {
251 return new VehicleMessage(input, extensionRegistry);
256 public com.google.protobuf.Parser<VehicleMessage> getParserForType() {
261 * Protobuf enum {@code openxc.VehicleMessage.Type}
264 implements com.google.protobuf.ProtocolMessageEnum {
266 * <code>CAN = 1;</code>
270 * <code>SIMPLE = 2;</code>
274 * <code>DIAGNOSTIC = 3;</code>
278 * <code>CONTROL_COMMAND = 4;</code>
280 CONTROL_COMMAND(3, 4),
282 * <code>COMMAND_RESPONSE = 5;</code>
284 COMMAND_RESPONSE(4, 5),
288 * <code>CAN = 1;</code>
290 public static final int CAN_VALUE = 1;
292 * <code>SIMPLE = 2;</code>
294 public static final int SIMPLE_VALUE = 2;
296 * <code>DIAGNOSTIC = 3;</code>
298 public static final int DIAGNOSTIC_VALUE = 3;
300 * <code>CONTROL_COMMAND = 4;</code>
302 public static final int CONTROL_COMMAND_VALUE = 4;
304 * <code>COMMAND_RESPONSE = 5;</code>
306 public static final int COMMAND_RESPONSE_VALUE = 5;
309 public final int getNumber() { return value; }
311 public static Type valueOf(int value) {
314 case 2: return SIMPLE;
315 case 3: return DIAGNOSTIC;
316 case 4: return CONTROL_COMMAND;
317 case 5: return COMMAND_RESPONSE;
318 default: return null;
322 public static com.google.protobuf.Internal.EnumLiteMap<Type>
323 internalGetValueMap() {
324 return internalValueMap;
326 private static com.google.protobuf.Internal.EnumLiteMap<Type>
328 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
329 public Type findValueByNumber(int number) {
330 return Type.valueOf(number);
334 public final com.google.protobuf.Descriptors.EnumValueDescriptor
335 getValueDescriptor() {
336 return getDescriptor().getValues().get(index);
338 public final com.google.protobuf.Descriptors.EnumDescriptor
339 getDescriptorForType() {
340 return getDescriptor();
342 public static final com.google.protobuf.Descriptors.EnumDescriptor
344 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
347 private static final Type[] VALUES = values();
349 public static Type valueOf(
350 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
351 if (desc.getType() != getDescriptor()) {
352 throw new java.lang.IllegalArgumentException(
353 "EnumValueDescriptor is not for this type.");
355 return VALUES[desc.getIndex()];
358 private final int index;
359 private final int value;
361 private Type(int index, int value) {
366 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
369 private int bitField0_;
370 // optional .openxc.VehicleMessage.Type type = 1;
371 public static final int TYPE_FIELD_NUMBER = 1;
372 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
374 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
376 public boolean hasType() {
377 return ((bitField0_ & 0x00000001) == 0x00000001);
380 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
382 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
386 // optional .openxc.CanMessage can_message = 2;
387 public static final int CAN_MESSAGE_FIELD_NUMBER = 2;
388 private com.openxc.BinaryMessages.CanMessage canMessage_;
390 * <code>optional .openxc.CanMessage can_message = 2;</code>
392 public boolean hasCanMessage() {
393 return ((bitField0_ & 0x00000002) == 0x00000002);
396 * <code>optional .openxc.CanMessage can_message = 2;</code>
398 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
402 * <code>optional .openxc.CanMessage can_message = 2;</code>
404 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
408 // optional .openxc.SimpleMessage simple_message = 3;
409 public static final int SIMPLE_MESSAGE_FIELD_NUMBER = 3;
410 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_;
412 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
414 public boolean hasSimpleMessage() {
415 return ((bitField0_ & 0x00000004) == 0x00000004);
418 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
420 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
421 return simpleMessage_;
424 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
426 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
427 return simpleMessage_;
430 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
431 public static final int DIAGNOSTIC_RESPONSE_FIELD_NUMBER = 4;
432 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_;
434 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
436 public boolean hasDiagnosticResponse() {
437 return ((bitField0_ & 0x00000008) == 0x00000008);
440 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
442 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
443 return diagnosticResponse_;
446 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
448 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
449 return diagnosticResponse_;
452 // optional .openxc.ControlCommand control_command = 5;
453 public static final int CONTROL_COMMAND_FIELD_NUMBER = 5;
454 private com.openxc.BinaryMessages.ControlCommand controlCommand_;
456 * <code>optional .openxc.ControlCommand control_command = 5;</code>
458 public boolean hasControlCommand() {
459 return ((bitField0_ & 0x00000010) == 0x00000010);
462 * <code>optional .openxc.ControlCommand control_command = 5;</code>
464 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
465 return controlCommand_;
468 * <code>optional .openxc.ControlCommand control_command = 5;</code>
470 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
471 return controlCommand_;
474 // optional .openxc.CommandResponse command_response = 6;
475 public static final int COMMAND_RESPONSE_FIELD_NUMBER = 6;
476 private com.openxc.BinaryMessages.CommandResponse commandResponse_;
478 * <code>optional .openxc.CommandResponse command_response = 6;</code>
480 public boolean hasCommandResponse() {
481 return ((bitField0_ & 0x00000020) == 0x00000020);
484 * <code>optional .openxc.CommandResponse command_response = 6;</code>
486 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
487 return commandResponse_;
490 * <code>optional .openxc.CommandResponse command_response = 6;</code>
492 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
493 return commandResponse_;
496 private void initFields() {
497 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
498 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
499 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
500 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
501 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
502 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
504 private byte memoizedIsInitialized = -1;
505 public final boolean isInitialized() {
506 byte isInitialized = memoizedIsInitialized;
507 if (isInitialized != -1) return isInitialized == 1;
509 memoizedIsInitialized = 1;
513 public void writeTo(com.google.protobuf.CodedOutputStream output)
514 throws java.io.IOException {
516 if (((bitField0_ & 0x00000001) == 0x00000001)) {
517 output.writeEnum(1, type_.getNumber());
519 if (((bitField0_ & 0x00000002) == 0x00000002)) {
520 output.writeMessage(2, canMessage_);
522 if (((bitField0_ & 0x00000004) == 0x00000004)) {
523 output.writeMessage(3, simpleMessage_);
525 if (((bitField0_ & 0x00000008) == 0x00000008)) {
526 output.writeMessage(4, diagnosticResponse_);
528 if (((bitField0_ & 0x00000010) == 0x00000010)) {
529 output.writeMessage(5, controlCommand_);
531 if (((bitField0_ & 0x00000020) == 0x00000020)) {
532 output.writeMessage(6, commandResponse_);
534 getUnknownFields().writeTo(output);
537 private int memoizedSerializedSize = -1;
538 public int getSerializedSize() {
539 int size = memoizedSerializedSize;
540 if (size != -1) return size;
543 if (((bitField0_ & 0x00000001) == 0x00000001)) {
544 size += com.google.protobuf.CodedOutputStream
545 .computeEnumSize(1, type_.getNumber());
547 if (((bitField0_ & 0x00000002) == 0x00000002)) {
548 size += com.google.protobuf.CodedOutputStream
549 .computeMessageSize(2, canMessage_);
551 if (((bitField0_ & 0x00000004) == 0x00000004)) {
552 size += com.google.protobuf.CodedOutputStream
553 .computeMessageSize(3, simpleMessage_);
555 if (((bitField0_ & 0x00000008) == 0x00000008)) {
556 size += com.google.protobuf.CodedOutputStream
557 .computeMessageSize(4, diagnosticResponse_);
559 if (((bitField0_ & 0x00000010) == 0x00000010)) {
560 size += com.google.protobuf.CodedOutputStream
561 .computeMessageSize(5, controlCommand_);
563 if (((bitField0_ & 0x00000020) == 0x00000020)) {
564 size += com.google.protobuf.CodedOutputStream
565 .computeMessageSize(6, commandResponse_);
567 size += getUnknownFields().getSerializedSize();
568 memoizedSerializedSize = size;
572 private static final long serialVersionUID = 0L;
574 protected java.lang.Object writeReplace()
575 throws java.io.ObjectStreamException {
576 return super.writeReplace();
579 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
580 com.google.protobuf.ByteString data)
581 throws com.google.protobuf.InvalidProtocolBufferException {
582 return PARSER.parseFrom(data);
584 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
585 com.google.protobuf.ByteString data,
586 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
587 throws com.google.protobuf.InvalidProtocolBufferException {
588 return PARSER.parseFrom(data, extensionRegistry);
590 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
591 throws com.google.protobuf.InvalidProtocolBufferException {
592 return PARSER.parseFrom(data);
594 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597 throws com.google.protobuf.InvalidProtocolBufferException {
598 return PARSER.parseFrom(data, extensionRegistry);
600 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
601 throws java.io.IOException {
602 return PARSER.parseFrom(input);
604 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
605 java.io.InputStream input,
606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
607 throws java.io.IOException {
608 return PARSER.parseFrom(input, extensionRegistry);
610 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
611 throws java.io.IOException {
612 return PARSER.parseDelimitedFrom(input);
614 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
615 java.io.InputStream input,
616 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
617 throws java.io.IOException {
618 return PARSER.parseDelimitedFrom(input, extensionRegistry);
620 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
621 com.google.protobuf.CodedInputStream input)
622 throws java.io.IOException {
623 return PARSER.parseFrom(input);
625 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
626 com.google.protobuf.CodedInputStream input,
627 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
628 throws java.io.IOException {
629 return PARSER.parseFrom(input, extensionRegistry);
632 public static Builder newBuilder() { return Builder.create(); }
633 public Builder newBuilderForType() { return newBuilder(); }
634 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
635 return newBuilder().mergeFrom(prototype);
637 public Builder toBuilder() { return newBuilder(this); }
640 protected Builder newBuilderForType(
641 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
642 Builder builder = new Builder(parent);
646 * Protobuf type {@code openxc.VehicleMessage}
648 public static final class Builder extends
649 com.google.protobuf.GeneratedMessage.Builder<Builder>
650 implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
651 public static final com.google.protobuf.Descriptors.Descriptor
653 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
656 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
657 internalGetFieldAccessorTable() {
658 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
659 .ensureFieldAccessorsInitialized(
660 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
663 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
665 maybeForceBuilderInitialization();
669 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
671 maybeForceBuilderInitialization();
673 private void maybeForceBuilderInitialization() {
674 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
675 getCanMessageFieldBuilder();
676 getSimpleMessageFieldBuilder();
677 getDiagnosticResponseFieldBuilder();
678 getControlCommandFieldBuilder();
679 getCommandResponseFieldBuilder();
682 private static Builder create() {
683 return new Builder();
686 public Builder clear() {
688 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
689 bitField0_ = (bitField0_ & ~0x00000001);
690 if (canMessageBuilder_ == null) {
691 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
693 canMessageBuilder_.clear();
695 bitField0_ = (bitField0_ & ~0x00000002);
696 if (simpleMessageBuilder_ == null) {
697 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
699 simpleMessageBuilder_.clear();
701 bitField0_ = (bitField0_ & ~0x00000004);
702 if (diagnosticResponseBuilder_ == null) {
703 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
705 diagnosticResponseBuilder_.clear();
707 bitField0_ = (bitField0_ & ~0x00000008);
708 if (controlCommandBuilder_ == null) {
709 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
711 controlCommandBuilder_.clear();
713 bitField0_ = (bitField0_ & ~0x00000010);
714 if (commandResponseBuilder_ == null) {
715 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
717 commandResponseBuilder_.clear();
719 bitField0_ = (bitField0_ & ~0x00000020);
723 public Builder clone() {
724 return create().mergeFrom(buildPartial());
727 public com.google.protobuf.Descriptors.Descriptor
728 getDescriptorForType() {
729 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
732 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
733 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
736 public com.openxc.BinaryMessages.VehicleMessage build() {
737 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
738 if (!result.isInitialized()) {
739 throw newUninitializedMessageException(result);
744 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
745 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
746 int from_bitField0_ = bitField0_;
747 int to_bitField0_ = 0;
748 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
749 to_bitField0_ |= 0x00000001;
751 result.type_ = type_;
752 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
753 to_bitField0_ |= 0x00000002;
755 if (canMessageBuilder_ == null) {
756 result.canMessage_ = canMessage_;
758 result.canMessage_ = canMessageBuilder_.build();
760 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
761 to_bitField0_ |= 0x00000004;
763 if (simpleMessageBuilder_ == null) {
764 result.simpleMessage_ = simpleMessage_;
766 result.simpleMessage_ = simpleMessageBuilder_.build();
768 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
769 to_bitField0_ |= 0x00000008;
771 if (diagnosticResponseBuilder_ == null) {
772 result.diagnosticResponse_ = diagnosticResponse_;
774 result.diagnosticResponse_ = diagnosticResponseBuilder_.build();
776 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
777 to_bitField0_ |= 0x00000010;
779 if (controlCommandBuilder_ == null) {
780 result.controlCommand_ = controlCommand_;
782 result.controlCommand_ = controlCommandBuilder_.build();
784 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
785 to_bitField0_ |= 0x00000020;
787 if (commandResponseBuilder_ == null) {
788 result.commandResponse_ = commandResponse_;
790 result.commandResponse_ = commandResponseBuilder_.build();
792 result.bitField0_ = to_bitField0_;
797 public Builder mergeFrom(com.google.protobuf.Message other) {
798 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
799 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
801 super.mergeFrom(other);
806 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
807 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
808 if (other.hasType()) {
809 setType(other.getType());
811 if (other.hasCanMessage()) {
812 mergeCanMessage(other.getCanMessage());
814 if (other.hasSimpleMessage()) {
815 mergeSimpleMessage(other.getSimpleMessage());
817 if (other.hasDiagnosticResponse()) {
818 mergeDiagnosticResponse(other.getDiagnosticResponse());
820 if (other.hasControlCommand()) {
821 mergeControlCommand(other.getControlCommand());
823 if (other.hasCommandResponse()) {
824 mergeCommandResponse(other.getCommandResponse());
826 this.mergeUnknownFields(other.getUnknownFields());
830 public final boolean isInitialized() {
834 public Builder mergeFrom(
835 com.google.protobuf.CodedInputStream input,
836 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
837 throws java.io.IOException {
838 com.openxc.BinaryMessages.VehicleMessage parsedMessage = null;
840 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
841 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
842 parsedMessage = (com.openxc.BinaryMessages.VehicleMessage) e.getUnfinishedMessage();
845 if (parsedMessage != null) {
846 mergeFrom(parsedMessage);
851 private int bitField0_;
853 // optional .openxc.VehicleMessage.Type type = 1;
854 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
856 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
858 public boolean hasType() {
859 return ((bitField0_ & 0x00000001) == 0x00000001);
862 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
864 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
868 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
870 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
872 throw new NullPointerException();
874 bitField0_ |= 0x00000001;
880 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
882 public Builder clearType() {
883 bitField0_ = (bitField0_ & ~0x00000001);
884 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
889 // optional .openxc.CanMessage can_message = 2;
890 private com.openxc.BinaryMessages.CanMessage canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
891 private com.google.protobuf.SingleFieldBuilder<
892 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder> canMessageBuilder_;
894 * <code>optional .openxc.CanMessage can_message = 2;</code>
896 public boolean hasCanMessage() {
897 return ((bitField0_ & 0x00000002) == 0x00000002);
900 * <code>optional .openxc.CanMessage can_message = 2;</code>
902 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
903 if (canMessageBuilder_ == null) {
906 return canMessageBuilder_.getMessage();
910 * <code>optional .openxc.CanMessage can_message = 2;</code>
912 public Builder setCanMessage(com.openxc.BinaryMessages.CanMessage value) {
913 if (canMessageBuilder_ == null) {
915 throw new NullPointerException();
920 canMessageBuilder_.setMessage(value);
922 bitField0_ |= 0x00000002;
926 * <code>optional .openxc.CanMessage can_message = 2;</code>
928 public Builder setCanMessage(
929 com.openxc.BinaryMessages.CanMessage.Builder builderForValue) {
930 if (canMessageBuilder_ == null) {
931 canMessage_ = builderForValue.build();
934 canMessageBuilder_.setMessage(builderForValue.build());
936 bitField0_ |= 0x00000002;
940 * <code>optional .openxc.CanMessage can_message = 2;</code>
942 public Builder mergeCanMessage(com.openxc.BinaryMessages.CanMessage value) {
943 if (canMessageBuilder_ == null) {
944 if (((bitField0_ & 0x00000002) == 0x00000002) &&
945 canMessage_ != com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) {
947 com.openxc.BinaryMessages.CanMessage.newBuilder(canMessage_).mergeFrom(value).buildPartial();
953 canMessageBuilder_.mergeFrom(value);
955 bitField0_ |= 0x00000002;
959 * <code>optional .openxc.CanMessage can_message = 2;</code>
961 public Builder clearCanMessage() {
962 if (canMessageBuilder_ == null) {
963 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
966 canMessageBuilder_.clear();
968 bitField0_ = (bitField0_ & ~0x00000002);
972 * <code>optional .openxc.CanMessage can_message = 2;</code>
974 public com.openxc.BinaryMessages.CanMessage.Builder getCanMessageBuilder() {
975 bitField0_ |= 0x00000002;
977 return getCanMessageFieldBuilder().getBuilder();
980 * <code>optional .openxc.CanMessage can_message = 2;</code>
982 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
983 if (canMessageBuilder_ != null) {
984 return canMessageBuilder_.getMessageOrBuilder();
990 * <code>optional .openxc.CanMessage can_message = 2;</code>
992 private com.google.protobuf.SingleFieldBuilder<
993 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>
994 getCanMessageFieldBuilder() {
995 if (canMessageBuilder_ == null) {
996 canMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
997 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>(
999 getParentForChildren(),
1003 return canMessageBuilder_;
1006 // optional .openxc.SimpleMessage simple_message = 3;
1007 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
1008 private com.google.protobuf.SingleFieldBuilder<
1009 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder> simpleMessageBuilder_;
1011 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1013 public boolean hasSimpleMessage() {
1014 return ((bitField0_ & 0x00000004) == 0x00000004);
1017 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1019 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
1020 if (simpleMessageBuilder_ == null) {
1021 return simpleMessage_;
1023 return simpleMessageBuilder_.getMessage();
1027 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1029 public Builder setSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
1030 if (simpleMessageBuilder_ == null) {
1031 if (value == null) {
1032 throw new NullPointerException();
1034 simpleMessage_ = value;
1037 simpleMessageBuilder_.setMessage(value);
1039 bitField0_ |= 0x00000004;
1043 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1045 public Builder setSimpleMessage(
1046 com.openxc.BinaryMessages.SimpleMessage.Builder builderForValue) {
1047 if (simpleMessageBuilder_ == null) {
1048 simpleMessage_ = builderForValue.build();
1051 simpleMessageBuilder_.setMessage(builderForValue.build());
1053 bitField0_ |= 0x00000004;
1057 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1059 public Builder mergeSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
1060 if (simpleMessageBuilder_ == null) {
1061 if (((bitField0_ & 0x00000004) == 0x00000004) &&
1062 simpleMessage_ != com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) {
1064 com.openxc.BinaryMessages.SimpleMessage.newBuilder(simpleMessage_).mergeFrom(value).buildPartial();
1066 simpleMessage_ = value;
1070 simpleMessageBuilder_.mergeFrom(value);
1072 bitField0_ |= 0x00000004;
1076 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1078 public Builder clearSimpleMessage() {
1079 if (simpleMessageBuilder_ == null) {
1080 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
1083 simpleMessageBuilder_.clear();
1085 bitField0_ = (bitField0_ & ~0x00000004);
1089 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1091 public com.openxc.BinaryMessages.SimpleMessage.Builder getSimpleMessageBuilder() {
1092 bitField0_ |= 0x00000004;
1094 return getSimpleMessageFieldBuilder().getBuilder();
1097 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1099 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
1100 if (simpleMessageBuilder_ != null) {
1101 return simpleMessageBuilder_.getMessageOrBuilder();
1103 return simpleMessage_;
1107 * <code>optional .openxc.SimpleMessage simple_message = 3;</code>
1109 private com.google.protobuf.SingleFieldBuilder<
1110 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>
1111 getSimpleMessageFieldBuilder() {
1112 if (simpleMessageBuilder_ == null) {
1113 simpleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1114 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>(
1116 getParentForChildren(),
1118 simpleMessage_ = null;
1120 return simpleMessageBuilder_;
1123 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
1124 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
1125 private com.google.protobuf.SingleFieldBuilder<
1126 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder> diagnosticResponseBuilder_;
1128 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1130 public boolean hasDiagnosticResponse() {
1131 return ((bitField0_ & 0x00000008) == 0x00000008);
1134 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1136 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
1137 if (diagnosticResponseBuilder_ == null) {
1138 return diagnosticResponse_;
1140 return diagnosticResponseBuilder_.getMessage();
1144 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1146 public Builder setDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
1147 if (diagnosticResponseBuilder_ == null) {
1148 if (value == null) {
1149 throw new NullPointerException();
1151 diagnosticResponse_ = value;
1154 diagnosticResponseBuilder_.setMessage(value);
1156 bitField0_ |= 0x00000008;
1160 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1162 public Builder setDiagnosticResponse(
1163 com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) {
1164 if (diagnosticResponseBuilder_ == null) {
1165 diagnosticResponse_ = builderForValue.build();
1168 diagnosticResponseBuilder_.setMessage(builderForValue.build());
1170 bitField0_ |= 0x00000008;
1174 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1176 public Builder mergeDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
1177 if (diagnosticResponseBuilder_ == null) {
1178 if (((bitField0_ & 0x00000008) == 0x00000008) &&
1179 diagnosticResponse_ != com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) {
1180 diagnosticResponse_ =
1181 com.openxc.BinaryMessages.DiagnosticResponse.newBuilder(diagnosticResponse_).mergeFrom(value).buildPartial();
1183 diagnosticResponse_ = value;
1187 diagnosticResponseBuilder_.mergeFrom(value);
1189 bitField0_ |= 0x00000008;
1193 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1195 public Builder clearDiagnosticResponse() {
1196 if (diagnosticResponseBuilder_ == null) {
1197 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
1200 diagnosticResponseBuilder_.clear();
1202 bitField0_ = (bitField0_ & ~0x00000008);
1206 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1208 public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() {
1209 bitField0_ |= 0x00000008;
1211 return getDiagnosticResponseFieldBuilder().getBuilder();
1214 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1216 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
1217 if (diagnosticResponseBuilder_ != null) {
1218 return diagnosticResponseBuilder_.getMessageOrBuilder();
1220 return diagnosticResponse_;
1224 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1226 private com.google.protobuf.SingleFieldBuilder<
1227 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>
1228 getDiagnosticResponseFieldBuilder() {
1229 if (diagnosticResponseBuilder_ == null) {
1230 diagnosticResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1231 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>(
1232 diagnosticResponse_,
1233 getParentForChildren(),
1235 diagnosticResponse_ = null;
1237 return diagnosticResponseBuilder_;
1240 // optional .openxc.ControlCommand control_command = 5;
1241 private com.openxc.BinaryMessages.ControlCommand controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1242 private com.google.protobuf.SingleFieldBuilder<
1243 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder> controlCommandBuilder_;
1245 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1247 public boolean hasControlCommand() {
1248 return ((bitField0_ & 0x00000010) == 0x00000010);
1251 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1253 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
1254 if (controlCommandBuilder_ == null) {
1255 return controlCommand_;
1257 return controlCommandBuilder_.getMessage();
1261 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1263 public Builder setControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1264 if (controlCommandBuilder_ == null) {
1265 if (value == null) {
1266 throw new NullPointerException();
1268 controlCommand_ = value;
1271 controlCommandBuilder_.setMessage(value);
1273 bitField0_ |= 0x00000010;
1277 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1279 public Builder setControlCommand(
1280 com.openxc.BinaryMessages.ControlCommand.Builder builderForValue) {
1281 if (controlCommandBuilder_ == null) {
1282 controlCommand_ = builderForValue.build();
1285 controlCommandBuilder_.setMessage(builderForValue.build());
1287 bitField0_ |= 0x00000010;
1291 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1293 public Builder mergeControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1294 if (controlCommandBuilder_ == null) {
1295 if (((bitField0_ & 0x00000010) == 0x00000010) &&
1296 controlCommand_ != com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) {
1298 com.openxc.BinaryMessages.ControlCommand.newBuilder(controlCommand_).mergeFrom(value).buildPartial();
1300 controlCommand_ = value;
1304 controlCommandBuilder_.mergeFrom(value);
1306 bitField0_ |= 0x00000010;
1310 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1312 public Builder clearControlCommand() {
1313 if (controlCommandBuilder_ == null) {
1314 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1317 controlCommandBuilder_.clear();
1319 bitField0_ = (bitField0_ & ~0x00000010);
1323 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1325 public com.openxc.BinaryMessages.ControlCommand.Builder getControlCommandBuilder() {
1326 bitField0_ |= 0x00000010;
1328 return getControlCommandFieldBuilder().getBuilder();
1331 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1333 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
1334 if (controlCommandBuilder_ != null) {
1335 return controlCommandBuilder_.getMessageOrBuilder();
1337 return controlCommand_;
1341 * <code>optional .openxc.ControlCommand control_command = 5;</code>
1343 private com.google.protobuf.SingleFieldBuilder<
1344 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>
1345 getControlCommandFieldBuilder() {
1346 if (controlCommandBuilder_ == null) {
1347 controlCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1348 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>(
1350 getParentForChildren(),
1352 controlCommand_ = null;
1354 return controlCommandBuilder_;
1357 // optional .openxc.CommandResponse command_response = 6;
1358 private com.openxc.BinaryMessages.CommandResponse commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1359 private com.google.protobuf.SingleFieldBuilder<
1360 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder> commandResponseBuilder_;
1362 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1364 public boolean hasCommandResponse() {
1365 return ((bitField0_ & 0x00000020) == 0x00000020);
1368 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1370 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
1371 if (commandResponseBuilder_ == null) {
1372 return commandResponse_;
1374 return commandResponseBuilder_.getMessage();
1378 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1380 public Builder setCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1381 if (commandResponseBuilder_ == null) {
1382 if (value == null) {
1383 throw new NullPointerException();
1385 commandResponse_ = value;
1388 commandResponseBuilder_.setMessage(value);
1390 bitField0_ |= 0x00000020;
1394 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1396 public Builder setCommandResponse(
1397 com.openxc.BinaryMessages.CommandResponse.Builder builderForValue) {
1398 if (commandResponseBuilder_ == null) {
1399 commandResponse_ = builderForValue.build();
1402 commandResponseBuilder_.setMessage(builderForValue.build());
1404 bitField0_ |= 0x00000020;
1408 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1410 public Builder mergeCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1411 if (commandResponseBuilder_ == null) {
1412 if (((bitField0_ & 0x00000020) == 0x00000020) &&
1413 commandResponse_ != com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) {
1415 com.openxc.BinaryMessages.CommandResponse.newBuilder(commandResponse_).mergeFrom(value).buildPartial();
1417 commandResponse_ = value;
1421 commandResponseBuilder_.mergeFrom(value);
1423 bitField0_ |= 0x00000020;
1427 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1429 public Builder clearCommandResponse() {
1430 if (commandResponseBuilder_ == null) {
1431 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1434 commandResponseBuilder_.clear();
1436 bitField0_ = (bitField0_ & ~0x00000020);
1440 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1442 public com.openxc.BinaryMessages.CommandResponse.Builder getCommandResponseBuilder() {
1443 bitField0_ |= 0x00000020;
1445 return getCommandResponseFieldBuilder().getBuilder();
1448 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1450 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
1451 if (commandResponseBuilder_ != null) {
1452 return commandResponseBuilder_.getMessageOrBuilder();
1454 return commandResponse_;
1458 * <code>optional .openxc.CommandResponse command_response = 6;</code>
1460 private com.google.protobuf.SingleFieldBuilder<
1461 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>
1462 getCommandResponseFieldBuilder() {
1463 if (commandResponseBuilder_ == null) {
1464 commandResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1465 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>(
1467 getParentForChildren(),
1469 commandResponse_ = null;
1471 return commandResponseBuilder_;
1474 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
1478 defaultInstance = new VehicleMessage(true);
1479 defaultInstance.initFields();
1482 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
1485 public interface CanMessageOrBuilder
1486 extends com.google.protobuf.MessageOrBuilder {
1488 // optional int32 bus = 1;
1490 * <code>optional int32 bus = 1;</code>
1494 * <code>optional int32 bus = 1;</code>
1498 // optional uint32 message_id = 2;
1500 * <code>optional uint32 message_id = 2;</code>
1502 boolean hasMessageId();
1504 * <code>optional uint32 message_id = 2;</code>
1508 // optional bytes data = 3;
1510 * <code>optional bytes data = 3;</code>
1514 * <code>optional bytes data = 3;</code>
1516 com.google.protobuf.ByteString getData();
1518 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1520 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1522 boolean hasFrameFormat();
1524 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1526 com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat();
1529 * Protobuf type {@code openxc.CanMessage}
1531 public static final class CanMessage extends
1532 com.google.protobuf.GeneratedMessage
1533 implements CanMessageOrBuilder {
1534 // Use CanMessage.newBuilder() to construct.
1535 private CanMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1537 this.unknownFields = builder.getUnknownFields();
1539 private CanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1541 private static final CanMessage defaultInstance;
1542 public static CanMessage getDefaultInstance() {
1543 return defaultInstance;
1546 public CanMessage getDefaultInstanceForType() {
1547 return defaultInstance;
1550 private final com.google.protobuf.UnknownFieldSet unknownFields;
1552 public final com.google.protobuf.UnknownFieldSet
1553 getUnknownFields() {
1554 return this.unknownFields;
1557 com.google.protobuf.CodedInputStream input,
1558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1559 throws com.google.protobuf.InvalidProtocolBufferException {
1561 int mutable_bitField0_ = 0;
1562 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1563 com.google.protobuf.UnknownFieldSet.newBuilder();
1565 boolean done = false;
1567 int tag = input.readTag();
1573 if (!parseUnknownField(input, unknownFields,
1574 extensionRegistry, tag)) {
1580 bitField0_ |= 0x00000001;
1581 bus_ = input.readInt32();
1585 bitField0_ |= 0x00000002;
1586 messageId_ = input.readUInt32();
1590 bitField0_ |= 0x00000004;
1591 data_ = input.readBytes();
1595 int rawValue = input.readEnum();
1596 com.openxc.BinaryMessages.CanMessage.FrameFormat value = com.openxc.BinaryMessages.CanMessage.FrameFormat.valueOf(rawValue);
1597 if (value == null) {
1598 unknownFields.mergeVarintField(4, rawValue);
1600 bitField0_ |= 0x00000008;
1601 frameFormat_ = value;
1607 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1608 throw e.setUnfinishedMessage(this);
1609 } catch (java.io.IOException e) {
1610 throw new com.google.protobuf.InvalidProtocolBufferException(
1611 e.getMessage()).setUnfinishedMessage(this);
1613 this.unknownFields = unknownFields.build();
1614 makeExtensionsImmutable();
1617 public static final com.google.protobuf.Descriptors.Descriptor
1619 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1622 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1623 internalGetFieldAccessorTable() {
1624 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable
1625 .ensureFieldAccessorsInitialized(
1626 com.openxc.BinaryMessages.CanMessage.class, com.openxc.BinaryMessages.CanMessage.Builder.class);
1629 public static com.google.protobuf.Parser<CanMessage> PARSER =
1630 new com.google.protobuf.AbstractParser<CanMessage>() {
1631 public CanMessage parsePartialFrom(
1632 com.google.protobuf.CodedInputStream input,
1633 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1634 throws com.google.protobuf.InvalidProtocolBufferException {
1635 return new CanMessage(input, extensionRegistry);
1640 public com.google.protobuf.Parser<CanMessage> getParserForType() {
1645 * Protobuf enum {@code openxc.CanMessage.FrameFormat}
1647 public enum FrameFormat
1648 implements com.google.protobuf.ProtocolMessageEnum {
1650 * <code>STANDARD = 1;</code>
1654 * <code>EXTENDED = 2;</code>
1660 * <code>STANDARD = 1;</code>
1662 public static final int STANDARD_VALUE = 1;
1664 * <code>EXTENDED = 2;</code>
1666 public static final int EXTENDED_VALUE = 2;
1669 public final int getNumber() { return value; }
1671 public static FrameFormat valueOf(int value) {
1673 case 1: return STANDARD;
1674 case 2: return EXTENDED;
1675 default: return null;
1679 public static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1680 internalGetValueMap() {
1681 return internalValueMap;
1683 private static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1685 new com.google.protobuf.Internal.EnumLiteMap<FrameFormat>() {
1686 public FrameFormat findValueByNumber(int number) {
1687 return FrameFormat.valueOf(number);
1691 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1692 getValueDescriptor() {
1693 return getDescriptor().getValues().get(index);
1695 public final com.google.protobuf.Descriptors.EnumDescriptor
1696 getDescriptorForType() {
1697 return getDescriptor();
1699 public static final com.google.protobuf.Descriptors.EnumDescriptor
1701 return com.openxc.BinaryMessages.CanMessage.getDescriptor().getEnumTypes().get(0);
1704 private static final FrameFormat[] VALUES = values();
1706 public static FrameFormat valueOf(
1707 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1708 if (desc.getType() != getDescriptor()) {
1709 throw new java.lang.IllegalArgumentException(
1710 "EnumValueDescriptor is not for this type.");
1712 return VALUES[desc.getIndex()];
1715 private final int index;
1716 private final int value;
1718 private FrameFormat(int index, int value) {
1723 // @@protoc_insertion_point(enum_scope:openxc.CanMessage.FrameFormat)
1726 private int bitField0_;
1727 // optional int32 bus = 1;
1728 public static final int BUS_FIELD_NUMBER = 1;
1731 * <code>optional int32 bus = 1;</code>
1733 public boolean hasBus() {
1734 return ((bitField0_ & 0x00000001) == 0x00000001);
1737 * <code>optional int32 bus = 1;</code>
1739 public int getBus() {
1743 // optional uint32 message_id = 2;
1744 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
1745 private int messageId_;
1747 * <code>optional uint32 message_id = 2;</code>
1749 public boolean hasMessageId() {
1750 return ((bitField0_ & 0x00000002) == 0x00000002);
1753 * <code>optional uint32 message_id = 2;</code>
1755 public int getMessageId() {
1759 // optional bytes data = 3;
1760 public static final int DATA_FIELD_NUMBER = 3;
1761 private com.google.protobuf.ByteString data_;
1763 * <code>optional bytes data = 3;</code>
1765 public boolean hasData() {
1766 return ((bitField0_ & 0x00000004) == 0x00000004);
1769 * <code>optional bytes data = 3;</code>
1771 public com.google.protobuf.ByteString getData() {
1775 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1776 public static final int FRAME_FORMAT_FIELD_NUMBER = 4;
1777 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_;
1779 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1781 public boolean hasFrameFormat() {
1782 return ((bitField0_ & 0x00000008) == 0x00000008);
1785 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
1787 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1788 return frameFormat_;
1791 private void initFields() {
1794 data_ = com.google.protobuf.ByteString.EMPTY;
1795 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1797 private byte memoizedIsInitialized = -1;
1798 public final boolean isInitialized() {
1799 byte isInitialized = memoizedIsInitialized;
1800 if (isInitialized != -1) return isInitialized == 1;
1802 memoizedIsInitialized = 1;
1806 public void writeTo(com.google.protobuf.CodedOutputStream output)
1807 throws java.io.IOException {
1808 getSerializedSize();
1809 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1810 output.writeInt32(1, bus_);
1812 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1813 output.writeUInt32(2, messageId_);
1815 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1816 output.writeBytes(3, data_);
1818 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1819 output.writeEnum(4, frameFormat_.getNumber());
1821 getUnknownFields().writeTo(output);
1824 private int memoizedSerializedSize = -1;
1825 public int getSerializedSize() {
1826 int size = memoizedSerializedSize;
1827 if (size != -1) return size;
1830 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1831 size += com.google.protobuf.CodedOutputStream
1832 .computeInt32Size(1, bus_);
1834 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1835 size += com.google.protobuf.CodedOutputStream
1836 .computeUInt32Size(2, messageId_);
1838 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1839 size += com.google.protobuf.CodedOutputStream
1840 .computeBytesSize(3, data_);
1842 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1843 size += com.google.protobuf.CodedOutputStream
1844 .computeEnumSize(4, frameFormat_.getNumber());
1846 size += getUnknownFields().getSerializedSize();
1847 memoizedSerializedSize = size;
1851 private static final long serialVersionUID = 0L;
1853 protected java.lang.Object writeReplace()
1854 throws java.io.ObjectStreamException {
1855 return super.writeReplace();
1858 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1859 com.google.protobuf.ByteString data)
1860 throws com.google.protobuf.InvalidProtocolBufferException {
1861 return PARSER.parseFrom(data);
1863 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1864 com.google.protobuf.ByteString data,
1865 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1866 throws com.google.protobuf.InvalidProtocolBufferException {
1867 return PARSER.parseFrom(data, extensionRegistry);
1869 public static com.openxc.BinaryMessages.CanMessage parseFrom(byte[] data)
1870 throws com.google.protobuf.InvalidProtocolBufferException {
1871 return PARSER.parseFrom(data);
1873 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1875 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1876 throws com.google.protobuf.InvalidProtocolBufferException {
1877 return PARSER.parseFrom(data, extensionRegistry);
1879 public static com.openxc.BinaryMessages.CanMessage parseFrom(java.io.InputStream input)
1880 throws java.io.IOException {
1881 return PARSER.parseFrom(input);
1883 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1884 java.io.InputStream input,
1885 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1886 throws java.io.IOException {
1887 return PARSER.parseFrom(input, extensionRegistry);
1889 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(java.io.InputStream input)
1890 throws java.io.IOException {
1891 return PARSER.parseDelimitedFrom(input);
1893 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(
1894 java.io.InputStream input,
1895 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1896 throws java.io.IOException {
1897 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1899 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1900 com.google.protobuf.CodedInputStream input)
1901 throws java.io.IOException {
1902 return PARSER.parseFrom(input);
1904 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1905 com.google.protobuf.CodedInputStream input,
1906 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1907 throws java.io.IOException {
1908 return PARSER.parseFrom(input, extensionRegistry);
1911 public static Builder newBuilder() { return Builder.create(); }
1912 public Builder newBuilderForType() { return newBuilder(); }
1913 public static Builder newBuilder(com.openxc.BinaryMessages.CanMessage prototype) {
1914 return newBuilder().mergeFrom(prototype);
1916 public Builder toBuilder() { return newBuilder(this); }
1919 protected Builder newBuilderForType(
1920 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1921 Builder builder = new Builder(parent);
1925 * Protobuf type {@code openxc.CanMessage}
1927 public static final class Builder extends
1928 com.google.protobuf.GeneratedMessage.Builder<Builder>
1929 implements com.openxc.BinaryMessages.CanMessageOrBuilder {
1930 public static final com.google.protobuf.Descriptors.Descriptor
1932 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1935 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1936 internalGetFieldAccessorTable() {
1937 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable
1938 .ensureFieldAccessorsInitialized(
1939 com.openxc.BinaryMessages.CanMessage.class, com.openxc.BinaryMessages.CanMessage.Builder.class);
1942 // Construct using com.openxc.BinaryMessages.CanMessage.newBuilder()
1944 maybeForceBuilderInitialization();
1948 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1950 maybeForceBuilderInitialization();
1952 private void maybeForceBuilderInitialization() {
1953 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1956 private static Builder create() {
1957 return new Builder();
1960 public Builder clear() {
1963 bitField0_ = (bitField0_ & ~0x00000001);
1965 bitField0_ = (bitField0_ & ~0x00000002);
1966 data_ = com.google.protobuf.ByteString.EMPTY;
1967 bitField0_ = (bitField0_ & ~0x00000004);
1968 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1969 bitField0_ = (bitField0_ & ~0x00000008);
1973 public Builder clone() {
1974 return create().mergeFrom(buildPartial());
1977 public com.google.protobuf.Descriptors.Descriptor
1978 getDescriptorForType() {
1979 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1982 public com.openxc.BinaryMessages.CanMessage getDefaultInstanceForType() {
1983 return com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
1986 public com.openxc.BinaryMessages.CanMessage build() {
1987 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1988 if (!result.isInitialized()) {
1989 throw newUninitializedMessageException(result);
1994 public com.openxc.BinaryMessages.CanMessage buildPartial() {
1995 com.openxc.BinaryMessages.CanMessage result = new com.openxc.BinaryMessages.CanMessage(this);
1996 int from_bitField0_ = bitField0_;
1997 int to_bitField0_ = 0;
1998 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1999 to_bitField0_ |= 0x00000001;
2002 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2003 to_bitField0_ |= 0x00000002;
2005 result.messageId_ = messageId_;
2006 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2007 to_bitField0_ |= 0x00000004;
2009 result.data_ = data_;
2010 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2011 to_bitField0_ |= 0x00000008;
2013 result.frameFormat_ = frameFormat_;
2014 result.bitField0_ = to_bitField0_;
2019 public Builder mergeFrom(com.google.protobuf.Message other) {
2020 if (other instanceof com.openxc.BinaryMessages.CanMessage) {
2021 return mergeFrom((com.openxc.BinaryMessages.CanMessage)other);
2023 super.mergeFrom(other);
2028 public Builder mergeFrom(com.openxc.BinaryMessages.CanMessage other) {
2029 if (other == com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) return this;
2030 if (other.hasBus()) {
2031 setBus(other.getBus());
2033 if (other.hasMessageId()) {
2034 setMessageId(other.getMessageId());
2036 if (other.hasData()) {
2037 setData(other.getData());
2039 if (other.hasFrameFormat()) {
2040 setFrameFormat(other.getFrameFormat());
2042 this.mergeUnknownFields(other.getUnknownFields());
2046 public final boolean isInitialized() {
2050 public Builder mergeFrom(
2051 com.google.protobuf.CodedInputStream input,
2052 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2053 throws java.io.IOException {
2054 com.openxc.BinaryMessages.CanMessage parsedMessage = null;
2056 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2057 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2058 parsedMessage = (com.openxc.BinaryMessages.CanMessage) e.getUnfinishedMessage();
2061 if (parsedMessage != null) {
2062 mergeFrom(parsedMessage);
2067 private int bitField0_;
2069 // optional int32 bus = 1;
2072 * <code>optional int32 bus = 1;</code>
2074 public boolean hasBus() {
2075 return ((bitField0_ & 0x00000001) == 0x00000001);
2078 * <code>optional int32 bus = 1;</code>
2080 public int getBus() {
2084 * <code>optional int32 bus = 1;</code>
2086 public Builder setBus(int value) {
2087 bitField0_ |= 0x00000001;
2093 * <code>optional int32 bus = 1;</code>
2095 public Builder clearBus() {
2096 bitField0_ = (bitField0_ & ~0x00000001);
2102 // optional uint32 message_id = 2;
2103 private int messageId_ ;
2105 * <code>optional uint32 message_id = 2;</code>
2107 public boolean hasMessageId() {
2108 return ((bitField0_ & 0x00000002) == 0x00000002);
2111 * <code>optional uint32 message_id = 2;</code>
2113 public int getMessageId() {
2117 * <code>optional uint32 message_id = 2;</code>
2119 public Builder setMessageId(int value) {
2120 bitField0_ |= 0x00000002;
2126 * <code>optional uint32 message_id = 2;</code>
2128 public Builder clearMessageId() {
2129 bitField0_ = (bitField0_ & ~0x00000002);
2135 // optional bytes data = 3;
2136 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
2138 * <code>optional bytes data = 3;</code>
2140 public boolean hasData() {
2141 return ((bitField0_ & 0x00000004) == 0x00000004);
2144 * <code>optional bytes data = 3;</code>
2146 public com.google.protobuf.ByteString getData() {
2150 * <code>optional bytes data = 3;</code>
2152 public Builder setData(com.google.protobuf.ByteString value) {
2153 if (value == null) {
2154 throw new NullPointerException();
2156 bitField0_ |= 0x00000004;
2162 * <code>optional bytes data = 3;</code>
2164 public Builder clearData() {
2165 bitField0_ = (bitField0_ & ~0x00000004);
2166 data_ = getDefaultInstance().getData();
2171 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
2172 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
2174 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2176 public boolean hasFrameFormat() {
2177 return ((bitField0_ & 0x00000008) == 0x00000008);
2180 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2182 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
2183 return frameFormat_;
2186 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2188 public Builder setFrameFormat(com.openxc.BinaryMessages.CanMessage.FrameFormat value) {
2189 if (value == null) {
2190 throw new NullPointerException();
2192 bitField0_ |= 0x00000008;
2193 frameFormat_ = value;
2198 * <code>optional .openxc.CanMessage.FrameFormat frame_format = 4;</code>
2200 public Builder clearFrameFormat() {
2201 bitField0_ = (bitField0_ & ~0x00000008);
2202 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
2207 // @@protoc_insertion_point(builder_scope:openxc.CanMessage)
2211 defaultInstance = new CanMessage(true);
2212 defaultInstance.initFields();
2215 // @@protoc_insertion_point(class_scope:openxc.CanMessage)
2218 public interface ControlCommandOrBuilder
2219 extends com.google.protobuf.MessageOrBuilder {
2221 // optional .openxc.ControlCommand.Type type = 1;
2223 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2227 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2229 com.openxc.BinaryMessages.ControlCommand.Type getType();
2231 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2233 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2235 boolean hasDiagnosticRequest();
2237 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2239 com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest();
2241 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2243 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder();
2245 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2247 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2249 boolean hasPassthroughModeRequest();
2251 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2253 com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest();
2255 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2257 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder();
2259 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2261 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2263 boolean hasAcceptanceFilterBypassCommand();
2265 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2267 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand();
2269 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2271 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder();
2273 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2275 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2277 boolean hasPayloadFormatCommand();
2279 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2281 com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand();
2283 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2285 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder();
2287 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2289 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2291 boolean hasPredefinedObd2RequestsCommand();
2293 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2295 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand();
2297 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2299 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder();
2302 * Protobuf type {@code openxc.ControlCommand}
2304 public static final class ControlCommand extends
2305 com.google.protobuf.GeneratedMessage
2306 implements ControlCommandOrBuilder {
2307 // Use ControlCommand.newBuilder() to construct.
2308 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2310 this.unknownFields = builder.getUnknownFields();
2312 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2314 private static final ControlCommand defaultInstance;
2315 public static ControlCommand getDefaultInstance() {
2316 return defaultInstance;
2319 public ControlCommand getDefaultInstanceForType() {
2320 return defaultInstance;
2323 private final com.google.protobuf.UnknownFieldSet unknownFields;
2325 public final com.google.protobuf.UnknownFieldSet
2326 getUnknownFields() {
2327 return this.unknownFields;
2329 private ControlCommand(
2330 com.google.protobuf.CodedInputStream input,
2331 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2332 throws com.google.protobuf.InvalidProtocolBufferException {
2334 int mutable_bitField0_ = 0;
2335 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2336 com.google.protobuf.UnknownFieldSet.newBuilder();
2338 boolean done = false;
2340 int tag = input.readTag();
2346 if (!parseUnknownField(input, unknownFields,
2347 extensionRegistry, tag)) {
2353 int rawValue = input.readEnum();
2354 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2355 if (value == null) {
2356 unknownFields.mergeVarintField(1, rawValue);
2358 bitField0_ |= 0x00000001;
2364 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = null;
2365 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2366 subBuilder = diagnosticRequest_.toBuilder();
2368 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticControlCommand.PARSER, extensionRegistry);
2369 if (subBuilder != null) {
2370 subBuilder.mergeFrom(diagnosticRequest_);
2371 diagnosticRequest_ = subBuilder.buildPartial();
2373 bitField0_ |= 0x00000002;
2377 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = null;
2378 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2379 subBuilder = passthroughModeRequest_.toBuilder();
2381 passthroughModeRequest_ = input.readMessage(com.openxc.BinaryMessages.PassthroughModeControlCommand.PARSER, extensionRegistry);
2382 if (subBuilder != null) {
2383 subBuilder.mergeFrom(passthroughModeRequest_);
2384 passthroughModeRequest_ = subBuilder.buildPartial();
2386 bitField0_ |= 0x00000004;
2390 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = null;
2391 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2392 subBuilder = acceptanceFilterBypassCommand_.toBuilder();
2394 acceptanceFilterBypassCommand_ = input.readMessage(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.PARSER, extensionRegistry);
2395 if (subBuilder != null) {
2396 subBuilder.mergeFrom(acceptanceFilterBypassCommand_);
2397 acceptanceFilterBypassCommand_ = subBuilder.buildPartial();
2399 bitField0_ |= 0x00000008;
2403 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = null;
2404 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2405 subBuilder = payloadFormatCommand_.toBuilder();
2407 payloadFormatCommand_ = input.readMessage(com.openxc.BinaryMessages.PayloadFormatCommand.PARSER, extensionRegistry);
2408 if (subBuilder != null) {
2409 subBuilder.mergeFrom(payloadFormatCommand_);
2410 payloadFormatCommand_ = subBuilder.buildPartial();
2412 bitField0_ |= 0x00000010;
2416 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = null;
2417 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2418 subBuilder = predefinedObd2RequestsCommand_.toBuilder();
2420 predefinedObd2RequestsCommand_ = input.readMessage(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.PARSER, extensionRegistry);
2421 if (subBuilder != null) {
2422 subBuilder.mergeFrom(predefinedObd2RequestsCommand_);
2423 predefinedObd2RequestsCommand_ = subBuilder.buildPartial();
2425 bitField0_ |= 0x00000020;
2430 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2431 throw e.setUnfinishedMessage(this);
2432 } catch (java.io.IOException e) {
2433 throw new com.google.protobuf.InvalidProtocolBufferException(
2434 e.getMessage()).setUnfinishedMessage(this);
2436 this.unknownFields = unknownFields.build();
2437 makeExtensionsImmutable();
2440 public static final com.google.protobuf.Descriptors.Descriptor
2442 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2445 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2446 internalGetFieldAccessorTable() {
2447 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2448 .ensureFieldAccessorsInitialized(
2449 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2452 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2453 new com.google.protobuf.AbstractParser<ControlCommand>() {
2454 public ControlCommand parsePartialFrom(
2455 com.google.protobuf.CodedInputStream input,
2456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2457 throws com.google.protobuf.InvalidProtocolBufferException {
2458 return new ControlCommand(input, extensionRegistry);
2463 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2468 * Protobuf enum {@code openxc.ControlCommand.Type}
2471 implements com.google.protobuf.ProtocolMessageEnum {
2473 * <code>VERSION = 1;</code>
2477 * <code>DEVICE_ID = 2;</code>
2481 * <code>DIAGNOSTIC = 3;</code>
2485 * <code>PASSTHROUGH = 4;</code>
2489 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2491 ACCEPTANCE_FILTER_BYPASS(4, 5),
2493 * <code>PAYLOAD_FORMAT = 6;</code>
2495 PAYLOAD_FORMAT(5, 6),
2497 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2499 PREDEFINED_OBD2_REQUESTS(6, 7),
2503 * <code>VERSION = 1;</code>
2505 public static final int VERSION_VALUE = 1;
2507 * <code>DEVICE_ID = 2;</code>
2509 public static final int DEVICE_ID_VALUE = 2;
2511 * <code>DIAGNOSTIC = 3;</code>
2513 public static final int DIAGNOSTIC_VALUE = 3;
2515 * <code>PASSTHROUGH = 4;</code>
2517 public static final int PASSTHROUGH_VALUE = 4;
2519 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2521 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
2523 * <code>PAYLOAD_FORMAT = 6;</code>
2525 public static final int PAYLOAD_FORMAT_VALUE = 6;
2527 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2529 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
2532 public final int getNumber() { return value; }
2534 public static Type valueOf(int value) {
2536 case 1: return VERSION;
2537 case 2: return DEVICE_ID;
2538 case 3: return DIAGNOSTIC;
2539 case 4: return PASSTHROUGH;
2540 case 5: return ACCEPTANCE_FILTER_BYPASS;
2541 case 6: return PAYLOAD_FORMAT;
2542 case 7: return PREDEFINED_OBD2_REQUESTS;
2543 default: return null;
2547 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2548 internalGetValueMap() {
2549 return internalValueMap;
2551 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2553 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2554 public Type findValueByNumber(int number) {
2555 return Type.valueOf(number);
2559 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2560 getValueDescriptor() {
2561 return getDescriptor().getValues().get(index);
2563 public final com.google.protobuf.Descriptors.EnumDescriptor
2564 getDescriptorForType() {
2565 return getDescriptor();
2567 public static final com.google.protobuf.Descriptors.EnumDescriptor
2569 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2572 private static final Type[] VALUES = values();
2574 public static Type valueOf(
2575 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2576 if (desc.getType() != getDescriptor()) {
2577 throw new java.lang.IllegalArgumentException(
2578 "EnumValueDescriptor is not for this type.");
2580 return VALUES[desc.getIndex()];
2583 private final int index;
2584 private final int value;
2586 private Type(int index, int value) {
2591 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2594 private int bitField0_;
2595 // optional .openxc.ControlCommand.Type type = 1;
2596 public static final int TYPE_FIELD_NUMBER = 1;
2597 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2599 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2601 public boolean hasType() {
2602 return ((bitField0_ & 0x00000001) == 0x00000001);
2605 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2607 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2611 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2612 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2613 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
2615 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2617 public boolean hasDiagnosticRequest() {
2618 return ((bitField0_ & 0x00000002) == 0x00000002);
2621 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2623 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2624 return diagnosticRequest_;
2627 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2629 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2630 return diagnosticRequest_;
2633 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2634 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
2635 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
2637 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2639 public boolean hasPassthroughModeRequest() {
2640 return ((bitField0_ & 0x00000004) == 0x00000004);
2643 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2645 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2646 return passthroughModeRequest_;
2649 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2651 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2652 return passthroughModeRequest_;
2655 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2656 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2657 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2659 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2661 public boolean hasAcceptanceFilterBypassCommand() {
2662 return ((bitField0_ & 0x00000008) == 0x00000008);
2665 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2667 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2668 return acceptanceFilterBypassCommand_;
2671 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2673 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2674 return acceptanceFilterBypassCommand_;
2677 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2678 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2679 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2681 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2683 public boolean hasPayloadFormatCommand() {
2684 return ((bitField0_ & 0x00000010) == 0x00000010);
2687 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2689 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2690 return payloadFormatCommand_;
2693 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2695 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2696 return payloadFormatCommand_;
2699 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2700 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2701 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2703 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2705 public boolean hasPredefinedObd2RequestsCommand() {
2706 return ((bitField0_ & 0x00000020) == 0x00000020);
2709 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2711 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2712 return predefinedObd2RequestsCommand_;
2715 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2717 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2718 return predefinedObd2RequestsCommand_;
2721 private void initFields() {
2722 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2723 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2724 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2725 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2726 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2727 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2729 private byte memoizedIsInitialized = -1;
2730 public final boolean isInitialized() {
2731 byte isInitialized = memoizedIsInitialized;
2732 if (isInitialized != -1) return isInitialized == 1;
2734 memoizedIsInitialized = 1;
2738 public void writeTo(com.google.protobuf.CodedOutputStream output)
2739 throws java.io.IOException {
2740 getSerializedSize();
2741 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2742 output.writeEnum(1, type_.getNumber());
2744 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2745 output.writeMessage(2, diagnosticRequest_);
2747 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2748 output.writeMessage(3, passthroughModeRequest_);
2750 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2751 output.writeMessage(4, acceptanceFilterBypassCommand_);
2753 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2754 output.writeMessage(5, payloadFormatCommand_);
2756 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2757 output.writeMessage(6, predefinedObd2RequestsCommand_);
2759 getUnknownFields().writeTo(output);
2762 private int memoizedSerializedSize = -1;
2763 public int getSerializedSize() {
2764 int size = memoizedSerializedSize;
2765 if (size != -1) return size;
2768 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2769 size += com.google.protobuf.CodedOutputStream
2770 .computeEnumSize(1, type_.getNumber());
2772 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2773 size += com.google.protobuf.CodedOutputStream
2774 .computeMessageSize(2, diagnosticRequest_);
2776 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2777 size += com.google.protobuf.CodedOutputStream
2778 .computeMessageSize(3, passthroughModeRequest_);
2780 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2781 size += com.google.protobuf.CodedOutputStream
2782 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2784 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2785 size += com.google.protobuf.CodedOutputStream
2786 .computeMessageSize(5, payloadFormatCommand_);
2788 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2789 size += com.google.protobuf.CodedOutputStream
2790 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2792 size += getUnknownFields().getSerializedSize();
2793 memoizedSerializedSize = size;
2797 private static final long serialVersionUID = 0L;
2799 protected java.lang.Object writeReplace()
2800 throws java.io.ObjectStreamException {
2801 return super.writeReplace();
2804 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2805 com.google.protobuf.ByteString data)
2806 throws com.google.protobuf.InvalidProtocolBufferException {
2807 return PARSER.parseFrom(data);
2809 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2810 com.google.protobuf.ByteString data,
2811 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2812 throws com.google.protobuf.InvalidProtocolBufferException {
2813 return PARSER.parseFrom(data, extensionRegistry);
2815 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2816 throws com.google.protobuf.InvalidProtocolBufferException {
2817 return PARSER.parseFrom(data);
2819 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2821 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2822 throws com.google.protobuf.InvalidProtocolBufferException {
2823 return PARSER.parseFrom(data, extensionRegistry);
2825 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2826 throws java.io.IOException {
2827 return PARSER.parseFrom(input);
2829 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2830 java.io.InputStream input,
2831 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2832 throws java.io.IOException {
2833 return PARSER.parseFrom(input, extensionRegistry);
2835 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2836 throws java.io.IOException {
2837 return PARSER.parseDelimitedFrom(input);
2839 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2840 java.io.InputStream input,
2841 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2842 throws java.io.IOException {
2843 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2845 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2846 com.google.protobuf.CodedInputStream input)
2847 throws java.io.IOException {
2848 return PARSER.parseFrom(input);
2850 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2851 com.google.protobuf.CodedInputStream input,
2852 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2853 throws java.io.IOException {
2854 return PARSER.parseFrom(input, extensionRegistry);
2857 public static Builder newBuilder() { return Builder.create(); }
2858 public Builder newBuilderForType() { return newBuilder(); }
2859 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2860 return newBuilder().mergeFrom(prototype);
2862 public Builder toBuilder() { return newBuilder(this); }
2865 protected Builder newBuilderForType(
2866 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2867 Builder builder = new Builder(parent);
2871 * Protobuf type {@code openxc.ControlCommand}
2873 public static final class Builder extends
2874 com.google.protobuf.GeneratedMessage.Builder<Builder>
2875 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2876 public static final com.google.protobuf.Descriptors.Descriptor
2878 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2881 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2882 internalGetFieldAccessorTable() {
2883 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2884 .ensureFieldAccessorsInitialized(
2885 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2888 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2890 maybeForceBuilderInitialization();
2894 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2896 maybeForceBuilderInitialization();
2898 private void maybeForceBuilderInitialization() {
2899 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2900 getDiagnosticRequestFieldBuilder();
2901 getPassthroughModeRequestFieldBuilder();
2902 getAcceptanceFilterBypassCommandFieldBuilder();
2903 getPayloadFormatCommandFieldBuilder();
2904 getPredefinedObd2RequestsCommandFieldBuilder();
2907 private static Builder create() {
2908 return new Builder();
2911 public Builder clear() {
2913 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2914 bitField0_ = (bitField0_ & ~0x00000001);
2915 if (diagnosticRequestBuilder_ == null) {
2916 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2918 diagnosticRequestBuilder_.clear();
2920 bitField0_ = (bitField0_ & ~0x00000002);
2921 if (passthroughModeRequestBuilder_ == null) {
2922 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2924 passthroughModeRequestBuilder_.clear();
2926 bitField0_ = (bitField0_ & ~0x00000004);
2927 if (acceptanceFilterBypassCommandBuilder_ == null) {
2928 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2930 acceptanceFilterBypassCommandBuilder_.clear();
2932 bitField0_ = (bitField0_ & ~0x00000008);
2933 if (payloadFormatCommandBuilder_ == null) {
2934 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2936 payloadFormatCommandBuilder_.clear();
2938 bitField0_ = (bitField0_ & ~0x00000010);
2939 if (predefinedObd2RequestsCommandBuilder_ == null) {
2940 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2942 predefinedObd2RequestsCommandBuilder_.clear();
2944 bitField0_ = (bitField0_ & ~0x00000020);
2948 public Builder clone() {
2949 return create().mergeFrom(buildPartial());
2952 public com.google.protobuf.Descriptors.Descriptor
2953 getDescriptorForType() {
2954 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2957 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2958 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2961 public com.openxc.BinaryMessages.ControlCommand build() {
2962 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2963 if (!result.isInitialized()) {
2964 throw newUninitializedMessageException(result);
2969 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2970 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2971 int from_bitField0_ = bitField0_;
2972 int to_bitField0_ = 0;
2973 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2974 to_bitField0_ |= 0x00000001;
2976 result.type_ = type_;
2977 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2978 to_bitField0_ |= 0x00000002;
2980 if (diagnosticRequestBuilder_ == null) {
2981 result.diagnosticRequest_ = diagnosticRequest_;
2983 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2985 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2986 to_bitField0_ |= 0x00000004;
2988 if (passthroughModeRequestBuilder_ == null) {
2989 result.passthroughModeRequest_ = passthroughModeRequest_;
2991 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2993 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2994 to_bitField0_ |= 0x00000008;
2996 if (acceptanceFilterBypassCommandBuilder_ == null) {
2997 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2999 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
3001 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
3002 to_bitField0_ |= 0x00000010;
3004 if (payloadFormatCommandBuilder_ == null) {
3005 result.payloadFormatCommand_ = payloadFormatCommand_;
3007 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
3009 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
3010 to_bitField0_ |= 0x00000020;
3012 if (predefinedObd2RequestsCommandBuilder_ == null) {
3013 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
3015 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
3017 result.bitField0_ = to_bitField0_;
3022 public Builder mergeFrom(com.google.protobuf.Message other) {
3023 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
3024 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
3026 super.mergeFrom(other);
3031 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
3032 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
3033 if (other.hasType()) {
3034 setType(other.getType());
3036 if (other.hasDiagnosticRequest()) {
3037 mergeDiagnosticRequest(other.getDiagnosticRequest());
3039 if (other.hasPassthroughModeRequest()) {
3040 mergePassthroughModeRequest(other.getPassthroughModeRequest());
3042 if (other.hasAcceptanceFilterBypassCommand()) {
3043 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
3045 if (other.hasPayloadFormatCommand()) {
3046 mergePayloadFormatCommand(other.getPayloadFormatCommand());
3048 if (other.hasPredefinedObd2RequestsCommand()) {
3049 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
3051 this.mergeUnknownFields(other.getUnknownFields());
3055 public final boolean isInitialized() {
3059 public Builder mergeFrom(
3060 com.google.protobuf.CodedInputStream input,
3061 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3062 throws java.io.IOException {
3063 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
3065 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3066 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3067 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
3070 if (parsedMessage != null) {
3071 mergeFrom(parsedMessage);
3076 private int bitField0_;
3078 // optional .openxc.ControlCommand.Type type = 1;
3079 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3081 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3083 public boolean hasType() {
3084 return ((bitField0_ & 0x00000001) == 0x00000001);
3087 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3089 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
3093 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3095 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
3096 if (value == null) {
3097 throw new NullPointerException();
3099 bitField0_ |= 0x00000001;
3105 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3107 public Builder clearType() {
3108 bitField0_ = (bitField0_ & ~0x00000001);
3109 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3114 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
3115 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3116 private com.google.protobuf.SingleFieldBuilder<
3117 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
3119 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3121 public boolean hasDiagnosticRequest() {
3122 return ((bitField0_ & 0x00000002) == 0x00000002);
3125 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3127 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
3128 if (diagnosticRequestBuilder_ == null) {
3129 return diagnosticRequest_;
3131 return diagnosticRequestBuilder_.getMessage();
3135 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3137 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
3138 if (diagnosticRequestBuilder_ == null) {
3139 if (value == null) {
3140 throw new NullPointerException();
3142 diagnosticRequest_ = value;
3145 diagnosticRequestBuilder_.setMessage(value);
3147 bitField0_ |= 0x00000002;
3151 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3153 public Builder setDiagnosticRequest(
3154 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
3155 if (diagnosticRequestBuilder_ == null) {
3156 diagnosticRequest_ = builderForValue.build();
3159 diagnosticRequestBuilder_.setMessage(builderForValue.build());
3161 bitField0_ |= 0x00000002;
3165 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3167 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
3168 if (diagnosticRequestBuilder_ == null) {
3169 if (((bitField0_ & 0x00000002) == 0x00000002) &&
3170 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
3171 diagnosticRequest_ =
3172 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
3174 diagnosticRequest_ = value;
3178 diagnosticRequestBuilder_.mergeFrom(value);
3180 bitField0_ |= 0x00000002;
3184 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3186 public Builder clearDiagnosticRequest() {
3187 if (diagnosticRequestBuilder_ == null) {
3188 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3191 diagnosticRequestBuilder_.clear();
3193 bitField0_ = (bitField0_ & ~0x00000002);
3197 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3199 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
3200 bitField0_ |= 0x00000002;
3202 return getDiagnosticRequestFieldBuilder().getBuilder();
3205 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3207 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
3208 if (diagnosticRequestBuilder_ != null) {
3209 return diagnosticRequestBuilder_.getMessageOrBuilder();
3211 return diagnosticRequest_;
3215 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3217 private com.google.protobuf.SingleFieldBuilder<
3218 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
3219 getDiagnosticRequestFieldBuilder() {
3220 if (diagnosticRequestBuilder_ == null) {
3221 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3222 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
3224 getParentForChildren(),
3226 diagnosticRequest_ = null;
3228 return diagnosticRequestBuilder_;
3231 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
3232 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3233 private com.google.protobuf.SingleFieldBuilder<
3234 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
3236 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3238 public boolean hasPassthroughModeRequest() {
3239 return ((bitField0_ & 0x00000004) == 0x00000004);
3242 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3244 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
3245 if (passthroughModeRequestBuilder_ == null) {
3246 return passthroughModeRequest_;
3248 return passthroughModeRequestBuilder_.getMessage();
3252 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3254 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3255 if (passthroughModeRequestBuilder_ == null) {
3256 if (value == null) {
3257 throw new NullPointerException();
3259 passthroughModeRequest_ = value;
3262 passthroughModeRequestBuilder_.setMessage(value);
3264 bitField0_ |= 0x00000004;
3268 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3270 public Builder setPassthroughModeRequest(
3271 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
3272 if (passthroughModeRequestBuilder_ == null) {
3273 passthroughModeRequest_ = builderForValue.build();
3276 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
3278 bitField0_ |= 0x00000004;
3282 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3284 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3285 if (passthroughModeRequestBuilder_ == null) {
3286 if (((bitField0_ & 0x00000004) == 0x00000004) &&
3287 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
3288 passthroughModeRequest_ =
3289 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
3291 passthroughModeRequest_ = value;
3295 passthroughModeRequestBuilder_.mergeFrom(value);
3297 bitField0_ |= 0x00000004;
3301 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3303 public Builder clearPassthroughModeRequest() {
3304 if (passthroughModeRequestBuilder_ == null) {
3305 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3308 passthroughModeRequestBuilder_.clear();
3310 bitField0_ = (bitField0_ & ~0x00000004);
3314 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3316 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
3317 bitField0_ |= 0x00000004;
3319 return getPassthroughModeRequestFieldBuilder().getBuilder();
3322 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3324 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
3325 if (passthroughModeRequestBuilder_ != null) {
3326 return passthroughModeRequestBuilder_.getMessageOrBuilder();
3328 return passthroughModeRequest_;
3332 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3334 private com.google.protobuf.SingleFieldBuilder<
3335 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
3336 getPassthroughModeRequestFieldBuilder() {
3337 if (passthroughModeRequestBuilder_ == null) {
3338 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3339 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
3340 passthroughModeRequest_,
3341 getParentForChildren(),
3343 passthroughModeRequest_ = null;
3345 return passthroughModeRequestBuilder_;
3348 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
3349 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3350 private com.google.protobuf.SingleFieldBuilder<
3351 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
3353 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3355 public boolean hasAcceptanceFilterBypassCommand() {
3356 return ((bitField0_ & 0x00000008) == 0x00000008);
3359 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3361 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
3362 if (acceptanceFilterBypassCommandBuilder_ == null) {
3363 return acceptanceFilterBypassCommand_;
3365 return acceptanceFilterBypassCommandBuilder_.getMessage();
3369 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3371 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3372 if (acceptanceFilterBypassCommandBuilder_ == null) {
3373 if (value == null) {
3374 throw new NullPointerException();
3376 acceptanceFilterBypassCommand_ = value;
3379 acceptanceFilterBypassCommandBuilder_.setMessage(value);
3381 bitField0_ |= 0x00000008;
3385 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3387 public Builder setAcceptanceFilterBypassCommand(
3388 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
3389 if (acceptanceFilterBypassCommandBuilder_ == null) {
3390 acceptanceFilterBypassCommand_ = builderForValue.build();
3393 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
3395 bitField0_ |= 0x00000008;
3399 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3401 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3402 if (acceptanceFilterBypassCommandBuilder_ == null) {
3403 if (((bitField0_ & 0x00000008) == 0x00000008) &&
3404 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
3405 acceptanceFilterBypassCommand_ =
3406 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
3408 acceptanceFilterBypassCommand_ = value;
3412 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
3414 bitField0_ |= 0x00000008;
3418 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3420 public Builder clearAcceptanceFilterBypassCommand() {
3421 if (acceptanceFilterBypassCommandBuilder_ == null) {
3422 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3425 acceptanceFilterBypassCommandBuilder_.clear();
3427 bitField0_ = (bitField0_ & ~0x00000008);
3431 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3433 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
3434 bitField0_ |= 0x00000008;
3436 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
3439 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3441 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
3442 if (acceptanceFilterBypassCommandBuilder_ != null) {
3443 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
3445 return acceptanceFilterBypassCommand_;
3449 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3451 private com.google.protobuf.SingleFieldBuilder<
3452 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
3453 getAcceptanceFilterBypassCommandFieldBuilder() {
3454 if (acceptanceFilterBypassCommandBuilder_ == null) {
3455 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3456 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
3457 acceptanceFilterBypassCommand_,
3458 getParentForChildren(),
3460 acceptanceFilterBypassCommand_ = null;
3462 return acceptanceFilterBypassCommandBuilder_;
3465 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
3466 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3467 private com.google.protobuf.SingleFieldBuilder<
3468 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
3470 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3472 public boolean hasPayloadFormatCommand() {
3473 return ((bitField0_ & 0x00000010) == 0x00000010);
3476 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3478 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
3479 if (payloadFormatCommandBuilder_ == null) {
3480 return payloadFormatCommand_;
3482 return payloadFormatCommandBuilder_.getMessage();
3486 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3488 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3489 if (payloadFormatCommandBuilder_ == null) {
3490 if (value == null) {
3491 throw new NullPointerException();
3493 payloadFormatCommand_ = value;
3496 payloadFormatCommandBuilder_.setMessage(value);
3498 bitField0_ |= 0x00000010;
3502 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3504 public Builder setPayloadFormatCommand(
3505 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
3506 if (payloadFormatCommandBuilder_ == null) {
3507 payloadFormatCommand_ = builderForValue.build();
3510 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
3512 bitField0_ |= 0x00000010;
3516 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3518 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3519 if (payloadFormatCommandBuilder_ == null) {
3520 if (((bitField0_ & 0x00000010) == 0x00000010) &&
3521 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
3522 payloadFormatCommand_ =
3523 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
3525 payloadFormatCommand_ = value;
3529 payloadFormatCommandBuilder_.mergeFrom(value);
3531 bitField0_ |= 0x00000010;
3535 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3537 public Builder clearPayloadFormatCommand() {
3538 if (payloadFormatCommandBuilder_ == null) {
3539 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3542 payloadFormatCommandBuilder_.clear();
3544 bitField0_ = (bitField0_ & ~0x00000010);
3548 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3550 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
3551 bitField0_ |= 0x00000010;
3553 return getPayloadFormatCommandFieldBuilder().getBuilder();
3556 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3558 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
3559 if (payloadFormatCommandBuilder_ != null) {
3560 return payloadFormatCommandBuilder_.getMessageOrBuilder();
3562 return payloadFormatCommand_;
3566 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3568 private com.google.protobuf.SingleFieldBuilder<
3569 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
3570 getPayloadFormatCommandFieldBuilder() {
3571 if (payloadFormatCommandBuilder_ == null) {
3572 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3573 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
3574 payloadFormatCommand_,
3575 getParentForChildren(),
3577 payloadFormatCommand_ = null;
3579 return payloadFormatCommandBuilder_;
3582 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
3583 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3584 private com.google.protobuf.SingleFieldBuilder<
3585 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
3587 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3589 public boolean hasPredefinedObd2RequestsCommand() {
3590 return ((bitField0_ & 0x00000020) == 0x00000020);
3593 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3595 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
3596 if (predefinedObd2RequestsCommandBuilder_ == null) {
3597 return predefinedObd2RequestsCommand_;
3599 return predefinedObd2RequestsCommandBuilder_.getMessage();
3603 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3605 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3606 if (predefinedObd2RequestsCommandBuilder_ == null) {
3607 if (value == null) {
3608 throw new NullPointerException();
3610 predefinedObd2RequestsCommand_ = value;
3613 predefinedObd2RequestsCommandBuilder_.setMessage(value);
3615 bitField0_ |= 0x00000020;
3619 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3621 public Builder setPredefinedObd2RequestsCommand(
3622 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
3623 if (predefinedObd2RequestsCommandBuilder_ == null) {
3624 predefinedObd2RequestsCommand_ = builderForValue.build();
3627 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
3629 bitField0_ |= 0x00000020;
3633 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3635 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3636 if (predefinedObd2RequestsCommandBuilder_ == null) {
3637 if (((bitField0_ & 0x00000020) == 0x00000020) &&
3638 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
3639 predefinedObd2RequestsCommand_ =
3640 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3642 predefinedObd2RequestsCommand_ = value;
3646 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3648 bitField0_ |= 0x00000020;
3652 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3654 public Builder clearPredefinedObd2RequestsCommand() {
3655 if (predefinedObd2RequestsCommandBuilder_ == null) {
3656 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3659 predefinedObd2RequestsCommandBuilder_.clear();
3661 bitField0_ = (bitField0_ & ~0x00000020);
3665 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3667 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3668 bitField0_ |= 0x00000020;
3670 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3673 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3675 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3676 if (predefinedObd2RequestsCommandBuilder_ != null) {
3677 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3679 return predefinedObd2RequestsCommand_;
3683 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3685 private com.google.protobuf.SingleFieldBuilder<
3686 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3687 getPredefinedObd2RequestsCommandFieldBuilder() {
3688 if (predefinedObd2RequestsCommandBuilder_ == null) {
3689 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3690 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3691 predefinedObd2RequestsCommand_,
3692 getParentForChildren(),
3694 predefinedObd2RequestsCommand_ = null;
3696 return predefinedObd2RequestsCommandBuilder_;
3699 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3703 defaultInstance = new ControlCommand(true);
3704 defaultInstance.initFields();
3707 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3710 public interface DiagnosticControlCommandOrBuilder
3711 extends com.google.protobuf.MessageOrBuilder {
3713 // optional .openxc.DiagnosticRequest request = 1;
3715 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3717 boolean hasRequest();
3719 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3721 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3723 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3725 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3727 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3729 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3731 boolean hasAction();
3733 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3735 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3738 * Protobuf type {@code openxc.DiagnosticControlCommand}
3740 public static final class DiagnosticControlCommand extends
3741 com.google.protobuf.GeneratedMessage
3742 implements DiagnosticControlCommandOrBuilder {
3743 // Use DiagnosticControlCommand.newBuilder() to construct.
3744 private DiagnosticControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3746 this.unknownFields = builder.getUnknownFields();
3748 private DiagnosticControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3750 private static final DiagnosticControlCommand defaultInstance;
3751 public static DiagnosticControlCommand getDefaultInstance() {
3752 return defaultInstance;
3755 public DiagnosticControlCommand getDefaultInstanceForType() {
3756 return defaultInstance;
3759 private final com.google.protobuf.UnknownFieldSet unknownFields;
3761 public final com.google.protobuf.UnknownFieldSet
3762 getUnknownFields() {
3763 return this.unknownFields;
3765 private DiagnosticControlCommand(
3766 com.google.protobuf.CodedInputStream input,
3767 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3768 throws com.google.protobuf.InvalidProtocolBufferException {
3770 int mutable_bitField0_ = 0;
3771 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3772 com.google.protobuf.UnknownFieldSet.newBuilder();
3774 boolean done = false;
3776 int tag = input.readTag();
3782 if (!parseUnknownField(input, unknownFields,
3783 extensionRegistry, tag)) {
3789 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
3790 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3791 subBuilder = request_.toBuilder();
3793 request_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
3794 if (subBuilder != null) {
3795 subBuilder.mergeFrom(request_);
3796 request_ = subBuilder.buildPartial();
3798 bitField0_ |= 0x00000001;
3802 int rawValue = input.readEnum();
3803 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3804 if (value == null) {
3805 unknownFields.mergeVarintField(2, rawValue);
3807 bitField0_ |= 0x00000002;
3814 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3815 throw e.setUnfinishedMessage(this);
3816 } catch (java.io.IOException e) {
3817 throw new com.google.protobuf.InvalidProtocolBufferException(
3818 e.getMessage()).setUnfinishedMessage(this);
3820 this.unknownFields = unknownFields.build();
3821 makeExtensionsImmutable();
3824 public static final com.google.protobuf.Descriptors.Descriptor
3826 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3829 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3830 internalGetFieldAccessorTable() {
3831 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3832 .ensureFieldAccessorsInitialized(
3833 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3836 public static com.google.protobuf.Parser<DiagnosticControlCommand> PARSER =
3837 new com.google.protobuf.AbstractParser<DiagnosticControlCommand>() {
3838 public DiagnosticControlCommand parsePartialFrom(
3839 com.google.protobuf.CodedInputStream input,
3840 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3841 throws com.google.protobuf.InvalidProtocolBufferException {
3842 return new DiagnosticControlCommand(input, extensionRegistry);
3847 public com.google.protobuf.Parser<DiagnosticControlCommand> getParserForType() {
3852 * Protobuf enum {@code openxc.DiagnosticControlCommand.Action}
3855 implements com.google.protobuf.ProtocolMessageEnum {
3857 * <code>ADD = 1;</code>
3861 * <code>CANCEL = 2;</code>
3867 * <code>ADD = 1;</code>
3869 public static final int ADD_VALUE = 1;
3871 * <code>CANCEL = 2;</code>
3873 public static final int CANCEL_VALUE = 2;
3876 public final int getNumber() { return value; }
3878 public static Action valueOf(int value) {
3881 case 2: return CANCEL;
3882 default: return null;
3886 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3887 internalGetValueMap() {
3888 return internalValueMap;
3890 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3892 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3893 public Action findValueByNumber(int number) {
3894 return Action.valueOf(number);
3898 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3899 getValueDescriptor() {
3900 return getDescriptor().getValues().get(index);
3902 public final com.google.protobuf.Descriptors.EnumDescriptor
3903 getDescriptorForType() {
3904 return getDescriptor();
3906 public static final com.google.protobuf.Descriptors.EnumDescriptor
3908 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3911 private static final Action[] VALUES = values();
3913 public static Action valueOf(
3914 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3915 if (desc.getType() != getDescriptor()) {
3916 throw new java.lang.IllegalArgumentException(
3917 "EnumValueDescriptor is not for this type.");
3919 return VALUES[desc.getIndex()];
3922 private final int index;
3923 private final int value;
3925 private Action(int index, int value) {
3930 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3933 private int bitField0_;
3934 // optional .openxc.DiagnosticRequest request = 1;
3935 public static final int REQUEST_FIELD_NUMBER = 1;
3936 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3938 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3940 public boolean hasRequest() {
3941 return ((bitField0_ & 0x00000001) == 0x00000001);
3944 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3946 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3950 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3952 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3956 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3957 public static final int ACTION_FIELD_NUMBER = 2;
3958 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3960 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3962 public boolean hasAction() {
3963 return ((bitField0_ & 0x00000002) == 0x00000002);
3966 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3968 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3972 private void initFields() {
3973 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3974 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3976 private byte memoizedIsInitialized = -1;
3977 public final boolean isInitialized() {
3978 byte isInitialized = memoizedIsInitialized;
3979 if (isInitialized != -1) return isInitialized == 1;
3981 memoizedIsInitialized = 1;
3985 public void writeTo(com.google.protobuf.CodedOutputStream output)
3986 throws java.io.IOException {
3987 getSerializedSize();
3988 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3989 output.writeMessage(1, request_);
3991 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3992 output.writeEnum(2, action_.getNumber());
3994 getUnknownFields().writeTo(output);
3997 private int memoizedSerializedSize = -1;
3998 public int getSerializedSize() {
3999 int size = memoizedSerializedSize;
4000 if (size != -1) return size;
4003 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4004 size += com.google.protobuf.CodedOutputStream
4005 .computeMessageSize(1, request_);
4007 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4008 size += com.google.protobuf.CodedOutputStream
4009 .computeEnumSize(2, action_.getNumber());
4011 size += getUnknownFields().getSerializedSize();
4012 memoizedSerializedSize = size;
4016 private static final long serialVersionUID = 0L;
4018 protected java.lang.Object writeReplace()
4019 throws java.io.ObjectStreamException {
4020 return super.writeReplace();
4023 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4024 com.google.protobuf.ByteString data)
4025 throws com.google.protobuf.InvalidProtocolBufferException {
4026 return PARSER.parseFrom(data);
4028 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4029 com.google.protobuf.ByteString data,
4030 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4031 throws com.google.protobuf.InvalidProtocolBufferException {
4032 return PARSER.parseFrom(data, extensionRegistry);
4034 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
4035 throws com.google.protobuf.InvalidProtocolBufferException {
4036 return PARSER.parseFrom(data);
4038 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4040 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4041 throws com.google.protobuf.InvalidProtocolBufferException {
4042 return PARSER.parseFrom(data, extensionRegistry);
4044 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
4045 throws java.io.IOException {
4046 return PARSER.parseFrom(input);
4048 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4049 java.io.InputStream input,
4050 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4051 throws java.io.IOException {
4052 return PARSER.parseFrom(input, extensionRegistry);
4054 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
4055 throws java.io.IOException {
4056 return PARSER.parseDelimitedFrom(input);
4058 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
4059 java.io.InputStream input,
4060 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4061 throws java.io.IOException {
4062 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4064 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4065 com.google.protobuf.CodedInputStream input)
4066 throws java.io.IOException {
4067 return PARSER.parseFrom(input);
4069 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
4070 com.google.protobuf.CodedInputStream input,
4071 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4072 throws java.io.IOException {
4073 return PARSER.parseFrom(input, extensionRegistry);
4076 public static Builder newBuilder() { return Builder.create(); }
4077 public Builder newBuilderForType() { return newBuilder(); }
4078 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
4079 return newBuilder().mergeFrom(prototype);
4081 public Builder toBuilder() { return newBuilder(this); }
4084 protected Builder newBuilderForType(
4085 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4086 Builder builder = new Builder(parent);
4090 * Protobuf type {@code openxc.DiagnosticControlCommand}
4092 public static final class Builder extends
4093 com.google.protobuf.GeneratedMessage.Builder<Builder>
4094 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
4095 public static final com.google.protobuf.Descriptors.Descriptor
4097 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
4100 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4101 internalGetFieldAccessorTable() {
4102 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
4103 .ensureFieldAccessorsInitialized(
4104 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
4107 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
4109 maybeForceBuilderInitialization();
4113 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4115 maybeForceBuilderInitialization();
4117 private void maybeForceBuilderInitialization() {
4118 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4119 getRequestFieldBuilder();
4122 private static Builder create() {
4123 return new Builder();
4126 public Builder clear() {
4128 if (requestBuilder_ == null) {
4129 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4131 requestBuilder_.clear();
4133 bitField0_ = (bitField0_ & ~0x00000001);
4134 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4135 bitField0_ = (bitField0_ & ~0x00000002);
4139 public Builder clone() {
4140 return create().mergeFrom(buildPartial());
4143 public com.google.protobuf.Descriptors.Descriptor
4144 getDescriptorForType() {
4145 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
4148 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
4149 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
4152 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
4153 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
4154 if (!result.isInitialized()) {
4155 throw newUninitializedMessageException(result);
4160 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
4161 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
4162 int from_bitField0_ = bitField0_;
4163 int to_bitField0_ = 0;
4164 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4165 to_bitField0_ |= 0x00000001;
4167 if (requestBuilder_ == null) {
4168 result.request_ = request_;
4170 result.request_ = requestBuilder_.build();
4172 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4173 to_bitField0_ |= 0x00000002;
4175 result.action_ = action_;
4176 result.bitField0_ = to_bitField0_;
4181 public Builder mergeFrom(com.google.protobuf.Message other) {
4182 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
4183 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
4185 super.mergeFrom(other);
4190 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
4191 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
4192 if (other.hasRequest()) {
4193 mergeRequest(other.getRequest());
4195 if (other.hasAction()) {
4196 setAction(other.getAction());
4198 this.mergeUnknownFields(other.getUnknownFields());
4202 public final boolean isInitialized() {
4206 public Builder mergeFrom(
4207 com.google.protobuf.CodedInputStream input,
4208 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4209 throws java.io.IOException {
4210 com.openxc.BinaryMessages.DiagnosticControlCommand parsedMessage = null;
4212 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4213 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4214 parsedMessage = (com.openxc.BinaryMessages.DiagnosticControlCommand) e.getUnfinishedMessage();
4217 if (parsedMessage != null) {
4218 mergeFrom(parsedMessage);
4223 private int bitField0_;
4225 // optional .openxc.DiagnosticRequest request = 1;
4226 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4227 private com.google.protobuf.SingleFieldBuilder<
4228 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
4230 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4232 public boolean hasRequest() {
4233 return ((bitField0_ & 0x00000001) == 0x00000001);
4236 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4238 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
4239 if (requestBuilder_ == null) {
4242 return requestBuilder_.getMessage();
4246 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4248 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4249 if (requestBuilder_ == null) {
4250 if (value == null) {
4251 throw new NullPointerException();
4256 requestBuilder_.setMessage(value);
4258 bitField0_ |= 0x00000001;
4262 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4264 public Builder setRequest(
4265 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
4266 if (requestBuilder_ == null) {
4267 request_ = builderForValue.build();
4270 requestBuilder_.setMessage(builderForValue.build());
4272 bitField0_ |= 0x00000001;
4276 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4278 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4279 if (requestBuilder_ == null) {
4280 if (((bitField0_ & 0x00000001) == 0x00000001) &&
4281 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
4283 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
4289 requestBuilder_.mergeFrom(value);
4291 bitField0_ |= 0x00000001;
4295 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4297 public Builder clearRequest() {
4298 if (requestBuilder_ == null) {
4299 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4302 requestBuilder_.clear();
4304 bitField0_ = (bitField0_ & ~0x00000001);
4308 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4310 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
4311 bitField0_ |= 0x00000001;
4313 return getRequestFieldBuilder().getBuilder();
4316 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4318 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
4319 if (requestBuilder_ != null) {
4320 return requestBuilder_.getMessageOrBuilder();
4326 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4328 private com.google.protobuf.SingleFieldBuilder<
4329 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
4330 getRequestFieldBuilder() {
4331 if (requestBuilder_ == null) {
4332 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4333 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
4335 getParentForChildren(),
4339 return requestBuilder_;
4342 // optional .openxc.DiagnosticControlCommand.Action action = 2;
4343 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4345 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4347 public boolean hasAction() {
4348 return ((bitField0_ & 0x00000002) == 0x00000002);
4351 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4353 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
4357 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4359 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
4360 if (value == null) {
4361 throw new NullPointerException();
4363 bitField0_ |= 0x00000002;
4369 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4371 public Builder clearAction() {
4372 bitField0_ = (bitField0_ & ~0x00000002);
4373 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4378 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
4382 defaultInstance = new DiagnosticControlCommand(true);
4383 defaultInstance.initFields();
4386 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
4389 public interface PassthroughModeControlCommandOrBuilder
4390 extends com.google.protobuf.MessageOrBuilder {
4392 // optional int32 bus = 1;
4394 * <code>optional int32 bus = 1;</code>
4398 * <code>optional int32 bus = 1;</code>
4402 // optional bool enabled = 2;
4404 * <code>optional bool enabled = 2;</code>
4406 boolean hasEnabled();
4408 * <code>optional bool enabled = 2;</code>
4410 boolean getEnabled();
4413 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4415 public static final class PassthroughModeControlCommand extends
4416 com.google.protobuf.GeneratedMessage
4417 implements PassthroughModeControlCommandOrBuilder {
4418 // Use PassthroughModeControlCommand.newBuilder() to construct.
4419 private PassthroughModeControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4421 this.unknownFields = builder.getUnknownFields();
4423 private PassthroughModeControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4425 private static final PassthroughModeControlCommand defaultInstance;
4426 public static PassthroughModeControlCommand getDefaultInstance() {
4427 return defaultInstance;
4430 public PassthroughModeControlCommand getDefaultInstanceForType() {
4431 return defaultInstance;
4434 private final com.google.protobuf.UnknownFieldSet unknownFields;
4436 public final com.google.protobuf.UnknownFieldSet
4437 getUnknownFields() {
4438 return this.unknownFields;
4440 private PassthroughModeControlCommand(
4441 com.google.protobuf.CodedInputStream input,
4442 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4443 throws com.google.protobuf.InvalidProtocolBufferException {
4445 int mutable_bitField0_ = 0;
4446 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4447 com.google.protobuf.UnknownFieldSet.newBuilder();
4449 boolean done = false;
4451 int tag = input.readTag();
4457 if (!parseUnknownField(input, unknownFields,
4458 extensionRegistry, tag)) {
4464 bitField0_ |= 0x00000001;
4465 bus_ = input.readInt32();
4469 bitField0_ |= 0x00000002;
4470 enabled_ = input.readBool();
4475 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4476 throw e.setUnfinishedMessage(this);
4477 } catch (java.io.IOException e) {
4478 throw new com.google.protobuf.InvalidProtocolBufferException(
4479 e.getMessage()).setUnfinishedMessage(this);
4481 this.unknownFields = unknownFields.build();
4482 makeExtensionsImmutable();
4485 public static final com.google.protobuf.Descriptors.Descriptor
4487 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4490 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4491 internalGetFieldAccessorTable() {
4492 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4493 .ensureFieldAccessorsInitialized(
4494 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4497 public static com.google.protobuf.Parser<PassthroughModeControlCommand> PARSER =
4498 new com.google.protobuf.AbstractParser<PassthroughModeControlCommand>() {
4499 public PassthroughModeControlCommand parsePartialFrom(
4500 com.google.protobuf.CodedInputStream input,
4501 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4502 throws com.google.protobuf.InvalidProtocolBufferException {
4503 return new PassthroughModeControlCommand(input, extensionRegistry);
4508 public com.google.protobuf.Parser<PassthroughModeControlCommand> getParserForType() {
4512 private int bitField0_;
4513 // optional int32 bus = 1;
4514 public static final int BUS_FIELD_NUMBER = 1;
4517 * <code>optional int32 bus = 1;</code>
4519 public boolean hasBus() {
4520 return ((bitField0_ & 0x00000001) == 0x00000001);
4523 * <code>optional int32 bus = 1;</code>
4525 public int getBus() {
4529 // optional bool enabled = 2;
4530 public static final int ENABLED_FIELD_NUMBER = 2;
4531 private boolean enabled_;
4533 * <code>optional bool enabled = 2;</code>
4535 public boolean hasEnabled() {
4536 return ((bitField0_ & 0x00000002) == 0x00000002);
4539 * <code>optional bool enabled = 2;</code>
4541 public boolean getEnabled() {
4545 private void initFields() {
4549 private byte memoizedIsInitialized = -1;
4550 public final boolean isInitialized() {
4551 byte isInitialized = memoizedIsInitialized;
4552 if (isInitialized != -1) return isInitialized == 1;
4554 memoizedIsInitialized = 1;
4558 public void writeTo(com.google.protobuf.CodedOutputStream output)
4559 throws java.io.IOException {
4560 getSerializedSize();
4561 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4562 output.writeInt32(1, bus_);
4564 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4565 output.writeBool(2, enabled_);
4567 getUnknownFields().writeTo(output);
4570 private int memoizedSerializedSize = -1;
4571 public int getSerializedSize() {
4572 int size = memoizedSerializedSize;
4573 if (size != -1) return size;
4576 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4577 size += com.google.protobuf.CodedOutputStream
4578 .computeInt32Size(1, bus_);
4580 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4581 size += com.google.protobuf.CodedOutputStream
4582 .computeBoolSize(2, enabled_);
4584 size += getUnknownFields().getSerializedSize();
4585 memoizedSerializedSize = size;
4589 private static final long serialVersionUID = 0L;
4591 protected java.lang.Object writeReplace()
4592 throws java.io.ObjectStreamException {
4593 return super.writeReplace();
4596 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4597 com.google.protobuf.ByteString data)
4598 throws com.google.protobuf.InvalidProtocolBufferException {
4599 return PARSER.parseFrom(data);
4601 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4602 com.google.protobuf.ByteString data,
4603 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4604 throws com.google.protobuf.InvalidProtocolBufferException {
4605 return PARSER.parseFrom(data, extensionRegistry);
4607 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
4608 throws com.google.protobuf.InvalidProtocolBufferException {
4609 return PARSER.parseFrom(data);
4611 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4613 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4614 throws com.google.protobuf.InvalidProtocolBufferException {
4615 return PARSER.parseFrom(data, extensionRegistry);
4617 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
4618 throws java.io.IOException {
4619 return PARSER.parseFrom(input);
4621 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4622 java.io.InputStream input,
4623 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4624 throws java.io.IOException {
4625 return PARSER.parseFrom(input, extensionRegistry);
4627 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
4628 throws java.io.IOException {
4629 return PARSER.parseDelimitedFrom(input);
4631 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
4632 java.io.InputStream input,
4633 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4634 throws java.io.IOException {
4635 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4637 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4638 com.google.protobuf.CodedInputStream input)
4639 throws java.io.IOException {
4640 return PARSER.parseFrom(input);
4642 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4643 com.google.protobuf.CodedInputStream input,
4644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4645 throws java.io.IOException {
4646 return PARSER.parseFrom(input, extensionRegistry);
4649 public static Builder newBuilder() { return Builder.create(); }
4650 public Builder newBuilderForType() { return newBuilder(); }
4651 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
4652 return newBuilder().mergeFrom(prototype);
4654 public Builder toBuilder() { return newBuilder(this); }
4657 protected Builder newBuilderForType(
4658 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4659 Builder builder = new Builder(parent);
4663 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4665 public static final class Builder extends
4666 com.google.protobuf.GeneratedMessage.Builder<Builder>
4667 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
4668 public static final com.google.protobuf.Descriptors.Descriptor
4670 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4673 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4674 internalGetFieldAccessorTable() {
4675 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4676 .ensureFieldAccessorsInitialized(
4677 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4680 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4682 maybeForceBuilderInitialization();
4686 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4688 maybeForceBuilderInitialization();
4690 private void maybeForceBuilderInitialization() {
4691 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4694 private static Builder create() {
4695 return new Builder();
4698 public Builder clear() {
4701 bitField0_ = (bitField0_ & ~0x00000001);
4703 bitField0_ = (bitField0_ & ~0x00000002);
4707 public Builder clone() {
4708 return create().mergeFrom(buildPartial());
4711 public com.google.protobuf.Descriptors.Descriptor
4712 getDescriptorForType() {
4713 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4716 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4717 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4720 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4721 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4722 if (!result.isInitialized()) {
4723 throw newUninitializedMessageException(result);
4728 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4729 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4730 int from_bitField0_ = bitField0_;
4731 int to_bitField0_ = 0;
4732 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4733 to_bitField0_ |= 0x00000001;
4736 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4737 to_bitField0_ |= 0x00000002;
4739 result.enabled_ = enabled_;
4740 result.bitField0_ = to_bitField0_;
4745 public Builder mergeFrom(com.google.protobuf.Message other) {
4746 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4747 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4749 super.mergeFrom(other);
4754 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4755 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4756 if (other.hasBus()) {
4757 setBus(other.getBus());
4759 if (other.hasEnabled()) {
4760 setEnabled(other.getEnabled());
4762 this.mergeUnknownFields(other.getUnknownFields());
4766 public final boolean isInitialized() {
4770 public Builder mergeFrom(
4771 com.google.protobuf.CodedInputStream input,
4772 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4773 throws java.io.IOException {
4774 com.openxc.BinaryMessages.PassthroughModeControlCommand parsedMessage = null;
4776 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4777 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4778 parsedMessage = (com.openxc.BinaryMessages.PassthroughModeControlCommand) e.getUnfinishedMessage();
4781 if (parsedMessage != null) {
4782 mergeFrom(parsedMessage);
4787 private int bitField0_;
4789 // optional int32 bus = 1;
4792 * <code>optional int32 bus = 1;</code>
4794 public boolean hasBus() {
4795 return ((bitField0_ & 0x00000001) == 0x00000001);
4798 * <code>optional int32 bus = 1;</code>
4800 public int getBus() {
4804 * <code>optional int32 bus = 1;</code>
4806 public Builder setBus(int value) {
4807 bitField0_ |= 0x00000001;
4813 * <code>optional int32 bus = 1;</code>
4815 public Builder clearBus() {
4816 bitField0_ = (bitField0_ & ~0x00000001);
4822 // optional bool enabled = 2;
4823 private boolean enabled_ ;
4825 * <code>optional bool enabled = 2;</code>
4827 public boolean hasEnabled() {
4828 return ((bitField0_ & 0x00000002) == 0x00000002);
4831 * <code>optional bool enabled = 2;</code>
4833 public boolean getEnabled() {
4837 * <code>optional bool enabled = 2;</code>
4839 public Builder setEnabled(boolean value) {
4840 bitField0_ |= 0x00000002;
4846 * <code>optional bool enabled = 2;</code>
4848 public Builder clearEnabled() {
4849 bitField0_ = (bitField0_ & ~0x00000002);
4855 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4859 defaultInstance = new PassthroughModeControlCommand(true);
4860 defaultInstance.initFields();
4863 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4866 public interface AcceptanceFilterBypassCommandOrBuilder
4867 extends com.google.protobuf.MessageOrBuilder {
4869 // optional int32 bus = 1;
4871 * <code>optional int32 bus = 1;</code>
4875 * <code>optional int32 bus = 1;</code>
4879 // optional bool bypass = 2;
4881 * <code>optional bool bypass = 2;</code>
4883 boolean hasBypass();
4885 * <code>optional bool bypass = 2;</code>
4887 boolean getBypass();
4890 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4892 public static final class AcceptanceFilterBypassCommand extends
4893 com.google.protobuf.GeneratedMessage
4894 implements AcceptanceFilterBypassCommandOrBuilder {
4895 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4896 private AcceptanceFilterBypassCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4898 this.unknownFields = builder.getUnknownFields();
4900 private AcceptanceFilterBypassCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4902 private static final AcceptanceFilterBypassCommand defaultInstance;
4903 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4904 return defaultInstance;
4907 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4908 return defaultInstance;
4911 private final com.google.protobuf.UnknownFieldSet unknownFields;
4913 public final com.google.protobuf.UnknownFieldSet
4914 getUnknownFields() {
4915 return this.unknownFields;
4917 private AcceptanceFilterBypassCommand(
4918 com.google.protobuf.CodedInputStream input,
4919 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4920 throws com.google.protobuf.InvalidProtocolBufferException {
4922 int mutable_bitField0_ = 0;
4923 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4924 com.google.protobuf.UnknownFieldSet.newBuilder();
4926 boolean done = false;
4928 int tag = input.readTag();
4934 if (!parseUnknownField(input, unknownFields,
4935 extensionRegistry, tag)) {
4941 bitField0_ |= 0x00000001;
4942 bus_ = input.readInt32();
4946 bitField0_ |= 0x00000002;
4947 bypass_ = input.readBool();
4952 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4953 throw e.setUnfinishedMessage(this);
4954 } catch (java.io.IOException e) {
4955 throw new com.google.protobuf.InvalidProtocolBufferException(
4956 e.getMessage()).setUnfinishedMessage(this);
4958 this.unknownFields = unknownFields.build();
4959 makeExtensionsImmutable();
4962 public static final com.google.protobuf.Descriptors.Descriptor
4964 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4967 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4968 internalGetFieldAccessorTable() {
4969 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4970 .ensureFieldAccessorsInitialized(
4971 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4974 public static com.google.protobuf.Parser<AcceptanceFilterBypassCommand> PARSER =
4975 new com.google.protobuf.AbstractParser<AcceptanceFilterBypassCommand>() {
4976 public AcceptanceFilterBypassCommand parsePartialFrom(
4977 com.google.protobuf.CodedInputStream input,
4978 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4979 throws com.google.protobuf.InvalidProtocolBufferException {
4980 return new AcceptanceFilterBypassCommand(input, extensionRegistry);
4985 public com.google.protobuf.Parser<AcceptanceFilterBypassCommand> getParserForType() {
4989 private int bitField0_;
4990 // optional int32 bus = 1;
4991 public static final int BUS_FIELD_NUMBER = 1;
4994 * <code>optional int32 bus = 1;</code>
4996 public boolean hasBus() {
4997 return ((bitField0_ & 0x00000001) == 0x00000001);
5000 * <code>optional int32 bus = 1;</code>
5002 public int getBus() {
5006 // optional bool bypass = 2;
5007 public static final int BYPASS_FIELD_NUMBER = 2;
5008 private boolean bypass_;
5010 * <code>optional bool bypass = 2;</code>
5012 public boolean hasBypass() {
5013 return ((bitField0_ & 0x00000002) == 0x00000002);
5016 * <code>optional bool bypass = 2;</code>
5018 public boolean getBypass() {
5022 private void initFields() {
5026 private byte memoizedIsInitialized = -1;
5027 public final boolean isInitialized() {
5028 byte isInitialized = memoizedIsInitialized;
5029 if (isInitialized != -1) return isInitialized == 1;
5031 memoizedIsInitialized = 1;
5035 public void writeTo(com.google.protobuf.CodedOutputStream output)
5036 throws java.io.IOException {
5037 getSerializedSize();
5038 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5039 output.writeInt32(1, bus_);
5041 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5042 output.writeBool(2, bypass_);
5044 getUnknownFields().writeTo(output);
5047 private int memoizedSerializedSize = -1;
5048 public int getSerializedSize() {
5049 int size = memoizedSerializedSize;
5050 if (size != -1) return size;
5053 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5054 size += com.google.protobuf.CodedOutputStream
5055 .computeInt32Size(1, bus_);
5057 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5058 size += com.google.protobuf.CodedOutputStream
5059 .computeBoolSize(2, bypass_);
5061 size += getUnknownFields().getSerializedSize();
5062 memoizedSerializedSize = size;
5066 private static final long serialVersionUID = 0L;
5068 protected java.lang.Object writeReplace()
5069 throws java.io.ObjectStreamException {
5070 return super.writeReplace();
5073 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5074 com.google.protobuf.ByteString data)
5075 throws com.google.protobuf.InvalidProtocolBufferException {
5076 return PARSER.parseFrom(data);
5078 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5079 com.google.protobuf.ByteString data,
5080 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5081 throws com.google.protobuf.InvalidProtocolBufferException {
5082 return PARSER.parseFrom(data, extensionRegistry);
5084 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
5085 throws com.google.protobuf.InvalidProtocolBufferException {
5086 return PARSER.parseFrom(data);
5088 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5090 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5091 throws com.google.protobuf.InvalidProtocolBufferException {
5092 return PARSER.parseFrom(data, extensionRegistry);
5094 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
5095 throws java.io.IOException {
5096 return PARSER.parseFrom(input);
5098 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5099 java.io.InputStream input,
5100 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5101 throws java.io.IOException {
5102 return PARSER.parseFrom(input, extensionRegistry);
5104 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
5105 throws java.io.IOException {
5106 return PARSER.parseDelimitedFrom(input);
5108 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
5109 java.io.InputStream input,
5110 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5111 throws java.io.IOException {
5112 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5114 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5115 com.google.protobuf.CodedInputStream input)
5116 throws java.io.IOException {
5117 return PARSER.parseFrom(input);
5119 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
5120 com.google.protobuf.CodedInputStream input,
5121 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5122 throws java.io.IOException {
5123 return PARSER.parseFrom(input, extensionRegistry);
5126 public static Builder newBuilder() { return Builder.create(); }
5127 public Builder newBuilderForType() { return newBuilder(); }
5128 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
5129 return newBuilder().mergeFrom(prototype);
5131 public Builder toBuilder() { return newBuilder(this); }
5134 protected Builder newBuilderForType(
5135 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5136 Builder builder = new Builder(parent);
5140 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
5142 public static final class Builder extends
5143 com.google.protobuf.GeneratedMessage.Builder<Builder>
5144 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
5145 public static final com.google.protobuf.Descriptors.Descriptor
5147 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
5150 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5151 internalGetFieldAccessorTable() {
5152 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
5153 .ensureFieldAccessorsInitialized(
5154 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
5157 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
5159 maybeForceBuilderInitialization();
5163 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5165 maybeForceBuilderInitialization();
5167 private void maybeForceBuilderInitialization() {
5168 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5171 private static Builder create() {
5172 return new Builder();
5175 public Builder clear() {
5178 bitField0_ = (bitField0_ & ~0x00000001);
5180 bitField0_ = (bitField0_ & ~0x00000002);
5184 public Builder clone() {
5185 return create().mergeFrom(buildPartial());
5188 public com.google.protobuf.Descriptors.Descriptor
5189 getDescriptorForType() {
5190 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
5193 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
5194 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
5197 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
5198 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
5199 if (!result.isInitialized()) {
5200 throw newUninitializedMessageException(result);
5205 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
5206 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
5207 int from_bitField0_ = bitField0_;
5208 int to_bitField0_ = 0;
5209 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5210 to_bitField0_ |= 0x00000001;
5213 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5214 to_bitField0_ |= 0x00000002;
5216 result.bypass_ = bypass_;
5217 result.bitField0_ = to_bitField0_;
5222 public Builder mergeFrom(com.google.protobuf.Message other) {
5223 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
5224 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
5226 super.mergeFrom(other);
5231 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
5232 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
5233 if (other.hasBus()) {
5234 setBus(other.getBus());
5236 if (other.hasBypass()) {
5237 setBypass(other.getBypass());
5239 this.mergeUnknownFields(other.getUnknownFields());
5243 public final boolean isInitialized() {
5247 public Builder mergeFrom(
5248 com.google.protobuf.CodedInputStream input,
5249 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5250 throws java.io.IOException {
5251 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parsedMessage = null;
5253 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5254 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5255 parsedMessage = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) e.getUnfinishedMessage();
5258 if (parsedMessage != null) {
5259 mergeFrom(parsedMessage);
5264 private int bitField0_;
5266 // optional int32 bus = 1;
5269 * <code>optional int32 bus = 1;</code>
5271 public boolean hasBus() {
5272 return ((bitField0_ & 0x00000001) == 0x00000001);
5275 * <code>optional int32 bus = 1;</code>
5277 public int getBus() {
5281 * <code>optional int32 bus = 1;</code>
5283 public Builder setBus(int value) {
5284 bitField0_ |= 0x00000001;
5290 * <code>optional int32 bus = 1;</code>
5292 public Builder clearBus() {
5293 bitField0_ = (bitField0_ & ~0x00000001);
5299 // optional bool bypass = 2;
5300 private boolean bypass_ ;
5302 * <code>optional bool bypass = 2;</code>
5304 public boolean hasBypass() {
5305 return ((bitField0_ & 0x00000002) == 0x00000002);
5308 * <code>optional bool bypass = 2;</code>
5310 public boolean getBypass() {
5314 * <code>optional bool bypass = 2;</code>
5316 public Builder setBypass(boolean value) {
5317 bitField0_ |= 0x00000002;
5323 * <code>optional bool bypass = 2;</code>
5325 public Builder clearBypass() {
5326 bitField0_ = (bitField0_ & ~0x00000002);
5332 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
5336 defaultInstance = new AcceptanceFilterBypassCommand(true);
5337 defaultInstance.initFields();
5340 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
5343 public interface PayloadFormatCommandOrBuilder
5344 extends com.google.protobuf.MessageOrBuilder {
5346 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5348 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5350 boolean hasFormat();
5352 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5354 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
5357 * Protobuf type {@code openxc.PayloadFormatCommand}
5359 public static final class PayloadFormatCommand extends
5360 com.google.protobuf.GeneratedMessage
5361 implements PayloadFormatCommandOrBuilder {
5362 // Use PayloadFormatCommand.newBuilder() to construct.
5363 private PayloadFormatCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5365 this.unknownFields = builder.getUnknownFields();
5367 private PayloadFormatCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5369 private static final PayloadFormatCommand defaultInstance;
5370 public static PayloadFormatCommand getDefaultInstance() {
5371 return defaultInstance;
5374 public PayloadFormatCommand getDefaultInstanceForType() {
5375 return defaultInstance;
5378 private final com.google.protobuf.UnknownFieldSet unknownFields;
5380 public final com.google.protobuf.UnknownFieldSet
5381 getUnknownFields() {
5382 return this.unknownFields;
5384 private PayloadFormatCommand(
5385 com.google.protobuf.CodedInputStream input,
5386 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5387 throws com.google.protobuf.InvalidProtocolBufferException {
5389 int mutable_bitField0_ = 0;
5390 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5391 com.google.protobuf.UnknownFieldSet.newBuilder();
5393 boolean done = false;
5395 int tag = input.readTag();
5401 if (!parseUnknownField(input, unknownFields,
5402 extensionRegistry, tag)) {
5408 int rawValue = input.readEnum();
5409 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
5410 if (value == null) {
5411 unknownFields.mergeVarintField(1, rawValue);
5413 bitField0_ |= 0x00000001;
5420 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5421 throw e.setUnfinishedMessage(this);
5422 } catch (java.io.IOException e) {
5423 throw new com.google.protobuf.InvalidProtocolBufferException(
5424 e.getMessage()).setUnfinishedMessage(this);
5426 this.unknownFields = unknownFields.build();
5427 makeExtensionsImmutable();
5430 public static final com.google.protobuf.Descriptors.Descriptor
5432 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5435 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5436 internalGetFieldAccessorTable() {
5437 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5438 .ensureFieldAccessorsInitialized(
5439 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5442 public static com.google.protobuf.Parser<PayloadFormatCommand> PARSER =
5443 new com.google.protobuf.AbstractParser<PayloadFormatCommand>() {
5444 public PayloadFormatCommand parsePartialFrom(
5445 com.google.protobuf.CodedInputStream input,
5446 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5447 throws com.google.protobuf.InvalidProtocolBufferException {
5448 return new PayloadFormatCommand(input, extensionRegistry);
5453 public com.google.protobuf.Parser<PayloadFormatCommand> getParserForType() {
5458 * Protobuf enum {@code openxc.PayloadFormatCommand.PayloadFormat}
5460 public enum PayloadFormat
5461 implements com.google.protobuf.ProtocolMessageEnum {
5463 * <code>JSON = 1;</code>
5467 * <code>PROTOBUF = 2;</code>
5473 * <code>JSON = 1;</code>
5475 public static final int JSON_VALUE = 1;
5477 * <code>PROTOBUF = 2;</code>
5479 public static final int PROTOBUF_VALUE = 2;
5482 public final int getNumber() { return value; }
5484 public static PayloadFormat valueOf(int value) {
5486 case 1: return JSON;
5487 case 2: return PROTOBUF;
5488 default: return null;
5492 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5493 internalGetValueMap() {
5494 return internalValueMap;
5496 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5498 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
5499 public PayloadFormat findValueByNumber(int number) {
5500 return PayloadFormat.valueOf(number);
5504 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5505 getValueDescriptor() {
5506 return getDescriptor().getValues().get(index);
5508 public final com.google.protobuf.Descriptors.EnumDescriptor
5509 getDescriptorForType() {
5510 return getDescriptor();
5512 public static final com.google.protobuf.Descriptors.EnumDescriptor
5514 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
5517 private static final PayloadFormat[] VALUES = values();
5519 public static PayloadFormat valueOf(
5520 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5521 if (desc.getType() != getDescriptor()) {
5522 throw new java.lang.IllegalArgumentException(
5523 "EnumValueDescriptor is not for this type.");
5525 return VALUES[desc.getIndex()];
5528 private final int index;
5529 private final int value;
5531 private PayloadFormat(int index, int value) {
5536 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
5539 private int bitField0_;
5540 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5541 public static final int FORMAT_FIELD_NUMBER = 1;
5542 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
5544 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5546 public boolean hasFormat() {
5547 return ((bitField0_ & 0x00000001) == 0x00000001);
5550 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5552 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5556 private void initFields() {
5557 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5559 private byte memoizedIsInitialized = -1;
5560 public final boolean isInitialized() {
5561 byte isInitialized = memoizedIsInitialized;
5562 if (isInitialized != -1) return isInitialized == 1;
5564 memoizedIsInitialized = 1;
5568 public void writeTo(com.google.protobuf.CodedOutputStream output)
5569 throws java.io.IOException {
5570 getSerializedSize();
5571 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5572 output.writeEnum(1, format_.getNumber());
5574 getUnknownFields().writeTo(output);
5577 private int memoizedSerializedSize = -1;
5578 public int getSerializedSize() {
5579 int size = memoizedSerializedSize;
5580 if (size != -1) return size;
5583 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5584 size += com.google.protobuf.CodedOutputStream
5585 .computeEnumSize(1, format_.getNumber());
5587 size += getUnknownFields().getSerializedSize();
5588 memoizedSerializedSize = size;
5592 private static final long serialVersionUID = 0L;
5594 protected java.lang.Object writeReplace()
5595 throws java.io.ObjectStreamException {
5596 return super.writeReplace();
5599 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5600 com.google.protobuf.ByteString data)
5601 throws com.google.protobuf.InvalidProtocolBufferException {
5602 return PARSER.parseFrom(data);
5604 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5605 com.google.protobuf.ByteString data,
5606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5607 throws com.google.protobuf.InvalidProtocolBufferException {
5608 return PARSER.parseFrom(data, extensionRegistry);
5610 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
5611 throws com.google.protobuf.InvalidProtocolBufferException {
5612 return PARSER.parseFrom(data);
5614 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5616 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5617 throws com.google.protobuf.InvalidProtocolBufferException {
5618 return PARSER.parseFrom(data, extensionRegistry);
5620 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
5621 throws java.io.IOException {
5622 return PARSER.parseFrom(input);
5624 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5625 java.io.InputStream input,
5626 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5627 throws java.io.IOException {
5628 return PARSER.parseFrom(input, extensionRegistry);
5630 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
5631 throws java.io.IOException {
5632 return PARSER.parseDelimitedFrom(input);
5634 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
5635 java.io.InputStream input,
5636 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5637 throws java.io.IOException {
5638 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5640 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5641 com.google.protobuf.CodedInputStream input)
5642 throws java.io.IOException {
5643 return PARSER.parseFrom(input);
5645 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5646 com.google.protobuf.CodedInputStream input,
5647 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5648 throws java.io.IOException {
5649 return PARSER.parseFrom(input, extensionRegistry);
5652 public static Builder newBuilder() { return Builder.create(); }
5653 public Builder newBuilderForType() { return newBuilder(); }
5654 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
5655 return newBuilder().mergeFrom(prototype);
5657 public Builder toBuilder() { return newBuilder(this); }
5660 protected Builder newBuilderForType(
5661 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5662 Builder builder = new Builder(parent);
5666 * Protobuf type {@code openxc.PayloadFormatCommand}
5668 public static final class Builder extends
5669 com.google.protobuf.GeneratedMessage.Builder<Builder>
5670 implements com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
5671 public static final com.google.protobuf.Descriptors.Descriptor
5673 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5676 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5677 internalGetFieldAccessorTable() {
5678 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5679 .ensureFieldAccessorsInitialized(
5680 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5683 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
5685 maybeForceBuilderInitialization();
5689 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5691 maybeForceBuilderInitialization();
5693 private void maybeForceBuilderInitialization() {
5694 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5697 private static Builder create() {
5698 return new Builder();
5701 public Builder clear() {
5703 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5704 bitField0_ = (bitField0_ & ~0x00000001);
5708 public Builder clone() {
5709 return create().mergeFrom(buildPartial());
5712 public com.google.protobuf.Descriptors.Descriptor
5713 getDescriptorForType() {
5714 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5717 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
5718 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
5721 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
5722 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
5723 if (!result.isInitialized()) {
5724 throw newUninitializedMessageException(result);
5729 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
5730 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
5731 int from_bitField0_ = bitField0_;
5732 int to_bitField0_ = 0;
5733 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5734 to_bitField0_ |= 0x00000001;
5736 result.format_ = format_;
5737 result.bitField0_ = to_bitField0_;
5742 public Builder mergeFrom(com.google.protobuf.Message other) {
5743 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
5744 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
5746 super.mergeFrom(other);
5751 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
5752 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
5753 if (other.hasFormat()) {
5754 setFormat(other.getFormat());
5756 this.mergeUnknownFields(other.getUnknownFields());
5760 public final boolean isInitialized() {
5764 public Builder mergeFrom(
5765 com.google.protobuf.CodedInputStream input,
5766 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5767 throws java.io.IOException {
5768 com.openxc.BinaryMessages.PayloadFormatCommand parsedMessage = null;
5770 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5771 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5772 parsedMessage = (com.openxc.BinaryMessages.PayloadFormatCommand) e.getUnfinishedMessage();
5775 if (parsedMessage != null) {
5776 mergeFrom(parsedMessage);
5781 private int bitField0_;
5783 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5784 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5786 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5788 public boolean hasFormat() {
5789 return ((bitField0_ & 0x00000001) == 0x00000001);
5792 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5794 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5798 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5800 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
5801 if (value == null) {
5802 throw new NullPointerException();
5804 bitField0_ |= 0x00000001;
5810 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5812 public Builder clearFormat() {
5813 bitField0_ = (bitField0_ & ~0x00000001);
5814 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5819 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
5823 defaultInstance = new PayloadFormatCommand(true);
5824 defaultInstance.initFields();
5827 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5830 public interface PredefinedObd2RequestsCommandOrBuilder
5831 extends com.google.protobuf.MessageOrBuilder {
5833 // optional bool enabled = 1;
5835 * <code>optional bool enabled = 1;</code>
5837 boolean hasEnabled();
5839 * <code>optional bool enabled = 1;</code>
5841 boolean getEnabled();
5844 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
5846 public static final class PredefinedObd2RequestsCommand extends
5847 com.google.protobuf.GeneratedMessage
5848 implements PredefinedObd2RequestsCommandOrBuilder {
5849 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5850 private PredefinedObd2RequestsCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5852 this.unknownFields = builder.getUnknownFields();
5854 private PredefinedObd2RequestsCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5856 private static final PredefinedObd2RequestsCommand defaultInstance;
5857 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5858 return defaultInstance;
5861 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5862 return defaultInstance;
5865 private final com.google.protobuf.UnknownFieldSet unknownFields;
5867 public final com.google.protobuf.UnknownFieldSet
5868 getUnknownFields() {
5869 return this.unknownFields;
5871 private PredefinedObd2RequestsCommand(
5872 com.google.protobuf.CodedInputStream input,
5873 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5874 throws com.google.protobuf.InvalidProtocolBufferException {
5876 int mutable_bitField0_ = 0;
5877 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5878 com.google.protobuf.UnknownFieldSet.newBuilder();
5880 boolean done = false;
5882 int tag = input.readTag();
5888 if (!parseUnknownField(input, unknownFields,
5889 extensionRegistry, tag)) {
5895 bitField0_ |= 0x00000001;
5896 enabled_ = input.readBool();
5901 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5902 throw e.setUnfinishedMessage(this);
5903 } catch (java.io.IOException e) {
5904 throw new com.google.protobuf.InvalidProtocolBufferException(
5905 e.getMessage()).setUnfinishedMessage(this);
5907 this.unknownFields = unknownFields.build();
5908 makeExtensionsImmutable();
5911 public static final com.google.protobuf.Descriptors.Descriptor
5913 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5916 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5917 internalGetFieldAccessorTable() {
5918 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
5919 .ensureFieldAccessorsInitialized(
5920 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
5923 public static com.google.protobuf.Parser<PredefinedObd2RequestsCommand> PARSER =
5924 new com.google.protobuf.AbstractParser<PredefinedObd2RequestsCommand>() {
5925 public PredefinedObd2RequestsCommand parsePartialFrom(
5926 com.google.protobuf.CodedInputStream input,
5927 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5928 throws com.google.protobuf.InvalidProtocolBufferException {
5929 return new PredefinedObd2RequestsCommand(input, extensionRegistry);
5934 public com.google.protobuf.Parser<PredefinedObd2RequestsCommand> getParserForType() {
5938 private int bitField0_;
5939 // optional bool enabled = 1;
5940 public static final int ENABLED_FIELD_NUMBER = 1;
5941 private boolean enabled_;
5943 * <code>optional bool enabled = 1;</code>
5945 public boolean hasEnabled() {
5946 return ((bitField0_ & 0x00000001) == 0x00000001);
5949 * <code>optional bool enabled = 1;</code>
5951 public boolean getEnabled() {
5955 private void initFields() {
5958 private byte memoizedIsInitialized = -1;
5959 public final boolean isInitialized() {
5960 byte isInitialized = memoizedIsInitialized;
5961 if (isInitialized != -1) return isInitialized == 1;
5963 memoizedIsInitialized = 1;
5967 public void writeTo(com.google.protobuf.CodedOutputStream output)
5968 throws java.io.IOException {
5969 getSerializedSize();
5970 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5971 output.writeBool(1, enabled_);
5973 getUnknownFields().writeTo(output);
5976 private int memoizedSerializedSize = -1;
5977 public int getSerializedSize() {
5978 int size = memoizedSerializedSize;
5979 if (size != -1) return size;
5982 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5983 size += com.google.protobuf.CodedOutputStream
5984 .computeBoolSize(1, enabled_);
5986 size += getUnknownFields().getSerializedSize();
5987 memoizedSerializedSize = size;
5991 private static final long serialVersionUID = 0L;
5993 protected java.lang.Object writeReplace()
5994 throws java.io.ObjectStreamException {
5995 return super.writeReplace();
5998 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5999 com.google.protobuf.ByteString data)
6000 throws com.google.protobuf.InvalidProtocolBufferException {
6001 return PARSER.parseFrom(data);
6003 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6004 com.google.protobuf.ByteString data,
6005 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6006 throws com.google.protobuf.InvalidProtocolBufferException {
6007 return PARSER.parseFrom(data, extensionRegistry);
6009 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
6010 throws com.google.protobuf.InvalidProtocolBufferException {
6011 return PARSER.parseFrom(data);
6013 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6015 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6016 throws com.google.protobuf.InvalidProtocolBufferException {
6017 return PARSER.parseFrom(data, extensionRegistry);
6019 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
6020 throws java.io.IOException {
6021 return PARSER.parseFrom(input);
6023 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6024 java.io.InputStream input,
6025 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6026 throws java.io.IOException {
6027 return PARSER.parseFrom(input, extensionRegistry);
6029 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
6030 throws java.io.IOException {
6031 return PARSER.parseDelimitedFrom(input);
6033 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
6034 java.io.InputStream input,
6035 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6036 throws java.io.IOException {
6037 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6039 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6040 com.google.protobuf.CodedInputStream input)
6041 throws java.io.IOException {
6042 return PARSER.parseFrom(input);
6044 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
6045 com.google.protobuf.CodedInputStream input,
6046 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6047 throws java.io.IOException {
6048 return PARSER.parseFrom(input, extensionRegistry);
6051 public static Builder newBuilder() { return Builder.create(); }
6052 public Builder newBuilderForType() { return newBuilder(); }
6053 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
6054 return newBuilder().mergeFrom(prototype);
6056 public Builder toBuilder() { return newBuilder(this); }
6059 protected Builder newBuilderForType(
6060 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6061 Builder builder = new Builder(parent);
6065 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
6067 public static final class Builder extends
6068 com.google.protobuf.GeneratedMessage.Builder<Builder>
6069 implements com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
6070 public static final com.google.protobuf.Descriptors.Descriptor
6072 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
6075 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6076 internalGetFieldAccessorTable() {
6077 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
6078 .ensureFieldAccessorsInitialized(
6079 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
6082 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
6084 maybeForceBuilderInitialization();
6088 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6090 maybeForceBuilderInitialization();
6092 private void maybeForceBuilderInitialization() {
6093 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6096 private static Builder create() {
6097 return new Builder();
6100 public Builder clear() {
6103 bitField0_ = (bitField0_ & ~0x00000001);
6107 public Builder clone() {
6108 return create().mergeFrom(buildPartial());
6111 public com.google.protobuf.Descriptors.Descriptor
6112 getDescriptorForType() {
6113 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
6116 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
6117 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
6120 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
6121 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
6122 if (!result.isInitialized()) {
6123 throw newUninitializedMessageException(result);
6128 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
6129 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
6130 int from_bitField0_ = bitField0_;
6131 int to_bitField0_ = 0;
6132 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6133 to_bitField0_ |= 0x00000001;
6135 result.enabled_ = enabled_;
6136 result.bitField0_ = to_bitField0_;
6141 public Builder mergeFrom(com.google.protobuf.Message other) {
6142 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
6143 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
6145 super.mergeFrom(other);
6150 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
6151 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
6152 if (other.hasEnabled()) {
6153 setEnabled(other.getEnabled());
6155 this.mergeUnknownFields(other.getUnknownFields());
6159 public final boolean isInitialized() {
6163 public Builder mergeFrom(
6164 com.google.protobuf.CodedInputStream input,
6165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6166 throws java.io.IOException {
6167 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parsedMessage = null;
6169 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6170 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6171 parsedMessage = (com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) e.getUnfinishedMessage();
6174 if (parsedMessage != null) {
6175 mergeFrom(parsedMessage);
6180 private int bitField0_;
6182 // optional bool enabled = 1;
6183 private boolean enabled_ ;
6185 * <code>optional bool enabled = 1;</code>
6187 public boolean hasEnabled() {
6188 return ((bitField0_ & 0x00000001) == 0x00000001);
6191 * <code>optional bool enabled = 1;</code>
6193 public boolean getEnabled() {
6197 * <code>optional bool enabled = 1;</code>
6199 public Builder setEnabled(boolean value) {
6200 bitField0_ |= 0x00000001;
6206 * <code>optional bool enabled = 1;</code>
6208 public Builder clearEnabled() {
6209 bitField0_ = (bitField0_ & ~0x00000001);
6215 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
6219 defaultInstance = new PredefinedObd2RequestsCommand(true);
6220 defaultInstance.initFields();
6223 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
6226 public interface CommandResponseOrBuilder
6227 extends com.google.protobuf.MessageOrBuilder {
6229 // optional .openxc.ControlCommand.Type type = 1;
6231 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6235 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6237 com.openxc.BinaryMessages.ControlCommand.Type getType();
6239 // optional string message = 2;
6241 * <code>optional string message = 2;</code>
6243 boolean hasMessage();
6245 * <code>optional string message = 2;</code>
6247 java.lang.String getMessage();
6249 * <code>optional string message = 2;</code>
6251 com.google.protobuf.ByteString
6254 // optional bool status = 3;
6256 * <code>optional bool status = 3;</code>
6258 boolean hasStatus();
6260 * <code>optional bool status = 3;</code>
6262 boolean getStatus();
6265 * Protobuf type {@code openxc.CommandResponse}
6267 public static final class CommandResponse extends
6268 com.google.protobuf.GeneratedMessage
6269 implements CommandResponseOrBuilder {
6270 // Use CommandResponse.newBuilder() to construct.
6271 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6273 this.unknownFields = builder.getUnknownFields();
6275 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6277 private static final CommandResponse defaultInstance;
6278 public static CommandResponse getDefaultInstance() {
6279 return defaultInstance;
6282 public CommandResponse getDefaultInstanceForType() {
6283 return defaultInstance;
6286 private final com.google.protobuf.UnknownFieldSet unknownFields;
6288 public final com.google.protobuf.UnknownFieldSet
6289 getUnknownFields() {
6290 return this.unknownFields;
6292 private CommandResponse(
6293 com.google.protobuf.CodedInputStream input,
6294 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6295 throws com.google.protobuf.InvalidProtocolBufferException {
6297 int mutable_bitField0_ = 0;
6298 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6299 com.google.protobuf.UnknownFieldSet.newBuilder();
6301 boolean done = false;
6303 int tag = input.readTag();
6309 if (!parseUnknownField(input, unknownFields,
6310 extensionRegistry, tag)) {
6316 int rawValue = input.readEnum();
6317 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
6318 if (value == null) {
6319 unknownFields.mergeVarintField(1, rawValue);
6321 bitField0_ |= 0x00000001;
6327 bitField0_ |= 0x00000002;
6328 message_ = input.readBytes();
6332 bitField0_ |= 0x00000004;
6333 status_ = input.readBool();
6338 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6339 throw e.setUnfinishedMessage(this);
6340 } catch (java.io.IOException e) {
6341 throw new com.google.protobuf.InvalidProtocolBufferException(
6342 e.getMessage()).setUnfinishedMessage(this);
6344 this.unknownFields = unknownFields.build();
6345 makeExtensionsImmutable();
6348 public static final com.google.protobuf.Descriptors.Descriptor
6350 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6353 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6354 internalGetFieldAccessorTable() {
6355 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6356 .ensureFieldAccessorsInitialized(
6357 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6360 public static com.google.protobuf.Parser<CommandResponse> PARSER =
6361 new com.google.protobuf.AbstractParser<CommandResponse>() {
6362 public CommandResponse parsePartialFrom(
6363 com.google.protobuf.CodedInputStream input,
6364 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6365 throws com.google.protobuf.InvalidProtocolBufferException {
6366 return new CommandResponse(input, extensionRegistry);
6371 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
6375 private int bitField0_;
6376 // optional .openxc.ControlCommand.Type type = 1;
6377 public static final int TYPE_FIELD_NUMBER = 1;
6378 private com.openxc.BinaryMessages.ControlCommand.Type type_;
6380 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6382 public boolean hasType() {
6383 return ((bitField0_ & 0x00000001) == 0x00000001);
6386 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6388 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6392 // optional string message = 2;
6393 public static final int MESSAGE_FIELD_NUMBER = 2;
6394 private java.lang.Object message_;
6396 * <code>optional string message = 2;</code>
6398 public boolean hasMessage() {
6399 return ((bitField0_ & 0x00000002) == 0x00000002);
6402 * <code>optional string message = 2;</code>
6404 public java.lang.String getMessage() {
6405 java.lang.Object ref = message_;
6406 if (ref instanceof java.lang.String) {
6407 return (java.lang.String) ref;
6409 com.google.protobuf.ByteString bs =
6410 (com.google.protobuf.ByteString) ref;
6411 java.lang.String s = bs.toStringUtf8();
6412 if (bs.isValidUtf8()) {
6419 * <code>optional string message = 2;</code>
6421 public com.google.protobuf.ByteString
6423 java.lang.Object ref = message_;
6424 if (ref instanceof java.lang.String) {
6425 com.google.protobuf.ByteString b =
6426 com.google.protobuf.ByteString.copyFromUtf8(
6427 (java.lang.String) ref);
6431 return (com.google.protobuf.ByteString) ref;
6435 // optional bool status = 3;
6436 public static final int STATUS_FIELD_NUMBER = 3;
6437 private boolean status_;
6439 * <code>optional bool status = 3;</code>
6441 public boolean hasStatus() {
6442 return ((bitField0_ & 0x00000004) == 0x00000004);
6445 * <code>optional bool status = 3;</code>
6447 public boolean getStatus() {
6451 private void initFields() {
6452 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6456 private byte memoizedIsInitialized = -1;
6457 public final boolean isInitialized() {
6458 byte isInitialized = memoizedIsInitialized;
6459 if (isInitialized != -1) return isInitialized == 1;
6461 memoizedIsInitialized = 1;
6465 public void writeTo(com.google.protobuf.CodedOutputStream output)
6466 throws java.io.IOException {
6467 getSerializedSize();
6468 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6469 output.writeEnum(1, type_.getNumber());
6471 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6472 output.writeBytes(2, getMessageBytes());
6474 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6475 output.writeBool(3, status_);
6477 getUnknownFields().writeTo(output);
6480 private int memoizedSerializedSize = -1;
6481 public int getSerializedSize() {
6482 int size = memoizedSerializedSize;
6483 if (size != -1) return size;
6486 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6487 size += com.google.protobuf.CodedOutputStream
6488 .computeEnumSize(1, type_.getNumber());
6490 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6491 size += com.google.protobuf.CodedOutputStream
6492 .computeBytesSize(2, getMessageBytes());
6494 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6495 size += com.google.protobuf.CodedOutputStream
6496 .computeBoolSize(3, status_);
6498 size += getUnknownFields().getSerializedSize();
6499 memoizedSerializedSize = size;
6503 private static final long serialVersionUID = 0L;
6505 protected java.lang.Object writeReplace()
6506 throws java.io.ObjectStreamException {
6507 return super.writeReplace();
6510 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6511 com.google.protobuf.ByteString data)
6512 throws com.google.protobuf.InvalidProtocolBufferException {
6513 return PARSER.parseFrom(data);
6515 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6516 com.google.protobuf.ByteString data,
6517 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6518 throws com.google.protobuf.InvalidProtocolBufferException {
6519 return PARSER.parseFrom(data, extensionRegistry);
6521 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
6522 throws com.google.protobuf.InvalidProtocolBufferException {
6523 return PARSER.parseFrom(data);
6525 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6527 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6528 throws com.google.protobuf.InvalidProtocolBufferException {
6529 return PARSER.parseFrom(data, extensionRegistry);
6531 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
6532 throws java.io.IOException {
6533 return PARSER.parseFrom(input);
6535 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6536 java.io.InputStream input,
6537 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6538 throws java.io.IOException {
6539 return PARSER.parseFrom(input, extensionRegistry);
6541 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
6542 throws java.io.IOException {
6543 return PARSER.parseDelimitedFrom(input);
6545 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
6546 java.io.InputStream input,
6547 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6548 throws java.io.IOException {
6549 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6551 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6552 com.google.protobuf.CodedInputStream input)
6553 throws java.io.IOException {
6554 return PARSER.parseFrom(input);
6556 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6557 com.google.protobuf.CodedInputStream input,
6558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6559 throws java.io.IOException {
6560 return PARSER.parseFrom(input, extensionRegistry);
6563 public static Builder newBuilder() { return Builder.create(); }
6564 public Builder newBuilderForType() { return newBuilder(); }
6565 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
6566 return newBuilder().mergeFrom(prototype);
6568 public Builder toBuilder() { return newBuilder(this); }
6571 protected Builder newBuilderForType(
6572 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6573 Builder builder = new Builder(parent);
6577 * Protobuf type {@code openxc.CommandResponse}
6579 public static final class Builder extends
6580 com.google.protobuf.GeneratedMessage.Builder<Builder>
6581 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
6582 public static final com.google.protobuf.Descriptors.Descriptor
6584 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6587 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6588 internalGetFieldAccessorTable() {
6589 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6590 .ensureFieldAccessorsInitialized(
6591 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6594 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
6596 maybeForceBuilderInitialization();
6600 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6602 maybeForceBuilderInitialization();
6604 private void maybeForceBuilderInitialization() {
6605 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6608 private static Builder create() {
6609 return new Builder();
6612 public Builder clear() {
6614 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6615 bitField0_ = (bitField0_ & ~0x00000001);
6617 bitField0_ = (bitField0_ & ~0x00000002);
6619 bitField0_ = (bitField0_ & ~0x00000004);
6623 public Builder clone() {
6624 return create().mergeFrom(buildPartial());
6627 public com.google.protobuf.Descriptors.Descriptor
6628 getDescriptorForType() {
6629 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6632 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
6633 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
6636 public com.openxc.BinaryMessages.CommandResponse build() {
6637 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
6638 if (!result.isInitialized()) {
6639 throw newUninitializedMessageException(result);
6644 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
6645 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
6646 int from_bitField0_ = bitField0_;
6647 int to_bitField0_ = 0;
6648 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6649 to_bitField0_ |= 0x00000001;
6651 result.type_ = type_;
6652 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6653 to_bitField0_ |= 0x00000002;
6655 result.message_ = message_;
6656 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6657 to_bitField0_ |= 0x00000004;
6659 result.status_ = status_;
6660 result.bitField0_ = to_bitField0_;
6665 public Builder mergeFrom(com.google.protobuf.Message other) {
6666 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
6667 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
6669 super.mergeFrom(other);
6674 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
6675 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
6676 if (other.hasType()) {
6677 setType(other.getType());
6679 if (other.hasMessage()) {
6680 bitField0_ |= 0x00000002;
6681 message_ = other.message_;
6684 if (other.hasStatus()) {
6685 setStatus(other.getStatus());
6687 this.mergeUnknownFields(other.getUnknownFields());
6691 public final boolean isInitialized() {
6695 public Builder mergeFrom(
6696 com.google.protobuf.CodedInputStream input,
6697 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6698 throws java.io.IOException {
6699 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
6701 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6702 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6703 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
6706 if (parsedMessage != null) {
6707 mergeFrom(parsedMessage);
6712 private int bitField0_;
6714 // optional .openxc.ControlCommand.Type type = 1;
6715 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6717 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6719 public boolean hasType() {
6720 return ((bitField0_ & 0x00000001) == 0x00000001);
6723 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6725 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6729 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6731 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
6732 if (value == null) {
6733 throw new NullPointerException();
6735 bitField0_ |= 0x00000001;
6741 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6743 public Builder clearType() {
6744 bitField0_ = (bitField0_ & ~0x00000001);
6745 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6750 // optional string message = 2;
6751 private java.lang.Object message_ = "";
6753 * <code>optional string message = 2;</code>
6755 public boolean hasMessage() {
6756 return ((bitField0_ & 0x00000002) == 0x00000002);
6759 * <code>optional string message = 2;</code>
6761 public java.lang.String getMessage() {
6762 java.lang.Object ref = message_;
6763 if (!(ref instanceof java.lang.String)) {
6764 java.lang.String s = ((com.google.protobuf.ByteString) ref)
6769 return (java.lang.String) ref;
6773 * <code>optional string message = 2;</code>
6775 public com.google.protobuf.ByteString
6777 java.lang.Object ref = message_;
6778 if (ref instanceof String) {
6779 com.google.protobuf.ByteString b =
6780 com.google.protobuf.ByteString.copyFromUtf8(
6781 (java.lang.String) ref);
6785 return (com.google.protobuf.ByteString) ref;
6789 * <code>optional string message = 2;</code>
6791 public Builder setMessage(
6792 java.lang.String value) {
6793 if (value == null) {
6794 throw new NullPointerException();
6796 bitField0_ |= 0x00000002;
6802 * <code>optional string message = 2;</code>
6804 public Builder clearMessage() {
6805 bitField0_ = (bitField0_ & ~0x00000002);
6806 message_ = getDefaultInstance().getMessage();
6811 * <code>optional string message = 2;</code>
6813 public Builder setMessageBytes(
6814 com.google.protobuf.ByteString value) {
6815 if (value == null) {
6816 throw new NullPointerException();
6818 bitField0_ |= 0x00000002;
6824 // optional bool status = 3;
6825 private boolean status_ ;
6827 * <code>optional bool status = 3;</code>
6829 public boolean hasStatus() {
6830 return ((bitField0_ & 0x00000004) == 0x00000004);
6833 * <code>optional bool status = 3;</code>
6835 public boolean getStatus() {
6839 * <code>optional bool status = 3;</code>
6841 public Builder setStatus(boolean value) {
6842 bitField0_ |= 0x00000004;
6848 * <code>optional bool status = 3;</code>
6850 public Builder clearStatus() {
6851 bitField0_ = (bitField0_ & ~0x00000004);
6857 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
6861 defaultInstance = new CommandResponse(true);
6862 defaultInstance.initFields();
6865 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
6868 public interface DiagnosticRequestOrBuilder
6869 extends com.google.protobuf.MessageOrBuilder {
6871 // optional int32 bus = 1;
6873 * <code>optional int32 bus = 1;</code>
6877 * <code>optional int32 bus = 1;</code>
6881 // optional uint32 message_id = 2;
6883 * <code>optional uint32 message_id = 2;</code>
6885 boolean hasMessageId();
6887 * <code>optional uint32 message_id = 2;</code>
6891 // optional uint32 mode = 3;
6893 * <code>optional uint32 mode = 3;</code>
6897 * <code>optional uint32 mode = 3;</code>
6901 // optional uint32 pid = 4;
6903 * <code>optional uint32 pid = 4;</code>
6907 * <code>optional uint32 pid = 4;</code>
6911 // optional bytes payload = 5;
6913 * <code>optional bytes payload = 5;</code>
6916 * TODO we are capping this at 8 bytes for now - need to change when we
6917 * support multi-frame responses
6920 boolean hasPayload();
6922 * <code>optional bytes payload = 5;</code>
6925 * TODO we are capping this at 8 bytes for now - need to change when we
6926 * support multi-frame responses
6929 com.google.protobuf.ByteString getPayload();
6931 // optional bool multiple_responses = 6;
6933 * <code>optional bool multiple_responses = 6;</code>
6935 boolean hasMultipleResponses();
6937 * <code>optional bool multiple_responses = 6;</code>
6939 boolean getMultipleResponses();
6941 // optional double frequency = 7;
6943 * <code>optional double frequency = 7;</code>
6945 boolean hasFrequency();
6947 * <code>optional double frequency = 7;</code>
6949 double getFrequency();
6951 // optional string name = 8;
6953 * <code>optional string name = 8;</code>
6957 * <code>optional string name = 8;</code>
6959 java.lang.String getName();
6961 * <code>optional string name = 8;</code>
6963 com.google.protobuf.ByteString
6966 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
6968 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6970 boolean hasDecodedType();
6972 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6974 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
6977 * Protobuf type {@code openxc.DiagnosticRequest}
6979 public static final class DiagnosticRequest extends
6980 com.google.protobuf.GeneratedMessage
6981 implements DiagnosticRequestOrBuilder {
6982 // Use DiagnosticRequest.newBuilder() to construct.
6983 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6985 this.unknownFields = builder.getUnknownFields();
6987 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6989 private static final DiagnosticRequest defaultInstance;
6990 public static DiagnosticRequest getDefaultInstance() {
6991 return defaultInstance;
6994 public DiagnosticRequest getDefaultInstanceForType() {
6995 return defaultInstance;
6998 private final com.google.protobuf.UnknownFieldSet unknownFields;
7000 public final com.google.protobuf.UnknownFieldSet
7001 getUnknownFields() {
7002 return this.unknownFields;
7004 private DiagnosticRequest(
7005 com.google.protobuf.CodedInputStream input,
7006 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7007 throws com.google.protobuf.InvalidProtocolBufferException {
7009 int mutable_bitField0_ = 0;
7010 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7011 com.google.protobuf.UnknownFieldSet.newBuilder();
7013 boolean done = false;
7015 int tag = input.readTag();
7021 if (!parseUnknownField(input, unknownFields,
7022 extensionRegistry, tag)) {
7028 bitField0_ |= 0x00000001;
7029 bus_ = input.readInt32();
7033 bitField0_ |= 0x00000002;
7034 messageId_ = input.readUInt32();
7038 bitField0_ |= 0x00000004;
7039 mode_ = input.readUInt32();
7043 bitField0_ |= 0x00000008;
7044 pid_ = input.readUInt32();
7048 bitField0_ |= 0x00000010;
7049 payload_ = input.readBytes();
7053 bitField0_ |= 0x00000020;
7054 multipleResponses_ = input.readBool();
7058 bitField0_ |= 0x00000040;
7059 frequency_ = input.readDouble();
7063 bitField0_ |= 0x00000080;
7064 name_ = input.readBytes();
7068 int rawValue = input.readEnum();
7069 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
7070 if (value == null) {
7071 unknownFields.mergeVarintField(9, rawValue);
7073 bitField0_ |= 0x00000100;
7074 decodedType_ = value;
7080 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7081 throw e.setUnfinishedMessage(this);
7082 } catch (java.io.IOException e) {
7083 throw new com.google.protobuf.InvalidProtocolBufferException(
7084 e.getMessage()).setUnfinishedMessage(this);
7086 this.unknownFields = unknownFields.build();
7087 makeExtensionsImmutable();
7090 public static final com.google.protobuf.Descriptors.Descriptor
7092 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7095 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7096 internalGetFieldAccessorTable() {
7097 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
7098 .ensureFieldAccessorsInitialized(
7099 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
7102 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
7103 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
7104 public DiagnosticRequest parsePartialFrom(
7105 com.google.protobuf.CodedInputStream input,
7106 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7107 throws com.google.protobuf.InvalidProtocolBufferException {
7108 return new DiagnosticRequest(input, extensionRegistry);
7113 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
7118 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
7120 public enum DecodedType
7121 implements com.google.protobuf.ProtocolMessageEnum {
7123 * <code>NONE = 1;</code>
7127 * <code>OBD2 = 2;</code>
7133 * <code>NONE = 1;</code>
7135 public static final int NONE_VALUE = 1;
7137 * <code>OBD2 = 2;</code>
7139 public static final int OBD2_VALUE = 2;
7142 public final int getNumber() { return value; }
7144 public static DecodedType valueOf(int value) {
7146 case 1: return NONE;
7147 case 2: return OBD2;
7148 default: return null;
7152 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
7153 internalGetValueMap() {
7154 return internalValueMap;
7156 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
7158 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
7159 public DecodedType findValueByNumber(int number) {
7160 return DecodedType.valueOf(number);
7164 public final com.google.protobuf.Descriptors.EnumValueDescriptor
7165 getValueDescriptor() {
7166 return getDescriptor().getValues().get(index);
7168 public final com.google.protobuf.Descriptors.EnumDescriptor
7169 getDescriptorForType() {
7170 return getDescriptor();
7172 public static final com.google.protobuf.Descriptors.EnumDescriptor
7174 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
7177 private static final DecodedType[] VALUES = values();
7179 public static DecodedType valueOf(
7180 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
7181 if (desc.getType() != getDescriptor()) {
7182 throw new java.lang.IllegalArgumentException(
7183 "EnumValueDescriptor is not for this type.");
7185 return VALUES[desc.getIndex()];
7188 private final int index;
7189 private final int value;
7191 private DecodedType(int index, int value) {
7196 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
7199 private int bitField0_;
7200 // optional int32 bus = 1;
7201 public static final int BUS_FIELD_NUMBER = 1;
7204 * <code>optional int32 bus = 1;</code>
7206 public boolean hasBus() {
7207 return ((bitField0_ & 0x00000001) == 0x00000001);
7210 * <code>optional int32 bus = 1;</code>
7212 public int getBus() {
7216 // optional uint32 message_id = 2;
7217 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
7218 private int messageId_;
7220 * <code>optional uint32 message_id = 2;</code>
7222 public boolean hasMessageId() {
7223 return ((bitField0_ & 0x00000002) == 0x00000002);
7226 * <code>optional uint32 message_id = 2;</code>
7228 public int getMessageId() {
7232 // optional uint32 mode = 3;
7233 public static final int MODE_FIELD_NUMBER = 3;
7236 * <code>optional uint32 mode = 3;</code>
7238 public boolean hasMode() {
7239 return ((bitField0_ & 0x00000004) == 0x00000004);
7242 * <code>optional uint32 mode = 3;</code>
7244 public int getMode() {
7248 // optional uint32 pid = 4;
7249 public static final int PID_FIELD_NUMBER = 4;
7252 * <code>optional uint32 pid = 4;</code>
7254 public boolean hasPid() {
7255 return ((bitField0_ & 0x00000008) == 0x00000008);
7258 * <code>optional uint32 pid = 4;</code>
7260 public int getPid() {
7264 // optional bytes payload = 5;
7265 public static final int PAYLOAD_FIELD_NUMBER = 5;
7266 private com.google.protobuf.ByteString payload_;
7268 * <code>optional bytes payload = 5;</code>
7271 * TODO we are capping this at 8 bytes for now - need to change when we
7272 * support multi-frame responses
7275 public boolean hasPayload() {
7276 return ((bitField0_ & 0x00000010) == 0x00000010);
7279 * <code>optional bytes payload = 5;</code>
7282 * TODO we are capping this at 8 bytes for now - need to change when we
7283 * support multi-frame responses
7286 public com.google.protobuf.ByteString getPayload() {
7290 // optional bool multiple_responses = 6;
7291 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
7292 private boolean multipleResponses_;
7294 * <code>optional bool multiple_responses = 6;</code>
7296 public boolean hasMultipleResponses() {
7297 return ((bitField0_ & 0x00000020) == 0x00000020);
7300 * <code>optional bool multiple_responses = 6;</code>
7302 public boolean getMultipleResponses() {
7303 return multipleResponses_;
7306 // optional double frequency = 7;
7307 public static final int FREQUENCY_FIELD_NUMBER = 7;
7308 private double frequency_;
7310 * <code>optional double frequency = 7;</code>
7312 public boolean hasFrequency() {
7313 return ((bitField0_ & 0x00000040) == 0x00000040);
7316 * <code>optional double frequency = 7;</code>
7318 public double getFrequency() {
7322 // optional string name = 8;
7323 public static final int NAME_FIELD_NUMBER = 8;
7324 private java.lang.Object name_;
7326 * <code>optional string name = 8;</code>
7328 public boolean hasName() {
7329 return ((bitField0_ & 0x00000080) == 0x00000080);
7332 * <code>optional string name = 8;</code>
7334 public java.lang.String getName() {
7335 java.lang.Object ref = name_;
7336 if (ref instanceof java.lang.String) {
7337 return (java.lang.String) ref;
7339 com.google.protobuf.ByteString bs =
7340 (com.google.protobuf.ByteString) ref;
7341 java.lang.String s = bs.toStringUtf8();
7342 if (bs.isValidUtf8()) {
7349 * <code>optional string name = 8;</code>
7351 public com.google.protobuf.ByteString
7353 java.lang.Object ref = name_;
7354 if (ref instanceof java.lang.String) {
7355 com.google.protobuf.ByteString b =
7356 com.google.protobuf.ByteString.copyFromUtf8(
7357 (java.lang.String) ref);
7361 return (com.google.protobuf.ByteString) ref;
7365 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
7366 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
7367 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
7369 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7371 public boolean hasDecodedType() {
7372 return ((bitField0_ & 0x00000100) == 0x00000100);
7375 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7377 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
7378 return decodedType_;
7381 private void initFields() {
7386 payload_ = com.google.protobuf.ByteString.EMPTY;
7387 multipleResponses_ = false;
7390 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7392 private byte memoizedIsInitialized = -1;
7393 public final boolean isInitialized() {
7394 byte isInitialized = memoizedIsInitialized;
7395 if (isInitialized != -1) return isInitialized == 1;
7397 memoizedIsInitialized = 1;
7401 public void writeTo(com.google.protobuf.CodedOutputStream output)
7402 throws java.io.IOException {
7403 getSerializedSize();
7404 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7405 output.writeInt32(1, bus_);
7407 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7408 output.writeUInt32(2, messageId_);
7410 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7411 output.writeUInt32(3, mode_);
7413 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7414 output.writeUInt32(4, pid_);
7416 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7417 output.writeBytes(5, payload_);
7419 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7420 output.writeBool(6, multipleResponses_);
7422 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7423 output.writeDouble(7, frequency_);
7425 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7426 output.writeBytes(8, getNameBytes());
7428 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7429 output.writeEnum(9, decodedType_.getNumber());
7431 getUnknownFields().writeTo(output);
7434 private int memoizedSerializedSize = -1;
7435 public int getSerializedSize() {
7436 int size = memoizedSerializedSize;
7437 if (size != -1) return size;
7440 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7441 size += com.google.protobuf.CodedOutputStream
7442 .computeInt32Size(1, bus_);
7444 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7445 size += com.google.protobuf.CodedOutputStream
7446 .computeUInt32Size(2, messageId_);
7448 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7449 size += com.google.protobuf.CodedOutputStream
7450 .computeUInt32Size(3, mode_);
7452 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7453 size += com.google.protobuf.CodedOutputStream
7454 .computeUInt32Size(4, pid_);
7456 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7457 size += com.google.protobuf.CodedOutputStream
7458 .computeBytesSize(5, payload_);
7460 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7461 size += com.google.protobuf.CodedOutputStream
7462 .computeBoolSize(6, multipleResponses_);
7464 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7465 size += com.google.protobuf.CodedOutputStream
7466 .computeDoubleSize(7, frequency_);
7468 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7469 size += com.google.protobuf.CodedOutputStream
7470 .computeBytesSize(8, getNameBytes());
7472 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7473 size += com.google.protobuf.CodedOutputStream
7474 .computeEnumSize(9, decodedType_.getNumber());
7476 size += getUnknownFields().getSerializedSize();
7477 memoizedSerializedSize = size;
7481 private static final long serialVersionUID = 0L;
7483 protected java.lang.Object writeReplace()
7484 throws java.io.ObjectStreamException {
7485 return super.writeReplace();
7488 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7489 com.google.protobuf.ByteString data)
7490 throws com.google.protobuf.InvalidProtocolBufferException {
7491 return PARSER.parseFrom(data);
7493 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7494 com.google.protobuf.ByteString data,
7495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7496 throws com.google.protobuf.InvalidProtocolBufferException {
7497 return PARSER.parseFrom(data, extensionRegistry);
7499 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
7500 throws com.google.protobuf.InvalidProtocolBufferException {
7501 return PARSER.parseFrom(data);
7503 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7505 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7506 throws com.google.protobuf.InvalidProtocolBufferException {
7507 return PARSER.parseFrom(data, extensionRegistry);
7509 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
7510 throws java.io.IOException {
7511 return PARSER.parseFrom(input);
7513 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7514 java.io.InputStream input,
7515 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7516 throws java.io.IOException {
7517 return PARSER.parseFrom(input, extensionRegistry);
7519 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
7520 throws java.io.IOException {
7521 return PARSER.parseDelimitedFrom(input);
7523 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
7524 java.io.InputStream input,
7525 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7526 throws java.io.IOException {
7527 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7529 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7530 com.google.protobuf.CodedInputStream input)
7531 throws java.io.IOException {
7532 return PARSER.parseFrom(input);
7534 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7535 com.google.protobuf.CodedInputStream input,
7536 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7537 throws java.io.IOException {
7538 return PARSER.parseFrom(input, extensionRegistry);
7541 public static Builder newBuilder() { return Builder.create(); }
7542 public Builder newBuilderForType() { return newBuilder(); }
7543 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
7544 return newBuilder().mergeFrom(prototype);
7546 public Builder toBuilder() { return newBuilder(this); }
7549 protected Builder newBuilderForType(
7550 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7551 Builder builder = new Builder(parent);
7555 * Protobuf type {@code openxc.DiagnosticRequest}
7557 public static final class Builder extends
7558 com.google.protobuf.GeneratedMessage.Builder<Builder>
7559 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
7560 public static final com.google.protobuf.Descriptors.Descriptor
7562 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7565 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7566 internalGetFieldAccessorTable() {
7567 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
7568 .ensureFieldAccessorsInitialized(
7569 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
7572 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
7574 maybeForceBuilderInitialization();
7578 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7580 maybeForceBuilderInitialization();
7582 private void maybeForceBuilderInitialization() {
7583 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7586 private static Builder create() {
7587 return new Builder();
7590 public Builder clear() {
7593 bitField0_ = (bitField0_ & ~0x00000001);
7595 bitField0_ = (bitField0_ & ~0x00000002);
7597 bitField0_ = (bitField0_ & ~0x00000004);
7599 bitField0_ = (bitField0_ & ~0x00000008);
7600 payload_ = com.google.protobuf.ByteString.EMPTY;
7601 bitField0_ = (bitField0_ & ~0x00000010);
7602 multipleResponses_ = false;
7603 bitField0_ = (bitField0_ & ~0x00000020);
7605 bitField0_ = (bitField0_ & ~0x00000040);
7607 bitField0_ = (bitField0_ & ~0x00000080);
7608 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7609 bitField0_ = (bitField0_ & ~0x00000100);
7613 public Builder clone() {
7614 return create().mergeFrom(buildPartial());
7617 public com.google.protobuf.Descriptors.Descriptor
7618 getDescriptorForType() {
7619 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7622 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
7623 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
7626 public com.openxc.BinaryMessages.DiagnosticRequest build() {
7627 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
7628 if (!result.isInitialized()) {
7629 throw newUninitializedMessageException(result);
7634 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
7635 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
7636 int from_bitField0_ = bitField0_;
7637 int to_bitField0_ = 0;
7638 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7639 to_bitField0_ |= 0x00000001;
7642 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7643 to_bitField0_ |= 0x00000002;
7645 result.messageId_ = messageId_;
7646 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7647 to_bitField0_ |= 0x00000004;
7649 result.mode_ = mode_;
7650 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7651 to_bitField0_ |= 0x00000008;
7654 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
7655 to_bitField0_ |= 0x00000010;
7657 result.payload_ = payload_;
7658 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
7659 to_bitField0_ |= 0x00000020;
7661 result.multipleResponses_ = multipleResponses_;
7662 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
7663 to_bitField0_ |= 0x00000040;
7665 result.frequency_ = frequency_;
7666 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
7667 to_bitField0_ |= 0x00000080;
7669 result.name_ = name_;
7670 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
7671 to_bitField0_ |= 0x00000100;
7673 result.decodedType_ = decodedType_;
7674 result.bitField0_ = to_bitField0_;
7679 public Builder mergeFrom(com.google.protobuf.Message other) {
7680 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
7681 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
7683 super.mergeFrom(other);
7688 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
7689 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
7690 if (other.hasBus()) {
7691 setBus(other.getBus());
7693 if (other.hasMessageId()) {
7694 setMessageId(other.getMessageId());
7696 if (other.hasMode()) {
7697 setMode(other.getMode());
7699 if (other.hasPid()) {
7700 setPid(other.getPid());
7702 if (other.hasPayload()) {
7703 setPayload(other.getPayload());
7705 if (other.hasMultipleResponses()) {
7706 setMultipleResponses(other.getMultipleResponses());
7708 if (other.hasFrequency()) {
7709 setFrequency(other.getFrequency());
7711 if (other.hasName()) {
7712 bitField0_ |= 0x00000080;
7713 name_ = other.name_;
7716 if (other.hasDecodedType()) {
7717 setDecodedType(other.getDecodedType());
7719 this.mergeUnknownFields(other.getUnknownFields());
7723 public final boolean isInitialized() {
7727 public Builder mergeFrom(
7728 com.google.protobuf.CodedInputStream input,
7729 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7730 throws java.io.IOException {
7731 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
7733 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7734 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7735 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
7738 if (parsedMessage != null) {
7739 mergeFrom(parsedMessage);
7744 private int bitField0_;
7746 // optional int32 bus = 1;
7749 * <code>optional int32 bus = 1;</code>
7751 public boolean hasBus() {
7752 return ((bitField0_ & 0x00000001) == 0x00000001);
7755 * <code>optional int32 bus = 1;</code>
7757 public int getBus() {
7761 * <code>optional int32 bus = 1;</code>
7763 public Builder setBus(int value) {
7764 bitField0_ |= 0x00000001;
7770 * <code>optional int32 bus = 1;</code>
7772 public Builder clearBus() {
7773 bitField0_ = (bitField0_ & ~0x00000001);
7779 // optional uint32 message_id = 2;
7780 private int messageId_ ;
7782 * <code>optional uint32 message_id = 2;</code>
7784 public boolean hasMessageId() {
7785 return ((bitField0_ & 0x00000002) == 0x00000002);
7788 * <code>optional uint32 message_id = 2;</code>
7790 public int getMessageId() {
7794 * <code>optional uint32 message_id = 2;</code>
7796 public Builder setMessageId(int value) {
7797 bitField0_ |= 0x00000002;
7803 * <code>optional uint32 message_id = 2;</code>
7805 public Builder clearMessageId() {
7806 bitField0_ = (bitField0_ & ~0x00000002);
7812 // optional uint32 mode = 3;
7815 * <code>optional uint32 mode = 3;</code>
7817 public boolean hasMode() {
7818 return ((bitField0_ & 0x00000004) == 0x00000004);
7821 * <code>optional uint32 mode = 3;</code>
7823 public int getMode() {
7827 * <code>optional uint32 mode = 3;</code>
7829 public Builder setMode(int value) {
7830 bitField0_ |= 0x00000004;
7836 * <code>optional uint32 mode = 3;</code>
7838 public Builder clearMode() {
7839 bitField0_ = (bitField0_ & ~0x00000004);
7845 // optional uint32 pid = 4;
7848 * <code>optional uint32 pid = 4;</code>
7850 public boolean hasPid() {
7851 return ((bitField0_ & 0x00000008) == 0x00000008);
7854 * <code>optional uint32 pid = 4;</code>
7856 public int getPid() {
7860 * <code>optional uint32 pid = 4;</code>
7862 public Builder setPid(int value) {
7863 bitField0_ |= 0x00000008;
7869 * <code>optional uint32 pid = 4;</code>
7871 public Builder clearPid() {
7872 bitField0_ = (bitField0_ & ~0x00000008);
7878 // optional bytes payload = 5;
7879 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
7881 * <code>optional bytes payload = 5;</code>
7884 * TODO we are capping this at 8 bytes for now - need to change when we
7885 * support multi-frame responses
7888 public boolean hasPayload() {
7889 return ((bitField0_ & 0x00000010) == 0x00000010);
7892 * <code>optional bytes payload = 5;</code>
7895 * TODO we are capping this at 8 bytes for now - need to change when we
7896 * support multi-frame responses
7899 public com.google.protobuf.ByteString getPayload() {
7903 * <code>optional bytes payload = 5;</code>
7906 * TODO we are capping this at 8 bytes for now - need to change when we
7907 * support multi-frame responses
7910 public Builder setPayload(com.google.protobuf.ByteString value) {
7911 if (value == null) {
7912 throw new NullPointerException();
7914 bitField0_ |= 0x00000010;
7920 * <code>optional bytes payload = 5;</code>
7923 * TODO we are capping this at 8 bytes for now - need to change when we
7924 * support multi-frame responses
7927 public Builder clearPayload() {
7928 bitField0_ = (bitField0_ & ~0x00000010);
7929 payload_ = getDefaultInstance().getPayload();
7934 // optional bool multiple_responses = 6;
7935 private boolean multipleResponses_ ;
7937 * <code>optional bool multiple_responses = 6;</code>
7939 public boolean hasMultipleResponses() {
7940 return ((bitField0_ & 0x00000020) == 0x00000020);
7943 * <code>optional bool multiple_responses = 6;</code>
7945 public boolean getMultipleResponses() {
7946 return multipleResponses_;
7949 * <code>optional bool multiple_responses = 6;</code>
7951 public Builder setMultipleResponses(boolean value) {
7952 bitField0_ |= 0x00000020;
7953 multipleResponses_ = value;
7958 * <code>optional bool multiple_responses = 6;</code>
7960 public Builder clearMultipleResponses() {
7961 bitField0_ = (bitField0_ & ~0x00000020);
7962 multipleResponses_ = false;
7967 // optional double frequency = 7;
7968 private double frequency_ ;
7970 * <code>optional double frequency = 7;</code>
7972 public boolean hasFrequency() {
7973 return ((bitField0_ & 0x00000040) == 0x00000040);
7976 * <code>optional double frequency = 7;</code>
7978 public double getFrequency() {
7982 * <code>optional double frequency = 7;</code>
7984 public Builder setFrequency(double value) {
7985 bitField0_ |= 0x00000040;
7991 * <code>optional double frequency = 7;</code>
7993 public Builder clearFrequency() {
7994 bitField0_ = (bitField0_ & ~0x00000040);
8000 // optional string name = 8;
8001 private java.lang.Object name_ = "";
8003 * <code>optional string name = 8;</code>
8005 public boolean hasName() {
8006 return ((bitField0_ & 0x00000080) == 0x00000080);
8009 * <code>optional string name = 8;</code>
8011 public java.lang.String getName() {
8012 java.lang.Object ref = name_;
8013 if (!(ref instanceof java.lang.String)) {
8014 java.lang.String s = ((com.google.protobuf.ByteString) ref)
8019 return (java.lang.String) ref;
8023 * <code>optional string name = 8;</code>
8025 public com.google.protobuf.ByteString
8027 java.lang.Object ref = name_;
8028 if (ref instanceof String) {
8029 com.google.protobuf.ByteString b =
8030 com.google.protobuf.ByteString.copyFromUtf8(
8031 (java.lang.String) ref);
8035 return (com.google.protobuf.ByteString) ref;
8039 * <code>optional string name = 8;</code>
8041 public Builder setName(
8042 java.lang.String value) {
8043 if (value == null) {
8044 throw new NullPointerException();
8046 bitField0_ |= 0x00000080;
8052 * <code>optional string name = 8;</code>
8054 public Builder clearName() {
8055 bitField0_ = (bitField0_ & ~0x00000080);
8056 name_ = getDefaultInstance().getName();
8061 * <code>optional string name = 8;</code>
8063 public Builder setNameBytes(
8064 com.google.protobuf.ByteString value) {
8065 if (value == null) {
8066 throw new NullPointerException();
8068 bitField0_ |= 0x00000080;
8074 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
8075 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
8077 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8079 public boolean hasDecodedType() {
8080 return ((bitField0_ & 0x00000100) == 0x00000100);
8083 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8085 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
8086 return decodedType_;
8089 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8091 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
8092 if (value == null) {
8093 throw new NullPointerException();
8095 bitField0_ |= 0x00000100;
8096 decodedType_ = value;
8101 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
8103 public Builder clearDecodedType() {
8104 bitField0_ = (bitField0_ & ~0x00000100);
8105 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
8110 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
8114 defaultInstance = new DiagnosticRequest(true);
8115 defaultInstance.initFields();
8118 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
8121 public interface DiagnosticResponseOrBuilder
8122 extends com.google.protobuf.MessageOrBuilder {
8124 // optional int32 bus = 1;
8126 * <code>optional int32 bus = 1;</code>
8130 * <code>optional int32 bus = 1;</code>
8134 // optional uint32 message_id = 2;
8136 * <code>optional uint32 message_id = 2;</code>
8138 boolean hasMessageId();
8140 * <code>optional uint32 message_id = 2;</code>
8144 // optional uint32 mode = 3;
8146 * <code>optional uint32 mode = 3;</code>
8150 * <code>optional uint32 mode = 3;</code>
8154 // optional uint32 pid = 4;
8156 * <code>optional uint32 pid = 4;</code>
8160 * <code>optional uint32 pid = 4;</code>
8164 // optional bool success = 5;
8166 * <code>optional bool success = 5;</code>
8168 boolean hasSuccess();
8170 * <code>optional bool success = 5;</code>
8172 boolean getSuccess();
8174 // optional uint32 negative_response_code = 6;
8176 * <code>optional uint32 negative_response_code = 6;</code>
8178 boolean hasNegativeResponseCode();
8180 * <code>optional uint32 negative_response_code = 6;</code>
8182 int getNegativeResponseCode();
8184 // optional bytes payload = 7;
8186 * <code>optional bytes payload = 7;</code>
8189 * TODO we are capping this at 8 bytes for now - need to change when we
8190 * support multi-frame responses
8193 boolean hasPayload();
8195 * <code>optional bytes payload = 7;</code>
8198 * TODO we are capping this at 8 bytes for now - need to change when we
8199 * support multi-frame responses
8202 com.google.protobuf.ByteString getPayload();
8204 // optional double value = 8;
8206 * <code>optional double value = 8;</code>
8210 * <code>optional double value = 8;</code>
8215 * Protobuf type {@code openxc.DiagnosticResponse}
8217 public static final class DiagnosticResponse extends
8218 com.google.protobuf.GeneratedMessage
8219 implements DiagnosticResponseOrBuilder {
8220 // Use DiagnosticResponse.newBuilder() to construct.
8221 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
8223 this.unknownFields = builder.getUnknownFields();
8225 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
8227 private static final DiagnosticResponse defaultInstance;
8228 public static DiagnosticResponse getDefaultInstance() {
8229 return defaultInstance;
8232 public DiagnosticResponse getDefaultInstanceForType() {
8233 return defaultInstance;
8236 private final com.google.protobuf.UnknownFieldSet unknownFields;
8238 public final com.google.protobuf.UnknownFieldSet
8239 getUnknownFields() {
8240 return this.unknownFields;
8242 private DiagnosticResponse(
8243 com.google.protobuf.CodedInputStream input,
8244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8245 throws com.google.protobuf.InvalidProtocolBufferException {
8247 int mutable_bitField0_ = 0;
8248 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8249 com.google.protobuf.UnknownFieldSet.newBuilder();
8251 boolean done = false;
8253 int tag = input.readTag();
8259 if (!parseUnknownField(input, unknownFields,
8260 extensionRegistry, tag)) {
8266 bitField0_ |= 0x00000001;
8267 bus_ = input.readInt32();
8271 bitField0_ |= 0x00000002;
8272 messageId_ = input.readUInt32();
8276 bitField0_ |= 0x00000004;
8277 mode_ = input.readUInt32();
8281 bitField0_ |= 0x00000008;
8282 pid_ = input.readUInt32();
8286 bitField0_ |= 0x00000010;
8287 success_ = input.readBool();
8291 bitField0_ |= 0x00000020;
8292 negativeResponseCode_ = input.readUInt32();
8296 bitField0_ |= 0x00000040;
8297 payload_ = input.readBytes();
8301 bitField0_ |= 0x00000080;
8302 value_ = input.readDouble();
8307 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8308 throw e.setUnfinishedMessage(this);
8309 } catch (java.io.IOException e) {
8310 throw new com.google.protobuf.InvalidProtocolBufferException(
8311 e.getMessage()).setUnfinishedMessage(this);
8313 this.unknownFields = unknownFields.build();
8314 makeExtensionsImmutable();
8317 public static final com.google.protobuf.Descriptors.Descriptor
8319 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8322 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8323 internalGetFieldAccessorTable() {
8324 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8325 .ensureFieldAccessorsInitialized(
8326 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8329 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
8330 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
8331 public DiagnosticResponse parsePartialFrom(
8332 com.google.protobuf.CodedInputStream input,
8333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8334 throws com.google.protobuf.InvalidProtocolBufferException {
8335 return new DiagnosticResponse(input, extensionRegistry);
8340 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
8344 private int bitField0_;
8345 // optional int32 bus = 1;
8346 public static final int BUS_FIELD_NUMBER = 1;
8349 * <code>optional int32 bus = 1;</code>
8351 public boolean hasBus() {
8352 return ((bitField0_ & 0x00000001) == 0x00000001);
8355 * <code>optional int32 bus = 1;</code>
8357 public int getBus() {
8361 // optional uint32 message_id = 2;
8362 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8363 private int messageId_;
8365 * <code>optional uint32 message_id = 2;</code>
8367 public boolean hasMessageId() {
8368 return ((bitField0_ & 0x00000002) == 0x00000002);
8371 * <code>optional uint32 message_id = 2;</code>
8373 public int getMessageId() {
8377 // optional uint32 mode = 3;
8378 public static final int MODE_FIELD_NUMBER = 3;
8381 * <code>optional uint32 mode = 3;</code>
8383 public boolean hasMode() {
8384 return ((bitField0_ & 0x00000004) == 0x00000004);
8387 * <code>optional uint32 mode = 3;</code>
8389 public int getMode() {
8393 // optional uint32 pid = 4;
8394 public static final int PID_FIELD_NUMBER = 4;
8397 * <code>optional uint32 pid = 4;</code>
8399 public boolean hasPid() {
8400 return ((bitField0_ & 0x00000008) == 0x00000008);
8403 * <code>optional uint32 pid = 4;</code>
8405 public int getPid() {
8409 // optional bool success = 5;
8410 public static final int SUCCESS_FIELD_NUMBER = 5;
8411 private boolean success_;
8413 * <code>optional bool success = 5;</code>
8415 public boolean hasSuccess() {
8416 return ((bitField0_ & 0x00000010) == 0x00000010);
8419 * <code>optional bool success = 5;</code>
8421 public boolean getSuccess() {
8425 // optional uint32 negative_response_code = 6;
8426 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
8427 private int negativeResponseCode_;
8429 * <code>optional uint32 negative_response_code = 6;</code>
8431 public boolean hasNegativeResponseCode() {
8432 return ((bitField0_ & 0x00000020) == 0x00000020);
8435 * <code>optional uint32 negative_response_code = 6;</code>
8437 public int getNegativeResponseCode() {
8438 return negativeResponseCode_;
8441 // optional bytes payload = 7;
8442 public static final int PAYLOAD_FIELD_NUMBER = 7;
8443 private com.google.protobuf.ByteString payload_;
8445 * <code>optional bytes payload = 7;</code>
8448 * TODO we are capping this at 8 bytes for now - need to change when we
8449 * support multi-frame responses
8452 public boolean hasPayload() {
8453 return ((bitField0_ & 0x00000040) == 0x00000040);
8456 * <code>optional bytes payload = 7;</code>
8459 * TODO we are capping this at 8 bytes for now - need to change when we
8460 * support multi-frame responses
8463 public com.google.protobuf.ByteString getPayload() {
8467 // optional double value = 8;
8468 public static final int VALUE_FIELD_NUMBER = 8;
8469 private double value_;
8471 * <code>optional double value = 8;</code>
8473 public boolean hasValue() {
8474 return ((bitField0_ & 0x00000080) == 0x00000080);
8477 * <code>optional double value = 8;</code>
8479 public double getValue() {
8483 private void initFields() {
8489 negativeResponseCode_ = 0;
8490 payload_ = com.google.protobuf.ByteString.EMPTY;
8493 private byte memoizedIsInitialized = -1;
8494 public final boolean isInitialized() {
8495 byte isInitialized = memoizedIsInitialized;
8496 if (isInitialized != -1) return isInitialized == 1;
8498 memoizedIsInitialized = 1;
8502 public void writeTo(com.google.protobuf.CodedOutputStream output)
8503 throws java.io.IOException {
8504 getSerializedSize();
8505 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8506 output.writeInt32(1, bus_);
8508 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8509 output.writeUInt32(2, messageId_);
8511 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8512 output.writeUInt32(3, mode_);
8514 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8515 output.writeUInt32(4, pid_);
8517 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8518 output.writeBool(5, success_);
8520 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8521 output.writeUInt32(6, negativeResponseCode_);
8523 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8524 output.writeBytes(7, payload_);
8526 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8527 output.writeDouble(8, value_);
8529 getUnknownFields().writeTo(output);
8532 private int memoizedSerializedSize = -1;
8533 public int getSerializedSize() {
8534 int size = memoizedSerializedSize;
8535 if (size != -1) return size;
8538 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8539 size += com.google.protobuf.CodedOutputStream
8540 .computeInt32Size(1, bus_);
8542 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8543 size += com.google.protobuf.CodedOutputStream
8544 .computeUInt32Size(2, messageId_);
8546 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8547 size += com.google.protobuf.CodedOutputStream
8548 .computeUInt32Size(3, mode_);
8550 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8551 size += com.google.protobuf.CodedOutputStream
8552 .computeUInt32Size(4, pid_);
8554 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8555 size += com.google.protobuf.CodedOutputStream
8556 .computeBoolSize(5, success_);
8558 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8559 size += com.google.protobuf.CodedOutputStream
8560 .computeUInt32Size(6, negativeResponseCode_);
8562 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8563 size += com.google.protobuf.CodedOutputStream
8564 .computeBytesSize(7, payload_);
8566 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8567 size += com.google.protobuf.CodedOutputStream
8568 .computeDoubleSize(8, value_);
8570 size += getUnknownFields().getSerializedSize();
8571 memoizedSerializedSize = size;
8575 private static final long serialVersionUID = 0L;
8577 protected java.lang.Object writeReplace()
8578 throws java.io.ObjectStreamException {
8579 return super.writeReplace();
8582 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8583 com.google.protobuf.ByteString data)
8584 throws com.google.protobuf.InvalidProtocolBufferException {
8585 return PARSER.parseFrom(data);
8587 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8588 com.google.protobuf.ByteString data,
8589 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8590 throws com.google.protobuf.InvalidProtocolBufferException {
8591 return PARSER.parseFrom(data, extensionRegistry);
8593 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
8594 throws com.google.protobuf.InvalidProtocolBufferException {
8595 return PARSER.parseFrom(data);
8597 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8599 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8600 throws com.google.protobuf.InvalidProtocolBufferException {
8601 return PARSER.parseFrom(data, extensionRegistry);
8603 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
8604 throws java.io.IOException {
8605 return PARSER.parseFrom(input);
8607 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8608 java.io.InputStream input,
8609 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8610 throws java.io.IOException {
8611 return PARSER.parseFrom(input, extensionRegistry);
8613 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
8614 throws java.io.IOException {
8615 return PARSER.parseDelimitedFrom(input);
8617 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
8618 java.io.InputStream input,
8619 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8620 throws java.io.IOException {
8621 return PARSER.parseDelimitedFrom(input, extensionRegistry);
8623 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8624 com.google.protobuf.CodedInputStream input)
8625 throws java.io.IOException {
8626 return PARSER.parseFrom(input);
8628 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8629 com.google.protobuf.CodedInputStream input,
8630 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8631 throws java.io.IOException {
8632 return PARSER.parseFrom(input, extensionRegistry);
8635 public static Builder newBuilder() { return Builder.create(); }
8636 public Builder newBuilderForType() { return newBuilder(); }
8637 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
8638 return newBuilder().mergeFrom(prototype);
8640 public Builder toBuilder() { return newBuilder(this); }
8643 protected Builder newBuilderForType(
8644 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8645 Builder builder = new Builder(parent);
8649 * Protobuf type {@code openxc.DiagnosticResponse}
8651 public static final class Builder extends
8652 com.google.protobuf.GeneratedMessage.Builder<Builder>
8653 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
8654 public static final com.google.protobuf.Descriptors.Descriptor
8656 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8659 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8660 internalGetFieldAccessorTable() {
8661 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8662 .ensureFieldAccessorsInitialized(
8663 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8666 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
8668 maybeForceBuilderInitialization();
8672 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8674 maybeForceBuilderInitialization();
8676 private void maybeForceBuilderInitialization() {
8677 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8680 private static Builder create() {
8681 return new Builder();
8684 public Builder clear() {
8687 bitField0_ = (bitField0_ & ~0x00000001);
8689 bitField0_ = (bitField0_ & ~0x00000002);
8691 bitField0_ = (bitField0_ & ~0x00000004);
8693 bitField0_ = (bitField0_ & ~0x00000008);
8695 bitField0_ = (bitField0_ & ~0x00000010);
8696 negativeResponseCode_ = 0;
8697 bitField0_ = (bitField0_ & ~0x00000020);
8698 payload_ = com.google.protobuf.ByteString.EMPTY;
8699 bitField0_ = (bitField0_ & ~0x00000040);
8701 bitField0_ = (bitField0_ & ~0x00000080);
8705 public Builder clone() {
8706 return create().mergeFrom(buildPartial());
8709 public com.google.protobuf.Descriptors.Descriptor
8710 getDescriptorForType() {
8711 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8714 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
8715 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
8718 public com.openxc.BinaryMessages.DiagnosticResponse build() {
8719 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
8720 if (!result.isInitialized()) {
8721 throw newUninitializedMessageException(result);
8726 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
8727 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
8728 int from_bitField0_ = bitField0_;
8729 int to_bitField0_ = 0;
8730 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8731 to_bitField0_ |= 0x00000001;
8734 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8735 to_bitField0_ |= 0x00000002;
8737 result.messageId_ = messageId_;
8738 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8739 to_bitField0_ |= 0x00000004;
8741 result.mode_ = mode_;
8742 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
8743 to_bitField0_ |= 0x00000008;
8746 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
8747 to_bitField0_ |= 0x00000010;
8749 result.success_ = success_;
8750 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
8751 to_bitField0_ |= 0x00000020;
8753 result.negativeResponseCode_ = negativeResponseCode_;
8754 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
8755 to_bitField0_ |= 0x00000040;
8757 result.payload_ = payload_;
8758 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
8759 to_bitField0_ |= 0x00000080;
8761 result.value_ = value_;
8762 result.bitField0_ = to_bitField0_;
8767 public Builder mergeFrom(com.google.protobuf.Message other) {
8768 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
8769 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
8771 super.mergeFrom(other);
8776 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
8777 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
8778 if (other.hasBus()) {
8779 setBus(other.getBus());
8781 if (other.hasMessageId()) {
8782 setMessageId(other.getMessageId());
8784 if (other.hasMode()) {
8785 setMode(other.getMode());
8787 if (other.hasPid()) {
8788 setPid(other.getPid());
8790 if (other.hasSuccess()) {
8791 setSuccess(other.getSuccess());
8793 if (other.hasNegativeResponseCode()) {
8794 setNegativeResponseCode(other.getNegativeResponseCode());
8796 if (other.hasPayload()) {
8797 setPayload(other.getPayload());
8799 if (other.hasValue()) {
8800 setValue(other.getValue());
8802 this.mergeUnknownFields(other.getUnknownFields());
8806 public final boolean isInitialized() {
8810 public Builder mergeFrom(
8811 com.google.protobuf.CodedInputStream input,
8812 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8813 throws java.io.IOException {
8814 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
8816 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
8817 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8818 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
8821 if (parsedMessage != null) {
8822 mergeFrom(parsedMessage);
8827 private int bitField0_;
8829 // optional int32 bus = 1;
8832 * <code>optional int32 bus = 1;</code>
8834 public boolean hasBus() {
8835 return ((bitField0_ & 0x00000001) == 0x00000001);
8838 * <code>optional int32 bus = 1;</code>
8840 public int getBus() {
8844 * <code>optional int32 bus = 1;</code>
8846 public Builder setBus(int value) {
8847 bitField0_ |= 0x00000001;
8853 * <code>optional int32 bus = 1;</code>
8855 public Builder clearBus() {
8856 bitField0_ = (bitField0_ & ~0x00000001);
8862 // optional uint32 message_id = 2;
8863 private int messageId_ ;
8865 * <code>optional uint32 message_id = 2;</code>
8867 public boolean hasMessageId() {
8868 return ((bitField0_ & 0x00000002) == 0x00000002);
8871 * <code>optional uint32 message_id = 2;</code>
8873 public int getMessageId() {
8877 * <code>optional uint32 message_id = 2;</code>
8879 public Builder setMessageId(int value) {
8880 bitField0_ |= 0x00000002;
8886 * <code>optional uint32 message_id = 2;</code>
8888 public Builder clearMessageId() {
8889 bitField0_ = (bitField0_ & ~0x00000002);
8895 // optional uint32 mode = 3;
8898 * <code>optional uint32 mode = 3;</code>
8900 public boolean hasMode() {
8901 return ((bitField0_ & 0x00000004) == 0x00000004);
8904 * <code>optional uint32 mode = 3;</code>
8906 public int getMode() {
8910 * <code>optional uint32 mode = 3;</code>
8912 public Builder setMode(int value) {
8913 bitField0_ |= 0x00000004;
8919 * <code>optional uint32 mode = 3;</code>
8921 public Builder clearMode() {
8922 bitField0_ = (bitField0_ & ~0x00000004);
8928 // optional uint32 pid = 4;
8931 * <code>optional uint32 pid = 4;</code>
8933 public boolean hasPid() {
8934 return ((bitField0_ & 0x00000008) == 0x00000008);
8937 * <code>optional uint32 pid = 4;</code>
8939 public int getPid() {
8943 * <code>optional uint32 pid = 4;</code>
8945 public Builder setPid(int value) {
8946 bitField0_ |= 0x00000008;
8952 * <code>optional uint32 pid = 4;</code>
8954 public Builder clearPid() {
8955 bitField0_ = (bitField0_ & ~0x00000008);
8961 // optional bool success = 5;
8962 private boolean success_ ;
8964 * <code>optional bool success = 5;</code>
8966 public boolean hasSuccess() {
8967 return ((bitField0_ & 0x00000010) == 0x00000010);
8970 * <code>optional bool success = 5;</code>
8972 public boolean getSuccess() {
8976 * <code>optional bool success = 5;</code>
8978 public Builder setSuccess(boolean value) {
8979 bitField0_ |= 0x00000010;
8985 * <code>optional bool success = 5;</code>
8987 public Builder clearSuccess() {
8988 bitField0_ = (bitField0_ & ~0x00000010);
8994 // optional uint32 negative_response_code = 6;
8995 private int negativeResponseCode_ ;
8997 * <code>optional uint32 negative_response_code = 6;</code>
8999 public boolean hasNegativeResponseCode() {
9000 return ((bitField0_ & 0x00000020) == 0x00000020);
9003 * <code>optional uint32 negative_response_code = 6;</code>
9005 public int getNegativeResponseCode() {
9006 return negativeResponseCode_;
9009 * <code>optional uint32 negative_response_code = 6;</code>
9011 public Builder setNegativeResponseCode(int value) {
9012 bitField0_ |= 0x00000020;
9013 negativeResponseCode_ = value;
9018 * <code>optional uint32 negative_response_code = 6;</code>
9020 public Builder clearNegativeResponseCode() {
9021 bitField0_ = (bitField0_ & ~0x00000020);
9022 negativeResponseCode_ = 0;
9027 // optional bytes payload = 7;
9028 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
9030 * <code>optional bytes payload = 7;</code>
9033 * TODO we are capping this at 8 bytes for now - need to change when we
9034 * support multi-frame responses
9037 public boolean hasPayload() {
9038 return ((bitField0_ & 0x00000040) == 0x00000040);
9041 * <code>optional bytes payload = 7;</code>
9044 * TODO we are capping this at 8 bytes for now - need to change when we
9045 * support multi-frame responses
9048 public com.google.protobuf.ByteString getPayload() {
9052 * <code>optional bytes payload = 7;</code>
9055 * TODO we are capping this at 8 bytes for now - need to change when we
9056 * support multi-frame responses
9059 public Builder setPayload(com.google.protobuf.ByteString value) {
9060 if (value == null) {
9061 throw new NullPointerException();
9063 bitField0_ |= 0x00000040;
9069 * <code>optional bytes payload = 7;</code>
9072 * TODO we are capping this at 8 bytes for now - need to change when we
9073 * support multi-frame responses
9076 public Builder clearPayload() {
9077 bitField0_ = (bitField0_ & ~0x00000040);
9078 payload_ = getDefaultInstance().getPayload();
9083 // optional double value = 8;
9084 private double value_ ;
9086 * <code>optional double value = 8;</code>
9088 public boolean hasValue() {
9089 return ((bitField0_ & 0x00000080) == 0x00000080);
9092 * <code>optional double value = 8;</code>
9094 public double getValue() {
9098 * <code>optional double value = 8;</code>
9100 public Builder setValue(double value) {
9101 bitField0_ |= 0x00000080;
9107 * <code>optional double value = 8;</code>
9109 public Builder clearValue() {
9110 bitField0_ = (bitField0_ & ~0x00000080);
9116 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
9120 defaultInstance = new DiagnosticResponse(true);
9121 defaultInstance.initFields();
9124 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
9127 public interface DynamicFieldOrBuilder
9128 extends com.google.protobuf.MessageOrBuilder {
9130 // optional .openxc.DynamicField.Type type = 1;
9132 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9136 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9138 com.openxc.BinaryMessages.DynamicField.Type getType();
9140 // optional string string_value = 2;
9142 * <code>optional string string_value = 2;</code>
9144 boolean hasStringValue();
9146 * <code>optional string string_value = 2;</code>
9148 java.lang.String getStringValue();
9150 * <code>optional string string_value = 2;</code>
9152 com.google.protobuf.ByteString
9153 getStringValueBytes();
9155 // optional double numeric_value = 3;
9157 * <code>optional double numeric_value = 3;</code>
9159 boolean hasNumericValue();
9161 * <code>optional double numeric_value = 3;</code>
9163 double getNumericValue();
9165 // optional bool boolean_value = 4;
9167 * <code>optional bool boolean_value = 4;</code>
9169 boolean hasBooleanValue();
9171 * <code>optional bool boolean_value = 4;</code>
9173 boolean getBooleanValue();
9176 * Protobuf type {@code openxc.DynamicField}
9178 public static final class DynamicField extends
9179 com.google.protobuf.GeneratedMessage
9180 implements DynamicFieldOrBuilder {
9181 // Use DynamicField.newBuilder() to construct.
9182 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9184 this.unknownFields = builder.getUnknownFields();
9186 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
9188 private static final DynamicField defaultInstance;
9189 public static DynamicField getDefaultInstance() {
9190 return defaultInstance;
9193 public DynamicField getDefaultInstanceForType() {
9194 return defaultInstance;
9197 private final com.google.protobuf.UnknownFieldSet unknownFields;
9199 public final com.google.protobuf.UnknownFieldSet
9200 getUnknownFields() {
9201 return this.unknownFields;
9203 private DynamicField(
9204 com.google.protobuf.CodedInputStream input,
9205 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9206 throws com.google.protobuf.InvalidProtocolBufferException {
9208 int mutable_bitField0_ = 0;
9209 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9210 com.google.protobuf.UnknownFieldSet.newBuilder();
9212 boolean done = false;
9214 int tag = input.readTag();
9220 if (!parseUnknownField(input, unknownFields,
9221 extensionRegistry, tag)) {
9227 int rawValue = input.readEnum();
9228 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
9229 if (value == null) {
9230 unknownFields.mergeVarintField(1, rawValue);
9232 bitField0_ |= 0x00000001;
9238 bitField0_ |= 0x00000002;
9239 stringValue_ = input.readBytes();
9243 bitField0_ |= 0x00000004;
9244 numericValue_ = input.readDouble();
9248 bitField0_ |= 0x00000008;
9249 booleanValue_ = input.readBool();
9254 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9255 throw e.setUnfinishedMessage(this);
9256 } catch (java.io.IOException e) {
9257 throw new com.google.protobuf.InvalidProtocolBufferException(
9258 e.getMessage()).setUnfinishedMessage(this);
9260 this.unknownFields = unknownFields.build();
9261 makeExtensionsImmutable();
9264 public static final com.google.protobuf.Descriptors.Descriptor
9266 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9269 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9270 internalGetFieldAccessorTable() {
9271 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9272 .ensureFieldAccessorsInitialized(
9273 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9276 public static com.google.protobuf.Parser<DynamicField> PARSER =
9277 new com.google.protobuf.AbstractParser<DynamicField>() {
9278 public DynamicField parsePartialFrom(
9279 com.google.protobuf.CodedInputStream input,
9280 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9281 throws com.google.protobuf.InvalidProtocolBufferException {
9282 return new DynamicField(input, extensionRegistry);
9287 public com.google.protobuf.Parser<DynamicField> getParserForType() {
9292 * Protobuf enum {@code openxc.DynamicField.Type}
9295 implements com.google.protobuf.ProtocolMessageEnum {
9297 * <code>STRING = 1;</code>
9301 * <code>NUM = 2;</code>
9305 * <code>BOOL = 3;</code>
9311 * <code>STRING = 1;</code>
9313 public static final int STRING_VALUE = 1;
9315 * <code>NUM = 2;</code>
9317 public static final int NUM_VALUE = 2;
9319 * <code>BOOL = 3;</code>
9321 public static final int BOOL_VALUE = 3;
9324 public final int getNumber() { return value; }
9326 public static Type valueOf(int value) {
9328 case 1: return STRING;
9330 case 3: return BOOL;
9331 default: return null;
9335 public static com.google.protobuf.Internal.EnumLiteMap<Type>
9336 internalGetValueMap() {
9337 return internalValueMap;
9339 private static com.google.protobuf.Internal.EnumLiteMap<Type>
9341 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
9342 public Type findValueByNumber(int number) {
9343 return Type.valueOf(number);
9347 public final com.google.protobuf.Descriptors.EnumValueDescriptor
9348 getValueDescriptor() {
9349 return getDescriptor().getValues().get(index);
9351 public final com.google.protobuf.Descriptors.EnumDescriptor
9352 getDescriptorForType() {
9353 return getDescriptor();
9355 public static final com.google.protobuf.Descriptors.EnumDescriptor
9357 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
9360 private static final Type[] VALUES = values();
9362 public static Type valueOf(
9363 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
9364 if (desc.getType() != getDescriptor()) {
9365 throw new java.lang.IllegalArgumentException(
9366 "EnumValueDescriptor is not for this type.");
9368 return VALUES[desc.getIndex()];
9371 private final int index;
9372 private final int value;
9374 private Type(int index, int value) {
9379 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
9382 private int bitField0_;
9383 // optional .openxc.DynamicField.Type type = 1;
9384 public static final int TYPE_FIELD_NUMBER = 1;
9385 private com.openxc.BinaryMessages.DynamicField.Type type_;
9387 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9389 public boolean hasType() {
9390 return ((bitField0_ & 0x00000001) == 0x00000001);
9393 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9395 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9399 // optional string string_value = 2;
9400 public static final int STRING_VALUE_FIELD_NUMBER = 2;
9401 private java.lang.Object stringValue_;
9403 * <code>optional string string_value = 2;</code>
9405 public boolean hasStringValue() {
9406 return ((bitField0_ & 0x00000002) == 0x00000002);
9409 * <code>optional string string_value = 2;</code>
9411 public java.lang.String getStringValue() {
9412 java.lang.Object ref = stringValue_;
9413 if (ref instanceof java.lang.String) {
9414 return (java.lang.String) ref;
9416 com.google.protobuf.ByteString bs =
9417 (com.google.protobuf.ByteString) ref;
9418 java.lang.String s = bs.toStringUtf8();
9419 if (bs.isValidUtf8()) {
9426 * <code>optional string string_value = 2;</code>
9428 public com.google.protobuf.ByteString
9429 getStringValueBytes() {
9430 java.lang.Object ref = stringValue_;
9431 if (ref instanceof java.lang.String) {
9432 com.google.protobuf.ByteString b =
9433 com.google.protobuf.ByteString.copyFromUtf8(
9434 (java.lang.String) ref);
9438 return (com.google.protobuf.ByteString) ref;
9442 // optional double numeric_value = 3;
9443 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
9444 private double numericValue_;
9446 * <code>optional double numeric_value = 3;</code>
9448 public boolean hasNumericValue() {
9449 return ((bitField0_ & 0x00000004) == 0x00000004);
9452 * <code>optional double numeric_value = 3;</code>
9454 public double getNumericValue() {
9455 return numericValue_;
9458 // optional bool boolean_value = 4;
9459 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
9460 private boolean booleanValue_;
9462 * <code>optional bool boolean_value = 4;</code>
9464 public boolean hasBooleanValue() {
9465 return ((bitField0_ & 0x00000008) == 0x00000008);
9468 * <code>optional bool boolean_value = 4;</code>
9470 public boolean getBooleanValue() {
9471 return booleanValue_;
9474 private void initFields() {
9475 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9478 booleanValue_ = false;
9480 private byte memoizedIsInitialized = -1;
9481 public final boolean isInitialized() {
9482 byte isInitialized = memoizedIsInitialized;
9483 if (isInitialized != -1) return isInitialized == 1;
9485 memoizedIsInitialized = 1;
9489 public void writeTo(com.google.protobuf.CodedOutputStream output)
9490 throws java.io.IOException {
9491 getSerializedSize();
9492 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9493 output.writeEnum(1, type_.getNumber());
9495 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9496 output.writeBytes(2, getStringValueBytes());
9498 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9499 output.writeDouble(3, numericValue_);
9501 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9502 output.writeBool(4, booleanValue_);
9504 getUnknownFields().writeTo(output);
9507 private int memoizedSerializedSize = -1;
9508 public int getSerializedSize() {
9509 int size = memoizedSerializedSize;
9510 if (size != -1) return size;
9513 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9514 size += com.google.protobuf.CodedOutputStream
9515 .computeEnumSize(1, type_.getNumber());
9517 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9518 size += com.google.protobuf.CodedOutputStream
9519 .computeBytesSize(2, getStringValueBytes());
9521 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9522 size += com.google.protobuf.CodedOutputStream
9523 .computeDoubleSize(3, numericValue_);
9525 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9526 size += com.google.protobuf.CodedOutputStream
9527 .computeBoolSize(4, booleanValue_);
9529 size += getUnknownFields().getSerializedSize();
9530 memoizedSerializedSize = size;
9534 private static final long serialVersionUID = 0L;
9536 protected java.lang.Object writeReplace()
9537 throws java.io.ObjectStreamException {
9538 return super.writeReplace();
9541 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9542 com.google.protobuf.ByteString data)
9543 throws com.google.protobuf.InvalidProtocolBufferException {
9544 return PARSER.parseFrom(data);
9546 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9547 com.google.protobuf.ByteString data,
9548 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9549 throws com.google.protobuf.InvalidProtocolBufferException {
9550 return PARSER.parseFrom(data, extensionRegistry);
9552 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
9553 throws com.google.protobuf.InvalidProtocolBufferException {
9554 return PARSER.parseFrom(data);
9556 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9559 throws com.google.protobuf.InvalidProtocolBufferException {
9560 return PARSER.parseFrom(data, extensionRegistry);
9562 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
9563 throws java.io.IOException {
9564 return PARSER.parseFrom(input);
9566 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9567 java.io.InputStream input,
9568 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9569 throws java.io.IOException {
9570 return PARSER.parseFrom(input, extensionRegistry);
9572 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
9573 throws java.io.IOException {
9574 return PARSER.parseDelimitedFrom(input);
9576 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
9577 java.io.InputStream input,
9578 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9579 throws java.io.IOException {
9580 return PARSER.parseDelimitedFrom(input, extensionRegistry);
9582 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9583 com.google.protobuf.CodedInputStream input)
9584 throws java.io.IOException {
9585 return PARSER.parseFrom(input);
9587 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9588 com.google.protobuf.CodedInputStream input,
9589 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9590 throws java.io.IOException {
9591 return PARSER.parseFrom(input, extensionRegistry);
9594 public static Builder newBuilder() { return Builder.create(); }
9595 public Builder newBuilderForType() { return newBuilder(); }
9596 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
9597 return newBuilder().mergeFrom(prototype);
9599 public Builder toBuilder() { return newBuilder(this); }
9602 protected Builder newBuilderForType(
9603 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9604 Builder builder = new Builder(parent);
9608 * Protobuf type {@code openxc.DynamicField}
9610 public static final class Builder extends
9611 com.google.protobuf.GeneratedMessage.Builder<Builder>
9612 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
9613 public static final com.google.protobuf.Descriptors.Descriptor
9615 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9618 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9619 internalGetFieldAccessorTable() {
9620 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9621 .ensureFieldAccessorsInitialized(
9622 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9625 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
9627 maybeForceBuilderInitialization();
9631 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9633 maybeForceBuilderInitialization();
9635 private void maybeForceBuilderInitialization() {
9636 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9639 private static Builder create() {
9640 return new Builder();
9643 public Builder clear() {
9645 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9646 bitField0_ = (bitField0_ & ~0x00000001);
9648 bitField0_ = (bitField0_ & ~0x00000002);
9650 bitField0_ = (bitField0_ & ~0x00000004);
9651 booleanValue_ = false;
9652 bitField0_ = (bitField0_ & ~0x00000008);
9656 public Builder clone() {
9657 return create().mergeFrom(buildPartial());
9660 public com.google.protobuf.Descriptors.Descriptor
9661 getDescriptorForType() {
9662 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9665 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
9666 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9669 public com.openxc.BinaryMessages.DynamicField build() {
9670 com.openxc.BinaryMessages.DynamicField result = buildPartial();
9671 if (!result.isInitialized()) {
9672 throw newUninitializedMessageException(result);
9677 public com.openxc.BinaryMessages.DynamicField buildPartial() {
9678 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
9679 int from_bitField0_ = bitField0_;
9680 int to_bitField0_ = 0;
9681 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9682 to_bitField0_ |= 0x00000001;
9684 result.type_ = type_;
9685 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9686 to_bitField0_ |= 0x00000002;
9688 result.stringValue_ = stringValue_;
9689 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9690 to_bitField0_ |= 0x00000004;
9692 result.numericValue_ = numericValue_;
9693 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9694 to_bitField0_ |= 0x00000008;
9696 result.booleanValue_ = booleanValue_;
9697 result.bitField0_ = to_bitField0_;
9702 public Builder mergeFrom(com.google.protobuf.Message other) {
9703 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
9704 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
9706 super.mergeFrom(other);
9711 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
9712 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
9713 if (other.hasType()) {
9714 setType(other.getType());
9716 if (other.hasStringValue()) {
9717 bitField0_ |= 0x00000002;
9718 stringValue_ = other.stringValue_;
9721 if (other.hasNumericValue()) {
9722 setNumericValue(other.getNumericValue());
9724 if (other.hasBooleanValue()) {
9725 setBooleanValue(other.getBooleanValue());
9727 this.mergeUnknownFields(other.getUnknownFields());
9731 public final boolean isInitialized() {
9735 public Builder mergeFrom(
9736 com.google.protobuf.CodedInputStream input,
9737 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9738 throws java.io.IOException {
9739 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
9741 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
9742 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9743 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
9746 if (parsedMessage != null) {
9747 mergeFrom(parsedMessage);
9752 private int bitField0_;
9754 // optional .openxc.DynamicField.Type type = 1;
9755 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9757 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9759 public boolean hasType() {
9760 return ((bitField0_ & 0x00000001) == 0x00000001);
9763 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9765 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9769 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9771 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
9772 if (value == null) {
9773 throw new NullPointerException();
9775 bitField0_ |= 0x00000001;
9781 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9783 public Builder clearType() {
9784 bitField0_ = (bitField0_ & ~0x00000001);
9785 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9790 // optional string string_value = 2;
9791 private java.lang.Object stringValue_ = "";
9793 * <code>optional string string_value = 2;</code>
9795 public boolean hasStringValue() {
9796 return ((bitField0_ & 0x00000002) == 0x00000002);
9799 * <code>optional string string_value = 2;</code>
9801 public java.lang.String getStringValue() {
9802 java.lang.Object ref = stringValue_;
9803 if (!(ref instanceof java.lang.String)) {
9804 java.lang.String s = ((com.google.protobuf.ByteString) ref)
9809 return (java.lang.String) ref;
9813 * <code>optional string string_value = 2;</code>
9815 public com.google.protobuf.ByteString
9816 getStringValueBytes() {
9817 java.lang.Object ref = stringValue_;
9818 if (ref instanceof String) {
9819 com.google.protobuf.ByteString b =
9820 com.google.protobuf.ByteString.copyFromUtf8(
9821 (java.lang.String) ref);
9825 return (com.google.protobuf.ByteString) ref;
9829 * <code>optional string string_value = 2;</code>
9831 public Builder setStringValue(
9832 java.lang.String value) {
9833 if (value == null) {
9834 throw new NullPointerException();
9836 bitField0_ |= 0x00000002;
9837 stringValue_ = value;
9842 * <code>optional string string_value = 2;</code>
9844 public Builder clearStringValue() {
9845 bitField0_ = (bitField0_ & ~0x00000002);
9846 stringValue_ = getDefaultInstance().getStringValue();
9851 * <code>optional string string_value = 2;</code>
9853 public Builder setStringValueBytes(
9854 com.google.protobuf.ByteString value) {
9855 if (value == null) {
9856 throw new NullPointerException();
9858 bitField0_ |= 0x00000002;
9859 stringValue_ = value;
9864 // optional double numeric_value = 3;
9865 private double numericValue_ ;
9867 * <code>optional double numeric_value = 3;</code>
9869 public boolean hasNumericValue() {
9870 return ((bitField0_ & 0x00000004) == 0x00000004);
9873 * <code>optional double numeric_value = 3;</code>
9875 public double getNumericValue() {
9876 return numericValue_;
9879 * <code>optional double numeric_value = 3;</code>
9881 public Builder setNumericValue(double value) {
9882 bitField0_ |= 0x00000004;
9883 numericValue_ = value;
9888 * <code>optional double numeric_value = 3;</code>
9890 public Builder clearNumericValue() {
9891 bitField0_ = (bitField0_ & ~0x00000004);
9897 // optional bool boolean_value = 4;
9898 private boolean booleanValue_ ;
9900 * <code>optional bool boolean_value = 4;</code>
9902 public boolean hasBooleanValue() {
9903 return ((bitField0_ & 0x00000008) == 0x00000008);
9906 * <code>optional bool boolean_value = 4;</code>
9908 public boolean getBooleanValue() {
9909 return booleanValue_;
9912 * <code>optional bool boolean_value = 4;</code>
9914 public Builder setBooleanValue(boolean value) {
9915 bitField0_ |= 0x00000008;
9916 booleanValue_ = value;
9921 * <code>optional bool boolean_value = 4;</code>
9923 public Builder clearBooleanValue() {
9924 bitField0_ = (bitField0_ & ~0x00000008);
9925 booleanValue_ = false;
9930 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
9934 defaultInstance = new DynamicField(true);
9935 defaultInstance.initFields();
9938 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
9941 public interface SimpleMessageOrBuilder
9942 extends com.google.protobuf.MessageOrBuilder {
9944 // optional string name = 1;
9946 * <code>optional string name = 1;</code>
9950 * <code>optional string name = 1;</code>
9952 java.lang.String getName();
9954 * <code>optional string name = 1;</code>
9956 com.google.protobuf.ByteString
9959 // optional .openxc.DynamicField value = 2;
9961 * <code>optional .openxc.DynamicField value = 2;</code>
9965 * <code>optional .openxc.DynamicField value = 2;</code>
9967 com.openxc.BinaryMessages.DynamicField getValue();
9969 * <code>optional .openxc.DynamicField value = 2;</code>
9971 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
9973 // optional .openxc.DynamicField event = 3;
9975 * <code>optional .openxc.DynamicField event = 3;</code>
9979 * <code>optional .openxc.DynamicField event = 3;</code>
9981 com.openxc.BinaryMessages.DynamicField getEvent();
9983 * <code>optional .openxc.DynamicField event = 3;</code>
9985 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
9988 * Protobuf type {@code openxc.SimpleMessage}
9990 public static final class SimpleMessage extends
9991 com.google.protobuf.GeneratedMessage
9992 implements SimpleMessageOrBuilder {
9993 // Use SimpleMessage.newBuilder() to construct.
9994 private SimpleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9996 this.unknownFields = builder.getUnknownFields();
9998 private SimpleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
10000 private static final SimpleMessage defaultInstance;
10001 public static SimpleMessage getDefaultInstance() {
10002 return defaultInstance;
10005 public SimpleMessage getDefaultInstanceForType() {
10006 return defaultInstance;
10009 private final com.google.protobuf.UnknownFieldSet unknownFields;
10010 @java.lang.Override
10011 public final com.google.protobuf.UnknownFieldSet
10012 getUnknownFields() {
10013 return this.unknownFields;
10015 private SimpleMessage(
10016 com.google.protobuf.CodedInputStream input,
10017 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10018 throws com.google.protobuf.InvalidProtocolBufferException {
10020 int mutable_bitField0_ = 0;
10021 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10022 com.google.protobuf.UnknownFieldSet.newBuilder();
10024 boolean done = false;
10026 int tag = input.readTag();
10032 if (!parseUnknownField(input, unknownFields,
10033 extensionRegistry, tag)) {
10039 bitField0_ |= 0x00000001;
10040 name_ = input.readBytes();
10044 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
10045 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10046 subBuilder = value_.toBuilder();
10048 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
10049 if (subBuilder != null) {
10050 subBuilder.mergeFrom(value_);
10051 value_ = subBuilder.buildPartial();
10053 bitField0_ |= 0x00000002;
10057 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
10058 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10059 subBuilder = event_.toBuilder();
10061 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
10062 if (subBuilder != null) {
10063 subBuilder.mergeFrom(event_);
10064 event_ = subBuilder.buildPartial();
10066 bitField0_ |= 0x00000004;
10071 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10072 throw e.setUnfinishedMessage(this);
10073 } catch (java.io.IOException e) {
10074 throw new com.google.protobuf.InvalidProtocolBufferException(
10075 e.getMessage()).setUnfinishedMessage(this);
10077 this.unknownFields = unknownFields.build();
10078 makeExtensionsImmutable();
10081 public static final com.google.protobuf.Descriptors.Descriptor
10083 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10086 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10087 internalGetFieldAccessorTable() {
10088 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable
10089 .ensureFieldAccessorsInitialized(
10090 com.openxc.BinaryMessages.SimpleMessage.class, com.openxc.BinaryMessages.SimpleMessage.Builder.class);
10093 public static com.google.protobuf.Parser<SimpleMessage> PARSER =
10094 new com.google.protobuf.AbstractParser<SimpleMessage>() {
10095 public SimpleMessage parsePartialFrom(
10096 com.google.protobuf.CodedInputStream input,
10097 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10098 throws com.google.protobuf.InvalidProtocolBufferException {
10099 return new SimpleMessage(input, extensionRegistry);
10103 @java.lang.Override
10104 public com.google.protobuf.Parser<SimpleMessage> getParserForType() {
10108 private int bitField0_;
10109 // optional string name = 1;
10110 public static final int NAME_FIELD_NUMBER = 1;
10111 private java.lang.Object name_;
10113 * <code>optional string name = 1;</code>
10115 public boolean hasName() {
10116 return ((bitField0_ & 0x00000001) == 0x00000001);
10119 * <code>optional string name = 1;</code>
10121 public java.lang.String getName() {
10122 java.lang.Object ref = name_;
10123 if (ref instanceof java.lang.String) {
10124 return (java.lang.String) ref;
10126 com.google.protobuf.ByteString bs =
10127 (com.google.protobuf.ByteString) ref;
10128 java.lang.String s = bs.toStringUtf8();
10129 if (bs.isValidUtf8()) {
10136 * <code>optional string name = 1;</code>
10138 public com.google.protobuf.ByteString
10140 java.lang.Object ref = name_;
10141 if (ref instanceof java.lang.String) {
10142 com.google.protobuf.ByteString b =
10143 com.google.protobuf.ByteString.copyFromUtf8(
10144 (java.lang.String) ref);
10148 return (com.google.protobuf.ByteString) ref;
10152 // optional .openxc.DynamicField value = 2;
10153 public static final int VALUE_FIELD_NUMBER = 2;
10154 private com.openxc.BinaryMessages.DynamicField value_;
10156 * <code>optional .openxc.DynamicField value = 2;</code>
10158 public boolean hasValue() {
10159 return ((bitField0_ & 0x00000002) == 0x00000002);
10162 * <code>optional .openxc.DynamicField value = 2;</code>
10164 public com.openxc.BinaryMessages.DynamicField getValue() {
10168 * <code>optional .openxc.DynamicField value = 2;</code>
10170 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10174 // optional .openxc.DynamicField event = 3;
10175 public static final int EVENT_FIELD_NUMBER = 3;
10176 private com.openxc.BinaryMessages.DynamicField event_;
10178 * <code>optional .openxc.DynamicField event = 3;</code>
10180 public boolean hasEvent() {
10181 return ((bitField0_ & 0x00000004) == 0x00000004);
10184 * <code>optional .openxc.DynamicField event = 3;</code>
10186 public com.openxc.BinaryMessages.DynamicField getEvent() {
10190 * <code>optional .openxc.DynamicField event = 3;</code>
10192 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10196 private void initFields() {
10198 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10199 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10201 private byte memoizedIsInitialized = -1;
10202 public final boolean isInitialized() {
10203 byte isInitialized = memoizedIsInitialized;
10204 if (isInitialized != -1) return isInitialized == 1;
10206 memoizedIsInitialized = 1;
10210 public void writeTo(com.google.protobuf.CodedOutputStream output)
10211 throws java.io.IOException {
10212 getSerializedSize();
10213 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10214 output.writeBytes(1, getNameBytes());
10216 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10217 output.writeMessage(2, value_);
10219 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10220 output.writeMessage(3, event_);
10222 getUnknownFields().writeTo(output);
10225 private int memoizedSerializedSize = -1;
10226 public int getSerializedSize() {
10227 int size = memoizedSerializedSize;
10228 if (size != -1) return size;
10231 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10232 size += com.google.protobuf.CodedOutputStream
10233 .computeBytesSize(1, getNameBytes());
10235 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10236 size += com.google.protobuf.CodedOutputStream
10237 .computeMessageSize(2, value_);
10239 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10240 size += com.google.protobuf.CodedOutputStream
10241 .computeMessageSize(3, event_);
10243 size += getUnknownFields().getSerializedSize();
10244 memoizedSerializedSize = size;
10248 private static final long serialVersionUID = 0L;
10249 @java.lang.Override
10250 protected java.lang.Object writeReplace()
10251 throws java.io.ObjectStreamException {
10252 return super.writeReplace();
10255 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10256 com.google.protobuf.ByteString data)
10257 throws com.google.protobuf.InvalidProtocolBufferException {
10258 return PARSER.parseFrom(data);
10260 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10261 com.google.protobuf.ByteString data,
10262 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10263 throws com.google.protobuf.InvalidProtocolBufferException {
10264 return PARSER.parseFrom(data, extensionRegistry);
10266 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(byte[] data)
10267 throws com.google.protobuf.InvalidProtocolBufferException {
10268 return PARSER.parseFrom(data);
10270 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10272 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10273 throws com.google.protobuf.InvalidProtocolBufferException {
10274 return PARSER.parseFrom(data, extensionRegistry);
10276 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(java.io.InputStream input)
10277 throws java.io.IOException {
10278 return PARSER.parseFrom(input);
10280 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10281 java.io.InputStream input,
10282 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10283 throws java.io.IOException {
10284 return PARSER.parseFrom(input, extensionRegistry);
10286 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(java.io.InputStream input)
10287 throws java.io.IOException {
10288 return PARSER.parseDelimitedFrom(input);
10290 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(
10291 java.io.InputStream input,
10292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10293 throws java.io.IOException {
10294 return PARSER.parseDelimitedFrom(input, extensionRegistry);
10296 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10297 com.google.protobuf.CodedInputStream input)
10298 throws java.io.IOException {
10299 return PARSER.parseFrom(input);
10301 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
10302 com.google.protobuf.CodedInputStream input,
10303 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10304 throws java.io.IOException {
10305 return PARSER.parseFrom(input, extensionRegistry);
10308 public static Builder newBuilder() { return Builder.create(); }
10309 public Builder newBuilderForType() { return newBuilder(); }
10310 public static Builder newBuilder(com.openxc.BinaryMessages.SimpleMessage prototype) {
10311 return newBuilder().mergeFrom(prototype);
10313 public Builder toBuilder() { return newBuilder(this); }
10315 @java.lang.Override
10316 protected Builder newBuilderForType(
10317 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10318 Builder builder = new Builder(parent);
10322 * Protobuf type {@code openxc.SimpleMessage}
10324 public static final class Builder extends
10325 com.google.protobuf.GeneratedMessage.Builder<Builder>
10326 implements com.openxc.BinaryMessages.SimpleMessageOrBuilder {
10327 public static final com.google.protobuf.Descriptors.Descriptor
10329 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10332 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10333 internalGetFieldAccessorTable() {
10334 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable
10335 .ensureFieldAccessorsInitialized(
10336 com.openxc.BinaryMessages.SimpleMessage.class, com.openxc.BinaryMessages.SimpleMessage.Builder.class);
10339 // Construct using com.openxc.BinaryMessages.SimpleMessage.newBuilder()
10340 private Builder() {
10341 maybeForceBuilderInitialization();
10345 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10347 maybeForceBuilderInitialization();
10349 private void maybeForceBuilderInitialization() {
10350 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10351 getValueFieldBuilder();
10352 getEventFieldBuilder();
10355 private static Builder create() {
10356 return new Builder();
10359 public Builder clear() {
10362 bitField0_ = (bitField0_ & ~0x00000001);
10363 if (valueBuilder_ == null) {
10364 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10366 valueBuilder_.clear();
10368 bitField0_ = (bitField0_ & ~0x00000002);
10369 if (eventBuilder_ == null) {
10370 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10372 eventBuilder_.clear();
10374 bitField0_ = (bitField0_ & ~0x00000004);
10378 public Builder clone() {
10379 return create().mergeFrom(buildPartial());
10382 public com.google.protobuf.Descriptors.Descriptor
10383 getDescriptorForType() {
10384 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
10387 public com.openxc.BinaryMessages.SimpleMessage getDefaultInstanceForType() {
10388 return com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
10391 public com.openxc.BinaryMessages.SimpleMessage build() {
10392 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
10393 if (!result.isInitialized()) {
10394 throw newUninitializedMessageException(result);
10399 public com.openxc.BinaryMessages.SimpleMessage buildPartial() {
10400 com.openxc.BinaryMessages.SimpleMessage result = new com.openxc.BinaryMessages.SimpleMessage(this);
10401 int from_bitField0_ = bitField0_;
10402 int to_bitField0_ = 0;
10403 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10404 to_bitField0_ |= 0x00000001;
10406 result.name_ = name_;
10407 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10408 to_bitField0_ |= 0x00000002;
10410 if (valueBuilder_ == null) {
10411 result.value_ = value_;
10413 result.value_ = valueBuilder_.build();
10415 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10416 to_bitField0_ |= 0x00000004;
10418 if (eventBuilder_ == null) {
10419 result.event_ = event_;
10421 result.event_ = eventBuilder_.build();
10423 result.bitField0_ = to_bitField0_;
10428 public Builder mergeFrom(com.google.protobuf.Message other) {
10429 if (other instanceof com.openxc.BinaryMessages.SimpleMessage) {
10430 return mergeFrom((com.openxc.BinaryMessages.SimpleMessage)other);
10432 super.mergeFrom(other);
10437 public Builder mergeFrom(com.openxc.BinaryMessages.SimpleMessage other) {
10438 if (other == com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) return this;
10439 if (other.hasName()) {
10440 bitField0_ |= 0x00000001;
10441 name_ = other.name_;
10444 if (other.hasValue()) {
10445 mergeValue(other.getValue());
10447 if (other.hasEvent()) {
10448 mergeEvent(other.getEvent());
10450 this.mergeUnknownFields(other.getUnknownFields());
10454 public final boolean isInitialized() {
10458 public Builder mergeFrom(
10459 com.google.protobuf.CodedInputStream input,
10460 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10461 throws java.io.IOException {
10462 com.openxc.BinaryMessages.SimpleMessage parsedMessage = null;
10464 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
10465 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10466 parsedMessage = (com.openxc.BinaryMessages.SimpleMessage) e.getUnfinishedMessage();
10469 if (parsedMessage != null) {
10470 mergeFrom(parsedMessage);
10475 private int bitField0_;
10477 // optional string name = 1;
10478 private java.lang.Object name_ = "";
10480 * <code>optional string name = 1;</code>
10482 public boolean hasName() {
10483 return ((bitField0_ & 0x00000001) == 0x00000001);
10486 * <code>optional string name = 1;</code>
10488 public java.lang.String getName() {
10489 java.lang.Object ref = name_;
10490 if (!(ref instanceof java.lang.String)) {
10491 java.lang.String s = ((com.google.protobuf.ByteString) ref)
10496 return (java.lang.String) ref;
10500 * <code>optional string name = 1;</code>
10502 public com.google.protobuf.ByteString
10504 java.lang.Object ref = name_;
10505 if (ref instanceof String) {
10506 com.google.protobuf.ByteString b =
10507 com.google.protobuf.ByteString.copyFromUtf8(
10508 (java.lang.String) ref);
10512 return (com.google.protobuf.ByteString) ref;
10516 * <code>optional string name = 1;</code>
10518 public Builder setName(
10519 java.lang.String value) {
10520 if (value == null) {
10521 throw new NullPointerException();
10523 bitField0_ |= 0x00000001;
10529 * <code>optional string name = 1;</code>
10531 public Builder clearName() {
10532 bitField0_ = (bitField0_ & ~0x00000001);
10533 name_ = getDefaultInstance().getName();
10538 * <code>optional string name = 1;</code>
10540 public Builder setNameBytes(
10541 com.google.protobuf.ByteString value) {
10542 if (value == null) {
10543 throw new NullPointerException();
10545 bitField0_ |= 0x00000001;
10551 // optional .openxc.DynamicField value = 2;
10552 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10553 private com.google.protobuf.SingleFieldBuilder<
10554 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
10556 * <code>optional .openxc.DynamicField value = 2;</code>
10558 public boolean hasValue() {
10559 return ((bitField0_ & 0x00000002) == 0x00000002);
10562 * <code>optional .openxc.DynamicField value = 2;</code>
10564 public com.openxc.BinaryMessages.DynamicField getValue() {
10565 if (valueBuilder_ == null) {
10568 return valueBuilder_.getMessage();
10572 * <code>optional .openxc.DynamicField value = 2;</code>
10574 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
10575 if (valueBuilder_ == null) {
10576 if (value == null) {
10577 throw new NullPointerException();
10582 valueBuilder_.setMessage(value);
10584 bitField0_ |= 0x00000002;
10588 * <code>optional .openxc.DynamicField value = 2;</code>
10590 public Builder setValue(
10591 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10592 if (valueBuilder_ == null) {
10593 value_ = builderForValue.build();
10596 valueBuilder_.setMessage(builderForValue.build());
10598 bitField0_ |= 0x00000002;
10602 * <code>optional .openxc.DynamicField value = 2;</code>
10604 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
10605 if (valueBuilder_ == null) {
10606 if (((bitField0_ & 0x00000002) == 0x00000002) &&
10607 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10609 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
10615 valueBuilder_.mergeFrom(value);
10617 bitField0_ |= 0x00000002;
10621 * <code>optional .openxc.DynamicField value = 2;</code>
10623 public Builder clearValue() {
10624 if (valueBuilder_ == null) {
10625 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10628 valueBuilder_.clear();
10630 bitField0_ = (bitField0_ & ~0x00000002);
10634 * <code>optional .openxc.DynamicField value = 2;</code>
10636 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
10637 bitField0_ |= 0x00000002;
10639 return getValueFieldBuilder().getBuilder();
10642 * <code>optional .openxc.DynamicField value = 2;</code>
10644 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10645 if (valueBuilder_ != null) {
10646 return valueBuilder_.getMessageOrBuilder();
10652 * <code>optional .openxc.DynamicField value = 2;</code>
10654 private com.google.protobuf.SingleFieldBuilder<
10655 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10656 getValueFieldBuilder() {
10657 if (valueBuilder_ == null) {
10658 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10659 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10661 getParentForChildren(),
10665 return valueBuilder_;
10668 // optional .openxc.DynamicField event = 3;
10669 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10670 private com.google.protobuf.SingleFieldBuilder<
10671 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
10673 * <code>optional .openxc.DynamicField event = 3;</code>
10675 public boolean hasEvent() {
10676 return ((bitField0_ & 0x00000004) == 0x00000004);
10679 * <code>optional .openxc.DynamicField event = 3;</code>
10681 public com.openxc.BinaryMessages.DynamicField getEvent() {
10682 if (eventBuilder_ == null) {
10685 return eventBuilder_.getMessage();
10689 * <code>optional .openxc.DynamicField event = 3;</code>
10691 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
10692 if (eventBuilder_ == null) {
10693 if (value == null) {
10694 throw new NullPointerException();
10699 eventBuilder_.setMessage(value);
10701 bitField0_ |= 0x00000004;
10705 * <code>optional .openxc.DynamicField event = 3;</code>
10707 public Builder setEvent(
10708 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10709 if (eventBuilder_ == null) {
10710 event_ = builderForValue.build();
10713 eventBuilder_.setMessage(builderForValue.build());
10715 bitField0_ |= 0x00000004;
10719 * <code>optional .openxc.DynamicField event = 3;</code>
10721 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
10722 if (eventBuilder_ == null) {
10723 if (((bitField0_ & 0x00000004) == 0x00000004) &&
10724 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10726 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
10732 eventBuilder_.mergeFrom(value);
10734 bitField0_ |= 0x00000004;
10738 * <code>optional .openxc.DynamicField event = 3;</code>
10740 public Builder clearEvent() {
10741 if (eventBuilder_ == null) {
10742 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10745 eventBuilder_.clear();
10747 bitField0_ = (bitField0_ & ~0x00000004);
10751 * <code>optional .openxc.DynamicField event = 3;</code>
10753 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
10754 bitField0_ |= 0x00000004;
10756 return getEventFieldBuilder().getBuilder();
10759 * <code>optional .openxc.DynamicField event = 3;</code>
10761 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10762 if (eventBuilder_ != null) {
10763 return eventBuilder_.getMessageOrBuilder();
10769 * <code>optional .openxc.DynamicField event = 3;</code>
10771 private com.google.protobuf.SingleFieldBuilder<
10772 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10773 getEventFieldBuilder() {
10774 if (eventBuilder_ == null) {
10775 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10776 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10778 getParentForChildren(),
10782 return eventBuilder_;
10785 // @@protoc_insertion_point(builder_scope:openxc.SimpleMessage)
10789 defaultInstance = new SimpleMessage(true);
10790 defaultInstance.initFields();
10793 // @@protoc_insertion_point(class_scope:openxc.SimpleMessage)
10796 private static com.google.protobuf.Descriptors.Descriptor
10797 internal_static_openxc_VehicleMessage_descriptor;
10799 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10800 internal_static_openxc_VehicleMessage_fieldAccessorTable;
10801 private static com.google.protobuf.Descriptors.Descriptor
10802 internal_static_openxc_CanMessage_descriptor;
10804 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10805 internal_static_openxc_CanMessage_fieldAccessorTable;
10806 private static com.google.protobuf.Descriptors.Descriptor
10807 internal_static_openxc_ControlCommand_descriptor;
10809 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10810 internal_static_openxc_ControlCommand_fieldAccessorTable;
10811 private static com.google.protobuf.Descriptors.Descriptor
10812 internal_static_openxc_DiagnosticControlCommand_descriptor;
10814 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10815 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
10816 private static com.google.protobuf.Descriptors.Descriptor
10817 internal_static_openxc_PassthroughModeControlCommand_descriptor;
10819 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10820 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
10821 private static com.google.protobuf.Descriptors.Descriptor
10822 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
10824 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10825 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
10826 private static com.google.protobuf.Descriptors.Descriptor
10827 internal_static_openxc_PayloadFormatCommand_descriptor;
10829 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10830 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
10831 private static com.google.protobuf.Descriptors.Descriptor
10832 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
10834 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10835 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
10836 private static com.google.protobuf.Descriptors.Descriptor
10837 internal_static_openxc_CommandResponse_descriptor;
10839 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10840 internal_static_openxc_CommandResponse_fieldAccessorTable;
10841 private static com.google.protobuf.Descriptors.Descriptor
10842 internal_static_openxc_DiagnosticRequest_descriptor;
10844 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10845 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
10846 private static com.google.protobuf.Descriptors.Descriptor
10847 internal_static_openxc_DiagnosticResponse_descriptor;
10849 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10850 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10851 private static com.google.protobuf.Descriptors.Descriptor
10852 internal_static_openxc_DynamicField_descriptor;
10854 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10855 internal_static_openxc_DynamicField_fieldAccessorTable;
10856 private static com.google.protobuf.Descriptors.Descriptor
10857 internal_static_openxc_SimpleMessage_descriptor;
10859 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10860 internal_static_openxc_SimpleMessage_fieldAccessorTable;
10862 public static com.google.protobuf.Descriptors.FileDescriptor
10866 private static com.google.protobuf.Descriptors.FileDescriptor
10869 java.lang.String[] descriptorData = {
10870 "\n\014openxc.proto\022\006openxc\"\210\003\n\016VehicleMessag" +
10871 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
10872 "Type\022\'\n\013can_message\030\002 \001(\0132\022.openxc.CanMe" +
10873 "ssage\022-\n\016simple_message\030\003 \001(\0132\025.openxc.S" +
10874 "impleMessage\0227\n\023diagnostic_response\030\004 \001(" +
10875 "\0132\032.openxc.DiagnosticResponse\022/\n\017control" +
10876 "_command\030\005 \001(\0132\026.openxc.ControlCommand\0221" +
10877 "\n\020command_response\030\006 \001(\0132\027.openxc.Comman" +
10878 "dResponse\"V\n\004Type\022\007\n\003CAN\020\001\022\n\n\006SIMPLE\020\002\022\016" +
10879 "\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_COMMAND\020\004\022\024\n\020C",
10880 "OMMAND_RESPONSE\020\005\"\234\001\n\nCanMessage\022\013\n\003bus\030" +
10881 "\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\014\022" +
10882 "4\n\014frame_format\030\004 \001(\0162\036.openxc.CanMessag" +
10883 "e.FrameFormat\")\n\013FrameFormat\022\014\n\010STANDARD" +
10884 "\020\001\022\014\n\010EXTENDED\020\002\"\270\004\n\016ControlCommand\022)\n\004t" +
10885 "ype\030\001 \001(\0162\033.openxc.ControlCommand.Type\022<" +
10886 "\n\022diagnostic_request\030\002 \001(\0132 .openxc.Diag" +
10887 "nosticControlCommand\022G\n\030passthrough_mode" +
10888 "_request\030\003 \001(\0132%.openxc.PassthroughModeC" +
10889 "ontrolCommand\022O\n acceptance_filter_bypas",
10890 "s_command\030\004 \001(\0132%.openxc.AcceptanceFilte" +
10891 "rBypassCommand\022<\n\026payload_format_command" +
10892 "\030\005 \001(\0132\034.openxc.PayloadFormatCommand\022O\n " +
10893 "predefined_obd2_requests_command\030\006 \001(\0132%" +
10894 ".openxc.PredefinedObd2RequestsCommand\"\223\001" +
10895 "\n\004Type\022\013\n\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDI" +
10896 "AGNOSTIC\020\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANC" +
10897 "E_FILTER_BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n" +
10898 "\030PREDEFINED_OBD2_REQUESTS\020\007\"\236\001\n\030Diagnost" +
10899 "icControlCommand\022*\n\007request\030\001 \001(\0132\031.open",
10900 "xc.DiagnosticRequest\0227\n\006action\030\002 \001(\0162\'.o" +
10901 "penxc.DiagnosticControlCommand.Action\"\035\n" +
10902 "\006Action\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035Passthro" +
10903 "ughModeControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007en" +
10904 "abled\030\002 \001(\010\"<\n\035AcceptanceFilterBypassCom" +
10905 "mand\022\013\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"{\n\024Pay" +
10906 "loadFormatCommand\022:\n\006format\030\001 \001(\0162*.open" +
10907 "xc.PayloadFormatCommand.PayloadFormat\"\'\n" +
10908 "\rPayloadFormat\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\"0" +
10909 "\n\035PredefinedObd2RequestsCommand\022\017\n\007enabl",
10910 "ed\030\001 \001(\010\"]\n\017CommandResponse\022)\n\004type\030\001 \001(" +
10911 "\0162\033.openxc.ControlCommand.Type\022\017\n\007messag" +
10912 "e\030\002 \001(\t\022\016\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRe" +
10913 "quest\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014" +
10914 "\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001" +
10915 "(\014\022\032\n\022multiple_responses\030\006 \001(\010\022\021\n\tfreque" +
10916 "ncy\030\007 \001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030" +
10917 "\t \001(\0162%.openxc.DiagnosticRequest.Decoded" +
10918 "Type\"!\n\013DecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"" +
10919 "\241\001\n\022DiagnosticResponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nm",
10920 "essage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001" +
10921 "(\r\022\017\n\007success\030\005 \001(\010\022\036\n\026negative_response" +
10922 "_code\030\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 " +
10923 "\001(\001\"\242\001\n\014DynamicField\022\'\n\004type\030\001 \001(\0162\031.ope" +
10924 "nxc.DynamicField.Type\022\024\n\014string_value\030\002 " +
10925 "\001(\t\022\025\n\rnumeric_value\030\003 \001(\001\022\025\n\rboolean_va" +
10926 "lue\030\004 \001(\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010" +
10927 "\n\004BOOL\020\003\"g\n\rSimpleMessage\022\014\n\004name\030\001 \001(\t\022" +
10928 "#\n\005value\030\002 \001(\0132\024.openxc.DynamicField\022#\n\005" +
10929 "event\030\003 \001(\0132\024.openxc.DynamicFieldB\034\n\ncom",
10930 ".openxcB\016BinaryMessages"
10932 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
10933 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
10934 public com.google.protobuf.ExtensionRegistry assignDescriptors(
10935 com.google.protobuf.Descriptors.FileDescriptor root) {
10937 internal_static_openxc_VehicleMessage_descriptor =
10938 getDescriptor().getMessageTypes().get(0);
10939 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
10940 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10941 internal_static_openxc_VehicleMessage_descriptor,
10942 new java.lang.String[] { "Type", "CanMessage", "SimpleMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
10943 internal_static_openxc_CanMessage_descriptor =
10944 getDescriptor().getMessageTypes().get(1);
10945 internal_static_openxc_CanMessage_fieldAccessorTable = new
10946 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10947 internal_static_openxc_CanMessage_descriptor,
10948 new java.lang.String[] { "Bus", "MessageId", "Data", "FrameFormat", });
10949 internal_static_openxc_ControlCommand_descriptor =
10950 getDescriptor().getMessageTypes().get(2);
10951 internal_static_openxc_ControlCommand_fieldAccessorTable = new
10952 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10953 internal_static_openxc_ControlCommand_descriptor,
10954 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", });
10955 internal_static_openxc_DiagnosticControlCommand_descriptor =
10956 getDescriptor().getMessageTypes().get(3);
10957 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
10958 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10959 internal_static_openxc_DiagnosticControlCommand_descriptor,
10960 new java.lang.String[] { "Request", "Action", });
10961 internal_static_openxc_PassthroughModeControlCommand_descriptor =
10962 getDescriptor().getMessageTypes().get(4);
10963 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
10964 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10965 internal_static_openxc_PassthroughModeControlCommand_descriptor,
10966 new java.lang.String[] { "Bus", "Enabled", });
10967 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
10968 getDescriptor().getMessageTypes().get(5);
10969 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
10970 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10971 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
10972 new java.lang.String[] { "Bus", "Bypass", });
10973 internal_static_openxc_PayloadFormatCommand_descriptor =
10974 getDescriptor().getMessageTypes().get(6);
10975 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
10976 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10977 internal_static_openxc_PayloadFormatCommand_descriptor,
10978 new java.lang.String[] { "Format", });
10979 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
10980 getDescriptor().getMessageTypes().get(7);
10981 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
10982 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10983 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
10984 new java.lang.String[] { "Enabled", });
10985 internal_static_openxc_CommandResponse_descriptor =
10986 getDescriptor().getMessageTypes().get(8);
10987 internal_static_openxc_CommandResponse_fieldAccessorTable = new
10988 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10989 internal_static_openxc_CommandResponse_descriptor,
10990 new java.lang.String[] { "Type", "Message", "Status", });
10991 internal_static_openxc_DiagnosticRequest_descriptor =
10992 getDescriptor().getMessageTypes().get(9);
10993 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
10994 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10995 internal_static_openxc_DiagnosticRequest_descriptor,
10996 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", });
10997 internal_static_openxc_DiagnosticResponse_descriptor =
10998 getDescriptor().getMessageTypes().get(10);
10999 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
11000 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11001 internal_static_openxc_DiagnosticResponse_descriptor,
11002 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
11003 internal_static_openxc_DynamicField_descriptor =
11004 getDescriptor().getMessageTypes().get(11);
11005 internal_static_openxc_DynamicField_fieldAccessorTable = new
11006 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11007 internal_static_openxc_DynamicField_descriptor,
11008 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
11009 internal_static_openxc_SimpleMessage_descriptor =
11010 getDescriptor().getMessageTypes().get(12);
11011 internal_static_openxc_SimpleMessage_fieldAccessorTable = new
11012 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11013 internal_static_openxc_SimpleMessage_descriptor,
11014 new java.lang.String[] { "Name", "Value", "Event", });
11018 com.google.protobuf.Descriptors.FileDescriptor
11019 .internalBuildGeneratedFileFrom(descriptorData,
11020 new com.google.protobuf.Descriptors.FileDescriptor[] {
11024 // @@protoc_insertion_point(outer_class_scope)