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.RawMessage raw_message = 2;
26 * <code>optional .openxc.RawMessage raw_message = 2;</code>
28 boolean hasRawMessage();
30 * <code>optional .openxc.RawMessage raw_message = 2;</code>
32 com.openxc.BinaryMessages.RawMessage getRawMessage();
34 * <code>optional .openxc.RawMessage raw_message = 2;</code>
36 com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder();
38 // optional .openxc.TranslatedMessage translated_message = 3;
40 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
42 boolean hasTranslatedMessage();
44 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
46 com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage();
48 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
50 com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder();
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.RawMessage.Builder subBuilder = null;
158 if (((bitField0_ & 0x00000002) == 0x00000002)) {
159 subBuilder = rawMessage_.toBuilder();
161 rawMessage_ = input.readMessage(com.openxc.BinaryMessages.RawMessage.PARSER, extensionRegistry);
162 if (subBuilder != null) {
163 subBuilder.mergeFrom(rawMessage_);
164 rawMessage_ = subBuilder.buildPartial();
166 bitField0_ |= 0x00000002;
170 com.openxc.BinaryMessages.TranslatedMessage.Builder subBuilder = null;
171 if (((bitField0_ & 0x00000004) == 0x00000004)) {
172 subBuilder = translatedMessage_.toBuilder();
174 translatedMessage_ = input.readMessage(com.openxc.BinaryMessages.TranslatedMessage.PARSER, extensionRegistry);
175 if (subBuilder != null) {
176 subBuilder.mergeFrom(translatedMessage_);
177 translatedMessage_ = 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>RAW = 1;</code>
270 * <code>TRANSLATED = 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>RAW = 1;</code>
290 public static final int RAW_VALUE = 1;
292 * <code>TRANSLATED = 2;</code>
294 public static final int TRANSLATED_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 TRANSLATED;
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.RawMessage raw_message = 2;
387 public static final int RAW_MESSAGE_FIELD_NUMBER = 2;
388 private com.openxc.BinaryMessages.RawMessage rawMessage_;
390 * <code>optional .openxc.RawMessage raw_message = 2;</code>
392 public boolean hasRawMessage() {
393 return ((bitField0_ & 0x00000002) == 0x00000002);
396 * <code>optional .openxc.RawMessage raw_message = 2;</code>
398 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
402 * <code>optional .openxc.RawMessage raw_message = 2;</code>
404 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
408 // optional .openxc.TranslatedMessage translated_message = 3;
409 public static final int TRANSLATED_MESSAGE_FIELD_NUMBER = 3;
410 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_;
412 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
414 public boolean hasTranslatedMessage() {
415 return ((bitField0_ & 0x00000004) == 0x00000004);
418 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
420 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
421 return translatedMessage_;
424 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
426 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
427 return translatedMessage_;
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.RAW;
498 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
499 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.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, rawMessage_);
522 if (((bitField0_ & 0x00000004) == 0x00000004)) {
523 output.writeMessage(3, translatedMessage_);
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, rawMessage_);
551 if (((bitField0_ & 0x00000004) == 0x00000004)) {
552 size += com.google.protobuf.CodedOutputStream
553 .computeMessageSize(3, translatedMessage_);
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 getRawMessageFieldBuilder();
676 getTranslatedMessageFieldBuilder();
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.RAW;
689 bitField0_ = (bitField0_ & ~0x00000001);
690 if (rawMessageBuilder_ == null) {
691 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
693 rawMessageBuilder_.clear();
695 bitField0_ = (bitField0_ & ~0x00000002);
696 if (translatedMessageBuilder_ == null) {
697 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
699 translatedMessageBuilder_.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 (rawMessageBuilder_ == null) {
756 result.rawMessage_ = rawMessage_;
758 result.rawMessage_ = rawMessageBuilder_.build();
760 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
761 to_bitField0_ |= 0x00000004;
763 if (translatedMessageBuilder_ == null) {
764 result.translatedMessage_ = translatedMessage_;
766 result.translatedMessage_ = translatedMessageBuilder_.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.hasRawMessage()) {
812 mergeRawMessage(other.getRawMessage());
814 if (other.hasTranslatedMessage()) {
815 mergeTranslatedMessage(other.getTranslatedMessage());
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.RAW;
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.RAW;
889 // optional .openxc.RawMessage raw_message = 2;
890 private com.openxc.BinaryMessages.RawMessage rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
891 private com.google.protobuf.SingleFieldBuilder<
892 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder> rawMessageBuilder_;
894 * <code>optional .openxc.RawMessage raw_message = 2;</code>
896 public boolean hasRawMessage() {
897 return ((bitField0_ & 0x00000002) == 0x00000002);
900 * <code>optional .openxc.RawMessage raw_message = 2;</code>
902 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
903 if (rawMessageBuilder_ == null) {
906 return rawMessageBuilder_.getMessage();
910 * <code>optional .openxc.RawMessage raw_message = 2;</code>
912 public Builder setRawMessage(com.openxc.BinaryMessages.RawMessage value) {
913 if (rawMessageBuilder_ == null) {
915 throw new NullPointerException();
920 rawMessageBuilder_.setMessage(value);
922 bitField0_ |= 0x00000002;
926 * <code>optional .openxc.RawMessage raw_message = 2;</code>
928 public Builder setRawMessage(
929 com.openxc.BinaryMessages.RawMessage.Builder builderForValue) {
930 if (rawMessageBuilder_ == null) {
931 rawMessage_ = builderForValue.build();
934 rawMessageBuilder_.setMessage(builderForValue.build());
936 bitField0_ |= 0x00000002;
940 * <code>optional .openxc.RawMessage raw_message = 2;</code>
942 public Builder mergeRawMessage(com.openxc.BinaryMessages.RawMessage value) {
943 if (rawMessageBuilder_ == null) {
944 if (((bitField0_ & 0x00000002) == 0x00000002) &&
945 rawMessage_ != com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) {
947 com.openxc.BinaryMessages.RawMessage.newBuilder(rawMessage_).mergeFrom(value).buildPartial();
953 rawMessageBuilder_.mergeFrom(value);
955 bitField0_ |= 0x00000002;
959 * <code>optional .openxc.RawMessage raw_message = 2;</code>
961 public Builder clearRawMessage() {
962 if (rawMessageBuilder_ == null) {
963 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
966 rawMessageBuilder_.clear();
968 bitField0_ = (bitField0_ & ~0x00000002);
972 * <code>optional .openxc.RawMessage raw_message = 2;</code>
974 public com.openxc.BinaryMessages.RawMessage.Builder getRawMessageBuilder() {
975 bitField0_ |= 0x00000002;
977 return getRawMessageFieldBuilder().getBuilder();
980 * <code>optional .openxc.RawMessage raw_message = 2;</code>
982 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
983 if (rawMessageBuilder_ != null) {
984 return rawMessageBuilder_.getMessageOrBuilder();
990 * <code>optional .openxc.RawMessage raw_message = 2;</code>
992 private com.google.protobuf.SingleFieldBuilder<
993 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>
994 getRawMessageFieldBuilder() {
995 if (rawMessageBuilder_ == null) {
996 rawMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
997 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>(
999 getParentForChildren(),
1003 return rawMessageBuilder_;
1006 // optional .openxc.TranslatedMessage translated_message = 3;
1007 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
1008 private com.google.protobuf.SingleFieldBuilder<
1009 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder> translatedMessageBuilder_;
1011 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1013 public boolean hasTranslatedMessage() {
1014 return ((bitField0_ & 0x00000004) == 0x00000004);
1017 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1019 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
1020 if (translatedMessageBuilder_ == null) {
1021 return translatedMessage_;
1023 return translatedMessageBuilder_.getMessage();
1027 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1029 public Builder setTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
1030 if (translatedMessageBuilder_ == null) {
1031 if (value == null) {
1032 throw new NullPointerException();
1034 translatedMessage_ = value;
1037 translatedMessageBuilder_.setMessage(value);
1039 bitField0_ |= 0x00000004;
1043 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1045 public Builder setTranslatedMessage(
1046 com.openxc.BinaryMessages.TranslatedMessage.Builder builderForValue) {
1047 if (translatedMessageBuilder_ == null) {
1048 translatedMessage_ = builderForValue.build();
1051 translatedMessageBuilder_.setMessage(builderForValue.build());
1053 bitField0_ |= 0x00000004;
1057 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1059 public Builder mergeTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
1060 if (translatedMessageBuilder_ == null) {
1061 if (((bitField0_ & 0x00000004) == 0x00000004) &&
1062 translatedMessage_ != com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) {
1063 translatedMessage_ =
1064 com.openxc.BinaryMessages.TranslatedMessage.newBuilder(translatedMessage_).mergeFrom(value).buildPartial();
1066 translatedMessage_ = value;
1070 translatedMessageBuilder_.mergeFrom(value);
1072 bitField0_ |= 0x00000004;
1076 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1078 public Builder clearTranslatedMessage() {
1079 if (translatedMessageBuilder_ == null) {
1080 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
1083 translatedMessageBuilder_.clear();
1085 bitField0_ = (bitField0_ & ~0x00000004);
1089 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1091 public com.openxc.BinaryMessages.TranslatedMessage.Builder getTranslatedMessageBuilder() {
1092 bitField0_ |= 0x00000004;
1094 return getTranslatedMessageFieldBuilder().getBuilder();
1097 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1099 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
1100 if (translatedMessageBuilder_ != null) {
1101 return translatedMessageBuilder_.getMessageOrBuilder();
1103 return translatedMessage_;
1107 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
1109 private com.google.protobuf.SingleFieldBuilder<
1110 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>
1111 getTranslatedMessageFieldBuilder() {
1112 if (translatedMessageBuilder_ == null) {
1113 translatedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1114 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>(
1116 getParentForChildren(),
1118 translatedMessage_ = null;
1120 return translatedMessageBuilder_;
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 RawMessageOrBuilder
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();
1519 * Protobuf type {@code openxc.RawMessage}
1521 public static final class RawMessage extends
1522 com.google.protobuf.GeneratedMessage
1523 implements RawMessageOrBuilder {
1524 // Use RawMessage.newBuilder() to construct.
1525 private RawMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1527 this.unknownFields = builder.getUnknownFields();
1529 private RawMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1531 private static final RawMessage defaultInstance;
1532 public static RawMessage getDefaultInstance() {
1533 return defaultInstance;
1536 public RawMessage getDefaultInstanceForType() {
1537 return defaultInstance;
1540 private final com.google.protobuf.UnknownFieldSet unknownFields;
1542 public final com.google.protobuf.UnknownFieldSet
1543 getUnknownFields() {
1544 return this.unknownFields;
1547 com.google.protobuf.CodedInputStream input,
1548 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1549 throws com.google.protobuf.InvalidProtocolBufferException {
1551 int mutable_bitField0_ = 0;
1552 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1553 com.google.protobuf.UnknownFieldSet.newBuilder();
1555 boolean done = false;
1557 int tag = input.readTag();
1563 if (!parseUnknownField(input, unknownFields,
1564 extensionRegistry, tag)) {
1570 bitField0_ |= 0x00000001;
1571 bus_ = input.readInt32();
1575 bitField0_ |= 0x00000002;
1576 messageId_ = input.readUInt32();
1580 bitField0_ |= 0x00000004;
1581 data_ = input.readBytes();
1586 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1587 throw e.setUnfinishedMessage(this);
1588 } catch (java.io.IOException e) {
1589 throw new com.google.protobuf.InvalidProtocolBufferException(
1590 e.getMessage()).setUnfinishedMessage(this);
1592 this.unknownFields = unknownFields.build();
1593 makeExtensionsImmutable();
1596 public static final com.google.protobuf.Descriptors.Descriptor
1598 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1601 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1602 internalGetFieldAccessorTable() {
1603 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1604 .ensureFieldAccessorsInitialized(
1605 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1608 public static com.google.protobuf.Parser<RawMessage> PARSER =
1609 new com.google.protobuf.AbstractParser<RawMessage>() {
1610 public RawMessage parsePartialFrom(
1611 com.google.protobuf.CodedInputStream input,
1612 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1613 throws com.google.protobuf.InvalidProtocolBufferException {
1614 return new RawMessage(input, extensionRegistry);
1619 public com.google.protobuf.Parser<RawMessage> getParserForType() {
1623 private int bitField0_;
1624 // optional int32 bus = 1;
1625 public static final int BUS_FIELD_NUMBER = 1;
1628 * <code>optional int32 bus = 1;</code>
1630 public boolean hasBus() {
1631 return ((bitField0_ & 0x00000001) == 0x00000001);
1634 * <code>optional int32 bus = 1;</code>
1636 public int getBus() {
1640 // optional uint32 message_id = 2;
1641 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
1642 private int messageId_;
1644 * <code>optional uint32 message_id = 2;</code>
1646 public boolean hasMessageId() {
1647 return ((bitField0_ & 0x00000002) == 0x00000002);
1650 * <code>optional uint32 message_id = 2;</code>
1652 public int getMessageId() {
1656 // optional bytes data = 3;
1657 public static final int DATA_FIELD_NUMBER = 3;
1658 private com.google.protobuf.ByteString data_;
1660 * <code>optional bytes data = 3;</code>
1662 public boolean hasData() {
1663 return ((bitField0_ & 0x00000004) == 0x00000004);
1666 * <code>optional bytes data = 3;</code>
1668 public com.google.protobuf.ByteString getData() {
1672 private void initFields() {
1675 data_ = com.google.protobuf.ByteString.EMPTY;
1677 private byte memoizedIsInitialized = -1;
1678 public final boolean isInitialized() {
1679 byte isInitialized = memoizedIsInitialized;
1680 if (isInitialized != -1) return isInitialized == 1;
1682 memoizedIsInitialized = 1;
1686 public void writeTo(com.google.protobuf.CodedOutputStream output)
1687 throws java.io.IOException {
1688 getSerializedSize();
1689 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1690 output.writeInt32(1, bus_);
1692 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1693 output.writeUInt32(2, messageId_);
1695 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1696 output.writeBytes(3, data_);
1698 getUnknownFields().writeTo(output);
1701 private int memoizedSerializedSize = -1;
1702 public int getSerializedSize() {
1703 int size = memoizedSerializedSize;
1704 if (size != -1) return size;
1707 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1708 size += com.google.protobuf.CodedOutputStream
1709 .computeInt32Size(1, bus_);
1711 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1712 size += com.google.protobuf.CodedOutputStream
1713 .computeUInt32Size(2, messageId_);
1715 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1716 size += com.google.protobuf.CodedOutputStream
1717 .computeBytesSize(3, data_);
1719 size += getUnknownFields().getSerializedSize();
1720 memoizedSerializedSize = size;
1724 private static final long serialVersionUID = 0L;
1726 protected java.lang.Object writeReplace()
1727 throws java.io.ObjectStreamException {
1728 return super.writeReplace();
1731 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1732 com.google.protobuf.ByteString data)
1733 throws com.google.protobuf.InvalidProtocolBufferException {
1734 return PARSER.parseFrom(data);
1736 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1737 com.google.protobuf.ByteString data,
1738 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1739 throws com.google.protobuf.InvalidProtocolBufferException {
1740 return PARSER.parseFrom(data, extensionRegistry);
1742 public static com.openxc.BinaryMessages.RawMessage parseFrom(byte[] data)
1743 throws com.google.protobuf.InvalidProtocolBufferException {
1744 return PARSER.parseFrom(data);
1746 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1749 throws com.google.protobuf.InvalidProtocolBufferException {
1750 return PARSER.parseFrom(data, extensionRegistry);
1752 public static com.openxc.BinaryMessages.RawMessage parseFrom(java.io.InputStream input)
1753 throws java.io.IOException {
1754 return PARSER.parseFrom(input);
1756 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1757 java.io.InputStream input,
1758 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1759 throws java.io.IOException {
1760 return PARSER.parseFrom(input, extensionRegistry);
1762 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(java.io.InputStream input)
1763 throws java.io.IOException {
1764 return PARSER.parseDelimitedFrom(input);
1766 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(
1767 java.io.InputStream input,
1768 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1769 throws java.io.IOException {
1770 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1772 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1773 com.google.protobuf.CodedInputStream input)
1774 throws java.io.IOException {
1775 return PARSER.parseFrom(input);
1777 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1778 com.google.protobuf.CodedInputStream input,
1779 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1780 throws java.io.IOException {
1781 return PARSER.parseFrom(input, extensionRegistry);
1784 public static Builder newBuilder() { return Builder.create(); }
1785 public Builder newBuilderForType() { return newBuilder(); }
1786 public static Builder newBuilder(com.openxc.BinaryMessages.RawMessage prototype) {
1787 return newBuilder().mergeFrom(prototype);
1789 public Builder toBuilder() { return newBuilder(this); }
1792 protected Builder newBuilderForType(
1793 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1794 Builder builder = new Builder(parent);
1798 * Protobuf type {@code openxc.RawMessage}
1800 public static final class Builder extends
1801 com.google.protobuf.GeneratedMessage.Builder<Builder>
1802 implements com.openxc.BinaryMessages.RawMessageOrBuilder {
1803 public static final com.google.protobuf.Descriptors.Descriptor
1805 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1808 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1809 internalGetFieldAccessorTable() {
1810 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1811 .ensureFieldAccessorsInitialized(
1812 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1815 // Construct using com.openxc.BinaryMessages.RawMessage.newBuilder()
1817 maybeForceBuilderInitialization();
1821 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1823 maybeForceBuilderInitialization();
1825 private void maybeForceBuilderInitialization() {
1826 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1829 private static Builder create() {
1830 return new Builder();
1833 public Builder clear() {
1836 bitField0_ = (bitField0_ & ~0x00000001);
1838 bitField0_ = (bitField0_ & ~0x00000002);
1839 data_ = com.google.protobuf.ByteString.EMPTY;
1840 bitField0_ = (bitField0_ & ~0x00000004);
1844 public Builder clone() {
1845 return create().mergeFrom(buildPartial());
1848 public com.google.protobuf.Descriptors.Descriptor
1849 getDescriptorForType() {
1850 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1853 public com.openxc.BinaryMessages.RawMessage getDefaultInstanceForType() {
1854 return com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
1857 public com.openxc.BinaryMessages.RawMessage build() {
1858 com.openxc.BinaryMessages.RawMessage result = buildPartial();
1859 if (!result.isInitialized()) {
1860 throw newUninitializedMessageException(result);
1865 public com.openxc.BinaryMessages.RawMessage buildPartial() {
1866 com.openxc.BinaryMessages.RawMessage result = new com.openxc.BinaryMessages.RawMessage(this);
1867 int from_bitField0_ = bitField0_;
1868 int to_bitField0_ = 0;
1869 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1870 to_bitField0_ |= 0x00000001;
1873 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1874 to_bitField0_ |= 0x00000002;
1876 result.messageId_ = messageId_;
1877 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1878 to_bitField0_ |= 0x00000004;
1880 result.data_ = data_;
1881 result.bitField0_ = to_bitField0_;
1886 public Builder mergeFrom(com.google.protobuf.Message other) {
1887 if (other instanceof com.openxc.BinaryMessages.RawMessage) {
1888 return mergeFrom((com.openxc.BinaryMessages.RawMessage)other);
1890 super.mergeFrom(other);
1895 public Builder mergeFrom(com.openxc.BinaryMessages.RawMessage other) {
1896 if (other == com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) return this;
1897 if (other.hasBus()) {
1898 setBus(other.getBus());
1900 if (other.hasMessageId()) {
1901 setMessageId(other.getMessageId());
1903 if (other.hasData()) {
1904 setData(other.getData());
1906 this.mergeUnknownFields(other.getUnknownFields());
1910 public final boolean isInitialized() {
1914 public Builder mergeFrom(
1915 com.google.protobuf.CodedInputStream input,
1916 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1917 throws java.io.IOException {
1918 com.openxc.BinaryMessages.RawMessage parsedMessage = null;
1920 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1921 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1922 parsedMessage = (com.openxc.BinaryMessages.RawMessage) e.getUnfinishedMessage();
1925 if (parsedMessage != null) {
1926 mergeFrom(parsedMessage);
1931 private int bitField0_;
1933 // optional int32 bus = 1;
1936 * <code>optional int32 bus = 1;</code>
1938 public boolean hasBus() {
1939 return ((bitField0_ & 0x00000001) == 0x00000001);
1942 * <code>optional int32 bus = 1;</code>
1944 public int getBus() {
1948 * <code>optional int32 bus = 1;</code>
1950 public Builder setBus(int value) {
1951 bitField0_ |= 0x00000001;
1957 * <code>optional int32 bus = 1;</code>
1959 public Builder clearBus() {
1960 bitField0_ = (bitField0_ & ~0x00000001);
1966 // optional uint32 message_id = 2;
1967 private int messageId_ ;
1969 * <code>optional uint32 message_id = 2;</code>
1971 public boolean hasMessageId() {
1972 return ((bitField0_ & 0x00000002) == 0x00000002);
1975 * <code>optional uint32 message_id = 2;</code>
1977 public int getMessageId() {
1981 * <code>optional uint32 message_id = 2;</code>
1983 public Builder setMessageId(int value) {
1984 bitField0_ |= 0x00000002;
1990 * <code>optional uint32 message_id = 2;</code>
1992 public Builder clearMessageId() {
1993 bitField0_ = (bitField0_ & ~0x00000002);
1999 // optional bytes data = 3;
2000 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
2002 * <code>optional bytes data = 3;</code>
2004 public boolean hasData() {
2005 return ((bitField0_ & 0x00000004) == 0x00000004);
2008 * <code>optional bytes data = 3;</code>
2010 public com.google.protobuf.ByteString getData() {
2014 * <code>optional bytes data = 3;</code>
2016 public Builder setData(com.google.protobuf.ByteString value) {
2017 if (value == null) {
2018 throw new NullPointerException();
2020 bitField0_ |= 0x00000004;
2026 * <code>optional bytes data = 3;</code>
2028 public Builder clearData() {
2029 bitField0_ = (bitField0_ & ~0x00000004);
2030 data_ = getDefaultInstance().getData();
2035 // @@protoc_insertion_point(builder_scope:openxc.RawMessage)
2039 defaultInstance = new RawMessage(true);
2040 defaultInstance.initFields();
2043 // @@protoc_insertion_point(class_scope:openxc.RawMessage)
2046 public interface ControlCommandOrBuilder
2047 extends com.google.protobuf.MessageOrBuilder {
2049 // optional .openxc.ControlCommand.Type type = 1;
2051 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2055 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2057 com.openxc.BinaryMessages.ControlCommand.Type getType();
2059 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2061 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2063 boolean hasDiagnosticRequest();
2065 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2067 com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest();
2069 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2071 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder();
2073 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2075 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2077 boolean hasPassthroughModeRequest();
2079 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2081 com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest();
2083 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2085 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder();
2087 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2089 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2091 boolean hasAcceptanceFilterBypassCommand();
2093 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2095 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand();
2097 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2099 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder();
2101 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2103 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2105 boolean hasPayloadFormatCommand();
2107 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2109 com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand();
2111 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2113 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder();
2115 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2117 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2119 boolean hasPredefinedObd2RequestsCommand();
2121 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2123 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand();
2125 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2127 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder();
2130 * Protobuf type {@code openxc.ControlCommand}
2132 public static final class ControlCommand extends
2133 com.google.protobuf.GeneratedMessage
2134 implements ControlCommandOrBuilder {
2135 // Use ControlCommand.newBuilder() to construct.
2136 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2138 this.unknownFields = builder.getUnknownFields();
2140 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2142 private static final ControlCommand defaultInstance;
2143 public static ControlCommand getDefaultInstance() {
2144 return defaultInstance;
2147 public ControlCommand getDefaultInstanceForType() {
2148 return defaultInstance;
2151 private final com.google.protobuf.UnknownFieldSet unknownFields;
2153 public final com.google.protobuf.UnknownFieldSet
2154 getUnknownFields() {
2155 return this.unknownFields;
2157 private ControlCommand(
2158 com.google.protobuf.CodedInputStream input,
2159 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2160 throws com.google.protobuf.InvalidProtocolBufferException {
2162 int mutable_bitField0_ = 0;
2163 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2164 com.google.protobuf.UnknownFieldSet.newBuilder();
2166 boolean done = false;
2168 int tag = input.readTag();
2174 if (!parseUnknownField(input, unknownFields,
2175 extensionRegistry, tag)) {
2181 int rawValue = input.readEnum();
2182 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2183 if (value == null) {
2184 unknownFields.mergeVarintField(1, rawValue);
2186 bitField0_ |= 0x00000001;
2192 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = null;
2193 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2194 subBuilder = diagnosticRequest_.toBuilder();
2196 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticControlCommand.PARSER, extensionRegistry);
2197 if (subBuilder != null) {
2198 subBuilder.mergeFrom(diagnosticRequest_);
2199 diagnosticRequest_ = subBuilder.buildPartial();
2201 bitField0_ |= 0x00000002;
2205 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = null;
2206 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2207 subBuilder = passthroughModeRequest_.toBuilder();
2209 passthroughModeRequest_ = input.readMessage(com.openxc.BinaryMessages.PassthroughModeControlCommand.PARSER, extensionRegistry);
2210 if (subBuilder != null) {
2211 subBuilder.mergeFrom(passthroughModeRequest_);
2212 passthroughModeRequest_ = subBuilder.buildPartial();
2214 bitField0_ |= 0x00000004;
2218 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = null;
2219 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2220 subBuilder = acceptanceFilterBypassCommand_.toBuilder();
2222 acceptanceFilterBypassCommand_ = input.readMessage(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.PARSER, extensionRegistry);
2223 if (subBuilder != null) {
2224 subBuilder.mergeFrom(acceptanceFilterBypassCommand_);
2225 acceptanceFilterBypassCommand_ = subBuilder.buildPartial();
2227 bitField0_ |= 0x00000008;
2231 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = null;
2232 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2233 subBuilder = payloadFormatCommand_.toBuilder();
2235 payloadFormatCommand_ = input.readMessage(com.openxc.BinaryMessages.PayloadFormatCommand.PARSER, extensionRegistry);
2236 if (subBuilder != null) {
2237 subBuilder.mergeFrom(payloadFormatCommand_);
2238 payloadFormatCommand_ = subBuilder.buildPartial();
2240 bitField0_ |= 0x00000010;
2244 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = null;
2245 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2246 subBuilder = predefinedObd2RequestsCommand_.toBuilder();
2248 predefinedObd2RequestsCommand_ = input.readMessage(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.PARSER, extensionRegistry);
2249 if (subBuilder != null) {
2250 subBuilder.mergeFrom(predefinedObd2RequestsCommand_);
2251 predefinedObd2RequestsCommand_ = subBuilder.buildPartial();
2253 bitField0_ |= 0x00000020;
2258 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2259 throw e.setUnfinishedMessage(this);
2260 } catch (java.io.IOException e) {
2261 throw new com.google.protobuf.InvalidProtocolBufferException(
2262 e.getMessage()).setUnfinishedMessage(this);
2264 this.unknownFields = unknownFields.build();
2265 makeExtensionsImmutable();
2268 public static final com.google.protobuf.Descriptors.Descriptor
2270 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2273 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2274 internalGetFieldAccessorTable() {
2275 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2276 .ensureFieldAccessorsInitialized(
2277 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2280 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2281 new com.google.protobuf.AbstractParser<ControlCommand>() {
2282 public ControlCommand parsePartialFrom(
2283 com.google.protobuf.CodedInputStream input,
2284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2285 throws com.google.protobuf.InvalidProtocolBufferException {
2286 return new ControlCommand(input, extensionRegistry);
2291 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2296 * Protobuf enum {@code openxc.ControlCommand.Type}
2299 implements com.google.protobuf.ProtocolMessageEnum {
2301 * <code>VERSION = 1;</code>
2305 * <code>DEVICE_ID = 2;</code>
2309 * <code>DIAGNOSTIC = 3;</code>
2313 * <code>PASSTHROUGH = 4;</code>
2317 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2319 ACCEPTANCE_FILTER_BYPASS(4, 5),
2321 * <code>PAYLOAD_FORMAT = 6;</code>
2323 PAYLOAD_FORMAT(5, 6),
2325 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2327 PREDEFINED_OBD2_REQUESTS(6, 7),
2331 * <code>VERSION = 1;</code>
2333 public static final int VERSION_VALUE = 1;
2335 * <code>DEVICE_ID = 2;</code>
2337 public static final int DEVICE_ID_VALUE = 2;
2339 * <code>DIAGNOSTIC = 3;</code>
2341 public static final int DIAGNOSTIC_VALUE = 3;
2343 * <code>PASSTHROUGH = 4;</code>
2345 public static final int PASSTHROUGH_VALUE = 4;
2347 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2349 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
2351 * <code>PAYLOAD_FORMAT = 6;</code>
2353 public static final int PAYLOAD_FORMAT_VALUE = 6;
2355 * <code>PREDEFINED_OBD2_REQUESTS = 7;</code>
2357 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
2360 public final int getNumber() { return value; }
2362 public static Type valueOf(int value) {
2364 case 1: return VERSION;
2365 case 2: return DEVICE_ID;
2366 case 3: return DIAGNOSTIC;
2367 case 4: return PASSTHROUGH;
2368 case 5: return ACCEPTANCE_FILTER_BYPASS;
2369 case 6: return PAYLOAD_FORMAT;
2370 case 7: return PREDEFINED_OBD2_REQUESTS;
2371 default: return null;
2375 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2376 internalGetValueMap() {
2377 return internalValueMap;
2379 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2381 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2382 public Type findValueByNumber(int number) {
2383 return Type.valueOf(number);
2387 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2388 getValueDescriptor() {
2389 return getDescriptor().getValues().get(index);
2391 public final com.google.protobuf.Descriptors.EnumDescriptor
2392 getDescriptorForType() {
2393 return getDescriptor();
2395 public static final com.google.protobuf.Descriptors.EnumDescriptor
2397 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2400 private static final Type[] VALUES = values();
2402 public static Type valueOf(
2403 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2404 if (desc.getType() != getDescriptor()) {
2405 throw new java.lang.IllegalArgumentException(
2406 "EnumValueDescriptor is not for this type.");
2408 return VALUES[desc.getIndex()];
2411 private final int index;
2412 private final int value;
2414 private Type(int index, int value) {
2419 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2422 private int bitField0_;
2423 // optional .openxc.ControlCommand.Type type = 1;
2424 public static final int TYPE_FIELD_NUMBER = 1;
2425 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2427 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2429 public boolean hasType() {
2430 return ((bitField0_ & 0x00000001) == 0x00000001);
2433 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2435 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2439 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2440 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2441 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
2443 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2445 public boolean hasDiagnosticRequest() {
2446 return ((bitField0_ & 0x00000002) == 0x00000002);
2449 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2451 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2452 return diagnosticRequest_;
2455 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2457 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2458 return diagnosticRequest_;
2461 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2462 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
2463 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
2465 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2467 public boolean hasPassthroughModeRequest() {
2468 return ((bitField0_ & 0x00000004) == 0x00000004);
2471 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2473 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2474 return passthroughModeRequest_;
2477 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2479 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2480 return passthroughModeRequest_;
2483 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2484 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2485 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2487 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2489 public boolean hasAcceptanceFilterBypassCommand() {
2490 return ((bitField0_ & 0x00000008) == 0x00000008);
2493 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2495 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2496 return acceptanceFilterBypassCommand_;
2499 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2501 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2502 return acceptanceFilterBypassCommand_;
2505 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2506 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2507 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2509 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2511 public boolean hasPayloadFormatCommand() {
2512 return ((bitField0_ & 0x00000010) == 0x00000010);
2515 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2517 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2518 return payloadFormatCommand_;
2521 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
2523 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2524 return payloadFormatCommand_;
2527 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2528 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2529 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2531 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2533 public boolean hasPredefinedObd2RequestsCommand() {
2534 return ((bitField0_ & 0x00000020) == 0x00000020);
2537 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2539 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2540 return predefinedObd2RequestsCommand_;
2543 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
2545 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2546 return predefinedObd2RequestsCommand_;
2549 private void initFields() {
2550 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2551 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2552 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2553 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2554 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2555 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2557 private byte memoizedIsInitialized = -1;
2558 public final boolean isInitialized() {
2559 byte isInitialized = memoizedIsInitialized;
2560 if (isInitialized != -1) return isInitialized == 1;
2562 memoizedIsInitialized = 1;
2566 public void writeTo(com.google.protobuf.CodedOutputStream output)
2567 throws java.io.IOException {
2568 getSerializedSize();
2569 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2570 output.writeEnum(1, type_.getNumber());
2572 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2573 output.writeMessage(2, diagnosticRequest_);
2575 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2576 output.writeMessage(3, passthroughModeRequest_);
2578 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2579 output.writeMessage(4, acceptanceFilterBypassCommand_);
2581 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2582 output.writeMessage(5, payloadFormatCommand_);
2584 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2585 output.writeMessage(6, predefinedObd2RequestsCommand_);
2587 getUnknownFields().writeTo(output);
2590 private int memoizedSerializedSize = -1;
2591 public int getSerializedSize() {
2592 int size = memoizedSerializedSize;
2593 if (size != -1) return size;
2596 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2597 size += com.google.protobuf.CodedOutputStream
2598 .computeEnumSize(1, type_.getNumber());
2600 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2601 size += com.google.protobuf.CodedOutputStream
2602 .computeMessageSize(2, diagnosticRequest_);
2604 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2605 size += com.google.protobuf.CodedOutputStream
2606 .computeMessageSize(3, passthroughModeRequest_);
2608 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2609 size += com.google.protobuf.CodedOutputStream
2610 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2612 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2613 size += com.google.protobuf.CodedOutputStream
2614 .computeMessageSize(5, payloadFormatCommand_);
2616 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2617 size += com.google.protobuf.CodedOutputStream
2618 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2620 size += getUnknownFields().getSerializedSize();
2621 memoizedSerializedSize = size;
2625 private static final long serialVersionUID = 0L;
2627 protected java.lang.Object writeReplace()
2628 throws java.io.ObjectStreamException {
2629 return super.writeReplace();
2632 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2633 com.google.protobuf.ByteString data)
2634 throws com.google.protobuf.InvalidProtocolBufferException {
2635 return PARSER.parseFrom(data);
2637 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2638 com.google.protobuf.ByteString data,
2639 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2640 throws com.google.protobuf.InvalidProtocolBufferException {
2641 return PARSER.parseFrom(data, extensionRegistry);
2643 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2644 throws com.google.protobuf.InvalidProtocolBufferException {
2645 return PARSER.parseFrom(data);
2647 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2649 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2650 throws com.google.protobuf.InvalidProtocolBufferException {
2651 return PARSER.parseFrom(data, extensionRegistry);
2653 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2654 throws java.io.IOException {
2655 return PARSER.parseFrom(input);
2657 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2658 java.io.InputStream input,
2659 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2660 throws java.io.IOException {
2661 return PARSER.parseFrom(input, extensionRegistry);
2663 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2664 throws java.io.IOException {
2665 return PARSER.parseDelimitedFrom(input);
2667 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2668 java.io.InputStream input,
2669 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2670 throws java.io.IOException {
2671 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2673 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2674 com.google.protobuf.CodedInputStream input)
2675 throws java.io.IOException {
2676 return PARSER.parseFrom(input);
2678 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2679 com.google.protobuf.CodedInputStream input,
2680 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2681 throws java.io.IOException {
2682 return PARSER.parseFrom(input, extensionRegistry);
2685 public static Builder newBuilder() { return Builder.create(); }
2686 public Builder newBuilderForType() { return newBuilder(); }
2687 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2688 return newBuilder().mergeFrom(prototype);
2690 public Builder toBuilder() { return newBuilder(this); }
2693 protected Builder newBuilderForType(
2694 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2695 Builder builder = new Builder(parent);
2699 * Protobuf type {@code openxc.ControlCommand}
2701 public static final class Builder extends
2702 com.google.protobuf.GeneratedMessage.Builder<Builder>
2703 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2704 public static final com.google.protobuf.Descriptors.Descriptor
2706 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2709 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2710 internalGetFieldAccessorTable() {
2711 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2712 .ensureFieldAccessorsInitialized(
2713 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2716 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2718 maybeForceBuilderInitialization();
2722 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2724 maybeForceBuilderInitialization();
2726 private void maybeForceBuilderInitialization() {
2727 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2728 getDiagnosticRequestFieldBuilder();
2729 getPassthroughModeRequestFieldBuilder();
2730 getAcceptanceFilterBypassCommandFieldBuilder();
2731 getPayloadFormatCommandFieldBuilder();
2732 getPredefinedObd2RequestsCommandFieldBuilder();
2735 private static Builder create() {
2736 return new Builder();
2739 public Builder clear() {
2741 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2742 bitField0_ = (bitField0_ & ~0x00000001);
2743 if (diagnosticRequestBuilder_ == null) {
2744 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2746 diagnosticRequestBuilder_.clear();
2748 bitField0_ = (bitField0_ & ~0x00000002);
2749 if (passthroughModeRequestBuilder_ == null) {
2750 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2752 passthroughModeRequestBuilder_.clear();
2754 bitField0_ = (bitField0_ & ~0x00000004);
2755 if (acceptanceFilterBypassCommandBuilder_ == null) {
2756 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2758 acceptanceFilterBypassCommandBuilder_.clear();
2760 bitField0_ = (bitField0_ & ~0x00000008);
2761 if (payloadFormatCommandBuilder_ == null) {
2762 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2764 payloadFormatCommandBuilder_.clear();
2766 bitField0_ = (bitField0_ & ~0x00000010);
2767 if (predefinedObd2RequestsCommandBuilder_ == null) {
2768 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2770 predefinedObd2RequestsCommandBuilder_.clear();
2772 bitField0_ = (bitField0_ & ~0x00000020);
2776 public Builder clone() {
2777 return create().mergeFrom(buildPartial());
2780 public com.google.protobuf.Descriptors.Descriptor
2781 getDescriptorForType() {
2782 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2785 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2786 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2789 public com.openxc.BinaryMessages.ControlCommand build() {
2790 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2791 if (!result.isInitialized()) {
2792 throw newUninitializedMessageException(result);
2797 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2798 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2799 int from_bitField0_ = bitField0_;
2800 int to_bitField0_ = 0;
2801 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2802 to_bitField0_ |= 0x00000001;
2804 result.type_ = type_;
2805 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2806 to_bitField0_ |= 0x00000002;
2808 if (diagnosticRequestBuilder_ == null) {
2809 result.diagnosticRequest_ = diagnosticRequest_;
2811 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2813 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2814 to_bitField0_ |= 0x00000004;
2816 if (passthroughModeRequestBuilder_ == null) {
2817 result.passthroughModeRequest_ = passthroughModeRequest_;
2819 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2821 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2822 to_bitField0_ |= 0x00000008;
2824 if (acceptanceFilterBypassCommandBuilder_ == null) {
2825 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2827 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2829 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2830 to_bitField0_ |= 0x00000010;
2832 if (payloadFormatCommandBuilder_ == null) {
2833 result.payloadFormatCommand_ = payloadFormatCommand_;
2835 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
2837 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2838 to_bitField0_ |= 0x00000020;
2840 if (predefinedObd2RequestsCommandBuilder_ == null) {
2841 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
2843 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
2845 result.bitField0_ = to_bitField0_;
2850 public Builder mergeFrom(com.google.protobuf.Message other) {
2851 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2852 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2854 super.mergeFrom(other);
2859 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2860 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2861 if (other.hasType()) {
2862 setType(other.getType());
2864 if (other.hasDiagnosticRequest()) {
2865 mergeDiagnosticRequest(other.getDiagnosticRequest());
2867 if (other.hasPassthroughModeRequest()) {
2868 mergePassthroughModeRequest(other.getPassthroughModeRequest());
2870 if (other.hasAcceptanceFilterBypassCommand()) {
2871 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
2873 if (other.hasPayloadFormatCommand()) {
2874 mergePayloadFormatCommand(other.getPayloadFormatCommand());
2876 if (other.hasPredefinedObd2RequestsCommand()) {
2877 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
2879 this.mergeUnknownFields(other.getUnknownFields());
2883 public final boolean isInitialized() {
2887 public Builder mergeFrom(
2888 com.google.protobuf.CodedInputStream input,
2889 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2890 throws java.io.IOException {
2891 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
2893 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2894 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2895 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
2898 if (parsedMessage != null) {
2899 mergeFrom(parsedMessage);
2904 private int bitField0_;
2906 // optional .openxc.ControlCommand.Type type = 1;
2907 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2909 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2911 public boolean hasType() {
2912 return ((bitField0_ & 0x00000001) == 0x00000001);
2915 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2917 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2921 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2923 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2924 if (value == null) {
2925 throw new NullPointerException();
2927 bitField0_ |= 0x00000001;
2933 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2935 public Builder clearType() {
2936 bitField0_ = (bitField0_ & ~0x00000001);
2937 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2942 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2943 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2944 private com.google.protobuf.SingleFieldBuilder<
2945 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
2947 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2949 public boolean hasDiagnosticRequest() {
2950 return ((bitField0_ & 0x00000002) == 0x00000002);
2953 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2955 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2956 if (diagnosticRequestBuilder_ == null) {
2957 return diagnosticRequest_;
2959 return diagnosticRequestBuilder_.getMessage();
2963 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2965 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2966 if (diagnosticRequestBuilder_ == null) {
2967 if (value == null) {
2968 throw new NullPointerException();
2970 diagnosticRequest_ = value;
2973 diagnosticRequestBuilder_.setMessage(value);
2975 bitField0_ |= 0x00000002;
2979 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2981 public Builder setDiagnosticRequest(
2982 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
2983 if (diagnosticRequestBuilder_ == null) {
2984 diagnosticRequest_ = builderForValue.build();
2987 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2989 bitField0_ |= 0x00000002;
2993 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2995 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2996 if (diagnosticRequestBuilder_ == null) {
2997 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2998 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
2999 diagnosticRequest_ =
3000 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
3002 diagnosticRequest_ = value;
3006 diagnosticRequestBuilder_.mergeFrom(value);
3008 bitField0_ |= 0x00000002;
3012 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3014 public Builder clearDiagnosticRequest() {
3015 if (diagnosticRequestBuilder_ == null) {
3016 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3019 diagnosticRequestBuilder_.clear();
3021 bitField0_ = (bitField0_ & ~0x00000002);
3025 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3027 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
3028 bitField0_ |= 0x00000002;
3030 return getDiagnosticRequestFieldBuilder().getBuilder();
3033 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3035 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
3036 if (diagnosticRequestBuilder_ != null) {
3037 return diagnosticRequestBuilder_.getMessageOrBuilder();
3039 return diagnosticRequest_;
3043 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
3045 private com.google.protobuf.SingleFieldBuilder<
3046 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
3047 getDiagnosticRequestFieldBuilder() {
3048 if (diagnosticRequestBuilder_ == null) {
3049 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3050 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
3052 getParentForChildren(),
3054 diagnosticRequest_ = null;
3056 return diagnosticRequestBuilder_;
3059 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
3060 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3061 private com.google.protobuf.SingleFieldBuilder<
3062 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
3064 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3066 public boolean hasPassthroughModeRequest() {
3067 return ((bitField0_ & 0x00000004) == 0x00000004);
3070 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3072 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
3073 if (passthroughModeRequestBuilder_ == null) {
3074 return passthroughModeRequest_;
3076 return passthroughModeRequestBuilder_.getMessage();
3080 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3082 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3083 if (passthroughModeRequestBuilder_ == null) {
3084 if (value == null) {
3085 throw new NullPointerException();
3087 passthroughModeRequest_ = value;
3090 passthroughModeRequestBuilder_.setMessage(value);
3092 bitField0_ |= 0x00000004;
3096 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3098 public Builder setPassthroughModeRequest(
3099 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
3100 if (passthroughModeRequestBuilder_ == null) {
3101 passthroughModeRequest_ = builderForValue.build();
3104 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
3106 bitField0_ |= 0x00000004;
3110 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3112 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
3113 if (passthroughModeRequestBuilder_ == null) {
3114 if (((bitField0_ & 0x00000004) == 0x00000004) &&
3115 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
3116 passthroughModeRequest_ =
3117 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
3119 passthroughModeRequest_ = value;
3123 passthroughModeRequestBuilder_.mergeFrom(value);
3125 bitField0_ |= 0x00000004;
3129 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3131 public Builder clearPassthroughModeRequest() {
3132 if (passthroughModeRequestBuilder_ == null) {
3133 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
3136 passthroughModeRequestBuilder_.clear();
3138 bitField0_ = (bitField0_ & ~0x00000004);
3142 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3144 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
3145 bitField0_ |= 0x00000004;
3147 return getPassthroughModeRequestFieldBuilder().getBuilder();
3150 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3152 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
3153 if (passthroughModeRequestBuilder_ != null) {
3154 return passthroughModeRequestBuilder_.getMessageOrBuilder();
3156 return passthroughModeRequest_;
3160 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
3162 private com.google.protobuf.SingleFieldBuilder<
3163 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
3164 getPassthroughModeRequestFieldBuilder() {
3165 if (passthroughModeRequestBuilder_ == null) {
3166 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3167 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
3168 passthroughModeRequest_,
3169 getParentForChildren(),
3171 passthroughModeRequest_ = null;
3173 return passthroughModeRequestBuilder_;
3176 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
3177 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3178 private com.google.protobuf.SingleFieldBuilder<
3179 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
3181 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3183 public boolean hasAcceptanceFilterBypassCommand() {
3184 return ((bitField0_ & 0x00000008) == 0x00000008);
3187 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3189 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
3190 if (acceptanceFilterBypassCommandBuilder_ == null) {
3191 return acceptanceFilterBypassCommand_;
3193 return acceptanceFilterBypassCommandBuilder_.getMessage();
3197 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3199 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3200 if (acceptanceFilterBypassCommandBuilder_ == null) {
3201 if (value == null) {
3202 throw new NullPointerException();
3204 acceptanceFilterBypassCommand_ = value;
3207 acceptanceFilterBypassCommandBuilder_.setMessage(value);
3209 bitField0_ |= 0x00000008;
3213 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3215 public Builder setAcceptanceFilterBypassCommand(
3216 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
3217 if (acceptanceFilterBypassCommandBuilder_ == null) {
3218 acceptanceFilterBypassCommand_ = builderForValue.build();
3221 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
3223 bitField0_ |= 0x00000008;
3227 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3229 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3230 if (acceptanceFilterBypassCommandBuilder_ == null) {
3231 if (((bitField0_ & 0x00000008) == 0x00000008) &&
3232 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
3233 acceptanceFilterBypassCommand_ =
3234 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
3236 acceptanceFilterBypassCommand_ = value;
3240 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
3242 bitField0_ |= 0x00000008;
3246 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3248 public Builder clearAcceptanceFilterBypassCommand() {
3249 if (acceptanceFilterBypassCommandBuilder_ == null) {
3250 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3253 acceptanceFilterBypassCommandBuilder_.clear();
3255 bitField0_ = (bitField0_ & ~0x00000008);
3259 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3261 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
3262 bitField0_ |= 0x00000008;
3264 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
3267 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3269 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
3270 if (acceptanceFilterBypassCommandBuilder_ != null) {
3271 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
3273 return acceptanceFilterBypassCommand_;
3277 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3279 private com.google.protobuf.SingleFieldBuilder<
3280 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
3281 getAcceptanceFilterBypassCommandFieldBuilder() {
3282 if (acceptanceFilterBypassCommandBuilder_ == null) {
3283 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3284 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
3285 acceptanceFilterBypassCommand_,
3286 getParentForChildren(),
3288 acceptanceFilterBypassCommand_ = null;
3290 return acceptanceFilterBypassCommandBuilder_;
3293 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
3294 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3295 private com.google.protobuf.SingleFieldBuilder<
3296 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
3298 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3300 public boolean hasPayloadFormatCommand() {
3301 return ((bitField0_ & 0x00000010) == 0x00000010);
3304 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3306 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
3307 if (payloadFormatCommandBuilder_ == null) {
3308 return payloadFormatCommand_;
3310 return payloadFormatCommandBuilder_.getMessage();
3314 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3316 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3317 if (payloadFormatCommandBuilder_ == null) {
3318 if (value == null) {
3319 throw new NullPointerException();
3321 payloadFormatCommand_ = value;
3324 payloadFormatCommandBuilder_.setMessage(value);
3326 bitField0_ |= 0x00000010;
3330 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3332 public Builder setPayloadFormatCommand(
3333 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
3334 if (payloadFormatCommandBuilder_ == null) {
3335 payloadFormatCommand_ = builderForValue.build();
3338 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
3340 bitField0_ |= 0x00000010;
3344 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3346 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
3347 if (payloadFormatCommandBuilder_ == null) {
3348 if (((bitField0_ & 0x00000010) == 0x00000010) &&
3349 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
3350 payloadFormatCommand_ =
3351 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
3353 payloadFormatCommand_ = value;
3357 payloadFormatCommandBuilder_.mergeFrom(value);
3359 bitField0_ |= 0x00000010;
3363 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3365 public Builder clearPayloadFormatCommand() {
3366 if (payloadFormatCommandBuilder_ == null) {
3367 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
3370 payloadFormatCommandBuilder_.clear();
3372 bitField0_ = (bitField0_ & ~0x00000010);
3376 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3378 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
3379 bitField0_ |= 0x00000010;
3381 return getPayloadFormatCommandFieldBuilder().getBuilder();
3384 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3386 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
3387 if (payloadFormatCommandBuilder_ != null) {
3388 return payloadFormatCommandBuilder_.getMessageOrBuilder();
3390 return payloadFormatCommand_;
3394 * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code>
3396 private com.google.protobuf.SingleFieldBuilder<
3397 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
3398 getPayloadFormatCommandFieldBuilder() {
3399 if (payloadFormatCommandBuilder_ == null) {
3400 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3401 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
3402 payloadFormatCommand_,
3403 getParentForChildren(),
3405 payloadFormatCommand_ = null;
3407 return payloadFormatCommandBuilder_;
3410 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
3411 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3412 private com.google.protobuf.SingleFieldBuilder<
3413 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
3415 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3417 public boolean hasPredefinedObd2RequestsCommand() {
3418 return ((bitField0_ & 0x00000020) == 0x00000020);
3421 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3423 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
3424 if (predefinedObd2RequestsCommandBuilder_ == null) {
3425 return predefinedObd2RequestsCommand_;
3427 return predefinedObd2RequestsCommandBuilder_.getMessage();
3431 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3433 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3434 if (predefinedObd2RequestsCommandBuilder_ == null) {
3435 if (value == null) {
3436 throw new NullPointerException();
3438 predefinedObd2RequestsCommand_ = value;
3441 predefinedObd2RequestsCommandBuilder_.setMessage(value);
3443 bitField0_ |= 0x00000020;
3447 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3449 public Builder setPredefinedObd2RequestsCommand(
3450 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
3451 if (predefinedObd2RequestsCommandBuilder_ == null) {
3452 predefinedObd2RequestsCommand_ = builderForValue.build();
3455 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
3457 bitField0_ |= 0x00000020;
3461 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3463 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3464 if (predefinedObd2RequestsCommandBuilder_ == null) {
3465 if (((bitField0_ & 0x00000020) == 0x00000020) &&
3466 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
3467 predefinedObd2RequestsCommand_ =
3468 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3470 predefinedObd2RequestsCommand_ = value;
3474 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3476 bitField0_ |= 0x00000020;
3480 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3482 public Builder clearPredefinedObd2RequestsCommand() {
3483 if (predefinedObd2RequestsCommandBuilder_ == null) {
3484 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3487 predefinedObd2RequestsCommandBuilder_.clear();
3489 bitField0_ = (bitField0_ & ~0x00000020);
3493 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3495 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3496 bitField0_ |= 0x00000020;
3498 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3501 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3503 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3504 if (predefinedObd2RequestsCommandBuilder_ != null) {
3505 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3507 return predefinedObd2RequestsCommand_;
3511 * <code>optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;</code>
3513 private com.google.protobuf.SingleFieldBuilder<
3514 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3515 getPredefinedObd2RequestsCommandFieldBuilder() {
3516 if (predefinedObd2RequestsCommandBuilder_ == null) {
3517 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3518 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3519 predefinedObd2RequestsCommand_,
3520 getParentForChildren(),
3522 predefinedObd2RequestsCommand_ = null;
3524 return predefinedObd2RequestsCommandBuilder_;
3527 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3531 defaultInstance = new ControlCommand(true);
3532 defaultInstance.initFields();
3535 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3538 public interface DiagnosticControlCommandOrBuilder
3539 extends com.google.protobuf.MessageOrBuilder {
3541 // optional .openxc.DiagnosticRequest request = 1;
3543 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3545 boolean hasRequest();
3547 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3549 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3551 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3553 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3555 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3557 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3559 boolean hasAction();
3561 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3563 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3566 * Protobuf type {@code openxc.DiagnosticControlCommand}
3568 public static final class DiagnosticControlCommand extends
3569 com.google.protobuf.GeneratedMessage
3570 implements DiagnosticControlCommandOrBuilder {
3571 // Use DiagnosticControlCommand.newBuilder() to construct.
3572 private DiagnosticControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3574 this.unknownFields = builder.getUnknownFields();
3576 private DiagnosticControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3578 private static final DiagnosticControlCommand defaultInstance;
3579 public static DiagnosticControlCommand getDefaultInstance() {
3580 return defaultInstance;
3583 public DiagnosticControlCommand getDefaultInstanceForType() {
3584 return defaultInstance;
3587 private final com.google.protobuf.UnknownFieldSet unknownFields;
3589 public final com.google.protobuf.UnknownFieldSet
3590 getUnknownFields() {
3591 return this.unknownFields;
3593 private DiagnosticControlCommand(
3594 com.google.protobuf.CodedInputStream input,
3595 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3596 throws com.google.protobuf.InvalidProtocolBufferException {
3598 int mutable_bitField0_ = 0;
3599 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3600 com.google.protobuf.UnknownFieldSet.newBuilder();
3602 boolean done = false;
3604 int tag = input.readTag();
3610 if (!parseUnknownField(input, unknownFields,
3611 extensionRegistry, tag)) {
3617 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
3618 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3619 subBuilder = request_.toBuilder();
3621 request_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
3622 if (subBuilder != null) {
3623 subBuilder.mergeFrom(request_);
3624 request_ = subBuilder.buildPartial();
3626 bitField0_ |= 0x00000001;
3630 int rawValue = input.readEnum();
3631 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3632 if (value == null) {
3633 unknownFields.mergeVarintField(2, rawValue);
3635 bitField0_ |= 0x00000002;
3642 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3643 throw e.setUnfinishedMessage(this);
3644 } catch (java.io.IOException e) {
3645 throw new com.google.protobuf.InvalidProtocolBufferException(
3646 e.getMessage()).setUnfinishedMessage(this);
3648 this.unknownFields = unknownFields.build();
3649 makeExtensionsImmutable();
3652 public static final com.google.protobuf.Descriptors.Descriptor
3654 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3657 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3658 internalGetFieldAccessorTable() {
3659 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3660 .ensureFieldAccessorsInitialized(
3661 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3664 public static com.google.protobuf.Parser<DiagnosticControlCommand> PARSER =
3665 new com.google.protobuf.AbstractParser<DiagnosticControlCommand>() {
3666 public DiagnosticControlCommand parsePartialFrom(
3667 com.google.protobuf.CodedInputStream input,
3668 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3669 throws com.google.protobuf.InvalidProtocolBufferException {
3670 return new DiagnosticControlCommand(input, extensionRegistry);
3675 public com.google.protobuf.Parser<DiagnosticControlCommand> getParserForType() {
3680 * Protobuf enum {@code openxc.DiagnosticControlCommand.Action}
3683 implements com.google.protobuf.ProtocolMessageEnum {
3685 * <code>ADD = 1;</code>
3689 * <code>CANCEL = 2;</code>
3695 * <code>ADD = 1;</code>
3697 public static final int ADD_VALUE = 1;
3699 * <code>CANCEL = 2;</code>
3701 public static final int CANCEL_VALUE = 2;
3704 public final int getNumber() { return value; }
3706 public static Action valueOf(int value) {
3709 case 2: return CANCEL;
3710 default: return null;
3714 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3715 internalGetValueMap() {
3716 return internalValueMap;
3718 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3720 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3721 public Action findValueByNumber(int number) {
3722 return Action.valueOf(number);
3726 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3727 getValueDescriptor() {
3728 return getDescriptor().getValues().get(index);
3730 public final com.google.protobuf.Descriptors.EnumDescriptor
3731 getDescriptorForType() {
3732 return getDescriptor();
3734 public static final com.google.protobuf.Descriptors.EnumDescriptor
3736 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3739 private static final Action[] VALUES = values();
3741 public static Action valueOf(
3742 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3743 if (desc.getType() != getDescriptor()) {
3744 throw new java.lang.IllegalArgumentException(
3745 "EnumValueDescriptor is not for this type.");
3747 return VALUES[desc.getIndex()];
3750 private final int index;
3751 private final int value;
3753 private Action(int index, int value) {
3758 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3761 private int bitField0_;
3762 // optional .openxc.DiagnosticRequest request = 1;
3763 public static final int REQUEST_FIELD_NUMBER = 1;
3764 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3766 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3768 public boolean hasRequest() {
3769 return ((bitField0_ & 0x00000001) == 0x00000001);
3772 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3774 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3778 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3780 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3784 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3785 public static final int ACTION_FIELD_NUMBER = 2;
3786 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3788 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3790 public boolean hasAction() {
3791 return ((bitField0_ & 0x00000002) == 0x00000002);
3794 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3796 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3800 private void initFields() {
3801 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3802 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3804 private byte memoizedIsInitialized = -1;
3805 public final boolean isInitialized() {
3806 byte isInitialized = memoizedIsInitialized;
3807 if (isInitialized != -1) return isInitialized == 1;
3809 memoizedIsInitialized = 1;
3813 public void writeTo(com.google.protobuf.CodedOutputStream output)
3814 throws java.io.IOException {
3815 getSerializedSize();
3816 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3817 output.writeMessage(1, request_);
3819 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3820 output.writeEnum(2, action_.getNumber());
3822 getUnknownFields().writeTo(output);
3825 private int memoizedSerializedSize = -1;
3826 public int getSerializedSize() {
3827 int size = memoizedSerializedSize;
3828 if (size != -1) return size;
3831 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3832 size += com.google.protobuf.CodedOutputStream
3833 .computeMessageSize(1, request_);
3835 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3836 size += com.google.protobuf.CodedOutputStream
3837 .computeEnumSize(2, action_.getNumber());
3839 size += getUnknownFields().getSerializedSize();
3840 memoizedSerializedSize = size;
3844 private static final long serialVersionUID = 0L;
3846 protected java.lang.Object writeReplace()
3847 throws java.io.ObjectStreamException {
3848 return super.writeReplace();
3851 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3852 com.google.protobuf.ByteString data)
3853 throws com.google.protobuf.InvalidProtocolBufferException {
3854 return PARSER.parseFrom(data);
3856 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3857 com.google.protobuf.ByteString data,
3858 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3859 throws com.google.protobuf.InvalidProtocolBufferException {
3860 return PARSER.parseFrom(data, extensionRegistry);
3862 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3863 throws com.google.protobuf.InvalidProtocolBufferException {
3864 return PARSER.parseFrom(data);
3866 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3868 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3869 throws com.google.protobuf.InvalidProtocolBufferException {
3870 return PARSER.parseFrom(data, extensionRegistry);
3872 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
3873 throws java.io.IOException {
3874 return PARSER.parseFrom(input);
3876 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3877 java.io.InputStream input,
3878 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3879 throws java.io.IOException {
3880 return PARSER.parseFrom(input, extensionRegistry);
3882 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
3883 throws java.io.IOException {
3884 return PARSER.parseDelimitedFrom(input);
3886 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
3887 java.io.InputStream input,
3888 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3889 throws java.io.IOException {
3890 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3892 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3893 com.google.protobuf.CodedInputStream input)
3894 throws java.io.IOException {
3895 return PARSER.parseFrom(input);
3897 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3898 com.google.protobuf.CodedInputStream input,
3899 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3900 throws java.io.IOException {
3901 return PARSER.parseFrom(input, extensionRegistry);
3904 public static Builder newBuilder() { return Builder.create(); }
3905 public Builder newBuilderForType() { return newBuilder(); }
3906 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
3907 return newBuilder().mergeFrom(prototype);
3909 public Builder toBuilder() { return newBuilder(this); }
3912 protected Builder newBuilderForType(
3913 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3914 Builder builder = new Builder(parent);
3918 * Protobuf type {@code openxc.DiagnosticControlCommand}
3920 public static final class Builder extends
3921 com.google.protobuf.GeneratedMessage.Builder<Builder>
3922 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
3923 public static final com.google.protobuf.Descriptors.Descriptor
3925 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3928 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3929 internalGetFieldAccessorTable() {
3930 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3931 .ensureFieldAccessorsInitialized(
3932 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3935 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
3937 maybeForceBuilderInitialization();
3941 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3943 maybeForceBuilderInitialization();
3945 private void maybeForceBuilderInitialization() {
3946 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3947 getRequestFieldBuilder();
3950 private static Builder create() {
3951 return new Builder();
3954 public Builder clear() {
3956 if (requestBuilder_ == null) {
3957 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3959 requestBuilder_.clear();
3961 bitField0_ = (bitField0_ & ~0x00000001);
3962 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3963 bitField0_ = (bitField0_ & ~0x00000002);
3967 public Builder clone() {
3968 return create().mergeFrom(buildPartial());
3971 public com.google.protobuf.Descriptors.Descriptor
3972 getDescriptorForType() {
3973 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3976 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
3977 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3980 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
3981 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3982 if (!result.isInitialized()) {
3983 throw newUninitializedMessageException(result);
3988 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
3989 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
3990 int from_bitField0_ = bitField0_;
3991 int to_bitField0_ = 0;
3992 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3993 to_bitField0_ |= 0x00000001;
3995 if (requestBuilder_ == null) {
3996 result.request_ = request_;
3998 result.request_ = requestBuilder_.build();
4000 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4001 to_bitField0_ |= 0x00000002;
4003 result.action_ = action_;
4004 result.bitField0_ = to_bitField0_;
4009 public Builder mergeFrom(com.google.protobuf.Message other) {
4010 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
4011 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
4013 super.mergeFrom(other);
4018 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
4019 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
4020 if (other.hasRequest()) {
4021 mergeRequest(other.getRequest());
4023 if (other.hasAction()) {
4024 setAction(other.getAction());
4026 this.mergeUnknownFields(other.getUnknownFields());
4030 public final boolean isInitialized() {
4034 public Builder mergeFrom(
4035 com.google.protobuf.CodedInputStream input,
4036 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4037 throws java.io.IOException {
4038 com.openxc.BinaryMessages.DiagnosticControlCommand parsedMessage = null;
4040 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4041 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4042 parsedMessage = (com.openxc.BinaryMessages.DiagnosticControlCommand) e.getUnfinishedMessage();
4045 if (parsedMessage != null) {
4046 mergeFrom(parsedMessage);
4051 private int bitField0_;
4053 // optional .openxc.DiagnosticRequest request = 1;
4054 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4055 private com.google.protobuf.SingleFieldBuilder<
4056 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
4058 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4060 public boolean hasRequest() {
4061 return ((bitField0_ & 0x00000001) == 0x00000001);
4064 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4066 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
4067 if (requestBuilder_ == null) {
4070 return requestBuilder_.getMessage();
4074 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4076 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4077 if (requestBuilder_ == null) {
4078 if (value == null) {
4079 throw new NullPointerException();
4084 requestBuilder_.setMessage(value);
4086 bitField0_ |= 0x00000001;
4090 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4092 public Builder setRequest(
4093 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
4094 if (requestBuilder_ == null) {
4095 request_ = builderForValue.build();
4098 requestBuilder_.setMessage(builderForValue.build());
4100 bitField0_ |= 0x00000001;
4104 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4106 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
4107 if (requestBuilder_ == null) {
4108 if (((bitField0_ & 0x00000001) == 0x00000001) &&
4109 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
4111 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
4117 requestBuilder_.mergeFrom(value);
4119 bitField0_ |= 0x00000001;
4123 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4125 public Builder clearRequest() {
4126 if (requestBuilder_ == null) {
4127 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4130 requestBuilder_.clear();
4132 bitField0_ = (bitField0_ & ~0x00000001);
4136 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4138 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
4139 bitField0_ |= 0x00000001;
4141 return getRequestFieldBuilder().getBuilder();
4144 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4146 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
4147 if (requestBuilder_ != null) {
4148 return requestBuilder_.getMessageOrBuilder();
4154 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
4156 private com.google.protobuf.SingleFieldBuilder<
4157 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
4158 getRequestFieldBuilder() {
4159 if (requestBuilder_ == null) {
4160 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4161 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
4163 getParentForChildren(),
4167 return requestBuilder_;
4170 // optional .openxc.DiagnosticControlCommand.Action action = 2;
4171 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4173 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4175 public boolean hasAction() {
4176 return ((bitField0_ & 0x00000002) == 0x00000002);
4179 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4181 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
4185 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4187 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
4188 if (value == null) {
4189 throw new NullPointerException();
4191 bitField0_ |= 0x00000002;
4197 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
4199 public Builder clearAction() {
4200 bitField0_ = (bitField0_ & ~0x00000002);
4201 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
4206 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
4210 defaultInstance = new DiagnosticControlCommand(true);
4211 defaultInstance.initFields();
4214 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
4217 public interface PassthroughModeControlCommandOrBuilder
4218 extends com.google.protobuf.MessageOrBuilder {
4220 // optional int32 bus = 1;
4222 * <code>optional int32 bus = 1;</code>
4226 * <code>optional int32 bus = 1;</code>
4230 // optional bool enabled = 2;
4232 * <code>optional bool enabled = 2;</code>
4234 boolean hasEnabled();
4236 * <code>optional bool enabled = 2;</code>
4238 boolean getEnabled();
4241 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4243 public static final class PassthroughModeControlCommand extends
4244 com.google.protobuf.GeneratedMessage
4245 implements PassthroughModeControlCommandOrBuilder {
4246 // Use PassthroughModeControlCommand.newBuilder() to construct.
4247 private PassthroughModeControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4249 this.unknownFields = builder.getUnknownFields();
4251 private PassthroughModeControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4253 private static final PassthroughModeControlCommand defaultInstance;
4254 public static PassthroughModeControlCommand getDefaultInstance() {
4255 return defaultInstance;
4258 public PassthroughModeControlCommand getDefaultInstanceForType() {
4259 return defaultInstance;
4262 private final com.google.protobuf.UnknownFieldSet unknownFields;
4264 public final com.google.protobuf.UnknownFieldSet
4265 getUnknownFields() {
4266 return this.unknownFields;
4268 private PassthroughModeControlCommand(
4269 com.google.protobuf.CodedInputStream input,
4270 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4271 throws com.google.protobuf.InvalidProtocolBufferException {
4273 int mutable_bitField0_ = 0;
4274 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4275 com.google.protobuf.UnknownFieldSet.newBuilder();
4277 boolean done = false;
4279 int tag = input.readTag();
4285 if (!parseUnknownField(input, unknownFields,
4286 extensionRegistry, tag)) {
4292 bitField0_ |= 0x00000001;
4293 bus_ = input.readInt32();
4297 bitField0_ |= 0x00000002;
4298 enabled_ = input.readBool();
4303 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4304 throw e.setUnfinishedMessage(this);
4305 } catch (java.io.IOException e) {
4306 throw new com.google.protobuf.InvalidProtocolBufferException(
4307 e.getMessage()).setUnfinishedMessage(this);
4309 this.unknownFields = unknownFields.build();
4310 makeExtensionsImmutable();
4313 public static final com.google.protobuf.Descriptors.Descriptor
4315 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4318 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4319 internalGetFieldAccessorTable() {
4320 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4321 .ensureFieldAccessorsInitialized(
4322 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4325 public static com.google.protobuf.Parser<PassthroughModeControlCommand> PARSER =
4326 new com.google.protobuf.AbstractParser<PassthroughModeControlCommand>() {
4327 public PassthroughModeControlCommand parsePartialFrom(
4328 com.google.protobuf.CodedInputStream input,
4329 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4330 throws com.google.protobuf.InvalidProtocolBufferException {
4331 return new PassthroughModeControlCommand(input, extensionRegistry);
4336 public com.google.protobuf.Parser<PassthroughModeControlCommand> getParserForType() {
4340 private int bitField0_;
4341 // optional int32 bus = 1;
4342 public static final int BUS_FIELD_NUMBER = 1;
4345 * <code>optional int32 bus = 1;</code>
4347 public boolean hasBus() {
4348 return ((bitField0_ & 0x00000001) == 0x00000001);
4351 * <code>optional int32 bus = 1;</code>
4353 public int getBus() {
4357 // optional bool enabled = 2;
4358 public static final int ENABLED_FIELD_NUMBER = 2;
4359 private boolean enabled_;
4361 * <code>optional bool enabled = 2;</code>
4363 public boolean hasEnabled() {
4364 return ((bitField0_ & 0x00000002) == 0x00000002);
4367 * <code>optional bool enabled = 2;</code>
4369 public boolean getEnabled() {
4373 private void initFields() {
4377 private byte memoizedIsInitialized = -1;
4378 public final boolean isInitialized() {
4379 byte isInitialized = memoizedIsInitialized;
4380 if (isInitialized != -1) return isInitialized == 1;
4382 memoizedIsInitialized = 1;
4386 public void writeTo(com.google.protobuf.CodedOutputStream output)
4387 throws java.io.IOException {
4388 getSerializedSize();
4389 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4390 output.writeInt32(1, bus_);
4392 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4393 output.writeBool(2, enabled_);
4395 getUnknownFields().writeTo(output);
4398 private int memoizedSerializedSize = -1;
4399 public int getSerializedSize() {
4400 int size = memoizedSerializedSize;
4401 if (size != -1) return size;
4404 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4405 size += com.google.protobuf.CodedOutputStream
4406 .computeInt32Size(1, bus_);
4408 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4409 size += com.google.protobuf.CodedOutputStream
4410 .computeBoolSize(2, enabled_);
4412 size += getUnknownFields().getSerializedSize();
4413 memoizedSerializedSize = size;
4417 private static final long serialVersionUID = 0L;
4419 protected java.lang.Object writeReplace()
4420 throws java.io.ObjectStreamException {
4421 return super.writeReplace();
4424 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4425 com.google.protobuf.ByteString data)
4426 throws com.google.protobuf.InvalidProtocolBufferException {
4427 return PARSER.parseFrom(data);
4429 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4430 com.google.protobuf.ByteString data,
4431 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4432 throws com.google.protobuf.InvalidProtocolBufferException {
4433 return PARSER.parseFrom(data, extensionRegistry);
4435 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
4436 throws com.google.protobuf.InvalidProtocolBufferException {
4437 return PARSER.parseFrom(data);
4439 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4442 throws com.google.protobuf.InvalidProtocolBufferException {
4443 return PARSER.parseFrom(data, extensionRegistry);
4445 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
4446 throws java.io.IOException {
4447 return PARSER.parseFrom(input);
4449 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4450 java.io.InputStream input,
4451 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4452 throws java.io.IOException {
4453 return PARSER.parseFrom(input, extensionRegistry);
4455 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
4456 throws java.io.IOException {
4457 return PARSER.parseDelimitedFrom(input);
4459 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
4460 java.io.InputStream input,
4461 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4462 throws java.io.IOException {
4463 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4465 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4466 com.google.protobuf.CodedInputStream input)
4467 throws java.io.IOException {
4468 return PARSER.parseFrom(input);
4470 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4471 com.google.protobuf.CodedInputStream input,
4472 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4473 throws java.io.IOException {
4474 return PARSER.parseFrom(input, extensionRegistry);
4477 public static Builder newBuilder() { return Builder.create(); }
4478 public Builder newBuilderForType() { return newBuilder(); }
4479 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
4480 return newBuilder().mergeFrom(prototype);
4482 public Builder toBuilder() { return newBuilder(this); }
4485 protected Builder newBuilderForType(
4486 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4487 Builder builder = new Builder(parent);
4491 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4493 public static final class Builder extends
4494 com.google.protobuf.GeneratedMessage.Builder<Builder>
4495 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
4496 public static final com.google.protobuf.Descriptors.Descriptor
4498 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4501 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4502 internalGetFieldAccessorTable() {
4503 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4504 .ensureFieldAccessorsInitialized(
4505 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4508 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4510 maybeForceBuilderInitialization();
4514 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4516 maybeForceBuilderInitialization();
4518 private void maybeForceBuilderInitialization() {
4519 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4522 private static Builder create() {
4523 return new Builder();
4526 public Builder clear() {
4529 bitField0_ = (bitField0_ & ~0x00000001);
4531 bitField0_ = (bitField0_ & ~0x00000002);
4535 public Builder clone() {
4536 return create().mergeFrom(buildPartial());
4539 public com.google.protobuf.Descriptors.Descriptor
4540 getDescriptorForType() {
4541 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4544 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4545 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4548 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4549 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4550 if (!result.isInitialized()) {
4551 throw newUninitializedMessageException(result);
4556 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4557 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4558 int from_bitField0_ = bitField0_;
4559 int to_bitField0_ = 0;
4560 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4561 to_bitField0_ |= 0x00000001;
4564 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4565 to_bitField0_ |= 0x00000002;
4567 result.enabled_ = enabled_;
4568 result.bitField0_ = to_bitField0_;
4573 public Builder mergeFrom(com.google.protobuf.Message other) {
4574 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4575 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4577 super.mergeFrom(other);
4582 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4583 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4584 if (other.hasBus()) {
4585 setBus(other.getBus());
4587 if (other.hasEnabled()) {
4588 setEnabled(other.getEnabled());
4590 this.mergeUnknownFields(other.getUnknownFields());
4594 public final boolean isInitialized() {
4598 public Builder mergeFrom(
4599 com.google.protobuf.CodedInputStream input,
4600 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4601 throws java.io.IOException {
4602 com.openxc.BinaryMessages.PassthroughModeControlCommand parsedMessage = null;
4604 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4605 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4606 parsedMessage = (com.openxc.BinaryMessages.PassthroughModeControlCommand) e.getUnfinishedMessage();
4609 if (parsedMessage != null) {
4610 mergeFrom(parsedMessage);
4615 private int bitField0_;
4617 // optional int32 bus = 1;
4620 * <code>optional int32 bus = 1;</code>
4622 public boolean hasBus() {
4623 return ((bitField0_ & 0x00000001) == 0x00000001);
4626 * <code>optional int32 bus = 1;</code>
4628 public int getBus() {
4632 * <code>optional int32 bus = 1;</code>
4634 public Builder setBus(int value) {
4635 bitField0_ |= 0x00000001;
4641 * <code>optional int32 bus = 1;</code>
4643 public Builder clearBus() {
4644 bitField0_ = (bitField0_ & ~0x00000001);
4650 // optional bool enabled = 2;
4651 private boolean enabled_ ;
4653 * <code>optional bool enabled = 2;</code>
4655 public boolean hasEnabled() {
4656 return ((bitField0_ & 0x00000002) == 0x00000002);
4659 * <code>optional bool enabled = 2;</code>
4661 public boolean getEnabled() {
4665 * <code>optional bool enabled = 2;</code>
4667 public Builder setEnabled(boolean value) {
4668 bitField0_ |= 0x00000002;
4674 * <code>optional bool enabled = 2;</code>
4676 public Builder clearEnabled() {
4677 bitField0_ = (bitField0_ & ~0x00000002);
4683 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4687 defaultInstance = new PassthroughModeControlCommand(true);
4688 defaultInstance.initFields();
4691 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4694 public interface AcceptanceFilterBypassCommandOrBuilder
4695 extends com.google.protobuf.MessageOrBuilder {
4697 // optional int32 bus = 1;
4699 * <code>optional int32 bus = 1;</code>
4703 * <code>optional int32 bus = 1;</code>
4707 // optional bool bypass = 2;
4709 * <code>optional bool bypass = 2;</code>
4711 boolean hasBypass();
4713 * <code>optional bool bypass = 2;</code>
4715 boolean getBypass();
4718 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4720 public static final class AcceptanceFilterBypassCommand extends
4721 com.google.protobuf.GeneratedMessage
4722 implements AcceptanceFilterBypassCommandOrBuilder {
4723 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4724 private AcceptanceFilterBypassCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4726 this.unknownFields = builder.getUnknownFields();
4728 private AcceptanceFilterBypassCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4730 private static final AcceptanceFilterBypassCommand defaultInstance;
4731 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4732 return defaultInstance;
4735 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4736 return defaultInstance;
4739 private final com.google.protobuf.UnknownFieldSet unknownFields;
4741 public final com.google.protobuf.UnknownFieldSet
4742 getUnknownFields() {
4743 return this.unknownFields;
4745 private AcceptanceFilterBypassCommand(
4746 com.google.protobuf.CodedInputStream input,
4747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4748 throws com.google.protobuf.InvalidProtocolBufferException {
4750 int mutable_bitField0_ = 0;
4751 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4752 com.google.protobuf.UnknownFieldSet.newBuilder();
4754 boolean done = false;
4756 int tag = input.readTag();
4762 if (!parseUnknownField(input, unknownFields,
4763 extensionRegistry, tag)) {
4769 bitField0_ |= 0x00000001;
4770 bus_ = input.readInt32();
4774 bitField0_ |= 0x00000002;
4775 bypass_ = input.readBool();
4780 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4781 throw e.setUnfinishedMessage(this);
4782 } catch (java.io.IOException e) {
4783 throw new com.google.protobuf.InvalidProtocolBufferException(
4784 e.getMessage()).setUnfinishedMessage(this);
4786 this.unknownFields = unknownFields.build();
4787 makeExtensionsImmutable();
4790 public static final com.google.protobuf.Descriptors.Descriptor
4792 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4795 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4796 internalGetFieldAccessorTable() {
4797 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4798 .ensureFieldAccessorsInitialized(
4799 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4802 public static com.google.protobuf.Parser<AcceptanceFilterBypassCommand> PARSER =
4803 new com.google.protobuf.AbstractParser<AcceptanceFilterBypassCommand>() {
4804 public AcceptanceFilterBypassCommand parsePartialFrom(
4805 com.google.protobuf.CodedInputStream input,
4806 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4807 throws com.google.protobuf.InvalidProtocolBufferException {
4808 return new AcceptanceFilterBypassCommand(input, extensionRegistry);
4813 public com.google.protobuf.Parser<AcceptanceFilterBypassCommand> getParserForType() {
4817 private int bitField0_;
4818 // optional int32 bus = 1;
4819 public static final int BUS_FIELD_NUMBER = 1;
4822 * <code>optional int32 bus = 1;</code>
4824 public boolean hasBus() {
4825 return ((bitField0_ & 0x00000001) == 0x00000001);
4828 * <code>optional int32 bus = 1;</code>
4830 public int getBus() {
4834 // optional bool bypass = 2;
4835 public static final int BYPASS_FIELD_NUMBER = 2;
4836 private boolean bypass_;
4838 * <code>optional bool bypass = 2;</code>
4840 public boolean hasBypass() {
4841 return ((bitField0_ & 0x00000002) == 0x00000002);
4844 * <code>optional bool bypass = 2;</code>
4846 public boolean getBypass() {
4850 private void initFields() {
4854 private byte memoizedIsInitialized = -1;
4855 public final boolean isInitialized() {
4856 byte isInitialized = memoizedIsInitialized;
4857 if (isInitialized != -1) return isInitialized == 1;
4859 memoizedIsInitialized = 1;
4863 public void writeTo(com.google.protobuf.CodedOutputStream output)
4864 throws java.io.IOException {
4865 getSerializedSize();
4866 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4867 output.writeInt32(1, bus_);
4869 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4870 output.writeBool(2, bypass_);
4872 getUnknownFields().writeTo(output);
4875 private int memoizedSerializedSize = -1;
4876 public int getSerializedSize() {
4877 int size = memoizedSerializedSize;
4878 if (size != -1) return size;
4881 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4882 size += com.google.protobuf.CodedOutputStream
4883 .computeInt32Size(1, bus_);
4885 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4886 size += com.google.protobuf.CodedOutputStream
4887 .computeBoolSize(2, bypass_);
4889 size += getUnknownFields().getSerializedSize();
4890 memoizedSerializedSize = size;
4894 private static final long serialVersionUID = 0L;
4896 protected java.lang.Object writeReplace()
4897 throws java.io.ObjectStreamException {
4898 return super.writeReplace();
4901 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4902 com.google.protobuf.ByteString data)
4903 throws com.google.protobuf.InvalidProtocolBufferException {
4904 return PARSER.parseFrom(data);
4906 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4907 com.google.protobuf.ByteString data,
4908 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4909 throws com.google.protobuf.InvalidProtocolBufferException {
4910 return PARSER.parseFrom(data, extensionRegistry);
4912 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
4913 throws com.google.protobuf.InvalidProtocolBufferException {
4914 return PARSER.parseFrom(data);
4916 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4918 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4919 throws com.google.protobuf.InvalidProtocolBufferException {
4920 return PARSER.parseFrom(data, extensionRegistry);
4922 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
4923 throws java.io.IOException {
4924 return PARSER.parseFrom(input);
4926 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4927 java.io.InputStream input,
4928 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4929 throws java.io.IOException {
4930 return PARSER.parseFrom(input, extensionRegistry);
4932 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
4933 throws java.io.IOException {
4934 return PARSER.parseDelimitedFrom(input);
4936 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
4937 java.io.InputStream input,
4938 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4939 throws java.io.IOException {
4940 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4942 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4943 com.google.protobuf.CodedInputStream input)
4944 throws java.io.IOException {
4945 return PARSER.parseFrom(input);
4947 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4948 com.google.protobuf.CodedInputStream input,
4949 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4950 throws java.io.IOException {
4951 return PARSER.parseFrom(input, extensionRegistry);
4954 public static Builder newBuilder() { return Builder.create(); }
4955 public Builder newBuilderForType() { return newBuilder(); }
4956 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
4957 return newBuilder().mergeFrom(prototype);
4959 public Builder toBuilder() { return newBuilder(this); }
4962 protected Builder newBuilderForType(
4963 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4964 Builder builder = new Builder(parent);
4968 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4970 public static final class Builder extends
4971 com.google.protobuf.GeneratedMessage.Builder<Builder>
4972 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
4973 public static final com.google.protobuf.Descriptors.Descriptor
4975 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4978 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4979 internalGetFieldAccessorTable() {
4980 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4981 .ensureFieldAccessorsInitialized(
4982 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4985 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
4987 maybeForceBuilderInitialization();
4991 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4993 maybeForceBuilderInitialization();
4995 private void maybeForceBuilderInitialization() {
4996 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4999 private static Builder create() {
5000 return new Builder();
5003 public Builder clear() {
5006 bitField0_ = (bitField0_ & ~0x00000001);
5008 bitField0_ = (bitField0_ & ~0x00000002);
5012 public Builder clone() {
5013 return create().mergeFrom(buildPartial());
5016 public com.google.protobuf.Descriptors.Descriptor
5017 getDescriptorForType() {
5018 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
5021 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
5022 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
5025 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
5026 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
5027 if (!result.isInitialized()) {
5028 throw newUninitializedMessageException(result);
5033 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
5034 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
5035 int from_bitField0_ = bitField0_;
5036 int to_bitField0_ = 0;
5037 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5038 to_bitField0_ |= 0x00000001;
5041 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5042 to_bitField0_ |= 0x00000002;
5044 result.bypass_ = bypass_;
5045 result.bitField0_ = to_bitField0_;
5050 public Builder mergeFrom(com.google.protobuf.Message other) {
5051 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
5052 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
5054 super.mergeFrom(other);
5059 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
5060 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
5061 if (other.hasBus()) {
5062 setBus(other.getBus());
5064 if (other.hasBypass()) {
5065 setBypass(other.getBypass());
5067 this.mergeUnknownFields(other.getUnknownFields());
5071 public final boolean isInitialized() {
5075 public Builder mergeFrom(
5076 com.google.protobuf.CodedInputStream input,
5077 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5078 throws java.io.IOException {
5079 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parsedMessage = null;
5081 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5082 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5083 parsedMessage = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) e.getUnfinishedMessage();
5086 if (parsedMessage != null) {
5087 mergeFrom(parsedMessage);
5092 private int bitField0_;
5094 // optional int32 bus = 1;
5097 * <code>optional int32 bus = 1;</code>
5099 public boolean hasBus() {
5100 return ((bitField0_ & 0x00000001) == 0x00000001);
5103 * <code>optional int32 bus = 1;</code>
5105 public int getBus() {
5109 * <code>optional int32 bus = 1;</code>
5111 public Builder setBus(int value) {
5112 bitField0_ |= 0x00000001;
5118 * <code>optional int32 bus = 1;</code>
5120 public Builder clearBus() {
5121 bitField0_ = (bitField0_ & ~0x00000001);
5127 // optional bool bypass = 2;
5128 private boolean bypass_ ;
5130 * <code>optional bool bypass = 2;</code>
5132 public boolean hasBypass() {
5133 return ((bitField0_ & 0x00000002) == 0x00000002);
5136 * <code>optional bool bypass = 2;</code>
5138 public boolean getBypass() {
5142 * <code>optional bool bypass = 2;</code>
5144 public Builder setBypass(boolean value) {
5145 bitField0_ |= 0x00000002;
5151 * <code>optional bool bypass = 2;</code>
5153 public Builder clearBypass() {
5154 bitField0_ = (bitField0_ & ~0x00000002);
5160 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
5164 defaultInstance = new AcceptanceFilterBypassCommand(true);
5165 defaultInstance.initFields();
5168 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
5171 public interface PayloadFormatCommandOrBuilder
5172 extends com.google.protobuf.MessageOrBuilder {
5174 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5176 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5178 boolean hasFormat();
5180 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5182 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
5185 * Protobuf type {@code openxc.PayloadFormatCommand}
5187 public static final class PayloadFormatCommand extends
5188 com.google.protobuf.GeneratedMessage
5189 implements PayloadFormatCommandOrBuilder {
5190 // Use PayloadFormatCommand.newBuilder() to construct.
5191 private PayloadFormatCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5193 this.unknownFields = builder.getUnknownFields();
5195 private PayloadFormatCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5197 private static final PayloadFormatCommand defaultInstance;
5198 public static PayloadFormatCommand getDefaultInstance() {
5199 return defaultInstance;
5202 public PayloadFormatCommand getDefaultInstanceForType() {
5203 return defaultInstance;
5206 private final com.google.protobuf.UnknownFieldSet unknownFields;
5208 public final com.google.protobuf.UnknownFieldSet
5209 getUnknownFields() {
5210 return this.unknownFields;
5212 private PayloadFormatCommand(
5213 com.google.protobuf.CodedInputStream input,
5214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5215 throws com.google.protobuf.InvalidProtocolBufferException {
5217 int mutable_bitField0_ = 0;
5218 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5219 com.google.protobuf.UnknownFieldSet.newBuilder();
5221 boolean done = false;
5223 int tag = input.readTag();
5229 if (!parseUnknownField(input, unknownFields,
5230 extensionRegistry, tag)) {
5236 int rawValue = input.readEnum();
5237 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
5238 if (value == null) {
5239 unknownFields.mergeVarintField(1, rawValue);
5241 bitField0_ |= 0x00000001;
5248 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5249 throw e.setUnfinishedMessage(this);
5250 } catch (java.io.IOException e) {
5251 throw new com.google.protobuf.InvalidProtocolBufferException(
5252 e.getMessage()).setUnfinishedMessage(this);
5254 this.unknownFields = unknownFields.build();
5255 makeExtensionsImmutable();
5258 public static final com.google.protobuf.Descriptors.Descriptor
5260 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5263 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5264 internalGetFieldAccessorTable() {
5265 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5266 .ensureFieldAccessorsInitialized(
5267 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5270 public static com.google.protobuf.Parser<PayloadFormatCommand> PARSER =
5271 new com.google.protobuf.AbstractParser<PayloadFormatCommand>() {
5272 public PayloadFormatCommand parsePartialFrom(
5273 com.google.protobuf.CodedInputStream input,
5274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5275 throws com.google.protobuf.InvalidProtocolBufferException {
5276 return new PayloadFormatCommand(input, extensionRegistry);
5281 public com.google.protobuf.Parser<PayloadFormatCommand> getParserForType() {
5286 * Protobuf enum {@code openxc.PayloadFormatCommand.PayloadFormat}
5288 public enum PayloadFormat
5289 implements com.google.protobuf.ProtocolMessageEnum {
5291 * <code>JSON = 1;</code>
5295 * <code>PROTOBUF = 2;</code>
5301 * <code>JSON = 1;</code>
5303 public static final int JSON_VALUE = 1;
5305 * <code>PROTOBUF = 2;</code>
5307 public static final int PROTOBUF_VALUE = 2;
5310 public final int getNumber() { return value; }
5312 public static PayloadFormat valueOf(int value) {
5314 case 1: return JSON;
5315 case 2: return PROTOBUF;
5316 default: return null;
5320 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5321 internalGetValueMap() {
5322 return internalValueMap;
5324 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
5326 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
5327 public PayloadFormat findValueByNumber(int number) {
5328 return PayloadFormat.valueOf(number);
5332 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5333 getValueDescriptor() {
5334 return getDescriptor().getValues().get(index);
5336 public final com.google.protobuf.Descriptors.EnumDescriptor
5337 getDescriptorForType() {
5338 return getDescriptor();
5340 public static final com.google.protobuf.Descriptors.EnumDescriptor
5342 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
5345 private static final PayloadFormat[] VALUES = values();
5347 public static PayloadFormat valueOf(
5348 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5349 if (desc.getType() != getDescriptor()) {
5350 throw new java.lang.IllegalArgumentException(
5351 "EnumValueDescriptor is not for this type.");
5353 return VALUES[desc.getIndex()];
5356 private final int index;
5357 private final int value;
5359 private PayloadFormat(int index, int value) {
5364 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
5367 private int bitField0_;
5368 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5369 public static final int FORMAT_FIELD_NUMBER = 1;
5370 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
5372 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5374 public boolean hasFormat() {
5375 return ((bitField0_ & 0x00000001) == 0x00000001);
5378 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5380 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5384 private void initFields() {
5385 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5387 private byte memoizedIsInitialized = -1;
5388 public final boolean isInitialized() {
5389 byte isInitialized = memoizedIsInitialized;
5390 if (isInitialized != -1) return isInitialized == 1;
5392 memoizedIsInitialized = 1;
5396 public void writeTo(com.google.protobuf.CodedOutputStream output)
5397 throws java.io.IOException {
5398 getSerializedSize();
5399 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5400 output.writeEnum(1, format_.getNumber());
5402 getUnknownFields().writeTo(output);
5405 private int memoizedSerializedSize = -1;
5406 public int getSerializedSize() {
5407 int size = memoizedSerializedSize;
5408 if (size != -1) return size;
5411 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5412 size += com.google.protobuf.CodedOutputStream
5413 .computeEnumSize(1, format_.getNumber());
5415 size += getUnknownFields().getSerializedSize();
5416 memoizedSerializedSize = size;
5420 private static final long serialVersionUID = 0L;
5422 protected java.lang.Object writeReplace()
5423 throws java.io.ObjectStreamException {
5424 return super.writeReplace();
5427 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5428 com.google.protobuf.ByteString data)
5429 throws com.google.protobuf.InvalidProtocolBufferException {
5430 return PARSER.parseFrom(data);
5432 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5433 com.google.protobuf.ByteString data,
5434 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5435 throws com.google.protobuf.InvalidProtocolBufferException {
5436 return PARSER.parseFrom(data, extensionRegistry);
5438 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
5439 throws com.google.protobuf.InvalidProtocolBufferException {
5440 return PARSER.parseFrom(data);
5442 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5444 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5445 throws com.google.protobuf.InvalidProtocolBufferException {
5446 return PARSER.parseFrom(data, extensionRegistry);
5448 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
5449 throws java.io.IOException {
5450 return PARSER.parseFrom(input);
5452 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5453 java.io.InputStream input,
5454 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5455 throws java.io.IOException {
5456 return PARSER.parseFrom(input, extensionRegistry);
5458 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
5459 throws java.io.IOException {
5460 return PARSER.parseDelimitedFrom(input);
5462 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
5463 java.io.InputStream input,
5464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5465 throws java.io.IOException {
5466 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5468 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5469 com.google.protobuf.CodedInputStream input)
5470 throws java.io.IOException {
5471 return PARSER.parseFrom(input);
5473 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
5474 com.google.protobuf.CodedInputStream input,
5475 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5476 throws java.io.IOException {
5477 return PARSER.parseFrom(input, extensionRegistry);
5480 public static Builder newBuilder() { return Builder.create(); }
5481 public Builder newBuilderForType() { return newBuilder(); }
5482 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
5483 return newBuilder().mergeFrom(prototype);
5485 public Builder toBuilder() { return newBuilder(this); }
5488 protected Builder newBuilderForType(
5489 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5490 Builder builder = new Builder(parent);
5494 * Protobuf type {@code openxc.PayloadFormatCommand}
5496 public static final class Builder extends
5497 com.google.protobuf.GeneratedMessage.Builder<Builder>
5498 implements com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
5499 public static final com.google.protobuf.Descriptors.Descriptor
5501 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5504 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5505 internalGetFieldAccessorTable() {
5506 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable
5507 .ensureFieldAccessorsInitialized(
5508 com.openxc.BinaryMessages.PayloadFormatCommand.class, com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
5511 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
5513 maybeForceBuilderInitialization();
5517 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5519 maybeForceBuilderInitialization();
5521 private void maybeForceBuilderInitialization() {
5522 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5525 private static Builder create() {
5526 return new Builder();
5529 public Builder clear() {
5531 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5532 bitField0_ = (bitField0_ & ~0x00000001);
5536 public Builder clone() {
5537 return create().mergeFrom(buildPartial());
5540 public com.google.protobuf.Descriptors.Descriptor
5541 getDescriptorForType() {
5542 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
5545 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
5546 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
5549 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
5550 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
5551 if (!result.isInitialized()) {
5552 throw newUninitializedMessageException(result);
5557 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
5558 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
5559 int from_bitField0_ = bitField0_;
5560 int to_bitField0_ = 0;
5561 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5562 to_bitField0_ |= 0x00000001;
5564 result.format_ = format_;
5565 result.bitField0_ = to_bitField0_;
5570 public Builder mergeFrom(com.google.protobuf.Message other) {
5571 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
5572 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
5574 super.mergeFrom(other);
5579 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
5580 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
5581 if (other.hasFormat()) {
5582 setFormat(other.getFormat());
5584 this.mergeUnknownFields(other.getUnknownFields());
5588 public final boolean isInitialized() {
5592 public Builder mergeFrom(
5593 com.google.protobuf.CodedInputStream input,
5594 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5595 throws java.io.IOException {
5596 com.openxc.BinaryMessages.PayloadFormatCommand parsedMessage = null;
5598 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5599 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5600 parsedMessage = (com.openxc.BinaryMessages.PayloadFormatCommand) e.getUnfinishedMessage();
5603 if (parsedMessage != null) {
5604 mergeFrom(parsedMessage);
5609 private int bitField0_;
5611 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
5612 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5614 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5616 public boolean hasFormat() {
5617 return ((bitField0_ & 0x00000001) == 0x00000001);
5620 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5622 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
5626 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5628 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
5629 if (value == null) {
5630 throw new NullPointerException();
5632 bitField0_ |= 0x00000001;
5638 * <code>optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;</code>
5640 public Builder clearFormat() {
5641 bitField0_ = (bitField0_ & ~0x00000001);
5642 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
5647 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
5651 defaultInstance = new PayloadFormatCommand(true);
5652 defaultInstance.initFields();
5655 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5658 public interface PredefinedObd2RequestsCommandOrBuilder
5659 extends com.google.protobuf.MessageOrBuilder {
5661 // optional bool enabled = 1;
5663 * <code>optional bool enabled = 1;</code>
5665 boolean hasEnabled();
5667 * <code>optional bool enabled = 1;</code>
5669 boolean getEnabled();
5672 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
5674 public static final class PredefinedObd2RequestsCommand extends
5675 com.google.protobuf.GeneratedMessage
5676 implements PredefinedObd2RequestsCommandOrBuilder {
5677 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5678 private PredefinedObd2RequestsCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5680 this.unknownFields = builder.getUnknownFields();
5682 private PredefinedObd2RequestsCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5684 private static final PredefinedObd2RequestsCommand defaultInstance;
5685 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5686 return defaultInstance;
5689 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5690 return defaultInstance;
5693 private final com.google.protobuf.UnknownFieldSet unknownFields;
5695 public final com.google.protobuf.UnknownFieldSet
5696 getUnknownFields() {
5697 return this.unknownFields;
5699 private PredefinedObd2RequestsCommand(
5700 com.google.protobuf.CodedInputStream input,
5701 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5702 throws com.google.protobuf.InvalidProtocolBufferException {
5704 int mutable_bitField0_ = 0;
5705 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5706 com.google.protobuf.UnknownFieldSet.newBuilder();
5708 boolean done = false;
5710 int tag = input.readTag();
5716 if (!parseUnknownField(input, unknownFields,
5717 extensionRegistry, tag)) {
5723 bitField0_ |= 0x00000001;
5724 enabled_ = input.readBool();
5729 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5730 throw e.setUnfinishedMessage(this);
5731 } catch (java.io.IOException e) {
5732 throw new com.google.protobuf.InvalidProtocolBufferException(
5733 e.getMessage()).setUnfinishedMessage(this);
5735 this.unknownFields = unknownFields.build();
5736 makeExtensionsImmutable();
5739 public static final com.google.protobuf.Descriptors.Descriptor
5741 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5744 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5745 internalGetFieldAccessorTable() {
5746 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
5747 .ensureFieldAccessorsInitialized(
5748 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
5751 public static com.google.protobuf.Parser<PredefinedObd2RequestsCommand> PARSER =
5752 new com.google.protobuf.AbstractParser<PredefinedObd2RequestsCommand>() {
5753 public PredefinedObd2RequestsCommand parsePartialFrom(
5754 com.google.protobuf.CodedInputStream input,
5755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5756 throws com.google.protobuf.InvalidProtocolBufferException {
5757 return new PredefinedObd2RequestsCommand(input, extensionRegistry);
5762 public com.google.protobuf.Parser<PredefinedObd2RequestsCommand> getParserForType() {
5766 private int bitField0_;
5767 // optional bool enabled = 1;
5768 public static final int ENABLED_FIELD_NUMBER = 1;
5769 private boolean enabled_;
5771 * <code>optional bool enabled = 1;</code>
5773 public boolean hasEnabled() {
5774 return ((bitField0_ & 0x00000001) == 0x00000001);
5777 * <code>optional bool enabled = 1;</code>
5779 public boolean getEnabled() {
5783 private void initFields() {
5786 private byte memoizedIsInitialized = -1;
5787 public final boolean isInitialized() {
5788 byte isInitialized = memoizedIsInitialized;
5789 if (isInitialized != -1) return isInitialized == 1;
5791 memoizedIsInitialized = 1;
5795 public void writeTo(com.google.protobuf.CodedOutputStream output)
5796 throws java.io.IOException {
5797 getSerializedSize();
5798 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5799 output.writeBool(1, enabled_);
5801 getUnknownFields().writeTo(output);
5804 private int memoizedSerializedSize = -1;
5805 public int getSerializedSize() {
5806 int size = memoizedSerializedSize;
5807 if (size != -1) return size;
5810 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5811 size += com.google.protobuf.CodedOutputStream
5812 .computeBoolSize(1, enabled_);
5814 size += getUnknownFields().getSerializedSize();
5815 memoizedSerializedSize = size;
5819 private static final long serialVersionUID = 0L;
5821 protected java.lang.Object writeReplace()
5822 throws java.io.ObjectStreamException {
5823 return super.writeReplace();
5826 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5827 com.google.protobuf.ByteString data)
5828 throws com.google.protobuf.InvalidProtocolBufferException {
5829 return PARSER.parseFrom(data);
5831 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5832 com.google.protobuf.ByteString data,
5833 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5834 throws com.google.protobuf.InvalidProtocolBufferException {
5835 return PARSER.parseFrom(data, extensionRegistry);
5837 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
5838 throws com.google.protobuf.InvalidProtocolBufferException {
5839 return PARSER.parseFrom(data);
5841 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5843 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5844 throws com.google.protobuf.InvalidProtocolBufferException {
5845 return PARSER.parseFrom(data, extensionRegistry);
5847 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
5848 throws java.io.IOException {
5849 return PARSER.parseFrom(input);
5851 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5852 java.io.InputStream input,
5853 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5854 throws java.io.IOException {
5855 return PARSER.parseFrom(input, extensionRegistry);
5857 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
5858 throws java.io.IOException {
5859 return PARSER.parseDelimitedFrom(input);
5861 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
5862 java.io.InputStream input,
5863 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5864 throws java.io.IOException {
5865 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5867 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5868 com.google.protobuf.CodedInputStream input)
5869 throws java.io.IOException {
5870 return PARSER.parseFrom(input);
5872 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5873 com.google.protobuf.CodedInputStream input,
5874 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5875 throws java.io.IOException {
5876 return PARSER.parseFrom(input, extensionRegistry);
5879 public static Builder newBuilder() { return Builder.create(); }
5880 public Builder newBuilderForType() { return newBuilder(); }
5881 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
5882 return newBuilder().mergeFrom(prototype);
5884 public Builder toBuilder() { return newBuilder(this); }
5887 protected Builder newBuilderForType(
5888 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5889 Builder builder = new Builder(parent);
5893 * Protobuf type {@code openxc.PredefinedObd2RequestsCommand}
5895 public static final class Builder extends
5896 com.google.protobuf.GeneratedMessage.Builder<Builder>
5897 implements com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
5898 public static final com.google.protobuf.Descriptors.Descriptor
5900 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5903 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5904 internalGetFieldAccessorTable() {
5905 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable
5906 .ensureFieldAccessorsInitialized(
5907 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
5910 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
5912 maybeForceBuilderInitialization();
5916 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5918 maybeForceBuilderInitialization();
5920 private void maybeForceBuilderInitialization() {
5921 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5924 private static Builder create() {
5925 return new Builder();
5928 public Builder clear() {
5931 bitField0_ = (bitField0_ & ~0x00000001);
5935 public Builder clone() {
5936 return create().mergeFrom(buildPartial());
5939 public com.google.protobuf.Descriptors.Descriptor
5940 getDescriptorForType() {
5941 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5944 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5945 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
5948 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
5949 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5950 if (!result.isInitialized()) {
5951 throw newUninitializedMessageException(result);
5956 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
5957 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
5958 int from_bitField0_ = bitField0_;
5959 int to_bitField0_ = 0;
5960 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5961 to_bitField0_ |= 0x00000001;
5963 result.enabled_ = enabled_;
5964 result.bitField0_ = to_bitField0_;
5969 public Builder mergeFrom(com.google.protobuf.Message other) {
5970 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
5971 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
5973 super.mergeFrom(other);
5978 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
5979 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
5980 if (other.hasEnabled()) {
5981 setEnabled(other.getEnabled());
5983 this.mergeUnknownFields(other.getUnknownFields());
5987 public final boolean isInitialized() {
5991 public Builder mergeFrom(
5992 com.google.protobuf.CodedInputStream input,
5993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5994 throws java.io.IOException {
5995 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parsedMessage = null;
5997 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5998 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5999 parsedMessage = (com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) e.getUnfinishedMessage();
6002 if (parsedMessage != null) {
6003 mergeFrom(parsedMessage);
6008 private int bitField0_;
6010 // optional bool enabled = 1;
6011 private boolean enabled_ ;
6013 * <code>optional bool enabled = 1;</code>
6015 public boolean hasEnabled() {
6016 return ((bitField0_ & 0x00000001) == 0x00000001);
6019 * <code>optional bool enabled = 1;</code>
6021 public boolean getEnabled() {
6025 * <code>optional bool enabled = 1;</code>
6027 public Builder setEnabled(boolean value) {
6028 bitField0_ |= 0x00000001;
6034 * <code>optional bool enabled = 1;</code>
6036 public Builder clearEnabled() {
6037 bitField0_ = (bitField0_ & ~0x00000001);
6043 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
6047 defaultInstance = new PredefinedObd2RequestsCommand(true);
6048 defaultInstance.initFields();
6051 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
6054 public interface CommandResponseOrBuilder
6055 extends com.google.protobuf.MessageOrBuilder {
6057 // optional .openxc.ControlCommand.Type type = 1;
6059 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6063 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6065 com.openxc.BinaryMessages.ControlCommand.Type getType();
6067 // optional string message = 2;
6069 * <code>optional string message = 2;</code>
6071 boolean hasMessage();
6073 * <code>optional string message = 2;</code>
6075 java.lang.String getMessage();
6077 * <code>optional string message = 2;</code>
6079 com.google.protobuf.ByteString
6082 // optional bool status = 3;
6084 * <code>optional bool status = 3;</code>
6086 boolean hasStatus();
6088 * <code>optional bool status = 3;</code>
6090 boolean getStatus();
6093 * Protobuf type {@code openxc.CommandResponse}
6095 public static final class CommandResponse extends
6096 com.google.protobuf.GeneratedMessage
6097 implements CommandResponseOrBuilder {
6098 // Use CommandResponse.newBuilder() to construct.
6099 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6101 this.unknownFields = builder.getUnknownFields();
6103 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6105 private static final CommandResponse defaultInstance;
6106 public static CommandResponse getDefaultInstance() {
6107 return defaultInstance;
6110 public CommandResponse getDefaultInstanceForType() {
6111 return defaultInstance;
6114 private final com.google.protobuf.UnknownFieldSet unknownFields;
6116 public final com.google.protobuf.UnknownFieldSet
6117 getUnknownFields() {
6118 return this.unknownFields;
6120 private CommandResponse(
6121 com.google.protobuf.CodedInputStream input,
6122 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6123 throws com.google.protobuf.InvalidProtocolBufferException {
6125 int mutable_bitField0_ = 0;
6126 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6127 com.google.protobuf.UnknownFieldSet.newBuilder();
6129 boolean done = false;
6131 int tag = input.readTag();
6137 if (!parseUnknownField(input, unknownFields,
6138 extensionRegistry, tag)) {
6144 int rawValue = input.readEnum();
6145 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
6146 if (value == null) {
6147 unknownFields.mergeVarintField(1, rawValue);
6149 bitField0_ |= 0x00000001;
6155 bitField0_ |= 0x00000002;
6156 message_ = input.readBytes();
6160 bitField0_ |= 0x00000004;
6161 status_ = input.readBool();
6166 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6167 throw e.setUnfinishedMessage(this);
6168 } catch (java.io.IOException e) {
6169 throw new com.google.protobuf.InvalidProtocolBufferException(
6170 e.getMessage()).setUnfinishedMessage(this);
6172 this.unknownFields = unknownFields.build();
6173 makeExtensionsImmutable();
6176 public static final com.google.protobuf.Descriptors.Descriptor
6178 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6181 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6182 internalGetFieldAccessorTable() {
6183 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6184 .ensureFieldAccessorsInitialized(
6185 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6188 public static com.google.protobuf.Parser<CommandResponse> PARSER =
6189 new com.google.protobuf.AbstractParser<CommandResponse>() {
6190 public CommandResponse parsePartialFrom(
6191 com.google.protobuf.CodedInputStream input,
6192 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6193 throws com.google.protobuf.InvalidProtocolBufferException {
6194 return new CommandResponse(input, extensionRegistry);
6199 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
6203 private int bitField0_;
6204 // optional .openxc.ControlCommand.Type type = 1;
6205 public static final int TYPE_FIELD_NUMBER = 1;
6206 private com.openxc.BinaryMessages.ControlCommand.Type type_;
6208 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6210 public boolean hasType() {
6211 return ((bitField0_ & 0x00000001) == 0x00000001);
6214 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6216 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6220 // optional string message = 2;
6221 public static final int MESSAGE_FIELD_NUMBER = 2;
6222 private java.lang.Object message_;
6224 * <code>optional string message = 2;</code>
6226 public boolean hasMessage() {
6227 return ((bitField0_ & 0x00000002) == 0x00000002);
6230 * <code>optional string message = 2;</code>
6232 public java.lang.String getMessage() {
6233 java.lang.Object ref = message_;
6234 if (ref instanceof java.lang.String) {
6235 return (java.lang.String) ref;
6237 com.google.protobuf.ByteString bs =
6238 (com.google.protobuf.ByteString) ref;
6239 java.lang.String s = bs.toStringUtf8();
6240 if (bs.isValidUtf8()) {
6247 * <code>optional string message = 2;</code>
6249 public com.google.protobuf.ByteString
6251 java.lang.Object ref = message_;
6252 if (ref instanceof java.lang.String) {
6253 com.google.protobuf.ByteString b =
6254 com.google.protobuf.ByteString.copyFromUtf8(
6255 (java.lang.String) ref);
6259 return (com.google.protobuf.ByteString) ref;
6263 // optional bool status = 3;
6264 public static final int STATUS_FIELD_NUMBER = 3;
6265 private boolean status_;
6267 * <code>optional bool status = 3;</code>
6269 public boolean hasStatus() {
6270 return ((bitField0_ & 0x00000004) == 0x00000004);
6273 * <code>optional bool status = 3;</code>
6275 public boolean getStatus() {
6279 private void initFields() {
6280 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6284 private byte memoizedIsInitialized = -1;
6285 public final boolean isInitialized() {
6286 byte isInitialized = memoizedIsInitialized;
6287 if (isInitialized != -1) return isInitialized == 1;
6289 memoizedIsInitialized = 1;
6293 public void writeTo(com.google.protobuf.CodedOutputStream output)
6294 throws java.io.IOException {
6295 getSerializedSize();
6296 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6297 output.writeEnum(1, type_.getNumber());
6299 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6300 output.writeBytes(2, getMessageBytes());
6302 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6303 output.writeBool(3, status_);
6305 getUnknownFields().writeTo(output);
6308 private int memoizedSerializedSize = -1;
6309 public int getSerializedSize() {
6310 int size = memoizedSerializedSize;
6311 if (size != -1) return size;
6314 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6315 size += com.google.protobuf.CodedOutputStream
6316 .computeEnumSize(1, type_.getNumber());
6318 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6319 size += com.google.protobuf.CodedOutputStream
6320 .computeBytesSize(2, getMessageBytes());
6322 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6323 size += com.google.protobuf.CodedOutputStream
6324 .computeBoolSize(3, status_);
6326 size += getUnknownFields().getSerializedSize();
6327 memoizedSerializedSize = size;
6331 private static final long serialVersionUID = 0L;
6333 protected java.lang.Object writeReplace()
6334 throws java.io.ObjectStreamException {
6335 return super.writeReplace();
6338 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6339 com.google.protobuf.ByteString data)
6340 throws com.google.protobuf.InvalidProtocolBufferException {
6341 return PARSER.parseFrom(data);
6343 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6344 com.google.protobuf.ByteString data,
6345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6346 throws com.google.protobuf.InvalidProtocolBufferException {
6347 return PARSER.parseFrom(data, extensionRegistry);
6349 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
6350 throws com.google.protobuf.InvalidProtocolBufferException {
6351 return PARSER.parseFrom(data);
6353 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6355 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6356 throws com.google.protobuf.InvalidProtocolBufferException {
6357 return PARSER.parseFrom(data, extensionRegistry);
6359 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
6360 throws java.io.IOException {
6361 return PARSER.parseFrom(input);
6363 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6364 java.io.InputStream input,
6365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6366 throws java.io.IOException {
6367 return PARSER.parseFrom(input, extensionRegistry);
6369 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
6370 throws java.io.IOException {
6371 return PARSER.parseDelimitedFrom(input);
6373 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
6374 java.io.InputStream input,
6375 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6376 throws java.io.IOException {
6377 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6379 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6380 com.google.protobuf.CodedInputStream input)
6381 throws java.io.IOException {
6382 return PARSER.parseFrom(input);
6384 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
6385 com.google.protobuf.CodedInputStream input,
6386 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6387 throws java.io.IOException {
6388 return PARSER.parseFrom(input, extensionRegistry);
6391 public static Builder newBuilder() { return Builder.create(); }
6392 public Builder newBuilderForType() { return newBuilder(); }
6393 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
6394 return newBuilder().mergeFrom(prototype);
6396 public Builder toBuilder() { return newBuilder(this); }
6399 protected Builder newBuilderForType(
6400 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6401 Builder builder = new Builder(parent);
6405 * Protobuf type {@code openxc.CommandResponse}
6407 public static final class Builder extends
6408 com.google.protobuf.GeneratedMessage.Builder<Builder>
6409 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
6410 public static final com.google.protobuf.Descriptors.Descriptor
6412 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6415 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6416 internalGetFieldAccessorTable() {
6417 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
6418 .ensureFieldAccessorsInitialized(
6419 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
6422 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
6424 maybeForceBuilderInitialization();
6428 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6430 maybeForceBuilderInitialization();
6432 private void maybeForceBuilderInitialization() {
6433 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6436 private static Builder create() {
6437 return new Builder();
6440 public Builder clear() {
6442 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6443 bitField0_ = (bitField0_ & ~0x00000001);
6445 bitField0_ = (bitField0_ & ~0x00000002);
6447 bitField0_ = (bitField0_ & ~0x00000004);
6451 public Builder clone() {
6452 return create().mergeFrom(buildPartial());
6455 public com.google.protobuf.Descriptors.Descriptor
6456 getDescriptorForType() {
6457 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
6460 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
6461 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
6464 public com.openxc.BinaryMessages.CommandResponse build() {
6465 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
6466 if (!result.isInitialized()) {
6467 throw newUninitializedMessageException(result);
6472 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
6473 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
6474 int from_bitField0_ = bitField0_;
6475 int to_bitField0_ = 0;
6476 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6477 to_bitField0_ |= 0x00000001;
6479 result.type_ = type_;
6480 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6481 to_bitField0_ |= 0x00000002;
6483 result.message_ = message_;
6484 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6485 to_bitField0_ |= 0x00000004;
6487 result.status_ = status_;
6488 result.bitField0_ = to_bitField0_;
6493 public Builder mergeFrom(com.google.protobuf.Message other) {
6494 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
6495 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
6497 super.mergeFrom(other);
6502 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
6503 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
6504 if (other.hasType()) {
6505 setType(other.getType());
6507 if (other.hasMessage()) {
6508 bitField0_ |= 0x00000002;
6509 message_ = other.message_;
6512 if (other.hasStatus()) {
6513 setStatus(other.getStatus());
6515 this.mergeUnknownFields(other.getUnknownFields());
6519 public final boolean isInitialized() {
6523 public Builder mergeFrom(
6524 com.google.protobuf.CodedInputStream input,
6525 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6526 throws java.io.IOException {
6527 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
6529 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6530 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6531 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
6534 if (parsedMessage != null) {
6535 mergeFrom(parsedMessage);
6540 private int bitField0_;
6542 // optional .openxc.ControlCommand.Type type = 1;
6543 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6545 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6547 public boolean hasType() {
6548 return ((bitField0_ & 0x00000001) == 0x00000001);
6551 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6553 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
6557 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6559 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
6560 if (value == null) {
6561 throw new NullPointerException();
6563 bitField0_ |= 0x00000001;
6569 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
6571 public Builder clearType() {
6572 bitField0_ = (bitField0_ & ~0x00000001);
6573 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
6578 // optional string message = 2;
6579 private java.lang.Object message_ = "";
6581 * <code>optional string message = 2;</code>
6583 public boolean hasMessage() {
6584 return ((bitField0_ & 0x00000002) == 0x00000002);
6587 * <code>optional string message = 2;</code>
6589 public java.lang.String getMessage() {
6590 java.lang.Object ref = message_;
6591 if (!(ref instanceof java.lang.String)) {
6592 java.lang.String s = ((com.google.protobuf.ByteString) ref)
6597 return (java.lang.String) ref;
6601 * <code>optional string message = 2;</code>
6603 public com.google.protobuf.ByteString
6605 java.lang.Object ref = message_;
6606 if (ref instanceof String) {
6607 com.google.protobuf.ByteString b =
6608 com.google.protobuf.ByteString.copyFromUtf8(
6609 (java.lang.String) ref);
6613 return (com.google.protobuf.ByteString) ref;
6617 * <code>optional string message = 2;</code>
6619 public Builder setMessage(
6620 java.lang.String value) {
6621 if (value == null) {
6622 throw new NullPointerException();
6624 bitField0_ |= 0x00000002;
6630 * <code>optional string message = 2;</code>
6632 public Builder clearMessage() {
6633 bitField0_ = (bitField0_ & ~0x00000002);
6634 message_ = getDefaultInstance().getMessage();
6639 * <code>optional string message = 2;</code>
6641 public Builder setMessageBytes(
6642 com.google.protobuf.ByteString value) {
6643 if (value == null) {
6644 throw new NullPointerException();
6646 bitField0_ |= 0x00000002;
6652 // optional bool status = 3;
6653 private boolean status_ ;
6655 * <code>optional bool status = 3;</code>
6657 public boolean hasStatus() {
6658 return ((bitField0_ & 0x00000004) == 0x00000004);
6661 * <code>optional bool status = 3;</code>
6663 public boolean getStatus() {
6667 * <code>optional bool status = 3;</code>
6669 public Builder setStatus(boolean value) {
6670 bitField0_ |= 0x00000004;
6676 * <code>optional bool status = 3;</code>
6678 public Builder clearStatus() {
6679 bitField0_ = (bitField0_ & ~0x00000004);
6685 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
6689 defaultInstance = new CommandResponse(true);
6690 defaultInstance.initFields();
6693 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
6696 public interface DiagnosticRequestOrBuilder
6697 extends com.google.protobuf.MessageOrBuilder {
6699 // optional int32 bus = 1;
6701 * <code>optional int32 bus = 1;</code>
6705 * <code>optional int32 bus = 1;</code>
6709 // optional uint32 message_id = 2;
6711 * <code>optional uint32 message_id = 2;</code>
6713 boolean hasMessageId();
6715 * <code>optional uint32 message_id = 2;</code>
6719 // optional uint32 mode = 3;
6721 * <code>optional uint32 mode = 3;</code>
6725 * <code>optional uint32 mode = 3;</code>
6729 // optional uint32 pid = 4;
6731 * <code>optional uint32 pid = 4;</code>
6735 * <code>optional uint32 pid = 4;</code>
6739 // optional bytes payload = 5;
6741 * <code>optional bytes payload = 5;</code>
6744 * TODO we are capping this at 8 bytes for now - need to change when we
6745 * support multi-frame responses
6748 boolean hasPayload();
6750 * <code>optional bytes payload = 5;</code>
6753 * TODO we are capping this at 8 bytes for now - need to change when we
6754 * support multi-frame responses
6757 com.google.protobuf.ByteString getPayload();
6759 // optional bool multiple_responses = 6;
6761 * <code>optional bool multiple_responses = 6;</code>
6763 boolean hasMultipleResponses();
6765 * <code>optional bool multiple_responses = 6;</code>
6767 boolean getMultipleResponses();
6769 // optional double frequency = 7;
6771 * <code>optional double frequency = 7;</code>
6773 boolean hasFrequency();
6775 * <code>optional double frequency = 7;</code>
6777 double getFrequency();
6779 // optional string name = 8;
6781 * <code>optional string name = 8;</code>
6785 * <code>optional string name = 8;</code>
6787 java.lang.String getName();
6789 * <code>optional string name = 8;</code>
6791 com.google.protobuf.ByteString
6794 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
6796 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6798 boolean hasDecodedType();
6800 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6802 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
6805 * Protobuf type {@code openxc.DiagnosticRequest}
6807 public static final class DiagnosticRequest extends
6808 com.google.protobuf.GeneratedMessage
6809 implements DiagnosticRequestOrBuilder {
6810 // Use DiagnosticRequest.newBuilder() to construct.
6811 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6813 this.unknownFields = builder.getUnknownFields();
6815 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6817 private static final DiagnosticRequest defaultInstance;
6818 public static DiagnosticRequest getDefaultInstance() {
6819 return defaultInstance;
6822 public DiagnosticRequest getDefaultInstanceForType() {
6823 return defaultInstance;
6826 private final com.google.protobuf.UnknownFieldSet unknownFields;
6828 public final com.google.protobuf.UnknownFieldSet
6829 getUnknownFields() {
6830 return this.unknownFields;
6832 private DiagnosticRequest(
6833 com.google.protobuf.CodedInputStream input,
6834 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6835 throws com.google.protobuf.InvalidProtocolBufferException {
6837 int mutable_bitField0_ = 0;
6838 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6839 com.google.protobuf.UnknownFieldSet.newBuilder();
6841 boolean done = false;
6843 int tag = input.readTag();
6849 if (!parseUnknownField(input, unknownFields,
6850 extensionRegistry, tag)) {
6856 bitField0_ |= 0x00000001;
6857 bus_ = input.readInt32();
6861 bitField0_ |= 0x00000002;
6862 messageId_ = input.readUInt32();
6866 bitField0_ |= 0x00000004;
6867 mode_ = input.readUInt32();
6871 bitField0_ |= 0x00000008;
6872 pid_ = input.readUInt32();
6876 bitField0_ |= 0x00000010;
6877 payload_ = input.readBytes();
6881 bitField0_ |= 0x00000020;
6882 multipleResponses_ = input.readBool();
6886 bitField0_ |= 0x00000040;
6887 frequency_ = input.readDouble();
6891 bitField0_ |= 0x00000080;
6892 name_ = input.readBytes();
6896 int rawValue = input.readEnum();
6897 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
6898 if (value == null) {
6899 unknownFields.mergeVarintField(9, rawValue);
6901 bitField0_ |= 0x00000100;
6902 decodedType_ = value;
6908 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6909 throw e.setUnfinishedMessage(this);
6910 } catch (java.io.IOException e) {
6911 throw new com.google.protobuf.InvalidProtocolBufferException(
6912 e.getMessage()).setUnfinishedMessage(this);
6914 this.unknownFields = unknownFields.build();
6915 makeExtensionsImmutable();
6918 public static final com.google.protobuf.Descriptors.Descriptor
6920 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
6923 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6924 internalGetFieldAccessorTable() {
6925 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
6926 .ensureFieldAccessorsInitialized(
6927 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
6930 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
6931 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
6932 public DiagnosticRequest parsePartialFrom(
6933 com.google.protobuf.CodedInputStream input,
6934 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6935 throws com.google.protobuf.InvalidProtocolBufferException {
6936 return new DiagnosticRequest(input, extensionRegistry);
6941 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
6946 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
6948 public enum DecodedType
6949 implements com.google.protobuf.ProtocolMessageEnum {
6951 * <code>NONE = 1;</code>
6955 * <code>OBD2 = 2;</code>
6961 * <code>NONE = 1;</code>
6963 public static final int NONE_VALUE = 1;
6965 * <code>OBD2 = 2;</code>
6967 public static final int OBD2_VALUE = 2;
6970 public final int getNumber() { return value; }
6972 public static DecodedType valueOf(int value) {
6974 case 1: return NONE;
6975 case 2: return OBD2;
6976 default: return null;
6980 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
6981 internalGetValueMap() {
6982 return internalValueMap;
6984 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
6986 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
6987 public DecodedType findValueByNumber(int number) {
6988 return DecodedType.valueOf(number);
6992 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6993 getValueDescriptor() {
6994 return getDescriptor().getValues().get(index);
6996 public final com.google.protobuf.Descriptors.EnumDescriptor
6997 getDescriptorForType() {
6998 return getDescriptor();
7000 public static final com.google.protobuf.Descriptors.EnumDescriptor
7002 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
7005 private static final DecodedType[] VALUES = values();
7007 public static DecodedType valueOf(
7008 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
7009 if (desc.getType() != getDescriptor()) {
7010 throw new java.lang.IllegalArgumentException(
7011 "EnumValueDescriptor is not for this type.");
7013 return VALUES[desc.getIndex()];
7016 private final int index;
7017 private final int value;
7019 private DecodedType(int index, int value) {
7024 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
7027 private int bitField0_;
7028 // optional int32 bus = 1;
7029 public static final int BUS_FIELD_NUMBER = 1;
7032 * <code>optional int32 bus = 1;</code>
7034 public boolean hasBus() {
7035 return ((bitField0_ & 0x00000001) == 0x00000001);
7038 * <code>optional int32 bus = 1;</code>
7040 public int getBus() {
7044 // optional uint32 message_id = 2;
7045 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
7046 private int messageId_;
7048 * <code>optional uint32 message_id = 2;</code>
7050 public boolean hasMessageId() {
7051 return ((bitField0_ & 0x00000002) == 0x00000002);
7054 * <code>optional uint32 message_id = 2;</code>
7056 public int getMessageId() {
7060 // optional uint32 mode = 3;
7061 public static final int MODE_FIELD_NUMBER = 3;
7064 * <code>optional uint32 mode = 3;</code>
7066 public boolean hasMode() {
7067 return ((bitField0_ & 0x00000004) == 0x00000004);
7070 * <code>optional uint32 mode = 3;</code>
7072 public int getMode() {
7076 // optional uint32 pid = 4;
7077 public static final int PID_FIELD_NUMBER = 4;
7080 * <code>optional uint32 pid = 4;</code>
7082 public boolean hasPid() {
7083 return ((bitField0_ & 0x00000008) == 0x00000008);
7086 * <code>optional uint32 pid = 4;</code>
7088 public int getPid() {
7092 // optional bytes payload = 5;
7093 public static final int PAYLOAD_FIELD_NUMBER = 5;
7094 private com.google.protobuf.ByteString payload_;
7096 * <code>optional bytes payload = 5;</code>
7099 * TODO we are capping this at 8 bytes for now - need to change when we
7100 * support multi-frame responses
7103 public boolean hasPayload() {
7104 return ((bitField0_ & 0x00000010) == 0x00000010);
7107 * <code>optional bytes payload = 5;</code>
7110 * TODO we are capping this at 8 bytes for now - need to change when we
7111 * support multi-frame responses
7114 public com.google.protobuf.ByteString getPayload() {
7118 // optional bool multiple_responses = 6;
7119 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
7120 private boolean multipleResponses_;
7122 * <code>optional bool multiple_responses = 6;</code>
7124 public boolean hasMultipleResponses() {
7125 return ((bitField0_ & 0x00000020) == 0x00000020);
7128 * <code>optional bool multiple_responses = 6;</code>
7130 public boolean getMultipleResponses() {
7131 return multipleResponses_;
7134 // optional double frequency = 7;
7135 public static final int FREQUENCY_FIELD_NUMBER = 7;
7136 private double frequency_;
7138 * <code>optional double frequency = 7;</code>
7140 public boolean hasFrequency() {
7141 return ((bitField0_ & 0x00000040) == 0x00000040);
7144 * <code>optional double frequency = 7;</code>
7146 public double getFrequency() {
7150 // optional string name = 8;
7151 public static final int NAME_FIELD_NUMBER = 8;
7152 private java.lang.Object name_;
7154 * <code>optional string name = 8;</code>
7156 public boolean hasName() {
7157 return ((bitField0_ & 0x00000080) == 0x00000080);
7160 * <code>optional string name = 8;</code>
7162 public java.lang.String getName() {
7163 java.lang.Object ref = name_;
7164 if (ref instanceof java.lang.String) {
7165 return (java.lang.String) ref;
7167 com.google.protobuf.ByteString bs =
7168 (com.google.protobuf.ByteString) ref;
7169 java.lang.String s = bs.toStringUtf8();
7170 if (bs.isValidUtf8()) {
7177 * <code>optional string name = 8;</code>
7179 public com.google.protobuf.ByteString
7181 java.lang.Object ref = name_;
7182 if (ref instanceof java.lang.String) {
7183 com.google.protobuf.ByteString b =
7184 com.google.protobuf.ByteString.copyFromUtf8(
7185 (java.lang.String) ref);
7189 return (com.google.protobuf.ByteString) ref;
7193 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
7194 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
7195 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
7197 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7199 public boolean hasDecodedType() {
7200 return ((bitField0_ & 0x00000100) == 0x00000100);
7203 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7205 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
7206 return decodedType_;
7209 private void initFields() {
7214 payload_ = com.google.protobuf.ByteString.EMPTY;
7215 multipleResponses_ = false;
7218 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7220 private byte memoizedIsInitialized = -1;
7221 public final boolean isInitialized() {
7222 byte isInitialized = memoizedIsInitialized;
7223 if (isInitialized != -1) return isInitialized == 1;
7225 memoizedIsInitialized = 1;
7229 public void writeTo(com.google.protobuf.CodedOutputStream output)
7230 throws java.io.IOException {
7231 getSerializedSize();
7232 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7233 output.writeInt32(1, bus_);
7235 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7236 output.writeUInt32(2, messageId_);
7238 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7239 output.writeUInt32(3, mode_);
7241 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7242 output.writeUInt32(4, pid_);
7244 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7245 output.writeBytes(5, payload_);
7247 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7248 output.writeBool(6, multipleResponses_);
7250 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7251 output.writeDouble(7, frequency_);
7253 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7254 output.writeBytes(8, getNameBytes());
7256 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7257 output.writeEnum(9, decodedType_.getNumber());
7259 getUnknownFields().writeTo(output);
7262 private int memoizedSerializedSize = -1;
7263 public int getSerializedSize() {
7264 int size = memoizedSerializedSize;
7265 if (size != -1) return size;
7268 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7269 size += com.google.protobuf.CodedOutputStream
7270 .computeInt32Size(1, bus_);
7272 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7273 size += com.google.protobuf.CodedOutputStream
7274 .computeUInt32Size(2, messageId_);
7276 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7277 size += com.google.protobuf.CodedOutputStream
7278 .computeUInt32Size(3, mode_);
7280 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7281 size += com.google.protobuf.CodedOutputStream
7282 .computeUInt32Size(4, pid_);
7284 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7285 size += com.google.protobuf.CodedOutputStream
7286 .computeBytesSize(5, payload_);
7288 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7289 size += com.google.protobuf.CodedOutputStream
7290 .computeBoolSize(6, multipleResponses_);
7292 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7293 size += com.google.protobuf.CodedOutputStream
7294 .computeDoubleSize(7, frequency_);
7296 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7297 size += com.google.protobuf.CodedOutputStream
7298 .computeBytesSize(8, getNameBytes());
7300 if (((bitField0_ & 0x00000100) == 0x00000100)) {
7301 size += com.google.protobuf.CodedOutputStream
7302 .computeEnumSize(9, decodedType_.getNumber());
7304 size += getUnknownFields().getSerializedSize();
7305 memoizedSerializedSize = size;
7309 private static final long serialVersionUID = 0L;
7311 protected java.lang.Object writeReplace()
7312 throws java.io.ObjectStreamException {
7313 return super.writeReplace();
7316 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7317 com.google.protobuf.ByteString data)
7318 throws com.google.protobuf.InvalidProtocolBufferException {
7319 return PARSER.parseFrom(data);
7321 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7322 com.google.protobuf.ByteString data,
7323 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7324 throws com.google.protobuf.InvalidProtocolBufferException {
7325 return PARSER.parseFrom(data, extensionRegistry);
7327 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
7328 throws com.google.protobuf.InvalidProtocolBufferException {
7329 return PARSER.parseFrom(data);
7331 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7334 throws com.google.protobuf.InvalidProtocolBufferException {
7335 return PARSER.parseFrom(data, extensionRegistry);
7337 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
7338 throws java.io.IOException {
7339 return PARSER.parseFrom(input);
7341 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7342 java.io.InputStream input,
7343 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7344 throws java.io.IOException {
7345 return PARSER.parseFrom(input, extensionRegistry);
7347 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
7348 throws java.io.IOException {
7349 return PARSER.parseDelimitedFrom(input);
7351 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
7352 java.io.InputStream input,
7353 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7354 throws java.io.IOException {
7355 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7357 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7358 com.google.protobuf.CodedInputStream input)
7359 throws java.io.IOException {
7360 return PARSER.parseFrom(input);
7362 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
7363 com.google.protobuf.CodedInputStream input,
7364 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7365 throws java.io.IOException {
7366 return PARSER.parseFrom(input, extensionRegistry);
7369 public static Builder newBuilder() { return Builder.create(); }
7370 public Builder newBuilderForType() { return newBuilder(); }
7371 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
7372 return newBuilder().mergeFrom(prototype);
7374 public Builder toBuilder() { return newBuilder(this); }
7377 protected Builder newBuilderForType(
7378 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7379 Builder builder = new Builder(parent);
7383 * Protobuf type {@code openxc.DiagnosticRequest}
7385 public static final class Builder extends
7386 com.google.protobuf.GeneratedMessage.Builder<Builder>
7387 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
7388 public static final com.google.protobuf.Descriptors.Descriptor
7390 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7393 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7394 internalGetFieldAccessorTable() {
7395 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
7396 .ensureFieldAccessorsInitialized(
7397 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
7400 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
7402 maybeForceBuilderInitialization();
7406 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7408 maybeForceBuilderInitialization();
7410 private void maybeForceBuilderInitialization() {
7411 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7414 private static Builder create() {
7415 return new Builder();
7418 public Builder clear() {
7421 bitField0_ = (bitField0_ & ~0x00000001);
7423 bitField0_ = (bitField0_ & ~0x00000002);
7425 bitField0_ = (bitField0_ & ~0x00000004);
7427 bitField0_ = (bitField0_ & ~0x00000008);
7428 payload_ = com.google.protobuf.ByteString.EMPTY;
7429 bitField0_ = (bitField0_ & ~0x00000010);
7430 multipleResponses_ = false;
7431 bitField0_ = (bitField0_ & ~0x00000020);
7433 bitField0_ = (bitField0_ & ~0x00000040);
7435 bitField0_ = (bitField0_ & ~0x00000080);
7436 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7437 bitField0_ = (bitField0_ & ~0x00000100);
7441 public Builder clone() {
7442 return create().mergeFrom(buildPartial());
7445 public com.google.protobuf.Descriptors.Descriptor
7446 getDescriptorForType() {
7447 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
7450 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
7451 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
7454 public com.openxc.BinaryMessages.DiagnosticRequest build() {
7455 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
7456 if (!result.isInitialized()) {
7457 throw newUninitializedMessageException(result);
7462 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
7463 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
7464 int from_bitField0_ = bitField0_;
7465 int to_bitField0_ = 0;
7466 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7467 to_bitField0_ |= 0x00000001;
7470 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7471 to_bitField0_ |= 0x00000002;
7473 result.messageId_ = messageId_;
7474 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7475 to_bitField0_ |= 0x00000004;
7477 result.mode_ = mode_;
7478 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7479 to_bitField0_ |= 0x00000008;
7482 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
7483 to_bitField0_ |= 0x00000010;
7485 result.payload_ = payload_;
7486 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
7487 to_bitField0_ |= 0x00000020;
7489 result.multipleResponses_ = multipleResponses_;
7490 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
7491 to_bitField0_ |= 0x00000040;
7493 result.frequency_ = frequency_;
7494 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
7495 to_bitField0_ |= 0x00000080;
7497 result.name_ = name_;
7498 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
7499 to_bitField0_ |= 0x00000100;
7501 result.decodedType_ = decodedType_;
7502 result.bitField0_ = to_bitField0_;
7507 public Builder mergeFrom(com.google.protobuf.Message other) {
7508 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
7509 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
7511 super.mergeFrom(other);
7516 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
7517 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
7518 if (other.hasBus()) {
7519 setBus(other.getBus());
7521 if (other.hasMessageId()) {
7522 setMessageId(other.getMessageId());
7524 if (other.hasMode()) {
7525 setMode(other.getMode());
7527 if (other.hasPid()) {
7528 setPid(other.getPid());
7530 if (other.hasPayload()) {
7531 setPayload(other.getPayload());
7533 if (other.hasMultipleResponses()) {
7534 setMultipleResponses(other.getMultipleResponses());
7536 if (other.hasFrequency()) {
7537 setFrequency(other.getFrequency());
7539 if (other.hasName()) {
7540 bitField0_ |= 0x00000080;
7541 name_ = other.name_;
7544 if (other.hasDecodedType()) {
7545 setDecodedType(other.getDecodedType());
7547 this.mergeUnknownFields(other.getUnknownFields());
7551 public final boolean isInitialized() {
7555 public Builder mergeFrom(
7556 com.google.protobuf.CodedInputStream input,
7557 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7558 throws java.io.IOException {
7559 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
7561 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7562 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7563 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
7566 if (parsedMessage != null) {
7567 mergeFrom(parsedMessage);
7572 private int bitField0_;
7574 // optional int32 bus = 1;
7577 * <code>optional int32 bus = 1;</code>
7579 public boolean hasBus() {
7580 return ((bitField0_ & 0x00000001) == 0x00000001);
7583 * <code>optional int32 bus = 1;</code>
7585 public int getBus() {
7589 * <code>optional int32 bus = 1;</code>
7591 public Builder setBus(int value) {
7592 bitField0_ |= 0x00000001;
7598 * <code>optional int32 bus = 1;</code>
7600 public Builder clearBus() {
7601 bitField0_ = (bitField0_ & ~0x00000001);
7607 // optional uint32 message_id = 2;
7608 private int messageId_ ;
7610 * <code>optional uint32 message_id = 2;</code>
7612 public boolean hasMessageId() {
7613 return ((bitField0_ & 0x00000002) == 0x00000002);
7616 * <code>optional uint32 message_id = 2;</code>
7618 public int getMessageId() {
7622 * <code>optional uint32 message_id = 2;</code>
7624 public Builder setMessageId(int value) {
7625 bitField0_ |= 0x00000002;
7631 * <code>optional uint32 message_id = 2;</code>
7633 public Builder clearMessageId() {
7634 bitField0_ = (bitField0_ & ~0x00000002);
7640 // optional uint32 mode = 3;
7643 * <code>optional uint32 mode = 3;</code>
7645 public boolean hasMode() {
7646 return ((bitField0_ & 0x00000004) == 0x00000004);
7649 * <code>optional uint32 mode = 3;</code>
7651 public int getMode() {
7655 * <code>optional uint32 mode = 3;</code>
7657 public Builder setMode(int value) {
7658 bitField0_ |= 0x00000004;
7664 * <code>optional uint32 mode = 3;</code>
7666 public Builder clearMode() {
7667 bitField0_ = (bitField0_ & ~0x00000004);
7673 // optional uint32 pid = 4;
7676 * <code>optional uint32 pid = 4;</code>
7678 public boolean hasPid() {
7679 return ((bitField0_ & 0x00000008) == 0x00000008);
7682 * <code>optional uint32 pid = 4;</code>
7684 public int getPid() {
7688 * <code>optional uint32 pid = 4;</code>
7690 public Builder setPid(int value) {
7691 bitField0_ |= 0x00000008;
7697 * <code>optional uint32 pid = 4;</code>
7699 public Builder clearPid() {
7700 bitField0_ = (bitField0_ & ~0x00000008);
7706 // optional bytes payload = 5;
7707 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
7709 * <code>optional bytes payload = 5;</code>
7712 * TODO we are capping this at 8 bytes for now - need to change when we
7713 * support multi-frame responses
7716 public boolean hasPayload() {
7717 return ((bitField0_ & 0x00000010) == 0x00000010);
7720 * <code>optional bytes payload = 5;</code>
7723 * TODO we are capping this at 8 bytes for now - need to change when we
7724 * support multi-frame responses
7727 public com.google.protobuf.ByteString getPayload() {
7731 * <code>optional bytes payload = 5;</code>
7734 * TODO we are capping this at 8 bytes for now - need to change when we
7735 * support multi-frame responses
7738 public Builder setPayload(com.google.protobuf.ByteString value) {
7739 if (value == null) {
7740 throw new NullPointerException();
7742 bitField0_ |= 0x00000010;
7748 * <code>optional bytes payload = 5;</code>
7751 * TODO we are capping this at 8 bytes for now - need to change when we
7752 * support multi-frame responses
7755 public Builder clearPayload() {
7756 bitField0_ = (bitField0_ & ~0x00000010);
7757 payload_ = getDefaultInstance().getPayload();
7762 // optional bool multiple_responses = 6;
7763 private boolean multipleResponses_ ;
7765 * <code>optional bool multiple_responses = 6;</code>
7767 public boolean hasMultipleResponses() {
7768 return ((bitField0_ & 0x00000020) == 0x00000020);
7771 * <code>optional bool multiple_responses = 6;</code>
7773 public boolean getMultipleResponses() {
7774 return multipleResponses_;
7777 * <code>optional bool multiple_responses = 6;</code>
7779 public Builder setMultipleResponses(boolean value) {
7780 bitField0_ |= 0x00000020;
7781 multipleResponses_ = value;
7786 * <code>optional bool multiple_responses = 6;</code>
7788 public Builder clearMultipleResponses() {
7789 bitField0_ = (bitField0_ & ~0x00000020);
7790 multipleResponses_ = false;
7795 // optional double frequency = 7;
7796 private double frequency_ ;
7798 * <code>optional double frequency = 7;</code>
7800 public boolean hasFrequency() {
7801 return ((bitField0_ & 0x00000040) == 0x00000040);
7804 * <code>optional double frequency = 7;</code>
7806 public double getFrequency() {
7810 * <code>optional double frequency = 7;</code>
7812 public Builder setFrequency(double value) {
7813 bitField0_ |= 0x00000040;
7819 * <code>optional double frequency = 7;</code>
7821 public Builder clearFrequency() {
7822 bitField0_ = (bitField0_ & ~0x00000040);
7828 // optional string name = 8;
7829 private java.lang.Object name_ = "";
7831 * <code>optional string name = 8;</code>
7833 public boolean hasName() {
7834 return ((bitField0_ & 0x00000080) == 0x00000080);
7837 * <code>optional string name = 8;</code>
7839 public java.lang.String getName() {
7840 java.lang.Object ref = name_;
7841 if (!(ref instanceof java.lang.String)) {
7842 java.lang.String s = ((com.google.protobuf.ByteString) ref)
7847 return (java.lang.String) ref;
7851 * <code>optional string name = 8;</code>
7853 public com.google.protobuf.ByteString
7855 java.lang.Object ref = name_;
7856 if (ref instanceof String) {
7857 com.google.protobuf.ByteString b =
7858 com.google.protobuf.ByteString.copyFromUtf8(
7859 (java.lang.String) ref);
7863 return (com.google.protobuf.ByteString) ref;
7867 * <code>optional string name = 8;</code>
7869 public Builder setName(
7870 java.lang.String value) {
7871 if (value == null) {
7872 throw new NullPointerException();
7874 bitField0_ |= 0x00000080;
7880 * <code>optional string name = 8;</code>
7882 public Builder clearName() {
7883 bitField0_ = (bitField0_ & ~0x00000080);
7884 name_ = getDefaultInstance().getName();
7889 * <code>optional string name = 8;</code>
7891 public Builder setNameBytes(
7892 com.google.protobuf.ByteString value) {
7893 if (value == null) {
7894 throw new NullPointerException();
7896 bitField0_ |= 0x00000080;
7902 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
7903 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7905 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7907 public boolean hasDecodedType() {
7908 return ((bitField0_ & 0x00000100) == 0x00000100);
7911 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7913 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
7914 return decodedType_;
7917 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7919 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
7920 if (value == null) {
7921 throw new NullPointerException();
7923 bitField0_ |= 0x00000100;
7924 decodedType_ = value;
7929 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
7931 public Builder clearDecodedType() {
7932 bitField0_ = (bitField0_ & ~0x00000100);
7933 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
7938 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
7942 defaultInstance = new DiagnosticRequest(true);
7943 defaultInstance.initFields();
7946 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
7949 public interface DiagnosticResponseOrBuilder
7950 extends com.google.protobuf.MessageOrBuilder {
7952 // optional int32 bus = 1;
7954 * <code>optional int32 bus = 1;</code>
7958 * <code>optional int32 bus = 1;</code>
7962 // optional uint32 message_id = 2;
7964 * <code>optional uint32 message_id = 2;</code>
7966 boolean hasMessageId();
7968 * <code>optional uint32 message_id = 2;</code>
7972 // optional uint32 mode = 3;
7974 * <code>optional uint32 mode = 3;</code>
7978 * <code>optional uint32 mode = 3;</code>
7982 // optional uint32 pid = 4;
7984 * <code>optional uint32 pid = 4;</code>
7988 * <code>optional uint32 pid = 4;</code>
7992 // optional bool success = 5;
7994 * <code>optional bool success = 5;</code>
7996 boolean hasSuccess();
7998 * <code>optional bool success = 5;</code>
8000 boolean getSuccess();
8002 // optional uint32 negative_response_code = 6;
8004 * <code>optional uint32 negative_response_code = 6;</code>
8006 boolean hasNegativeResponseCode();
8008 * <code>optional uint32 negative_response_code = 6;</code>
8010 int getNegativeResponseCode();
8012 // optional bytes payload = 7;
8014 * <code>optional bytes payload = 7;</code>
8017 * TODO we are capping this at 8 bytes for now - need to change when we
8018 * support multi-frame responses
8021 boolean hasPayload();
8023 * <code>optional bytes payload = 7;</code>
8026 * TODO we are capping this at 8 bytes for now - need to change when we
8027 * support multi-frame responses
8030 com.google.protobuf.ByteString getPayload();
8032 // optional double value = 8;
8034 * <code>optional double value = 8;</code>
8038 * <code>optional double value = 8;</code>
8043 * Protobuf type {@code openxc.DiagnosticResponse}
8045 public static final class DiagnosticResponse extends
8046 com.google.protobuf.GeneratedMessage
8047 implements DiagnosticResponseOrBuilder {
8048 // Use DiagnosticResponse.newBuilder() to construct.
8049 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
8051 this.unknownFields = builder.getUnknownFields();
8053 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
8055 private static final DiagnosticResponse defaultInstance;
8056 public static DiagnosticResponse getDefaultInstance() {
8057 return defaultInstance;
8060 public DiagnosticResponse getDefaultInstanceForType() {
8061 return defaultInstance;
8064 private final com.google.protobuf.UnknownFieldSet unknownFields;
8066 public final com.google.protobuf.UnknownFieldSet
8067 getUnknownFields() {
8068 return this.unknownFields;
8070 private DiagnosticResponse(
8071 com.google.protobuf.CodedInputStream input,
8072 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8073 throws com.google.protobuf.InvalidProtocolBufferException {
8075 int mutable_bitField0_ = 0;
8076 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8077 com.google.protobuf.UnknownFieldSet.newBuilder();
8079 boolean done = false;
8081 int tag = input.readTag();
8087 if (!parseUnknownField(input, unknownFields,
8088 extensionRegistry, tag)) {
8094 bitField0_ |= 0x00000001;
8095 bus_ = input.readInt32();
8099 bitField0_ |= 0x00000002;
8100 messageId_ = input.readUInt32();
8104 bitField0_ |= 0x00000004;
8105 mode_ = input.readUInt32();
8109 bitField0_ |= 0x00000008;
8110 pid_ = input.readUInt32();
8114 bitField0_ |= 0x00000010;
8115 success_ = input.readBool();
8119 bitField0_ |= 0x00000020;
8120 negativeResponseCode_ = input.readUInt32();
8124 bitField0_ |= 0x00000040;
8125 payload_ = input.readBytes();
8129 bitField0_ |= 0x00000080;
8130 value_ = input.readDouble();
8135 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8136 throw e.setUnfinishedMessage(this);
8137 } catch (java.io.IOException e) {
8138 throw new com.google.protobuf.InvalidProtocolBufferException(
8139 e.getMessage()).setUnfinishedMessage(this);
8141 this.unknownFields = unknownFields.build();
8142 makeExtensionsImmutable();
8145 public static final com.google.protobuf.Descriptors.Descriptor
8147 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8150 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8151 internalGetFieldAccessorTable() {
8152 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8153 .ensureFieldAccessorsInitialized(
8154 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8157 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
8158 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
8159 public DiagnosticResponse parsePartialFrom(
8160 com.google.protobuf.CodedInputStream input,
8161 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8162 throws com.google.protobuf.InvalidProtocolBufferException {
8163 return new DiagnosticResponse(input, extensionRegistry);
8168 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
8172 private int bitField0_;
8173 // optional int32 bus = 1;
8174 public static final int BUS_FIELD_NUMBER = 1;
8177 * <code>optional int32 bus = 1;</code>
8179 public boolean hasBus() {
8180 return ((bitField0_ & 0x00000001) == 0x00000001);
8183 * <code>optional int32 bus = 1;</code>
8185 public int getBus() {
8189 // optional uint32 message_id = 2;
8190 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8191 private int messageId_;
8193 * <code>optional uint32 message_id = 2;</code>
8195 public boolean hasMessageId() {
8196 return ((bitField0_ & 0x00000002) == 0x00000002);
8199 * <code>optional uint32 message_id = 2;</code>
8201 public int getMessageId() {
8205 // optional uint32 mode = 3;
8206 public static final int MODE_FIELD_NUMBER = 3;
8209 * <code>optional uint32 mode = 3;</code>
8211 public boolean hasMode() {
8212 return ((bitField0_ & 0x00000004) == 0x00000004);
8215 * <code>optional uint32 mode = 3;</code>
8217 public int getMode() {
8221 // optional uint32 pid = 4;
8222 public static final int PID_FIELD_NUMBER = 4;
8225 * <code>optional uint32 pid = 4;</code>
8227 public boolean hasPid() {
8228 return ((bitField0_ & 0x00000008) == 0x00000008);
8231 * <code>optional uint32 pid = 4;</code>
8233 public int getPid() {
8237 // optional bool success = 5;
8238 public static final int SUCCESS_FIELD_NUMBER = 5;
8239 private boolean success_;
8241 * <code>optional bool success = 5;</code>
8243 public boolean hasSuccess() {
8244 return ((bitField0_ & 0x00000010) == 0x00000010);
8247 * <code>optional bool success = 5;</code>
8249 public boolean getSuccess() {
8253 // optional uint32 negative_response_code = 6;
8254 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
8255 private int negativeResponseCode_;
8257 * <code>optional uint32 negative_response_code = 6;</code>
8259 public boolean hasNegativeResponseCode() {
8260 return ((bitField0_ & 0x00000020) == 0x00000020);
8263 * <code>optional uint32 negative_response_code = 6;</code>
8265 public int getNegativeResponseCode() {
8266 return negativeResponseCode_;
8269 // optional bytes payload = 7;
8270 public static final int PAYLOAD_FIELD_NUMBER = 7;
8271 private com.google.protobuf.ByteString payload_;
8273 * <code>optional bytes payload = 7;</code>
8276 * TODO we are capping this at 8 bytes for now - need to change when we
8277 * support multi-frame responses
8280 public boolean hasPayload() {
8281 return ((bitField0_ & 0x00000040) == 0x00000040);
8284 * <code>optional bytes payload = 7;</code>
8287 * TODO we are capping this at 8 bytes for now - need to change when we
8288 * support multi-frame responses
8291 public com.google.protobuf.ByteString getPayload() {
8295 // optional double value = 8;
8296 public static final int VALUE_FIELD_NUMBER = 8;
8297 private double value_;
8299 * <code>optional double value = 8;</code>
8301 public boolean hasValue() {
8302 return ((bitField0_ & 0x00000080) == 0x00000080);
8305 * <code>optional double value = 8;</code>
8307 public double getValue() {
8311 private void initFields() {
8317 negativeResponseCode_ = 0;
8318 payload_ = com.google.protobuf.ByteString.EMPTY;
8321 private byte memoizedIsInitialized = -1;
8322 public final boolean isInitialized() {
8323 byte isInitialized = memoizedIsInitialized;
8324 if (isInitialized != -1) return isInitialized == 1;
8326 memoizedIsInitialized = 1;
8330 public void writeTo(com.google.protobuf.CodedOutputStream output)
8331 throws java.io.IOException {
8332 getSerializedSize();
8333 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8334 output.writeInt32(1, bus_);
8336 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8337 output.writeUInt32(2, messageId_);
8339 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8340 output.writeUInt32(3, mode_);
8342 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8343 output.writeUInt32(4, pid_);
8345 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8346 output.writeBool(5, success_);
8348 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8349 output.writeUInt32(6, negativeResponseCode_);
8351 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8352 output.writeBytes(7, payload_);
8354 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8355 output.writeDouble(8, value_);
8357 getUnknownFields().writeTo(output);
8360 private int memoizedSerializedSize = -1;
8361 public int getSerializedSize() {
8362 int size = memoizedSerializedSize;
8363 if (size != -1) return size;
8366 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8367 size += com.google.protobuf.CodedOutputStream
8368 .computeInt32Size(1, bus_);
8370 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8371 size += com.google.protobuf.CodedOutputStream
8372 .computeUInt32Size(2, messageId_);
8374 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8375 size += com.google.protobuf.CodedOutputStream
8376 .computeUInt32Size(3, mode_);
8378 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8379 size += com.google.protobuf.CodedOutputStream
8380 .computeUInt32Size(4, pid_);
8382 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8383 size += com.google.protobuf.CodedOutputStream
8384 .computeBoolSize(5, success_);
8386 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8387 size += com.google.protobuf.CodedOutputStream
8388 .computeUInt32Size(6, negativeResponseCode_);
8390 if (((bitField0_ & 0x00000040) == 0x00000040)) {
8391 size += com.google.protobuf.CodedOutputStream
8392 .computeBytesSize(7, payload_);
8394 if (((bitField0_ & 0x00000080) == 0x00000080)) {
8395 size += com.google.protobuf.CodedOutputStream
8396 .computeDoubleSize(8, value_);
8398 size += getUnknownFields().getSerializedSize();
8399 memoizedSerializedSize = size;
8403 private static final long serialVersionUID = 0L;
8405 protected java.lang.Object writeReplace()
8406 throws java.io.ObjectStreamException {
8407 return super.writeReplace();
8410 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8411 com.google.protobuf.ByteString data)
8412 throws com.google.protobuf.InvalidProtocolBufferException {
8413 return PARSER.parseFrom(data);
8415 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8416 com.google.protobuf.ByteString data,
8417 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8418 throws com.google.protobuf.InvalidProtocolBufferException {
8419 return PARSER.parseFrom(data, extensionRegistry);
8421 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
8422 throws com.google.protobuf.InvalidProtocolBufferException {
8423 return PARSER.parseFrom(data);
8425 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8428 throws com.google.protobuf.InvalidProtocolBufferException {
8429 return PARSER.parseFrom(data, extensionRegistry);
8431 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
8432 throws java.io.IOException {
8433 return PARSER.parseFrom(input);
8435 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8436 java.io.InputStream input,
8437 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8438 throws java.io.IOException {
8439 return PARSER.parseFrom(input, extensionRegistry);
8441 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
8442 throws java.io.IOException {
8443 return PARSER.parseDelimitedFrom(input);
8445 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
8446 java.io.InputStream input,
8447 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8448 throws java.io.IOException {
8449 return PARSER.parseDelimitedFrom(input, extensionRegistry);
8451 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8452 com.google.protobuf.CodedInputStream input)
8453 throws java.io.IOException {
8454 return PARSER.parseFrom(input);
8456 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
8457 com.google.protobuf.CodedInputStream input,
8458 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8459 throws java.io.IOException {
8460 return PARSER.parseFrom(input, extensionRegistry);
8463 public static Builder newBuilder() { return Builder.create(); }
8464 public Builder newBuilderForType() { return newBuilder(); }
8465 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
8466 return newBuilder().mergeFrom(prototype);
8468 public Builder toBuilder() { return newBuilder(this); }
8471 protected Builder newBuilderForType(
8472 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8473 Builder builder = new Builder(parent);
8477 * Protobuf type {@code openxc.DiagnosticResponse}
8479 public static final class Builder extends
8480 com.google.protobuf.GeneratedMessage.Builder<Builder>
8481 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
8482 public static final com.google.protobuf.Descriptors.Descriptor
8484 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8487 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8488 internalGetFieldAccessorTable() {
8489 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
8490 .ensureFieldAccessorsInitialized(
8491 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
8494 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
8496 maybeForceBuilderInitialization();
8500 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8502 maybeForceBuilderInitialization();
8504 private void maybeForceBuilderInitialization() {
8505 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8508 private static Builder create() {
8509 return new Builder();
8512 public Builder clear() {
8515 bitField0_ = (bitField0_ & ~0x00000001);
8517 bitField0_ = (bitField0_ & ~0x00000002);
8519 bitField0_ = (bitField0_ & ~0x00000004);
8521 bitField0_ = (bitField0_ & ~0x00000008);
8523 bitField0_ = (bitField0_ & ~0x00000010);
8524 negativeResponseCode_ = 0;
8525 bitField0_ = (bitField0_ & ~0x00000020);
8526 payload_ = com.google.protobuf.ByteString.EMPTY;
8527 bitField0_ = (bitField0_ & ~0x00000040);
8529 bitField0_ = (bitField0_ & ~0x00000080);
8533 public Builder clone() {
8534 return create().mergeFrom(buildPartial());
8537 public com.google.protobuf.Descriptors.Descriptor
8538 getDescriptorForType() {
8539 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
8542 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
8543 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
8546 public com.openxc.BinaryMessages.DiagnosticResponse build() {
8547 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
8548 if (!result.isInitialized()) {
8549 throw newUninitializedMessageException(result);
8554 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
8555 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
8556 int from_bitField0_ = bitField0_;
8557 int to_bitField0_ = 0;
8558 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8559 to_bitField0_ |= 0x00000001;
8562 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8563 to_bitField0_ |= 0x00000002;
8565 result.messageId_ = messageId_;
8566 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8567 to_bitField0_ |= 0x00000004;
8569 result.mode_ = mode_;
8570 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
8571 to_bitField0_ |= 0x00000008;
8574 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
8575 to_bitField0_ |= 0x00000010;
8577 result.success_ = success_;
8578 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
8579 to_bitField0_ |= 0x00000020;
8581 result.negativeResponseCode_ = negativeResponseCode_;
8582 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
8583 to_bitField0_ |= 0x00000040;
8585 result.payload_ = payload_;
8586 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
8587 to_bitField0_ |= 0x00000080;
8589 result.value_ = value_;
8590 result.bitField0_ = to_bitField0_;
8595 public Builder mergeFrom(com.google.protobuf.Message other) {
8596 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
8597 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
8599 super.mergeFrom(other);
8604 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
8605 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
8606 if (other.hasBus()) {
8607 setBus(other.getBus());
8609 if (other.hasMessageId()) {
8610 setMessageId(other.getMessageId());
8612 if (other.hasMode()) {
8613 setMode(other.getMode());
8615 if (other.hasPid()) {
8616 setPid(other.getPid());
8618 if (other.hasSuccess()) {
8619 setSuccess(other.getSuccess());
8621 if (other.hasNegativeResponseCode()) {
8622 setNegativeResponseCode(other.getNegativeResponseCode());
8624 if (other.hasPayload()) {
8625 setPayload(other.getPayload());
8627 if (other.hasValue()) {
8628 setValue(other.getValue());
8630 this.mergeUnknownFields(other.getUnknownFields());
8634 public final boolean isInitialized() {
8638 public Builder mergeFrom(
8639 com.google.protobuf.CodedInputStream input,
8640 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8641 throws java.io.IOException {
8642 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
8644 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
8645 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8646 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
8649 if (parsedMessage != null) {
8650 mergeFrom(parsedMessage);
8655 private int bitField0_;
8657 // optional int32 bus = 1;
8660 * <code>optional int32 bus = 1;</code>
8662 public boolean hasBus() {
8663 return ((bitField0_ & 0x00000001) == 0x00000001);
8666 * <code>optional int32 bus = 1;</code>
8668 public int getBus() {
8672 * <code>optional int32 bus = 1;</code>
8674 public Builder setBus(int value) {
8675 bitField0_ |= 0x00000001;
8681 * <code>optional int32 bus = 1;</code>
8683 public Builder clearBus() {
8684 bitField0_ = (bitField0_ & ~0x00000001);
8690 // optional uint32 message_id = 2;
8691 private int messageId_ ;
8693 * <code>optional uint32 message_id = 2;</code>
8695 public boolean hasMessageId() {
8696 return ((bitField0_ & 0x00000002) == 0x00000002);
8699 * <code>optional uint32 message_id = 2;</code>
8701 public int getMessageId() {
8705 * <code>optional uint32 message_id = 2;</code>
8707 public Builder setMessageId(int value) {
8708 bitField0_ |= 0x00000002;
8714 * <code>optional uint32 message_id = 2;</code>
8716 public Builder clearMessageId() {
8717 bitField0_ = (bitField0_ & ~0x00000002);
8723 // optional uint32 mode = 3;
8726 * <code>optional uint32 mode = 3;</code>
8728 public boolean hasMode() {
8729 return ((bitField0_ & 0x00000004) == 0x00000004);
8732 * <code>optional uint32 mode = 3;</code>
8734 public int getMode() {
8738 * <code>optional uint32 mode = 3;</code>
8740 public Builder setMode(int value) {
8741 bitField0_ |= 0x00000004;
8747 * <code>optional uint32 mode = 3;</code>
8749 public Builder clearMode() {
8750 bitField0_ = (bitField0_ & ~0x00000004);
8756 // optional uint32 pid = 4;
8759 * <code>optional uint32 pid = 4;</code>
8761 public boolean hasPid() {
8762 return ((bitField0_ & 0x00000008) == 0x00000008);
8765 * <code>optional uint32 pid = 4;</code>
8767 public int getPid() {
8771 * <code>optional uint32 pid = 4;</code>
8773 public Builder setPid(int value) {
8774 bitField0_ |= 0x00000008;
8780 * <code>optional uint32 pid = 4;</code>
8782 public Builder clearPid() {
8783 bitField0_ = (bitField0_ & ~0x00000008);
8789 // optional bool success = 5;
8790 private boolean success_ ;
8792 * <code>optional bool success = 5;</code>
8794 public boolean hasSuccess() {
8795 return ((bitField0_ & 0x00000010) == 0x00000010);
8798 * <code>optional bool success = 5;</code>
8800 public boolean getSuccess() {
8804 * <code>optional bool success = 5;</code>
8806 public Builder setSuccess(boolean value) {
8807 bitField0_ |= 0x00000010;
8813 * <code>optional bool success = 5;</code>
8815 public Builder clearSuccess() {
8816 bitField0_ = (bitField0_ & ~0x00000010);
8822 // optional uint32 negative_response_code = 6;
8823 private int negativeResponseCode_ ;
8825 * <code>optional uint32 negative_response_code = 6;</code>
8827 public boolean hasNegativeResponseCode() {
8828 return ((bitField0_ & 0x00000020) == 0x00000020);
8831 * <code>optional uint32 negative_response_code = 6;</code>
8833 public int getNegativeResponseCode() {
8834 return negativeResponseCode_;
8837 * <code>optional uint32 negative_response_code = 6;</code>
8839 public Builder setNegativeResponseCode(int value) {
8840 bitField0_ |= 0x00000020;
8841 negativeResponseCode_ = value;
8846 * <code>optional uint32 negative_response_code = 6;</code>
8848 public Builder clearNegativeResponseCode() {
8849 bitField0_ = (bitField0_ & ~0x00000020);
8850 negativeResponseCode_ = 0;
8855 // optional bytes payload = 7;
8856 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
8858 * <code>optional bytes payload = 7;</code>
8861 * TODO we are capping this at 8 bytes for now - need to change when we
8862 * support multi-frame responses
8865 public boolean hasPayload() {
8866 return ((bitField0_ & 0x00000040) == 0x00000040);
8869 * <code>optional bytes payload = 7;</code>
8872 * TODO we are capping this at 8 bytes for now - need to change when we
8873 * support multi-frame responses
8876 public com.google.protobuf.ByteString getPayload() {
8880 * <code>optional bytes payload = 7;</code>
8883 * TODO we are capping this at 8 bytes for now - need to change when we
8884 * support multi-frame responses
8887 public Builder setPayload(com.google.protobuf.ByteString value) {
8888 if (value == null) {
8889 throw new NullPointerException();
8891 bitField0_ |= 0x00000040;
8897 * <code>optional bytes payload = 7;</code>
8900 * TODO we are capping this at 8 bytes for now - need to change when we
8901 * support multi-frame responses
8904 public Builder clearPayload() {
8905 bitField0_ = (bitField0_ & ~0x00000040);
8906 payload_ = getDefaultInstance().getPayload();
8911 // optional double value = 8;
8912 private double value_ ;
8914 * <code>optional double value = 8;</code>
8916 public boolean hasValue() {
8917 return ((bitField0_ & 0x00000080) == 0x00000080);
8920 * <code>optional double value = 8;</code>
8922 public double getValue() {
8926 * <code>optional double value = 8;</code>
8928 public Builder setValue(double value) {
8929 bitField0_ |= 0x00000080;
8935 * <code>optional double value = 8;</code>
8937 public Builder clearValue() {
8938 bitField0_ = (bitField0_ & ~0x00000080);
8944 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
8948 defaultInstance = new DiagnosticResponse(true);
8949 defaultInstance.initFields();
8952 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
8955 public interface DynamicFieldOrBuilder
8956 extends com.google.protobuf.MessageOrBuilder {
8958 // optional .openxc.DynamicField.Type type = 1;
8960 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8964 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8966 com.openxc.BinaryMessages.DynamicField.Type getType();
8968 // optional string string_value = 2;
8970 * <code>optional string string_value = 2;</code>
8972 boolean hasStringValue();
8974 * <code>optional string string_value = 2;</code>
8976 java.lang.String getStringValue();
8978 * <code>optional string string_value = 2;</code>
8980 com.google.protobuf.ByteString
8981 getStringValueBytes();
8983 // optional double numeric_value = 3;
8985 * <code>optional double numeric_value = 3;</code>
8987 boolean hasNumericValue();
8989 * <code>optional double numeric_value = 3;</code>
8991 double getNumericValue();
8993 // optional bool boolean_value = 4;
8995 * <code>optional bool boolean_value = 4;</code>
8997 boolean hasBooleanValue();
8999 * <code>optional bool boolean_value = 4;</code>
9001 boolean getBooleanValue();
9004 * Protobuf type {@code openxc.DynamicField}
9006 public static final class DynamicField extends
9007 com.google.protobuf.GeneratedMessage
9008 implements DynamicFieldOrBuilder {
9009 // Use DynamicField.newBuilder() to construct.
9010 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9012 this.unknownFields = builder.getUnknownFields();
9014 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
9016 private static final DynamicField defaultInstance;
9017 public static DynamicField getDefaultInstance() {
9018 return defaultInstance;
9021 public DynamicField getDefaultInstanceForType() {
9022 return defaultInstance;
9025 private final com.google.protobuf.UnknownFieldSet unknownFields;
9027 public final com.google.protobuf.UnknownFieldSet
9028 getUnknownFields() {
9029 return this.unknownFields;
9031 private DynamicField(
9032 com.google.protobuf.CodedInputStream input,
9033 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9034 throws com.google.protobuf.InvalidProtocolBufferException {
9036 int mutable_bitField0_ = 0;
9037 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9038 com.google.protobuf.UnknownFieldSet.newBuilder();
9040 boolean done = false;
9042 int tag = input.readTag();
9048 if (!parseUnknownField(input, unknownFields,
9049 extensionRegistry, tag)) {
9055 int rawValue = input.readEnum();
9056 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
9057 if (value == null) {
9058 unknownFields.mergeVarintField(1, rawValue);
9060 bitField0_ |= 0x00000001;
9066 bitField0_ |= 0x00000002;
9067 stringValue_ = input.readBytes();
9071 bitField0_ |= 0x00000004;
9072 numericValue_ = input.readDouble();
9076 bitField0_ |= 0x00000008;
9077 booleanValue_ = input.readBool();
9082 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9083 throw e.setUnfinishedMessage(this);
9084 } catch (java.io.IOException e) {
9085 throw new com.google.protobuf.InvalidProtocolBufferException(
9086 e.getMessage()).setUnfinishedMessage(this);
9088 this.unknownFields = unknownFields.build();
9089 makeExtensionsImmutable();
9092 public static final com.google.protobuf.Descriptors.Descriptor
9094 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9097 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9098 internalGetFieldAccessorTable() {
9099 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9100 .ensureFieldAccessorsInitialized(
9101 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9104 public static com.google.protobuf.Parser<DynamicField> PARSER =
9105 new com.google.protobuf.AbstractParser<DynamicField>() {
9106 public DynamicField parsePartialFrom(
9107 com.google.protobuf.CodedInputStream input,
9108 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9109 throws com.google.protobuf.InvalidProtocolBufferException {
9110 return new DynamicField(input, extensionRegistry);
9115 public com.google.protobuf.Parser<DynamicField> getParserForType() {
9120 * Protobuf enum {@code openxc.DynamicField.Type}
9123 implements com.google.protobuf.ProtocolMessageEnum {
9125 * <code>STRING = 1;</code>
9129 * <code>NUM = 2;</code>
9133 * <code>BOOL = 3;</code>
9139 * <code>STRING = 1;</code>
9141 public static final int STRING_VALUE = 1;
9143 * <code>NUM = 2;</code>
9145 public static final int NUM_VALUE = 2;
9147 * <code>BOOL = 3;</code>
9149 public static final int BOOL_VALUE = 3;
9152 public final int getNumber() { return value; }
9154 public static Type valueOf(int value) {
9156 case 1: return STRING;
9158 case 3: return BOOL;
9159 default: return null;
9163 public static com.google.protobuf.Internal.EnumLiteMap<Type>
9164 internalGetValueMap() {
9165 return internalValueMap;
9167 private static com.google.protobuf.Internal.EnumLiteMap<Type>
9169 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
9170 public Type findValueByNumber(int number) {
9171 return Type.valueOf(number);
9175 public final com.google.protobuf.Descriptors.EnumValueDescriptor
9176 getValueDescriptor() {
9177 return getDescriptor().getValues().get(index);
9179 public final com.google.protobuf.Descriptors.EnumDescriptor
9180 getDescriptorForType() {
9181 return getDescriptor();
9183 public static final com.google.protobuf.Descriptors.EnumDescriptor
9185 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
9188 private static final Type[] VALUES = values();
9190 public static Type valueOf(
9191 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
9192 if (desc.getType() != getDescriptor()) {
9193 throw new java.lang.IllegalArgumentException(
9194 "EnumValueDescriptor is not for this type.");
9196 return VALUES[desc.getIndex()];
9199 private final int index;
9200 private final int value;
9202 private Type(int index, int value) {
9207 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
9210 private int bitField0_;
9211 // optional .openxc.DynamicField.Type type = 1;
9212 public static final int TYPE_FIELD_NUMBER = 1;
9213 private com.openxc.BinaryMessages.DynamicField.Type type_;
9215 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9217 public boolean hasType() {
9218 return ((bitField0_ & 0x00000001) == 0x00000001);
9221 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9223 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9227 // optional string string_value = 2;
9228 public static final int STRING_VALUE_FIELD_NUMBER = 2;
9229 private java.lang.Object stringValue_;
9231 * <code>optional string string_value = 2;</code>
9233 public boolean hasStringValue() {
9234 return ((bitField0_ & 0x00000002) == 0x00000002);
9237 * <code>optional string string_value = 2;</code>
9239 public java.lang.String getStringValue() {
9240 java.lang.Object ref = stringValue_;
9241 if (ref instanceof java.lang.String) {
9242 return (java.lang.String) ref;
9244 com.google.protobuf.ByteString bs =
9245 (com.google.protobuf.ByteString) ref;
9246 java.lang.String s = bs.toStringUtf8();
9247 if (bs.isValidUtf8()) {
9254 * <code>optional string string_value = 2;</code>
9256 public com.google.protobuf.ByteString
9257 getStringValueBytes() {
9258 java.lang.Object ref = stringValue_;
9259 if (ref instanceof java.lang.String) {
9260 com.google.protobuf.ByteString b =
9261 com.google.protobuf.ByteString.copyFromUtf8(
9262 (java.lang.String) ref);
9266 return (com.google.protobuf.ByteString) ref;
9270 // optional double numeric_value = 3;
9271 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
9272 private double numericValue_;
9274 * <code>optional double numeric_value = 3;</code>
9276 public boolean hasNumericValue() {
9277 return ((bitField0_ & 0x00000004) == 0x00000004);
9280 * <code>optional double numeric_value = 3;</code>
9282 public double getNumericValue() {
9283 return numericValue_;
9286 // optional bool boolean_value = 4;
9287 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
9288 private boolean booleanValue_;
9290 * <code>optional bool boolean_value = 4;</code>
9292 public boolean hasBooleanValue() {
9293 return ((bitField0_ & 0x00000008) == 0x00000008);
9296 * <code>optional bool boolean_value = 4;</code>
9298 public boolean getBooleanValue() {
9299 return booleanValue_;
9302 private void initFields() {
9303 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9306 booleanValue_ = false;
9308 private byte memoizedIsInitialized = -1;
9309 public final boolean isInitialized() {
9310 byte isInitialized = memoizedIsInitialized;
9311 if (isInitialized != -1) return isInitialized == 1;
9313 memoizedIsInitialized = 1;
9317 public void writeTo(com.google.protobuf.CodedOutputStream output)
9318 throws java.io.IOException {
9319 getSerializedSize();
9320 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9321 output.writeEnum(1, type_.getNumber());
9323 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9324 output.writeBytes(2, getStringValueBytes());
9326 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9327 output.writeDouble(3, numericValue_);
9329 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9330 output.writeBool(4, booleanValue_);
9332 getUnknownFields().writeTo(output);
9335 private int memoizedSerializedSize = -1;
9336 public int getSerializedSize() {
9337 int size = memoizedSerializedSize;
9338 if (size != -1) return size;
9341 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9342 size += com.google.protobuf.CodedOutputStream
9343 .computeEnumSize(1, type_.getNumber());
9345 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9346 size += com.google.protobuf.CodedOutputStream
9347 .computeBytesSize(2, getStringValueBytes());
9349 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9350 size += com.google.protobuf.CodedOutputStream
9351 .computeDoubleSize(3, numericValue_);
9353 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9354 size += com.google.protobuf.CodedOutputStream
9355 .computeBoolSize(4, booleanValue_);
9357 size += getUnknownFields().getSerializedSize();
9358 memoizedSerializedSize = size;
9362 private static final long serialVersionUID = 0L;
9364 protected java.lang.Object writeReplace()
9365 throws java.io.ObjectStreamException {
9366 return super.writeReplace();
9369 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9370 com.google.protobuf.ByteString data)
9371 throws com.google.protobuf.InvalidProtocolBufferException {
9372 return PARSER.parseFrom(data);
9374 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9375 com.google.protobuf.ByteString data,
9376 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9377 throws com.google.protobuf.InvalidProtocolBufferException {
9378 return PARSER.parseFrom(data, extensionRegistry);
9380 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
9381 throws com.google.protobuf.InvalidProtocolBufferException {
9382 return PARSER.parseFrom(data);
9384 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9386 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9387 throws com.google.protobuf.InvalidProtocolBufferException {
9388 return PARSER.parseFrom(data, extensionRegistry);
9390 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
9391 throws java.io.IOException {
9392 return PARSER.parseFrom(input);
9394 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9395 java.io.InputStream input,
9396 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9397 throws java.io.IOException {
9398 return PARSER.parseFrom(input, extensionRegistry);
9400 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
9401 throws java.io.IOException {
9402 return PARSER.parseDelimitedFrom(input);
9404 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
9405 java.io.InputStream input,
9406 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9407 throws java.io.IOException {
9408 return PARSER.parseDelimitedFrom(input, extensionRegistry);
9410 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9411 com.google.protobuf.CodedInputStream input)
9412 throws java.io.IOException {
9413 return PARSER.parseFrom(input);
9415 public static com.openxc.BinaryMessages.DynamicField parseFrom(
9416 com.google.protobuf.CodedInputStream input,
9417 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9418 throws java.io.IOException {
9419 return PARSER.parseFrom(input, extensionRegistry);
9422 public static Builder newBuilder() { return Builder.create(); }
9423 public Builder newBuilderForType() { return newBuilder(); }
9424 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
9425 return newBuilder().mergeFrom(prototype);
9427 public Builder toBuilder() { return newBuilder(this); }
9430 protected Builder newBuilderForType(
9431 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9432 Builder builder = new Builder(parent);
9436 * Protobuf type {@code openxc.DynamicField}
9438 public static final class Builder extends
9439 com.google.protobuf.GeneratedMessage.Builder<Builder>
9440 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
9441 public static final com.google.protobuf.Descriptors.Descriptor
9443 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9446 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9447 internalGetFieldAccessorTable() {
9448 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
9449 .ensureFieldAccessorsInitialized(
9450 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
9453 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
9455 maybeForceBuilderInitialization();
9459 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9461 maybeForceBuilderInitialization();
9463 private void maybeForceBuilderInitialization() {
9464 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9467 private static Builder create() {
9468 return new Builder();
9471 public Builder clear() {
9473 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9474 bitField0_ = (bitField0_ & ~0x00000001);
9476 bitField0_ = (bitField0_ & ~0x00000002);
9478 bitField0_ = (bitField0_ & ~0x00000004);
9479 booleanValue_ = false;
9480 bitField0_ = (bitField0_ & ~0x00000008);
9484 public Builder clone() {
9485 return create().mergeFrom(buildPartial());
9488 public com.google.protobuf.Descriptors.Descriptor
9489 getDescriptorForType() {
9490 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
9493 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
9494 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9497 public com.openxc.BinaryMessages.DynamicField build() {
9498 com.openxc.BinaryMessages.DynamicField result = buildPartial();
9499 if (!result.isInitialized()) {
9500 throw newUninitializedMessageException(result);
9505 public com.openxc.BinaryMessages.DynamicField buildPartial() {
9506 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
9507 int from_bitField0_ = bitField0_;
9508 int to_bitField0_ = 0;
9509 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9510 to_bitField0_ |= 0x00000001;
9512 result.type_ = type_;
9513 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9514 to_bitField0_ |= 0x00000002;
9516 result.stringValue_ = stringValue_;
9517 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9518 to_bitField0_ |= 0x00000004;
9520 result.numericValue_ = numericValue_;
9521 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9522 to_bitField0_ |= 0x00000008;
9524 result.booleanValue_ = booleanValue_;
9525 result.bitField0_ = to_bitField0_;
9530 public Builder mergeFrom(com.google.protobuf.Message other) {
9531 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
9532 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
9534 super.mergeFrom(other);
9539 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
9540 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
9541 if (other.hasType()) {
9542 setType(other.getType());
9544 if (other.hasStringValue()) {
9545 bitField0_ |= 0x00000002;
9546 stringValue_ = other.stringValue_;
9549 if (other.hasNumericValue()) {
9550 setNumericValue(other.getNumericValue());
9552 if (other.hasBooleanValue()) {
9553 setBooleanValue(other.getBooleanValue());
9555 this.mergeUnknownFields(other.getUnknownFields());
9559 public final boolean isInitialized() {
9563 public Builder mergeFrom(
9564 com.google.protobuf.CodedInputStream input,
9565 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9566 throws java.io.IOException {
9567 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
9569 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
9570 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9571 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
9574 if (parsedMessage != null) {
9575 mergeFrom(parsedMessage);
9580 private int bitField0_;
9582 // optional .openxc.DynamicField.Type type = 1;
9583 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9585 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9587 public boolean hasType() {
9588 return ((bitField0_ & 0x00000001) == 0x00000001);
9591 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9593 public com.openxc.BinaryMessages.DynamicField.Type getType() {
9597 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9599 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
9600 if (value == null) {
9601 throw new NullPointerException();
9603 bitField0_ |= 0x00000001;
9609 * <code>optional .openxc.DynamicField.Type type = 1;</code>
9611 public Builder clearType() {
9612 bitField0_ = (bitField0_ & ~0x00000001);
9613 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
9618 // optional string string_value = 2;
9619 private java.lang.Object stringValue_ = "";
9621 * <code>optional string string_value = 2;</code>
9623 public boolean hasStringValue() {
9624 return ((bitField0_ & 0x00000002) == 0x00000002);
9627 * <code>optional string string_value = 2;</code>
9629 public java.lang.String getStringValue() {
9630 java.lang.Object ref = stringValue_;
9631 if (!(ref instanceof java.lang.String)) {
9632 java.lang.String s = ((com.google.protobuf.ByteString) ref)
9637 return (java.lang.String) ref;
9641 * <code>optional string string_value = 2;</code>
9643 public com.google.protobuf.ByteString
9644 getStringValueBytes() {
9645 java.lang.Object ref = stringValue_;
9646 if (ref instanceof String) {
9647 com.google.protobuf.ByteString b =
9648 com.google.protobuf.ByteString.copyFromUtf8(
9649 (java.lang.String) ref);
9653 return (com.google.protobuf.ByteString) ref;
9657 * <code>optional string string_value = 2;</code>
9659 public Builder setStringValue(
9660 java.lang.String value) {
9661 if (value == null) {
9662 throw new NullPointerException();
9664 bitField0_ |= 0x00000002;
9665 stringValue_ = value;
9670 * <code>optional string string_value = 2;</code>
9672 public Builder clearStringValue() {
9673 bitField0_ = (bitField0_ & ~0x00000002);
9674 stringValue_ = getDefaultInstance().getStringValue();
9679 * <code>optional string string_value = 2;</code>
9681 public Builder setStringValueBytes(
9682 com.google.protobuf.ByteString value) {
9683 if (value == null) {
9684 throw new NullPointerException();
9686 bitField0_ |= 0x00000002;
9687 stringValue_ = value;
9692 // optional double numeric_value = 3;
9693 private double numericValue_ ;
9695 * <code>optional double numeric_value = 3;</code>
9697 public boolean hasNumericValue() {
9698 return ((bitField0_ & 0x00000004) == 0x00000004);
9701 * <code>optional double numeric_value = 3;</code>
9703 public double getNumericValue() {
9704 return numericValue_;
9707 * <code>optional double numeric_value = 3;</code>
9709 public Builder setNumericValue(double value) {
9710 bitField0_ |= 0x00000004;
9711 numericValue_ = value;
9716 * <code>optional double numeric_value = 3;</code>
9718 public Builder clearNumericValue() {
9719 bitField0_ = (bitField0_ & ~0x00000004);
9725 // optional bool boolean_value = 4;
9726 private boolean booleanValue_ ;
9728 * <code>optional bool boolean_value = 4;</code>
9730 public boolean hasBooleanValue() {
9731 return ((bitField0_ & 0x00000008) == 0x00000008);
9734 * <code>optional bool boolean_value = 4;</code>
9736 public boolean getBooleanValue() {
9737 return booleanValue_;
9740 * <code>optional bool boolean_value = 4;</code>
9742 public Builder setBooleanValue(boolean value) {
9743 bitField0_ |= 0x00000008;
9744 booleanValue_ = value;
9749 * <code>optional bool boolean_value = 4;</code>
9751 public Builder clearBooleanValue() {
9752 bitField0_ = (bitField0_ & ~0x00000008);
9753 booleanValue_ = false;
9758 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
9762 defaultInstance = new DynamicField(true);
9763 defaultInstance.initFields();
9766 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
9769 public interface TranslatedMessageOrBuilder
9770 extends com.google.protobuf.MessageOrBuilder {
9772 // optional .openxc.TranslatedMessage.Type type = 1;
9774 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9778 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9780 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
9782 // optional string name = 2;
9784 * <code>optional string name = 2;</code>
9788 * <code>optional string name = 2;</code>
9790 java.lang.String getName();
9792 * <code>optional string name = 2;</code>
9794 com.google.protobuf.ByteString
9797 // optional .openxc.DynamicField value = 3;
9799 * <code>optional .openxc.DynamicField value = 3;</code>
9803 * <code>optional .openxc.DynamicField value = 3;</code>
9805 com.openxc.BinaryMessages.DynamicField getValue();
9807 * <code>optional .openxc.DynamicField value = 3;</code>
9809 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
9811 // optional .openxc.DynamicField event = 4;
9813 * <code>optional .openxc.DynamicField event = 4;</code>
9817 * <code>optional .openxc.DynamicField event = 4;</code>
9819 com.openxc.BinaryMessages.DynamicField getEvent();
9821 * <code>optional .openxc.DynamicField event = 4;</code>
9823 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
9826 * Protobuf type {@code openxc.TranslatedMessage}
9828 public static final class TranslatedMessage extends
9829 com.google.protobuf.GeneratedMessage
9830 implements TranslatedMessageOrBuilder {
9831 // Use TranslatedMessage.newBuilder() to construct.
9832 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
9834 this.unknownFields = builder.getUnknownFields();
9836 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
9838 private static final TranslatedMessage defaultInstance;
9839 public static TranslatedMessage getDefaultInstance() {
9840 return defaultInstance;
9843 public TranslatedMessage getDefaultInstanceForType() {
9844 return defaultInstance;
9847 private final com.google.protobuf.UnknownFieldSet unknownFields;
9849 public final com.google.protobuf.UnknownFieldSet
9850 getUnknownFields() {
9851 return this.unknownFields;
9853 private TranslatedMessage(
9854 com.google.protobuf.CodedInputStream input,
9855 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9856 throws com.google.protobuf.InvalidProtocolBufferException {
9858 int mutable_bitField0_ = 0;
9859 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9860 com.google.protobuf.UnknownFieldSet.newBuilder();
9862 boolean done = false;
9864 int tag = input.readTag();
9870 if (!parseUnknownField(input, unknownFields,
9871 extensionRegistry, tag)) {
9877 int rawValue = input.readEnum();
9878 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
9879 if (value == null) {
9880 unknownFields.mergeVarintField(1, rawValue);
9882 bitField0_ |= 0x00000001;
9888 bitField0_ |= 0x00000002;
9889 name_ = input.readBytes();
9893 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
9894 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9895 subBuilder = value_.toBuilder();
9897 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
9898 if (subBuilder != null) {
9899 subBuilder.mergeFrom(value_);
9900 value_ = subBuilder.buildPartial();
9902 bitField0_ |= 0x00000004;
9906 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
9907 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9908 subBuilder = event_.toBuilder();
9910 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
9911 if (subBuilder != null) {
9912 subBuilder.mergeFrom(event_);
9913 event_ = subBuilder.buildPartial();
9915 bitField0_ |= 0x00000008;
9920 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9921 throw e.setUnfinishedMessage(this);
9922 } catch (java.io.IOException e) {
9923 throw new com.google.protobuf.InvalidProtocolBufferException(
9924 e.getMessage()).setUnfinishedMessage(this);
9926 this.unknownFields = unknownFields.build();
9927 makeExtensionsImmutable();
9930 public static final com.google.protobuf.Descriptors.Descriptor
9932 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
9935 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9936 internalGetFieldAccessorTable() {
9937 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
9938 .ensureFieldAccessorsInitialized(
9939 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
9942 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
9943 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
9944 public TranslatedMessage parsePartialFrom(
9945 com.google.protobuf.CodedInputStream input,
9946 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9947 throws com.google.protobuf.InvalidProtocolBufferException {
9948 return new TranslatedMessage(input, extensionRegistry);
9953 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
9958 * Protobuf enum {@code openxc.TranslatedMessage.Type}
9961 implements com.google.protobuf.ProtocolMessageEnum {
9963 * <code>STRING = 1;</code>
9967 * <code>NUM = 2;</code>
9971 * <code>BOOL = 3;</code>
9975 * <code>EVENTED_STRING = 4;</code>
9977 EVENTED_STRING(3, 4),
9979 * <code>EVENTED_NUM = 5;</code>
9983 * <code>EVENTED_BOOL = 6;</code>
9989 * <code>STRING = 1;</code>
9991 public static final int STRING_VALUE = 1;
9993 * <code>NUM = 2;</code>
9995 public static final int NUM_VALUE = 2;
9997 * <code>BOOL = 3;</code>
9999 public static final int BOOL_VALUE = 3;
10001 * <code>EVENTED_STRING = 4;</code>
10003 public static final int EVENTED_STRING_VALUE = 4;
10005 * <code>EVENTED_NUM = 5;</code>
10007 public static final int EVENTED_NUM_VALUE = 5;
10009 * <code>EVENTED_BOOL = 6;</code>
10011 public static final int EVENTED_BOOL_VALUE = 6;
10014 public final int getNumber() { return value; }
10016 public static Type valueOf(int value) {
10018 case 1: return STRING;
10019 case 2: return NUM;
10020 case 3: return BOOL;
10021 case 4: return EVENTED_STRING;
10022 case 5: return EVENTED_NUM;
10023 case 6: return EVENTED_BOOL;
10024 default: return null;
10028 public static com.google.protobuf.Internal.EnumLiteMap<Type>
10029 internalGetValueMap() {
10030 return internalValueMap;
10032 private static com.google.protobuf.Internal.EnumLiteMap<Type>
10034 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
10035 public Type findValueByNumber(int number) {
10036 return Type.valueOf(number);
10040 public final com.google.protobuf.Descriptors.EnumValueDescriptor
10041 getValueDescriptor() {
10042 return getDescriptor().getValues().get(index);
10044 public final com.google.protobuf.Descriptors.EnumDescriptor
10045 getDescriptorForType() {
10046 return getDescriptor();
10048 public static final com.google.protobuf.Descriptors.EnumDescriptor
10050 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
10053 private static final Type[] VALUES = values();
10055 public static Type valueOf(
10056 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
10057 if (desc.getType() != getDescriptor()) {
10058 throw new java.lang.IllegalArgumentException(
10059 "EnumValueDescriptor is not for this type.");
10061 return VALUES[desc.getIndex()];
10064 private final int index;
10065 private final int value;
10067 private Type(int index, int value) {
10068 this.index = index;
10069 this.value = value;
10072 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
10075 private int bitField0_;
10076 // optional .openxc.TranslatedMessage.Type type = 1;
10077 public static final int TYPE_FIELD_NUMBER = 1;
10078 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
10080 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10082 public boolean hasType() {
10083 return ((bitField0_ & 0x00000001) == 0x00000001);
10086 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10088 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
10092 // optional string name = 2;
10093 public static final int NAME_FIELD_NUMBER = 2;
10094 private java.lang.Object name_;
10096 * <code>optional string name = 2;</code>
10098 public boolean hasName() {
10099 return ((bitField0_ & 0x00000002) == 0x00000002);
10102 * <code>optional string name = 2;</code>
10104 public java.lang.String getName() {
10105 java.lang.Object ref = name_;
10106 if (ref instanceof java.lang.String) {
10107 return (java.lang.String) ref;
10109 com.google.protobuf.ByteString bs =
10110 (com.google.protobuf.ByteString) ref;
10111 java.lang.String s = bs.toStringUtf8();
10112 if (bs.isValidUtf8()) {
10119 * <code>optional string name = 2;</code>
10121 public com.google.protobuf.ByteString
10123 java.lang.Object ref = name_;
10124 if (ref instanceof java.lang.String) {
10125 com.google.protobuf.ByteString b =
10126 com.google.protobuf.ByteString.copyFromUtf8(
10127 (java.lang.String) ref);
10131 return (com.google.protobuf.ByteString) ref;
10135 // optional .openxc.DynamicField value = 3;
10136 public static final int VALUE_FIELD_NUMBER = 3;
10137 private com.openxc.BinaryMessages.DynamicField value_;
10139 * <code>optional .openxc.DynamicField value = 3;</code>
10141 public boolean hasValue() {
10142 return ((bitField0_ & 0x00000004) == 0x00000004);
10145 * <code>optional .openxc.DynamicField value = 3;</code>
10147 public com.openxc.BinaryMessages.DynamicField getValue() {
10151 * <code>optional .openxc.DynamicField value = 3;</code>
10153 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10157 // optional .openxc.DynamicField event = 4;
10158 public static final int EVENT_FIELD_NUMBER = 4;
10159 private com.openxc.BinaryMessages.DynamicField event_;
10161 * <code>optional .openxc.DynamicField event = 4;</code>
10163 public boolean hasEvent() {
10164 return ((bitField0_ & 0x00000008) == 0x00000008);
10167 * <code>optional .openxc.DynamicField event = 4;</code>
10169 public com.openxc.BinaryMessages.DynamicField getEvent() {
10173 * <code>optional .openxc.DynamicField event = 4;</code>
10175 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10179 private void initFields() {
10180 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
10182 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10183 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10185 private byte memoizedIsInitialized = -1;
10186 public final boolean isInitialized() {
10187 byte isInitialized = memoizedIsInitialized;
10188 if (isInitialized != -1) return isInitialized == 1;
10190 memoizedIsInitialized = 1;
10194 public void writeTo(com.google.protobuf.CodedOutputStream output)
10195 throws java.io.IOException {
10196 getSerializedSize();
10197 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10198 output.writeEnum(1, type_.getNumber());
10200 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10201 output.writeBytes(2, getNameBytes());
10203 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10204 output.writeMessage(3, value_);
10206 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10207 output.writeMessage(4, event_);
10209 getUnknownFields().writeTo(output);
10212 private int memoizedSerializedSize = -1;
10213 public int getSerializedSize() {
10214 int size = memoizedSerializedSize;
10215 if (size != -1) return size;
10218 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10219 size += com.google.protobuf.CodedOutputStream
10220 .computeEnumSize(1, type_.getNumber());
10222 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10223 size += com.google.protobuf.CodedOutputStream
10224 .computeBytesSize(2, getNameBytes());
10226 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10227 size += com.google.protobuf.CodedOutputStream
10228 .computeMessageSize(3, value_);
10230 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10231 size += com.google.protobuf.CodedOutputStream
10232 .computeMessageSize(4, event_);
10234 size += getUnknownFields().getSerializedSize();
10235 memoizedSerializedSize = size;
10239 private static final long serialVersionUID = 0L;
10240 @java.lang.Override
10241 protected java.lang.Object writeReplace()
10242 throws java.io.ObjectStreamException {
10243 return super.writeReplace();
10246 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10247 com.google.protobuf.ByteString data)
10248 throws com.google.protobuf.InvalidProtocolBufferException {
10249 return PARSER.parseFrom(data);
10251 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10252 com.google.protobuf.ByteString data,
10253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10254 throws com.google.protobuf.InvalidProtocolBufferException {
10255 return PARSER.parseFrom(data, extensionRegistry);
10257 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
10258 throws com.google.protobuf.InvalidProtocolBufferException {
10259 return PARSER.parseFrom(data);
10261 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10263 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10264 throws com.google.protobuf.InvalidProtocolBufferException {
10265 return PARSER.parseFrom(data, extensionRegistry);
10267 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
10268 throws java.io.IOException {
10269 return PARSER.parseFrom(input);
10271 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10272 java.io.InputStream input,
10273 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10274 throws java.io.IOException {
10275 return PARSER.parseFrom(input, extensionRegistry);
10277 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
10278 throws java.io.IOException {
10279 return PARSER.parseDelimitedFrom(input);
10281 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
10282 java.io.InputStream input,
10283 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10284 throws java.io.IOException {
10285 return PARSER.parseDelimitedFrom(input, extensionRegistry);
10287 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10288 com.google.protobuf.CodedInputStream input)
10289 throws java.io.IOException {
10290 return PARSER.parseFrom(input);
10292 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
10293 com.google.protobuf.CodedInputStream input,
10294 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10295 throws java.io.IOException {
10296 return PARSER.parseFrom(input, extensionRegistry);
10299 public static Builder newBuilder() { return Builder.create(); }
10300 public Builder newBuilderForType() { return newBuilder(); }
10301 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
10302 return newBuilder().mergeFrom(prototype);
10304 public Builder toBuilder() { return newBuilder(this); }
10306 @java.lang.Override
10307 protected Builder newBuilderForType(
10308 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10309 Builder builder = new Builder(parent);
10313 * Protobuf type {@code openxc.TranslatedMessage}
10315 public static final class Builder extends
10316 com.google.protobuf.GeneratedMessage.Builder<Builder>
10317 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
10318 public static final com.google.protobuf.Descriptors.Descriptor
10320 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
10323 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10324 internalGetFieldAccessorTable() {
10325 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
10326 .ensureFieldAccessorsInitialized(
10327 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
10330 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
10331 private Builder() {
10332 maybeForceBuilderInitialization();
10336 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10338 maybeForceBuilderInitialization();
10340 private void maybeForceBuilderInitialization() {
10341 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10342 getValueFieldBuilder();
10343 getEventFieldBuilder();
10346 private static Builder create() {
10347 return new Builder();
10350 public Builder clear() {
10352 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
10353 bitField0_ = (bitField0_ & ~0x00000001);
10355 bitField0_ = (bitField0_ & ~0x00000002);
10356 if (valueBuilder_ == null) {
10357 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10359 valueBuilder_.clear();
10361 bitField0_ = (bitField0_ & ~0x00000004);
10362 if (eventBuilder_ == null) {
10363 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10365 eventBuilder_.clear();
10367 bitField0_ = (bitField0_ & ~0x00000008);
10371 public Builder clone() {
10372 return create().mergeFrom(buildPartial());
10375 public com.google.protobuf.Descriptors.Descriptor
10376 getDescriptorForType() {
10377 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
10380 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
10381 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
10384 public com.openxc.BinaryMessages.TranslatedMessage build() {
10385 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
10386 if (!result.isInitialized()) {
10387 throw newUninitializedMessageException(result);
10392 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
10393 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
10394 int from_bitField0_ = bitField0_;
10395 int to_bitField0_ = 0;
10396 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10397 to_bitField0_ |= 0x00000001;
10399 result.type_ = type_;
10400 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10401 to_bitField0_ |= 0x00000002;
10403 result.name_ = name_;
10404 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10405 to_bitField0_ |= 0x00000004;
10407 if (valueBuilder_ == null) {
10408 result.value_ = value_;
10410 result.value_ = valueBuilder_.build();
10412 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10413 to_bitField0_ |= 0x00000008;
10415 if (eventBuilder_ == null) {
10416 result.event_ = event_;
10418 result.event_ = eventBuilder_.build();
10420 result.bitField0_ = to_bitField0_;
10425 public Builder mergeFrom(com.google.protobuf.Message other) {
10426 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
10427 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
10429 super.mergeFrom(other);
10434 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
10435 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
10436 if (other.hasType()) {
10437 setType(other.getType());
10439 if (other.hasName()) {
10440 bitField0_ |= 0x00000002;
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.TranslatedMessage parsedMessage = null;
10464 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
10465 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10466 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
10469 if (parsedMessage != null) {
10470 mergeFrom(parsedMessage);
10475 private int bitField0_;
10477 // optional .openxc.TranslatedMessage.Type type = 1;
10478 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
10480 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10482 public boolean hasType() {
10483 return ((bitField0_ & 0x00000001) == 0x00000001);
10486 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10488 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
10492 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10494 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
10495 if (value == null) {
10496 throw new NullPointerException();
10498 bitField0_ |= 0x00000001;
10504 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
10506 public Builder clearType() {
10507 bitField0_ = (bitField0_ & ~0x00000001);
10508 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
10513 // optional string name = 2;
10514 private java.lang.Object name_ = "";
10516 * <code>optional string name = 2;</code>
10518 public boolean hasName() {
10519 return ((bitField0_ & 0x00000002) == 0x00000002);
10522 * <code>optional string name = 2;</code>
10524 public java.lang.String getName() {
10525 java.lang.Object ref = name_;
10526 if (!(ref instanceof java.lang.String)) {
10527 java.lang.String s = ((com.google.protobuf.ByteString) ref)
10532 return (java.lang.String) ref;
10536 * <code>optional string name = 2;</code>
10538 public com.google.protobuf.ByteString
10540 java.lang.Object ref = name_;
10541 if (ref instanceof String) {
10542 com.google.protobuf.ByteString b =
10543 com.google.protobuf.ByteString.copyFromUtf8(
10544 (java.lang.String) ref);
10548 return (com.google.protobuf.ByteString) ref;
10552 * <code>optional string name = 2;</code>
10554 public Builder setName(
10555 java.lang.String value) {
10556 if (value == null) {
10557 throw new NullPointerException();
10559 bitField0_ |= 0x00000002;
10565 * <code>optional string name = 2;</code>
10567 public Builder clearName() {
10568 bitField0_ = (bitField0_ & ~0x00000002);
10569 name_ = getDefaultInstance().getName();
10574 * <code>optional string name = 2;</code>
10576 public Builder setNameBytes(
10577 com.google.protobuf.ByteString value) {
10578 if (value == null) {
10579 throw new NullPointerException();
10581 bitField0_ |= 0x00000002;
10587 // optional .openxc.DynamicField value = 3;
10588 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10589 private com.google.protobuf.SingleFieldBuilder<
10590 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
10592 * <code>optional .openxc.DynamicField value = 3;</code>
10594 public boolean hasValue() {
10595 return ((bitField0_ & 0x00000004) == 0x00000004);
10598 * <code>optional .openxc.DynamicField value = 3;</code>
10600 public com.openxc.BinaryMessages.DynamicField getValue() {
10601 if (valueBuilder_ == null) {
10604 return valueBuilder_.getMessage();
10608 * <code>optional .openxc.DynamicField value = 3;</code>
10610 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
10611 if (valueBuilder_ == null) {
10612 if (value == null) {
10613 throw new NullPointerException();
10618 valueBuilder_.setMessage(value);
10620 bitField0_ |= 0x00000004;
10624 * <code>optional .openxc.DynamicField value = 3;</code>
10626 public Builder setValue(
10627 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10628 if (valueBuilder_ == null) {
10629 value_ = builderForValue.build();
10632 valueBuilder_.setMessage(builderForValue.build());
10634 bitField0_ |= 0x00000004;
10638 * <code>optional .openxc.DynamicField value = 3;</code>
10640 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
10641 if (valueBuilder_ == null) {
10642 if (((bitField0_ & 0x00000004) == 0x00000004) &&
10643 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10645 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
10651 valueBuilder_.mergeFrom(value);
10653 bitField0_ |= 0x00000004;
10657 * <code>optional .openxc.DynamicField value = 3;</code>
10659 public Builder clearValue() {
10660 if (valueBuilder_ == null) {
10661 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10664 valueBuilder_.clear();
10666 bitField0_ = (bitField0_ & ~0x00000004);
10670 * <code>optional .openxc.DynamicField value = 3;</code>
10672 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
10673 bitField0_ |= 0x00000004;
10675 return getValueFieldBuilder().getBuilder();
10678 * <code>optional .openxc.DynamicField value = 3;</code>
10680 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
10681 if (valueBuilder_ != null) {
10682 return valueBuilder_.getMessageOrBuilder();
10688 * <code>optional .openxc.DynamicField value = 3;</code>
10690 private com.google.protobuf.SingleFieldBuilder<
10691 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10692 getValueFieldBuilder() {
10693 if (valueBuilder_ == null) {
10694 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10695 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10697 getParentForChildren(),
10701 return valueBuilder_;
10704 // optional .openxc.DynamicField event = 4;
10705 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10706 private com.google.protobuf.SingleFieldBuilder<
10707 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
10709 * <code>optional .openxc.DynamicField event = 4;</code>
10711 public boolean hasEvent() {
10712 return ((bitField0_ & 0x00000008) == 0x00000008);
10715 * <code>optional .openxc.DynamicField event = 4;</code>
10717 public com.openxc.BinaryMessages.DynamicField getEvent() {
10718 if (eventBuilder_ == null) {
10721 return eventBuilder_.getMessage();
10725 * <code>optional .openxc.DynamicField event = 4;</code>
10727 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
10728 if (eventBuilder_ == null) {
10729 if (value == null) {
10730 throw new NullPointerException();
10735 eventBuilder_.setMessage(value);
10737 bitField0_ |= 0x00000008;
10741 * <code>optional .openxc.DynamicField event = 4;</code>
10743 public Builder setEvent(
10744 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
10745 if (eventBuilder_ == null) {
10746 event_ = builderForValue.build();
10749 eventBuilder_.setMessage(builderForValue.build());
10751 bitField0_ |= 0x00000008;
10755 * <code>optional .openxc.DynamicField event = 4;</code>
10757 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
10758 if (eventBuilder_ == null) {
10759 if (((bitField0_ & 0x00000008) == 0x00000008) &&
10760 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
10762 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
10768 eventBuilder_.mergeFrom(value);
10770 bitField0_ |= 0x00000008;
10774 * <code>optional .openxc.DynamicField event = 4;</code>
10776 public Builder clearEvent() {
10777 if (eventBuilder_ == null) {
10778 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10781 eventBuilder_.clear();
10783 bitField0_ = (bitField0_ & ~0x00000008);
10787 * <code>optional .openxc.DynamicField event = 4;</code>
10789 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
10790 bitField0_ |= 0x00000008;
10792 return getEventFieldBuilder().getBuilder();
10795 * <code>optional .openxc.DynamicField event = 4;</code>
10797 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
10798 if (eventBuilder_ != null) {
10799 return eventBuilder_.getMessageOrBuilder();
10805 * <code>optional .openxc.DynamicField event = 4;</code>
10807 private com.google.protobuf.SingleFieldBuilder<
10808 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
10809 getEventFieldBuilder() {
10810 if (eventBuilder_ == null) {
10811 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
10812 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
10814 getParentForChildren(),
10818 return eventBuilder_;
10821 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
10825 defaultInstance = new TranslatedMessage(true);
10826 defaultInstance.initFields();
10829 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
10832 private static com.google.protobuf.Descriptors.Descriptor
10833 internal_static_openxc_VehicleMessage_descriptor;
10835 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10836 internal_static_openxc_VehicleMessage_fieldAccessorTable;
10837 private static com.google.protobuf.Descriptors.Descriptor
10838 internal_static_openxc_RawMessage_descriptor;
10840 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10841 internal_static_openxc_RawMessage_fieldAccessorTable;
10842 private static com.google.protobuf.Descriptors.Descriptor
10843 internal_static_openxc_ControlCommand_descriptor;
10845 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10846 internal_static_openxc_ControlCommand_fieldAccessorTable;
10847 private static com.google.protobuf.Descriptors.Descriptor
10848 internal_static_openxc_DiagnosticControlCommand_descriptor;
10850 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10851 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
10852 private static com.google.protobuf.Descriptors.Descriptor
10853 internal_static_openxc_PassthroughModeControlCommand_descriptor;
10855 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10856 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
10857 private static com.google.protobuf.Descriptors.Descriptor
10858 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
10860 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10861 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
10862 private static com.google.protobuf.Descriptors.Descriptor
10863 internal_static_openxc_PayloadFormatCommand_descriptor;
10865 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10866 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
10867 private static com.google.protobuf.Descriptors.Descriptor
10868 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
10870 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10871 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
10872 private static com.google.protobuf.Descriptors.Descriptor
10873 internal_static_openxc_CommandResponse_descriptor;
10875 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10876 internal_static_openxc_CommandResponse_fieldAccessorTable;
10877 private static com.google.protobuf.Descriptors.Descriptor
10878 internal_static_openxc_DiagnosticRequest_descriptor;
10880 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10881 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
10882 private static com.google.protobuf.Descriptors.Descriptor
10883 internal_static_openxc_DiagnosticResponse_descriptor;
10885 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10886 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10887 private static com.google.protobuf.Descriptors.Descriptor
10888 internal_static_openxc_DynamicField_descriptor;
10890 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10891 internal_static_openxc_DynamicField_fieldAccessorTable;
10892 private static com.google.protobuf.Descriptors.Descriptor
10893 internal_static_openxc_TranslatedMessage_descriptor;
10895 com.google.protobuf.GeneratedMessage.FieldAccessorTable
10896 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
10898 public static com.google.protobuf.Descriptors.FileDescriptor
10902 private static com.google.protobuf.Descriptors.FileDescriptor
10905 java.lang.String[] descriptorData = {
10906 "\n\014openxc.proto\022\006openxc\"\224\003\n\016VehicleMessag" +
10907 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
10908 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
10909 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
10910 "xc.TranslatedMessage\0227\n\023diagnostic_respo" +
10911 "nse\030\004 \001(\0132\032.openxc.DiagnosticResponse\022/\n" +
10912 "\017control_command\030\005 \001(\0132\026.openxc.ControlC" +
10913 "ommand\0221\n\020command_response\030\006 \001(\0132\027.openx" +
10914 "c.CommandResponse\"Z\n\004Type\022\007\n\003RAW\020\001\022\016\n\nTR" +
10915 "ANSLATED\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_CO",
10916 "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\";\n\nRawMess" +
10917 "age\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004" +
10918 "data\030\003 \001(\014\"\270\004\n\016ControlCommand\022)\n\004type\030\001 " +
10919 "\001(\0162\033.openxc.ControlCommand.Type\022<\n\022diag" +
10920 "nostic_request\030\002 \001(\0132 .openxc.Diagnostic" +
10921 "ControlCommand\022G\n\030passthrough_mode_reque" +
10922 "st\030\003 \001(\0132%.openxc.PassthroughModeControl" +
10923 "Command\022O\n acceptance_filter_bypass_comm" +
10924 "and\030\004 \001(\0132%.openxc.AcceptanceFilterBypas" +
10925 "sCommand\022<\n\026payload_format_command\030\005 \001(\013",
10926 "2\034.openxc.PayloadFormatCommand\022O\n predef" +
10927 "ined_obd2_requests_command\030\006 \001(\0132%.openx" +
10928 "c.PredefinedObd2RequestsCommand\"\223\001\n\004Type" +
10929 "\022\013\n\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOST" +
10930 "IC\020\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILT" +
10931 "ER_BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDE" +
10932 "FINED_OBD2_REQUESTS\020\007\"\236\001\n\030DiagnosticCont" +
10933 "rolCommand\022*\n\007request\030\001 \001(\0132\031.openxc.Dia" +
10934 "gnosticRequest\0227\n\006action\030\002 \001(\0162\'.openxc." +
10935 "DiagnosticControlCommand.Action\"\035\n\006Actio",
10936 "n\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035PassthroughMod" +
10937 "eControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007enabled\030" +
10938 "\002 \001(\010\"<\n\035AcceptanceFilterBypassCommand\022\013" +
10939 "\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"{\n\024PayloadFo" +
10940 "rmatCommand\022:\n\006format\030\001 \001(\0162*.openxc.Pay" +
10941 "loadFormatCommand.PayloadFormat\"\'\n\rPaylo" +
10942 "adFormat\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\"0\n\035Pred" +
10943 "efinedObd2RequestsCommand\022\017\n\007enabled\030\001 \001" +
10944 "(\010\"]\n\017CommandResponse\022)\n\004type\030\001 \001(\0162\033.op" +
10945 "enxc.ControlCommand.Type\022\017\n\007message\030\002 \001(",
10946 "\t\022\016\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\022" +
10947 "\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode" +
10948 "\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022" +
10949 "multiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007 " +
10950 "\001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162" +
10951 "%.openxc.DiagnosticRequest.DecodedType\"!" +
10952 "\n\013DecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022Di" +
10953 "agnosticResponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage" +
10954 "_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007" +
10955 "success\030\005 \001(\010\022\036\n\026negative_response_code\030",
10956 "\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001" +
10957 "\n\014DynamicField\022\'\n\004type\030\001 \001(\0162\031.openxc.Dy" +
10958 "namicField.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n" +
10959 "\rnumeric_value\030\003 \001(\001\022\025\n\rboolean_value\030\004 " +
10960 "\001(\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL" +
10961 "\020\003\"\367\001\n\021TranslatedMessage\022,\n\004type\030\001 \001(\0162\036" +
10962 ".openxc.TranslatedMessage.Type\022\014\n\004name\030\002" +
10963 " \001(\t\022#\n\005value\030\003 \001(\0132\024.openxc.DynamicFiel" +
10964 "d\022#\n\005event\030\004 \001(\0132\024.openxc.DynamicField\"\\" +
10965 "\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\022\022\n",
10966 "\016EVENTED_STRING\020\004\022\017\n\013EVENTED_NUM\020\005\022\020\n\014EV" +
10967 "ENTED_BOOL\020\006B\034\n\ncom.openxcB\016BinaryMessag" +
10970 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
10971 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
10972 public com.google.protobuf.ExtensionRegistry assignDescriptors(
10973 com.google.protobuf.Descriptors.FileDescriptor root) {
10975 internal_static_openxc_VehicleMessage_descriptor =
10976 getDescriptor().getMessageTypes().get(0);
10977 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
10978 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10979 internal_static_openxc_VehicleMessage_descriptor,
10980 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
10981 internal_static_openxc_RawMessage_descriptor =
10982 getDescriptor().getMessageTypes().get(1);
10983 internal_static_openxc_RawMessage_fieldAccessorTable = new
10984 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10985 internal_static_openxc_RawMessage_descriptor,
10986 new java.lang.String[] { "Bus", "MessageId", "Data", });
10987 internal_static_openxc_ControlCommand_descriptor =
10988 getDescriptor().getMessageTypes().get(2);
10989 internal_static_openxc_ControlCommand_fieldAccessorTable = new
10990 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10991 internal_static_openxc_ControlCommand_descriptor,
10992 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", });
10993 internal_static_openxc_DiagnosticControlCommand_descriptor =
10994 getDescriptor().getMessageTypes().get(3);
10995 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
10996 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
10997 internal_static_openxc_DiagnosticControlCommand_descriptor,
10998 new java.lang.String[] { "Request", "Action", });
10999 internal_static_openxc_PassthroughModeControlCommand_descriptor =
11000 getDescriptor().getMessageTypes().get(4);
11001 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
11002 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11003 internal_static_openxc_PassthroughModeControlCommand_descriptor,
11004 new java.lang.String[] { "Bus", "Enabled", });
11005 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
11006 getDescriptor().getMessageTypes().get(5);
11007 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
11008 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11009 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
11010 new java.lang.String[] { "Bus", "Bypass", });
11011 internal_static_openxc_PayloadFormatCommand_descriptor =
11012 getDescriptor().getMessageTypes().get(6);
11013 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
11014 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11015 internal_static_openxc_PayloadFormatCommand_descriptor,
11016 new java.lang.String[] { "Format", });
11017 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
11018 getDescriptor().getMessageTypes().get(7);
11019 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
11020 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11021 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
11022 new java.lang.String[] { "Enabled", });
11023 internal_static_openxc_CommandResponse_descriptor =
11024 getDescriptor().getMessageTypes().get(8);
11025 internal_static_openxc_CommandResponse_fieldAccessorTable = new
11026 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11027 internal_static_openxc_CommandResponse_descriptor,
11028 new java.lang.String[] { "Type", "Message", "Status", });
11029 internal_static_openxc_DiagnosticRequest_descriptor =
11030 getDescriptor().getMessageTypes().get(9);
11031 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
11032 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11033 internal_static_openxc_DiagnosticRequest_descriptor,
11034 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", });
11035 internal_static_openxc_DiagnosticResponse_descriptor =
11036 getDescriptor().getMessageTypes().get(10);
11037 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
11038 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11039 internal_static_openxc_DiagnosticResponse_descriptor,
11040 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
11041 internal_static_openxc_DynamicField_descriptor =
11042 getDescriptor().getMessageTypes().get(11);
11043 internal_static_openxc_DynamicField_fieldAccessorTable = new
11044 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11045 internal_static_openxc_DynamicField_descriptor,
11046 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
11047 internal_static_openxc_TranslatedMessage_descriptor =
11048 getDescriptor().getMessageTypes().get(12);
11049 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
11050 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11051 internal_static_openxc_TranslatedMessage_descriptor,
11052 new java.lang.String[] { "Type", "Name", "Value", "Event", });
11056 com.google.protobuf.Descriptors.FileDescriptor
11057 .internalBuildGeneratedFileFrom(descriptorData,
11058 new com.google.protobuf.Descriptors.FileDescriptor[] {
11062 // @@protoc_insertion_point(outer_class_scope)