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();
2102 * Protobuf type {@code openxc.ControlCommand}
2104 public static final class ControlCommand extends
2105 com.google.protobuf.GeneratedMessage
2106 implements ControlCommandOrBuilder {
2107 // Use ControlCommand.newBuilder() to construct.
2108 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2110 this.unknownFields = builder.getUnknownFields();
2112 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2114 private static final ControlCommand defaultInstance;
2115 public static ControlCommand getDefaultInstance() {
2116 return defaultInstance;
2119 public ControlCommand getDefaultInstanceForType() {
2120 return defaultInstance;
2123 private final com.google.protobuf.UnknownFieldSet unknownFields;
2125 public final com.google.protobuf.UnknownFieldSet
2126 getUnknownFields() {
2127 return this.unknownFields;
2129 private ControlCommand(
2130 com.google.protobuf.CodedInputStream input,
2131 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2132 throws com.google.protobuf.InvalidProtocolBufferException {
2134 int mutable_bitField0_ = 0;
2135 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2136 com.google.protobuf.UnknownFieldSet.newBuilder();
2138 boolean done = false;
2140 int tag = input.readTag();
2146 if (!parseUnknownField(input, unknownFields,
2147 extensionRegistry, tag)) {
2153 int rawValue = input.readEnum();
2154 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2155 if (value == null) {
2156 unknownFields.mergeVarintField(1, rawValue);
2158 bitField0_ |= 0x00000001;
2164 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = null;
2165 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2166 subBuilder = diagnosticRequest_.toBuilder();
2168 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticControlCommand.PARSER, extensionRegistry);
2169 if (subBuilder != null) {
2170 subBuilder.mergeFrom(diagnosticRequest_);
2171 diagnosticRequest_ = subBuilder.buildPartial();
2173 bitField0_ |= 0x00000002;
2177 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = null;
2178 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2179 subBuilder = passthroughModeRequest_.toBuilder();
2181 passthroughModeRequest_ = input.readMessage(com.openxc.BinaryMessages.PassthroughModeControlCommand.PARSER, extensionRegistry);
2182 if (subBuilder != null) {
2183 subBuilder.mergeFrom(passthroughModeRequest_);
2184 passthroughModeRequest_ = subBuilder.buildPartial();
2186 bitField0_ |= 0x00000004;
2190 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = null;
2191 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2192 subBuilder = acceptanceFilterBypassCommand_.toBuilder();
2194 acceptanceFilterBypassCommand_ = input.readMessage(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.PARSER, extensionRegistry);
2195 if (subBuilder != null) {
2196 subBuilder.mergeFrom(acceptanceFilterBypassCommand_);
2197 acceptanceFilterBypassCommand_ = subBuilder.buildPartial();
2199 bitField0_ |= 0x00000008;
2204 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2205 throw e.setUnfinishedMessage(this);
2206 } catch (java.io.IOException e) {
2207 throw new com.google.protobuf.InvalidProtocolBufferException(
2208 e.getMessage()).setUnfinishedMessage(this);
2210 this.unknownFields = unknownFields.build();
2211 makeExtensionsImmutable();
2214 public static final com.google.protobuf.Descriptors.Descriptor
2216 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2219 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2220 internalGetFieldAccessorTable() {
2221 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2222 .ensureFieldAccessorsInitialized(
2223 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2226 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2227 new com.google.protobuf.AbstractParser<ControlCommand>() {
2228 public ControlCommand parsePartialFrom(
2229 com.google.protobuf.CodedInputStream input,
2230 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2231 throws com.google.protobuf.InvalidProtocolBufferException {
2232 return new ControlCommand(input, extensionRegistry);
2237 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2242 * Protobuf enum {@code openxc.ControlCommand.Type}
2245 implements com.google.protobuf.ProtocolMessageEnum {
2247 * <code>VERSION = 1;</code>
2251 * <code>DEVICE_ID = 2;</code>
2255 * <code>DIAGNOSTIC = 3;</code>
2259 * <code>PASSTHROUGH = 4;</code>
2263 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2265 ACCEPTANCE_FILTER_BYPASS(4, 5),
2269 * <code>VERSION = 1;</code>
2271 public static final int VERSION_VALUE = 1;
2273 * <code>DEVICE_ID = 2;</code>
2275 public static final int DEVICE_ID_VALUE = 2;
2277 * <code>DIAGNOSTIC = 3;</code>
2279 public static final int DIAGNOSTIC_VALUE = 3;
2281 * <code>PASSTHROUGH = 4;</code>
2283 public static final int PASSTHROUGH_VALUE = 4;
2285 * <code>ACCEPTANCE_FILTER_BYPASS = 5;</code>
2287 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
2290 public final int getNumber() { return value; }
2292 public static Type valueOf(int value) {
2294 case 1: return VERSION;
2295 case 2: return DEVICE_ID;
2296 case 3: return DIAGNOSTIC;
2297 case 4: return PASSTHROUGH;
2298 case 5: return ACCEPTANCE_FILTER_BYPASS;
2299 default: return null;
2303 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2304 internalGetValueMap() {
2305 return internalValueMap;
2307 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2309 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2310 public Type findValueByNumber(int number) {
2311 return Type.valueOf(number);
2315 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2316 getValueDescriptor() {
2317 return getDescriptor().getValues().get(index);
2319 public final com.google.protobuf.Descriptors.EnumDescriptor
2320 getDescriptorForType() {
2321 return getDescriptor();
2323 public static final com.google.protobuf.Descriptors.EnumDescriptor
2325 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2328 private static final Type[] VALUES = values();
2330 public static Type valueOf(
2331 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2332 if (desc.getType() != getDescriptor()) {
2333 throw new java.lang.IllegalArgumentException(
2334 "EnumValueDescriptor is not for this type.");
2336 return VALUES[desc.getIndex()];
2339 private final int index;
2340 private final int value;
2342 private Type(int index, int value) {
2347 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2350 private int bitField0_;
2351 // optional .openxc.ControlCommand.Type type = 1;
2352 public static final int TYPE_FIELD_NUMBER = 1;
2353 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2355 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2357 public boolean hasType() {
2358 return ((bitField0_ & 0x00000001) == 0x00000001);
2361 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2363 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2367 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2368 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2369 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
2371 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2373 public boolean hasDiagnosticRequest() {
2374 return ((bitField0_ & 0x00000002) == 0x00000002);
2377 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2379 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2380 return diagnosticRequest_;
2383 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2385 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2386 return diagnosticRequest_;
2389 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2390 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
2391 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
2393 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2395 public boolean hasPassthroughModeRequest() {
2396 return ((bitField0_ & 0x00000004) == 0x00000004);
2399 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2401 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2402 return passthroughModeRequest_;
2405 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2407 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2408 return passthroughModeRequest_;
2411 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2412 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2413 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2415 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2417 public boolean hasAcceptanceFilterBypassCommand() {
2418 return ((bitField0_ & 0x00000008) == 0x00000008);
2421 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2423 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2424 return acceptanceFilterBypassCommand_;
2427 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
2429 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2430 return acceptanceFilterBypassCommand_;
2433 private void initFields() {
2434 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2435 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2436 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2437 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2439 private byte memoizedIsInitialized = -1;
2440 public final boolean isInitialized() {
2441 byte isInitialized = memoizedIsInitialized;
2442 if (isInitialized != -1) return isInitialized == 1;
2444 memoizedIsInitialized = 1;
2448 public void writeTo(com.google.protobuf.CodedOutputStream output)
2449 throws java.io.IOException {
2450 getSerializedSize();
2451 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2452 output.writeEnum(1, type_.getNumber());
2454 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2455 output.writeMessage(2, diagnosticRequest_);
2457 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2458 output.writeMessage(3, passthroughModeRequest_);
2460 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2461 output.writeMessage(4, acceptanceFilterBypassCommand_);
2463 getUnknownFields().writeTo(output);
2466 private int memoizedSerializedSize = -1;
2467 public int getSerializedSize() {
2468 int size = memoizedSerializedSize;
2469 if (size != -1) return size;
2472 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2473 size += com.google.protobuf.CodedOutputStream
2474 .computeEnumSize(1, type_.getNumber());
2476 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2477 size += com.google.protobuf.CodedOutputStream
2478 .computeMessageSize(2, diagnosticRequest_);
2480 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2481 size += com.google.protobuf.CodedOutputStream
2482 .computeMessageSize(3, passthroughModeRequest_);
2484 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2485 size += com.google.protobuf.CodedOutputStream
2486 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2488 size += getUnknownFields().getSerializedSize();
2489 memoizedSerializedSize = size;
2493 private static final long serialVersionUID = 0L;
2495 protected java.lang.Object writeReplace()
2496 throws java.io.ObjectStreamException {
2497 return super.writeReplace();
2500 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2501 com.google.protobuf.ByteString data)
2502 throws com.google.protobuf.InvalidProtocolBufferException {
2503 return PARSER.parseFrom(data);
2505 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2506 com.google.protobuf.ByteString data,
2507 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2508 throws com.google.protobuf.InvalidProtocolBufferException {
2509 return PARSER.parseFrom(data, extensionRegistry);
2511 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2512 throws com.google.protobuf.InvalidProtocolBufferException {
2513 return PARSER.parseFrom(data);
2515 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2517 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2518 throws com.google.protobuf.InvalidProtocolBufferException {
2519 return PARSER.parseFrom(data, extensionRegistry);
2521 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2522 throws java.io.IOException {
2523 return PARSER.parseFrom(input);
2525 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2526 java.io.InputStream input,
2527 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2528 throws java.io.IOException {
2529 return PARSER.parseFrom(input, extensionRegistry);
2531 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2532 throws java.io.IOException {
2533 return PARSER.parseDelimitedFrom(input);
2535 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2536 java.io.InputStream input,
2537 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2538 throws java.io.IOException {
2539 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2541 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2542 com.google.protobuf.CodedInputStream input)
2543 throws java.io.IOException {
2544 return PARSER.parseFrom(input);
2546 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2547 com.google.protobuf.CodedInputStream input,
2548 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2549 throws java.io.IOException {
2550 return PARSER.parseFrom(input, extensionRegistry);
2553 public static Builder newBuilder() { return Builder.create(); }
2554 public Builder newBuilderForType() { return newBuilder(); }
2555 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2556 return newBuilder().mergeFrom(prototype);
2558 public Builder toBuilder() { return newBuilder(this); }
2561 protected Builder newBuilderForType(
2562 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2563 Builder builder = new Builder(parent);
2567 * Protobuf type {@code openxc.ControlCommand}
2569 public static final class Builder extends
2570 com.google.protobuf.GeneratedMessage.Builder<Builder>
2571 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2572 public static final com.google.protobuf.Descriptors.Descriptor
2574 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2577 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2578 internalGetFieldAccessorTable() {
2579 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2580 .ensureFieldAccessorsInitialized(
2581 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2584 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2586 maybeForceBuilderInitialization();
2590 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2592 maybeForceBuilderInitialization();
2594 private void maybeForceBuilderInitialization() {
2595 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2596 getDiagnosticRequestFieldBuilder();
2597 getPassthroughModeRequestFieldBuilder();
2598 getAcceptanceFilterBypassCommandFieldBuilder();
2601 private static Builder create() {
2602 return new Builder();
2605 public Builder clear() {
2607 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2608 bitField0_ = (bitField0_ & ~0x00000001);
2609 if (diagnosticRequestBuilder_ == null) {
2610 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2612 diagnosticRequestBuilder_.clear();
2614 bitField0_ = (bitField0_ & ~0x00000002);
2615 if (passthroughModeRequestBuilder_ == null) {
2616 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2618 passthroughModeRequestBuilder_.clear();
2620 bitField0_ = (bitField0_ & ~0x00000004);
2621 if (acceptanceFilterBypassCommandBuilder_ == null) {
2622 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2624 acceptanceFilterBypassCommandBuilder_.clear();
2626 bitField0_ = (bitField0_ & ~0x00000008);
2630 public Builder clone() {
2631 return create().mergeFrom(buildPartial());
2634 public com.google.protobuf.Descriptors.Descriptor
2635 getDescriptorForType() {
2636 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2639 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2640 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2643 public com.openxc.BinaryMessages.ControlCommand build() {
2644 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2645 if (!result.isInitialized()) {
2646 throw newUninitializedMessageException(result);
2651 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2652 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2653 int from_bitField0_ = bitField0_;
2654 int to_bitField0_ = 0;
2655 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2656 to_bitField0_ |= 0x00000001;
2658 result.type_ = type_;
2659 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2660 to_bitField0_ |= 0x00000002;
2662 if (diagnosticRequestBuilder_ == null) {
2663 result.diagnosticRequest_ = diagnosticRequest_;
2665 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2667 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2668 to_bitField0_ |= 0x00000004;
2670 if (passthroughModeRequestBuilder_ == null) {
2671 result.passthroughModeRequest_ = passthroughModeRequest_;
2673 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2675 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2676 to_bitField0_ |= 0x00000008;
2678 if (acceptanceFilterBypassCommandBuilder_ == null) {
2679 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2681 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2683 result.bitField0_ = to_bitField0_;
2688 public Builder mergeFrom(com.google.protobuf.Message other) {
2689 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2690 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2692 super.mergeFrom(other);
2697 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2698 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2699 if (other.hasType()) {
2700 setType(other.getType());
2702 if (other.hasDiagnosticRequest()) {
2703 mergeDiagnosticRequest(other.getDiagnosticRequest());
2705 if (other.hasPassthroughModeRequest()) {
2706 mergePassthroughModeRequest(other.getPassthroughModeRequest());
2708 if (other.hasAcceptanceFilterBypassCommand()) {
2709 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
2711 this.mergeUnknownFields(other.getUnknownFields());
2715 public final boolean isInitialized() {
2719 public Builder mergeFrom(
2720 com.google.protobuf.CodedInputStream input,
2721 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2722 throws java.io.IOException {
2723 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
2725 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2726 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2727 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
2730 if (parsedMessage != null) {
2731 mergeFrom(parsedMessage);
2736 private int bitField0_;
2738 // optional .openxc.ControlCommand.Type type = 1;
2739 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2741 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2743 public boolean hasType() {
2744 return ((bitField0_ & 0x00000001) == 0x00000001);
2747 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2749 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2753 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2755 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2756 if (value == null) {
2757 throw new NullPointerException();
2759 bitField0_ |= 0x00000001;
2765 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2767 public Builder clearType() {
2768 bitField0_ = (bitField0_ & ~0x00000001);
2769 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2774 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2775 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2776 private com.google.protobuf.SingleFieldBuilder<
2777 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
2779 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2781 public boolean hasDiagnosticRequest() {
2782 return ((bitField0_ & 0x00000002) == 0x00000002);
2785 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2787 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2788 if (diagnosticRequestBuilder_ == null) {
2789 return diagnosticRequest_;
2791 return diagnosticRequestBuilder_.getMessage();
2795 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2797 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2798 if (diagnosticRequestBuilder_ == null) {
2799 if (value == null) {
2800 throw new NullPointerException();
2802 diagnosticRequest_ = value;
2805 diagnosticRequestBuilder_.setMessage(value);
2807 bitField0_ |= 0x00000002;
2811 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2813 public Builder setDiagnosticRequest(
2814 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
2815 if (diagnosticRequestBuilder_ == null) {
2816 diagnosticRequest_ = builderForValue.build();
2819 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2821 bitField0_ |= 0x00000002;
2825 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2827 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2828 if (diagnosticRequestBuilder_ == null) {
2829 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2830 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
2831 diagnosticRequest_ =
2832 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2834 diagnosticRequest_ = value;
2838 diagnosticRequestBuilder_.mergeFrom(value);
2840 bitField0_ |= 0x00000002;
2844 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2846 public Builder clearDiagnosticRequest() {
2847 if (diagnosticRequestBuilder_ == null) {
2848 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2851 diagnosticRequestBuilder_.clear();
2853 bitField0_ = (bitField0_ & ~0x00000002);
2857 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2859 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
2860 bitField0_ |= 0x00000002;
2862 return getDiagnosticRequestFieldBuilder().getBuilder();
2865 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2867 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2868 if (diagnosticRequestBuilder_ != null) {
2869 return diagnosticRequestBuilder_.getMessageOrBuilder();
2871 return diagnosticRequest_;
2875 * <code>optional .openxc.DiagnosticControlCommand diagnostic_request = 2;</code>
2877 private com.google.protobuf.SingleFieldBuilder<
2878 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
2879 getDiagnosticRequestFieldBuilder() {
2880 if (diagnosticRequestBuilder_ == null) {
2881 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2882 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
2884 getParentForChildren(),
2886 diagnosticRequest_ = null;
2888 return diagnosticRequestBuilder_;
2891 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2892 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2893 private com.google.protobuf.SingleFieldBuilder<
2894 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
2896 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2898 public boolean hasPassthroughModeRequest() {
2899 return ((bitField0_ & 0x00000004) == 0x00000004);
2902 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2904 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2905 if (passthroughModeRequestBuilder_ == null) {
2906 return passthroughModeRequest_;
2908 return passthroughModeRequestBuilder_.getMessage();
2912 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2914 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2915 if (passthroughModeRequestBuilder_ == null) {
2916 if (value == null) {
2917 throw new NullPointerException();
2919 passthroughModeRequest_ = value;
2922 passthroughModeRequestBuilder_.setMessage(value);
2924 bitField0_ |= 0x00000004;
2928 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2930 public Builder setPassthroughModeRequest(
2931 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
2932 if (passthroughModeRequestBuilder_ == null) {
2933 passthroughModeRequest_ = builderForValue.build();
2936 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
2938 bitField0_ |= 0x00000004;
2942 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2944 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2945 if (passthroughModeRequestBuilder_ == null) {
2946 if (((bitField0_ & 0x00000004) == 0x00000004) &&
2947 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
2948 passthroughModeRequest_ =
2949 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
2951 passthroughModeRequest_ = value;
2955 passthroughModeRequestBuilder_.mergeFrom(value);
2957 bitField0_ |= 0x00000004;
2961 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2963 public Builder clearPassthroughModeRequest() {
2964 if (passthroughModeRequestBuilder_ == null) {
2965 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2968 passthroughModeRequestBuilder_.clear();
2970 bitField0_ = (bitField0_ & ~0x00000004);
2974 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2976 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
2977 bitField0_ |= 0x00000004;
2979 return getPassthroughModeRequestFieldBuilder().getBuilder();
2982 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2984 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2985 if (passthroughModeRequestBuilder_ != null) {
2986 return passthroughModeRequestBuilder_.getMessageOrBuilder();
2988 return passthroughModeRequest_;
2992 * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code>
2994 private com.google.protobuf.SingleFieldBuilder<
2995 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
2996 getPassthroughModeRequestFieldBuilder() {
2997 if (passthroughModeRequestBuilder_ == null) {
2998 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2999 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
3000 passthroughModeRequest_,
3001 getParentForChildren(),
3003 passthroughModeRequest_ = null;
3005 return passthroughModeRequestBuilder_;
3008 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
3009 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3010 private com.google.protobuf.SingleFieldBuilder<
3011 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
3013 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3015 public boolean hasAcceptanceFilterBypassCommand() {
3016 return ((bitField0_ & 0x00000008) == 0x00000008);
3019 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3021 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
3022 if (acceptanceFilterBypassCommandBuilder_ == null) {
3023 return acceptanceFilterBypassCommand_;
3025 return acceptanceFilterBypassCommandBuilder_.getMessage();
3029 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3031 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3032 if (acceptanceFilterBypassCommandBuilder_ == null) {
3033 if (value == null) {
3034 throw new NullPointerException();
3036 acceptanceFilterBypassCommand_ = value;
3039 acceptanceFilterBypassCommandBuilder_.setMessage(value);
3041 bitField0_ |= 0x00000008;
3045 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3047 public Builder setAcceptanceFilterBypassCommand(
3048 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
3049 if (acceptanceFilterBypassCommandBuilder_ == null) {
3050 acceptanceFilterBypassCommand_ = builderForValue.build();
3053 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
3055 bitField0_ |= 0x00000008;
3059 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3061 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
3062 if (acceptanceFilterBypassCommandBuilder_ == null) {
3063 if (((bitField0_ & 0x00000008) == 0x00000008) &&
3064 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
3065 acceptanceFilterBypassCommand_ =
3066 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
3068 acceptanceFilterBypassCommand_ = value;
3072 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
3074 bitField0_ |= 0x00000008;
3078 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3080 public Builder clearAcceptanceFilterBypassCommand() {
3081 if (acceptanceFilterBypassCommandBuilder_ == null) {
3082 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
3085 acceptanceFilterBypassCommandBuilder_.clear();
3087 bitField0_ = (bitField0_ & ~0x00000008);
3091 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3093 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
3094 bitField0_ |= 0x00000008;
3096 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
3099 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3101 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
3102 if (acceptanceFilterBypassCommandBuilder_ != null) {
3103 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
3105 return acceptanceFilterBypassCommand_;
3109 * <code>optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;</code>
3111 private com.google.protobuf.SingleFieldBuilder<
3112 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
3113 getAcceptanceFilterBypassCommandFieldBuilder() {
3114 if (acceptanceFilterBypassCommandBuilder_ == null) {
3115 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3116 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
3117 acceptanceFilterBypassCommand_,
3118 getParentForChildren(),
3120 acceptanceFilterBypassCommand_ = null;
3122 return acceptanceFilterBypassCommandBuilder_;
3125 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3129 defaultInstance = new ControlCommand(true);
3130 defaultInstance.initFields();
3133 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3136 public interface DiagnosticControlCommandOrBuilder
3137 extends com.google.protobuf.MessageOrBuilder {
3139 // optional .openxc.DiagnosticRequest request = 1;
3141 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3143 boolean hasRequest();
3145 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3147 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3149 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3151 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3153 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3155 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3157 boolean hasAction();
3159 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3161 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3164 * Protobuf type {@code openxc.DiagnosticControlCommand}
3166 public static final class DiagnosticControlCommand extends
3167 com.google.protobuf.GeneratedMessage
3168 implements DiagnosticControlCommandOrBuilder {
3169 // Use DiagnosticControlCommand.newBuilder() to construct.
3170 private DiagnosticControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3172 this.unknownFields = builder.getUnknownFields();
3174 private DiagnosticControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3176 private static final DiagnosticControlCommand defaultInstance;
3177 public static DiagnosticControlCommand getDefaultInstance() {
3178 return defaultInstance;
3181 public DiagnosticControlCommand getDefaultInstanceForType() {
3182 return defaultInstance;
3185 private final com.google.protobuf.UnknownFieldSet unknownFields;
3187 public final com.google.protobuf.UnknownFieldSet
3188 getUnknownFields() {
3189 return this.unknownFields;
3191 private DiagnosticControlCommand(
3192 com.google.protobuf.CodedInputStream input,
3193 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3194 throws com.google.protobuf.InvalidProtocolBufferException {
3196 int mutable_bitField0_ = 0;
3197 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3198 com.google.protobuf.UnknownFieldSet.newBuilder();
3200 boolean done = false;
3202 int tag = input.readTag();
3208 if (!parseUnknownField(input, unknownFields,
3209 extensionRegistry, tag)) {
3215 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
3216 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3217 subBuilder = request_.toBuilder();
3219 request_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
3220 if (subBuilder != null) {
3221 subBuilder.mergeFrom(request_);
3222 request_ = subBuilder.buildPartial();
3224 bitField0_ |= 0x00000001;
3228 int rawValue = input.readEnum();
3229 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3230 if (value == null) {
3231 unknownFields.mergeVarintField(2, rawValue);
3233 bitField0_ |= 0x00000002;
3240 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3241 throw e.setUnfinishedMessage(this);
3242 } catch (java.io.IOException e) {
3243 throw new com.google.protobuf.InvalidProtocolBufferException(
3244 e.getMessage()).setUnfinishedMessage(this);
3246 this.unknownFields = unknownFields.build();
3247 makeExtensionsImmutable();
3250 public static final com.google.protobuf.Descriptors.Descriptor
3252 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3255 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3256 internalGetFieldAccessorTable() {
3257 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3258 .ensureFieldAccessorsInitialized(
3259 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3262 public static com.google.protobuf.Parser<DiagnosticControlCommand> PARSER =
3263 new com.google.protobuf.AbstractParser<DiagnosticControlCommand>() {
3264 public DiagnosticControlCommand parsePartialFrom(
3265 com.google.protobuf.CodedInputStream input,
3266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3267 throws com.google.protobuf.InvalidProtocolBufferException {
3268 return new DiagnosticControlCommand(input, extensionRegistry);
3273 public com.google.protobuf.Parser<DiagnosticControlCommand> getParserForType() {
3278 * Protobuf enum {@code openxc.DiagnosticControlCommand.Action}
3281 implements com.google.protobuf.ProtocolMessageEnum {
3283 * <code>ADD = 1;</code>
3287 * <code>CANCEL = 2;</code>
3293 * <code>ADD = 1;</code>
3295 public static final int ADD_VALUE = 1;
3297 * <code>CANCEL = 2;</code>
3299 public static final int CANCEL_VALUE = 2;
3302 public final int getNumber() { return value; }
3304 public static Action valueOf(int value) {
3307 case 2: return CANCEL;
3308 default: return null;
3312 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3313 internalGetValueMap() {
3314 return internalValueMap;
3316 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3318 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3319 public Action findValueByNumber(int number) {
3320 return Action.valueOf(number);
3324 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3325 getValueDescriptor() {
3326 return getDescriptor().getValues().get(index);
3328 public final com.google.protobuf.Descriptors.EnumDescriptor
3329 getDescriptorForType() {
3330 return getDescriptor();
3332 public static final com.google.protobuf.Descriptors.EnumDescriptor
3334 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3337 private static final Action[] VALUES = values();
3339 public static Action valueOf(
3340 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3341 if (desc.getType() != getDescriptor()) {
3342 throw new java.lang.IllegalArgumentException(
3343 "EnumValueDescriptor is not for this type.");
3345 return VALUES[desc.getIndex()];
3348 private final int index;
3349 private final int value;
3351 private Action(int index, int value) {
3356 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3359 private int bitField0_;
3360 // optional .openxc.DiagnosticRequest request = 1;
3361 public static final int REQUEST_FIELD_NUMBER = 1;
3362 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3364 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3366 public boolean hasRequest() {
3367 return ((bitField0_ & 0x00000001) == 0x00000001);
3370 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3372 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3376 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3378 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3382 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3383 public static final int ACTION_FIELD_NUMBER = 2;
3384 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3386 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3388 public boolean hasAction() {
3389 return ((bitField0_ & 0x00000002) == 0x00000002);
3392 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3394 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3398 private void initFields() {
3399 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3400 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3402 private byte memoizedIsInitialized = -1;
3403 public final boolean isInitialized() {
3404 byte isInitialized = memoizedIsInitialized;
3405 if (isInitialized != -1) return isInitialized == 1;
3407 memoizedIsInitialized = 1;
3411 public void writeTo(com.google.protobuf.CodedOutputStream output)
3412 throws java.io.IOException {
3413 getSerializedSize();
3414 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3415 output.writeMessage(1, request_);
3417 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3418 output.writeEnum(2, action_.getNumber());
3420 getUnknownFields().writeTo(output);
3423 private int memoizedSerializedSize = -1;
3424 public int getSerializedSize() {
3425 int size = memoizedSerializedSize;
3426 if (size != -1) return size;
3429 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3430 size += com.google.protobuf.CodedOutputStream
3431 .computeMessageSize(1, request_);
3433 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3434 size += com.google.protobuf.CodedOutputStream
3435 .computeEnumSize(2, action_.getNumber());
3437 size += getUnknownFields().getSerializedSize();
3438 memoizedSerializedSize = size;
3442 private static final long serialVersionUID = 0L;
3444 protected java.lang.Object writeReplace()
3445 throws java.io.ObjectStreamException {
3446 return super.writeReplace();
3449 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3450 com.google.protobuf.ByteString data)
3451 throws com.google.protobuf.InvalidProtocolBufferException {
3452 return PARSER.parseFrom(data);
3454 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3455 com.google.protobuf.ByteString data,
3456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3457 throws com.google.protobuf.InvalidProtocolBufferException {
3458 return PARSER.parseFrom(data, extensionRegistry);
3460 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3461 throws com.google.protobuf.InvalidProtocolBufferException {
3462 return PARSER.parseFrom(data);
3464 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3466 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3467 throws com.google.protobuf.InvalidProtocolBufferException {
3468 return PARSER.parseFrom(data, extensionRegistry);
3470 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
3471 throws java.io.IOException {
3472 return PARSER.parseFrom(input);
3474 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3475 java.io.InputStream input,
3476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3477 throws java.io.IOException {
3478 return PARSER.parseFrom(input, extensionRegistry);
3480 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
3481 throws java.io.IOException {
3482 return PARSER.parseDelimitedFrom(input);
3484 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
3485 java.io.InputStream input,
3486 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3487 throws java.io.IOException {
3488 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3490 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3491 com.google.protobuf.CodedInputStream input)
3492 throws java.io.IOException {
3493 return PARSER.parseFrom(input);
3495 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3496 com.google.protobuf.CodedInputStream input,
3497 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3498 throws java.io.IOException {
3499 return PARSER.parseFrom(input, extensionRegistry);
3502 public static Builder newBuilder() { return Builder.create(); }
3503 public Builder newBuilderForType() { return newBuilder(); }
3504 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
3505 return newBuilder().mergeFrom(prototype);
3507 public Builder toBuilder() { return newBuilder(this); }
3510 protected Builder newBuilderForType(
3511 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3512 Builder builder = new Builder(parent);
3516 * Protobuf type {@code openxc.DiagnosticControlCommand}
3518 public static final class Builder extends
3519 com.google.protobuf.GeneratedMessage.Builder<Builder>
3520 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
3521 public static final com.google.protobuf.Descriptors.Descriptor
3523 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3526 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3527 internalGetFieldAccessorTable() {
3528 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable
3529 .ensureFieldAccessorsInitialized(
3530 com.openxc.BinaryMessages.DiagnosticControlCommand.class, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
3533 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
3535 maybeForceBuilderInitialization();
3539 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3541 maybeForceBuilderInitialization();
3543 private void maybeForceBuilderInitialization() {
3544 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3545 getRequestFieldBuilder();
3548 private static Builder create() {
3549 return new Builder();
3552 public Builder clear() {
3554 if (requestBuilder_ == null) {
3555 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3557 requestBuilder_.clear();
3559 bitField0_ = (bitField0_ & ~0x00000001);
3560 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3561 bitField0_ = (bitField0_ & ~0x00000002);
3565 public Builder clone() {
3566 return create().mergeFrom(buildPartial());
3569 public com.google.protobuf.Descriptors.Descriptor
3570 getDescriptorForType() {
3571 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3574 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
3575 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3578 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
3579 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3580 if (!result.isInitialized()) {
3581 throw newUninitializedMessageException(result);
3586 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
3587 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
3588 int from_bitField0_ = bitField0_;
3589 int to_bitField0_ = 0;
3590 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3591 to_bitField0_ |= 0x00000001;
3593 if (requestBuilder_ == null) {
3594 result.request_ = request_;
3596 result.request_ = requestBuilder_.build();
3598 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3599 to_bitField0_ |= 0x00000002;
3601 result.action_ = action_;
3602 result.bitField0_ = to_bitField0_;
3607 public Builder mergeFrom(com.google.protobuf.Message other) {
3608 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
3609 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
3611 super.mergeFrom(other);
3616 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
3617 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
3618 if (other.hasRequest()) {
3619 mergeRequest(other.getRequest());
3621 if (other.hasAction()) {
3622 setAction(other.getAction());
3624 this.mergeUnknownFields(other.getUnknownFields());
3628 public final boolean isInitialized() {
3632 public Builder mergeFrom(
3633 com.google.protobuf.CodedInputStream input,
3634 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3635 throws java.io.IOException {
3636 com.openxc.BinaryMessages.DiagnosticControlCommand parsedMessage = null;
3638 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3639 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3640 parsedMessage = (com.openxc.BinaryMessages.DiagnosticControlCommand) e.getUnfinishedMessage();
3643 if (parsedMessage != null) {
3644 mergeFrom(parsedMessage);
3649 private int bitField0_;
3651 // optional .openxc.DiagnosticRequest request = 1;
3652 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3653 private com.google.protobuf.SingleFieldBuilder<
3654 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
3656 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3658 public boolean hasRequest() {
3659 return ((bitField0_ & 0x00000001) == 0x00000001);
3662 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3664 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3665 if (requestBuilder_ == null) {
3668 return requestBuilder_.getMessage();
3672 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3674 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3675 if (requestBuilder_ == null) {
3676 if (value == null) {
3677 throw new NullPointerException();
3682 requestBuilder_.setMessage(value);
3684 bitField0_ |= 0x00000001;
3688 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3690 public Builder setRequest(
3691 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
3692 if (requestBuilder_ == null) {
3693 request_ = builderForValue.build();
3696 requestBuilder_.setMessage(builderForValue.build());
3698 bitField0_ |= 0x00000001;
3702 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3704 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3705 if (requestBuilder_ == null) {
3706 if (((bitField0_ & 0x00000001) == 0x00000001) &&
3707 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
3709 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
3715 requestBuilder_.mergeFrom(value);
3717 bitField0_ |= 0x00000001;
3721 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3723 public Builder clearRequest() {
3724 if (requestBuilder_ == null) {
3725 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3728 requestBuilder_.clear();
3730 bitField0_ = (bitField0_ & ~0x00000001);
3734 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3736 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
3737 bitField0_ |= 0x00000001;
3739 return getRequestFieldBuilder().getBuilder();
3742 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3744 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3745 if (requestBuilder_ != null) {
3746 return requestBuilder_.getMessageOrBuilder();
3752 * <code>optional .openxc.DiagnosticRequest request = 1;</code>
3754 private com.google.protobuf.SingleFieldBuilder<
3755 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
3756 getRequestFieldBuilder() {
3757 if (requestBuilder_ == null) {
3758 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3759 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
3761 getParentForChildren(),
3765 return requestBuilder_;
3768 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3769 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3771 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3773 public boolean hasAction() {
3774 return ((bitField0_ & 0x00000002) == 0x00000002);
3777 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3779 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3783 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3785 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
3786 if (value == null) {
3787 throw new NullPointerException();
3789 bitField0_ |= 0x00000002;
3795 * <code>optional .openxc.DiagnosticControlCommand.Action action = 2;</code>
3797 public Builder clearAction() {
3798 bitField0_ = (bitField0_ & ~0x00000002);
3799 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3804 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
3808 defaultInstance = new DiagnosticControlCommand(true);
3809 defaultInstance.initFields();
3812 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
3815 public interface PassthroughModeControlCommandOrBuilder
3816 extends com.google.protobuf.MessageOrBuilder {
3818 // optional int32 bus = 1;
3820 * <code>optional int32 bus = 1;</code>
3824 * <code>optional int32 bus = 1;</code>
3828 // optional bool enabled = 2;
3830 * <code>optional bool enabled = 2;</code>
3832 boolean hasEnabled();
3834 * <code>optional bool enabled = 2;</code>
3836 boolean getEnabled();
3839 * Protobuf type {@code openxc.PassthroughModeControlCommand}
3841 public static final class PassthroughModeControlCommand extends
3842 com.google.protobuf.GeneratedMessage
3843 implements PassthroughModeControlCommandOrBuilder {
3844 // Use PassthroughModeControlCommand.newBuilder() to construct.
3845 private PassthroughModeControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3847 this.unknownFields = builder.getUnknownFields();
3849 private PassthroughModeControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3851 private static final PassthroughModeControlCommand defaultInstance;
3852 public static PassthroughModeControlCommand getDefaultInstance() {
3853 return defaultInstance;
3856 public PassthroughModeControlCommand getDefaultInstanceForType() {
3857 return defaultInstance;
3860 private final com.google.protobuf.UnknownFieldSet unknownFields;
3862 public final com.google.protobuf.UnknownFieldSet
3863 getUnknownFields() {
3864 return this.unknownFields;
3866 private PassthroughModeControlCommand(
3867 com.google.protobuf.CodedInputStream input,
3868 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3869 throws com.google.protobuf.InvalidProtocolBufferException {
3871 int mutable_bitField0_ = 0;
3872 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3873 com.google.protobuf.UnknownFieldSet.newBuilder();
3875 boolean done = false;
3877 int tag = input.readTag();
3883 if (!parseUnknownField(input, unknownFields,
3884 extensionRegistry, tag)) {
3890 bitField0_ |= 0x00000001;
3891 bus_ = input.readInt32();
3895 bitField0_ |= 0x00000002;
3896 enabled_ = input.readBool();
3901 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3902 throw e.setUnfinishedMessage(this);
3903 } catch (java.io.IOException e) {
3904 throw new com.google.protobuf.InvalidProtocolBufferException(
3905 e.getMessage()).setUnfinishedMessage(this);
3907 this.unknownFields = unknownFields.build();
3908 makeExtensionsImmutable();
3911 public static final com.google.protobuf.Descriptors.Descriptor
3913 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3916 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3917 internalGetFieldAccessorTable() {
3918 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
3919 .ensureFieldAccessorsInitialized(
3920 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
3923 public static com.google.protobuf.Parser<PassthroughModeControlCommand> PARSER =
3924 new com.google.protobuf.AbstractParser<PassthroughModeControlCommand>() {
3925 public PassthroughModeControlCommand parsePartialFrom(
3926 com.google.protobuf.CodedInputStream input,
3927 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3928 throws com.google.protobuf.InvalidProtocolBufferException {
3929 return new PassthroughModeControlCommand(input, extensionRegistry);
3934 public com.google.protobuf.Parser<PassthroughModeControlCommand> getParserForType() {
3938 private int bitField0_;
3939 // optional int32 bus = 1;
3940 public static final int BUS_FIELD_NUMBER = 1;
3943 * <code>optional int32 bus = 1;</code>
3945 public boolean hasBus() {
3946 return ((bitField0_ & 0x00000001) == 0x00000001);
3949 * <code>optional int32 bus = 1;</code>
3951 public int getBus() {
3955 // optional bool enabled = 2;
3956 public static final int ENABLED_FIELD_NUMBER = 2;
3957 private boolean enabled_;
3959 * <code>optional bool enabled = 2;</code>
3961 public boolean hasEnabled() {
3962 return ((bitField0_ & 0x00000002) == 0x00000002);
3965 * <code>optional bool enabled = 2;</code>
3967 public boolean getEnabled() {
3971 private void initFields() {
3975 private byte memoizedIsInitialized = -1;
3976 public final boolean isInitialized() {
3977 byte isInitialized = memoizedIsInitialized;
3978 if (isInitialized != -1) return isInitialized == 1;
3980 memoizedIsInitialized = 1;
3984 public void writeTo(com.google.protobuf.CodedOutputStream output)
3985 throws java.io.IOException {
3986 getSerializedSize();
3987 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3988 output.writeInt32(1, bus_);
3990 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3991 output.writeBool(2, enabled_);
3993 getUnknownFields().writeTo(output);
3996 private int memoizedSerializedSize = -1;
3997 public int getSerializedSize() {
3998 int size = memoizedSerializedSize;
3999 if (size != -1) return size;
4002 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4003 size += com.google.protobuf.CodedOutputStream
4004 .computeInt32Size(1, bus_);
4006 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4007 size += com.google.protobuf.CodedOutputStream
4008 .computeBoolSize(2, enabled_);
4010 size += getUnknownFields().getSerializedSize();
4011 memoizedSerializedSize = size;
4015 private static final long serialVersionUID = 0L;
4017 protected java.lang.Object writeReplace()
4018 throws java.io.ObjectStreamException {
4019 return super.writeReplace();
4022 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4023 com.google.protobuf.ByteString data)
4024 throws com.google.protobuf.InvalidProtocolBufferException {
4025 return PARSER.parseFrom(data);
4027 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4028 com.google.protobuf.ByteString data,
4029 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4030 throws com.google.protobuf.InvalidProtocolBufferException {
4031 return PARSER.parseFrom(data, extensionRegistry);
4033 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
4034 throws com.google.protobuf.InvalidProtocolBufferException {
4035 return PARSER.parseFrom(data);
4037 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4039 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4040 throws com.google.protobuf.InvalidProtocolBufferException {
4041 return PARSER.parseFrom(data, extensionRegistry);
4043 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
4044 throws java.io.IOException {
4045 return PARSER.parseFrom(input);
4047 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4048 java.io.InputStream input,
4049 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4050 throws java.io.IOException {
4051 return PARSER.parseFrom(input, extensionRegistry);
4053 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
4054 throws java.io.IOException {
4055 return PARSER.parseDelimitedFrom(input);
4057 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
4058 java.io.InputStream input,
4059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4060 throws java.io.IOException {
4061 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4063 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4064 com.google.protobuf.CodedInputStream input)
4065 throws java.io.IOException {
4066 return PARSER.parseFrom(input);
4068 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
4069 com.google.protobuf.CodedInputStream input,
4070 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4071 throws java.io.IOException {
4072 return PARSER.parseFrom(input, extensionRegistry);
4075 public static Builder newBuilder() { return Builder.create(); }
4076 public Builder newBuilderForType() { return newBuilder(); }
4077 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
4078 return newBuilder().mergeFrom(prototype);
4080 public Builder toBuilder() { return newBuilder(this); }
4083 protected Builder newBuilderForType(
4084 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4085 Builder builder = new Builder(parent);
4089 * Protobuf type {@code openxc.PassthroughModeControlCommand}
4091 public static final class Builder extends
4092 com.google.protobuf.GeneratedMessage.Builder<Builder>
4093 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
4094 public static final com.google.protobuf.Descriptors.Descriptor
4096 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4099 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4100 internalGetFieldAccessorTable() {
4101 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable
4102 .ensureFieldAccessorsInitialized(
4103 com.openxc.BinaryMessages.PassthroughModeControlCommand.class, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
4106 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4108 maybeForceBuilderInitialization();
4112 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4114 maybeForceBuilderInitialization();
4116 private void maybeForceBuilderInitialization() {
4117 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4120 private static Builder create() {
4121 return new Builder();
4124 public Builder clear() {
4127 bitField0_ = (bitField0_ & ~0x00000001);
4129 bitField0_ = (bitField0_ & ~0x00000002);
4133 public Builder clone() {
4134 return create().mergeFrom(buildPartial());
4137 public com.google.protobuf.Descriptors.Descriptor
4138 getDescriptorForType() {
4139 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4142 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4143 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4146 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4147 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4148 if (!result.isInitialized()) {
4149 throw newUninitializedMessageException(result);
4154 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4155 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4156 int from_bitField0_ = bitField0_;
4157 int to_bitField0_ = 0;
4158 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4159 to_bitField0_ |= 0x00000001;
4162 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4163 to_bitField0_ |= 0x00000002;
4165 result.enabled_ = enabled_;
4166 result.bitField0_ = to_bitField0_;
4171 public Builder mergeFrom(com.google.protobuf.Message other) {
4172 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4173 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4175 super.mergeFrom(other);
4180 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4181 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4182 if (other.hasBus()) {
4183 setBus(other.getBus());
4185 if (other.hasEnabled()) {
4186 setEnabled(other.getEnabled());
4188 this.mergeUnknownFields(other.getUnknownFields());
4192 public final boolean isInitialized() {
4196 public Builder mergeFrom(
4197 com.google.protobuf.CodedInputStream input,
4198 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4199 throws java.io.IOException {
4200 com.openxc.BinaryMessages.PassthroughModeControlCommand parsedMessage = null;
4202 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4203 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4204 parsedMessage = (com.openxc.BinaryMessages.PassthroughModeControlCommand) e.getUnfinishedMessage();
4207 if (parsedMessage != null) {
4208 mergeFrom(parsedMessage);
4213 private int bitField0_;
4215 // optional int32 bus = 1;
4218 * <code>optional int32 bus = 1;</code>
4220 public boolean hasBus() {
4221 return ((bitField0_ & 0x00000001) == 0x00000001);
4224 * <code>optional int32 bus = 1;</code>
4226 public int getBus() {
4230 * <code>optional int32 bus = 1;</code>
4232 public Builder setBus(int value) {
4233 bitField0_ |= 0x00000001;
4239 * <code>optional int32 bus = 1;</code>
4241 public Builder clearBus() {
4242 bitField0_ = (bitField0_ & ~0x00000001);
4248 // optional bool enabled = 2;
4249 private boolean enabled_ ;
4251 * <code>optional bool enabled = 2;</code>
4253 public boolean hasEnabled() {
4254 return ((bitField0_ & 0x00000002) == 0x00000002);
4257 * <code>optional bool enabled = 2;</code>
4259 public boolean getEnabled() {
4263 * <code>optional bool enabled = 2;</code>
4265 public Builder setEnabled(boolean value) {
4266 bitField0_ |= 0x00000002;
4272 * <code>optional bool enabled = 2;</code>
4274 public Builder clearEnabled() {
4275 bitField0_ = (bitField0_ & ~0x00000002);
4281 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4285 defaultInstance = new PassthroughModeControlCommand(true);
4286 defaultInstance.initFields();
4289 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4292 public interface AcceptanceFilterBypassCommandOrBuilder
4293 extends com.google.protobuf.MessageOrBuilder {
4295 // optional int32 bus = 1;
4297 * <code>optional int32 bus = 1;</code>
4301 * <code>optional int32 bus = 1;</code>
4305 // optional bool bypass = 2;
4307 * <code>optional bool bypass = 2;</code>
4309 boolean hasBypass();
4311 * <code>optional bool bypass = 2;</code>
4313 boolean getBypass();
4316 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4318 public static final class AcceptanceFilterBypassCommand extends
4319 com.google.protobuf.GeneratedMessage
4320 implements AcceptanceFilterBypassCommandOrBuilder {
4321 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4322 private AcceptanceFilterBypassCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4324 this.unknownFields = builder.getUnknownFields();
4326 private AcceptanceFilterBypassCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4328 private static final AcceptanceFilterBypassCommand defaultInstance;
4329 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4330 return defaultInstance;
4333 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4334 return defaultInstance;
4337 private final com.google.protobuf.UnknownFieldSet unknownFields;
4339 public final com.google.protobuf.UnknownFieldSet
4340 getUnknownFields() {
4341 return this.unknownFields;
4343 private AcceptanceFilterBypassCommand(
4344 com.google.protobuf.CodedInputStream input,
4345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4346 throws com.google.protobuf.InvalidProtocolBufferException {
4348 int mutable_bitField0_ = 0;
4349 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4350 com.google.protobuf.UnknownFieldSet.newBuilder();
4352 boolean done = false;
4354 int tag = input.readTag();
4360 if (!parseUnknownField(input, unknownFields,
4361 extensionRegistry, tag)) {
4367 bitField0_ |= 0x00000001;
4368 bus_ = input.readInt32();
4372 bitField0_ |= 0x00000002;
4373 bypass_ = input.readBool();
4378 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4379 throw e.setUnfinishedMessage(this);
4380 } catch (java.io.IOException e) {
4381 throw new com.google.protobuf.InvalidProtocolBufferException(
4382 e.getMessage()).setUnfinishedMessage(this);
4384 this.unknownFields = unknownFields.build();
4385 makeExtensionsImmutable();
4388 public static final com.google.protobuf.Descriptors.Descriptor
4390 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4393 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4394 internalGetFieldAccessorTable() {
4395 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4396 .ensureFieldAccessorsInitialized(
4397 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4400 public static com.google.protobuf.Parser<AcceptanceFilterBypassCommand> PARSER =
4401 new com.google.protobuf.AbstractParser<AcceptanceFilterBypassCommand>() {
4402 public AcceptanceFilterBypassCommand parsePartialFrom(
4403 com.google.protobuf.CodedInputStream input,
4404 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4405 throws com.google.protobuf.InvalidProtocolBufferException {
4406 return new AcceptanceFilterBypassCommand(input, extensionRegistry);
4411 public com.google.protobuf.Parser<AcceptanceFilterBypassCommand> getParserForType() {
4415 private int bitField0_;
4416 // optional int32 bus = 1;
4417 public static final int BUS_FIELD_NUMBER = 1;
4420 * <code>optional int32 bus = 1;</code>
4422 public boolean hasBus() {
4423 return ((bitField0_ & 0x00000001) == 0x00000001);
4426 * <code>optional int32 bus = 1;</code>
4428 public int getBus() {
4432 // optional bool bypass = 2;
4433 public static final int BYPASS_FIELD_NUMBER = 2;
4434 private boolean bypass_;
4436 * <code>optional bool bypass = 2;</code>
4438 public boolean hasBypass() {
4439 return ((bitField0_ & 0x00000002) == 0x00000002);
4442 * <code>optional bool bypass = 2;</code>
4444 public boolean getBypass() {
4448 private void initFields() {
4452 private byte memoizedIsInitialized = -1;
4453 public final boolean isInitialized() {
4454 byte isInitialized = memoizedIsInitialized;
4455 if (isInitialized != -1) return isInitialized == 1;
4457 memoizedIsInitialized = 1;
4461 public void writeTo(com.google.protobuf.CodedOutputStream output)
4462 throws java.io.IOException {
4463 getSerializedSize();
4464 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4465 output.writeInt32(1, bus_);
4467 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4468 output.writeBool(2, bypass_);
4470 getUnknownFields().writeTo(output);
4473 private int memoizedSerializedSize = -1;
4474 public int getSerializedSize() {
4475 int size = memoizedSerializedSize;
4476 if (size != -1) return size;
4479 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4480 size += com.google.protobuf.CodedOutputStream
4481 .computeInt32Size(1, bus_);
4483 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4484 size += com.google.protobuf.CodedOutputStream
4485 .computeBoolSize(2, bypass_);
4487 size += getUnknownFields().getSerializedSize();
4488 memoizedSerializedSize = size;
4492 private static final long serialVersionUID = 0L;
4494 protected java.lang.Object writeReplace()
4495 throws java.io.ObjectStreamException {
4496 return super.writeReplace();
4499 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4500 com.google.protobuf.ByteString data)
4501 throws com.google.protobuf.InvalidProtocolBufferException {
4502 return PARSER.parseFrom(data);
4504 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4505 com.google.protobuf.ByteString data,
4506 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4507 throws com.google.protobuf.InvalidProtocolBufferException {
4508 return PARSER.parseFrom(data, extensionRegistry);
4510 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
4511 throws com.google.protobuf.InvalidProtocolBufferException {
4512 return PARSER.parseFrom(data);
4514 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4517 throws com.google.protobuf.InvalidProtocolBufferException {
4518 return PARSER.parseFrom(data, extensionRegistry);
4520 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
4521 throws java.io.IOException {
4522 return PARSER.parseFrom(input);
4524 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4525 java.io.InputStream input,
4526 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4527 throws java.io.IOException {
4528 return PARSER.parseFrom(input, extensionRegistry);
4530 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
4531 throws java.io.IOException {
4532 return PARSER.parseDelimitedFrom(input);
4534 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
4535 java.io.InputStream input,
4536 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4537 throws java.io.IOException {
4538 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4540 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4541 com.google.protobuf.CodedInputStream input)
4542 throws java.io.IOException {
4543 return PARSER.parseFrom(input);
4545 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4546 com.google.protobuf.CodedInputStream input,
4547 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4548 throws java.io.IOException {
4549 return PARSER.parseFrom(input, extensionRegistry);
4552 public static Builder newBuilder() { return Builder.create(); }
4553 public Builder newBuilderForType() { return newBuilder(); }
4554 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
4555 return newBuilder().mergeFrom(prototype);
4557 public Builder toBuilder() { return newBuilder(this); }
4560 protected Builder newBuilderForType(
4561 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4562 Builder builder = new Builder(parent);
4566 * Protobuf type {@code openxc.AcceptanceFilterBypassCommand}
4568 public static final class Builder extends
4569 com.google.protobuf.GeneratedMessage.Builder<Builder>
4570 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
4571 public static final com.google.protobuf.Descriptors.Descriptor
4573 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4576 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4577 internalGetFieldAccessorTable() {
4578 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable
4579 .ensureFieldAccessorsInitialized(
4580 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
4583 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
4585 maybeForceBuilderInitialization();
4589 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4591 maybeForceBuilderInitialization();
4593 private void maybeForceBuilderInitialization() {
4594 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4597 private static Builder create() {
4598 return new Builder();
4601 public Builder clear() {
4604 bitField0_ = (bitField0_ & ~0x00000001);
4606 bitField0_ = (bitField0_ & ~0x00000002);
4610 public Builder clone() {
4611 return create().mergeFrom(buildPartial());
4614 public com.google.protobuf.Descriptors.Descriptor
4615 getDescriptorForType() {
4616 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4619 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4620 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
4623 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
4624 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4625 if (!result.isInitialized()) {
4626 throw newUninitializedMessageException(result);
4631 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
4632 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
4633 int from_bitField0_ = bitField0_;
4634 int to_bitField0_ = 0;
4635 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4636 to_bitField0_ |= 0x00000001;
4639 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4640 to_bitField0_ |= 0x00000002;
4642 result.bypass_ = bypass_;
4643 result.bitField0_ = to_bitField0_;
4648 public Builder mergeFrom(com.google.protobuf.Message other) {
4649 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
4650 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
4652 super.mergeFrom(other);
4657 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
4658 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
4659 if (other.hasBus()) {
4660 setBus(other.getBus());
4662 if (other.hasBypass()) {
4663 setBypass(other.getBypass());
4665 this.mergeUnknownFields(other.getUnknownFields());
4669 public final boolean isInitialized() {
4673 public Builder mergeFrom(
4674 com.google.protobuf.CodedInputStream input,
4675 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4676 throws java.io.IOException {
4677 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parsedMessage = null;
4679 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4680 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4681 parsedMessage = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) e.getUnfinishedMessage();
4684 if (parsedMessage != null) {
4685 mergeFrom(parsedMessage);
4690 private int bitField0_;
4692 // optional int32 bus = 1;
4695 * <code>optional int32 bus = 1;</code>
4697 public boolean hasBus() {
4698 return ((bitField0_ & 0x00000001) == 0x00000001);
4701 * <code>optional int32 bus = 1;</code>
4703 public int getBus() {
4707 * <code>optional int32 bus = 1;</code>
4709 public Builder setBus(int value) {
4710 bitField0_ |= 0x00000001;
4716 * <code>optional int32 bus = 1;</code>
4718 public Builder clearBus() {
4719 bitField0_ = (bitField0_ & ~0x00000001);
4725 // optional bool bypass = 2;
4726 private boolean bypass_ ;
4728 * <code>optional bool bypass = 2;</code>
4730 public boolean hasBypass() {
4731 return ((bitField0_ & 0x00000002) == 0x00000002);
4734 * <code>optional bool bypass = 2;</code>
4736 public boolean getBypass() {
4740 * <code>optional bool bypass = 2;</code>
4742 public Builder setBypass(boolean value) {
4743 bitField0_ |= 0x00000002;
4749 * <code>optional bool bypass = 2;</code>
4751 public Builder clearBypass() {
4752 bitField0_ = (bitField0_ & ~0x00000002);
4758 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
4762 defaultInstance = new AcceptanceFilterBypassCommand(true);
4763 defaultInstance.initFields();
4766 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
4769 public interface CommandResponseOrBuilder
4770 extends com.google.protobuf.MessageOrBuilder {
4772 // optional .openxc.ControlCommand.Type type = 1;
4774 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
4778 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
4780 com.openxc.BinaryMessages.ControlCommand.Type getType();
4782 // optional string message = 2;
4784 * <code>optional string message = 2;</code>
4786 boolean hasMessage();
4788 * <code>optional string message = 2;</code>
4790 java.lang.String getMessage();
4792 * <code>optional string message = 2;</code>
4794 com.google.protobuf.ByteString
4797 // optional bool status = 3;
4799 * <code>optional bool status = 3;</code>
4801 boolean hasStatus();
4803 * <code>optional bool status = 3;</code>
4805 boolean getStatus();
4808 * Protobuf type {@code openxc.CommandResponse}
4810 public static final class CommandResponse extends
4811 com.google.protobuf.GeneratedMessage
4812 implements CommandResponseOrBuilder {
4813 // Use CommandResponse.newBuilder() to construct.
4814 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4816 this.unknownFields = builder.getUnknownFields();
4818 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4820 private static final CommandResponse defaultInstance;
4821 public static CommandResponse getDefaultInstance() {
4822 return defaultInstance;
4825 public CommandResponse getDefaultInstanceForType() {
4826 return defaultInstance;
4829 private final com.google.protobuf.UnknownFieldSet unknownFields;
4831 public final com.google.protobuf.UnknownFieldSet
4832 getUnknownFields() {
4833 return this.unknownFields;
4835 private CommandResponse(
4836 com.google.protobuf.CodedInputStream input,
4837 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4838 throws com.google.protobuf.InvalidProtocolBufferException {
4840 int mutable_bitField0_ = 0;
4841 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4842 com.google.protobuf.UnknownFieldSet.newBuilder();
4844 boolean done = false;
4846 int tag = input.readTag();
4852 if (!parseUnknownField(input, unknownFields,
4853 extensionRegistry, tag)) {
4859 int rawValue = input.readEnum();
4860 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
4861 if (value == null) {
4862 unknownFields.mergeVarintField(1, rawValue);
4864 bitField0_ |= 0x00000001;
4870 bitField0_ |= 0x00000002;
4871 message_ = input.readBytes();
4875 bitField0_ |= 0x00000004;
4876 status_ = input.readBool();
4881 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4882 throw e.setUnfinishedMessage(this);
4883 } catch (java.io.IOException e) {
4884 throw new com.google.protobuf.InvalidProtocolBufferException(
4885 e.getMessage()).setUnfinishedMessage(this);
4887 this.unknownFields = unknownFields.build();
4888 makeExtensionsImmutable();
4891 public static final com.google.protobuf.Descriptors.Descriptor
4893 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
4896 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4897 internalGetFieldAccessorTable() {
4898 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
4899 .ensureFieldAccessorsInitialized(
4900 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
4903 public static com.google.protobuf.Parser<CommandResponse> PARSER =
4904 new com.google.protobuf.AbstractParser<CommandResponse>() {
4905 public CommandResponse parsePartialFrom(
4906 com.google.protobuf.CodedInputStream input,
4907 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4908 throws com.google.protobuf.InvalidProtocolBufferException {
4909 return new CommandResponse(input, extensionRegistry);
4914 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
4918 private int bitField0_;
4919 // optional .openxc.ControlCommand.Type type = 1;
4920 public static final int TYPE_FIELD_NUMBER = 1;
4921 private com.openxc.BinaryMessages.ControlCommand.Type type_;
4923 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
4925 public boolean hasType() {
4926 return ((bitField0_ & 0x00000001) == 0x00000001);
4929 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
4931 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
4935 // optional string message = 2;
4936 public static final int MESSAGE_FIELD_NUMBER = 2;
4937 private java.lang.Object message_;
4939 * <code>optional string message = 2;</code>
4941 public boolean hasMessage() {
4942 return ((bitField0_ & 0x00000002) == 0x00000002);
4945 * <code>optional string message = 2;</code>
4947 public java.lang.String getMessage() {
4948 java.lang.Object ref = message_;
4949 if (ref instanceof java.lang.String) {
4950 return (java.lang.String) ref;
4952 com.google.protobuf.ByteString bs =
4953 (com.google.protobuf.ByteString) ref;
4954 java.lang.String s = bs.toStringUtf8();
4955 if (bs.isValidUtf8()) {
4962 * <code>optional string message = 2;</code>
4964 public com.google.protobuf.ByteString
4966 java.lang.Object ref = message_;
4967 if (ref instanceof java.lang.String) {
4968 com.google.protobuf.ByteString b =
4969 com.google.protobuf.ByteString.copyFromUtf8(
4970 (java.lang.String) ref);
4974 return (com.google.protobuf.ByteString) ref;
4978 // optional bool status = 3;
4979 public static final int STATUS_FIELD_NUMBER = 3;
4980 private boolean status_;
4982 * <code>optional bool status = 3;</code>
4984 public boolean hasStatus() {
4985 return ((bitField0_ & 0x00000004) == 0x00000004);
4988 * <code>optional bool status = 3;</code>
4990 public boolean getStatus() {
4994 private void initFields() {
4995 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
4999 private byte memoizedIsInitialized = -1;
5000 public final boolean isInitialized() {
5001 byte isInitialized = memoizedIsInitialized;
5002 if (isInitialized != -1) return isInitialized == 1;
5004 memoizedIsInitialized = 1;
5008 public void writeTo(com.google.protobuf.CodedOutputStream output)
5009 throws java.io.IOException {
5010 getSerializedSize();
5011 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5012 output.writeEnum(1, type_.getNumber());
5014 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5015 output.writeBytes(2, getMessageBytes());
5017 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5018 output.writeBool(3, status_);
5020 getUnknownFields().writeTo(output);
5023 private int memoizedSerializedSize = -1;
5024 public int getSerializedSize() {
5025 int size = memoizedSerializedSize;
5026 if (size != -1) return size;
5029 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5030 size += com.google.protobuf.CodedOutputStream
5031 .computeEnumSize(1, type_.getNumber());
5033 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5034 size += com.google.protobuf.CodedOutputStream
5035 .computeBytesSize(2, getMessageBytes());
5037 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5038 size += com.google.protobuf.CodedOutputStream
5039 .computeBoolSize(3, status_);
5041 size += getUnknownFields().getSerializedSize();
5042 memoizedSerializedSize = size;
5046 private static final long serialVersionUID = 0L;
5048 protected java.lang.Object writeReplace()
5049 throws java.io.ObjectStreamException {
5050 return super.writeReplace();
5053 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5054 com.google.protobuf.ByteString data)
5055 throws com.google.protobuf.InvalidProtocolBufferException {
5056 return PARSER.parseFrom(data);
5058 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5059 com.google.protobuf.ByteString data,
5060 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5061 throws com.google.protobuf.InvalidProtocolBufferException {
5062 return PARSER.parseFrom(data, extensionRegistry);
5064 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
5065 throws com.google.protobuf.InvalidProtocolBufferException {
5066 return PARSER.parseFrom(data);
5068 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5070 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5071 throws com.google.protobuf.InvalidProtocolBufferException {
5072 return PARSER.parseFrom(data, extensionRegistry);
5074 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
5075 throws java.io.IOException {
5076 return PARSER.parseFrom(input);
5078 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5079 java.io.InputStream input,
5080 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5081 throws java.io.IOException {
5082 return PARSER.parseFrom(input, extensionRegistry);
5084 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
5085 throws java.io.IOException {
5086 return PARSER.parseDelimitedFrom(input);
5088 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
5089 java.io.InputStream input,
5090 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5091 throws java.io.IOException {
5092 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5094 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5095 com.google.protobuf.CodedInputStream input)
5096 throws java.io.IOException {
5097 return PARSER.parseFrom(input);
5099 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
5100 com.google.protobuf.CodedInputStream input,
5101 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5102 throws java.io.IOException {
5103 return PARSER.parseFrom(input, extensionRegistry);
5106 public static Builder newBuilder() { return Builder.create(); }
5107 public Builder newBuilderForType() { return newBuilder(); }
5108 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
5109 return newBuilder().mergeFrom(prototype);
5111 public Builder toBuilder() { return newBuilder(this); }
5114 protected Builder newBuilderForType(
5115 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5116 Builder builder = new Builder(parent);
5120 * Protobuf type {@code openxc.CommandResponse}
5122 public static final class Builder extends
5123 com.google.protobuf.GeneratedMessage.Builder<Builder>
5124 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
5125 public static final com.google.protobuf.Descriptors.Descriptor
5127 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
5130 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5131 internalGetFieldAccessorTable() {
5132 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
5133 .ensureFieldAccessorsInitialized(
5134 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
5137 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
5139 maybeForceBuilderInitialization();
5143 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5145 maybeForceBuilderInitialization();
5147 private void maybeForceBuilderInitialization() {
5148 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5151 private static Builder create() {
5152 return new Builder();
5155 public Builder clear() {
5157 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
5158 bitField0_ = (bitField0_ & ~0x00000001);
5160 bitField0_ = (bitField0_ & ~0x00000002);
5162 bitField0_ = (bitField0_ & ~0x00000004);
5166 public Builder clone() {
5167 return create().mergeFrom(buildPartial());
5170 public com.google.protobuf.Descriptors.Descriptor
5171 getDescriptorForType() {
5172 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
5175 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
5176 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
5179 public com.openxc.BinaryMessages.CommandResponse build() {
5180 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
5181 if (!result.isInitialized()) {
5182 throw newUninitializedMessageException(result);
5187 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
5188 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
5189 int from_bitField0_ = bitField0_;
5190 int to_bitField0_ = 0;
5191 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5192 to_bitField0_ |= 0x00000001;
5194 result.type_ = type_;
5195 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5196 to_bitField0_ |= 0x00000002;
5198 result.message_ = message_;
5199 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
5200 to_bitField0_ |= 0x00000004;
5202 result.status_ = status_;
5203 result.bitField0_ = to_bitField0_;
5208 public Builder mergeFrom(com.google.protobuf.Message other) {
5209 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
5210 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
5212 super.mergeFrom(other);
5217 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
5218 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
5219 if (other.hasType()) {
5220 setType(other.getType());
5222 if (other.hasMessage()) {
5223 bitField0_ |= 0x00000002;
5224 message_ = other.message_;
5227 if (other.hasStatus()) {
5228 setStatus(other.getStatus());
5230 this.mergeUnknownFields(other.getUnknownFields());
5234 public final boolean isInitialized() {
5238 public Builder mergeFrom(
5239 com.google.protobuf.CodedInputStream input,
5240 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5241 throws java.io.IOException {
5242 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
5244 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5245 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5246 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
5249 if (parsedMessage != null) {
5250 mergeFrom(parsedMessage);
5255 private int bitField0_;
5257 // optional .openxc.ControlCommand.Type type = 1;
5258 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
5260 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
5262 public boolean hasType() {
5263 return ((bitField0_ & 0x00000001) == 0x00000001);
5266 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
5268 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
5272 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
5274 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
5275 if (value == null) {
5276 throw new NullPointerException();
5278 bitField0_ |= 0x00000001;
5284 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
5286 public Builder clearType() {
5287 bitField0_ = (bitField0_ & ~0x00000001);
5288 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
5293 // optional string message = 2;
5294 private java.lang.Object message_ = "";
5296 * <code>optional string message = 2;</code>
5298 public boolean hasMessage() {
5299 return ((bitField0_ & 0x00000002) == 0x00000002);
5302 * <code>optional string message = 2;</code>
5304 public java.lang.String getMessage() {
5305 java.lang.Object ref = message_;
5306 if (!(ref instanceof java.lang.String)) {
5307 java.lang.String s = ((com.google.protobuf.ByteString) ref)
5312 return (java.lang.String) ref;
5316 * <code>optional string message = 2;</code>
5318 public com.google.protobuf.ByteString
5320 java.lang.Object ref = message_;
5321 if (ref instanceof String) {
5322 com.google.protobuf.ByteString b =
5323 com.google.protobuf.ByteString.copyFromUtf8(
5324 (java.lang.String) ref);
5328 return (com.google.protobuf.ByteString) ref;
5332 * <code>optional string message = 2;</code>
5334 public Builder setMessage(
5335 java.lang.String value) {
5336 if (value == null) {
5337 throw new NullPointerException();
5339 bitField0_ |= 0x00000002;
5345 * <code>optional string message = 2;</code>
5347 public Builder clearMessage() {
5348 bitField0_ = (bitField0_ & ~0x00000002);
5349 message_ = getDefaultInstance().getMessage();
5354 * <code>optional string message = 2;</code>
5356 public Builder setMessageBytes(
5357 com.google.protobuf.ByteString value) {
5358 if (value == null) {
5359 throw new NullPointerException();
5361 bitField0_ |= 0x00000002;
5367 // optional bool status = 3;
5368 private boolean status_ ;
5370 * <code>optional bool status = 3;</code>
5372 public boolean hasStatus() {
5373 return ((bitField0_ & 0x00000004) == 0x00000004);
5376 * <code>optional bool status = 3;</code>
5378 public boolean getStatus() {
5382 * <code>optional bool status = 3;</code>
5384 public Builder setStatus(boolean value) {
5385 bitField0_ |= 0x00000004;
5391 * <code>optional bool status = 3;</code>
5393 public Builder clearStatus() {
5394 bitField0_ = (bitField0_ & ~0x00000004);
5400 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
5404 defaultInstance = new CommandResponse(true);
5405 defaultInstance.initFields();
5408 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
5411 public interface DiagnosticRequestOrBuilder
5412 extends com.google.protobuf.MessageOrBuilder {
5414 // optional int32 bus = 1;
5416 * <code>optional int32 bus = 1;</code>
5420 * <code>optional int32 bus = 1;</code>
5424 // optional uint32 message_id = 2;
5426 * <code>optional uint32 message_id = 2;</code>
5428 boolean hasMessageId();
5430 * <code>optional uint32 message_id = 2;</code>
5434 // optional uint32 mode = 3;
5436 * <code>optional uint32 mode = 3;</code>
5440 * <code>optional uint32 mode = 3;</code>
5444 // optional uint32 pid = 4;
5446 * <code>optional uint32 pid = 4;</code>
5450 * <code>optional uint32 pid = 4;</code>
5454 // optional bytes payload = 5;
5456 * <code>optional bytes payload = 5;</code>
5459 * TODO we are capping this at 8 bytes for now - need to change when we
5460 * support multi-frame responses
5463 boolean hasPayload();
5465 * <code>optional bytes payload = 5;</code>
5468 * TODO we are capping this at 8 bytes for now - need to change when we
5469 * support multi-frame responses
5472 com.google.protobuf.ByteString getPayload();
5474 // optional bool multiple_responses = 6;
5476 * <code>optional bool multiple_responses = 6;</code>
5478 boolean hasMultipleResponses();
5480 * <code>optional bool multiple_responses = 6;</code>
5482 boolean getMultipleResponses();
5484 // optional double frequency = 7;
5486 * <code>optional double frequency = 7;</code>
5488 boolean hasFrequency();
5490 * <code>optional double frequency = 7;</code>
5492 double getFrequency();
5494 // optional string name = 8;
5496 * <code>optional string name = 8;</code>
5500 * <code>optional string name = 8;</code>
5502 java.lang.String getName();
5504 * <code>optional string name = 8;</code>
5506 com.google.protobuf.ByteString
5509 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
5511 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
5513 boolean hasDecodedType();
5515 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
5517 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
5520 * Protobuf type {@code openxc.DiagnosticRequest}
5522 public static final class DiagnosticRequest extends
5523 com.google.protobuf.GeneratedMessage
5524 implements DiagnosticRequestOrBuilder {
5525 // Use DiagnosticRequest.newBuilder() to construct.
5526 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5528 this.unknownFields = builder.getUnknownFields();
5530 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5532 private static final DiagnosticRequest defaultInstance;
5533 public static DiagnosticRequest getDefaultInstance() {
5534 return defaultInstance;
5537 public DiagnosticRequest getDefaultInstanceForType() {
5538 return defaultInstance;
5541 private final com.google.protobuf.UnknownFieldSet unknownFields;
5543 public final com.google.protobuf.UnknownFieldSet
5544 getUnknownFields() {
5545 return this.unknownFields;
5547 private DiagnosticRequest(
5548 com.google.protobuf.CodedInputStream input,
5549 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5550 throws com.google.protobuf.InvalidProtocolBufferException {
5552 int mutable_bitField0_ = 0;
5553 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5554 com.google.protobuf.UnknownFieldSet.newBuilder();
5556 boolean done = false;
5558 int tag = input.readTag();
5564 if (!parseUnknownField(input, unknownFields,
5565 extensionRegistry, tag)) {
5571 bitField0_ |= 0x00000001;
5572 bus_ = input.readInt32();
5576 bitField0_ |= 0x00000002;
5577 messageId_ = input.readUInt32();
5581 bitField0_ |= 0x00000004;
5582 mode_ = input.readUInt32();
5586 bitField0_ |= 0x00000008;
5587 pid_ = input.readUInt32();
5591 bitField0_ |= 0x00000010;
5592 payload_ = input.readBytes();
5596 bitField0_ |= 0x00000020;
5597 multipleResponses_ = input.readBool();
5601 bitField0_ |= 0x00000040;
5602 frequency_ = input.readDouble();
5606 bitField0_ |= 0x00000080;
5607 name_ = input.readBytes();
5611 int rawValue = input.readEnum();
5612 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
5613 if (value == null) {
5614 unknownFields.mergeVarintField(9, rawValue);
5616 bitField0_ |= 0x00000100;
5617 decodedType_ = value;
5623 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5624 throw e.setUnfinishedMessage(this);
5625 } catch (java.io.IOException e) {
5626 throw new com.google.protobuf.InvalidProtocolBufferException(
5627 e.getMessage()).setUnfinishedMessage(this);
5629 this.unknownFields = unknownFields.build();
5630 makeExtensionsImmutable();
5633 public static final com.google.protobuf.Descriptors.Descriptor
5635 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
5638 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5639 internalGetFieldAccessorTable() {
5640 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
5641 .ensureFieldAccessorsInitialized(
5642 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
5645 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
5646 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
5647 public DiagnosticRequest parsePartialFrom(
5648 com.google.protobuf.CodedInputStream input,
5649 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5650 throws com.google.protobuf.InvalidProtocolBufferException {
5651 return new DiagnosticRequest(input, extensionRegistry);
5656 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
5661 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
5663 public enum DecodedType
5664 implements com.google.protobuf.ProtocolMessageEnum {
5666 * <code>NONE = 1;</code>
5670 * <code>OBD2 = 2;</code>
5676 * <code>NONE = 1;</code>
5678 public static final int NONE_VALUE = 1;
5680 * <code>OBD2 = 2;</code>
5682 public static final int OBD2_VALUE = 2;
5685 public final int getNumber() { return value; }
5687 public static DecodedType valueOf(int value) {
5689 case 1: return NONE;
5690 case 2: return OBD2;
5691 default: return null;
5695 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
5696 internalGetValueMap() {
5697 return internalValueMap;
5699 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
5701 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
5702 public DecodedType findValueByNumber(int number) {
5703 return DecodedType.valueOf(number);
5707 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5708 getValueDescriptor() {
5709 return getDescriptor().getValues().get(index);
5711 public final com.google.protobuf.Descriptors.EnumDescriptor
5712 getDescriptorForType() {
5713 return getDescriptor();
5715 public static final com.google.protobuf.Descriptors.EnumDescriptor
5717 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
5720 private static final DecodedType[] VALUES = values();
5722 public static DecodedType valueOf(
5723 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5724 if (desc.getType() != getDescriptor()) {
5725 throw new java.lang.IllegalArgumentException(
5726 "EnumValueDescriptor is not for this type.");
5728 return VALUES[desc.getIndex()];
5731 private final int index;
5732 private final int value;
5734 private DecodedType(int index, int value) {
5739 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
5742 private int bitField0_;
5743 // optional int32 bus = 1;
5744 public static final int BUS_FIELD_NUMBER = 1;
5747 * <code>optional int32 bus = 1;</code>
5749 public boolean hasBus() {
5750 return ((bitField0_ & 0x00000001) == 0x00000001);
5753 * <code>optional int32 bus = 1;</code>
5755 public int getBus() {
5759 // optional uint32 message_id = 2;
5760 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
5761 private int messageId_;
5763 * <code>optional uint32 message_id = 2;</code>
5765 public boolean hasMessageId() {
5766 return ((bitField0_ & 0x00000002) == 0x00000002);
5769 * <code>optional uint32 message_id = 2;</code>
5771 public int getMessageId() {
5775 // optional uint32 mode = 3;
5776 public static final int MODE_FIELD_NUMBER = 3;
5779 * <code>optional uint32 mode = 3;</code>
5781 public boolean hasMode() {
5782 return ((bitField0_ & 0x00000004) == 0x00000004);
5785 * <code>optional uint32 mode = 3;</code>
5787 public int getMode() {
5791 // optional uint32 pid = 4;
5792 public static final int PID_FIELD_NUMBER = 4;
5795 * <code>optional uint32 pid = 4;</code>
5797 public boolean hasPid() {
5798 return ((bitField0_ & 0x00000008) == 0x00000008);
5801 * <code>optional uint32 pid = 4;</code>
5803 public int getPid() {
5807 // optional bytes payload = 5;
5808 public static final int PAYLOAD_FIELD_NUMBER = 5;
5809 private com.google.protobuf.ByteString payload_;
5811 * <code>optional bytes payload = 5;</code>
5814 * TODO we are capping this at 8 bytes for now - need to change when we
5815 * support multi-frame responses
5818 public boolean hasPayload() {
5819 return ((bitField0_ & 0x00000010) == 0x00000010);
5822 * <code>optional bytes payload = 5;</code>
5825 * TODO we are capping this at 8 bytes for now - need to change when we
5826 * support multi-frame responses
5829 public com.google.protobuf.ByteString getPayload() {
5833 // optional bool multiple_responses = 6;
5834 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
5835 private boolean multipleResponses_;
5837 * <code>optional bool multiple_responses = 6;</code>
5839 public boolean hasMultipleResponses() {
5840 return ((bitField0_ & 0x00000020) == 0x00000020);
5843 * <code>optional bool multiple_responses = 6;</code>
5845 public boolean getMultipleResponses() {
5846 return multipleResponses_;
5849 // optional double frequency = 7;
5850 public static final int FREQUENCY_FIELD_NUMBER = 7;
5851 private double frequency_;
5853 * <code>optional double frequency = 7;</code>
5855 public boolean hasFrequency() {
5856 return ((bitField0_ & 0x00000040) == 0x00000040);
5859 * <code>optional double frequency = 7;</code>
5861 public double getFrequency() {
5865 // optional string name = 8;
5866 public static final int NAME_FIELD_NUMBER = 8;
5867 private java.lang.Object name_;
5869 * <code>optional string name = 8;</code>
5871 public boolean hasName() {
5872 return ((bitField0_ & 0x00000080) == 0x00000080);
5875 * <code>optional string name = 8;</code>
5877 public java.lang.String getName() {
5878 java.lang.Object ref = name_;
5879 if (ref instanceof java.lang.String) {
5880 return (java.lang.String) ref;
5882 com.google.protobuf.ByteString bs =
5883 (com.google.protobuf.ByteString) ref;
5884 java.lang.String s = bs.toStringUtf8();
5885 if (bs.isValidUtf8()) {
5892 * <code>optional string name = 8;</code>
5894 public com.google.protobuf.ByteString
5896 java.lang.Object ref = name_;
5897 if (ref instanceof java.lang.String) {
5898 com.google.protobuf.ByteString b =
5899 com.google.protobuf.ByteString.copyFromUtf8(
5900 (java.lang.String) ref);
5904 return (com.google.protobuf.ByteString) ref;
5908 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
5909 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
5910 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
5912 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
5914 public boolean hasDecodedType() {
5915 return ((bitField0_ & 0x00000100) == 0x00000100);
5918 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
5920 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
5921 return decodedType_;
5924 private void initFields() {
5929 payload_ = com.google.protobuf.ByteString.EMPTY;
5930 multipleResponses_ = false;
5933 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
5935 private byte memoizedIsInitialized = -1;
5936 public final boolean isInitialized() {
5937 byte isInitialized = memoizedIsInitialized;
5938 if (isInitialized != -1) return isInitialized == 1;
5940 memoizedIsInitialized = 1;
5944 public void writeTo(com.google.protobuf.CodedOutputStream output)
5945 throws java.io.IOException {
5946 getSerializedSize();
5947 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5948 output.writeInt32(1, bus_);
5950 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5951 output.writeUInt32(2, messageId_);
5953 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5954 output.writeUInt32(3, mode_);
5956 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5957 output.writeUInt32(4, pid_);
5959 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5960 output.writeBytes(5, payload_);
5962 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5963 output.writeBool(6, multipleResponses_);
5965 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5966 output.writeDouble(7, frequency_);
5968 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5969 output.writeBytes(8, getNameBytes());
5971 if (((bitField0_ & 0x00000100) == 0x00000100)) {
5972 output.writeEnum(9, decodedType_.getNumber());
5974 getUnknownFields().writeTo(output);
5977 private int memoizedSerializedSize = -1;
5978 public int getSerializedSize() {
5979 int size = memoizedSerializedSize;
5980 if (size != -1) return size;
5983 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5984 size += com.google.protobuf.CodedOutputStream
5985 .computeInt32Size(1, bus_);
5987 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5988 size += com.google.protobuf.CodedOutputStream
5989 .computeUInt32Size(2, messageId_);
5991 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5992 size += com.google.protobuf.CodedOutputStream
5993 .computeUInt32Size(3, mode_);
5995 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5996 size += com.google.protobuf.CodedOutputStream
5997 .computeUInt32Size(4, pid_);
5999 if (((bitField0_ & 0x00000010) == 0x00000010)) {
6000 size += com.google.protobuf.CodedOutputStream
6001 .computeBytesSize(5, payload_);
6003 if (((bitField0_ & 0x00000020) == 0x00000020)) {
6004 size += com.google.protobuf.CodedOutputStream
6005 .computeBoolSize(6, multipleResponses_);
6007 if (((bitField0_ & 0x00000040) == 0x00000040)) {
6008 size += com.google.protobuf.CodedOutputStream
6009 .computeDoubleSize(7, frequency_);
6011 if (((bitField0_ & 0x00000080) == 0x00000080)) {
6012 size += com.google.protobuf.CodedOutputStream
6013 .computeBytesSize(8, getNameBytes());
6015 if (((bitField0_ & 0x00000100) == 0x00000100)) {
6016 size += com.google.protobuf.CodedOutputStream
6017 .computeEnumSize(9, decodedType_.getNumber());
6019 size += getUnknownFields().getSerializedSize();
6020 memoizedSerializedSize = size;
6024 private static final long serialVersionUID = 0L;
6026 protected java.lang.Object writeReplace()
6027 throws java.io.ObjectStreamException {
6028 return super.writeReplace();
6031 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6032 com.google.protobuf.ByteString data)
6033 throws com.google.protobuf.InvalidProtocolBufferException {
6034 return PARSER.parseFrom(data);
6036 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6037 com.google.protobuf.ByteString data,
6038 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6039 throws com.google.protobuf.InvalidProtocolBufferException {
6040 return PARSER.parseFrom(data, extensionRegistry);
6042 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
6043 throws com.google.protobuf.InvalidProtocolBufferException {
6044 return PARSER.parseFrom(data);
6046 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6048 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6049 throws com.google.protobuf.InvalidProtocolBufferException {
6050 return PARSER.parseFrom(data, extensionRegistry);
6052 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
6053 throws java.io.IOException {
6054 return PARSER.parseFrom(input);
6056 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6057 java.io.InputStream input,
6058 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6059 throws java.io.IOException {
6060 return PARSER.parseFrom(input, extensionRegistry);
6062 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
6063 throws java.io.IOException {
6064 return PARSER.parseDelimitedFrom(input);
6066 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
6067 java.io.InputStream input,
6068 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6069 throws java.io.IOException {
6070 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6072 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6073 com.google.protobuf.CodedInputStream input)
6074 throws java.io.IOException {
6075 return PARSER.parseFrom(input);
6077 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
6078 com.google.protobuf.CodedInputStream input,
6079 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6080 throws java.io.IOException {
6081 return PARSER.parseFrom(input, extensionRegistry);
6084 public static Builder newBuilder() { return Builder.create(); }
6085 public Builder newBuilderForType() { return newBuilder(); }
6086 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
6087 return newBuilder().mergeFrom(prototype);
6089 public Builder toBuilder() { return newBuilder(this); }
6092 protected Builder newBuilderForType(
6093 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6094 Builder builder = new Builder(parent);
6098 * Protobuf type {@code openxc.DiagnosticRequest}
6100 public static final class Builder extends
6101 com.google.protobuf.GeneratedMessage.Builder<Builder>
6102 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
6103 public static final com.google.protobuf.Descriptors.Descriptor
6105 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
6108 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6109 internalGetFieldAccessorTable() {
6110 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
6111 .ensureFieldAccessorsInitialized(
6112 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
6115 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
6117 maybeForceBuilderInitialization();
6121 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6123 maybeForceBuilderInitialization();
6125 private void maybeForceBuilderInitialization() {
6126 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6129 private static Builder create() {
6130 return new Builder();
6133 public Builder clear() {
6136 bitField0_ = (bitField0_ & ~0x00000001);
6138 bitField0_ = (bitField0_ & ~0x00000002);
6140 bitField0_ = (bitField0_ & ~0x00000004);
6142 bitField0_ = (bitField0_ & ~0x00000008);
6143 payload_ = com.google.protobuf.ByteString.EMPTY;
6144 bitField0_ = (bitField0_ & ~0x00000010);
6145 multipleResponses_ = false;
6146 bitField0_ = (bitField0_ & ~0x00000020);
6148 bitField0_ = (bitField0_ & ~0x00000040);
6150 bitField0_ = (bitField0_ & ~0x00000080);
6151 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
6152 bitField0_ = (bitField0_ & ~0x00000100);
6156 public Builder clone() {
6157 return create().mergeFrom(buildPartial());
6160 public com.google.protobuf.Descriptors.Descriptor
6161 getDescriptorForType() {
6162 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
6165 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
6166 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
6169 public com.openxc.BinaryMessages.DiagnosticRequest build() {
6170 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
6171 if (!result.isInitialized()) {
6172 throw newUninitializedMessageException(result);
6177 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
6178 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
6179 int from_bitField0_ = bitField0_;
6180 int to_bitField0_ = 0;
6181 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6182 to_bitField0_ |= 0x00000001;
6185 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6186 to_bitField0_ |= 0x00000002;
6188 result.messageId_ = messageId_;
6189 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6190 to_bitField0_ |= 0x00000004;
6192 result.mode_ = mode_;
6193 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
6194 to_bitField0_ |= 0x00000008;
6197 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
6198 to_bitField0_ |= 0x00000010;
6200 result.payload_ = payload_;
6201 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
6202 to_bitField0_ |= 0x00000020;
6204 result.multipleResponses_ = multipleResponses_;
6205 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
6206 to_bitField0_ |= 0x00000040;
6208 result.frequency_ = frequency_;
6209 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
6210 to_bitField0_ |= 0x00000080;
6212 result.name_ = name_;
6213 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
6214 to_bitField0_ |= 0x00000100;
6216 result.decodedType_ = decodedType_;
6217 result.bitField0_ = to_bitField0_;
6222 public Builder mergeFrom(com.google.protobuf.Message other) {
6223 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
6224 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
6226 super.mergeFrom(other);
6231 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
6232 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
6233 if (other.hasBus()) {
6234 setBus(other.getBus());
6236 if (other.hasMessageId()) {
6237 setMessageId(other.getMessageId());
6239 if (other.hasMode()) {
6240 setMode(other.getMode());
6242 if (other.hasPid()) {
6243 setPid(other.getPid());
6245 if (other.hasPayload()) {
6246 setPayload(other.getPayload());
6248 if (other.hasMultipleResponses()) {
6249 setMultipleResponses(other.getMultipleResponses());
6251 if (other.hasFrequency()) {
6252 setFrequency(other.getFrequency());
6254 if (other.hasName()) {
6255 bitField0_ |= 0x00000080;
6256 name_ = other.name_;
6259 if (other.hasDecodedType()) {
6260 setDecodedType(other.getDecodedType());
6262 this.mergeUnknownFields(other.getUnknownFields());
6266 public final boolean isInitialized() {
6270 public Builder mergeFrom(
6271 com.google.protobuf.CodedInputStream input,
6272 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6273 throws java.io.IOException {
6274 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
6276 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6277 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6278 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
6281 if (parsedMessage != null) {
6282 mergeFrom(parsedMessage);
6287 private int bitField0_;
6289 // optional int32 bus = 1;
6292 * <code>optional int32 bus = 1;</code>
6294 public boolean hasBus() {
6295 return ((bitField0_ & 0x00000001) == 0x00000001);
6298 * <code>optional int32 bus = 1;</code>
6300 public int getBus() {
6304 * <code>optional int32 bus = 1;</code>
6306 public Builder setBus(int value) {
6307 bitField0_ |= 0x00000001;
6313 * <code>optional int32 bus = 1;</code>
6315 public Builder clearBus() {
6316 bitField0_ = (bitField0_ & ~0x00000001);
6322 // optional uint32 message_id = 2;
6323 private int messageId_ ;
6325 * <code>optional uint32 message_id = 2;</code>
6327 public boolean hasMessageId() {
6328 return ((bitField0_ & 0x00000002) == 0x00000002);
6331 * <code>optional uint32 message_id = 2;</code>
6333 public int getMessageId() {
6337 * <code>optional uint32 message_id = 2;</code>
6339 public Builder setMessageId(int value) {
6340 bitField0_ |= 0x00000002;
6346 * <code>optional uint32 message_id = 2;</code>
6348 public Builder clearMessageId() {
6349 bitField0_ = (bitField0_ & ~0x00000002);
6355 // optional uint32 mode = 3;
6358 * <code>optional uint32 mode = 3;</code>
6360 public boolean hasMode() {
6361 return ((bitField0_ & 0x00000004) == 0x00000004);
6364 * <code>optional uint32 mode = 3;</code>
6366 public int getMode() {
6370 * <code>optional uint32 mode = 3;</code>
6372 public Builder setMode(int value) {
6373 bitField0_ |= 0x00000004;
6379 * <code>optional uint32 mode = 3;</code>
6381 public Builder clearMode() {
6382 bitField0_ = (bitField0_ & ~0x00000004);
6388 // optional uint32 pid = 4;
6391 * <code>optional uint32 pid = 4;</code>
6393 public boolean hasPid() {
6394 return ((bitField0_ & 0x00000008) == 0x00000008);
6397 * <code>optional uint32 pid = 4;</code>
6399 public int getPid() {
6403 * <code>optional uint32 pid = 4;</code>
6405 public Builder setPid(int value) {
6406 bitField0_ |= 0x00000008;
6412 * <code>optional uint32 pid = 4;</code>
6414 public Builder clearPid() {
6415 bitField0_ = (bitField0_ & ~0x00000008);
6421 // optional bytes payload = 5;
6422 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
6424 * <code>optional bytes payload = 5;</code>
6427 * TODO we are capping this at 8 bytes for now - need to change when we
6428 * support multi-frame responses
6431 public boolean hasPayload() {
6432 return ((bitField0_ & 0x00000010) == 0x00000010);
6435 * <code>optional bytes payload = 5;</code>
6438 * TODO we are capping this at 8 bytes for now - need to change when we
6439 * support multi-frame responses
6442 public com.google.protobuf.ByteString getPayload() {
6446 * <code>optional bytes payload = 5;</code>
6449 * TODO we are capping this at 8 bytes for now - need to change when we
6450 * support multi-frame responses
6453 public Builder setPayload(com.google.protobuf.ByteString value) {
6454 if (value == null) {
6455 throw new NullPointerException();
6457 bitField0_ |= 0x00000010;
6463 * <code>optional bytes payload = 5;</code>
6466 * TODO we are capping this at 8 bytes for now - need to change when we
6467 * support multi-frame responses
6470 public Builder clearPayload() {
6471 bitField0_ = (bitField0_ & ~0x00000010);
6472 payload_ = getDefaultInstance().getPayload();
6477 // optional bool multiple_responses = 6;
6478 private boolean multipleResponses_ ;
6480 * <code>optional bool multiple_responses = 6;</code>
6482 public boolean hasMultipleResponses() {
6483 return ((bitField0_ & 0x00000020) == 0x00000020);
6486 * <code>optional bool multiple_responses = 6;</code>
6488 public boolean getMultipleResponses() {
6489 return multipleResponses_;
6492 * <code>optional bool multiple_responses = 6;</code>
6494 public Builder setMultipleResponses(boolean value) {
6495 bitField0_ |= 0x00000020;
6496 multipleResponses_ = value;
6501 * <code>optional bool multiple_responses = 6;</code>
6503 public Builder clearMultipleResponses() {
6504 bitField0_ = (bitField0_ & ~0x00000020);
6505 multipleResponses_ = false;
6510 // optional double frequency = 7;
6511 private double frequency_ ;
6513 * <code>optional double frequency = 7;</code>
6515 public boolean hasFrequency() {
6516 return ((bitField0_ & 0x00000040) == 0x00000040);
6519 * <code>optional double frequency = 7;</code>
6521 public double getFrequency() {
6525 * <code>optional double frequency = 7;</code>
6527 public Builder setFrequency(double value) {
6528 bitField0_ |= 0x00000040;
6534 * <code>optional double frequency = 7;</code>
6536 public Builder clearFrequency() {
6537 bitField0_ = (bitField0_ & ~0x00000040);
6543 // optional string name = 8;
6544 private java.lang.Object name_ = "";
6546 * <code>optional string name = 8;</code>
6548 public boolean hasName() {
6549 return ((bitField0_ & 0x00000080) == 0x00000080);
6552 * <code>optional string name = 8;</code>
6554 public java.lang.String getName() {
6555 java.lang.Object ref = name_;
6556 if (!(ref instanceof java.lang.String)) {
6557 java.lang.String s = ((com.google.protobuf.ByteString) ref)
6562 return (java.lang.String) ref;
6566 * <code>optional string name = 8;</code>
6568 public com.google.protobuf.ByteString
6570 java.lang.Object ref = name_;
6571 if (ref instanceof String) {
6572 com.google.protobuf.ByteString b =
6573 com.google.protobuf.ByteString.copyFromUtf8(
6574 (java.lang.String) ref);
6578 return (com.google.protobuf.ByteString) ref;
6582 * <code>optional string name = 8;</code>
6584 public Builder setName(
6585 java.lang.String value) {
6586 if (value == null) {
6587 throw new NullPointerException();
6589 bitField0_ |= 0x00000080;
6595 * <code>optional string name = 8;</code>
6597 public Builder clearName() {
6598 bitField0_ = (bitField0_ & ~0x00000080);
6599 name_ = getDefaultInstance().getName();
6604 * <code>optional string name = 8;</code>
6606 public Builder setNameBytes(
6607 com.google.protobuf.ByteString value) {
6608 if (value == null) {
6609 throw new NullPointerException();
6611 bitField0_ |= 0x00000080;
6617 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
6618 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
6620 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6622 public boolean hasDecodedType() {
6623 return ((bitField0_ & 0x00000100) == 0x00000100);
6626 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6628 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
6629 return decodedType_;
6632 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6634 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
6635 if (value == null) {
6636 throw new NullPointerException();
6638 bitField0_ |= 0x00000100;
6639 decodedType_ = value;
6644 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
6646 public Builder clearDecodedType() {
6647 bitField0_ = (bitField0_ & ~0x00000100);
6648 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
6653 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
6657 defaultInstance = new DiagnosticRequest(true);
6658 defaultInstance.initFields();
6661 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
6664 public interface DiagnosticResponseOrBuilder
6665 extends com.google.protobuf.MessageOrBuilder {
6667 // optional int32 bus = 1;
6669 * <code>optional int32 bus = 1;</code>
6673 * <code>optional int32 bus = 1;</code>
6677 // optional uint32 message_id = 2;
6679 * <code>optional uint32 message_id = 2;</code>
6681 boolean hasMessageId();
6683 * <code>optional uint32 message_id = 2;</code>
6687 // optional uint32 mode = 3;
6689 * <code>optional uint32 mode = 3;</code>
6693 * <code>optional uint32 mode = 3;</code>
6697 // optional uint32 pid = 4;
6699 * <code>optional uint32 pid = 4;</code>
6703 * <code>optional uint32 pid = 4;</code>
6707 // optional bool success = 5;
6709 * <code>optional bool success = 5;</code>
6711 boolean hasSuccess();
6713 * <code>optional bool success = 5;</code>
6715 boolean getSuccess();
6717 // optional uint32 negative_response_code = 6;
6719 * <code>optional uint32 negative_response_code = 6;</code>
6721 boolean hasNegativeResponseCode();
6723 * <code>optional uint32 negative_response_code = 6;</code>
6725 int getNegativeResponseCode();
6727 // optional bytes payload = 7;
6729 * <code>optional bytes payload = 7;</code>
6732 * TODO we are capping this at 8 bytes for now - need to change when we
6733 * support multi-frame responses
6736 boolean hasPayload();
6738 * <code>optional bytes payload = 7;</code>
6741 * TODO we are capping this at 8 bytes for now - need to change when we
6742 * support multi-frame responses
6745 com.google.protobuf.ByteString getPayload();
6747 // optional double value = 8;
6749 * <code>optional double value = 8;</code>
6753 * <code>optional double value = 8;</code>
6758 * Protobuf type {@code openxc.DiagnosticResponse}
6760 public static final class DiagnosticResponse extends
6761 com.google.protobuf.GeneratedMessage
6762 implements DiagnosticResponseOrBuilder {
6763 // Use DiagnosticResponse.newBuilder() to construct.
6764 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6766 this.unknownFields = builder.getUnknownFields();
6768 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6770 private static final DiagnosticResponse defaultInstance;
6771 public static DiagnosticResponse getDefaultInstance() {
6772 return defaultInstance;
6775 public DiagnosticResponse getDefaultInstanceForType() {
6776 return defaultInstance;
6779 private final com.google.protobuf.UnknownFieldSet unknownFields;
6781 public final com.google.protobuf.UnknownFieldSet
6782 getUnknownFields() {
6783 return this.unknownFields;
6785 private DiagnosticResponse(
6786 com.google.protobuf.CodedInputStream input,
6787 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6788 throws com.google.protobuf.InvalidProtocolBufferException {
6790 int mutable_bitField0_ = 0;
6791 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6792 com.google.protobuf.UnknownFieldSet.newBuilder();
6794 boolean done = false;
6796 int tag = input.readTag();
6802 if (!parseUnknownField(input, unknownFields,
6803 extensionRegistry, tag)) {
6809 bitField0_ |= 0x00000001;
6810 bus_ = input.readInt32();
6814 bitField0_ |= 0x00000002;
6815 messageId_ = input.readUInt32();
6819 bitField0_ |= 0x00000004;
6820 mode_ = input.readUInt32();
6824 bitField0_ |= 0x00000008;
6825 pid_ = input.readUInt32();
6829 bitField0_ |= 0x00000010;
6830 success_ = input.readBool();
6834 bitField0_ |= 0x00000020;
6835 negativeResponseCode_ = input.readUInt32();
6839 bitField0_ |= 0x00000040;
6840 payload_ = input.readBytes();
6844 bitField0_ |= 0x00000080;
6845 value_ = input.readDouble();
6850 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6851 throw e.setUnfinishedMessage(this);
6852 } catch (java.io.IOException e) {
6853 throw new com.google.protobuf.InvalidProtocolBufferException(
6854 e.getMessage()).setUnfinishedMessage(this);
6856 this.unknownFields = unknownFields.build();
6857 makeExtensionsImmutable();
6860 public static final com.google.protobuf.Descriptors.Descriptor
6862 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
6865 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6866 internalGetFieldAccessorTable() {
6867 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
6868 .ensureFieldAccessorsInitialized(
6869 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
6872 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
6873 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
6874 public DiagnosticResponse parsePartialFrom(
6875 com.google.protobuf.CodedInputStream input,
6876 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6877 throws com.google.protobuf.InvalidProtocolBufferException {
6878 return new DiagnosticResponse(input, extensionRegistry);
6883 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
6887 private int bitField0_;
6888 // optional int32 bus = 1;
6889 public static final int BUS_FIELD_NUMBER = 1;
6892 * <code>optional int32 bus = 1;</code>
6894 public boolean hasBus() {
6895 return ((bitField0_ & 0x00000001) == 0x00000001);
6898 * <code>optional int32 bus = 1;</code>
6900 public int getBus() {
6904 // optional uint32 message_id = 2;
6905 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
6906 private int messageId_;
6908 * <code>optional uint32 message_id = 2;</code>
6910 public boolean hasMessageId() {
6911 return ((bitField0_ & 0x00000002) == 0x00000002);
6914 * <code>optional uint32 message_id = 2;</code>
6916 public int getMessageId() {
6920 // optional uint32 mode = 3;
6921 public static final int MODE_FIELD_NUMBER = 3;
6924 * <code>optional uint32 mode = 3;</code>
6926 public boolean hasMode() {
6927 return ((bitField0_ & 0x00000004) == 0x00000004);
6930 * <code>optional uint32 mode = 3;</code>
6932 public int getMode() {
6936 // optional uint32 pid = 4;
6937 public static final int PID_FIELD_NUMBER = 4;
6940 * <code>optional uint32 pid = 4;</code>
6942 public boolean hasPid() {
6943 return ((bitField0_ & 0x00000008) == 0x00000008);
6946 * <code>optional uint32 pid = 4;</code>
6948 public int getPid() {
6952 // optional bool success = 5;
6953 public static final int SUCCESS_FIELD_NUMBER = 5;
6954 private boolean success_;
6956 * <code>optional bool success = 5;</code>
6958 public boolean hasSuccess() {
6959 return ((bitField0_ & 0x00000010) == 0x00000010);
6962 * <code>optional bool success = 5;</code>
6964 public boolean getSuccess() {
6968 // optional uint32 negative_response_code = 6;
6969 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
6970 private int negativeResponseCode_;
6972 * <code>optional uint32 negative_response_code = 6;</code>
6974 public boolean hasNegativeResponseCode() {
6975 return ((bitField0_ & 0x00000020) == 0x00000020);
6978 * <code>optional uint32 negative_response_code = 6;</code>
6980 public int getNegativeResponseCode() {
6981 return negativeResponseCode_;
6984 // optional bytes payload = 7;
6985 public static final int PAYLOAD_FIELD_NUMBER = 7;
6986 private com.google.protobuf.ByteString payload_;
6988 * <code>optional bytes payload = 7;</code>
6991 * TODO we are capping this at 8 bytes for now - need to change when we
6992 * support multi-frame responses
6995 public boolean hasPayload() {
6996 return ((bitField0_ & 0x00000040) == 0x00000040);
6999 * <code>optional bytes payload = 7;</code>
7002 * TODO we are capping this at 8 bytes for now - need to change when we
7003 * support multi-frame responses
7006 public com.google.protobuf.ByteString getPayload() {
7010 // optional double value = 8;
7011 public static final int VALUE_FIELD_NUMBER = 8;
7012 private double value_;
7014 * <code>optional double value = 8;</code>
7016 public boolean hasValue() {
7017 return ((bitField0_ & 0x00000080) == 0x00000080);
7020 * <code>optional double value = 8;</code>
7022 public double getValue() {
7026 private void initFields() {
7032 negativeResponseCode_ = 0;
7033 payload_ = com.google.protobuf.ByteString.EMPTY;
7036 private byte memoizedIsInitialized = -1;
7037 public final boolean isInitialized() {
7038 byte isInitialized = memoizedIsInitialized;
7039 if (isInitialized != -1) return isInitialized == 1;
7041 memoizedIsInitialized = 1;
7045 public void writeTo(com.google.protobuf.CodedOutputStream output)
7046 throws java.io.IOException {
7047 getSerializedSize();
7048 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7049 output.writeInt32(1, bus_);
7051 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7052 output.writeUInt32(2, messageId_);
7054 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7055 output.writeUInt32(3, mode_);
7057 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7058 output.writeUInt32(4, pid_);
7060 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7061 output.writeBool(5, success_);
7063 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7064 output.writeUInt32(6, negativeResponseCode_);
7066 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7067 output.writeBytes(7, payload_);
7069 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7070 output.writeDouble(8, value_);
7072 getUnknownFields().writeTo(output);
7075 private int memoizedSerializedSize = -1;
7076 public int getSerializedSize() {
7077 int size = memoizedSerializedSize;
7078 if (size != -1) return size;
7081 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7082 size += com.google.protobuf.CodedOutputStream
7083 .computeInt32Size(1, bus_);
7085 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7086 size += com.google.protobuf.CodedOutputStream
7087 .computeUInt32Size(2, messageId_);
7089 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7090 size += com.google.protobuf.CodedOutputStream
7091 .computeUInt32Size(3, mode_);
7093 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7094 size += com.google.protobuf.CodedOutputStream
7095 .computeUInt32Size(4, pid_);
7097 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7098 size += com.google.protobuf.CodedOutputStream
7099 .computeBoolSize(5, success_);
7101 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7102 size += com.google.protobuf.CodedOutputStream
7103 .computeUInt32Size(6, negativeResponseCode_);
7105 if (((bitField0_ & 0x00000040) == 0x00000040)) {
7106 size += com.google.protobuf.CodedOutputStream
7107 .computeBytesSize(7, payload_);
7109 if (((bitField0_ & 0x00000080) == 0x00000080)) {
7110 size += com.google.protobuf.CodedOutputStream
7111 .computeDoubleSize(8, value_);
7113 size += getUnknownFields().getSerializedSize();
7114 memoizedSerializedSize = size;
7118 private static final long serialVersionUID = 0L;
7120 protected java.lang.Object writeReplace()
7121 throws java.io.ObjectStreamException {
7122 return super.writeReplace();
7125 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7126 com.google.protobuf.ByteString data)
7127 throws com.google.protobuf.InvalidProtocolBufferException {
7128 return PARSER.parseFrom(data);
7130 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7131 com.google.protobuf.ByteString data,
7132 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7133 throws com.google.protobuf.InvalidProtocolBufferException {
7134 return PARSER.parseFrom(data, extensionRegistry);
7136 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
7137 throws com.google.protobuf.InvalidProtocolBufferException {
7138 return PARSER.parseFrom(data);
7140 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7142 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7143 throws com.google.protobuf.InvalidProtocolBufferException {
7144 return PARSER.parseFrom(data, extensionRegistry);
7146 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
7147 throws java.io.IOException {
7148 return PARSER.parseFrom(input);
7150 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7151 java.io.InputStream input,
7152 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7153 throws java.io.IOException {
7154 return PARSER.parseFrom(input, extensionRegistry);
7156 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
7157 throws java.io.IOException {
7158 return PARSER.parseDelimitedFrom(input);
7160 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
7161 java.io.InputStream input,
7162 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7163 throws java.io.IOException {
7164 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7166 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7167 com.google.protobuf.CodedInputStream input)
7168 throws java.io.IOException {
7169 return PARSER.parseFrom(input);
7171 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
7172 com.google.protobuf.CodedInputStream input,
7173 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7174 throws java.io.IOException {
7175 return PARSER.parseFrom(input, extensionRegistry);
7178 public static Builder newBuilder() { return Builder.create(); }
7179 public Builder newBuilderForType() { return newBuilder(); }
7180 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
7181 return newBuilder().mergeFrom(prototype);
7183 public Builder toBuilder() { return newBuilder(this); }
7186 protected Builder newBuilderForType(
7187 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7188 Builder builder = new Builder(parent);
7192 * Protobuf type {@code openxc.DiagnosticResponse}
7194 public static final class Builder extends
7195 com.google.protobuf.GeneratedMessage.Builder<Builder>
7196 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
7197 public static final com.google.protobuf.Descriptors.Descriptor
7199 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
7202 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7203 internalGetFieldAccessorTable() {
7204 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
7205 .ensureFieldAccessorsInitialized(
7206 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
7209 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
7211 maybeForceBuilderInitialization();
7215 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7217 maybeForceBuilderInitialization();
7219 private void maybeForceBuilderInitialization() {
7220 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7223 private static Builder create() {
7224 return new Builder();
7227 public Builder clear() {
7230 bitField0_ = (bitField0_ & ~0x00000001);
7232 bitField0_ = (bitField0_ & ~0x00000002);
7234 bitField0_ = (bitField0_ & ~0x00000004);
7236 bitField0_ = (bitField0_ & ~0x00000008);
7238 bitField0_ = (bitField0_ & ~0x00000010);
7239 negativeResponseCode_ = 0;
7240 bitField0_ = (bitField0_ & ~0x00000020);
7241 payload_ = com.google.protobuf.ByteString.EMPTY;
7242 bitField0_ = (bitField0_ & ~0x00000040);
7244 bitField0_ = (bitField0_ & ~0x00000080);
7248 public Builder clone() {
7249 return create().mergeFrom(buildPartial());
7252 public com.google.protobuf.Descriptors.Descriptor
7253 getDescriptorForType() {
7254 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
7257 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
7258 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
7261 public com.openxc.BinaryMessages.DiagnosticResponse build() {
7262 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
7263 if (!result.isInitialized()) {
7264 throw newUninitializedMessageException(result);
7269 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
7270 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
7271 int from_bitField0_ = bitField0_;
7272 int to_bitField0_ = 0;
7273 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7274 to_bitField0_ |= 0x00000001;
7277 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7278 to_bitField0_ |= 0x00000002;
7280 result.messageId_ = messageId_;
7281 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7282 to_bitField0_ |= 0x00000004;
7284 result.mode_ = mode_;
7285 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7286 to_bitField0_ |= 0x00000008;
7289 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
7290 to_bitField0_ |= 0x00000010;
7292 result.success_ = success_;
7293 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
7294 to_bitField0_ |= 0x00000020;
7296 result.negativeResponseCode_ = negativeResponseCode_;
7297 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
7298 to_bitField0_ |= 0x00000040;
7300 result.payload_ = payload_;
7301 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
7302 to_bitField0_ |= 0x00000080;
7304 result.value_ = value_;
7305 result.bitField0_ = to_bitField0_;
7310 public Builder mergeFrom(com.google.protobuf.Message other) {
7311 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
7312 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
7314 super.mergeFrom(other);
7319 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
7320 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
7321 if (other.hasBus()) {
7322 setBus(other.getBus());
7324 if (other.hasMessageId()) {
7325 setMessageId(other.getMessageId());
7327 if (other.hasMode()) {
7328 setMode(other.getMode());
7330 if (other.hasPid()) {
7331 setPid(other.getPid());
7333 if (other.hasSuccess()) {
7334 setSuccess(other.getSuccess());
7336 if (other.hasNegativeResponseCode()) {
7337 setNegativeResponseCode(other.getNegativeResponseCode());
7339 if (other.hasPayload()) {
7340 setPayload(other.getPayload());
7342 if (other.hasValue()) {
7343 setValue(other.getValue());
7345 this.mergeUnknownFields(other.getUnknownFields());
7349 public final boolean isInitialized() {
7353 public Builder mergeFrom(
7354 com.google.protobuf.CodedInputStream input,
7355 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7356 throws java.io.IOException {
7357 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
7359 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7360 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7361 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
7364 if (parsedMessage != null) {
7365 mergeFrom(parsedMessage);
7370 private int bitField0_;
7372 // optional int32 bus = 1;
7375 * <code>optional int32 bus = 1;</code>
7377 public boolean hasBus() {
7378 return ((bitField0_ & 0x00000001) == 0x00000001);
7381 * <code>optional int32 bus = 1;</code>
7383 public int getBus() {
7387 * <code>optional int32 bus = 1;</code>
7389 public Builder setBus(int value) {
7390 bitField0_ |= 0x00000001;
7396 * <code>optional int32 bus = 1;</code>
7398 public Builder clearBus() {
7399 bitField0_ = (bitField0_ & ~0x00000001);
7405 // optional uint32 message_id = 2;
7406 private int messageId_ ;
7408 * <code>optional uint32 message_id = 2;</code>
7410 public boolean hasMessageId() {
7411 return ((bitField0_ & 0x00000002) == 0x00000002);
7414 * <code>optional uint32 message_id = 2;</code>
7416 public int getMessageId() {
7420 * <code>optional uint32 message_id = 2;</code>
7422 public Builder setMessageId(int value) {
7423 bitField0_ |= 0x00000002;
7429 * <code>optional uint32 message_id = 2;</code>
7431 public Builder clearMessageId() {
7432 bitField0_ = (bitField0_ & ~0x00000002);
7438 // optional uint32 mode = 3;
7441 * <code>optional uint32 mode = 3;</code>
7443 public boolean hasMode() {
7444 return ((bitField0_ & 0x00000004) == 0x00000004);
7447 * <code>optional uint32 mode = 3;</code>
7449 public int getMode() {
7453 * <code>optional uint32 mode = 3;</code>
7455 public Builder setMode(int value) {
7456 bitField0_ |= 0x00000004;
7462 * <code>optional uint32 mode = 3;</code>
7464 public Builder clearMode() {
7465 bitField0_ = (bitField0_ & ~0x00000004);
7471 // optional uint32 pid = 4;
7474 * <code>optional uint32 pid = 4;</code>
7476 public boolean hasPid() {
7477 return ((bitField0_ & 0x00000008) == 0x00000008);
7480 * <code>optional uint32 pid = 4;</code>
7482 public int getPid() {
7486 * <code>optional uint32 pid = 4;</code>
7488 public Builder setPid(int value) {
7489 bitField0_ |= 0x00000008;
7495 * <code>optional uint32 pid = 4;</code>
7497 public Builder clearPid() {
7498 bitField0_ = (bitField0_ & ~0x00000008);
7504 // optional bool success = 5;
7505 private boolean success_ ;
7507 * <code>optional bool success = 5;</code>
7509 public boolean hasSuccess() {
7510 return ((bitField0_ & 0x00000010) == 0x00000010);
7513 * <code>optional bool success = 5;</code>
7515 public boolean getSuccess() {
7519 * <code>optional bool success = 5;</code>
7521 public Builder setSuccess(boolean value) {
7522 bitField0_ |= 0x00000010;
7528 * <code>optional bool success = 5;</code>
7530 public Builder clearSuccess() {
7531 bitField0_ = (bitField0_ & ~0x00000010);
7537 // optional uint32 negative_response_code = 6;
7538 private int negativeResponseCode_ ;
7540 * <code>optional uint32 negative_response_code = 6;</code>
7542 public boolean hasNegativeResponseCode() {
7543 return ((bitField0_ & 0x00000020) == 0x00000020);
7546 * <code>optional uint32 negative_response_code = 6;</code>
7548 public int getNegativeResponseCode() {
7549 return negativeResponseCode_;
7552 * <code>optional uint32 negative_response_code = 6;</code>
7554 public Builder setNegativeResponseCode(int value) {
7555 bitField0_ |= 0x00000020;
7556 negativeResponseCode_ = value;
7561 * <code>optional uint32 negative_response_code = 6;</code>
7563 public Builder clearNegativeResponseCode() {
7564 bitField0_ = (bitField0_ & ~0x00000020);
7565 negativeResponseCode_ = 0;
7570 // optional bytes payload = 7;
7571 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
7573 * <code>optional bytes payload = 7;</code>
7576 * TODO we are capping this at 8 bytes for now - need to change when we
7577 * support multi-frame responses
7580 public boolean hasPayload() {
7581 return ((bitField0_ & 0x00000040) == 0x00000040);
7584 * <code>optional bytes payload = 7;</code>
7587 * TODO we are capping this at 8 bytes for now - need to change when we
7588 * support multi-frame responses
7591 public com.google.protobuf.ByteString getPayload() {
7595 * <code>optional bytes payload = 7;</code>
7598 * TODO we are capping this at 8 bytes for now - need to change when we
7599 * support multi-frame responses
7602 public Builder setPayload(com.google.protobuf.ByteString value) {
7603 if (value == null) {
7604 throw new NullPointerException();
7606 bitField0_ |= 0x00000040;
7612 * <code>optional bytes payload = 7;</code>
7615 * TODO we are capping this at 8 bytes for now - need to change when we
7616 * support multi-frame responses
7619 public Builder clearPayload() {
7620 bitField0_ = (bitField0_ & ~0x00000040);
7621 payload_ = getDefaultInstance().getPayload();
7626 // optional double value = 8;
7627 private double value_ ;
7629 * <code>optional double value = 8;</code>
7631 public boolean hasValue() {
7632 return ((bitField0_ & 0x00000080) == 0x00000080);
7635 * <code>optional double value = 8;</code>
7637 public double getValue() {
7641 * <code>optional double value = 8;</code>
7643 public Builder setValue(double value) {
7644 bitField0_ |= 0x00000080;
7650 * <code>optional double value = 8;</code>
7652 public Builder clearValue() {
7653 bitField0_ = (bitField0_ & ~0x00000080);
7659 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
7663 defaultInstance = new DiagnosticResponse(true);
7664 defaultInstance.initFields();
7667 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
7670 public interface DynamicFieldOrBuilder
7671 extends com.google.protobuf.MessageOrBuilder {
7673 // optional .openxc.DynamicField.Type type = 1;
7675 * <code>optional .openxc.DynamicField.Type type = 1;</code>
7679 * <code>optional .openxc.DynamicField.Type type = 1;</code>
7681 com.openxc.BinaryMessages.DynamicField.Type getType();
7683 // optional string string_value = 2;
7685 * <code>optional string string_value = 2;</code>
7687 boolean hasStringValue();
7689 * <code>optional string string_value = 2;</code>
7691 java.lang.String getStringValue();
7693 * <code>optional string string_value = 2;</code>
7695 com.google.protobuf.ByteString
7696 getStringValueBytes();
7698 // optional double numeric_value = 3;
7700 * <code>optional double numeric_value = 3;</code>
7702 boolean hasNumericValue();
7704 * <code>optional double numeric_value = 3;</code>
7706 double getNumericValue();
7708 // optional bool boolean_value = 4;
7710 * <code>optional bool boolean_value = 4;</code>
7712 boolean hasBooleanValue();
7714 * <code>optional bool boolean_value = 4;</code>
7716 boolean getBooleanValue();
7719 * Protobuf type {@code openxc.DynamicField}
7721 public static final class DynamicField extends
7722 com.google.protobuf.GeneratedMessage
7723 implements DynamicFieldOrBuilder {
7724 // Use DynamicField.newBuilder() to construct.
7725 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
7727 this.unknownFields = builder.getUnknownFields();
7729 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
7731 private static final DynamicField defaultInstance;
7732 public static DynamicField getDefaultInstance() {
7733 return defaultInstance;
7736 public DynamicField getDefaultInstanceForType() {
7737 return defaultInstance;
7740 private final com.google.protobuf.UnknownFieldSet unknownFields;
7742 public final com.google.protobuf.UnknownFieldSet
7743 getUnknownFields() {
7744 return this.unknownFields;
7746 private DynamicField(
7747 com.google.protobuf.CodedInputStream input,
7748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7749 throws com.google.protobuf.InvalidProtocolBufferException {
7751 int mutable_bitField0_ = 0;
7752 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7753 com.google.protobuf.UnknownFieldSet.newBuilder();
7755 boolean done = false;
7757 int tag = input.readTag();
7763 if (!parseUnknownField(input, unknownFields,
7764 extensionRegistry, tag)) {
7770 int rawValue = input.readEnum();
7771 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
7772 if (value == null) {
7773 unknownFields.mergeVarintField(1, rawValue);
7775 bitField0_ |= 0x00000001;
7781 bitField0_ |= 0x00000002;
7782 stringValue_ = input.readBytes();
7786 bitField0_ |= 0x00000004;
7787 numericValue_ = input.readDouble();
7791 bitField0_ |= 0x00000008;
7792 booleanValue_ = input.readBool();
7797 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7798 throw e.setUnfinishedMessage(this);
7799 } catch (java.io.IOException e) {
7800 throw new com.google.protobuf.InvalidProtocolBufferException(
7801 e.getMessage()).setUnfinishedMessage(this);
7803 this.unknownFields = unknownFields.build();
7804 makeExtensionsImmutable();
7807 public static final com.google.protobuf.Descriptors.Descriptor
7809 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
7812 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7813 internalGetFieldAccessorTable() {
7814 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
7815 .ensureFieldAccessorsInitialized(
7816 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
7819 public static com.google.protobuf.Parser<DynamicField> PARSER =
7820 new com.google.protobuf.AbstractParser<DynamicField>() {
7821 public DynamicField parsePartialFrom(
7822 com.google.protobuf.CodedInputStream input,
7823 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7824 throws com.google.protobuf.InvalidProtocolBufferException {
7825 return new DynamicField(input, extensionRegistry);
7830 public com.google.protobuf.Parser<DynamicField> getParserForType() {
7835 * Protobuf enum {@code openxc.DynamicField.Type}
7838 implements com.google.protobuf.ProtocolMessageEnum {
7840 * <code>STRING = 1;</code>
7844 * <code>NUM = 2;</code>
7848 * <code>BOOL = 3;</code>
7854 * <code>STRING = 1;</code>
7856 public static final int STRING_VALUE = 1;
7858 * <code>NUM = 2;</code>
7860 public static final int NUM_VALUE = 2;
7862 * <code>BOOL = 3;</code>
7864 public static final int BOOL_VALUE = 3;
7867 public final int getNumber() { return value; }
7869 public static Type valueOf(int value) {
7871 case 1: return STRING;
7873 case 3: return BOOL;
7874 default: return null;
7878 public static com.google.protobuf.Internal.EnumLiteMap<Type>
7879 internalGetValueMap() {
7880 return internalValueMap;
7882 private static com.google.protobuf.Internal.EnumLiteMap<Type>
7884 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
7885 public Type findValueByNumber(int number) {
7886 return Type.valueOf(number);
7890 public final com.google.protobuf.Descriptors.EnumValueDescriptor
7891 getValueDescriptor() {
7892 return getDescriptor().getValues().get(index);
7894 public final com.google.protobuf.Descriptors.EnumDescriptor
7895 getDescriptorForType() {
7896 return getDescriptor();
7898 public static final com.google.protobuf.Descriptors.EnumDescriptor
7900 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
7903 private static final Type[] VALUES = values();
7905 public static Type valueOf(
7906 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
7907 if (desc.getType() != getDescriptor()) {
7908 throw new java.lang.IllegalArgumentException(
7909 "EnumValueDescriptor is not for this type.");
7911 return VALUES[desc.getIndex()];
7914 private final int index;
7915 private final int value;
7917 private Type(int index, int value) {
7922 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
7925 private int bitField0_;
7926 // optional .openxc.DynamicField.Type type = 1;
7927 public static final int TYPE_FIELD_NUMBER = 1;
7928 private com.openxc.BinaryMessages.DynamicField.Type type_;
7930 * <code>optional .openxc.DynamicField.Type type = 1;</code>
7932 public boolean hasType() {
7933 return ((bitField0_ & 0x00000001) == 0x00000001);
7936 * <code>optional .openxc.DynamicField.Type type = 1;</code>
7938 public com.openxc.BinaryMessages.DynamicField.Type getType() {
7942 // optional string string_value = 2;
7943 public static final int STRING_VALUE_FIELD_NUMBER = 2;
7944 private java.lang.Object stringValue_;
7946 * <code>optional string string_value = 2;</code>
7948 public boolean hasStringValue() {
7949 return ((bitField0_ & 0x00000002) == 0x00000002);
7952 * <code>optional string string_value = 2;</code>
7954 public java.lang.String getStringValue() {
7955 java.lang.Object ref = stringValue_;
7956 if (ref instanceof java.lang.String) {
7957 return (java.lang.String) ref;
7959 com.google.protobuf.ByteString bs =
7960 (com.google.protobuf.ByteString) ref;
7961 java.lang.String s = bs.toStringUtf8();
7962 if (bs.isValidUtf8()) {
7969 * <code>optional string string_value = 2;</code>
7971 public com.google.protobuf.ByteString
7972 getStringValueBytes() {
7973 java.lang.Object ref = stringValue_;
7974 if (ref instanceof java.lang.String) {
7975 com.google.protobuf.ByteString b =
7976 com.google.protobuf.ByteString.copyFromUtf8(
7977 (java.lang.String) ref);
7981 return (com.google.protobuf.ByteString) ref;
7985 // optional double numeric_value = 3;
7986 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
7987 private double numericValue_;
7989 * <code>optional double numeric_value = 3;</code>
7991 public boolean hasNumericValue() {
7992 return ((bitField0_ & 0x00000004) == 0x00000004);
7995 * <code>optional double numeric_value = 3;</code>
7997 public double getNumericValue() {
7998 return numericValue_;
8001 // optional bool boolean_value = 4;
8002 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
8003 private boolean booleanValue_;
8005 * <code>optional bool boolean_value = 4;</code>
8007 public boolean hasBooleanValue() {
8008 return ((bitField0_ & 0x00000008) == 0x00000008);
8011 * <code>optional bool boolean_value = 4;</code>
8013 public boolean getBooleanValue() {
8014 return booleanValue_;
8017 private void initFields() {
8018 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
8021 booleanValue_ = false;
8023 private byte memoizedIsInitialized = -1;
8024 public final boolean isInitialized() {
8025 byte isInitialized = memoizedIsInitialized;
8026 if (isInitialized != -1) return isInitialized == 1;
8028 memoizedIsInitialized = 1;
8032 public void writeTo(com.google.protobuf.CodedOutputStream output)
8033 throws java.io.IOException {
8034 getSerializedSize();
8035 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8036 output.writeEnum(1, type_.getNumber());
8038 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8039 output.writeBytes(2, getStringValueBytes());
8041 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8042 output.writeDouble(3, numericValue_);
8044 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8045 output.writeBool(4, booleanValue_);
8047 getUnknownFields().writeTo(output);
8050 private int memoizedSerializedSize = -1;
8051 public int getSerializedSize() {
8052 int size = memoizedSerializedSize;
8053 if (size != -1) return size;
8056 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8057 size += com.google.protobuf.CodedOutputStream
8058 .computeEnumSize(1, type_.getNumber());
8060 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8061 size += com.google.protobuf.CodedOutputStream
8062 .computeBytesSize(2, getStringValueBytes());
8064 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8065 size += com.google.protobuf.CodedOutputStream
8066 .computeDoubleSize(3, numericValue_);
8068 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8069 size += com.google.protobuf.CodedOutputStream
8070 .computeBoolSize(4, booleanValue_);
8072 size += getUnknownFields().getSerializedSize();
8073 memoizedSerializedSize = size;
8077 private static final long serialVersionUID = 0L;
8079 protected java.lang.Object writeReplace()
8080 throws java.io.ObjectStreamException {
8081 return super.writeReplace();
8084 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8085 com.google.protobuf.ByteString data)
8086 throws com.google.protobuf.InvalidProtocolBufferException {
8087 return PARSER.parseFrom(data);
8089 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8090 com.google.protobuf.ByteString data,
8091 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8092 throws com.google.protobuf.InvalidProtocolBufferException {
8093 return PARSER.parseFrom(data, extensionRegistry);
8095 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
8096 throws com.google.protobuf.InvalidProtocolBufferException {
8097 return PARSER.parseFrom(data);
8099 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8101 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8102 throws com.google.protobuf.InvalidProtocolBufferException {
8103 return PARSER.parseFrom(data, extensionRegistry);
8105 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
8106 throws java.io.IOException {
8107 return PARSER.parseFrom(input);
8109 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8110 java.io.InputStream input,
8111 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8112 throws java.io.IOException {
8113 return PARSER.parseFrom(input, extensionRegistry);
8115 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
8116 throws java.io.IOException {
8117 return PARSER.parseDelimitedFrom(input);
8119 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
8120 java.io.InputStream input,
8121 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8122 throws java.io.IOException {
8123 return PARSER.parseDelimitedFrom(input, extensionRegistry);
8125 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8126 com.google.protobuf.CodedInputStream input)
8127 throws java.io.IOException {
8128 return PARSER.parseFrom(input);
8130 public static com.openxc.BinaryMessages.DynamicField parseFrom(
8131 com.google.protobuf.CodedInputStream input,
8132 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8133 throws java.io.IOException {
8134 return PARSER.parseFrom(input, extensionRegistry);
8137 public static Builder newBuilder() { return Builder.create(); }
8138 public Builder newBuilderForType() { return newBuilder(); }
8139 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
8140 return newBuilder().mergeFrom(prototype);
8142 public Builder toBuilder() { return newBuilder(this); }
8145 protected Builder newBuilderForType(
8146 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8147 Builder builder = new Builder(parent);
8151 * Protobuf type {@code openxc.DynamicField}
8153 public static final class Builder extends
8154 com.google.protobuf.GeneratedMessage.Builder<Builder>
8155 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
8156 public static final com.google.protobuf.Descriptors.Descriptor
8158 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
8161 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8162 internalGetFieldAccessorTable() {
8163 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
8164 .ensureFieldAccessorsInitialized(
8165 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
8168 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
8170 maybeForceBuilderInitialization();
8174 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8176 maybeForceBuilderInitialization();
8178 private void maybeForceBuilderInitialization() {
8179 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8182 private static Builder create() {
8183 return new Builder();
8186 public Builder clear() {
8188 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
8189 bitField0_ = (bitField0_ & ~0x00000001);
8191 bitField0_ = (bitField0_ & ~0x00000002);
8193 bitField0_ = (bitField0_ & ~0x00000004);
8194 booleanValue_ = false;
8195 bitField0_ = (bitField0_ & ~0x00000008);
8199 public Builder clone() {
8200 return create().mergeFrom(buildPartial());
8203 public com.google.protobuf.Descriptors.Descriptor
8204 getDescriptorForType() {
8205 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
8208 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
8209 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
8212 public com.openxc.BinaryMessages.DynamicField build() {
8213 com.openxc.BinaryMessages.DynamicField result = buildPartial();
8214 if (!result.isInitialized()) {
8215 throw newUninitializedMessageException(result);
8220 public com.openxc.BinaryMessages.DynamicField buildPartial() {
8221 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
8222 int from_bitField0_ = bitField0_;
8223 int to_bitField0_ = 0;
8224 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8225 to_bitField0_ |= 0x00000001;
8227 result.type_ = type_;
8228 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8229 to_bitField0_ |= 0x00000002;
8231 result.stringValue_ = stringValue_;
8232 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8233 to_bitField0_ |= 0x00000004;
8235 result.numericValue_ = numericValue_;
8236 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
8237 to_bitField0_ |= 0x00000008;
8239 result.booleanValue_ = booleanValue_;
8240 result.bitField0_ = to_bitField0_;
8245 public Builder mergeFrom(com.google.protobuf.Message other) {
8246 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
8247 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
8249 super.mergeFrom(other);
8254 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
8255 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
8256 if (other.hasType()) {
8257 setType(other.getType());
8259 if (other.hasStringValue()) {
8260 bitField0_ |= 0x00000002;
8261 stringValue_ = other.stringValue_;
8264 if (other.hasNumericValue()) {
8265 setNumericValue(other.getNumericValue());
8267 if (other.hasBooleanValue()) {
8268 setBooleanValue(other.getBooleanValue());
8270 this.mergeUnknownFields(other.getUnknownFields());
8274 public final boolean isInitialized() {
8278 public Builder mergeFrom(
8279 com.google.protobuf.CodedInputStream input,
8280 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8281 throws java.io.IOException {
8282 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
8284 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
8285 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8286 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
8289 if (parsedMessage != null) {
8290 mergeFrom(parsedMessage);
8295 private int bitField0_;
8297 // optional .openxc.DynamicField.Type type = 1;
8298 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
8300 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8302 public boolean hasType() {
8303 return ((bitField0_ & 0x00000001) == 0x00000001);
8306 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8308 public com.openxc.BinaryMessages.DynamicField.Type getType() {
8312 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8314 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
8315 if (value == null) {
8316 throw new NullPointerException();
8318 bitField0_ |= 0x00000001;
8324 * <code>optional .openxc.DynamicField.Type type = 1;</code>
8326 public Builder clearType() {
8327 bitField0_ = (bitField0_ & ~0x00000001);
8328 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
8333 // optional string string_value = 2;
8334 private java.lang.Object stringValue_ = "";
8336 * <code>optional string string_value = 2;</code>
8338 public boolean hasStringValue() {
8339 return ((bitField0_ & 0x00000002) == 0x00000002);
8342 * <code>optional string string_value = 2;</code>
8344 public java.lang.String getStringValue() {
8345 java.lang.Object ref = stringValue_;
8346 if (!(ref instanceof java.lang.String)) {
8347 java.lang.String s = ((com.google.protobuf.ByteString) ref)
8352 return (java.lang.String) ref;
8356 * <code>optional string string_value = 2;</code>
8358 public com.google.protobuf.ByteString
8359 getStringValueBytes() {
8360 java.lang.Object ref = stringValue_;
8361 if (ref instanceof String) {
8362 com.google.protobuf.ByteString b =
8363 com.google.protobuf.ByteString.copyFromUtf8(
8364 (java.lang.String) ref);
8368 return (com.google.protobuf.ByteString) ref;
8372 * <code>optional string string_value = 2;</code>
8374 public Builder setStringValue(
8375 java.lang.String value) {
8376 if (value == null) {
8377 throw new NullPointerException();
8379 bitField0_ |= 0x00000002;
8380 stringValue_ = value;
8385 * <code>optional string string_value = 2;</code>
8387 public Builder clearStringValue() {
8388 bitField0_ = (bitField0_ & ~0x00000002);
8389 stringValue_ = getDefaultInstance().getStringValue();
8394 * <code>optional string string_value = 2;</code>
8396 public Builder setStringValueBytes(
8397 com.google.protobuf.ByteString value) {
8398 if (value == null) {
8399 throw new NullPointerException();
8401 bitField0_ |= 0x00000002;
8402 stringValue_ = value;
8407 // optional double numeric_value = 3;
8408 private double numericValue_ ;
8410 * <code>optional double numeric_value = 3;</code>
8412 public boolean hasNumericValue() {
8413 return ((bitField0_ & 0x00000004) == 0x00000004);
8416 * <code>optional double numeric_value = 3;</code>
8418 public double getNumericValue() {
8419 return numericValue_;
8422 * <code>optional double numeric_value = 3;</code>
8424 public Builder setNumericValue(double value) {
8425 bitField0_ |= 0x00000004;
8426 numericValue_ = value;
8431 * <code>optional double numeric_value = 3;</code>
8433 public Builder clearNumericValue() {
8434 bitField0_ = (bitField0_ & ~0x00000004);
8440 // optional bool boolean_value = 4;
8441 private boolean booleanValue_ ;
8443 * <code>optional bool boolean_value = 4;</code>
8445 public boolean hasBooleanValue() {
8446 return ((bitField0_ & 0x00000008) == 0x00000008);
8449 * <code>optional bool boolean_value = 4;</code>
8451 public boolean getBooleanValue() {
8452 return booleanValue_;
8455 * <code>optional bool boolean_value = 4;</code>
8457 public Builder setBooleanValue(boolean value) {
8458 bitField0_ |= 0x00000008;
8459 booleanValue_ = value;
8464 * <code>optional bool boolean_value = 4;</code>
8466 public Builder clearBooleanValue() {
8467 bitField0_ = (bitField0_ & ~0x00000008);
8468 booleanValue_ = false;
8473 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
8477 defaultInstance = new DynamicField(true);
8478 defaultInstance.initFields();
8481 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
8484 public interface TranslatedMessageOrBuilder
8485 extends com.google.protobuf.MessageOrBuilder {
8487 // optional .openxc.TranslatedMessage.Type type = 1;
8489 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
8493 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
8495 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
8497 // optional string name = 2;
8499 * <code>optional string name = 2;</code>
8503 * <code>optional string name = 2;</code>
8505 java.lang.String getName();
8507 * <code>optional string name = 2;</code>
8509 com.google.protobuf.ByteString
8512 // optional .openxc.DynamicField value = 3;
8514 * <code>optional .openxc.DynamicField value = 3;</code>
8518 * <code>optional .openxc.DynamicField value = 3;</code>
8520 com.openxc.BinaryMessages.DynamicField getValue();
8522 * <code>optional .openxc.DynamicField value = 3;</code>
8524 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
8526 // optional .openxc.DynamicField event = 4;
8528 * <code>optional .openxc.DynamicField event = 4;</code>
8532 * <code>optional .openxc.DynamicField event = 4;</code>
8534 com.openxc.BinaryMessages.DynamicField getEvent();
8536 * <code>optional .openxc.DynamicField event = 4;</code>
8538 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
8541 * Protobuf type {@code openxc.TranslatedMessage}
8543 public static final class TranslatedMessage extends
8544 com.google.protobuf.GeneratedMessage
8545 implements TranslatedMessageOrBuilder {
8546 // Use TranslatedMessage.newBuilder() to construct.
8547 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
8549 this.unknownFields = builder.getUnknownFields();
8551 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
8553 private static final TranslatedMessage defaultInstance;
8554 public static TranslatedMessage getDefaultInstance() {
8555 return defaultInstance;
8558 public TranslatedMessage getDefaultInstanceForType() {
8559 return defaultInstance;
8562 private final com.google.protobuf.UnknownFieldSet unknownFields;
8564 public final com.google.protobuf.UnknownFieldSet
8565 getUnknownFields() {
8566 return this.unknownFields;
8568 private TranslatedMessage(
8569 com.google.protobuf.CodedInputStream input,
8570 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8571 throws com.google.protobuf.InvalidProtocolBufferException {
8573 int mutable_bitField0_ = 0;
8574 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8575 com.google.protobuf.UnknownFieldSet.newBuilder();
8577 boolean done = false;
8579 int tag = input.readTag();
8585 if (!parseUnknownField(input, unknownFields,
8586 extensionRegistry, tag)) {
8592 int rawValue = input.readEnum();
8593 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
8594 if (value == null) {
8595 unknownFields.mergeVarintField(1, rawValue);
8597 bitField0_ |= 0x00000001;
8603 bitField0_ |= 0x00000002;
8604 name_ = input.readBytes();
8608 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
8609 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8610 subBuilder = value_.toBuilder();
8612 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
8613 if (subBuilder != null) {
8614 subBuilder.mergeFrom(value_);
8615 value_ = subBuilder.buildPartial();
8617 bitField0_ |= 0x00000004;
8621 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
8622 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8623 subBuilder = event_.toBuilder();
8625 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
8626 if (subBuilder != null) {
8627 subBuilder.mergeFrom(event_);
8628 event_ = subBuilder.buildPartial();
8630 bitField0_ |= 0x00000008;
8635 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8636 throw e.setUnfinishedMessage(this);
8637 } catch (java.io.IOException e) {
8638 throw new com.google.protobuf.InvalidProtocolBufferException(
8639 e.getMessage()).setUnfinishedMessage(this);
8641 this.unknownFields = unknownFields.build();
8642 makeExtensionsImmutable();
8645 public static final com.google.protobuf.Descriptors.Descriptor
8647 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
8650 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8651 internalGetFieldAccessorTable() {
8652 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
8653 .ensureFieldAccessorsInitialized(
8654 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
8657 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
8658 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
8659 public TranslatedMessage parsePartialFrom(
8660 com.google.protobuf.CodedInputStream input,
8661 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8662 throws com.google.protobuf.InvalidProtocolBufferException {
8663 return new TranslatedMessage(input, extensionRegistry);
8668 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
8673 * Protobuf enum {@code openxc.TranslatedMessage.Type}
8676 implements com.google.protobuf.ProtocolMessageEnum {
8678 * <code>STRING = 1;</code>
8682 * <code>NUM = 2;</code>
8686 * <code>BOOL = 3;</code>
8690 * <code>EVENTED_STRING = 4;</code>
8692 EVENTED_STRING(3, 4),
8694 * <code>EVENTED_NUM = 5;</code>
8698 * <code>EVENTED_BOOL = 6;</code>
8704 * <code>STRING = 1;</code>
8706 public static final int STRING_VALUE = 1;
8708 * <code>NUM = 2;</code>
8710 public static final int NUM_VALUE = 2;
8712 * <code>BOOL = 3;</code>
8714 public static final int BOOL_VALUE = 3;
8716 * <code>EVENTED_STRING = 4;</code>
8718 public static final int EVENTED_STRING_VALUE = 4;
8720 * <code>EVENTED_NUM = 5;</code>
8722 public static final int EVENTED_NUM_VALUE = 5;
8724 * <code>EVENTED_BOOL = 6;</code>
8726 public static final int EVENTED_BOOL_VALUE = 6;
8729 public final int getNumber() { return value; }
8731 public static Type valueOf(int value) {
8733 case 1: return STRING;
8735 case 3: return BOOL;
8736 case 4: return EVENTED_STRING;
8737 case 5: return EVENTED_NUM;
8738 case 6: return EVENTED_BOOL;
8739 default: return null;
8743 public static com.google.protobuf.Internal.EnumLiteMap<Type>
8744 internalGetValueMap() {
8745 return internalValueMap;
8747 private static com.google.protobuf.Internal.EnumLiteMap<Type>
8749 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
8750 public Type findValueByNumber(int number) {
8751 return Type.valueOf(number);
8755 public final com.google.protobuf.Descriptors.EnumValueDescriptor
8756 getValueDescriptor() {
8757 return getDescriptor().getValues().get(index);
8759 public final com.google.protobuf.Descriptors.EnumDescriptor
8760 getDescriptorForType() {
8761 return getDescriptor();
8763 public static final com.google.protobuf.Descriptors.EnumDescriptor
8765 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
8768 private static final Type[] VALUES = values();
8770 public static Type valueOf(
8771 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
8772 if (desc.getType() != getDescriptor()) {
8773 throw new java.lang.IllegalArgumentException(
8774 "EnumValueDescriptor is not for this type.");
8776 return VALUES[desc.getIndex()];
8779 private final int index;
8780 private final int value;
8782 private Type(int index, int value) {
8787 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
8790 private int bitField0_;
8791 // optional .openxc.TranslatedMessage.Type type = 1;
8792 public static final int TYPE_FIELD_NUMBER = 1;
8793 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
8795 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
8797 public boolean hasType() {
8798 return ((bitField0_ & 0x00000001) == 0x00000001);
8801 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
8803 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
8807 // optional string name = 2;
8808 public static final int NAME_FIELD_NUMBER = 2;
8809 private java.lang.Object name_;
8811 * <code>optional string name = 2;</code>
8813 public boolean hasName() {
8814 return ((bitField0_ & 0x00000002) == 0x00000002);
8817 * <code>optional string name = 2;</code>
8819 public java.lang.String getName() {
8820 java.lang.Object ref = name_;
8821 if (ref instanceof java.lang.String) {
8822 return (java.lang.String) ref;
8824 com.google.protobuf.ByteString bs =
8825 (com.google.protobuf.ByteString) ref;
8826 java.lang.String s = bs.toStringUtf8();
8827 if (bs.isValidUtf8()) {
8834 * <code>optional string name = 2;</code>
8836 public com.google.protobuf.ByteString
8838 java.lang.Object ref = name_;
8839 if (ref instanceof java.lang.String) {
8840 com.google.protobuf.ByteString b =
8841 com.google.protobuf.ByteString.copyFromUtf8(
8842 (java.lang.String) ref);
8846 return (com.google.protobuf.ByteString) ref;
8850 // optional .openxc.DynamicField value = 3;
8851 public static final int VALUE_FIELD_NUMBER = 3;
8852 private com.openxc.BinaryMessages.DynamicField value_;
8854 * <code>optional .openxc.DynamicField value = 3;</code>
8856 public boolean hasValue() {
8857 return ((bitField0_ & 0x00000004) == 0x00000004);
8860 * <code>optional .openxc.DynamicField value = 3;</code>
8862 public com.openxc.BinaryMessages.DynamicField getValue() {
8866 * <code>optional .openxc.DynamicField value = 3;</code>
8868 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
8872 // optional .openxc.DynamicField event = 4;
8873 public static final int EVENT_FIELD_NUMBER = 4;
8874 private com.openxc.BinaryMessages.DynamicField event_;
8876 * <code>optional .openxc.DynamicField event = 4;</code>
8878 public boolean hasEvent() {
8879 return ((bitField0_ & 0x00000008) == 0x00000008);
8882 * <code>optional .openxc.DynamicField event = 4;</code>
8884 public com.openxc.BinaryMessages.DynamicField getEvent() {
8888 * <code>optional .openxc.DynamicField event = 4;</code>
8890 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
8894 private void initFields() {
8895 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
8897 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
8898 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
8900 private byte memoizedIsInitialized = -1;
8901 public final boolean isInitialized() {
8902 byte isInitialized = memoizedIsInitialized;
8903 if (isInitialized != -1) return isInitialized == 1;
8905 memoizedIsInitialized = 1;
8909 public void writeTo(com.google.protobuf.CodedOutputStream output)
8910 throws java.io.IOException {
8911 getSerializedSize();
8912 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8913 output.writeEnum(1, type_.getNumber());
8915 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8916 output.writeBytes(2, getNameBytes());
8918 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8919 output.writeMessage(3, value_);
8921 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8922 output.writeMessage(4, event_);
8924 getUnknownFields().writeTo(output);
8927 private int memoizedSerializedSize = -1;
8928 public int getSerializedSize() {
8929 int size = memoizedSerializedSize;
8930 if (size != -1) return size;
8933 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8934 size += com.google.protobuf.CodedOutputStream
8935 .computeEnumSize(1, type_.getNumber());
8937 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8938 size += com.google.protobuf.CodedOutputStream
8939 .computeBytesSize(2, getNameBytes());
8941 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8942 size += com.google.protobuf.CodedOutputStream
8943 .computeMessageSize(3, value_);
8945 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8946 size += com.google.protobuf.CodedOutputStream
8947 .computeMessageSize(4, event_);
8949 size += getUnknownFields().getSerializedSize();
8950 memoizedSerializedSize = size;
8954 private static final long serialVersionUID = 0L;
8956 protected java.lang.Object writeReplace()
8957 throws java.io.ObjectStreamException {
8958 return super.writeReplace();
8961 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
8962 com.google.protobuf.ByteString data)
8963 throws com.google.protobuf.InvalidProtocolBufferException {
8964 return PARSER.parseFrom(data);
8966 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
8967 com.google.protobuf.ByteString data,
8968 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8969 throws com.google.protobuf.InvalidProtocolBufferException {
8970 return PARSER.parseFrom(data, extensionRegistry);
8972 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
8973 throws com.google.protobuf.InvalidProtocolBufferException {
8974 return PARSER.parseFrom(data);
8976 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
8978 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8979 throws com.google.protobuf.InvalidProtocolBufferException {
8980 return PARSER.parseFrom(data, extensionRegistry);
8982 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
8983 throws java.io.IOException {
8984 return PARSER.parseFrom(input);
8986 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
8987 java.io.InputStream input,
8988 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8989 throws java.io.IOException {
8990 return PARSER.parseFrom(input, extensionRegistry);
8992 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
8993 throws java.io.IOException {
8994 return PARSER.parseDelimitedFrom(input);
8996 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
8997 java.io.InputStream input,
8998 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8999 throws java.io.IOException {
9000 return PARSER.parseDelimitedFrom(input, extensionRegistry);
9002 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
9003 com.google.protobuf.CodedInputStream input)
9004 throws java.io.IOException {
9005 return PARSER.parseFrom(input);
9007 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
9008 com.google.protobuf.CodedInputStream input,
9009 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9010 throws java.io.IOException {
9011 return PARSER.parseFrom(input, extensionRegistry);
9014 public static Builder newBuilder() { return Builder.create(); }
9015 public Builder newBuilderForType() { return newBuilder(); }
9016 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
9017 return newBuilder().mergeFrom(prototype);
9019 public Builder toBuilder() { return newBuilder(this); }
9022 protected Builder newBuilderForType(
9023 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9024 Builder builder = new Builder(parent);
9028 * Protobuf type {@code openxc.TranslatedMessage}
9030 public static final class Builder extends
9031 com.google.protobuf.GeneratedMessage.Builder<Builder>
9032 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
9033 public static final com.google.protobuf.Descriptors.Descriptor
9035 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
9038 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9039 internalGetFieldAccessorTable() {
9040 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
9041 .ensureFieldAccessorsInitialized(
9042 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
9045 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
9047 maybeForceBuilderInitialization();
9051 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9053 maybeForceBuilderInitialization();
9055 private void maybeForceBuilderInitialization() {
9056 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9057 getValueFieldBuilder();
9058 getEventFieldBuilder();
9061 private static Builder create() {
9062 return new Builder();
9065 public Builder clear() {
9067 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
9068 bitField0_ = (bitField0_ & ~0x00000001);
9070 bitField0_ = (bitField0_ & ~0x00000002);
9071 if (valueBuilder_ == null) {
9072 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9074 valueBuilder_.clear();
9076 bitField0_ = (bitField0_ & ~0x00000004);
9077 if (eventBuilder_ == null) {
9078 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9080 eventBuilder_.clear();
9082 bitField0_ = (bitField0_ & ~0x00000008);
9086 public Builder clone() {
9087 return create().mergeFrom(buildPartial());
9090 public com.google.protobuf.Descriptors.Descriptor
9091 getDescriptorForType() {
9092 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
9095 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
9096 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
9099 public com.openxc.BinaryMessages.TranslatedMessage build() {
9100 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
9101 if (!result.isInitialized()) {
9102 throw newUninitializedMessageException(result);
9107 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
9108 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
9109 int from_bitField0_ = bitField0_;
9110 int to_bitField0_ = 0;
9111 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9112 to_bitField0_ |= 0x00000001;
9114 result.type_ = type_;
9115 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9116 to_bitField0_ |= 0x00000002;
9118 result.name_ = name_;
9119 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9120 to_bitField0_ |= 0x00000004;
9122 if (valueBuilder_ == null) {
9123 result.value_ = value_;
9125 result.value_ = valueBuilder_.build();
9127 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9128 to_bitField0_ |= 0x00000008;
9130 if (eventBuilder_ == null) {
9131 result.event_ = event_;
9133 result.event_ = eventBuilder_.build();
9135 result.bitField0_ = to_bitField0_;
9140 public Builder mergeFrom(com.google.protobuf.Message other) {
9141 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
9142 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
9144 super.mergeFrom(other);
9149 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
9150 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
9151 if (other.hasType()) {
9152 setType(other.getType());
9154 if (other.hasName()) {
9155 bitField0_ |= 0x00000002;
9156 name_ = other.name_;
9159 if (other.hasValue()) {
9160 mergeValue(other.getValue());
9162 if (other.hasEvent()) {
9163 mergeEvent(other.getEvent());
9165 this.mergeUnknownFields(other.getUnknownFields());
9169 public final boolean isInitialized() {
9173 public Builder mergeFrom(
9174 com.google.protobuf.CodedInputStream input,
9175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9176 throws java.io.IOException {
9177 com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null;
9179 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
9180 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9181 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
9184 if (parsedMessage != null) {
9185 mergeFrom(parsedMessage);
9190 private int bitField0_;
9192 // optional .openxc.TranslatedMessage.Type type = 1;
9193 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
9195 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9197 public boolean hasType() {
9198 return ((bitField0_ & 0x00000001) == 0x00000001);
9201 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9203 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
9207 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9209 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
9210 if (value == null) {
9211 throw new NullPointerException();
9213 bitField0_ |= 0x00000001;
9219 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
9221 public Builder clearType() {
9222 bitField0_ = (bitField0_ & ~0x00000001);
9223 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
9228 // optional string name = 2;
9229 private java.lang.Object name_ = "";
9231 * <code>optional string name = 2;</code>
9233 public boolean hasName() {
9234 return ((bitField0_ & 0x00000002) == 0x00000002);
9237 * <code>optional string name = 2;</code>
9239 public java.lang.String getName() {
9240 java.lang.Object ref = name_;
9241 if (!(ref instanceof java.lang.String)) {
9242 java.lang.String s = ((com.google.protobuf.ByteString) ref)
9247 return (java.lang.String) ref;
9251 * <code>optional string name = 2;</code>
9253 public com.google.protobuf.ByteString
9255 java.lang.Object ref = name_;
9256 if (ref instanceof String) {
9257 com.google.protobuf.ByteString b =
9258 com.google.protobuf.ByteString.copyFromUtf8(
9259 (java.lang.String) ref);
9263 return (com.google.protobuf.ByteString) ref;
9267 * <code>optional string name = 2;</code>
9269 public Builder setName(
9270 java.lang.String value) {
9271 if (value == null) {
9272 throw new NullPointerException();
9274 bitField0_ |= 0x00000002;
9280 * <code>optional string name = 2;</code>
9282 public Builder clearName() {
9283 bitField0_ = (bitField0_ & ~0x00000002);
9284 name_ = getDefaultInstance().getName();
9289 * <code>optional string name = 2;</code>
9291 public Builder setNameBytes(
9292 com.google.protobuf.ByteString value) {
9293 if (value == null) {
9294 throw new NullPointerException();
9296 bitField0_ |= 0x00000002;
9302 // optional .openxc.DynamicField value = 3;
9303 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9304 private com.google.protobuf.SingleFieldBuilder<
9305 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
9307 * <code>optional .openxc.DynamicField value = 3;</code>
9309 public boolean hasValue() {
9310 return ((bitField0_ & 0x00000004) == 0x00000004);
9313 * <code>optional .openxc.DynamicField value = 3;</code>
9315 public com.openxc.BinaryMessages.DynamicField getValue() {
9316 if (valueBuilder_ == null) {
9319 return valueBuilder_.getMessage();
9323 * <code>optional .openxc.DynamicField value = 3;</code>
9325 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
9326 if (valueBuilder_ == null) {
9327 if (value == null) {
9328 throw new NullPointerException();
9333 valueBuilder_.setMessage(value);
9335 bitField0_ |= 0x00000004;
9339 * <code>optional .openxc.DynamicField value = 3;</code>
9341 public Builder setValue(
9342 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
9343 if (valueBuilder_ == null) {
9344 value_ = builderForValue.build();
9347 valueBuilder_.setMessage(builderForValue.build());
9349 bitField0_ |= 0x00000004;
9353 * <code>optional .openxc.DynamicField value = 3;</code>
9355 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
9356 if (valueBuilder_ == null) {
9357 if (((bitField0_ & 0x00000004) == 0x00000004) &&
9358 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
9360 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
9366 valueBuilder_.mergeFrom(value);
9368 bitField0_ |= 0x00000004;
9372 * <code>optional .openxc.DynamicField value = 3;</code>
9374 public Builder clearValue() {
9375 if (valueBuilder_ == null) {
9376 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9379 valueBuilder_.clear();
9381 bitField0_ = (bitField0_ & ~0x00000004);
9385 * <code>optional .openxc.DynamicField value = 3;</code>
9387 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
9388 bitField0_ |= 0x00000004;
9390 return getValueFieldBuilder().getBuilder();
9393 * <code>optional .openxc.DynamicField value = 3;</code>
9395 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
9396 if (valueBuilder_ != null) {
9397 return valueBuilder_.getMessageOrBuilder();
9403 * <code>optional .openxc.DynamicField value = 3;</code>
9405 private com.google.protobuf.SingleFieldBuilder<
9406 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
9407 getValueFieldBuilder() {
9408 if (valueBuilder_ == null) {
9409 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
9410 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
9412 getParentForChildren(),
9416 return valueBuilder_;
9419 // optional .openxc.DynamicField event = 4;
9420 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9421 private com.google.protobuf.SingleFieldBuilder<
9422 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
9424 * <code>optional .openxc.DynamicField event = 4;</code>
9426 public boolean hasEvent() {
9427 return ((bitField0_ & 0x00000008) == 0x00000008);
9430 * <code>optional .openxc.DynamicField event = 4;</code>
9432 public com.openxc.BinaryMessages.DynamicField getEvent() {
9433 if (eventBuilder_ == null) {
9436 return eventBuilder_.getMessage();
9440 * <code>optional .openxc.DynamicField event = 4;</code>
9442 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
9443 if (eventBuilder_ == null) {
9444 if (value == null) {
9445 throw new NullPointerException();
9450 eventBuilder_.setMessage(value);
9452 bitField0_ |= 0x00000008;
9456 * <code>optional .openxc.DynamicField event = 4;</code>
9458 public Builder setEvent(
9459 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
9460 if (eventBuilder_ == null) {
9461 event_ = builderForValue.build();
9464 eventBuilder_.setMessage(builderForValue.build());
9466 bitField0_ |= 0x00000008;
9470 * <code>optional .openxc.DynamicField event = 4;</code>
9472 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
9473 if (eventBuilder_ == null) {
9474 if (((bitField0_ & 0x00000008) == 0x00000008) &&
9475 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
9477 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
9483 eventBuilder_.mergeFrom(value);
9485 bitField0_ |= 0x00000008;
9489 * <code>optional .openxc.DynamicField event = 4;</code>
9491 public Builder clearEvent() {
9492 if (eventBuilder_ == null) {
9493 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
9496 eventBuilder_.clear();
9498 bitField0_ = (bitField0_ & ~0x00000008);
9502 * <code>optional .openxc.DynamicField event = 4;</code>
9504 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
9505 bitField0_ |= 0x00000008;
9507 return getEventFieldBuilder().getBuilder();
9510 * <code>optional .openxc.DynamicField event = 4;</code>
9512 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
9513 if (eventBuilder_ != null) {
9514 return eventBuilder_.getMessageOrBuilder();
9520 * <code>optional .openxc.DynamicField event = 4;</code>
9522 private com.google.protobuf.SingleFieldBuilder<
9523 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
9524 getEventFieldBuilder() {
9525 if (eventBuilder_ == null) {
9526 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
9527 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
9529 getParentForChildren(),
9533 return eventBuilder_;
9536 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
9540 defaultInstance = new TranslatedMessage(true);
9541 defaultInstance.initFields();
9544 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
9547 private static com.google.protobuf.Descriptors.Descriptor
9548 internal_static_openxc_VehicleMessage_descriptor;
9550 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9551 internal_static_openxc_VehicleMessage_fieldAccessorTable;
9552 private static com.google.protobuf.Descriptors.Descriptor
9553 internal_static_openxc_RawMessage_descriptor;
9555 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9556 internal_static_openxc_RawMessage_fieldAccessorTable;
9557 private static com.google.protobuf.Descriptors.Descriptor
9558 internal_static_openxc_ControlCommand_descriptor;
9560 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9561 internal_static_openxc_ControlCommand_fieldAccessorTable;
9562 private static com.google.protobuf.Descriptors.Descriptor
9563 internal_static_openxc_DiagnosticControlCommand_descriptor;
9565 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9566 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
9567 private static com.google.protobuf.Descriptors.Descriptor
9568 internal_static_openxc_PassthroughModeControlCommand_descriptor;
9570 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9571 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
9572 private static com.google.protobuf.Descriptors.Descriptor
9573 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
9575 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9576 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
9577 private static com.google.protobuf.Descriptors.Descriptor
9578 internal_static_openxc_CommandResponse_descriptor;
9580 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9581 internal_static_openxc_CommandResponse_fieldAccessorTable;
9582 private static com.google.protobuf.Descriptors.Descriptor
9583 internal_static_openxc_DiagnosticRequest_descriptor;
9585 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9586 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
9587 private static com.google.protobuf.Descriptors.Descriptor
9588 internal_static_openxc_DiagnosticResponse_descriptor;
9590 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9591 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
9592 private static com.google.protobuf.Descriptors.Descriptor
9593 internal_static_openxc_DynamicField_descriptor;
9595 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9596 internal_static_openxc_DynamicField_fieldAccessorTable;
9597 private static com.google.protobuf.Descriptors.Descriptor
9598 internal_static_openxc_TranslatedMessage_descriptor;
9600 com.google.protobuf.GeneratedMessage.FieldAccessorTable
9601 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
9603 public static com.google.protobuf.Descriptors.FileDescriptor
9607 private static com.google.protobuf.Descriptors.FileDescriptor
9610 java.lang.String[] descriptorData = {
9611 "\n\014openxc.proto\022\006openxc\"\224\003\n\016VehicleMessag" +
9612 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
9613 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
9614 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
9615 "xc.TranslatedMessage\0227\n\023diagnostic_respo" +
9616 "nse\030\004 \001(\0132\032.openxc.DiagnosticResponse\022/\n" +
9617 "\017control_command\030\005 \001(\0132\026.openxc.ControlC" +
9618 "ommand\0221\n\020command_response\030\006 \001(\0132\027.openx" +
9619 "c.CommandResponse\"Z\n\004Type\022\007\n\003RAW\020\001\022\016\n\nTR" +
9620 "ANSLATED\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_CO",
9621 "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\";\n\nRawMess" +
9622 "age\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004" +
9623 "data\030\003 \001(\014\"\366\002\n\016ControlCommand\022)\n\004type\030\001 " +
9624 "\001(\0162\033.openxc.ControlCommand.Type\022<\n\022diag" +
9625 "nostic_request\030\002 \001(\0132 .openxc.Diagnostic" +
9626 "ControlCommand\022G\n\030passthrough_mode_reque" +
9627 "st\030\003 \001(\0132%.openxc.PassthroughModeControl" +
9628 "Command\022O\n acceptance_filter_bypass_comm" +
9629 "and\030\004 \001(\0132%.openxc.AcceptanceFilterBypas" +
9630 "sCommand\"a\n\004Type\022\013\n\007VERSION\020\001\022\r\n\tDEVICE_",
9631 "ID\020\002\022\016\n\nDIAGNOSTIC\020\003\022\017\n\013PASSTHROUGH\020\004\022\034\n" +
9632 "\030ACCEPTANCE_FILTER_BYPASS\020\005\"\236\001\n\030Diagnost" +
9633 "icControlCommand\022*\n\007request\030\001 \001(\0132\031.open" +
9634 "xc.DiagnosticRequest\0227\n\006action\030\002 \001(\0162\'.o" +
9635 "penxc.DiagnosticControlCommand.Action\"\035\n" +
9636 "\006Action\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035Passthro" +
9637 "ughModeControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007en" +
9638 "abled\030\002 \001(\010\"<\n\035AcceptanceFilterBypassCom" +
9639 "mand\022\013\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"]\n\017Com" +
9640 "mandResponse\022)\n\004type\030\001 \001(\0162\033.openxc.Cont",
9641 "rolCommand.Type\022\017\n\007message\030\002 \001(\t\022\016\n\006stat" +
9642 "us\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\022\013\n\003bus\030\001 " +
9643 "\001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n" +
9644 "\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022multiple_" +
9645 "responses\030\006 \001(\010\022\021\n\tfrequency\030\007 \001(\001\022\014\n\004na" +
9646 "me\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162%.openxc." +
9647 "DiagnosticRequest.DecodedType\"!\n\013Decoded" +
9648 "Type\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022DiagnosticR" +
9649 "esponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r" +
9650 "\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007success\030\005",
9651 " \001(\010\022\036\n\026negative_response_code\030\006 \001(\r\022\017\n\007" +
9652 "payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001\n\014Dynamic" +
9653 "Field\022\'\n\004type\030\001 \001(\0162\031.openxc.DynamicFiel" +
9654 "d.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n\rnumeric_" +
9655 "value\030\003 \001(\001\022\025\n\rboolean_value\030\004 \001(\010\"%\n\004Ty" +
9656 "pe\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\"\367\001\n\021Tr" +
9657 "anslatedMessage\022,\n\004type\030\001 \001(\0162\036.openxc.T" +
9658 "ranslatedMessage.Type\022\014\n\004name\030\002 \001(\t\022#\n\005v" +
9659 "alue\030\003 \001(\0132\024.openxc.DynamicField\022#\n\005even" +
9660 "t\030\004 \001(\0132\024.openxc.DynamicField\"\\\n\004Type\022\n\n",
9661 "\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\022\022\n\016EVENTED_" +
9662 "STRING\020\004\022\017\n\013EVENTED_NUM\020\005\022\020\n\014EVENTED_BOO" +
9663 "L\020\006B\034\n\ncom.openxcB\016BinaryMessages"
9665 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
9666 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
9667 public com.google.protobuf.ExtensionRegistry assignDescriptors(
9668 com.google.protobuf.Descriptors.FileDescriptor root) {
9670 internal_static_openxc_VehicleMessage_descriptor =
9671 getDescriptor().getMessageTypes().get(0);
9672 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
9673 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9674 internal_static_openxc_VehicleMessage_descriptor,
9675 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
9676 internal_static_openxc_RawMessage_descriptor =
9677 getDescriptor().getMessageTypes().get(1);
9678 internal_static_openxc_RawMessage_fieldAccessorTable = new
9679 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9680 internal_static_openxc_RawMessage_descriptor,
9681 new java.lang.String[] { "Bus", "MessageId", "Data", });
9682 internal_static_openxc_ControlCommand_descriptor =
9683 getDescriptor().getMessageTypes().get(2);
9684 internal_static_openxc_ControlCommand_fieldAccessorTable = new
9685 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9686 internal_static_openxc_ControlCommand_descriptor,
9687 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", });
9688 internal_static_openxc_DiagnosticControlCommand_descriptor =
9689 getDescriptor().getMessageTypes().get(3);
9690 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
9691 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9692 internal_static_openxc_DiagnosticControlCommand_descriptor,
9693 new java.lang.String[] { "Request", "Action", });
9694 internal_static_openxc_PassthroughModeControlCommand_descriptor =
9695 getDescriptor().getMessageTypes().get(4);
9696 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
9697 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9698 internal_static_openxc_PassthroughModeControlCommand_descriptor,
9699 new java.lang.String[] { "Bus", "Enabled", });
9700 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
9701 getDescriptor().getMessageTypes().get(5);
9702 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
9703 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9704 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
9705 new java.lang.String[] { "Bus", "Bypass", });
9706 internal_static_openxc_CommandResponse_descriptor =
9707 getDescriptor().getMessageTypes().get(6);
9708 internal_static_openxc_CommandResponse_fieldAccessorTable = new
9709 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9710 internal_static_openxc_CommandResponse_descriptor,
9711 new java.lang.String[] { "Type", "Message", "Status", });
9712 internal_static_openxc_DiagnosticRequest_descriptor =
9713 getDescriptor().getMessageTypes().get(7);
9714 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
9715 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9716 internal_static_openxc_DiagnosticRequest_descriptor,
9717 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", });
9718 internal_static_openxc_DiagnosticResponse_descriptor =
9719 getDescriptor().getMessageTypes().get(8);
9720 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
9721 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9722 internal_static_openxc_DiagnosticResponse_descriptor,
9723 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
9724 internal_static_openxc_DynamicField_descriptor =
9725 getDescriptor().getMessageTypes().get(9);
9726 internal_static_openxc_DynamicField_fieldAccessorTable = new
9727 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9728 internal_static_openxc_DynamicField_descriptor,
9729 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
9730 internal_static_openxc_TranslatedMessage_descriptor =
9731 getDescriptor().getMessageTypes().get(10);
9732 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
9733 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9734 internal_static_openxc_TranslatedMessage_descriptor,
9735 new java.lang.String[] { "Type", "Name", "Value", "Event", });
9739 com.google.protobuf.Descriptors.FileDescriptor
9740 .internalBuildGeneratedFileFrom(descriptorData,
9741 new com.google.protobuf.Descriptors.FileDescriptor[] {
9745 // @@protoc_insertion_point(outer_class_scope)