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.DiagnosticRequest diagnostic_request = 2;
2061 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2063 boolean hasDiagnosticRequest();
2065 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2067 com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest();
2069 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2071 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder();
2073 // optional .openxc.ControlCommand.Action action = 3;
2075 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2077 boolean hasAction();
2079 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2081 com.openxc.BinaryMessages.ControlCommand.Action getAction();
2084 * Protobuf type {@code openxc.ControlCommand}
2086 public static final class ControlCommand extends
2087 com.google.protobuf.GeneratedMessage
2088 implements ControlCommandOrBuilder {
2089 // Use ControlCommand.newBuilder() to construct.
2090 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2092 this.unknownFields = builder.getUnknownFields();
2094 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2096 private static final ControlCommand defaultInstance;
2097 public static ControlCommand getDefaultInstance() {
2098 return defaultInstance;
2101 public ControlCommand getDefaultInstanceForType() {
2102 return defaultInstance;
2105 private final com.google.protobuf.UnknownFieldSet unknownFields;
2107 public final com.google.protobuf.UnknownFieldSet
2108 getUnknownFields() {
2109 return this.unknownFields;
2111 private ControlCommand(
2112 com.google.protobuf.CodedInputStream input,
2113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2114 throws com.google.protobuf.InvalidProtocolBufferException {
2116 int mutable_bitField0_ = 0;
2117 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2118 com.google.protobuf.UnknownFieldSet.newBuilder();
2120 boolean done = false;
2122 int tag = input.readTag();
2128 if (!parseUnknownField(input, unknownFields,
2129 extensionRegistry, tag)) {
2135 int rawValue = input.readEnum();
2136 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2137 if (value == null) {
2138 unknownFields.mergeVarintField(1, rawValue);
2140 bitField0_ |= 0x00000001;
2146 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
2147 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2148 subBuilder = diagnosticRequest_.toBuilder();
2150 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
2151 if (subBuilder != null) {
2152 subBuilder.mergeFrom(diagnosticRequest_);
2153 diagnosticRequest_ = subBuilder.buildPartial();
2155 bitField0_ |= 0x00000002;
2159 int rawValue = input.readEnum();
2160 com.openxc.BinaryMessages.ControlCommand.Action value = com.openxc.BinaryMessages.ControlCommand.Action.valueOf(rawValue);
2161 if (value == null) {
2162 unknownFields.mergeVarintField(3, rawValue);
2164 bitField0_ |= 0x00000004;
2171 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2172 throw e.setUnfinishedMessage(this);
2173 } catch (java.io.IOException e) {
2174 throw new com.google.protobuf.InvalidProtocolBufferException(
2175 e.getMessage()).setUnfinishedMessage(this);
2177 this.unknownFields = unknownFields.build();
2178 makeExtensionsImmutable();
2181 public static final com.google.protobuf.Descriptors.Descriptor
2183 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2186 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2187 internalGetFieldAccessorTable() {
2188 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2189 .ensureFieldAccessorsInitialized(
2190 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2193 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2194 new com.google.protobuf.AbstractParser<ControlCommand>() {
2195 public ControlCommand parsePartialFrom(
2196 com.google.protobuf.CodedInputStream input,
2197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2198 throws com.google.protobuf.InvalidProtocolBufferException {
2199 return new ControlCommand(input, extensionRegistry);
2204 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2209 * Protobuf enum {@code openxc.ControlCommand.Type}
2212 implements com.google.protobuf.ProtocolMessageEnum {
2214 * <code>VERSION = 1;</code>
2218 * <code>DEVICE_ID = 2;</code>
2222 * <code>DIAGNOSTIC = 3;</code>
2228 * <code>VERSION = 1;</code>
2230 public static final int VERSION_VALUE = 1;
2232 * <code>DEVICE_ID = 2;</code>
2234 public static final int DEVICE_ID_VALUE = 2;
2236 * <code>DIAGNOSTIC = 3;</code>
2238 public static final int DIAGNOSTIC_VALUE = 3;
2241 public final int getNumber() { return value; }
2243 public static Type valueOf(int value) {
2245 case 1: return VERSION;
2246 case 2: return DEVICE_ID;
2247 case 3: return DIAGNOSTIC;
2248 default: return null;
2252 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2253 internalGetValueMap() {
2254 return internalValueMap;
2256 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2258 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2259 public Type findValueByNumber(int number) {
2260 return Type.valueOf(number);
2264 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2265 getValueDescriptor() {
2266 return getDescriptor().getValues().get(index);
2268 public final com.google.protobuf.Descriptors.EnumDescriptor
2269 getDescriptorForType() {
2270 return getDescriptor();
2272 public static final com.google.protobuf.Descriptors.EnumDescriptor
2274 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2277 private static final Type[] VALUES = values();
2279 public static Type valueOf(
2280 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2281 if (desc.getType() != getDescriptor()) {
2282 throw new java.lang.IllegalArgumentException(
2283 "EnumValueDescriptor is not for this type.");
2285 return VALUES[desc.getIndex()];
2288 private final int index;
2289 private final int value;
2291 private Type(int index, int value) {
2296 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2300 * Protobuf enum {@code openxc.ControlCommand.Action}
2303 implements com.google.protobuf.ProtocolMessageEnum {
2305 * <code>ADD = 1;</code>
2309 * <code>CANCEL = 2;</code>
2315 * <code>ADD = 1;</code>
2317 public static final int ADD_VALUE = 1;
2319 * <code>CANCEL = 2;</code>
2321 public static final int CANCEL_VALUE = 2;
2324 public final int getNumber() { return value; }
2326 public static Action valueOf(int value) {
2329 case 2: return CANCEL;
2330 default: return null;
2334 public static com.google.protobuf.Internal.EnumLiteMap<Action>
2335 internalGetValueMap() {
2336 return internalValueMap;
2338 private static com.google.protobuf.Internal.EnumLiteMap<Action>
2340 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
2341 public Action findValueByNumber(int number) {
2342 return Action.valueOf(number);
2346 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2347 getValueDescriptor() {
2348 return getDescriptor().getValues().get(index);
2350 public final com.google.protobuf.Descriptors.EnumDescriptor
2351 getDescriptorForType() {
2352 return getDescriptor();
2354 public static final com.google.protobuf.Descriptors.EnumDescriptor
2356 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(1);
2359 private static final Action[] VALUES = values();
2361 public static Action valueOf(
2362 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2363 if (desc.getType() != getDescriptor()) {
2364 throw new java.lang.IllegalArgumentException(
2365 "EnumValueDescriptor is not for this type.");
2367 return VALUES[desc.getIndex()];
2370 private final int index;
2371 private final int value;
2373 private Action(int index, int value) {
2378 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Action)
2381 private int bitField0_;
2382 // optional .openxc.ControlCommand.Type type = 1;
2383 public static final int TYPE_FIELD_NUMBER = 1;
2384 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2386 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2388 public boolean hasType() {
2389 return ((bitField0_ & 0x00000001) == 0x00000001);
2392 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2394 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2398 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
2399 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2400 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_;
2402 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2404 public boolean hasDiagnosticRequest() {
2405 return ((bitField0_ & 0x00000002) == 0x00000002);
2408 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2410 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
2411 return diagnosticRequest_;
2414 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2416 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
2417 return diagnosticRequest_;
2420 // optional .openxc.ControlCommand.Action action = 3;
2421 public static final int ACTION_FIELD_NUMBER = 3;
2422 private com.openxc.BinaryMessages.ControlCommand.Action action_;
2424 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2426 public boolean hasAction() {
2427 return ((bitField0_ & 0x00000004) == 0x00000004);
2430 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2432 public com.openxc.BinaryMessages.ControlCommand.Action getAction() {
2436 private void initFields() {
2437 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2438 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2439 action_ = com.openxc.BinaryMessages.ControlCommand.Action.ADD;
2441 private byte memoizedIsInitialized = -1;
2442 public final boolean isInitialized() {
2443 byte isInitialized = memoizedIsInitialized;
2444 if (isInitialized != -1) return isInitialized == 1;
2446 memoizedIsInitialized = 1;
2450 public void writeTo(com.google.protobuf.CodedOutputStream output)
2451 throws java.io.IOException {
2452 getSerializedSize();
2453 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2454 output.writeEnum(1, type_.getNumber());
2456 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2457 output.writeMessage(2, diagnosticRequest_);
2459 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2460 output.writeEnum(3, action_.getNumber());
2462 getUnknownFields().writeTo(output);
2465 private int memoizedSerializedSize = -1;
2466 public int getSerializedSize() {
2467 int size = memoizedSerializedSize;
2468 if (size != -1) return size;
2471 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2472 size += com.google.protobuf.CodedOutputStream
2473 .computeEnumSize(1, type_.getNumber());
2475 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2476 size += com.google.protobuf.CodedOutputStream
2477 .computeMessageSize(2, diagnosticRequest_);
2479 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2480 size += com.google.protobuf.CodedOutputStream
2481 .computeEnumSize(3, action_.getNumber());
2483 size += getUnknownFields().getSerializedSize();
2484 memoizedSerializedSize = size;
2488 private static final long serialVersionUID = 0L;
2490 protected java.lang.Object writeReplace()
2491 throws java.io.ObjectStreamException {
2492 return super.writeReplace();
2495 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2496 com.google.protobuf.ByteString data)
2497 throws com.google.protobuf.InvalidProtocolBufferException {
2498 return PARSER.parseFrom(data);
2500 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2501 com.google.protobuf.ByteString data,
2502 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2503 throws com.google.protobuf.InvalidProtocolBufferException {
2504 return PARSER.parseFrom(data, extensionRegistry);
2506 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2507 throws com.google.protobuf.InvalidProtocolBufferException {
2508 return PARSER.parseFrom(data);
2510 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2512 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2513 throws com.google.protobuf.InvalidProtocolBufferException {
2514 return PARSER.parseFrom(data, extensionRegistry);
2516 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2517 throws java.io.IOException {
2518 return PARSER.parseFrom(input);
2520 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2521 java.io.InputStream input,
2522 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2523 throws java.io.IOException {
2524 return PARSER.parseFrom(input, extensionRegistry);
2526 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2527 throws java.io.IOException {
2528 return PARSER.parseDelimitedFrom(input);
2530 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2531 java.io.InputStream input,
2532 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2533 throws java.io.IOException {
2534 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2536 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2537 com.google.protobuf.CodedInputStream input)
2538 throws java.io.IOException {
2539 return PARSER.parseFrom(input);
2541 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2542 com.google.protobuf.CodedInputStream input,
2543 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2544 throws java.io.IOException {
2545 return PARSER.parseFrom(input, extensionRegistry);
2548 public static Builder newBuilder() { return Builder.create(); }
2549 public Builder newBuilderForType() { return newBuilder(); }
2550 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2551 return newBuilder().mergeFrom(prototype);
2553 public Builder toBuilder() { return newBuilder(this); }
2556 protected Builder newBuilderForType(
2557 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2558 Builder builder = new Builder(parent);
2562 * Protobuf type {@code openxc.ControlCommand}
2564 public static final class Builder extends
2565 com.google.protobuf.GeneratedMessage.Builder<Builder>
2566 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2567 public static final com.google.protobuf.Descriptors.Descriptor
2569 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2572 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2573 internalGetFieldAccessorTable() {
2574 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2575 .ensureFieldAccessorsInitialized(
2576 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2579 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2581 maybeForceBuilderInitialization();
2585 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2587 maybeForceBuilderInitialization();
2589 private void maybeForceBuilderInitialization() {
2590 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2591 getDiagnosticRequestFieldBuilder();
2594 private static Builder create() {
2595 return new Builder();
2598 public Builder clear() {
2600 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2601 bitField0_ = (bitField0_ & ~0x00000001);
2602 if (diagnosticRequestBuilder_ == null) {
2603 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2605 diagnosticRequestBuilder_.clear();
2607 bitField0_ = (bitField0_ & ~0x00000002);
2608 action_ = com.openxc.BinaryMessages.ControlCommand.Action.ADD;
2609 bitField0_ = (bitField0_ & ~0x00000004);
2613 public Builder clone() {
2614 return create().mergeFrom(buildPartial());
2617 public com.google.protobuf.Descriptors.Descriptor
2618 getDescriptorForType() {
2619 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2622 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2623 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2626 public com.openxc.BinaryMessages.ControlCommand build() {
2627 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2628 if (!result.isInitialized()) {
2629 throw newUninitializedMessageException(result);
2634 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2635 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2636 int from_bitField0_ = bitField0_;
2637 int to_bitField0_ = 0;
2638 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2639 to_bitField0_ |= 0x00000001;
2641 result.type_ = type_;
2642 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2643 to_bitField0_ |= 0x00000002;
2645 if (diagnosticRequestBuilder_ == null) {
2646 result.diagnosticRequest_ = diagnosticRequest_;
2648 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2650 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2651 to_bitField0_ |= 0x00000004;
2653 result.action_ = action_;
2654 result.bitField0_ = to_bitField0_;
2659 public Builder mergeFrom(com.google.protobuf.Message other) {
2660 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2661 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2663 super.mergeFrom(other);
2668 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2669 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2670 if (other.hasType()) {
2671 setType(other.getType());
2673 if (other.hasDiagnosticRequest()) {
2674 mergeDiagnosticRequest(other.getDiagnosticRequest());
2676 if (other.hasAction()) {
2677 setAction(other.getAction());
2679 this.mergeUnknownFields(other.getUnknownFields());
2683 public final boolean isInitialized() {
2687 public Builder mergeFrom(
2688 com.google.protobuf.CodedInputStream input,
2689 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2690 throws java.io.IOException {
2691 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
2693 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2694 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2695 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
2698 if (parsedMessage != null) {
2699 mergeFrom(parsedMessage);
2704 private int bitField0_;
2706 // optional .openxc.ControlCommand.Type type = 1;
2707 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2709 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2711 public boolean hasType() {
2712 return ((bitField0_ & 0x00000001) == 0x00000001);
2715 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2717 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2721 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2723 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2724 if (value == null) {
2725 throw new NullPointerException();
2727 bitField0_ |= 0x00000001;
2733 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2735 public Builder clearType() {
2736 bitField0_ = (bitField0_ & ~0x00000001);
2737 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2742 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
2743 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2744 private com.google.protobuf.SingleFieldBuilder<
2745 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> diagnosticRequestBuilder_;
2747 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2749 public boolean hasDiagnosticRequest() {
2750 return ((bitField0_ & 0x00000002) == 0x00000002);
2753 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2755 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
2756 if (diagnosticRequestBuilder_ == null) {
2757 return diagnosticRequest_;
2759 return diagnosticRequestBuilder_.getMessage();
2763 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2765 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2766 if (diagnosticRequestBuilder_ == null) {
2767 if (value == null) {
2768 throw new NullPointerException();
2770 diagnosticRequest_ = value;
2773 diagnosticRequestBuilder_.setMessage(value);
2775 bitField0_ |= 0x00000002;
2779 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2781 public Builder setDiagnosticRequest(
2782 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
2783 if (diagnosticRequestBuilder_ == null) {
2784 diagnosticRequest_ = builderForValue.build();
2787 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2789 bitField0_ |= 0x00000002;
2793 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2795 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2796 if (diagnosticRequestBuilder_ == null) {
2797 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2798 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
2799 diagnosticRequest_ =
2800 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2802 diagnosticRequest_ = value;
2806 diagnosticRequestBuilder_.mergeFrom(value);
2808 bitField0_ |= 0x00000002;
2812 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2814 public Builder clearDiagnosticRequest() {
2815 if (diagnosticRequestBuilder_ == null) {
2816 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2819 diagnosticRequestBuilder_.clear();
2821 bitField0_ = (bitField0_ & ~0x00000002);
2825 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2827 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getDiagnosticRequestBuilder() {
2828 bitField0_ |= 0x00000002;
2830 return getDiagnosticRequestFieldBuilder().getBuilder();
2833 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2835 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
2836 if (diagnosticRequestBuilder_ != null) {
2837 return diagnosticRequestBuilder_.getMessageOrBuilder();
2839 return diagnosticRequest_;
2843 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2845 private com.google.protobuf.SingleFieldBuilder<
2846 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
2847 getDiagnosticRequestFieldBuilder() {
2848 if (diagnosticRequestBuilder_ == null) {
2849 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2850 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
2852 getParentForChildren(),
2854 diagnosticRequest_ = null;
2856 return diagnosticRequestBuilder_;
2859 // optional .openxc.ControlCommand.Action action = 3;
2860 private com.openxc.BinaryMessages.ControlCommand.Action action_ = com.openxc.BinaryMessages.ControlCommand.Action.ADD;
2862 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2864 public boolean hasAction() {
2865 return ((bitField0_ & 0x00000004) == 0x00000004);
2868 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2870 public com.openxc.BinaryMessages.ControlCommand.Action getAction() {
2874 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2876 public Builder setAction(com.openxc.BinaryMessages.ControlCommand.Action value) {
2877 if (value == null) {
2878 throw new NullPointerException();
2880 bitField0_ |= 0x00000004;
2886 * <code>optional .openxc.ControlCommand.Action action = 3;</code>
2888 public Builder clearAction() {
2889 bitField0_ = (bitField0_ & ~0x00000004);
2890 action_ = com.openxc.BinaryMessages.ControlCommand.Action.ADD;
2895 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
2899 defaultInstance = new ControlCommand(true);
2900 defaultInstance.initFields();
2903 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
2906 public interface CommandResponseOrBuilder
2907 extends com.google.protobuf.MessageOrBuilder {
2909 // optional .openxc.ControlCommand.Type type = 1;
2911 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2915 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2917 com.openxc.BinaryMessages.ControlCommand.Type getType();
2919 // optional string message = 2;
2921 * <code>optional string message = 2;</code>
2923 boolean hasMessage();
2925 * <code>optional string message = 2;</code>
2927 java.lang.String getMessage();
2929 * <code>optional string message = 2;</code>
2931 com.google.protobuf.ByteString
2934 // optional bool status = 3;
2936 * <code>optional bool status = 3;</code>
2938 boolean hasStatus();
2940 * <code>optional bool status = 3;</code>
2942 boolean getStatus();
2945 * Protobuf type {@code openxc.CommandResponse}
2947 public static final class CommandResponse extends
2948 com.google.protobuf.GeneratedMessage
2949 implements CommandResponseOrBuilder {
2950 // Use CommandResponse.newBuilder() to construct.
2951 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2953 this.unknownFields = builder.getUnknownFields();
2955 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2957 private static final CommandResponse defaultInstance;
2958 public static CommandResponse getDefaultInstance() {
2959 return defaultInstance;
2962 public CommandResponse getDefaultInstanceForType() {
2963 return defaultInstance;
2966 private final com.google.protobuf.UnknownFieldSet unknownFields;
2968 public final com.google.protobuf.UnknownFieldSet
2969 getUnknownFields() {
2970 return this.unknownFields;
2972 private CommandResponse(
2973 com.google.protobuf.CodedInputStream input,
2974 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2975 throws com.google.protobuf.InvalidProtocolBufferException {
2977 int mutable_bitField0_ = 0;
2978 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2979 com.google.protobuf.UnknownFieldSet.newBuilder();
2981 boolean done = false;
2983 int tag = input.readTag();
2989 if (!parseUnknownField(input, unknownFields,
2990 extensionRegistry, tag)) {
2996 int rawValue = input.readEnum();
2997 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2998 if (value == null) {
2999 unknownFields.mergeVarintField(1, rawValue);
3001 bitField0_ |= 0x00000001;
3007 bitField0_ |= 0x00000002;
3008 message_ = input.readBytes();
3012 bitField0_ |= 0x00000004;
3013 status_ = input.readBool();
3018 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3019 throw e.setUnfinishedMessage(this);
3020 } catch (java.io.IOException e) {
3021 throw new com.google.protobuf.InvalidProtocolBufferException(
3022 e.getMessage()).setUnfinishedMessage(this);
3024 this.unknownFields = unknownFields.build();
3025 makeExtensionsImmutable();
3028 public static final com.google.protobuf.Descriptors.Descriptor
3030 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
3033 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3034 internalGetFieldAccessorTable() {
3035 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
3036 .ensureFieldAccessorsInitialized(
3037 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
3040 public static com.google.protobuf.Parser<CommandResponse> PARSER =
3041 new com.google.protobuf.AbstractParser<CommandResponse>() {
3042 public CommandResponse parsePartialFrom(
3043 com.google.protobuf.CodedInputStream input,
3044 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3045 throws com.google.protobuf.InvalidProtocolBufferException {
3046 return new CommandResponse(input, extensionRegistry);
3051 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
3055 private int bitField0_;
3056 // optional .openxc.ControlCommand.Type type = 1;
3057 public static final int TYPE_FIELD_NUMBER = 1;
3058 private com.openxc.BinaryMessages.ControlCommand.Type type_;
3060 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3062 public boolean hasType() {
3063 return ((bitField0_ & 0x00000001) == 0x00000001);
3066 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3068 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
3072 // optional string message = 2;
3073 public static final int MESSAGE_FIELD_NUMBER = 2;
3074 private java.lang.Object message_;
3076 * <code>optional string message = 2;</code>
3078 public boolean hasMessage() {
3079 return ((bitField0_ & 0x00000002) == 0x00000002);
3082 * <code>optional string message = 2;</code>
3084 public java.lang.String getMessage() {
3085 java.lang.Object ref = message_;
3086 if (ref instanceof java.lang.String) {
3087 return (java.lang.String) ref;
3089 com.google.protobuf.ByteString bs =
3090 (com.google.protobuf.ByteString) ref;
3091 java.lang.String s = bs.toStringUtf8();
3092 if (bs.isValidUtf8()) {
3099 * <code>optional string message = 2;</code>
3101 public com.google.protobuf.ByteString
3103 java.lang.Object ref = message_;
3104 if (ref instanceof java.lang.String) {
3105 com.google.protobuf.ByteString b =
3106 com.google.protobuf.ByteString.copyFromUtf8(
3107 (java.lang.String) ref);
3111 return (com.google.protobuf.ByteString) ref;
3115 // optional bool status = 3;
3116 public static final int STATUS_FIELD_NUMBER = 3;
3117 private boolean status_;
3119 * <code>optional bool status = 3;</code>
3121 public boolean hasStatus() {
3122 return ((bitField0_ & 0x00000004) == 0x00000004);
3125 * <code>optional bool status = 3;</code>
3127 public boolean getStatus() {
3131 private void initFields() {
3132 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3136 private byte memoizedIsInitialized = -1;
3137 public final boolean isInitialized() {
3138 byte isInitialized = memoizedIsInitialized;
3139 if (isInitialized != -1) return isInitialized == 1;
3141 memoizedIsInitialized = 1;
3145 public void writeTo(com.google.protobuf.CodedOutputStream output)
3146 throws java.io.IOException {
3147 getSerializedSize();
3148 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3149 output.writeEnum(1, type_.getNumber());
3151 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3152 output.writeBytes(2, getMessageBytes());
3154 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3155 output.writeBool(3, status_);
3157 getUnknownFields().writeTo(output);
3160 private int memoizedSerializedSize = -1;
3161 public int getSerializedSize() {
3162 int size = memoizedSerializedSize;
3163 if (size != -1) return size;
3166 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3167 size += com.google.protobuf.CodedOutputStream
3168 .computeEnumSize(1, type_.getNumber());
3170 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3171 size += com.google.protobuf.CodedOutputStream
3172 .computeBytesSize(2, getMessageBytes());
3174 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3175 size += com.google.protobuf.CodedOutputStream
3176 .computeBoolSize(3, status_);
3178 size += getUnknownFields().getSerializedSize();
3179 memoizedSerializedSize = size;
3183 private static final long serialVersionUID = 0L;
3185 protected java.lang.Object writeReplace()
3186 throws java.io.ObjectStreamException {
3187 return super.writeReplace();
3190 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3191 com.google.protobuf.ByteString data)
3192 throws com.google.protobuf.InvalidProtocolBufferException {
3193 return PARSER.parseFrom(data);
3195 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3196 com.google.protobuf.ByteString data,
3197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3198 throws com.google.protobuf.InvalidProtocolBufferException {
3199 return PARSER.parseFrom(data, extensionRegistry);
3201 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
3202 throws com.google.protobuf.InvalidProtocolBufferException {
3203 return PARSER.parseFrom(data);
3205 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3208 throws com.google.protobuf.InvalidProtocolBufferException {
3209 return PARSER.parseFrom(data, extensionRegistry);
3211 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
3212 throws java.io.IOException {
3213 return PARSER.parseFrom(input);
3215 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3216 java.io.InputStream input,
3217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3218 throws java.io.IOException {
3219 return PARSER.parseFrom(input, extensionRegistry);
3221 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
3222 throws java.io.IOException {
3223 return PARSER.parseDelimitedFrom(input);
3225 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
3226 java.io.InputStream input,
3227 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3228 throws java.io.IOException {
3229 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3231 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3232 com.google.protobuf.CodedInputStream input)
3233 throws java.io.IOException {
3234 return PARSER.parseFrom(input);
3236 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3237 com.google.protobuf.CodedInputStream input,
3238 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3239 throws java.io.IOException {
3240 return PARSER.parseFrom(input, extensionRegistry);
3243 public static Builder newBuilder() { return Builder.create(); }
3244 public Builder newBuilderForType() { return newBuilder(); }
3245 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
3246 return newBuilder().mergeFrom(prototype);
3248 public Builder toBuilder() { return newBuilder(this); }
3251 protected Builder newBuilderForType(
3252 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3253 Builder builder = new Builder(parent);
3257 * Protobuf type {@code openxc.CommandResponse}
3259 public static final class Builder extends
3260 com.google.protobuf.GeneratedMessage.Builder<Builder>
3261 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
3262 public static final com.google.protobuf.Descriptors.Descriptor
3264 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
3267 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3268 internalGetFieldAccessorTable() {
3269 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
3270 .ensureFieldAccessorsInitialized(
3271 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
3274 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
3276 maybeForceBuilderInitialization();
3280 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3282 maybeForceBuilderInitialization();
3284 private void maybeForceBuilderInitialization() {
3285 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3288 private static Builder create() {
3289 return new Builder();
3292 public Builder clear() {
3294 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3295 bitField0_ = (bitField0_ & ~0x00000001);
3297 bitField0_ = (bitField0_ & ~0x00000002);
3299 bitField0_ = (bitField0_ & ~0x00000004);
3303 public Builder clone() {
3304 return create().mergeFrom(buildPartial());
3307 public com.google.protobuf.Descriptors.Descriptor
3308 getDescriptorForType() {
3309 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
3312 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
3313 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
3316 public com.openxc.BinaryMessages.CommandResponse build() {
3317 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
3318 if (!result.isInitialized()) {
3319 throw newUninitializedMessageException(result);
3324 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
3325 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
3326 int from_bitField0_ = bitField0_;
3327 int to_bitField0_ = 0;
3328 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3329 to_bitField0_ |= 0x00000001;
3331 result.type_ = type_;
3332 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3333 to_bitField0_ |= 0x00000002;
3335 result.message_ = message_;
3336 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
3337 to_bitField0_ |= 0x00000004;
3339 result.status_ = status_;
3340 result.bitField0_ = to_bitField0_;
3345 public Builder mergeFrom(com.google.protobuf.Message other) {
3346 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
3347 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
3349 super.mergeFrom(other);
3354 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
3355 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
3356 if (other.hasType()) {
3357 setType(other.getType());
3359 if (other.hasMessage()) {
3360 bitField0_ |= 0x00000002;
3361 message_ = other.message_;
3364 if (other.hasStatus()) {
3365 setStatus(other.getStatus());
3367 this.mergeUnknownFields(other.getUnknownFields());
3371 public final boolean isInitialized() {
3375 public Builder mergeFrom(
3376 com.google.protobuf.CodedInputStream input,
3377 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3378 throws java.io.IOException {
3379 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
3381 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3382 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3383 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
3386 if (parsedMessage != null) {
3387 mergeFrom(parsedMessage);
3392 private int bitField0_;
3394 // optional .openxc.ControlCommand.Type type = 1;
3395 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3397 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3399 public boolean hasType() {
3400 return ((bitField0_ & 0x00000001) == 0x00000001);
3403 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3405 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
3409 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3411 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
3412 if (value == null) {
3413 throw new NullPointerException();
3415 bitField0_ |= 0x00000001;
3421 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3423 public Builder clearType() {
3424 bitField0_ = (bitField0_ & ~0x00000001);
3425 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3430 // optional string message = 2;
3431 private java.lang.Object message_ = "";
3433 * <code>optional string message = 2;</code>
3435 public boolean hasMessage() {
3436 return ((bitField0_ & 0x00000002) == 0x00000002);
3439 * <code>optional string message = 2;</code>
3441 public java.lang.String getMessage() {
3442 java.lang.Object ref = message_;
3443 if (!(ref instanceof java.lang.String)) {
3444 java.lang.String s = ((com.google.protobuf.ByteString) ref)
3449 return (java.lang.String) ref;
3453 * <code>optional string message = 2;</code>
3455 public com.google.protobuf.ByteString
3457 java.lang.Object ref = message_;
3458 if (ref instanceof String) {
3459 com.google.protobuf.ByteString b =
3460 com.google.protobuf.ByteString.copyFromUtf8(
3461 (java.lang.String) ref);
3465 return (com.google.protobuf.ByteString) ref;
3469 * <code>optional string message = 2;</code>
3471 public Builder setMessage(
3472 java.lang.String value) {
3473 if (value == null) {
3474 throw new NullPointerException();
3476 bitField0_ |= 0x00000002;
3482 * <code>optional string message = 2;</code>
3484 public Builder clearMessage() {
3485 bitField0_ = (bitField0_ & ~0x00000002);
3486 message_ = getDefaultInstance().getMessage();
3491 * <code>optional string message = 2;</code>
3493 public Builder setMessageBytes(
3494 com.google.protobuf.ByteString value) {
3495 if (value == null) {
3496 throw new NullPointerException();
3498 bitField0_ |= 0x00000002;
3504 // optional bool status = 3;
3505 private boolean status_ ;
3507 * <code>optional bool status = 3;</code>
3509 public boolean hasStatus() {
3510 return ((bitField0_ & 0x00000004) == 0x00000004);
3513 * <code>optional bool status = 3;</code>
3515 public boolean getStatus() {
3519 * <code>optional bool status = 3;</code>
3521 public Builder setStatus(boolean value) {
3522 bitField0_ |= 0x00000004;
3528 * <code>optional bool status = 3;</code>
3530 public Builder clearStatus() {
3531 bitField0_ = (bitField0_ & ~0x00000004);
3537 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
3541 defaultInstance = new CommandResponse(true);
3542 defaultInstance.initFields();
3545 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
3548 public interface DiagnosticRequestOrBuilder
3549 extends com.google.protobuf.MessageOrBuilder {
3551 // optional int32 bus = 1;
3553 * <code>optional int32 bus = 1;</code>
3557 * <code>optional int32 bus = 1;</code>
3561 // optional uint32 message_id = 2;
3563 * <code>optional uint32 message_id = 2;</code>
3565 boolean hasMessageId();
3567 * <code>optional uint32 message_id = 2;</code>
3571 // optional uint32 mode = 3;
3573 * <code>optional uint32 mode = 3;</code>
3577 * <code>optional uint32 mode = 3;</code>
3581 // optional uint32 pid = 4;
3583 * <code>optional uint32 pid = 4;</code>
3587 * <code>optional uint32 pid = 4;</code>
3591 // optional bytes payload = 5;
3593 * <code>optional bytes payload = 5;</code>
3596 * TODO we are capping this at 8 bytes for now - need to change when we
3597 * support multi-frame responses
3600 boolean hasPayload();
3602 * <code>optional bytes payload = 5;</code>
3605 * TODO we are capping this at 8 bytes for now - need to change when we
3606 * support multi-frame responses
3609 com.google.protobuf.ByteString getPayload();
3611 // optional bool multiple_responses = 6;
3613 * <code>optional bool multiple_responses = 6;</code>
3615 boolean hasMultipleResponses();
3617 * <code>optional bool multiple_responses = 6;</code>
3619 boolean getMultipleResponses();
3621 // optional double frequency = 7;
3623 * <code>optional double frequency = 7;</code>
3625 boolean hasFrequency();
3627 * <code>optional double frequency = 7;</code>
3629 double getFrequency();
3631 // optional string name = 8;
3633 * <code>optional string name = 8;</code>
3637 * <code>optional string name = 8;</code>
3639 java.lang.String getName();
3641 * <code>optional string name = 8;</code>
3643 com.google.protobuf.ByteString
3646 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
3648 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3650 boolean hasDecodedType();
3652 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3654 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
3657 * Protobuf type {@code openxc.DiagnosticRequest}
3659 public static final class DiagnosticRequest extends
3660 com.google.protobuf.GeneratedMessage
3661 implements DiagnosticRequestOrBuilder {
3662 // Use DiagnosticRequest.newBuilder() to construct.
3663 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3665 this.unknownFields = builder.getUnknownFields();
3667 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3669 private static final DiagnosticRequest defaultInstance;
3670 public static DiagnosticRequest getDefaultInstance() {
3671 return defaultInstance;
3674 public DiagnosticRequest getDefaultInstanceForType() {
3675 return defaultInstance;
3678 private final com.google.protobuf.UnknownFieldSet unknownFields;
3680 public final com.google.protobuf.UnknownFieldSet
3681 getUnknownFields() {
3682 return this.unknownFields;
3684 private DiagnosticRequest(
3685 com.google.protobuf.CodedInputStream input,
3686 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3687 throws com.google.protobuf.InvalidProtocolBufferException {
3689 int mutable_bitField0_ = 0;
3690 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3691 com.google.protobuf.UnknownFieldSet.newBuilder();
3693 boolean done = false;
3695 int tag = input.readTag();
3701 if (!parseUnknownField(input, unknownFields,
3702 extensionRegistry, tag)) {
3708 bitField0_ |= 0x00000001;
3709 bus_ = input.readInt32();
3713 bitField0_ |= 0x00000002;
3714 messageId_ = input.readUInt32();
3718 bitField0_ |= 0x00000004;
3719 mode_ = input.readUInt32();
3723 bitField0_ |= 0x00000008;
3724 pid_ = input.readUInt32();
3728 bitField0_ |= 0x00000010;
3729 payload_ = input.readBytes();
3733 bitField0_ |= 0x00000020;
3734 multipleResponses_ = input.readBool();
3738 bitField0_ |= 0x00000040;
3739 frequency_ = input.readDouble();
3743 bitField0_ |= 0x00000080;
3744 name_ = input.readBytes();
3748 int rawValue = input.readEnum();
3749 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
3750 if (value == null) {
3751 unknownFields.mergeVarintField(9, rawValue);
3753 bitField0_ |= 0x00000100;
3754 decodedType_ = value;
3760 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3761 throw e.setUnfinishedMessage(this);
3762 } catch (java.io.IOException e) {
3763 throw new com.google.protobuf.InvalidProtocolBufferException(
3764 e.getMessage()).setUnfinishedMessage(this);
3766 this.unknownFields = unknownFields.build();
3767 makeExtensionsImmutable();
3770 public static final com.google.protobuf.Descriptors.Descriptor
3772 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
3775 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3776 internalGetFieldAccessorTable() {
3777 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
3778 .ensureFieldAccessorsInitialized(
3779 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
3782 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
3783 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
3784 public DiagnosticRequest parsePartialFrom(
3785 com.google.protobuf.CodedInputStream input,
3786 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3787 throws com.google.protobuf.InvalidProtocolBufferException {
3788 return new DiagnosticRequest(input, extensionRegistry);
3793 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
3798 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
3800 public enum DecodedType
3801 implements com.google.protobuf.ProtocolMessageEnum {
3803 * <code>NONE = 1;</code>
3807 * <code>OBD2 = 2;</code>
3813 * <code>NONE = 1;</code>
3815 public static final int NONE_VALUE = 1;
3817 * <code>OBD2 = 2;</code>
3819 public static final int OBD2_VALUE = 2;
3822 public final int getNumber() { return value; }
3824 public static DecodedType valueOf(int value) {
3826 case 1: return NONE;
3827 case 2: return OBD2;
3828 default: return null;
3832 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
3833 internalGetValueMap() {
3834 return internalValueMap;
3836 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
3838 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
3839 public DecodedType findValueByNumber(int number) {
3840 return DecodedType.valueOf(number);
3844 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3845 getValueDescriptor() {
3846 return getDescriptor().getValues().get(index);
3848 public final com.google.protobuf.Descriptors.EnumDescriptor
3849 getDescriptorForType() {
3850 return getDescriptor();
3852 public static final com.google.protobuf.Descriptors.EnumDescriptor
3854 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
3857 private static final DecodedType[] VALUES = values();
3859 public static DecodedType valueOf(
3860 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3861 if (desc.getType() != getDescriptor()) {
3862 throw new java.lang.IllegalArgumentException(
3863 "EnumValueDescriptor is not for this type.");
3865 return VALUES[desc.getIndex()];
3868 private final int index;
3869 private final int value;
3871 private DecodedType(int index, int value) {
3876 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
3879 private int bitField0_;
3880 // optional int32 bus = 1;
3881 public static final int BUS_FIELD_NUMBER = 1;
3884 * <code>optional int32 bus = 1;</code>
3886 public boolean hasBus() {
3887 return ((bitField0_ & 0x00000001) == 0x00000001);
3890 * <code>optional int32 bus = 1;</code>
3892 public int getBus() {
3896 // optional uint32 message_id = 2;
3897 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
3898 private int messageId_;
3900 * <code>optional uint32 message_id = 2;</code>
3902 public boolean hasMessageId() {
3903 return ((bitField0_ & 0x00000002) == 0x00000002);
3906 * <code>optional uint32 message_id = 2;</code>
3908 public int getMessageId() {
3912 // optional uint32 mode = 3;
3913 public static final int MODE_FIELD_NUMBER = 3;
3916 * <code>optional uint32 mode = 3;</code>
3918 public boolean hasMode() {
3919 return ((bitField0_ & 0x00000004) == 0x00000004);
3922 * <code>optional uint32 mode = 3;</code>
3924 public int getMode() {
3928 // optional uint32 pid = 4;
3929 public static final int PID_FIELD_NUMBER = 4;
3932 * <code>optional uint32 pid = 4;</code>
3934 public boolean hasPid() {
3935 return ((bitField0_ & 0x00000008) == 0x00000008);
3938 * <code>optional uint32 pid = 4;</code>
3940 public int getPid() {
3944 // optional bytes payload = 5;
3945 public static final int PAYLOAD_FIELD_NUMBER = 5;
3946 private com.google.protobuf.ByteString payload_;
3948 * <code>optional bytes payload = 5;</code>
3951 * TODO we are capping this at 8 bytes for now - need to change when we
3952 * support multi-frame responses
3955 public boolean hasPayload() {
3956 return ((bitField0_ & 0x00000010) == 0x00000010);
3959 * <code>optional bytes payload = 5;</code>
3962 * TODO we are capping this at 8 bytes for now - need to change when we
3963 * support multi-frame responses
3966 public com.google.protobuf.ByteString getPayload() {
3970 // optional bool multiple_responses = 6;
3971 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
3972 private boolean multipleResponses_;
3974 * <code>optional bool multiple_responses = 6;</code>
3976 public boolean hasMultipleResponses() {
3977 return ((bitField0_ & 0x00000020) == 0x00000020);
3980 * <code>optional bool multiple_responses = 6;</code>
3982 public boolean getMultipleResponses() {
3983 return multipleResponses_;
3986 // optional double frequency = 7;
3987 public static final int FREQUENCY_FIELD_NUMBER = 7;
3988 private double frequency_;
3990 * <code>optional double frequency = 7;</code>
3992 public boolean hasFrequency() {
3993 return ((bitField0_ & 0x00000040) == 0x00000040);
3996 * <code>optional double frequency = 7;</code>
3998 public double getFrequency() {
4002 // optional string name = 8;
4003 public static final int NAME_FIELD_NUMBER = 8;
4004 private java.lang.Object name_;
4006 * <code>optional string name = 8;</code>
4008 public boolean hasName() {
4009 return ((bitField0_ & 0x00000080) == 0x00000080);
4012 * <code>optional string name = 8;</code>
4014 public java.lang.String getName() {
4015 java.lang.Object ref = name_;
4016 if (ref instanceof java.lang.String) {
4017 return (java.lang.String) ref;
4019 com.google.protobuf.ByteString bs =
4020 (com.google.protobuf.ByteString) ref;
4021 java.lang.String s = bs.toStringUtf8();
4022 if (bs.isValidUtf8()) {
4029 * <code>optional string name = 8;</code>
4031 public com.google.protobuf.ByteString
4033 java.lang.Object ref = name_;
4034 if (ref instanceof java.lang.String) {
4035 com.google.protobuf.ByteString b =
4036 com.google.protobuf.ByteString.copyFromUtf8(
4037 (java.lang.String) ref);
4041 return (com.google.protobuf.ByteString) ref;
4045 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
4046 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
4047 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
4049 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4051 public boolean hasDecodedType() {
4052 return ((bitField0_ & 0x00000100) == 0x00000100);
4055 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4057 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
4058 return decodedType_;
4061 private void initFields() {
4066 payload_ = com.google.protobuf.ByteString.EMPTY;
4067 multipleResponses_ = false;
4070 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4072 private byte memoizedIsInitialized = -1;
4073 public final boolean isInitialized() {
4074 byte isInitialized = memoizedIsInitialized;
4075 if (isInitialized != -1) return isInitialized == 1;
4077 memoizedIsInitialized = 1;
4081 public void writeTo(com.google.protobuf.CodedOutputStream output)
4082 throws java.io.IOException {
4083 getSerializedSize();
4084 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4085 output.writeInt32(1, bus_);
4087 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4088 output.writeUInt32(2, messageId_);
4090 if (((bitField0_ & 0x00000004) == 0x00000004)) {
4091 output.writeUInt32(3, mode_);
4093 if (((bitField0_ & 0x00000008) == 0x00000008)) {
4094 output.writeUInt32(4, pid_);
4096 if (((bitField0_ & 0x00000010) == 0x00000010)) {
4097 output.writeBytes(5, payload_);
4099 if (((bitField0_ & 0x00000020) == 0x00000020)) {
4100 output.writeBool(6, multipleResponses_);
4102 if (((bitField0_ & 0x00000040) == 0x00000040)) {
4103 output.writeDouble(7, frequency_);
4105 if (((bitField0_ & 0x00000080) == 0x00000080)) {
4106 output.writeBytes(8, getNameBytes());
4108 if (((bitField0_ & 0x00000100) == 0x00000100)) {
4109 output.writeEnum(9, decodedType_.getNumber());
4111 getUnknownFields().writeTo(output);
4114 private int memoizedSerializedSize = -1;
4115 public int getSerializedSize() {
4116 int size = memoizedSerializedSize;
4117 if (size != -1) return size;
4120 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4121 size += com.google.protobuf.CodedOutputStream
4122 .computeInt32Size(1, bus_);
4124 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4125 size += com.google.protobuf.CodedOutputStream
4126 .computeUInt32Size(2, messageId_);
4128 if (((bitField0_ & 0x00000004) == 0x00000004)) {
4129 size += com.google.protobuf.CodedOutputStream
4130 .computeUInt32Size(3, mode_);
4132 if (((bitField0_ & 0x00000008) == 0x00000008)) {
4133 size += com.google.protobuf.CodedOutputStream
4134 .computeUInt32Size(4, pid_);
4136 if (((bitField0_ & 0x00000010) == 0x00000010)) {
4137 size += com.google.protobuf.CodedOutputStream
4138 .computeBytesSize(5, payload_);
4140 if (((bitField0_ & 0x00000020) == 0x00000020)) {
4141 size += com.google.protobuf.CodedOutputStream
4142 .computeBoolSize(6, multipleResponses_);
4144 if (((bitField0_ & 0x00000040) == 0x00000040)) {
4145 size += com.google.protobuf.CodedOutputStream
4146 .computeDoubleSize(7, frequency_);
4148 if (((bitField0_ & 0x00000080) == 0x00000080)) {
4149 size += com.google.protobuf.CodedOutputStream
4150 .computeBytesSize(8, getNameBytes());
4152 if (((bitField0_ & 0x00000100) == 0x00000100)) {
4153 size += com.google.protobuf.CodedOutputStream
4154 .computeEnumSize(9, decodedType_.getNumber());
4156 size += getUnknownFields().getSerializedSize();
4157 memoizedSerializedSize = size;
4161 private static final long serialVersionUID = 0L;
4163 protected java.lang.Object writeReplace()
4164 throws java.io.ObjectStreamException {
4165 return super.writeReplace();
4168 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4169 com.google.protobuf.ByteString data)
4170 throws com.google.protobuf.InvalidProtocolBufferException {
4171 return PARSER.parseFrom(data);
4173 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4174 com.google.protobuf.ByteString data,
4175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4176 throws com.google.protobuf.InvalidProtocolBufferException {
4177 return PARSER.parseFrom(data, extensionRegistry);
4179 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
4180 throws com.google.protobuf.InvalidProtocolBufferException {
4181 return PARSER.parseFrom(data);
4183 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4185 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4186 throws com.google.protobuf.InvalidProtocolBufferException {
4187 return PARSER.parseFrom(data, extensionRegistry);
4189 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
4190 throws java.io.IOException {
4191 return PARSER.parseFrom(input);
4193 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4194 java.io.InputStream input,
4195 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4196 throws java.io.IOException {
4197 return PARSER.parseFrom(input, extensionRegistry);
4199 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
4200 throws java.io.IOException {
4201 return PARSER.parseDelimitedFrom(input);
4203 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
4204 java.io.InputStream input,
4205 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4206 throws java.io.IOException {
4207 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4209 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4210 com.google.protobuf.CodedInputStream input)
4211 throws java.io.IOException {
4212 return PARSER.parseFrom(input);
4214 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4215 com.google.protobuf.CodedInputStream input,
4216 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4217 throws java.io.IOException {
4218 return PARSER.parseFrom(input, extensionRegistry);
4221 public static Builder newBuilder() { return Builder.create(); }
4222 public Builder newBuilderForType() { return newBuilder(); }
4223 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
4224 return newBuilder().mergeFrom(prototype);
4226 public Builder toBuilder() { return newBuilder(this); }
4229 protected Builder newBuilderForType(
4230 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4231 Builder builder = new Builder(parent);
4235 * Protobuf type {@code openxc.DiagnosticRequest}
4237 public static final class Builder extends
4238 com.google.protobuf.GeneratedMessage.Builder<Builder>
4239 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
4240 public static final com.google.protobuf.Descriptors.Descriptor
4242 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
4245 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4246 internalGetFieldAccessorTable() {
4247 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
4248 .ensureFieldAccessorsInitialized(
4249 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
4252 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
4254 maybeForceBuilderInitialization();
4258 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4260 maybeForceBuilderInitialization();
4262 private void maybeForceBuilderInitialization() {
4263 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4266 private static Builder create() {
4267 return new Builder();
4270 public Builder clear() {
4273 bitField0_ = (bitField0_ & ~0x00000001);
4275 bitField0_ = (bitField0_ & ~0x00000002);
4277 bitField0_ = (bitField0_ & ~0x00000004);
4279 bitField0_ = (bitField0_ & ~0x00000008);
4280 payload_ = com.google.protobuf.ByteString.EMPTY;
4281 bitField0_ = (bitField0_ & ~0x00000010);
4282 multipleResponses_ = false;
4283 bitField0_ = (bitField0_ & ~0x00000020);
4285 bitField0_ = (bitField0_ & ~0x00000040);
4287 bitField0_ = (bitField0_ & ~0x00000080);
4288 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4289 bitField0_ = (bitField0_ & ~0x00000100);
4293 public Builder clone() {
4294 return create().mergeFrom(buildPartial());
4297 public com.google.protobuf.Descriptors.Descriptor
4298 getDescriptorForType() {
4299 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
4302 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
4303 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4306 public com.openxc.BinaryMessages.DiagnosticRequest build() {
4307 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
4308 if (!result.isInitialized()) {
4309 throw newUninitializedMessageException(result);
4314 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
4315 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
4316 int from_bitField0_ = bitField0_;
4317 int to_bitField0_ = 0;
4318 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4319 to_bitField0_ |= 0x00000001;
4322 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4323 to_bitField0_ |= 0x00000002;
4325 result.messageId_ = messageId_;
4326 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
4327 to_bitField0_ |= 0x00000004;
4329 result.mode_ = mode_;
4330 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
4331 to_bitField0_ |= 0x00000008;
4334 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
4335 to_bitField0_ |= 0x00000010;
4337 result.payload_ = payload_;
4338 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
4339 to_bitField0_ |= 0x00000020;
4341 result.multipleResponses_ = multipleResponses_;
4342 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
4343 to_bitField0_ |= 0x00000040;
4345 result.frequency_ = frequency_;
4346 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
4347 to_bitField0_ |= 0x00000080;
4349 result.name_ = name_;
4350 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
4351 to_bitField0_ |= 0x00000100;
4353 result.decodedType_ = decodedType_;
4354 result.bitField0_ = to_bitField0_;
4359 public Builder mergeFrom(com.google.protobuf.Message other) {
4360 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
4361 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
4363 super.mergeFrom(other);
4368 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
4369 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
4370 if (other.hasBus()) {
4371 setBus(other.getBus());
4373 if (other.hasMessageId()) {
4374 setMessageId(other.getMessageId());
4376 if (other.hasMode()) {
4377 setMode(other.getMode());
4379 if (other.hasPid()) {
4380 setPid(other.getPid());
4382 if (other.hasPayload()) {
4383 setPayload(other.getPayload());
4385 if (other.hasMultipleResponses()) {
4386 setMultipleResponses(other.getMultipleResponses());
4388 if (other.hasFrequency()) {
4389 setFrequency(other.getFrequency());
4391 if (other.hasName()) {
4392 bitField0_ |= 0x00000080;
4393 name_ = other.name_;
4396 if (other.hasDecodedType()) {
4397 setDecodedType(other.getDecodedType());
4399 this.mergeUnknownFields(other.getUnknownFields());
4403 public final boolean isInitialized() {
4407 public Builder mergeFrom(
4408 com.google.protobuf.CodedInputStream input,
4409 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4410 throws java.io.IOException {
4411 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
4413 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4414 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4415 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
4418 if (parsedMessage != null) {
4419 mergeFrom(parsedMessage);
4424 private int bitField0_;
4426 // optional int32 bus = 1;
4429 * <code>optional int32 bus = 1;</code>
4431 public boolean hasBus() {
4432 return ((bitField0_ & 0x00000001) == 0x00000001);
4435 * <code>optional int32 bus = 1;</code>
4437 public int getBus() {
4441 * <code>optional int32 bus = 1;</code>
4443 public Builder setBus(int value) {
4444 bitField0_ |= 0x00000001;
4450 * <code>optional int32 bus = 1;</code>
4452 public Builder clearBus() {
4453 bitField0_ = (bitField0_ & ~0x00000001);
4459 // optional uint32 message_id = 2;
4460 private int messageId_ ;
4462 * <code>optional uint32 message_id = 2;</code>
4464 public boolean hasMessageId() {
4465 return ((bitField0_ & 0x00000002) == 0x00000002);
4468 * <code>optional uint32 message_id = 2;</code>
4470 public int getMessageId() {
4474 * <code>optional uint32 message_id = 2;</code>
4476 public Builder setMessageId(int value) {
4477 bitField0_ |= 0x00000002;
4483 * <code>optional uint32 message_id = 2;</code>
4485 public Builder clearMessageId() {
4486 bitField0_ = (bitField0_ & ~0x00000002);
4492 // optional uint32 mode = 3;
4495 * <code>optional uint32 mode = 3;</code>
4497 public boolean hasMode() {
4498 return ((bitField0_ & 0x00000004) == 0x00000004);
4501 * <code>optional uint32 mode = 3;</code>
4503 public int getMode() {
4507 * <code>optional uint32 mode = 3;</code>
4509 public Builder setMode(int value) {
4510 bitField0_ |= 0x00000004;
4516 * <code>optional uint32 mode = 3;</code>
4518 public Builder clearMode() {
4519 bitField0_ = (bitField0_ & ~0x00000004);
4525 // optional uint32 pid = 4;
4528 * <code>optional uint32 pid = 4;</code>
4530 public boolean hasPid() {
4531 return ((bitField0_ & 0x00000008) == 0x00000008);
4534 * <code>optional uint32 pid = 4;</code>
4536 public int getPid() {
4540 * <code>optional uint32 pid = 4;</code>
4542 public Builder setPid(int value) {
4543 bitField0_ |= 0x00000008;
4549 * <code>optional uint32 pid = 4;</code>
4551 public Builder clearPid() {
4552 bitField0_ = (bitField0_ & ~0x00000008);
4558 // optional bytes payload = 5;
4559 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
4561 * <code>optional bytes payload = 5;</code>
4564 * TODO we are capping this at 8 bytes for now - need to change when we
4565 * support multi-frame responses
4568 public boolean hasPayload() {
4569 return ((bitField0_ & 0x00000010) == 0x00000010);
4572 * <code>optional bytes payload = 5;</code>
4575 * TODO we are capping this at 8 bytes for now - need to change when we
4576 * support multi-frame responses
4579 public com.google.protobuf.ByteString getPayload() {
4583 * <code>optional bytes payload = 5;</code>
4586 * TODO we are capping this at 8 bytes for now - need to change when we
4587 * support multi-frame responses
4590 public Builder setPayload(com.google.protobuf.ByteString value) {
4591 if (value == null) {
4592 throw new NullPointerException();
4594 bitField0_ |= 0x00000010;
4600 * <code>optional bytes payload = 5;</code>
4603 * TODO we are capping this at 8 bytes for now - need to change when we
4604 * support multi-frame responses
4607 public Builder clearPayload() {
4608 bitField0_ = (bitField0_ & ~0x00000010);
4609 payload_ = getDefaultInstance().getPayload();
4614 // optional bool multiple_responses = 6;
4615 private boolean multipleResponses_ ;
4617 * <code>optional bool multiple_responses = 6;</code>
4619 public boolean hasMultipleResponses() {
4620 return ((bitField0_ & 0x00000020) == 0x00000020);
4623 * <code>optional bool multiple_responses = 6;</code>
4625 public boolean getMultipleResponses() {
4626 return multipleResponses_;
4629 * <code>optional bool multiple_responses = 6;</code>
4631 public Builder setMultipleResponses(boolean value) {
4632 bitField0_ |= 0x00000020;
4633 multipleResponses_ = value;
4638 * <code>optional bool multiple_responses = 6;</code>
4640 public Builder clearMultipleResponses() {
4641 bitField0_ = (bitField0_ & ~0x00000020);
4642 multipleResponses_ = false;
4647 // optional double frequency = 7;
4648 private double frequency_ ;
4650 * <code>optional double frequency = 7;</code>
4652 public boolean hasFrequency() {
4653 return ((bitField0_ & 0x00000040) == 0x00000040);
4656 * <code>optional double frequency = 7;</code>
4658 public double getFrequency() {
4662 * <code>optional double frequency = 7;</code>
4664 public Builder setFrequency(double value) {
4665 bitField0_ |= 0x00000040;
4671 * <code>optional double frequency = 7;</code>
4673 public Builder clearFrequency() {
4674 bitField0_ = (bitField0_ & ~0x00000040);
4680 // optional string name = 8;
4681 private java.lang.Object name_ = "";
4683 * <code>optional string name = 8;</code>
4685 public boolean hasName() {
4686 return ((bitField0_ & 0x00000080) == 0x00000080);
4689 * <code>optional string name = 8;</code>
4691 public java.lang.String getName() {
4692 java.lang.Object ref = name_;
4693 if (!(ref instanceof java.lang.String)) {
4694 java.lang.String s = ((com.google.protobuf.ByteString) ref)
4699 return (java.lang.String) ref;
4703 * <code>optional string name = 8;</code>
4705 public com.google.protobuf.ByteString
4707 java.lang.Object ref = name_;
4708 if (ref instanceof String) {
4709 com.google.protobuf.ByteString b =
4710 com.google.protobuf.ByteString.copyFromUtf8(
4711 (java.lang.String) ref);
4715 return (com.google.protobuf.ByteString) ref;
4719 * <code>optional string name = 8;</code>
4721 public Builder setName(
4722 java.lang.String value) {
4723 if (value == null) {
4724 throw new NullPointerException();
4726 bitField0_ |= 0x00000080;
4732 * <code>optional string name = 8;</code>
4734 public Builder clearName() {
4735 bitField0_ = (bitField0_ & ~0x00000080);
4736 name_ = getDefaultInstance().getName();
4741 * <code>optional string name = 8;</code>
4743 public Builder setNameBytes(
4744 com.google.protobuf.ByteString value) {
4745 if (value == null) {
4746 throw new NullPointerException();
4748 bitField0_ |= 0x00000080;
4754 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
4755 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4757 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4759 public boolean hasDecodedType() {
4760 return ((bitField0_ & 0x00000100) == 0x00000100);
4763 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4765 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
4766 return decodedType_;
4769 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4771 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
4772 if (value == null) {
4773 throw new NullPointerException();
4775 bitField0_ |= 0x00000100;
4776 decodedType_ = value;
4781 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4783 public Builder clearDecodedType() {
4784 bitField0_ = (bitField0_ & ~0x00000100);
4785 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4790 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
4794 defaultInstance = new DiagnosticRequest(true);
4795 defaultInstance.initFields();
4798 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
4801 public interface DiagnosticResponseOrBuilder
4802 extends com.google.protobuf.MessageOrBuilder {
4804 // optional int32 bus = 1;
4806 * <code>optional int32 bus = 1;</code>
4810 * <code>optional int32 bus = 1;</code>
4814 // optional uint32 message_id = 2;
4816 * <code>optional uint32 message_id = 2;</code>
4818 boolean hasMessageId();
4820 * <code>optional uint32 message_id = 2;</code>
4824 // optional uint32 mode = 3;
4826 * <code>optional uint32 mode = 3;</code>
4830 * <code>optional uint32 mode = 3;</code>
4834 // optional uint32 pid = 4;
4836 * <code>optional uint32 pid = 4;</code>
4840 * <code>optional uint32 pid = 4;</code>
4844 // optional bool success = 5;
4846 * <code>optional bool success = 5;</code>
4848 boolean hasSuccess();
4850 * <code>optional bool success = 5;</code>
4852 boolean getSuccess();
4854 // optional uint32 negative_response_code = 6;
4856 * <code>optional uint32 negative_response_code = 6;</code>
4858 boolean hasNegativeResponseCode();
4860 * <code>optional uint32 negative_response_code = 6;</code>
4862 int getNegativeResponseCode();
4864 // optional bytes payload = 7;
4866 * <code>optional bytes payload = 7;</code>
4869 * TODO we are capping this at 8 bytes for now - need to change when we
4870 * support multi-frame responses
4873 boolean hasPayload();
4875 * <code>optional bytes payload = 7;</code>
4878 * TODO we are capping this at 8 bytes for now - need to change when we
4879 * support multi-frame responses
4882 com.google.protobuf.ByteString getPayload();
4884 // optional double value = 8;
4886 * <code>optional double value = 8;</code>
4890 * <code>optional double value = 8;</code>
4895 * Protobuf type {@code openxc.DiagnosticResponse}
4897 public static final class DiagnosticResponse extends
4898 com.google.protobuf.GeneratedMessage
4899 implements DiagnosticResponseOrBuilder {
4900 // Use DiagnosticResponse.newBuilder() to construct.
4901 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4903 this.unknownFields = builder.getUnknownFields();
4905 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4907 private static final DiagnosticResponse defaultInstance;
4908 public static DiagnosticResponse getDefaultInstance() {
4909 return defaultInstance;
4912 public DiagnosticResponse getDefaultInstanceForType() {
4913 return defaultInstance;
4916 private final com.google.protobuf.UnknownFieldSet unknownFields;
4918 public final com.google.protobuf.UnknownFieldSet
4919 getUnknownFields() {
4920 return this.unknownFields;
4922 private DiagnosticResponse(
4923 com.google.protobuf.CodedInputStream input,
4924 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4925 throws com.google.protobuf.InvalidProtocolBufferException {
4927 int mutable_bitField0_ = 0;
4928 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4929 com.google.protobuf.UnknownFieldSet.newBuilder();
4931 boolean done = false;
4933 int tag = input.readTag();
4939 if (!parseUnknownField(input, unknownFields,
4940 extensionRegistry, tag)) {
4946 bitField0_ |= 0x00000001;
4947 bus_ = input.readInt32();
4951 bitField0_ |= 0x00000002;
4952 messageId_ = input.readUInt32();
4956 bitField0_ |= 0x00000004;
4957 mode_ = input.readUInt32();
4961 bitField0_ |= 0x00000008;
4962 pid_ = input.readUInt32();
4966 bitField0_ |= 0x00000010;
4967 success_ = input.readBool();
4971 bitField0_ |= 0x00000020;
4972 negativeResponseCode_ = input.readUInt32();
4976 bitField0_ |= 0x00000040;
4977 payload_ = input.readBytes();
4981 bitField0_ |= 0x00000080;
4982 value_ = input.readDouble();
4987 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4988 throw e.setUnfinishedMessage(this);
4989 } catch (java.io.IOException e) {
4990 throw new com.google.protobuf.InvalidProtocolBufferException(
4991 e.getMessage()).setUnfinishedMessage(this);
4993 this.unknownFields = unknownFields.build();
4994 makeExtensionsImmutable();
4997 public static final com.google.protobuf.Descriptors.Descriptor
4999 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
5002 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5003 internalGetFieldAccessorTable() {
5004 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
5005 .ensureFieldAccessorsInitialized(
5006 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
5009 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
5010 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
5011 public DiagnosticResponse parsePartialFrom(
5012 com.google.protobuf.CodedInputStream input,
5013 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5014 throws com.google.protobuf.InvalidProtocolBufferException {
5015 return new DiagnosticResponse(input, extensionRegistry);
5020 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
5024 private int bitField0_;
5025 // optional int32 bus = 1;
5026 public static final int BUS_FIELD_NUMBER = 1;
5029 * <code>optional int32 bus = 1;</code>
5031 public boolean hasBus() {
5032 return ((bitField0_ & 0x00000001) == 0x00000001);
5035 * <code>optional int32 bus = 1;</code>
5037 public int getBus() {
5041 // optional uint32 message_id = 2;
5042 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
5043 private int messageId_;
5045 * <code>optional uint32 message_id = 2;</code>
5047 public boolean hasMessageId() {
5048 return ((bitField0_ & 0x00000002) == 0x00000002);
5051 * <code>optional uint32 message_id = 2;</code>
5053 public int getMessageId() {
5057 // optional uint32 mode = 3;
5058 public static final int MODE_FIELD_NUMBER = 3;
5061 * <code>optional uint32 mode = 3;</code>
5063 public boolean hasMode() {
5064 return ((bitField0_ & 0x00000004) == 0x00000004);
5067 * <code>optional uint32 mode = 3;</code>
5069 public int getMode() {
5073 // optional uint32 pid = 4;
5074 public static final int PID_FIELD_NUMBER = 4;
5077 * <code>optional uint32 pid = 4;</code>
5079 public boolean hasPid() {
5080 return ((bitField0_ & 0x00000008) == 0x00000008);
5083 * <code>optional uint32 pid = 4;</code>
5085 public int getPid() {
5089 // optional bool success = 5;
5090 public static final int SUCCESS_FIELD_NUMBER = 5;
5091 private boolean success_;
5093 * <code>optional bool success = 5;</code>
5095 public boolean hasSuccess() {
5096 return ((bitField0_ & 0x00000010) == 0x00000010);
5099 * <code>optional bool success = 5;</code>
5101 public boolean getSuccess() {
5105 // optional uint32 negative_response_code = 6;
5106 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
5107 private int negativeResponseCode_;
5109 * <code>optional uint32 negative_response_code = 6;</code>
5111 public boolean hasNegativeResponseCode() {
5112 return ((bitField0_ & 0x00000020) == 0x00000020);
5115 * <code>optional uint32 negative_response_code = 6;</code>
5117 public int getNegativeResponseCode() {
5118 return negativeResponseCode_;
5121 // optional bytes payload = 7;
5122 public static final int PAYLOAD_FIELD_NUMBER = 7;
5123 private com.google.protobuf.ByteString payload_;
5125 * <code>optional bytes payload = 7;</code>
5128 * TODO we are capping this at 8 bytes for now - need to change when we
5129 * support multi-frame responses
5132 public boolean hasPayload() {
5133 return ((bitField0_ & 0x00000040) == 0x00000040);
5136 * <code>optional bytes payload = 7;</code>
5139 * TODO we are capping this at 8 bytes for now - need to change when we
5140 * support multi-frame responses
5143 public com.google.protobuf.ByteString getPayload() {
5147 // optional double value = 8;
5148 public static final int VALUE_FIELD_NUMBER = 8;
5149 private double value_;
5151 * <code>optional double value = 8;</code>
5153 public boolean hasValue() {
5154 return ((bitField0_ & 0x00000080) == 0x00000080);
5157 * <code>optional double value = 8;</code>
5159 public double getValue() {
5163 private void initFields() {
5169 negativeResponseCode_ = 0;
5170 payload_ = com.google.protobuf.ByteString.EMPTY;
5173 private byte memoizedIsInitialized = -1;
5174 public final boolean isInitialized() {
5175 byte isInitialized = memoizedIsInitialized;
5176 if (isInitialized != -1) return isInitialized == 1;
5178 memoizedIsInitialized = 1;
5182 public void writeTo(com.google.protobuf.CodedOutputStream output)
5183 throws java.io.IOException {
5184 getSerializedSize();
5185 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5186 output.writeInt32(1, bus_);
5188 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5189 output.writeUInt32(2, messageId_);
5191 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5192 output.writeUInt32(3, mode_);
5194 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5195 output.writeUInt32(4, pid_);
5197 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5198 output.writeBool(5, success_);
5200 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5201 output.writeUInt32(6, negativeResponseCode_);
5203 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5204 output.writeBytes(7, payload_);
5206 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5207 output.writeDouble(8, value_);
5209 getUnknownFields().writeTo(output);
5212 private int memoizedSerializedSize = -1;
5213 public int getSerializedSize() {
5214 int size = memoizedSerializedSize;
5215 if (size != -1) return size;
5218 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5219 size += com.google.protobuf.CodedOutputStream
5220 .computeInt32Size(1, bus_);
5222 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5223 size += com.google.protobuf.CodedOutputStream
5224 .computeUInt32Size(2, messageId_);
5226 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5227 size += com.google.protobuf.CodedOutputStream
5228 .computeUInt32Size(3, mode_);
5230 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5231 size += com.google.protobuf.CodedOutputStream
5232 .computeUInt32Size(4, pid_);
5234 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5235 size += com.google.protobuf.CodedOutputStream
5236 .computeBoolSize(5, success_);
5238 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5239 size += com.google.protobuf.CodedOutputStream
5240 .computeUInt32Size(6, negativeResponseCode_);
5242 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5243 size += com.google.protobuf.CodedOutputStream
5244 .computeBytesSize(7, payload_);
5246 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5247 size += com.google.protobuf.CodedOutputStream
5248 .computeDoubleSize(8, value_);
5250 size += getUnknownFields().getSerializedSize();
5251 memoizedSerializedSize = size;
5255 private static final long serialVersionUID = 0L;
5257 protected java.lang.Object writeReplace()
5258 throws java.io.ObjectStreamException {
5259 return super.writeReplace();
5262 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5263 com.google.protobuf.ByteString data)
5264 throws com.google.protobuf.InvalidProtocolBufferException {
5265 return PARSER.parseFrom(data);
5267 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5268 com.google.protobuf.ByteString data,
5269 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5270 throws com.google.protobuf.InvalidProtocolBufferException {
5271 return PARSER.parseFrom(data, extensionRegistry);
5273 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
5274 throws com.google.protobuf.InvalidProtocolBufferException {
5275 return PARSER.parseFrom(data);
5277 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5279 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5280 throws com.google.protobuf.InvalidProtocolBufferException {
5281 return PARSER.parseFrom(data, extensionRegistry);
5283 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
5284 throws java.io.IOException {
5285 return PARSER.parseFrom(input);
5287 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5288 java.io.InputStream input,
5289 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5290 throws java.io.IOException {
5291 return PARSER.parseFrom(input, extensionRegistry);
5293 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
5294 throws java.io.IOException {
5295 return PARSER.parseDelimitedFrom(input);
5297 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
5298 java.io.InputStream input,
5299 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5300 throws java.io.IOException {
5301 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5303 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5304 com.google.protobuf.CodedInputStream input)
5305 throws java.io.IOException {
5306 return PARSER.parseFrom(input);
5308 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5309 com.google.protobuf.CodedInputStream input,
5310 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5311 throws java.io.IOException {
5312 return PARSER.parseFrom(input, extensionRegistry);
5315 public static Builder newBuilder() { return Builder.create(); }
5316 public Builder newBuilderForType() { return newBuilder(); }
5317 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
5318 return newBuilder().mergeFrom(prototype);
5320 public Builder toBuilder() { return newBuilder(this); }
5323 protected Builder newBuilderForType(
5324 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5325 Builder builder = new Builder(parent);
5329 * Protobuf type {@code openxc.DiagnosticResponse}
5331 public static final class Builder extends
5332 com.google.protobuf.GeneratedMessage.Builder<Builder>
5333 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
5334 public static final com.google.protobuf.Descriptors.Descriptor
5336 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
5339 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5340 internalGetFieldAccessorTable() {
5341 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
5342 .ensureFieldAccessorsInitialized(
5343 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
5346 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
5348 maybeForceBuilderInitialization();
5352 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5354 maybeForceBuilderInitialization();
5356 private void maybeForceBuilderInitialization() {
5357 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5360 private static Builder create() {
5361 return new Builder();
5364 public Builder clear() {
5367 bitField0_ = (bitField0_ & ~0x00000001);
5369 bitField0_ = (bitField0_ & ~0x00000002);
5371 bitField0_ = (bitField0_ & ~0x00000004);
5373 bitField0_ = (bitField0_ & ~0x00000008);
5375 bitField0_ = (bitField0_ & ~0x00000010);
5376 negativeResponseCode_ = 0;
5377 bitField0_ = (bitField0_ & ~0x00000020);
5378 payload_ = com.google.protobuf.ByteString.EMPTY;
5379 bitField0_ = (bitField0_ & ~0x00000040);
5381 bitField0_ = (bitField0_ & ~0x00000080);
5385 public Builder clone() {
5386 return create().mergeFrom(buildPartial());
5389 public com.google.protobuf.Descriptors.Descriptor
5390 getDescriptorForType() {
5391 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
5394 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
5395 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
5398 public com.openxc.BinaryMessages.DiagnosticResponse build() {
5399 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
5400 if (!result.isInitialized()) {
5401 throw newUninitializedMessageException(result);
5406 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
5407 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
5408 int from_bitField0_ = bitField0_;
5409 int to_bitField0_ = 0;
5410 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5411 to_bitField0_ |= 0x00000001;
5414 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5415 to_bitField0_ |= 0x00000002;
5417 result.messageId_ = messageId_;
5418 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
5419 to_bitField0_ |= 0x00000004;
5421 result.mode_ = mode_;
5422 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
5423 to_bitField0_ |= 0x00000008;
5426 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
5427 to_bitField0_ |= 0x00000010;
5429 result.success_ = success_;
5430 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
5431 to_bitField0_ |= 0x00000020;
5433 result.negativeResponseCode_ = negativeResponseCode_;
5434 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
5435 to_bitField0_ |= 0x00000040;
5437 result.payload_ = payload_;
5438 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
5439 to_bitField0_ |= 0x00000080;
5441 result.value_ = value_;
5442 result.bitField0_ = to_bitField0_;
5447 public Builder mergeFrom(com.google.protobuf.Message other) {
5448 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
5449 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
5451 super.mergeFrom(other);
5456 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
5457 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
5458 if (other.hasBus()) {
5459 setBus(other.getBus());
5461 if (other.hasMessageId()) {
5462 setMessageId(other.getMessageId());
5464 if (other.hasMode()) {
5465 setMode(other.getMode());
5467 if (other.hasPid()) {
5468 setPid(other.getPid());
5470 if (other.hasSuccess()) {
5471 setSuccess(other.getSuccess());
5473 if (other.hasNegativeResponseCode()) {
5474 setNegativeResponseCode(other.getNegativeResponseCode());
5476 if (other.hasPayload()) {
5477 setPayload(other.getPayload());
5479 if (other.hasValue()) {
5480 setValue(other.getValue());
5482 this.mergeUnknownFields(other.getUnknownFields());
5486 public final boolean isInitialized() {
5490 public Builder mergeFrom(
5491 com.google.protobuf.CodedInputStream input,
5492 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5493 throws java.io.IOException {
5494 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
5496 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5497 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5498 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
5501 if (parsedMessage != null) {
5502 mergeFrom(parsedMessage);
5507 private int bitField0_;
5509 // optional int32 bus = 1;
5512 * <code>optional int32 bus = 1;</code>
5514 public boolean hasBus() {
5515 return ((bitField0_ & 0x00000001) == 0x00000001);
5518 * <code>optional int32 bus = 1;</code>
5520 public int getBus() {
5524 * <code>optional int32 bus = 1;</code>
5526 public Builder setBus(int value) {
5527 bitField0_ |= 0x00000001;
5533 * <code>optional int32 bus = 1;</code>
5535 public Builder clearBus() {
5536 bitField0_ = (bitField0_ & ~0x00000001);
5542 // optional uint32 message_id = 2;
5543 private int messageId_ ;
5545 * <code>optional uint32 message_id = 2;</code>
5547 public boolean hasMessageId() {
5548 return ((bitField0_ & 0x00000002) == 0x00000002);
5551 * <code>optional uint32 message_id = 2;</code>
5553 public int getMessageId() {
5557 * <code>optional uint32 message_id = 2;</code>
5559 public Builder setMessageId(int value) {
5560 bitField0_ |= 0x00000002;
5566 * <code>optional uint32 message_id = 2;</code>
5568 public Builder clearMessageId() {
5569 bitField0_ = (bitField0_ & ~0x00000002);
5575 // optional uint32 mode = 3;
5578 * <code>optional uint32 mode = 3;</code>
5580 public boolean hasMode() {
5581 return ((bitField0_ & 0x00000004) == 0x00000004);
5584 * <code>optional uint32 mode = 3;</code>
5586 public int getMode() {
5590 * <code>optional uint32 mode = 3;</code>
5592 public Builder setMode(int value) {
5593 bitField0_ |= 0x00000004;
5599 * <code>optional uint32 mode = 3;</code>
5601 public Builder clearMode() {
5602 bitField0_ = (bitField0_ & ~0x00000004);
5608 // optional uint32 pid = 4;
5611 * <code>optional uint32 pid = 4;</code>
5613 public boolean hasPid() {
5614 return ((bitField0_ & 0x00000008) == 0x00000008);
5617 * <code>optional uint32 pid = 4;</code>
5619 public int getPid() {
5623 * <code>optional uint32 pid = 4;</code>
5625 public Builder setPid(int value) {
5626 bitField0_ |= 0x00000008;
5632 * <code>optional uint32 pid = 4;</code>
5634 public Builder clearPid() {
5635 bitField0_ = (bitField0_ & ~0x00000008);
5641 // optional bool success = 5;
5642 private boolean success_ ;
5644 * <code>optional bool success = 5;</code>
5646 public boolean hasSuccess() {
5647 return ((bitField0_ & 0x00000010) == 0x00000010);
5650 * <code>optional bool success = 5;</code>
5652 public boolean getSuccess() {
5656 * <code>optional bool success = 5;</code>
5658 public Builder setSuccess(boolean value) {
5659 bitField0_ |= 0x00000010;
5665 * <code>optional bool success = 5;</code>
5667 public Builder clearSuccess() {
5668 bitField0_ = (bitField0_ & ~0x00000010);
5674 // optional uint32 negative_response_code = 6;
5675 private int negativeResponseCode_ ;
5677 * <code>optional uint32 negative_response_code = 6;</code>
5679 public boolean hasNegativeResponseCode() {
5680 return ((bitField0_ & 0x00000020) == 0x00000020);
5683 * <code>optional uint32 negative_response_code = 6;</code>
5685 public int getNegativeResponseCode() {
5686 return negativeResponseCode_;
5689 * <code>optional uint32 negative_response_code = 6;</code>
5691 public Builder setNegativeResponseCode(int value) {
5692 bitField0_ |= 0x00000020;
5693 negativeResponseCode_ = value;
5698 * <code>optional uint32 negative_response_code = 6;</code>
5700 public Builder clearNegativeResponseCode() {
5701 bitField0_ = (bitField0_ & ~0x00000020);
5702 negativeResponseCode_ = 0;
5707 // optional bytes payload = 7;
5708 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
5710 * <code>optional bytes payload = 7;</code>
5713 * TODO we are capping this at 8 bytes for now - need to change when we
5714 * support multi-frame responses
5717 public boolean hasPayload() {
5718 return ((bitField0_ & 0x00000040) == 0x00000040);
5721 * <code>optional bytes payload = 7;</code>
5724 * TODO we are capping this at 8 bytes for now - need to change when we
5725 * support multi-frame responses
5728 public com.google.protobuf.ByteString getPayload() {
5732 * <code>optional bytes payload = 7;</code>
5735 * TODO we are capping this at 8 bytes for now - need to change when we
5736 * support multi-frame responses
5739 public Builder setPayload(com.google.protobuf.ByteString value) {
5740 if (value == null) {
5741 throw new NullPointerException();
5743 bitField0_ |= 0x00000040;
5749 * <code>optional bytes payload = 7;</code>
5752 * TODO we are capping this at 8 bytes for now - need to change when we
5753 * support multi-frame responses
5756 public Builder clearPayload() {
5757 bitField0_ = (bitField0_ & ~0x00000040);
5758 payload_ = getDefaultInstance().getPayload();
5763 // optional double value = 8;
5764 private double value_ ;
5766 * <code>optional double value = 8;</code>
5768 public boolean hasValue() {
5769 return ((bitField0_ & 0x00000080) == 0x00000080);
5772 * <code>optional double value = 8;</code>
5774 public double getValue() {
5778 * <code>optional double value = 8;</code>
5780 public Builder setValue(double value) {
5781 bitField0_ |= 0x00000080;
5787 * <code>optional double value = 8;</code>
5789 public Builder clearValue() {
5790 bitField0_ = (bitField0_ & ~0x00000080);
5796 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
5800 defaultInstance = new DiagnosticResponse(true);
5801 defaultInstance.initFields();
5804 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
5807 public interface DynamicFieldOrBuilder
5808 extends com.google.protobuf.MessageOrBuilder {
5810 // optional .openxc.DynamicField.Type type = 1;
5812 * <code>optional .openxc.DynamicField.Type type = 1;</code>
5816 * <code>optional .openxc.DynamicField.Type type = 1;</code>
5818 com.openxc.BinaryMessages.DynamicField.Type getType();
5820 // optional string string_value = 2;
5822 * <code>optional string string_value = 2;</code>
5824 boolean hasStringValue();
5826 * <code>optional string string_value = 2;</code>
5828 java.lang.String getStringValue();
5830 * <code>optional string string_value = 2;</code>
5832 com.google.protobuf.ByteString
5833 getStringValueBytes();
5835 // optional double numeric_value = 3;
5837 * <code>optional double numeric_value = 3;</code>
5839 boolean hasNumericValue();
5841 * <code>optional double numeric_value = 3;</code>
5843 double getNumericValue();
5845 // optional bool boolean_value = 4;
5847 * <code>optional bool boolean_value = 4;</code>
5849 boolean hasBooleanValue();
5851 * <code>optional bool boolean_value = 4;</code>
5853 boolean getBooleanValue();
5856 * Protobuf type {@code openxc.DynamicField}
5858 public static final class DynamicField extends
5859 com.google.protobuf.GeneratedMessage
5860 implements DynamicFieldOrBuilder {
5861 // Use DynamicField.newBuilder() to construct.
5862 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5864 this.unknownFields = builder.getUnknownFields();
5866 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5868 private static final DynamicField defaultInstance;
5869 public static DynamicField getDefaultInstance() {
5870 return defaultInstance;
5873 public DynamicField getDefaultInstanceForType() {
5874 return defaultInstance;
5877 private final com.google.protobuf.UnknownFieldSet unknownFields;
5879 public final com.google.protobuf.UnknownFieldSet
5880 getUnknownFields() {
5881 return this.unknownFields;
5883 private DynamicField(
5884 com.google.protobuf.CodedInputStream input,
5885 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5886 throws com.google.protobuf.InvalidProtocolBufferException {
5888 int mutable_bitField0_ = 0;
5889 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5890 com.google.protobuf.UnknownFieldSet.newBuilder();
5892 boolean done = false;
5894 int tag = input.readTag();
5900 if (!parseUnknownField(input, unknownFields,
5901 extensionRegistry, tag)) {
5907 int rawValue = input.readEnum();
5908 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
5909 if (value == null) {
5910 unknownFields.mergeVarintField(1, rawValue);
5912 bitField0_ |= 0x00000001;
5918 bitField0_ |= 0x00000002;
5919 stringValue_ = input.readBytes();
5923 bitField0_ |= 0x00000004;
5924 numericValue_ = input.readDouble();
5928 bitField0_ |= 0x00000008;
5929 booleanValue_ = input.readBool();
5934 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5935 throw e.setUnfinishedMessage(this);
5936 } catch (java.io.IOException e) {
5937 throw new com.google.protobuf.InvalidProtocolBufferException(
5938 e.getMessage()).setUnfinishedMessage(this);
5940 this.unknownFields = unknownFields.build();
5941 makeExtensionsImmutable();
5944 public static final com.google.protobuf.Descriptors.Descriptor
5946 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
5949 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5950 internalGetFieldAccessorTable() {
5951 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
5952 .ensureFieldAccessorsInitialized(
5953 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
5956 public static com.google.protobuf.Parser<DynamicField> PARSER =
5957 new com.google.protobuf.AbstractParser<DynamicField>() {
5958 public DynamicField parsePartialFrom(
5959 com.google.protobuf.CodedInputStream input,
5960 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5961 throws com.google.protobuf.InvalidProtocolBufferException {
5962 return new DynamicField(input, extensionRegistry);
5967 public com.google.protobuf.Parser<DynamicField> getParserForType() {
5972 * Protobuf enum {@code openxc.DynamicField.Type}
5975 implements com.google.protobuf.ProtocolMessageEnum {
5977 * <code>STRING = 1;</code>
5981 * <code>NUM = 2;</code>
5985 * <code>BOOL = 3;</code>
5991 * <code>STRING = 1;</code>
5993 public static final int STRING_VALUE = 1;
5995 * <code>NUM = 2;</code>
5997 public static final int NUM_VALUE = 2;
5999 * <code>BOOL = 3;</code>
6001 public static final int BOOL_VALUE = 3;
6004 public final int getNumber() { return value; }
6006 public static Type valueOf(int value) {
6008 case 1: return STRING;
6010 case 3: return BOOL;
6011 default: return null;
6015 public static com.google.protobuf.Internal.EnumLiteMap<Type>
6016 internalGetValueMap() {
6017 return internalValueMap;
6019 private static com.google.protobuf.Internal.EnumLiteMap<Type>
6021 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
6022 public Type findValueByNumber(int number) {
6023 return Type.valueOf(number);
6027 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6028 getValueDescriptor() {
6029 return getDescriptor().getValues().get(index);
6031 public final com.google.protobuf.Descriptors.EnumDescriptor
6032 getDescriptorForType() {
6033 return getDescriptor();
6035 public static final com.google.protobuf.Descriptors.EnumDescriptor
6037 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
6040 private static final Type[] VALUES = values();
6042 public static Type valueOf(
6043 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
6044 if (desc.getType() != getDescriptor()) {
6045 throw new java.lang.IllegalArgumentException(
6046 "EnumValueDescriptor is not for this type.");
6048 return VALUES[desc.getIndex()];
6051 private final int index;
6052 private final int value;
6054 private Type(int index, int value) {
6059 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
6062 private int bitField0_;
6063 // optional .openxc.DynamicField.Type type = 1;
6064 public static final int TYPE_FIELD_NUMBER = 1;
6065 private com.openxc.BinaryMessages.DynamicField.Type type_;
6067 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6069 public boolean hasType() {
6070 return ((bitField0_ & 0x00000001) == 0x00000001);
6073 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6075 public com.openxc.BinaryMessages.DynamicField.Type getType() {
6079 // optional string string_value = 2;
6080 public static final int STRING_VALUE_FIELD_NUMBER = 2;
6081 private java.lang.Object stringValue_;
6083 * <code>optional string string_value = 2;</code>
6085 public boolean hasStringValue() {
6086 return ((bitField0_ & 0x00000002) == 0x00000002);
6089 * <code>optional string string_value = 2;</code>
6091 public java.lang.String getStringValue() {
6092 java.lang.Object ref = stringValue_;
6093 if (ref instanceof java.lang.String) {
6094 return (java.lang.String) ref;
6096 com.google.protobuf.ByteString bs =
6097 (com.google.protobuf.ByteString) ref;
6098 java.lang.String s = bs.toStringUtf8();
6099 if (bs.isValidUtf8()) {
6106 * <code>optional string string_value = 2;</code>
6108 public com.google.protobuf.ByteString
6109 getStringValueBytes() {
6110 java.lang.Object ref = stringValue_;
6111 if (ref instanceof java.lang.String) {
6112 com.google.protobuf.ByteString b =
6113 com.google.protobuf.ByteString.copyFromUtf8(
6114 (java.lang.String) ref);
6118 return (com.google.protobuf.ByteString) ref;
6122 // optional double numeric_value = 3;
6123 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
6124 private double numericValue_;
6126 * <code>optional double numeric_value = 3;</code>
6128 public boolean hasNumericValue() {
6129 return ((bitField0_ & 0x00000004) == 0x00000004);
6132 * <code>optional double numeric_value = 3;</code>
6134 public double getNumericValue() {
6135 return numericValue_;
6138 // optional bool boolean_value = 4;
6139 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
6140 private boolean booleanValue_;
6142 * <code>optional bool boolean_value = 4;</code>
6144 public boolean hasBooleanValue() {
6145 return ((bitField0_ & 0x00000008) == 0x00000008);
6148 * <code>optional bool boolean_value = 4;</code>
6150 public boolean getBooleanValue() {
6151 return booleanValue_;
6154 private void initFields() {
6155 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6158 booleanValue_ = false;
6160 private byte memoizedIsInitialized = -1;
6161 public final boolean isInitialized() {
6162 byte isInitialized = memoizedIsInitialized;
6163 if (isInitialized != -1) return isInitialized == 1;
6165 memoizedIsInitialized = 1;
6169 public void writeTo(com.google.protobuf.CodedOutputStream output)
6170 throws java.io.IOException {
6171 getSerializedSize();
6172 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6173 output.writeEnum(1, type_.getNumber());
6175 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6176 output.writeBytes(2, getStringValueBytes());
6178 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6179 output.writeDouble(3, numericValue_);
6181 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6182 output.writeBool(4, booleanValue_);
6184 getUnknownFields().writeTo(output);
6187 private int memoizedSerializedSize = -1;
6188 public int getSerializedSize() {
6189 int size = memoizedSerializedSize;
6190 if (size != -1) return size;
6193 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6194 size += com.google.protobuf.CodedOutputStream
6195 .computeEnumSize(1, type_.getNumber());
6197 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6198 size += com.google.protobuf.CodedOutputStream
6199 .computeBytesSize(2, getStringValueBytes());
6201 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6202 size += com.google.protobuf.CodedOutputStream
6203 .computeDoubleSize(3, numericValue_);
6205 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6206 size += com.google.protobuf.CodedOutputStream
6207 .computeBoolSize(4, booleanValue_);
6209 size += getUnknownFields().getSerializedSize();
6210 memoizedSerializedSize = size;
6214 private static final long serialVersionUID = 0L;
6216 protected java.lang.Object writeReplace()
6217 throws java.io.ObjectStreamException {
6218 return super.writeReplace();
6221 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6222 com.google.protobuf.ByteString data)
6223 throws com.google.protobuf.InvalidProtocolBufferException {
6224 return PARSER.parseFrom(data);
6226 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6227 com.google.protobuf.ByteString data,
6228 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6229 throws com.google.protobuf.InvalidProtocolBufferException {
6230 return PARSER.parseFrom(data, extensionRegistry);
6232 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
6233 throws com.google.protobuf.InvalidProtocolBufferException {
6234 return PARSER.parseFrom(data);
6236 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6238 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6239 throws com.google.protobuf.InvalidProtocolBufferException {
6240 return PARSER.parseFrom(data, extensionRegistry);
6242 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
6243 throws java.io.IOException {
6244 return PARSER.parseFrom(input);
6246 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6247 java.io.InputStream input,
6248 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6249 throws java.io.IOException {
6250 return PARSER.parseFrom(input, extensionRegistry);
6252 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
6253 throws java.io.IOException {
6254 return PARSER.parseDelimitedFrom(input);
6256 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
6257 java.io.InputStream input,
6258 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6259 throws java.io.IOException {
6260 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6262 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6263 com.google.protobuf.CodedInputStream input)
6264 throws java.io.IOException {
6265 return PARSER.parseFrom(input);
6267 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6268 com.google.protobuf.CodedInputStream input,
6269 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6270 throws java.io.IOException {
6271 return PARSER.parseFrom(input, extensionRegistry);
6274 public static Builder newBuilder() { return Builder.create(); }
6275 public Builder newBuilderForType() { return newBuilder(); }
6276 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
6277 return newBuilder().mergeFrom(prototype);
6279 public Builder toBuilder() { return newBuilder(this); }
6282 protected Builder newBuilderForType(
6283 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6284 Builder builder = new Builder(parent);
6288 * Protobuf type {@code openxc.DynamicField}
6290 public static final class Builder extends
6291 com.google.protobuf.GeneratedMessage.Builder<Builder>
6292 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
6293 public static final com.google.protobuf.Descriptors.Descriptor
6295 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
6298 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6299 internalGetFieldAccessorTable() {
6300 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
6301 .ensureFieldAccessorsInitialized(
6302 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
6305 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
6307 maybeForceBuilderInitialization();
6311 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6313 maybeForceBuilderInitialization();
6315 private void maybeForceBuilderInitialization() {
6316 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6319 private static Builder create() {
6320 return new Builder();
6323 public Builder clear() {
6325 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6326 bitField0_ = (bitField0_ & ~0x00000001);
6328 bitField0_ = (bitField0_ & ~0x00000002);
6330 bitField0_ = (bitField0_ & ~0x00000004);
6331 booleanValue_ = false;
6332 bitField0_ = (bitField0_ & ~0x00000008);
6336 public Builder clone() {
6337 return create().mergeFrom(buildPartial());
6340 public com.google.protobuf.Descriptors.Descriptor
6341 getDescriptorForType() {
6342 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
6345 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
6346 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
6349 public com.openxc.BinaryMessages.DynamicField build() {
6350 com.openxc.BinaryMessages.DynamicField result = buildPartial();
6351 if (!result.isInitialized()) {
6352 throw newUninitializedMessageException(result);
6357 public com.openxc.BinaryMessages.DynamicField buildPartial() {
6358 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
6359 int from_bitField0_ = bitField0_;
6360 int to_bitField0_ = 0;
6361 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6362 to_bitField0_ |= 0x00000001;
6364 result.type_ = type_;
6365 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6366 to_bitField0_ |= 0x00000002;
6368 result.stringValue_ = stringValue_;
6369 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6370 to_bitField0_ |= 0x00000004;
6372 result.numericValue_ = numericValue_;
6373 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
6374 to_bitField0_ |= 0x00000008;
6376 result.booleanValue_ = booleanValue_;
6377 result.bitField0_ = to_bitField0_;
6382 public Builder mergeFrom(com.google.protobuf.Message other) {
6383 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
6384 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
6386 super.mergeFrom(other);
6391 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
6392 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
6393 if (other.hasType()) {
6394 setType(other.getType());
6396 if (other.hasStringValue()) {
6397 bitField0_ |= 0x00000002;
6398 stringValue_ = other.stringValue_;
6401 if (other.hasNumericValue()) {
6402 setNumericValue(other.getNumericValue());
6404 if (other.hasBooleanValue()) {
6405 setBooleanValue(other.getBooleanValue());
6407 this.mergeUnknownFields(other.getUnknownFields());
6411 public final boolean isInitialized() {
6415 public Builder mergeFrom(
6416 com.google.protobuf.CodedInputStream input,
6417 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6418 throws java.io.IOException {
6419 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
6421 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6422 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6423 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
6426 if (parsedMessage != null) {
6427 mergeFrom(parsedMessage);
6432 private int bitField0_;
6434 // optional .openxc.DynamicField.Type type = 1;
6435 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6437 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6439 public boolean hasType() {
6440 return ((bitField0_ & 0x00000001) == 0x00000001);
6443 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6445 public com.openxc.BinaryMessages.DynamicField.Type getType() {
6449 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6451 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
6452 if (value == null) {
6453 throw new NullPointerException();
6455 bitField0_ |= 0x00000001;
6461 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6463 public Builder clearType() {
6464 bitField0_ = (bitField0_ & ~0x00000001);
6465 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6470 // optional string string_value = 2;
6471 private java.lang.Object stringValue_ = "";
6473 * <code>optional string string_value = 2;</code>
6475 public boolean hasStringValue() {
6476 return ((bitField0_ & 0x00000002) == 0x00000002);
6479 * <code>optional string string_value = 2;</code>
6481 public java.lang.String getStringValue() {
6482 java.lang.Object ref = stringValue_;
6483 if (!(ref instanceof java.lang.String)) {
6484 java.lang.String s = ((com.google.protobuf.ByteString) ref)
6489 return (java.lang.String) ref;
6493 * <code>optional string string_value = 2;</code>
6495 public com.google.protobuf.ByteString
6496 getStringValueBytes() {
6497 java.lang.Object ref = stringValue_;
6498 if (ref instanceof String) {
6499 com.google.protobuf.ByteString b =
6500 com.google.protobuf.ByteString.copyFromUtf8(
6501 (java.lang.String) ref);
6505 return (com.google.protobuf.ByteString) ref;
6509 * <code>optional string string_value = 2;</code>
6511 public Builder setStringValue(
6512 java.lang.String value) {
6513 if (value == null) {
6514 throw new NullPointerException();
6516 bitField0_ |= 0x00000002;
6517 stringValue_ = value;
6522 * <code>optional string string_value = 2;</code>
6524 public Builder clearStringValue() {
6525 bitField0_ = (bitField0_ & ~0x00000002);
6526 stringValue_ = getDefaultInstance().getStringValue();
6531 * <code>optional string string_value = 2;</code>
6533 public Builder setStringValueBytes(
6534 com.google.protobuf.ByteString value) {
6535 if (value == null) {
6536 throw new NullPointerException();
6538 bitField0_ |= 0x00000002;
6539 stringValue_ = value;
6544 // optional double numeric_value = 3;
6545 private double numericValue_ ;
6547 * <code>optional double numeric_value = 3;</code>
6549 public boolean hasNumericValue() {
6550 return ((bitField0_ & 0x00000004) == 0x00000004);
6553 * <code>optional double numeric_value = 3;</code>
6555 public double getNumericValue() {
6556 return numericValue_;
6559 * <code>optional double numeric_value = 3;</code>
6561 public Builder setNumericValue(double value) {
6562 bitField0_ |= 0x00000004;
6563 numericValue_ = value;
6568 * <code>optional double numeric_value = 3;</code>
6570 public Builder clearNumericValue() {
6571 bitField0_ = (bitField0_ & ~0x00000004);
6577 // optional bool boolean_value = 4;
6578 private boolean booleanValue_ ;
6580 * <code>optional bool boolean_value = 4;</code>
6582 public boolean hasBooleanValue() {
6583 return ((bitField0_ & 0x00000008) == 0x00000008);
6586 * <code>optional bool boolean_value = 4;</code>
6588 public boolean getBooleanValue() {
6589 return booleanValue_;
6592 * <code>optional bool boolean_value = 4;</code>
6594 public Builder setBooleanValue(boolean value) {
6595 bitField0_ |= 0x00000008;
6596 booleanValue_ = value;
6601 * <code>optional bool boolean_value = 4;</code>
6603 public Builder clearBooleanValue() {
6604 bitField0_ = (bitField0_ & ~0x00000008);
6605 booleanValue_ = false;
6610 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
6614 defaultInstance = new DynamicField(true);
6615 defaultInstance.initFields();
6618 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
6621 public interface TranslatedMessageOrBuilder
6622 extends com.google.protobuf.MessageOrBuilder {
6624 // optional .openxc.TranslatedMessage.Type type = 1;
6626 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6630 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6632 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
6634 // optional string name = 2;
6636 * <code>optional string name = 2;</code>
6640 * <code>optional string name = 2;</code>
6642 java.lang.String getName();
6644 * <code>optional string name = 2;</code>
6646 com.google.protobuf.ByteString
6649 // optional .openxc.DynamicField value = 3;
6651 * <code>optional .openxc.DynamicField value = 3;</code>
6655 * <code>optional .openxc.DynamicField value = 3;</code>
6657 com.openxc.BinaryMessages.DynamicField getValue();
6659 * <code>optional .openxc.DynamicField value = 3;</code>
6661 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
6663 // optional .openxc.DynamicField event = 4;
6665 * <code>optional .openxc.DynamicField event = 4;</code>
6669 * <code>optional .openxc.DynamicField event = 4;</code>
6671 com.openxc.BinaryMessages.DynamicField getEvent();
6673 * <code>optional .openxc.DynamicField event = 4;</code>
6675 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
6678 * Protobuf type {@code openxc.TranslatedMessage}
6680 public static final class TranslatedMessage extends
6681 com.google.protobuf.GeneratedMessage
6682 implements TranslatedMessageOrBuilder {
6683 // Use TranslatedMessage.newBuilder() to construct.
6684 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6686 this.unknownFields = builder.getUnknownFields();
6688 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6690 private static final TranslatedMessage defaultInstance;
6691 public static TranslatedMessage getDefaultInstance() {
6692 return defaultInstance;
6695 public TranslatedMessage getDefaultInstanceForType() {
6696 return defaultInstance;
6699 private final com.google.protobuf.UnknownFieldSet unknownFields;
6701 public final com.google.protobuf.UnknownFieldSet
6702 getUnknownFields() {
6703 return this.unknownFields;
6705 private TranslatedMessage(
6706 com.google.protobuf.CodedInputStream input,
6707 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6708 throws com.google.protobuf.InvalidProtocolBufferException {
6710 int mutable_bitField0_ = 0;
6711 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6712 com.google.protobuf.UnknownFieldSet.newBuilder();
6714 boolean done = false;
6716 int tag = input.readTag();
6722 if (!parseUnknownField(input, unknownFields,
6723 extensionRegistry, tag)) {
6729 int rawValue = input.readEnum();
6730 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
6731 if (value == null) {
6732 unknownFields.mergeVarintField(1, rawValue);
6734 bitField0_ |= 0x00000001;
6740 bitField0_ |= 0x00000002;
6741 name_ = input.readBytes();
6745 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
6746 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6747 subBuilder = value_.toBuilder();
6749 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
6750 if (subBuilder != null) {
6751 subBuilder.mergeFrom(value_);
6752 value_ = subBuilder.buildPartial();
6754 bitField0_ |= 0x00000004;
6758 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
6759 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6760 subBuilder = event_.toBuilder();
6762 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
6763 if (subBuilder != null) {
6764 subBuilder.mergeFrom(event_);
6765 event_ = subBuilder.buildPartial();
6767 bitField0_ |= 0x00000008;
6772 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6773 throw e.setUnfinishedMessage(this);
6774 } catch (java.io.IOException e) {
6775 throw new com.google.protobuf.InvalidProtocolBufferException(
6776 e.getMessage()).setUnfinishedMessage(this);
6778 this.unknownFields = unknownFields.build();
6779 makeExtensionsImmutable();
6782 public static final com.google.protobuf.Descriptors.Descriptor
6784 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
6787 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6788 internalGetFieldAccessorTable() {
6789 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
6790 .ensureFieldAccessorsInitialized(
6791 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
6794 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
6795 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
6796 public TranslatedMessage parsePartialFrom(
6797 com.google.protobuf.CodedInputStream input,
6798 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6799 throws com.google.protobuf.InvalidProtocolBufferException {
6800 return new TranslatedMessage(input, extensionRegistry);
6805 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
6810 * Protobuf enum {@code openxc.TranslatedMessage.Type}
6813 implements com.google.protobuf.ProtocolMessageEnum {
6815 * <code>STRING = 1;</code>
6819 * <code>NUM = 2;</code>
6823 * <code>BOOL = 3;</code>
6827 * <code>EVENTED_STRING = 4;</code>
6829 EVENTED_STRING(3, 4),
6831 * <code>EVENTED_NUM = 5;</code>
6835 * <code>EVENTED_BOOL = 6;</code>
6841 * <code>STRING = 1;</code>
6843 public static final int STRING_VALUE = 1;
6845 * <code>NUM = 2;</code>
6847 public static final int NUM_VALUE = 2;
6849 * <code>BOOL = 3;</code>
6851 public static final int BOOL_VALUE = 3;
6853 * <code>EVENTED_STRING = 4;</code>
6855 public static final int EVENTED_STRING_VALUE = 4;
6857 * <code>EVENTED_NUM = 5;</code>
6859 public static final int EVENTED_NUM_VALUE = 5;
6861 * <code>EVENTED_BOOL = 6;</code>
6863 public static final int EVENTED_BOOL_VALUE = 6;
6866 public final int getNumber() { return value; }
6868 public static Type valueOf(int value) {
6870 case 1: return STRING;
6872 case 3: return BOOL;
6873 case 4: return EVENTED_STRING;
6874 case 5: return EVENTED_NUM;
6875 case 6: return EVENTED_BOOL;
6876 default: return null;
6880 public static com.google.protobuf.Internal.EnumLiteMap<Type>
6881 internalGetValueMap() {
6882 return internalValueMap;
6884 private static com.google.protobuf.Internal.EnumLiteMap<Type>
6886 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
6887 public Type findValueByNumber(int number) {
6888 return Type.valueOf(number);
6892 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6893 getValueDescriptor() {
6894 return getDescriptor().getValues().get(index);
6896 public final com.google.protobuf.Descriptors.EnumDescriptor
6897 getDescriptorForType() {
6898 return getDescriptor();
6900 public static final com.google.protobuf.Descriptors.EnumDescriptor
6902 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
6905 private static final Type[] VALUES = values();
6907 public static Type valueOf(
6908 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
6909 if (desc.getType() != getDescriptor()) {
6910 throw new java.lang.IllegalArgumentException(
6911 "EnumValueDescriptor is not for this type.");
6913 return VALUES[desc.getIndex()];
6916 private final int index;
6917 private final int value;
6919 private Type(int index, int value) {
6924 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
6927 private int bitField0_;
6928 // optional .openxc.TranslatedMessage.Type type = 1;
6929 public static final int TYPE_FIELD_NUMBER = 1;
6930 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
6932 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6934 public boolean hasType() {
6935 return ((bitField0_ & 0x00000001) == 0x00000001);
6938 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6940 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
6944 // optional string name = 2;
6945 public static final int NAME_FIELD_NUMBER = 2;
6946 private java.lang.Object name_;
6948 * <code>optional string name = 2;</code>
6950 public boolean hasName() {
6951 return ((bitField0_ & 0x00000002) == 0x00000002);
6954 * <code>optional string name = 2;</code>
6956 public java.lang.String getName() {
6957 java.lang.Object ref = name_;
6958 if (ref instanceof java.lang.String) {
6959 return (java.lang.String) ref;
6961 com.google.protobuf.ByteString bs =
6962 (com.google.protobuf.ByteString) ref;
6963 java.lang.String s = bs.toStringUtf8();
6964 if (bs.isValidUtf8()) {
6971 * <code>optional string name = 2;</code>
6973 public com.google.protobuf.ByteString
6975 java.lang.Object ref = name_;
6976 if (ref instanceof java.lang.String) {
6977 com.google.protobuf.ByteString b =
6978 com.google.protobuf.ByteString.copyFromUtf8(
6979 (java.lang.String) ref);
6983 return (com.google.protobuf.ByteString) ref;
6987 // optional .openxc.DynamicField value = 3;
6988 public static final int VALUE_FIELD_NUMBER = 3;
6989 private com.openxc.BinaryMessages.DynamicField value_;
6991 * <code>optional .openxc.DynamicField value = 3;</code>
6993 public boolean hasValue() {
6994 return ((bitField0_ & 0x00000004) == 0x00000004);
6997 * <code>optional .openxc.DynamicField value = 3;</code>
6999 public com.openxc.BinaryMessages.DynamicField getValue() {
7003 * <code>optional .openxc.DynamicField value = 3;</code>
7005 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
7009 // optional .openxc.DynamicField event = 4;
7010 public static final int EVENT_FIELD_NUMBER = 4;
7011 private com.openxc.BinaryMessages.DynamicField event_;
7013 * <code>optional .openxc.DynamicField event = 4;</code>
7015 public boolean hasEvent() {
7016 return ((bitField0_ & 0x00000008) == 0x00000008);
7019 * <code>optional .openxc.DynamicField event = 4;</code>
7021 public com.openxc.BinaryMessages.DynamicField getEvent() {
7025 * <code>optional .openxc.DynamicField event = 4;</code>
7027 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
7031 private void initFields() {
7032 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7034 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7035 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7037 private byte memoizedIsInitialized = -1;
7038 public final boolean isInitialized() {
7039 byte isInitialized = memoizedIsInitialized;
7040 if (isInitialized != -1) return isInitialized == 1;
7042 memoizedIsInitialized = 1;
7046 public void writeTo(com.google.protobuf.CodedOutputStream output)
7047 throws java.io.IOException {
7048 getSerializedSize();
7049 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7050 output.writeEnum(1, type_.getNumber());
7052 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7053 output.writeBytes(2, getNameBytes());
7055 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7056 output.writeMessage(3, value_);
7058 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7059 output.writeMessage(4, event_);
7061 getUnknownFields().writeTo(output);
7064 private int memoizedSerializedSize = -1;
7065 public int getSerializedSize() {
7066 int size = memoizedSerializedSize;
7067 if (size != -1) return size;
7070 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7071 size += com.google.protobuf.CodedOutputStream
7072 .computeEnumSize(1, type_.getNumber());
7074 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7075 size += com.google.protobuf.CodedOutputStream
7076 .computeBytesSize(2, getNameBytes());
7078 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7079 size += com.google.protobuf.CodedOutputStream
7080 .computeMessageSize(3, value_);
7082 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7083 size += com.google.protobuf.CodedOutputStream
7084 .computeMessageSize(4, event_);
7086 size += getUnknownFields().getSerializedSize();
7087 memoizedSerializedSize = size;
7091 private static final long serialVersionUID = 0L;
7093 protected java.lang.Object writeReplace()
7094 throws java.io.ObjectStreamException {
7095 return super.writeReplace();
7098 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7099 com.google.protobuf.ByteString data)
7100 throws com.google.protobuf.InvalidProtocolBufferException {
7101 return PARSER.parseFrom(data);
7103 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7104 com.google.protobuf.ByteString data,
7105 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7106 throws com.google.protobuf.InvalidProtocolBufferException {
7107 return PARSER.parseFrom(data, extensionRegistry);
7109 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
7110 throws com.google.protobuf.InvalidProtocolBufferException {
7111 return PARSER.parseFrom(data);
7113 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7115 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7116 throws com.google.protobuf.InvalidProtocolBufferException {
7117 return PARSER.parseFrom(data, extensionRegistry);
7119 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
7120 throws java.io.IOException {
7121 return PARSER.parseFrom(input);
7123 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7124 java.io.InputStream input,
7125 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7126 throws java.io.IOException {
7127 return PARSER.parseFrom(input, extensionRegistry);
7129 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
7130 throws java.io.IOException {
7131 return PARSER.parseDelimitedFrom(input);
7133 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
7134 java.io.InputStream input,
7135 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7136 throws java.io.IOException {
7137 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7139 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7140 com.google.protobuf.CodedInputStream input)
7141 throws java.io.IOException {
7142 return PARSER.parseFrom(input);
7144 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7145 com.google.protobuf.CodedInputStream input,
7146 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7147 throws java.io.IOException {
7148 return PARSER.parseFrom(input, extensionRegistry);
7151 public static Builder newBuilder() { return Builder.create(); }
7152 public Builder newBuilderForType() { return newBuilder(); }
7153 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
7154 return newBuilder().mergeFrom(prototype);
7156 public Builder toBuilder() { return newBuilder(this); }
7159 protected Builder newBuilderForType(
7160 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7161 Builder builder = new Builder(parent);
7165 * Protobuf type {@code openxc.TranslatedMessage}
7167 public static final class Builder extends
7168 com.google.protobuf.GeneratedMessage.Builder<Builder>
7169 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
7170 public static final com.google.protobuf.Descriptors.Descriptor
7172 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
7175 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7176 internalGetFieldAccessorTable() {
7177 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
7178 .ensureFieldAccessorsInitialized(
7179 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
7182 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
7184 maybeForceBuilderInitialization();
7188 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7190 maybeForceBuilderInitialization();
7192 private void maybeForceBuilderInitialization() {
7193 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7194 getValueFieldBuilder();
7195 getEventFieldBuilder();
7198 private static Builder create() {
7199 return new Builder();
7202 public Builder clear() {
7204 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7205 bitField0_ = (bitField0_ & ~0x00000001);
7207 bitField0_ = (bitField0_ & ~0x00000002);
7208 if (valueBuilder_ == null) {
7209 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7211 valueBuilder_.clear();
7213 bitField0_ = (bitField0_ & ~0x00000004);
7214 if (eventBuilder_ == null) {
7215 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7217 eventBuilder_.clear();
7219 bitField0_ = (bitField0_ & ~0x00000008);
7223 public Builder clone() {
7224 return create().mergeFrom(buildPartial());
7227 public com.google.protobuf.Descriptors.Descriptor
7228 getDescriptorForType() {
7229 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
7232 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
7233 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
7236 public com.openxc.BinaryMessages.TranslatedMessage build() {
7237 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
7238 if (!result.isInitialized()) {
7239 throw newUninitializedMessageException(result);
7244 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
7245 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
7246 int from_bitField0_ = bitField0_;
7247 int to_bitField0_ = 0;
7248 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7249 to_bitField0_ |= 0x00000001;
7251 result.type_ = type_;
7252 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7253 to_bitField0_ |= 0x00000002;
7255 result.name_ = name_;
7256 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7257 to_bitField0_ |= 0x00000004;
7259 if (valueBuilder_ == null) {
7260 result.value_ = value_;
7262 result.value_ = valueBuilder_.build();
7264 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7265 to_bitField0_ |= 0x00000008;
7267 if (eventBuilder_ == null) {
7268 result.event_ = event_;
7270 result.event_ = eventBuilder_.build();
7272 result.bitField0_ = to_bitField0_;
7277 public Builder mergeFrom(com.google.protobuf.Message other) {
7278 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
7279 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
7281 super.mergeFrom(other);
7286 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
7287 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
7288 if (other.hasType()) {
7289 setType(other.getType());
7291 if (other.hasName()) {
7292 bitField0_ |= 0x00000002;
7293 name_ = other.name_;
7296 if (other.hasValue()) {
7297 mergeValue(other.getValue());
7299 if (other.hasEvent()) {
7300 mergeEvent(other.getEvent());
7302 this.mergeUnknownFields(other.getUnknownFields());
7306 public final boolean isInitialized() {
7310 public Builder mergeFrom(
7311 com.google.protobuf.CodedInputStream input,
7312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7313 throws java.io.IOException {
7314 com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null;
7316 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7317 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7318 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
7321 if (parsedMessage != null) {
7322 mergeFrom(parsedMessage);
7327 private int bitField0_;
7329 // optional .openxc.TranslatedMessage.Type type = 1;
7330 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7332 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7334 public boolean hasType() {
7335 return ((bitField0_ & 0x00000001) == 0x00000001);
7338 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7340 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
7344 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7346 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
7347 if (value == null) {
7348 throw new NullPointerException();
7350 bitField0_ |= 0x00000001;
7356 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7358 public Builder clearType() {
7359 bitField0_ = (bitField0_ & ~0x00000001);
7360 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7365 // optional string name = 2;
7366 private java.lang.Object name_ = "";
7368 * <code>optional string name = 2;</code>
7370 public boolean hasName() {
7371 return ((bitField0_ & 0x00000002) == 0x00000002);
7374 * <code>optional string name = 2;</code>
7376 public java.lang.String getName() {
7377 java.lang.Object ref = name_;
7378 if (!(ref instanceof java.lang.String)) {
7379 java.lang.String s = ((com.google.protobuf.ByteString) ref)
7384 return (java.lang.String) ref;
7388 * <code>optional string name = 2;</code>
7390 public com.google.protobuf.ByteString
7392 java.lang.Object ref = name_;
7393 if (ref instanceof String) {
7394 com.google.protobuf.ByteString b =
7395 com.google.protobuf.ByteString.copyFromUtf8(
7396 (java.lang.String) ref);
7400 return (com.google.protobuf.ByteString) ref;
7404 * <code>optional string name = 2;</code>
7406 public Builder setName(
7407 java.lang.String value) {
7408 if (value == null) {
7409 throw new NullPointerException();
7411 bitField0_ |= 0x00000002;
7417 * <code>optional string name = 2;</code>
7419 public Builder clearName() {
7420 bitField0_ = (bitField0_ & ~0x00000002);
7421 name_ = getDefaultInstance().getName();
7426 * <code>optional string name = 2;</code>
7428 public Builder setNameBytes(
7429 com.google.protobuf.ByteString value) {
7430 if (value == null) {
7431 throw new NullPointerException();
7433 bitField0_ |= 0x00000002;
7439 // optional .openxc.DynamicField value = 3;
7440 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7441 private com.google.protobuf.SingleFieldBuilder<
7442 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
7444 * <code>optional .openxc.DynamicField value = 3;</code>
7446 public boolean hasValue() {
7447 return ((bitField0_ & 0x00000004) == 0x00000004);
7450 * <code>optional .openxc.DynamicField value = 3;</code>
7452 public com.openxc.BinaryMessages.DynamicField getValue() {
7453 if (valueBuilder_ == null) {
7456 return valueBuilder_.getMessage();
7460 * <code>optional .openxc.DynamicField value = 3;</code>
7462 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
7463 if (valueBuilder_ == null) {
7464 if (value == null) {
7465 throw new NullPointerException();
7470 valueBuilder_.setMessage(value);
7472 bitField0_ |= 0x00000004;
7476 * <code>optional .openxc.DynamicField value = 3;</code>
7478 public Builder setValue(
7479 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
7480 if (valueBuilder_ == null) {
7481 value_ = builderForValue.build();
7484 valueBuilder_.setMessage(builderForValue.build());
7486 bitField0_ |= 0x00000004;
7490 * <code>optional .openxc.DynamicField value = 3;</code>
7492 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
7493 if (valueBuilder_ == null) {
7494 if (((bitField0_ & 0x00000004) == 0x00000004) &&
7495 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
7497 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
7503 valueBuilder_.mergeFrom(value);
7505 bitField0_ |= 0x00000004;
7509 * <code>optional .openxc.DynamicField value = 3;</code>
7511 public Builder clearValue() {
7512 if (valueBuilder_ == null) {
7513 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7516 valueBuilder_.clear();
7518 bitField0_ = (bitField0_ & ~0x00000004);
7522 * <code>optional .openxc.DynamicField value = 3;</code>
7524 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
7525 bitField0_ |= 0x00000004;
7527 return getValueFieldBuilder().getBuilder();
7530 * <code>optional .openxc.DynamicField value = 3;</code>
7532 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
7533 if (valueBuilder_ != null) {
7534 return valueBuilder_.getMessageOrBuilder();
7540 * <code>optional .openxc.DynamicField value = 3;</code>
7542 private com.google.protobuf.SingleFieldBuilder<
7543 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
7544 getValueFieldBuilder() {
7545 if (valueBuilder_ == null) {
7546 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7547 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
7549 getParentForChildren(),
7553 return valueBuilder_;
7556 // optional .openxc.DynamicField event = 4;
7557 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7558 private com.google.protobuf.SingleFieldBuilder<
7559 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
7561 * <code>optional .openxc.DynamicField event = 4;</code>
7563 public boolean hasEvent() {
7564 return ((bitField0_ & 0x00000008) == 0x00000008);
7567 * <code>optional .openxc.DynamicField event = 4;</code>
7569 public com.openxc.BinaryMessages.DynamicField getEvent() {
7570 if (eventBuilder_ == null) {
7573 return eventBuilder_.getMessage();
7577 * <code>optional .openxc.DynamicField event = 4;</code>
7579 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
7580 if (eventBuilder_ == null) {
7581 if (value == null) {
7582 throw new NullPointerException();
7587 eventBuilder_.setMessage(value);
7589 bitField0_ |= 0x00000008;
7593 * <code>optional .openxc.DynamicField event = 4;</code>
7595 public Builder setEvent(
7596 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
7597 if (eventBuilder_ == null) {
7598 event_ = builderForValue.build();
7601 eventBuilder_.setMessage(builderForValue.build());
7603 bitField0_ |= 0x00000008;
7607 * <code>optional .openxc.DynamicField event = 4;</code>
7609 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
7610 if (eventBuilder_ == null) {
7611 if (((bitField0_ & 0x00000008) == 0x00000008) &&
7612 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
7614 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
7620 eventBuilder_.mergeFrom(value);
7622 bitField0_ |= 0x00000008;
7626 * <code>optional .openxc.DynamicField event = 4;</code>
7628 public Builder clearEvent() {
7629 if (eventBuilder_ == null) {
7630 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7633 eventBuilder_.clear();
7635 bitField0_ = (bitField0_ & ~0x00000008);
7639 * <code>optional .openxc.DynamicField event = 4;</code>
7641 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
7642 bitField0_ |= 0x00000008;
7644 return getEventFieldBuilder().getBuilder();
7647 * <code>optional .openxc.DynamicField event = 4;</code>
7649 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
7650 if (eventBuilder_ != null) {
7651 return eventBuilder_.getMessageOrBuilder();
7657 * <code>optional .openxc.DynamicField event = 4;</code>
7659 private com.google.protobuf.SingleFieldBuilder<
7660 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
7661 getEventFieldBuilder() {
7662 if (eventBuilder_ == null) {
7663 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7664 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
7666 getParentForChildren(),
7670 return eventBuilder_;
7673 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
7677 defaultInstance = new TranslatedMessage(true);
7678 defaultInstance.initFields();
7681 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
7684 private static com.google.protobuf.Descriptors.Descriptor
7685 internal_static_openxc_VehicleMessage_descriptor;
7687 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7688 internal_static_openxc_VehicleMessage_fieldAccessorTable;
7689 private static com.google.protobuf.Descriptors.Descriptor
7690 internal_static_openxc_RawMessage_descriptor;
7692 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7693 internal_static_openxc_RawMessage_fieldAccessorTable;
7694 private static com.google.protobuf.Descriptors.Descriptor
7695 internal_static_openxc_ControlCommand_descriptor;
7697 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7698 internal_static_openxc_ControlCommand_fieldAccessorTable;
7699 private static com.google.protobuf.Descriptors.Descriptor
7700 internal_static_openxc_CommandResponse_descriptor;
7702 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7703 internal_static_openxc_CommandResponse_fieldAccessorTable;
7704 private static com.google.protobuf.Descriptors.Descriptor
7705 internal_static_openxc_DiagnosticRequest_descriptor;
7707 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7708 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
7709 private static com.google.protobuf.Descriptors.Descriptor
7710 internal_static_openxc_DiagnosticResponse_descriptor;
7712 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7713 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
7714 private static com.google.protobuf.Descriptors.Descriptor
7715 internal_static_openxc_DynamicField_descriptor;
7717 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7718 internal_static_openxc_DynamicField_fieldAccessorTable;
7719 private static com.google.protobuf.Descriptors.Descriptor
7720 internal_static_openxc_TranslatedMessage_descriptor;
7722 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7723 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
7725 public static com.google.protobuf.Descriptors.FileDescriptor
7729 private static com.google.protobuf.Descriptors.FileDescriptor
7732 java.lang.String[] descriptorData = {
7733 "\n\014openxc.proto\022\006openxc\"\224\003\n\016VehicleMessag" +
7734 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
7735 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
7736 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
7737 "xc.TranslatedMessage\0227\n\023diagnostic_respo" +
7738 "nse\030\004 \001(\0132\032.openxc.DiagnosticResponse\022/\n" +
7739 "\017control_command\030\005 \001(\0132\026.openxc.ControlC" +
7740 "ommand\0221\n\020command_response\030\006 \001(\0132\027.openx" +
7741 "c.CommandResponse\"Z\n\004Type\022\007\n\003RAW\020\001\022\016\n\nTR" +
7742 "ANSLATED\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_CO",
7743 "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\";\n\nRawMess" +
7744 "age\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004" +
7745 "data\030\003 \001(\014\"\364\001\n\016ControlCommand\022)\n\004type\030\001 " +
7746 "\001(\0162\033.openxc.ControlCommand.Type\0225\n\022diag" +
7747 "nostic_request\030\002 \001(\0132\031.openxc.Diagnostic" +
7748 "Request\022-\n\006action\030\003 \001(\0162\035.openxc.Control" +
7749 "Command.Action\"2\n\004Type\022\013\n\007VERSION\020\001\022\r\n\tD" +
7750 "EVICE_ID\020\002\022\016\n\nDIAGNOSTIC\020\003\"\035\n\006Action\022\007\n\003" +
7751 "ADD\020\001\022\n\n\006CANCEL\020\002\"]\n\017CommandResponse\022)\n\004" +
7752 "type\030\001 \001(\0162\033.openxc.ControlCommand.Type\022",
7753 "\017\n\007message\030\002 \001(\t\022\016\n\006status\030\003 \001(\010\"\375\001\n\021Dia" +
7754 "gnosticRequest\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_i" +
7755 "d\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007pa" +
7756 "yload\030\005 \001(\014\022\032\n\022multiple_responses\030\006 \001(\010\022" +
7757 "\021\n\tfrequency\030\007 \001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014deco" +
7758 "ded_type\030\t \001(\0162%.openxc.DiagnosticReques" +
7759 "t.DecodedType\"!\n\013DecodedType\022\010\n\004NONE\020\001\022\010" +
7760 "\n\004OBD2\020\002\"\241\001\n\022DiagnosticResponse\022\013\n\003bus\030\001" +
7761 " \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013" +
7762 "\n\003pid\030\004 \001(\r\022\017\n\007success\030\005 \001(\010\022\036\n\026negative",
7763 "_response_code\030\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n" +
7764 "\005value\030\010 \001(\001\"\242\001\n\014DynamicField\022\'\n\004type\030\001 " +
7765 "\001(\0162\031.openxc.DynamicField.Type\022\024\n\014string" +
7766 "_value\030\002 \001(\t\022\025\n\rnumeric_value\030\003 \001(\001\022\025\n\rb" +
7767 "oolean_value\030\004 \001(\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007" +
7768 "\n\003NUM\020\002\022\010\n\004BOOL\020\003\"\367\001\n\021TranslatedMessage\022" +
7769 ",\n\004type\030\001 \001(\0162\036.openxc.TranslatedMessage" +
7770 ".Type\022\014\n\004name\030\002 \001(\t\022#\n\005value\030\003 \001(\0132\024.ope" +
7771 "nxc.DynamicField\022#\n\005event\030\004 \001(\0132\024.openxc" +
7772 ".DynamicField\"\\\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM",
7773 "\020\002\022\010\n\004BOOL\020\003\022\022\n\016EVENTED_STRING\020\004\022\017\n\013EVEN" +
7774 "TED_NUM\020\005\022\020\n\014EVENTED_BOOL\020\006B\034\n\ncom.openx" +
7775 "cB\016BinaryMessages"
7777 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
7778 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
7779 public com.google.protobuf.ExtensionRegistry assignDescriptors(
7780 com.google.protobuf.Descriptors.FileDescriptor root) {
7782 internal_static_openxc_VehicleMessage_descriptor =
7783 getDescriptor().getMessageTypes().get(0);
7784 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
7785 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7786 internal_static_openxc_VehicleMessage_descriptor,
7787 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
7788 internal_static_openxc_RawMessage_descriptor =
7789 getDescriptor().getMessageTypes().get(1);
7790 internal_static_openxc_RawMessage_fieldAccessorTable = new
7791 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7792 internal_static_openxc_RawMessage_descriptor,
7793 new java.lang.String[] { "Bus", "MessageId", "Data", });
7794 internal_static_openxc_ControlCommand_descriptor =
7795 getDescriptor().getMessageTypes().get(2);
7796 internal_static_openxc_ControlCommand_fieldAccessorTable = new
7797 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7798 internal_static_openxc_ControlCommand_descriptor,
7799 new java.lang.String[] { "Type", "DiagnosticRequest", "Action", });
7800 internal_static_openxc_CommandResponse_descriptor =
7801 getDescriptor().getMessageTypes().get(3);
7802 internal_static_openxc_CommandResponse_fieldAccessorTable = new
7803 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7804 internal_static_openxc_CommandResponse_descriptor,
7805 new java.lang.String[] { "Type", "Message", "Status", });
7806 internal_static_openxc_DiagnosticRequest_descriptor =
7807 getDescriptor().getMessageTypes().get(4);
7808 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
7809 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7810 internal_static_openxc_DiagnosticRequest_descriptor,
7811 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", });
7812 internal_static_openxc_DiagnosticResponse_descriptor =
7813 getDescriptor().getMessageTypes().get(5);
7814 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
7815 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7816 internal_static_openxc_DiagnosticResponse_descriptor,
7817 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
7818 internal_static_openxc_DynamicField_descriptor =
7819 getDescriptor().getMessageTypes().get(6);
7820 internal_static_openxc_DynamicField_fieldAccessorTable = new
7821 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7822 internal_static_openxc_DynamicField_descriptor,
7823 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
7824 internal_static_openxc_TranslatedMessage_descriptor =
7825 getDescriptor().getMessageTypes().get(7);
7826 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
7827 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7828 internal_static_openxc_TranslatedMessage_descriptor,
7829 new java.lang.String[] { "Type", "Name", "Value", "Event", });
7833 com.google.protobuf.Descriptors.FileDescriptor
7834 .internalBuildGeneratedFileFrom(descriptorData,
7835 new com.google.protobuf.Descriptors.FileDescriptor[] {
7839 // @@protoc_insertion_point(outer_class_scope)