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();
2074 * Protobuf type {@code openxc.ControlCommand}
2076 public static final class ControlCommand extends
2077 com.google.protobuf.GeneratedMessage
2078 implements ControlCommandOrBuilder {
2079 // Use ControlCommand.newBuilder() to construct.
2080 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2082 this.unknownFields = builder.getUnknownFields();
2084 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2086 private static final ControlCommand defaultInstance;
2087 public static ControlCommand getDefaultInstance() {
2088 return defaultInstance;
2091 public ControlCommand getDefaultInstanceForType() {
2092 return defaultInstance;
2095 private final com.google.protobuf.UnknownFieldSet unknownFields;
2097 public final com.google.protobuf.UnknownFieldSet
2098 getUnknownFields() {
2099 return this.unknownFields;
2101 private ControlCommand(
2102 com.google.protobuf.CodedInputStream input,
2103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2104 throws com.google.protobuf.InvalidProtocolBufferException {
2106 int mutable_bitField0_ = 0;
2107 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2108 com.google.protobuf.UnknownFieldSet.newBuilder();
2110 boolean done = false;
2112 int tag = input.readTag();
2118 if (!parseUnknownField(input, unknownFields,
2119 extensionRegistry, tag)) {
2125 int rawValue = input.readEnum();
2126 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2127 if (value == null) {
2128 unknownFields.mergeVarintField(1, rawValue);
2130 bitField0_ |= 0x00000001;
2136 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
2137 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2138 subBuilder = diagnosticRequest_.toBuilder();
2140 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
2141 if (subBuilder != null) {
2142 subBuilder.mergeFrom(diagnosticRequest_);
2143 diagnosticRequest_ = subBuilder.buildPartial();
2145 bitField0_ |= 0x00000002;
2150 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2151 throw e.setUnfinishedMessage(this);
2152 } catch (java.io.IOException e) {
2153 throw new com.google.protobuf.InvalidProtocolBufferException(
2154 e.getMessage()).setUnfinishedMessage(this);
2156 this.unknownFields = unknownFields.build();
2157 makeExtensionsImmutable();
2160 public static final com.google.protobuf.Descriptors.Descriptor
2162 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2165 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2166 internalGetFieldAccessorTable() {
2167 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2168 .ensureFieldAccessorsInitialized(
2169 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2172 public static com.google.protobuf.Parser<ControlCommand> PARSER =
2173 new com.google.protobuf.AbstractParser<ControlCommand>() {
2174 public ControlCommand parsePartialFrom(
2175 com.google.protobuf.CodedInputStream input,
2176 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2177 throws com.google.protobuf.InvalidProtocolBufferException {
2178 return new ControlCommand(input, extensionRegistry);
2183 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
2188 * Protobuf enum {@code openxc.ControlCommand.Type}
2191 implements com.google.protobuf.ProtocolMessageEnum {
2193 * <code>VERSION = 1;</code>
2197 * <code>DEVICE_ID = 2;</code>
2201 * <code>DIAGNOSTIC = 3;</code>
2207 * <code>VERSION = 1;</code>
2209 public static final int VERSION_VALUE = 1;
2211 * <code>DEVICE_ID = 2;</code>
2213 public static final int DEVICE_ID_VALUE = 2;
2215 * <code>DIAGNOSTIC = 3;</code>
2217 public static final int DIAGNOSTIC_VALUE = 3;
2220 public final int getNumber() { return value; }
2222 public static Type valueOf(int value) {
2224 case 1: return VERSION;
2225 case 2: return DEVICE_ID;
2226 case 3: return DIAGNOSTIC;
2227 default: return null;
2231 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2232 internalGetValueMap() {
2233 return internalValueMap;
2235 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2237 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2238 public Type findValueByNumber(int number) {
2239 return Type.valueOf(number);
2243 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2244 getValueDescriptor() {
2245 return getDescriptor().getValues().get(index);
2247 public final com.google.protobuf.Descriptors.EnumDescriptor
2248 getDescriptorForType() {
2249 return getDescriptor();
2251 public static final com.google.protobuf.Descriptors.EnumDescriptor
2253 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
2256 private static final Type[] VALUES = values();
2258 public static Type valueOf(
2259 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2260 if (desc.getType() != getDescriptor()) {
2261 throw new java.lang.IllegalArgumentException(
2262 "EnumValueDescriptor is not for this type.");
2264 return VALUES[desc.getIndex()];
2267 private final int index;
2268 private final int value;
2270 private Type(int index, int value) {
2275 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
2278 private int bitField0_;
2279 // optional .openxc.ControlCommand.Type type = 1;
2280 public static final int TYPE_FIELD_NUMBER = 1;
2281 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2283 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2285 public boolean hasType() {
2286 return ((bitField0_ & 0x00000001) == 0x00000001);
2289 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2291 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2295 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
2296 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
2297 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_;
2299 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2301 public boolean hasDiagnosticRequest() {
2302 return ((bitField0_ & 0x00000002) == 0x00000002);
2305 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2307 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
2308 return diagnosticRequest_;
2311 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2313 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
2314 return diagnosticRequest_;
2317 private void initFields() {
2318 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2319 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2321 private byte memoizedIsInitialized = -1;
2322 public final boolean isInitialized() {
2323 byte isInitialized = memoizedIsInitialized;
2324 if (isInitialized != -1) return isInitialized == 1;
2326 memoizedIsInitialized = 1;
2330 public void writeTo(com.google.protobuf.CodedOutputStream output)
2331 throws java.io.IOException {
2332 getSerializedSize();
2333 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2334 output.writeEnum(1, type_.getNumber());
2336 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2337 output.writeMessage(2, diagnosticRequest_);
2339 getUnknownFields().writeTo(output);
2342 private int memoizedSerializedSize = -1;
2343 public int getSerializedSize() {
2344 int size = memoizedSerializedSize;
2345 if (size != -1) return size;
2348 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2349 size += com.google.protobuf.CodedOutputStream
2350 .computeEnumSize(1, type_.getNumber());
2352 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2353 size += com.google.protobuf.CodedOutputStream
2354 .computeMessageSize(2, diagnosticRequest_);
2356 size += getUnknownFields().getSerializedSize();
2357 memoizedSerializedSize = size;
2361 private static final long serialVersionUID = 0L;
2363 protected java.lang.Object writeReplace()
2364 throws java.io.ObjectStreamException {
2365 return super.writeReplace();
2368 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2369 com.google.protobuf.ByteString data)
2370 throws com.google.protobuf.InvalidProtocolBufferException {
2371 return PARSER.parseFrom(data);
2373 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2374 com.google.protobuf.ByteString data,
2375 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2376 throws com.google.protobuf.InvalidProtocolBufferException {
2377 return PARSER.parseFrom(data, extensionRegistry);
2379 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2380 throws com.google.protobuf.InvalidProtocolBufferException {
2381 return PARSER.parseFrom(data);
2383 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2385 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2386 throws com.google.protobuf.InvalidProtocolBufferException {
2387 return PARSER.parseFrom(data, extensionRegistry);
2389 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2390 throws java.io.IOException {
2391 return PARSER.parseFrom(input);
2393 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2394 java.io.InputStream input,
2395 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2396 throws java.io.IOException {
2397 return PARSER.parseFrom(input, extensionRegistry);
2399 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2400 throws java.io.IOException {
2401 return PARSER.parseDelimitedFrom(input);
2403 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2404 java.io.InputStream input,
2405 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2406 throws java.io.IOException {
2407 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2409 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2410 com.google.protobuf.CodedInputStream input)
2411 throws java.io.IOException {
2412 return PARSER.parseFrom(input);
2414 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2415 com.google.protobuf.CodedInputStream input,
2416 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2417 throws java.io.IOException {
2418 return PARSER.parseFrom(input, extensionRegistry);
2421 public static Builder newBuilder() { return Builder.create(); }
2422 public Builder newBuilderForType() { return newBuilder(); }
2423 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2424 return newBuilder().mergeFrom(prototype);
2426 public Builder toBuilder() { return newBuilder(this); }
2429 protected Builder newBuilderForType(
2430 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2431 Builder builder = new Builder(parent);
2435 * Protobuf type {@code openxc.ControlCommand}
2437 public static final class Builder extends
2438 com.google.protobuf.GeneratedMessage.Builder<Builder>
2439 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2440 public static final com.google.protobuf.Descriptors.Descriptor
2442 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2445 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2446 internalGetFieldAccessorTable() {
2447 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2448 .ensureFieldAccessorsInitialized(
2449 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2452 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2454 maybeForceBuilderInitialization();
2458 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2460 maybeForceBuilderInitialization();
2462 private void maybeForceBuilderInitialization() {
2463 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2464 getDiagnosticRequestFieldBuilder();
2467 private static Builder create() {
2468 return new Builder();
2471 public Builder clear() {
2473 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2474 bitField0_ = (bitField0_ & ~0x00000001);
2475 if (diagnosticRequestBuilder_ == null) {
2476 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2478 diagnosticRequestBuilder_.clear();
2480 bitField0_ = (bitField0_ & ~0x00000002);
2484 public Builder clone() {
2485 return create().mergeFrom(buildPartial());
2488 public com.google.protobuf.Descriptors.Descriptor
2489 getDescriptorForType() {
2490 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2493 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2494 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2497 public com.openxc.BinaryMessages.ControlCommand build() {
2498 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2499 if (!result.isInitialized()) {
2500 throw newUninitializedMessageException(result);
2505 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2506 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2507 int from_bitField0_ = bitField0_;
2508 int to_bitField0_ = 0;
2509 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2510 to_bitField0_ |= 0x00000001;
2512 result.type_ = type_;
2513 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2514 to_bitField0_ |= 0x00000002;
2516 if (diagnosticRequestBuilder_ == null) {
2517 result.diagnosticRequest_ = diagnosticRequest_;
2519 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2521 result.bitField0_ = to_bitField0_;
2526 public Builder mergeFrom(com.google.protobuf.Message other) {
2527 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2528 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2530 super.mergeFrom(other);
2535 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2536 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2537 if (other.hasType()) {
2538 setType(other.getType());
2540 if (other.hasDiagnosticRequest()) {
2541 mergeDiagnosticRequest(other.getDiagnosticRequest());
2543 this.mergeUnknownFields(other.getUnknownFields());
2547 public final boolean isInitialized() {
2551 public Builder mergeFrom(
2552 com.google.protobuf.CodedInputStream input,
2553 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2554 throws java.io.IOException {
2555 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
2557 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2558 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2559 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
2562 if (parsedMessage != null) {
2563 mergeFrom(parsedMessage);
2568 private int bitField0_;
2570 // optional .openxc.ControlCommand.Type type = 1;
2571 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2573 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2575 public boolean hasType() {
2576 return ((bitField0_ & 0x00000001) == 0x00000001);
2579 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2581 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2585 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2587 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2588 if (value == null) {
2589 throw new NullPointerException();
2591 bitField0_ |= 0x00000001;
2597 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2599 public Builder clearType() {
2600 bitField0_ = (bitField0_ & ~0x00000001);
2601 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2606 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
2607 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2608 private com.google.protobuf.SingleFieldBuilder<
2609 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> diagnosticRequestBuilder_;
2611 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2613 public boolean hasDiagnosticRequest() {
2614 return ((bitField0_ & 0x00000002) == 0x00000002);
2617 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2619 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
2620 if (diagnosticRequestBuilder_ == null) {
2621 return diagnosticRequest_;
2623 return diagnosticRequestBuilder_.getMessage();
2627 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2629 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2630 if (diagnosticRequestBuilder_ == null) {
2631 if (value == null) {
2632 throw new NullPointerException();
2634 diagnosticRequest_ = value;
2637 diagnosticRequestBuilder_.setMessage(value);
2639 bitField0_ |= 0x00000002;
2643 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2645 public Builder setDiagnosticRequest(
2646 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
2647 if (diagnosticRequestBuilder_ == null) {
2648 diagnosticRequest_ = builderForValue.build();
2651 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2653 bitField0_ |= 0x00000002;
2657 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2659 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2660 if (diagnosticRequestBuilder_ == null) {
2661 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2662 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
2663 diagnosticRequest_ =
2664 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2666 diagnosticRequest_ = value;
2670 diagnosticRequestBuilder_.mergeFrom(value);
2672 bitField0_ |= 0x00000002;
2676 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2678 public Builder clearDiagnosticRequest() {
2679 if (diagnosticRequestBuilder_ == null) {
2680 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2683 diagnosticRequestBuilder_.clear();
2685 bitField0_ = (bitField0_ & ~0x00000002);
2689 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2691 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getDiagnosticRequestBuilder() {
2692 bitField0_ |= 0x00000002;
2694 return getDiagnosticRequestFieldBuilder().getBuilder();
2697 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2699 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
2700 if (diagnosticRequestBuilder_ != null) {
2701 return diagnosticRequestBuilder_.getMessageOrBuilder();
2703 return diagnosticRequest_;
2707 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2709 private com.google.protobuf.SingleFieldBuilder<
2710 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
2711 getDiagnosticRequestFieldBuilder() {
2712 if (diagnosticRequestBuilder_ == null) {
2713 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2714 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
2716 getParentForChildren(),
2718 diagnosticRequest_ = null;
2720 return diagnosticRequestBuilder_;
2723 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
2727 defaultInstance = new ControlCommand(true);
2728 defaultInstance.initFields();
2731 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
2734 public interface CommandResponseOrBuilder
2735 extends com.google.protobuf.MessageOrBuilder {
2737 // optional .openxc.ControlCommand.Type type = 1;
2739 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2743 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2745 com.openxc.BinaryMessages.ControlCommand.Type getType();
2747 // optional string message = 2;
2749 * <code>optional string message = 2;</code>
2751 boolean hasMessage();
2753 * <code>optional string message = 2;</code>
2755 java.lang.String getMessage();
2757 * <code>optional string message = 2;</code>
2759 com.google.protobuf.ByteString
2763 * Protobuf type {@code openxc.CommandResponse}
2765 public static final class CommandResponse extends
2766 com.google.protobuf.GeneratedMessage
2767 implements CommandResponseOrBuilder {
2768 // Use CommandResponse.newBuilder() to construct.
2769 private CommandResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2771 this.unknownFields = builder.getUnknownFields();
2773 private CommandResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2775 private static final CommandResponse defaultInstance;
2776 public static CommandResponse getDefaultInstance() {
2777 return defaultInstance;
2780 public CommandResponse getDefaultInstanceForType() {
2781 return defaultInstance;
2784 private final com.google.protobuf.UnknownFieldSet unknownFields;
2786 public final com.google.protobuf.UnknownFieldSet
2787 getUnknownFields() {
2788 return this.unknownFields;
2790 private CommandResponse(
2791 com.google.protobuf.CodedInputStream input,
2792 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2793 throws com.google.protobuf.InvalidProtocolBufferException {
2795 int mutable_bitField0_ = 0;
2796 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2797 com.google.protobuf.UnknownFieldSet.newBuilder();
2799 boolean done = false;
2801 int tag = input.readTag();
2807 if (!parseUnknownField(input, unknownFields,
2808 extensionRegistry, tag)) {
2814 int rawValue = input.readEnum();
2815 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2816 if (value == null) {
2817 unknownFields.mergeVarintField(1, rawValue);
2819 bitField0_ |= 0x00000001;
2825 bitField0_ |= 0x00000002;
2826 message_ = input.readBytes();
2831 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2832 throw e.setUnfinishedMessage(this);
2833 } catch (java.io.IOException e) {
2834 throw new com.google.protobuf.InvalidProtocolBufferException(
2835 e.getMessage()).setUnfinishedMessage(this);
2837 this.unknownFields = unknownFields.build();
2838 makeExtensionsImmutable();
2841 public static final com.google.protobuf.Descriptors.Descriptor
2843 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
2846 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2847 internalGetFieldAccessorTable() {
2848 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
2849 .ensureFieldAccessorsInitialized(
2850 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
2853 public static com.google.protobuf.Parser<CommandResponse> PARSER =
2854 new com.google.protobuf.AbstractParser<CommandResponse>() {
2855 public CommandResponse parsePartialFrom(
2856 com.google.protobuf.CodedInputStream input,
2857 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2858 throws com.google.protobuf.InvalidProtocolBufferException {
2859 return new CommandResponse(input, extensionRegistry);
2864 public com.google.protobuf.Parser<CommandResponse> getParserForType() {
2868 private int bitField0_;
2869 // optional .openxc.ControlCommand.Type type = 1;
2870 public static final int TYPE_FIELD_NUMBER = 1;
2871 private com.openxc.BinaryMessages.ControlCommand.Type type_;
2873 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2875 public boolean hasType() {
2876 return ((bitField0_ & 0x00000001) == 0x00000001);
2879 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2881 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2885 // optional string message = 2;
2886 public static final int MESSAGE_FIELD_NUMBER = 2;
2887 private java.lang.Object message_;
2889 * <code>optional string message = 2;</code>
2891 public boolean hasMessage() {
2892 return ((bitField0_ & 0x00000002) == 0x00000002);
2895 * <code>optional string message = 2;</code>
2897 public java.lang.String getMessage() {
2898 java.lang.Object ref = message_;
2899 if (ref instanceof java.lang.String) {
2900 return (java.lang.String) ref;
2902 com.google.protobuf.ByteString bs =
2903 (com.google.protobuf.ByteString) ref;
2904 java.lang.String s = bs.toStringUtf8();
2905 if (bs.isValidUtf8()) {
2912 * <code>optional string message = 2;</code>
2914 public com.google.protobuf.ByteString
2916 java.lang.Object ref = message_;
2917 if (ref instanceof java.lang.String) {
2918 com.google.protobuf.ByteString b =
2919 com.google.protobuf.ByteString.copyFromUtf8(
2920 (java.lang.String) ref);
2924 return (com.google.protobuf.ByteString) ref;
2928 private void initFields() {
2929 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2932 private byte memoizedIsInitialized = -1;
2933 public final boolean isInitialized() {
2934 byte isInitialized = memoizedIsInitialized;
2935 if (isInitialized != -1) return isInitialized == 1;
2937 memoizedIsInitialized = 1;
2941 public void writeTo(com.google.protobuf.CodedOutputStream output)
2942 throws java.io.IOException {
2943 getSerializedSize();
2944 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2945 output.writeEnum(1, type_.getNumber());
2947 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2948 output.writeBytes(2, getMessageBytes());
2950 getUnknownFields().writeTo(output);
2953 private int memoizedSerializedSize = -1;
2954 public int getSerializedSize() {
2955 int size = memoizedSerializedSize;
2956 if (size != -1) return size;
2959 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2960 size += com.google.protobuf.CodedOutputStream
2961 .computeEnumSize(1, type_.getNumber());
2963 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2964 size += com.google.protobuf.CodedOutputStream
2965 .computeBytesSize(2, getMessageBytes());
2967 size += getUnknownFields().getSerializedSize();
2968 memoizedSerializedSize = size;
2972 private static final long serialVersionUID = 0L;
2974 protected java.lang.Object writeReplace()
2975 throws java.io.ObjectStreamException {
2976 return super.writeReplace();
2979 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
2980 com.google.protobuf.ByteString data)
2981 throws com.google.protobuf.InvalidProtocolBufferException {
2982 return PARSER.parseFrom(data);
2984 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
2985 com.google.protobuf.ByteString data,
2986 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2987 throws com.google.protobuf.InvalidProtocolBufferException {
2988 return PARSER.parseFrom(data, extensionRegistry);
2990 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
2991 throws com.google.protobuf.InvalidProtocolBufferException {
2992 return PARSER.parseFrom(data);
2994 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
2996 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2997 throws com.google.protobuf.InvalidProtocolBufferException {
2998 return PARSER.parseFrom(data, extensionRegistry);
3000 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
3001 throws java.io.IOException {
3002 return PARSER.parseFrom(input);
3004 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3005 java.io.InputStream input,
3006 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3007 throws java.io.IOException {
3008 return PARSER.parseFrom(input, extensionRegistry);
3010 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
3011 throws java.io.IOException {
3012 return PARSER.parseDelimitedFrom(input);
3014 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
3015 java.io.InputStream input,
3016 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3017 throws java.io.IOException {
3018 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3020 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3021 com.google.protobuf.CodedInputStream input)
3022 throws java.io.IOException {
3023 return PARSER.parseFrom(input);
3025 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
3026 com.google.protobuf.CodedInputStream input,
3027 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3028 throws java.io.IOException {
3029 return PARSER.parseFrom(input, extensionRegistry);
3032 public static Builder newBuilder() { return Builder.create(); }
3033 public Builder newBuilderForType() { return newBuilder(); }
3034 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
3035 return newBuilder().mergeFrom(prototype);
3037 public Builder toBuilder() { return newBuilder(this); }
3040 protected Builder newBuilderForType(
3041 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3042 Builder builder = new Builder(parent);
3046 * Protobuf type {@code openxc.CommandResponse}
3048 public static final class Builder extends
3049 com.google.protobuf.GeneratedMessage.Builder<Builder>
3050 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
3051 public static final com.google.protobuf.Descriptors.Descriptor
3053 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
3056 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3057 internalGetFieldAccessorTable() {
3058 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable
3059 .ensureFieldAccessorsInitialized(
3060 com.openxc.BinaryMessages.CommandResponse.class, com.openxc.BinaryMessages.CommandResponse.Builder.class);
3063 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
3065 maybeForceBuilderInitialization();
3069 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3071 maybeForceBuilderInitialization();
3073 private void maybeForceBuilderInitialization() {
3074 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3077 private static Builder create() {
3078 return new Builder();
3081 public Builder clear() {
3083 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3084 bitField0_ = (bitField0_ & ~0x00000001);
3086 bitField0_ = (bitField0_ & ~0x00000002);
3090 public Builder clone() {
3091 return create().mergeFrom(buildPartial());
3094 public com.google.protobuf.Descriptors.Descriptor
3095 getDescriptorForType() {
3096 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
3099 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
3100 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
3103 public com.openxc.BinaryMessages.CommandResponse build() {
3104 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
3105 if (!result.isInitialized()) {
3106 throw newUninitializedMessageException(result);
3111 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
3112 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
3113 int from_bitField0_ = bitField0_;
3114 int to_bitField0_ = 0;
3115 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3116 to_bitField0_ |= 0x00000001;
3118 result.type_ = type_;
3119 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3120 to_bitField0_ |= 0x00000002;
3122 result.message_ = message_;
3123 result.bitField0_ = to_bitField0_;
3128 public Builder mergeFrom(com.google.protobuf.Message other) {
3129 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
3130 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
3132 super.mergeFrom(other);
3137 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
3138 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
3139 if (other.hasType()) {
3140 setType(other.getType());
3142 if (other.hasMessage()) {
3143 bitField0_ |= 0x00000002;
3144 message_ = other.message_;
3147 this.mergeUnknownFields(other.getUnknownFields());
3151 public final boolean isInitialized() {
3155 public Builder mergeFrom(
3156 com.google.protobuf.CodedInputStream input,
3157 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3158 throws java.io.IOException {
3159 com.openxc.BinaryMessages.CommandResponse parsedMessage = null;
3161 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3162 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3163 parsedMessage = (com.openxc.BinaryMessages.CommandResponse) e.getUnfinishedMessage();
3166 if (parsedMessage != null) {
3167 mergeFrom(parsedMessage);
3172 private int bitField0_;
3174 // optional .openxc.ControlCommand.Type type = 1;
3175 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3177 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3179 public boolean hasType() {
3180 return ((bitField0_ & 0x00000001) == 0x00000001);
3183 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3185 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
3189 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3191 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
3192 if (value == null) {
3193 throw new NullPointerException();
3195 bitField0_ |= 0x00000001;
3201 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
3203 public Builder clearType() {
3204 bitField0_ = (bitField0_ & ~0x00000001);
3205 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
3210 // optional string message = 2;
3211 private java.lang.Object message_ = "";
3213 * <code>optional string message = 2;</code>
3215 public boolean hasMessage() {
3216 return ((bitField0_ & 0x00000002) == 0x00000002);
3219 * <code>optional string message = 2;</code>
3221 public java.lang.String getMessage() {
3222 java.lang.Object ref = message_;
3223 if (!(ref instanceof java.lang.String)) {
3224 java.lang.String s = ((com.google.protobuf.ByteString) ref)
3229 return (java.lang.String) ref;
3233 * <code>optional string message = 2;</code>
3235 public com.google.protobuf.ByteString
3237 java.lang.Object ref = message_;
3238 if (ref instanceof String) {
3239 com.google.protobuf.ByteString b =
3240 com.google.protobuf.ByteString.copyFromUtf8(
3241 (java.lang.String) ref);
3245 return (com.google.protobuf.ByteString) ref;
3249 * <code>optional string message = 2;</code>
3251 public Builder setMessage(
3252 java.lang.String value) {
3253 if (value == null) {
3254 throw new NullPointerException();
3256 bitField0_ |= 0x00000002;
3262 * <code>optional string message = 2;</code>
3264 public Builder clearMessage() {
3265 bitField0_ = (bitField0_ & ~0x00000002);
3266 message_ = getDefaultInstance().getMessage();
3271 * <code>optional string message = 2;</code>
3273 public Builder setMessageBytes(
3274 com.google.protobuf.ByteString value) {
3275 if (value == null) {
3276 throw new NullPointerException();
3278 bitField0_ |= 0x00000002;
3284 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
3288 defaultInstance = new CommandResponse(true);
3289 defaultInstance.initFields();
3292 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
3295 public interface DiagnosticRequestOrBuilder
3296 extends com.google.protobuf.MessageOrBuilder {
3298 // optional int32 bus = 1;
3300 * <code>optional int32 bus = 1;</code>
3304 * <code>optional int32 bus = 1;</code>
3308 // optional uint32 message_id = 2;
3310 * <code>optional uint32 message_id = 2;</code>
3312 boolean hasMessageId();
3314 * <code>optional uint32 message_id = 2;</code>
3318 // optional uint32 mode = 3;
3320 * <code>optional uint32 mode = 3;</code>
3324 * <code>optional uint32 mode = 3;</code>
3328 // optional uint32 pid = 4;
3330 * <code>optional uint32 pid = 4;</code>
3334 * <code>optional uint32 pid = 4;</code>
3338 // optional bytes payload = 5;
3340 * <code>optional bytes payload = 5;</code>
3343 * TODO we are capping this at 8 bytes for now - need to change when we
3344 * support multi-frame responses
3347 boolean hasPayload();
3349 * <code>optional bytes payload = 5;</code>
3352 * TODO we are capping this at 8 bytes for now - need to change when we
3353 * support multi-frame responses
3356 com.google.protobuf.ByteString getPayload();
3358 // optional bool multiple_responses = 6;
3360 * <code>optional bool multiple_responses = 6;</code>
3362 boolean hasMultipleResponses();
3364 * <code>optional bool multiple_responses = 6;</code>
3366 boolean getMultipleResponses();
3368 // optional double frequency = 7;
3370 * <code>optional double frequency = 7;</code>
3372 boolean hasFrequency();
3374 * <code>optional double frequency = 7;</code>
3376 double getFrequency();
3378 // optional string name = 8;
3380 * <code>optional string name = 8;</code>
3384 * <code>optional string name = 8;</code>
3386 java.lang.String getName();
3388 * <code>optional string name = 8;</code>
3390 com.google.protobuf.ByteString
3393 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
3395 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3397 boolean hasDecodedType();
3399 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3401 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
3403 // optional .openxc.DiagnosticRequest.Action action = 10;
3405 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
3407 boolean hasAction();
3409 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
3411 com.openxc.BinaryMessages.DiagnosticRequest.Action getAction();
3414 * Protobuf type {@code openxc.DiagnosticRequest}
3416 public static final class DiagnosticRequest extends
3417 com.google.protobuf.GeneratedMessage
3418 implements DiagnosticRequestOrBuilder {
3419 // Use DiagnosticRequest.newBuilder() to construct.
3420 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3422 this.unknownFields = builder.getUnknownFields();
3424 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3426 private static final DiagnosticRequest defaultInstance;
3427 public static DiagnosticRequest getDefaultInstance() {
3428 return defaultInstance;
3431 public DiagnosticRequest getDefaultInstanceForType() {
3432 return defaultInstance;
3435 private final com.google.protobuf.UnknownFieldSet unknownFields;
3437 public final com.google.protobuf.UnknownFieldSet
3438 getUnknownFields() {
3439 return this.unknownFields;
3441 private DiagnosticRequest(
3442 com.google.protobuf.CodedInputStream input,
3443 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3444 throws com.google.protobuf.InvalidProtocolBufferException {
3446 int mutable_bitField0_ = 0;
3447 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3448 com.google.protobuf.UnknownFieldSet.newBuilder();
3450 boolean done = false;
3452 int tag = input.readTag();
3458 if (!parseUnknownField(input, unknownFields,
3459 extensionRegistry, tag)) {
3465 bitField0_ |= 0x00000001;
3466 bus_ = input.readInt32();
3470 bitField0_ |= 0x00000002;
3471 messageId_ = input.readUInt32();
3475 bitField0_ |= 0x00000004;
3476 mode_ = input.readUInt32();
3480 bitField0_ |= 0x00000008;
3481 pid_ = input.readUInt32();
3485 bitField0_ |= 0x00000010;
3486 payload_ = input.readBytes();
3490 bitField0_ |= 0x00000020;
3491 multipleResponses_ = input.readBool();
3495 bitField0_ |= 0x00000040;
3496 frequency_ = input.readDouble();
3500 bitField0_ |= 0x00000080;
3501 name_ = input.readBytes();
3505 int rawValue = input.readEnum();
3506 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
3507 if (value == null) {
3508 unknownFields.mergeVarintField(9, rawValue);
3510 bitField0_ |= 0x00000100;
3511 decodedType_ = value;
3516 int rawValue = input.readEnum();
3517 com.openxc.BinaryMessages.DiagnosticRequest.Action value = com.openxc.BinaryMessages.DiagnosticRequest.Action.valueOf(rawValue);
3518 if (value == null) {
3519 unknownFields.mergeVarintField(10, rawValue);
3521 bitField0_ |= 0x00000200;
3528 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3529 throw e.setUnfinishedMessage(this);
3530 } catch (java.io.IOException e) {
3531 throw new com.google.protobuf.InvalidProtocolBufferException(
3532 e.getMessage()).setUnfinishedMessage(this);
3534 this.unknownFields = unknownFields.build();
3535 makeExtensionsImmutable();
3538 public static final com.google.protobuf.Descriptors.Descriptor
3540 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
3543 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3544 internalGetFieldAccessorTable() {
3545 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
3546 .ensureFieldAccessorsInitialized(
3547 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
3550 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
3551 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
3552 public DiagnosticRequest parsePartialFrom(
3553 com.google.protobuf.CodedInputStream input,
3554 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3555 throws com.google.protobuf.InvalidProtocolBufferException {
3556 return new DiagnosticRequest(input, extensionRegistry);
3561 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
3566 * Protobuf enum {@code openxc.DiagnosticRequest.DecodedType}
3568 public enum DecodedType
3569 implements com.google.protobuf.ProtocolMessageEnum {
3571 * <code>NONE = 1;</code>
3575 * <code>OBD2 = 2;</code>
3581 * <code>NONE = 1;</code>
3583 public static final int NONE_VALUE = 1;
3585 * <code>OBD2 = 2;</code>
3587 public static final int OBD2_VALUE = 2;
3590 public final int getNumber() { return value; }
3592 public static DecodedType valueOf(int value) {
3594 case 1: return NONE;
3595 case 2: return OBD2;
3596 default: return null;
3600 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
3601 internalGetValueMap() {
3602 return internalValueMap;
3604 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
3606 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
3607 public DecodedType findValueByNumber(int number) {
3608 return DecodedType.valueOf(number);
3612 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3613 getValueDescriptor() {
3614 return getDescriptor().getValues().get(index);
3616 public final com.google.protobuf.Descriptors.EnumDescriptor
3617 getDescriptorForType() {
3618 return getDescriptor();
3620 public static final com.google.protobuf.Descriptors.EnumDescriptor
3622 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
3625 private static final DecodedType[] VALUES = values();
3627 public static DecodedType valueOf(
3628 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3629 if (desc.getType() != getDescriptor()) {
3630 throw new java.lang.IllegalArgumentException(
3631 "EnumValueDescriptor is not for this type.");
3633 return VALUES[desc.getIndex()];
3636 private final int index;
3637 private final int value;
3639 private DecodedType(int index, int value) {
3644 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
3648 * Protobuf enum {@code openxc.DiagnosticRequest.Action}
3651 implements com.google.protobuf.ProtocolMessageEnum {
3653 * <code>CREATE = 1;</code>
3657 * <code>UPDATE = 2;</code>
3661 * <code>DELETE = 3;</code>
3667 * <code>CREATE = 1;</code>
3669 public static final int CREATE_VALUE = 1;
3671 * <code>UPDATE = 2;</code>
3673 public static final int UPDATE_VALUE = 2;
3675 * <code>DELETE = 3;</code>
3677 public static final int DELETE_VALUE = 3;
3680 public final int getNumber() { return value; }
3682 public static Action valueOf(int value) {
3684 case 1: return CREATE;
3685 case 2: return UPDATE;
3686 case 3: return DELETE;
3687 default: return null;
3691 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3692 internalGetValueMap() {
3693 return internalValueMap;
3695 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3697 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3698 public Action findValueByNumber(int number) {
3699 return Action.valueOf(number);
3703 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3704 getValueDescriptor() {
3705 return getDescriptor().getValues().get(index);
3707 public final com.google.protobuf.Descriptors.EnumDescriptor
3708 getDescriptorForType() {
3709 return getDescriptor();
3711 public static final com.google.protobuf.Descriptors.EnumDescriptor
3713 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(1);
3716 private static final Action[] VALUES = values();
3718 public static Action valueOf(
3719 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3720 if (desc.getType() != getDescriptor()) {
3721 throw new java.lang.IllegalArgumentException(
3722 "EnumValueDescriptor is not for this type.");
3724 return VALUES[desc.getIndex()];
3727 private final int index;
3728 private final int value;
3730 private Action(int index, int value) {
3735 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.Action)
3738 private int bitField0_;
3739 // optional int32 bus = 1;
3740 public static final int BUS_FIELD_NUMBER = 1;
3743 * <code>optional int32 bus = 1;</code>
3745 public boolean hasBus() {
3746 return ((bitField0_ & 0x00000001) == 0x00000001);
3749 * <code>optional int32 bus = 1;</code>
3751 public int getBus() {
3755 // optional uint32 message_id = 2;
3756 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
3757 private int messageId_;
3759 * <code>optional uint32 message_id = 2;</code>
3761 public boolean hasMessageId() {
3762 return ((bitField0_ & 0x00000002) == 0x00000002);
3765 * <code>optional uint32 message_id = 2;</code>
3767 public int getMessageId() {
3771 // optional uint32 mode = 3;
3772 public static final int MODE_FIELD_NUMBER = 3;
3775 * <code>optional uint32 mode = 3;</code>
3777 public boolean hasMode() {
3778 return ((bitField0_ & 0x00000004) == 0x00000004);
3781 * <code>optional uint32 mode = 3;</code>
3783 public int getMode() {
3787 // optional uint32 pid = 4;
3788 public static final int PID_FIELD_NUMBER = 4;
3791 * <code>optional uint32 pid = 4;</code>
3793 public boolean hasPid() {
3794 return ((bitField0_ & 0x00000008) == 0x00000008);
3797 * <code>optional uint32 pid = 4;</code>
3799 public int getPid() {
3803 // optional bytes payload = 5;
3804 public static final int PAYLOAD_FIELD_NUMBER = 5;
3805 private com.google.protobuf.ByteString payload_;
3807 * <code>optional bytes payload = 5;</code>
3810 * TODO we are capping this at 8 bytes for now - need to change when we
3811 * support multi-frame responses
3814 public boolean hasPayload() {
3815 return ((bitField0_ & 0x00000010) == 0x00000010);
3818 * <code>optional bytes payload = 5;</code>
3821 * TODO we are capping this at 8 bytes for now - need to change when we
3822 * support multi-frame responses
3825 public com.google.protobuf.ByteString getPayload() {
3829 // optional bool multiple_responses = 6;
3830 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
3831 private boolean multipleResponses_;
3833 * <code>optional bool multiple_responses = 6;</code>
3835 public boolean hasMultipleResponses() {
3836 return ((bitField0_ & 0x00000020) == 0x00000020);
3839 * <code>optional bool multiple_responses = 6;</code>
3841 public boolean getMultipleResponses() {
3842 return multipleResponses_;
3845 // optional double frequency = 7;
3846 public static final int FREQUENCY_FIELD_NUMBER = 7;
3847 private double frequency_;
3849 * <code>optional double frequency = 7;</code>
3851 public boolean hasFrequency() {
3852 return ((bitField0_ & 0x00000040) == 0x00000040);
3855 * <code>optional double frequency = 7;</code>
3857 public double getFrequency() {
3861 // optional string name = 8;
3862 public static final int NAME_FIELD_NUMBER = 8;
3863 private java.lang.Object name_;
3865 * <code>optional string name = 8;</code>
3867 public boolean hasName() {
3868 return ((bitField0_ & 0x00000080) == 0x00000080);
3871 * <code>optional string name = 8;</code>
3873 public java.lang.String getName() {
3874 java.lang.Object ref = name_;
3875 if (ref instanceof java.lang.String) {
3876 return (java.lang.String) ref;
3878 com.google.protobuf.ByteString bs =
3879 (com.google.protobuf.ByteString) ref;
3880 java.lang.String s = bs.toStringUtf8();
3881 if (bs.isValidUtf8()) {
3888 * <code>optional string name = 8;</code>
3890 public com.google.protobuf.ByteString
3892 java.lang.Object ref = name_;
3893 if (ref instanceof java.lang.String) {
3894 com.google.protobuf.ByteString b =
3895 com.google.protobuf.ByteString.copyFromUtf8(
3896 (java.lang.String) ref);
3900 return (com.google.protobuf.ByteString) ref;
3904 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
3905 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
3906 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
3908 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3910 public boolean hasDecodedType() {
3911 return ((bitField0_ & 0x00000100) == 0x00000100);
3914 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
3916 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
3917 return decodedType_;
3920 // optional .openxc.DiagnosticRequest.Action action = 10;
3921 public static final int ACTION_FIELD_NUMBER = 10;
3922 private com.openxc.BinaryMessages.DiagnosticRequest.Action action_;
3924 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
3926 public boolean hasAction() {
3927 return ((bitField0_ & 0x00000200) == 0x00000200);
3930 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
3932 public com.openxc.BinaryMessages.DiagnosticRequest.Action getAction() {
3936 private void initFields() {
3941 payload_ = com.google.protobuf.ByteString.EMPTY;
3942 multipleResponses_ = false;
3945 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
3946 action_ = com.openxc.BinaryMessages.DiagnosticRequest.Action.CREATE;
3948 private byte memoizedIsInitialized = -1;
3949 public final boolean isInitialized() {
3950 byte isInitialized = memoizedIsInitialized;
3951 if (isInitialized != -1) return isInitialized == 1;
3953 memoizedIsInitialized = 1;
3957 public void writeTo(com.google.protobuf.CodedOutputStream output)
3958 throws java.io.IOException {
3959 getSerializedSize();
3960 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3961 output.writeInt32(1, bus_);
3963 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3964 output.writeUInt32(2, messageId_);
3966 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3967 output.writeUInt32(3, mode_);
3969 if (((bitField0_ & 0x00000008) == 0x00000008)) {
3970 output.writeUInt32(4, pid_);
3972 if (((bitField0_ & 0x00000010) == 0x00000010)) {
3973 output.writeBytes(5, payload_);
3975 if (((bitField0_ & 0x00000020) == 0x00000020)) {
3976 output.writeBool(6, multipleResponses_);
3978 if (((bitField0_ & 0x00000040) == 0x00000040)) {
3979 output.writeDouble(7, frequency_);
3981 if (((bitField0_ & 0x00000080) == 0x00000080)) {
3982 output.writeBytes(8, getNameBytes());
3984 if (((bitField0_ & 0x00000100) == 0x00000100)) {
3985 output.writeEnum(9, decodedType_.getNumber());
3987 if (((bitField0_ & 0x00000200) == 0x00000200)) {
3988 output.writeEnum(10, action_.getNumber());
3990 getUnknownFields().writeTo(output);
3993 private int memoizedSerializedSize = -1;
3994 public int getSerializedSize() {
3995 int size = memoizedSerializedSize;
3996 if (size != -1) return size;
3999 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4000 size += com.google.protobuf.CodedOutputStream
4001 .computeInt32Size(1, bus_);
4003 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4004 size += com.google.protobuf.CodedOutputStream
4005 .computeUInt32Size(2, messageId_);
4007 if (((bitField0_ & 0x00000004) == 0x00000004)) {
4008 size += com.google.protobuf.CodedOutputStream
4009 .computeUInt32Size(3, mode_);
4011 if (((bitField0_ & 0x00000008) == 0x00000008)) {
4012 size += com.google.protobuf.CodedOutputStream
4013 .computeUInt32Size(4, pid_);
4015 if (((bitField0_ & 0x00000010) == 0x00000010)) {
4016 size += com.google.protobuf.CodedOutputStream
4017 .computeBytesSize(5, payload_);
4019 if (((bitField0_ & 0x00000020) == 0x00000020)) {
4020 size += com.google.protobuf.CodedOutputStream
4021 .computeBoolSize(6, multipleResponses_);
4023 if (((bitField0_ & 0x00000040) == 0x00000040)) {
4024 size += com.google.protobuf.CodedOutputStream
4025 .computeDoubleSize(7, frequency_);
4027 if (((bitField0_ & 0x00000080) == 0x00000080)) {
4028 size += com.google.protobuf.CodedOutputStream
4029 .computeBytesSize(8, getNameBytes());
4031 if (((bitField0_ & 0x00000100) == 0x00000100)) {
4032 size += com.google.protobuf.CodedOutputStream
4033 .computeEnumSize(9, decodedType_.getNumber());
4035 if (((bitField0_ & 0x00000200) == 0x00000200)) {
4036 size += com.google.protobuf.CodedOutputStream
4037 .computeEnumSize(10, action_.getNumber());
4039 size += getUnknownFields().getSerializedSize();
4040 memoizedSerializedSize = size;
4044 private static final long serialVersionUID = 0L;
4046 protected java.lang.Object writeReplace()
4047 throws java.io.ObjectStreamException {
4048 return super.writeReplace();
4051 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4052 com.google.protobuf.ByteString data)
4053 throws com.google.protobuf.InvalidProtocolBufferException {
4054 return PARSER.parseFrom(data);
4056 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4057 com.google.protobuf.ByteString data,
4058 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4059 throws com.google.protobuf.InvalidProtocolBufferException {
4060 return PARSER.parseFrom(data, extensionRegistry);
4062 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
4063 throws com.google.protobuf.InvalidProtocolBufferException {
4064 return PARSER.parseFrom(data);
4066 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4068 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4069 throws com.google.protobuf.InvalidProtocolBufferException {
4070 return PARSER.parseFrom(data, extensionRegistry);
4072 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
4073 throws java.io.IOException {
4074 return PARSER.parseFrom(input);
4076 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4077 java.io.InputStream input,
4078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4079 throws java.io.IOException {
4080 return PARSER.parseFrom(input, extensionRegistry);
4082 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
4083 throws java.io.IOException {
4084 return PARSER.parseDelimitedFrom(input);
4086 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
4087 java.io.InputStream input,
4088 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4089 throws java.io.IOException {
4090 return PARSER.parseDelimitedFrom(input, extensionRegistry);
4092 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4093 com.google.protobuf.CodedInputStream input)
4094 throws java.io.IOException {
4095 return PARSER.parseFrom(input);
4097 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
4098 com.google.protobuf.CodedInputStream input,
4099 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4100 throws java.io.IOException {
4101 return PARSER.parseFrom(input, extensionRegistry);
4104 public static Builder newBuilder() { return Builder.create(); }
4105 public Builder newBuilderForType() { return newBuilder(); }
4106 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
4107 return newBuilder().mergeFrom(prototype);
4109 public Builder toBuilder() { return newBuilder(this); }
4112 protected Builder newBuilderForType(
4113 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4114 Builder builder = new Builder(parent);
4118 * Protobuf type {@code openxc.DiagnosticRequest}
4120 public static final class Builder extends
4121 com.google.protobuf.GeneratedMessage.Builder<Builder>
4122 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
4123 public static final com.google.protobuf.Descriptors.Descriptor
4125 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
4128 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4129 internalGetFieldAccessorTable() {
4130 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
4131 .ensureFieldAccessorsInitialized(
4132 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
4135 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
4137 maybeForceBuilderInitialization();
4141 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4143 maybeForceBuilderInitialization();
4145 private void maybeForceBuilderInitialization() {
4146 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4149 private static Builder create() {
4150 return new Builder();
4153 public Builder clear() {
4156 bitField0_ = (bitField0_ & ~0x00000001);
4158 bitField0_ = (bitField0_ & ~0x00000002);
4160 bitField0_ = (bitField0_ & ~0x00000004);
4162 bitField0_ = (bitField0_ & ~0x00000008);
4163 payload_ = com.google.protobuf.ByteString.EMPTY;
4164 bitField0_ = (bitField0_ & ~0x00000010);
4165 multipleResponses_ = false;
4166 bitField0_ = (bitField0_ & ~0x00000020);
4168 bitField0_ = (bitField0_ & ~0x00000040);
4170 bitField0_ = (bitField0_ & ~0x00000080);
4171 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4172 bitField0_ = (bitField0_ & ~0x00000100);
4173 action_ = com.openxc.BinaryMessages.DiagnosticRequest.Action.CREATE;
4174 bitField0_ = (bitField0_ & ~0x00000200);
4178 public Builder clone() {
4179 return create().mergeFrom(buildPartial());
4182 public com.google.protobuf.Descriptors.Descriptor
4183 getDescriptorForType() {
4184 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
4187 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
4188 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
4191 public com.openxc.BinaryMessages.DiagnosticRequest build() {
4192 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
4193 if (!result.isInitialized()) {
4194 throw newUninitializedMessageException(result);
4199 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
4200 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
4201 int from_bitField0_ = bitField0_;
4202 int to_bitField0_ = 0;
4203 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4204 to_bitField0_ |= 0x00000001;
4207 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4208 to_bitField0_ |= 0x00000002;
4210 result.messageId_ = messageId_;
4211 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
4212 to_bitField0_ |= 0x00000004;
4214 result.mode_ = mode_;
4215 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
4216 to_bitField0_ |= 0x00000008;
4219 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
4220 to_bitField0_ |= 0x00000010;
4222 result.payload_ = payload_;
4223 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
4224 to_bitField0_ |= 0x00000020;
4226 result.multipleResponses_ = multipleResponses_;
4227 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
4228 to_bitField0_ |= 0x00000040;
4230 result.frequency_ = frequency_;
4231 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
4232 to_bitField0_ |= 0x00000080;
4234 result.name_ = name_;
4235 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
4236 to_bitField0_ |= 0x00000100;
4238 result.decodedType_ = decodedType_;
4239 if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
4240 to_bitField0_ |= 0x00000200;
4242 result.action_ = action_;
4243 result.bitField0_ = to_bitField0_;
4248 public Builder mergeFrom(com.google.protobuf.Message other) {
4249 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
4250 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
4252 super.mergeFrom(other);
4257 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
4258 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
4259 if (other.hasBus()) {
4260 setBus(other.getBus());
4262 if (other.hasMessageId()) {
4263 setMessageId(other.getMessageId());
4265 if (other.hasMode()) {
4266 setMode(other.getMode());
4268 if (other.hasPid()) {
4269 setPid(other.getPid());
4271 if (other.hasPayload()) {
4272 setPayload(other.getPayload());
4274 if (other.hasMultipleResponses()) {
4275 setMultipleResponses(other.getMultipleResponses());
4277 if (other.hasFrequency()) {
4278 setFrequency(other.getFrequency());
4280 if (other.hasName()) {
4281 bitField0_ |= 0x00000080;
4282 name_ = other.name_;
4285 if (other.hasDecodedType()) {
4286 setDecodedType(other.getDecodedType());
4288 if (other.hasAction()) {
4289 setAction(other.getAction());
4291 this.mergeUnknownFields(other.getUnknownFields());
4295 public final boolean isInitialized() {
4299 public Builder mergeFrom(
4300 com.google.protobuf.CodedInputStream input,
4301 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4302 throws java.io.IOException {
4303 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
4305 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4306 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4307 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
4310 if (parsedMessage != null) {
4311 mergeFrom(parsedMessage);
4316 private int bitField0_;
4318 // optional int32 bus = 1;
4321 * <code>optional int32 bus = 1;</code>
4323 public boolean hasBus() {
4324 return ((bitField0_ & 0x00000001) == 0x00000001);
4327 * <code>optional int32 bus = 1;</code>
4329 public int getBus() {
4333 * <code>optional int32 bus = 1;</code>
4335 public Builder setBus(int value) {
4336 bitField0_ |= 0x00000001;
4342 * <code>optional int32 bus = 1;</code>
4344 public Builder clearBus() {
4345 bitField0_ = (bitField0_ & ~0x00000001);
4351 // optional uint32 message_id = 2;
4352 private int messageId_ ;
4354 * <code>optional uint32 message_id = 2;</code>
4356 public boolean hasMessageId() {
4357 return ((bitField0_ & 0x00000002) == 0x00000002);
4360 * <code>optional uint32 message_id = 2;</code>
4362 public int getMessageId() {
4366 * <code>optional uint32 message_id = 2;</code>
4368 public Builder setMessageId(int value) {
4369 bitField0_ |= 0x00000002;
4375 * <code>optional uint32 message_id = 2;</code>
4377 public Builder clearMessageId() {
4378 bitField0_ = (bitField0_ & ~0x00000002);
4384 // optional uint32 mode = 3;
4387 * <code>optional uint32 mode = 3;</code>
4389 public boolean hasMode() {
4390 return ((bitField0_ & 0x00000004) == 0x00000004);
4393 * <code>optional uint32 mode = 3;</code>
4395 public int getMode() {
4399 * <code>optional uint32 mode = 3;</code>
4401 public Builder setMode(int value) {
4402 bitField0_ |= 0x00000004;
4408 * <code>optional uint32 mode = 3;</code>
4410 public Builder clearMode() {
4411 bitField0_ = (bitField0_ & ~0x00000004);
4417 // optional uint32 pid = 4;
4420 * <code>optional uint32 pid = 4;</code>
4422 public boolean hasPid() {
4423 return ((bitField0_ & 0x00000008) == 0x00000008);
4426 * <code>optional uint32 pid = 4;</code>
4428 public int getPid() {
4432 * <code>optional uint32 pid = 4;</code>
4434 public Builder setPid(int value) {
4435 bitField0_ |= 0x00000008;
4441 * <code>optional uint32 pid = 4;</code>
4443 public Builder clearPid() {
4444 bitField0_ = (bitField0_ & ~0x00000008);
4450 // optional bytes payload = 5;
4451 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
4453 * <code>optional bytes payload = 5;</code>
4456 * TODO we are capping this at 8 bytes for now - need to change when we
4457 * support multi-frame responses
4460 public boolean hasPayload() {
4461 return ((bitField0_ & 0x00000010) == 0x00000010);
4464 * <code>optional bytes payload = 5;</code>
4467 * TODO we are capping this at 8 bytes for now - need to change when we
4468 * support multi-frame responses
4471 public com.google.protobuf.ByteString getPayload() {
4475 * <code>optional bytes payload = 5;</code>
4478 * TODO we are capping this at 8 bytes for now - need to change when we
4479 * support multi-frame responses
4482 public Builder setPayload(com.google.protobuf.ByteString value) {
4483 if (value == null) {
4484 throw new NullPointerException();
4486 bitField0_ |= 0x00000010;
4492 * <code>optional bytes payload = 5;</code>
4495 * TODO we are capping this at 8 bytes for now - need to change when we
4496 * support multi-frame responses
4499 public Builder clearPayload() {
4500 bitField0_ = (bitField0_ & ~0x00000010);
4501 payload_ = getDefaultInstance().getPayload();
4506 // optional bool multiple_responses = 6;
4507 private boolean multipleResponses_ ;
4509 * <code>optional bool multiple_responses = 6;</code>
4511 public boolean hasMultipleResponses() {
4512 return ((bitField0_ & 0x00000020) == 0x00000020);
4515 * <code>optional bool multiple_responses = 6;</code>
4517 public boolean getMultipleResponses() {
4518 return multipleResponses_;
4521 * <code>optional bool multiple_responses = 6;</code>
4523 public Builder setMultipleResponses(boolean value) {
4524 bitField0_ |= 0x00000020;
4525 multipleResponses_ = value;
4530 * <code>optional bool multiple_responses = 6;</code>
4532 public Builder clearMultipleResponses() {
4533 bitField0_ = (bitField0_ & ~0x00000020);
4534 multipleResponses_ = false;
4539 // optional double frequency = 7;
4540 private double frequency_ ;
4542 * <code>optional double frequency = 7;</code>
4544 public boolean hasFrequency() {
4545 return ((bitField0_ & 0x00000040) == 0x00000040);
4548 * <code>optional double frequency = 7;</code>
4550 public double getFrequency() {
4554 * <code>optional double frequency = 7;</code>
4556 public Builder setFrequency(double value) {
4557 bitField0_ |= 0x00000040;
4563 * <code>optional double frequency = 7;</code>
4565 public Builder clearFrequency() {
4566 bitField0_ = (bitField0_ & ~0x00000040);
4572 // optional string name = 8;
4573 private java.lang.Object name_ = "";
4575 * <code>optional string name = 8;</code>
4577 public boolean hasName() {
4578 return ((bitField0_ & 0x00000080) == 0x00000080);
4581 * <code>optional string name = 8;</code>
4583 public java.lang.String getName() {
4584 java.lang.Object ref = name_;
4585 if (!(ref instanceof java.lang.String)) {
4586 java.lang.String s = ((com.google.protobuf.ByteString) ref)
4591 return (java.lang.String) ref;
4595 * <code>optional string name = 8;</code>
4597 public com.google.protobuf.ByteString
4599 java.lang.Object ref = name_;
4600 if (ref instanceof String) {
4601 com.google.protobuf.ByteString b =
4602 com.google.protobuf.ByteString.copyFromUtf8(
4603 (java.lang.String) ref);
4607 return (com.google.protobuf.ByteString) ref;
4611 * <code>optional string name = 8;</code>
4613 public Builder setName(
4614 java.lang.String value) {
4615 if (value == null) {
4616 throw new NullPointerException();
4618 bitField0_ |= 0x00000080;
4624 * <code>optional string name = 8;</code>
4626 public Builder clearName() {
4627 bitField0_ = (bitField0_ & ~0x00000080);
4628 name_ = getDefaultInstance().getName();
4633 * <code>optional string name = 8;</code>
4635 public Builder setNameBytes(
4636 com.google.protobuf.ByteString value) {
4637 if (value == null) {
4638 throw new NullPointerException();
4640 bitField0_ |= 0x00000080;
4646 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
4647 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4649 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4651 public boolean hasDecodedType() {
4652 return ((bitField0_ & 0x00000100) == 0x00000100);
4655 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4657 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
4658 return decodedType_;
4661 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4663 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
4664 if (value == null) {
4665 throw new NullPointerException();
4667 bitField0_ |= 0x00000100;
4668 decodedType_ = value;
4673 * <code>optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;</code>
4675 public Builder clearDecodedType() {
4676 bitField0_ = (bitField0_ & ~0x00000100);
4677 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
4682 // optional .openxc.DiagnosticRequest.Action action = 10;
4683 private com.openxc.BinaryMessages.DiagnosticRequest.Action action_ = com.openxc.BinaryMessages.DiagnosticRequest.Action.CREATE;
4685 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
4687 public boolean hasAction() {
4688 return ((bitField0_ & 0x00000200) == 0x00000200);
4691 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
4693 public com.openxc.BinaryMessages.DiagnosticRequest.Action getAction() {
4697 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
4699 public Builder setAction(com.openxc.BinaryMessages.DiagnosticRequest.Action value) {
4700 if (value == null) {
4701 throw new NullPointerException();
4703 bitField0_ |= 0x00000200;
4709 * <code>optional .openxc.DiagnosticRequest.Action action = 10;</code>
4711 public Builder clearAction() {
4712 bitField0_ = (bitField0_ & ~0x00000200);
4713 action_ = com.openxc.BinaryMessages.DiagnosticRequest.Action.CREATE;
4718 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
4722 defaultInstance = new DiagnosticRequest(true);
4723 defaultInstance.initFields();
4726 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
4729 public interface DiagnosticResponseOrBuilder
4730 extends com.google.protobuf.MessageOrBuilder {
4732 // optional int32 bus = 1;
4734 * <code>optional int32 bus = 1;</code>
4738 * <code>optional int32 bus = 1;</code>
4742 // optional uint32 message_id = 2;
4744 * <code>optional uint32 message_id = 2;</code>
4746 boolean hasMessageId();
4748 * <code>optional uint32 message_id = 2;</code>
4752 // optional uint32 mode = 3;
4754 * <code>optional uint32 mode = 3;</code>
4758 * <code>optional uint32 mode = 3;</code>
4762 // optional uint32 pid = 4;
4764 * <code>optional uint32 pid = 4;</code>
4768 * <code>optional uint32 pid = 4;</code>
4772 // optional bool success = 5;
4774 * <code>optional bool success = 5;</code>
4776 boolean hasSuccess();
4778 * <code>optional bool success = 5;</code>
4780 boolean getSuccess();
4782 // optional uint32 negative_response_code = 6;
4784 * <code>optional uint32 negative_response_code = 6;</code>
4786 boolean hasNegativeResponseCode();
4788 * <code>optional uint32 negative_response_code = 6;</code>
4790 int getNegativeResponseCode();
4792 // optional bytes payload = 7;
4794 * <code>optional bytes payload = 7;</code>
4797 * TODO we are capping this at 8 bytes for now - need to change when we
4798 * support multi-frame responses
4801 boolean hasPayload();
4803 * <code>optional bytes payload = 7;</code>
4806 * TODO we are capping this at 8 bytes for now - need to change when we
4807 * support multi-frame responses
4810 com.google.protobuf.ByteString getPayload();
4812 // optional double value = 8;
4814 * <code>optional double value = 8;</code>
4818 * <code>optional double value = 8;</code>
4823 * Protobuf type {@code openxc.DiagnosticResponse}
4825 public static final class DiagnosticResponse extends
4826 com.google.protobuf.GeneratedMessage
4827 implements DiagnosticResponseOrBuilder {
4828 // Use DiagnosticResponse.newBuilder() to construct.
4829 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4831 this.unknownFields = builder.getUnknownFields();
4833 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4835 private static final DiagnosticResponse defaultInstance;
4836 public static DiagnosticResponse getDefaultInstance() {
4837 return defaultInstance;
4840 public DiagnosticResponse getDefaultInstanceForType() {
4841 return defaultInstance;
4844 private final com.google.protobuf.UnknownFieldSet unknownFields;
4846 public final com.google.protobuf.UnknownFieldSet
4847 getUnknownFields() {
4848 return this.unknownFields;
4850 private DiagnosticResponse(
4851 com.google.protobuf.CodedInputStream input,
4852 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4853 throws com.google.protobuf.InvalidProtocolBufferException {
4855 int mutable_bitField0_ = 0;
4856 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4857 com.google.protobuf.UnknownFieldSet.newBuilder();
4859 boolean done = false;
4861 int tag = input.readTag();
4867 if (!parseUnknownField(input, unknownFields,
4868 extensionRegistry, tag)) {
4874 bitField0_ |= 0x00000001;
4875 bus_ = input.readInt32();
4879 bitField0_ |= 0x00000002;
4880 messageId_ = input.readUInt32();
4884 bitField0_ |= 0x00000004;
4885 mode_ = input.readUInt32();
4889 bitField0_ |= 0x00000008;
4890 pid_ = input.readUInt32();
4894 bitField0_ |= 0x00000010;
4895 success_ = input.readBool();
4899 bitField0_ |= 0x00000020;
4900 negativeResponseCode_ = input.readUInt32();
4904 bitField0_ |= 0x00000040;
4905 payload_ = input.readBytes();
4909 bitField0_ |= 0x00000080;
4910 value_ = input.readDouble();
4915 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4916 throw e.setUnfinishedMessage(this);
4917 } catch (java.io.IOException e) {
4918 throw new com.google.protobuf.InvalidProtocolBufferException(
4919 e.getMessage()).setUnfinishedMessage(this);
4921 this.unknownFields = unknownFields.build();
4922 makeExtensionsImmutable();
4925 public static final com.google.protobuf.Descriptors.Descriptor
4927 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
4930 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4931 internalGetFieldAccessorTable() {
4932 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
4933 .ensureFieldAccessorsInitialized(
4934 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
4937 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
4938 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
4939 public DiagnosticResponse parsePartialFrom(
4940 com.google.protobuf.CodedInputStream input,
4941 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4942 throws com.google.protobuf.InvalidProtocolBufferException {
4943 return new DiagnosticResponse(input, extensionRegistry);
4948 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
4952 private int bitField0_;
4953 // optional int32 bus = 1;
4954 public static final int BUS_FIELD_NUMBER = 1;
4957 * <code>optional int32 bus = 1;</code>
4959 public boolean hasBus() {
4960 return ((bitField0_ & 0x00000001) == 0x00000001);
4963 * <code>optional int32 bus = 1;</code>
4965 public int getBus() {
4969 // optional uint32 message_id = 2;
4970 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
4971 private int messageId_;
4973 * <code>optional uint32 message_id = 2;</code>
4975 public boolean hasMessageId() {
4976 return ((bitField0_ & 0x00000002) == 0x00000002);
4979 * <code>optional uint32 message_id = 2;</code>
4981 public int getMessageId() {
4985 // optional uint32 mode = 3;
4986 public static final int MODE_FIELD_NUMBER = 3;
4989 * <code>optional uint32 mode = 3;</code>
4991 public boolean hasMode() {
4992 return ((bitField0_ & 0x00000004) == 0x00000004);
4995 * <code>optional uint32 mode = 3;</code>
4997 public int getMode() {
5001 // optional uint32 pid = 4;
5002 public static final int PID_FIELD_NUMBER = 4;
5005 * <code>optional uint32 pid = 4;</code>
5007 public boolean hasPid() {
5008 return ((bitField0_ & 0x00000008) == 0x00000008);
5011 * <code>optional uint32 pid = 4;</code>
5013 public int getPid() {
5017 // optional bool success = 5;
5018 public static final int SUCCESS_FIELD_NUMBER = 5;
5019 private boolean success_;
5021 * <code>optional bool success = 5;</code>
5023 public boolean hasSuccess() {
5024 return ((bitField0_ & 0x00000010) == 0x00000010);
5027 * <code>optional bool success = 5;</code>
5029 public boolean getSuccess() {
5033 // optional uint32 negative_response_code = 6;
5034 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
5035 private int negativeResponseCode_;
5037 * <code>optional uint32 negative_response_code = 6;</code>
5039 public boolean hasNegativeResponseCode() {
5040 return ((bitField0_ & 0x00000020) == 0x00000020);
5043 * <code>optional uint32 negative_response_code = 6;</code>
5045 public int getNegativeResponseCode() {
5046 return negativeResponseCode_;
5049 // optional bytes payload = 7;
5050 public static final int PAYLOAD_FIELD_NUMBER = 7;
5051 private com.google.protobuf.ByteString payload_;
5053 * <code>optional bytes payload = 7;</code>
5056 * TODO we are capping this at 8 bytes for now - need to change when we
5057 * support multi-frame responses
5060 public boolean hasPayload() {
5061 return ((bitField0_ & 0x00000040) == 0x00000040);
5064 * <code>optional bytes payload = 7;</code>
5067 * TODO we are capping this at 8 bytes for now - need to change when we
5068 * support multi-frame responses
5071 public com.google.protobuf.ByteString getPayload() {
5075 // optional double value = 8;
5076 public static final int VALUE_FIELD_NUMBER = 8;
5077 private double value_;
5079 * <code>optional double value = 8;</code>
5081 public boolean hasValue() {
5082 return ((bitField0_ & 0x00000080) == 0x00000080);
5085 * <code>optional double value = 8;</code>
5087 public double getValue() {
5091 private void initFields() {
5097 negativeResponseCode_ = 0;
5098 payload_ = com.google.protobuf.ByteString.EMPTY;
5101 private byte memoizedIsInitialized = -1;
5102 public final boolean isInitialized() {
5103 byte isInitialized = memoizedIsInitialized;
5104 if (isInitialized != -1) return isInitialized == 1;
5106 memoizedIsInitialized = 1;
5110 public void writeTo(com.google.protobuf.CodedOutputStream output)
5111 throws java.io.IOException {
5112 getSerializedSize();
5113 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5114 output.writeInt32(1, bus_);
5116 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5117 output.writeUInt32(2, messageId_);
5119 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5120 output.writeUInt32(3, mode_);
5122 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5123 output.writeUInt32(4, pid_);
5125 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5126 output.writeBool(5, success_);
5128 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5129 output.writeUInt32(6, negativeResponseCode_);
5131 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5132 output.writeBytes(7, payload_);
5134 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5135 output.writeDouble(8, value_);
5137 getUnknownFields().writeTo(output);
5140 private int memoizedSerializedSize = -1;
5141 public int getSerializedSize() {
5142 int size = memoizedSerializedSize;
5143 if (size != -1) return size;
5146 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5147 size += com.google.protobuf.CodedOutputStream
5148 .computeInt32Size(1, bus_);
5150 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5151 size += com.google.protobuf.CodedOutputStream
5152 .computeUInt32Size(2, messageId_);
5154 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5155 size += com.google.protobuf.CodedOutputStream
5156 .computeUInt32Size(3, mode_);
5158 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5159 size += com.google.protobuf.CodedOutputStream
5160 .computeUInt32Size(4, pid_);
5162 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5163 size += com.google.protobuf.CodedOutputStream
5164 .computeBoolSize(5, success_);
5166 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5167 size += com.google.protobuf.CodedOutputStream
5168 .computeUInt32Size(6, negativeResponseCode_);
5170 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5171 size += com.google.protobuf.CodedOutputStream
5172 .computeBytesSize(7, payload_);
5174 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5175 size += com.google.protobuf.CodedOutputStream
5176 .computeDoubleSize(8, value_);
5178 size += getUnknownFields().getSerializedSize();
5179 memoizedSerializedSize = size;
5183 private static final long serialVersionUID = 0L;
5185 protected java.lang.Object writeReplace()
5186 throws java.io.ObjectStreamException {
5187 return super.writeReplace();
5190 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5191 com.google.protobuf.ByteString data)
5192 throws com.google.protobuf.InvalidProtocolBufferException {
5193 return PARSER.parseFrom(data);
5195 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5196 com.google.protobuf.ByteString data,
5197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5198 throws com.google.protobuf.InvalidProtocolBufferException {
5199 return PARSER.parseFrom(data, extensionRegistry);
5201 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
5202 throws com.google.protobuf.InvalidProtocolBufferException {
5203 return PARSER.parseFrom(data);
5205 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5208 throws com.google.protobuf.InvalidProtocolBufferException {
5209 return PARSER.parseFrom(data, extensionRegistry);
5211 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
5212 throws java.io.IOException {
5213 return PARSER.parseFrom(input);
5215 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5216 java.io.InputStream input,
5217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5218 throws java.io.IOException {
5219 return PARSER.parseFrom(input, extensionRegistry);
5221 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
5222 throws java.io.IOException {
5223 return PARSER.parseDelimitedFrom(input);
5225 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
5226 java.io.InputStream input,
5227 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5228 throws java.io.IOException {
5229 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5231 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5232 com.google.protobuf.CodedInputStream input)
5233 throws java.io.IOException {
5234 return PARSER.parseFrom(input);
5236 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
5237 com.google.protobuf.CodedInputStream input,
5238 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5239 throws java.io.IOException {
5240 return PARSER.parseFrom(input, extensionRegistry);
5243 public static Builder newBuilder() { return Builder.create(); }
5244 public Builder newBuilderForType() { return newBuilder(); }
5245 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
5246 return newBuilder().mergeFrom(prototype);
5248 public Builder toBuilder() { return newBuilder(this); }
5251 protected Builder newBuilderForType(
5252 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5253 Builder builder = new Builder(parent);
5257 * Protobuf type {@code openxc.DiagnosticResponse}
5259 public static final class Builder extends
5260 com.google.protobuf.GeneratedMessage.Builder<Builder>
5261 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
5262 public static final com.google.protobuf.Descriptors.Descriptor
5264 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
5267 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5268 internalGetFieldAccessorTable() {
5269 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
5270 .ensureFieldAccessorsInitialized(
5271 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
5274 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
5276 maybeForceBuilderInitialization();
5280 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5282 maybeForceBuilderInitialization();
5284 private void maybeForceBuilderInitialization() {
5285 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5288 private static Builder create() {
5289 return new Builder();
5292 public Builder clear() {
5295 bitField0_ = (bitField0_ & ~0x00000001);
5297 bitField0_ = (bitField0_ & ~0x00000002);
5299 bitField0_ = (bitField0_ & ~0x00000004);
5301 bitField0_ = (bitField0_ & ~0x00000008);
5303 bitField0_ = (bitField0_ & ~0x00000010);
5304 negativeResponseCode_ = 0;
5305 bitField0_ = (bitField0_ & ~0x00000020);
5306 payload_ = com.google.protobuf.ByteString.EMPTY;
5307 bitField0_ = (bitField0_ & ~0x00000040);
5309 bitField0_ = (bitField0_ & ~0x00000080);
5313 public Builder clone() {
5314 return create().mergeFrom(buildPartial());
5317 public com.google.protobuf.Descriptors.Descriptor
5318 getDescriptorForType() {
5319 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
5322 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
5323 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
5326 public com.openxc.BinaryMessages.DiagnosticResponse build() {
5327 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
5328 if (!result.isInitialized()) {
5329 throw newUninitializedMessageException(result);
5334 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
5335 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
5336 int from_bitField0_ = bitField0_;
5337 int to_bitField0_ = 0;
5338 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5339 to_bitField0_ |= 0x00000001;
5342 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5343 to_bitField0_ |= 0x00000002;
5345 result.messageId_ = messageId_;
5346 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
5347 to_bitField0_ |= 0x00000004;
5349 result.mode_ = mode_;
5350 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
5351 to_bitField0_ |= 0x00000008;
5354 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
5355 to_bitField0_ |= 0x00000010;
5357 result.success_ = success_;
5358 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
5359 to_bitField0_ |= 0x00000020;
5361 result.negativeResponseCode_ = negativeResponseCode_;
5362 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
5363 to_bitField0_ |= 0x00000040;
5365 result.payload_ = payload_;
5366 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
5367 to_bitField0_ |= 0x00000080;
5369 result.value_ = value_;
5370 result.bitField0_ = to_bitField0_;
5375 public Builder mergeFrom(com.google.protobuf.Message other) {
5376 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
5377 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
5379 super.mergeFrom(other);
5384 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
5385 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
5386 if (other.hasBus()) {
5387 setBus(other.getBus());
5389 if (other.hasMessageId()) {
5390 setMessageId(other.getMessageId());
5392 if (other.hasMode()) {
5393 setMode(other.getMode());
5395 if (other.hasPid()) {
5396 setPid(other.getPid());
5398 if (other.hasSuccess()) {
5399 setSuccess(other.getSuccess());
5401 if (other.hasNegativeResponseCode()) {
5402 setNegativeResponseCode(other.getNegativeResponseCode());
5404 if (other.hasPayload()) {
5405 setPayload(other.getPayload());
5407 if (other.hasValue()) {
5408 setValue(other.getValue());
5410 this.mergeUnknownFields(other.getUnknownFields());
5414 public final boolean isInitialized() {
5418 public Builder mergeFrom(
5419 com.google.protobuf.CodedInputStream input,
5420 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5421 throws java.io.IOException {
5422 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
5424 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5425 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5426 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
5429 if (parsedMessage != null) {
5430 mergeFrom(parsedMessage);
5435 private int bitField0_;
5437 // optional int32 bus = 1;
5440 * <code>optional int32 bus = 1;</code>
5442 public boolean hasBus() {
5443 return ((bitField0_ & 0x00000001) == 0x00000001);
5446 * <code>optional int32 bus = 1;</code>
5448 public int getBus() {
5452 * <code>optional int32 bus = 1;</code>
5454 public Builder setBus(int value) {
5455 bitField0_ |= 0x00000001;
5461 * <code>optional int32 bus = 1;</code>
5463 public Builder clearBus() {
5464 bitField0_ = (bitField0_ & ~0x00000001);
5470 // optional uint32 message_id = 2;
5471 private int messageId_ ;
5473 * <code>optional uint32 message_id = 2;</code>
5475 public boolean hasMessageId() {
5476 return ((bitField0_ & 0x00000002) == 0x00000002);
5479 * <code>optional uint32 message_id = 2;</code>
5481 public int getMessageId() {
5485 * <code>optional uint32 message_id = 2;</code>
5487 public Builder setMessageId(int value) {
5488 bitField0_ |= 0x00000002;
5494 * <code>optional uint32 message_id = 2;</code>
5496 public Builder clearMessageId() {
5497 bitField0_ = (bitField0_ & ~0x00000002);
5503 // optional uint32 mode = 3;
5506 * <code>optional uint32 mode = 3;</code>
5508 public boolean hasMode() {
5509 return ((bitField0_ & 0x00000004) == 0x00000004);
5512 * <code>optional uint32 mode = 3;</code>
5514 public int getMode() {
5518 * <code>optional uint32 mode = 3;</code>
5520 public Builder setMode(int value) {
5521 bitField0_ |= 0x00000004;
5527 * <code>optional uint32 mode = 3;</code>
5529 public Builder clearMode() {
5530 bitField0_ = (bitField0_ & ~0x00000004);
5536 // optional uint32 pid = 4;
5539 * <code>optional uint32 pid = 4;</code>
5541 public boolean hasPid() {
5542 return ((bitField0_ & 0x00000008) == 0x00000008);
5545 * <code>optional uint32 pid = 4;</code>
5547 public int getPid() {
5551 * <code>optional uint32 pid = 4;</code>
5553 public Builder setPid(int value) {
5554 bitField0_ |= 0x00000008;
5560 * <code>optional uint32 pid = 4;</code>
5562 public Builder clearPid() {
5563 bitField0_ = (bitField0_ & ~0x00000008);
5569 // optional bool success = 5;
5570 private boolean success_ ;
5572 * <code>optional bool success = 5;</code>
5574 public boolean hasSuccess() {
5575 return ((bitField0_ & 0x00000010) == 0x00000010);
5578 * <code>optional bool success = 5;</code>
5580 public boolean getSuccess() {
5584 * <code>optional bool success = 5;</code>
5586 public Builder setSuccess(boolean value) {
5587 bitField0_ |= 0x00000010;
5593 * <code>optional bool success = 5;</code>
5595 public Builder clearSuccess() {
5596 bitField0_ = (bitField0_ & ~0x00000010);
5602 // optional uint32 negative_response_code = 6;
5603 private int negativeResponseCode_ ;
5605 * <code>optional uint32 negative_response_code = 6;</code>
5607 public boolean hasNegativeResponseCode() {
5608 return ((bitField0_ & 0x00000020) == 0x00000020);
5611 * <code>optional uint32 negative_response_code = 6;</code>
5613 public int getNegativeResponseCode() {
5614 return negativeResponseCode_;
5617 * <code>optional uint32 negative_response_code = 6;</code>
5619 public Builder setNegativeResponseCode(int value) {
5620 bitField0_ |= 0x00000020;
5621 negativeResponseCode_ = value;
5626 * <code>optional uint32 negative_response_code = 6;</code>
5628 public Builder clearNegativeResponseCode() {
5629 bitField0_ = (bitField0_ & ~0x00000020);
5630 negativeResponseCode_ = 0;
5635 // optional bytes payload = 7;
5636 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
5638 * <code>optional bytes payload = 7;</code>
5641 * TODO we are capping this at 8 bytes for now - need to change when we
5642 * support multi-frame responses
5645 public boolean hasPayload() {
5646 return ((bitField0_ & 0x00000040) == 0x00000040);
5649 * <code>optional bytes payload = 7;</code>
5652 * TODO we are capping this at 8 bytes for now - need to change when we
5653 * support multi-frame responses
5656 public com.google.protobuf.ByteString getPayload() {
5660 * <code>optional bytes payload = 7;</code>
5663 * TODO we are capping this at 8 bytes for now - need to change when we
5664 * support multi-frame responses
5667 public Builder setPayload(com.google.protobuf.ByteString value) {
5668 if (value == null) {
5669 throw new NullPointerException();
5671 bitField0_ |= 0x00000040;
5677 * <code>optional bytes payload = 7;</code>
5680 * TODO we are capping this at 8 bytes for now - need to change when we
5681 * support multi-frame responses
5684 public Builder clearPayload() {
5685 bitField0_ = (bitField0_ & ~0x00000040);
5686 payload_ = getDefaultInstance().getPayload();
5691 // optional double value = 8;
5692 private double value_ ;
5694 * <code>optional double value = 8;</code>
5696 public boolean hasValue() {
5697 return ((bitField0_ & 0x00000080) == 0x00000080);
5700 * <code>optional double value = 8;</code>
5702 public double getValue() {
5706 * <code>optional double value = 8;</code>
5708 public Builder setValue(double value) {
5709 bitField0_ |= 0x00000080;
5715 * <code>optional double value = 8;</code>
5717 public Builder clearValue() {
5718 bitField0_ = (bitField0_ & ~0x00000080);
5724 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
5728 defaultInstance = new DiagnosticResponse(true);
5729 defaultInstance.initFields();
5732 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
5735 public interface DynamicFieldOrBuilder
5736 extends com.google.protobuf.MessageOrBuilder {
5738 // optional .openxc.DynamicField.Type type = 1;
5740 * <code>optional .openxc.DynamicField.Type type = 1;</code>
5744 * <code>optional .openxc.DynamicField.Type type = 1;</code>
5746 com.openxc.BinaryMessages.DynamicField.Type getType();
5748 // optional string string_value = 2;
5750 * <code>optional string string_value = 2;</code>
5752 boolean hasStringValue();
5754 * <code>optional string string_value = 2;</code>
5756 java.lang.String getStringValue();
5758 * <code>optional string string_value = 2;</code>
5760 com.google.protobuf.ByteString
5761 getStringValueBytes();
5763 // optional double numeric_value = 3;
5765 * <code>optional double numeric_value = 3;</code>
5767 boolean hasNumericValue();
5769 * <code>optional double numeric_value = 3;</code>
5771 double getNumericValue();
5773 // optional bool boolean_value = 4;
5775 * <code>optional bool boolean_value = 4;</code>
5777 boolean hasBooleanValue();
5779 * <code>optional bool boolean_value = 4;</code>
5781 boolean getBooleanValue();
5784 * Protobuf type {@code openxc.DynamicField}
5786 public static final class DynamicField extends
5787 com.google.protobuf.GeneratedMessage
5788 implements DynamicFieldOrBuilder {
5789 // Use DynamicField.newBuilder() to construct.
5790 private DynamicField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
5792 this.unknownFields = builder.getUnknownFields();
5794 private DynamicField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
5796 private static final DynamicField defaultInstance;
5797 public static DynamicField getDefaultInstance() {
5798 return defaultInstance;
5801 public DynamicField getDefaultInstanceForType() {
5802 return defaultInstance;
5805 private final com.google.protobuf.UnknownFieldSet unknownFields;
5807 public final com.google.protobuf.UnknownFieldSet
5808 getUnknownFields() {
5809 return this.unknownFields;
5811 private DynamicField(
5812 com.google.protobuf.CodedInputStream input,
5813 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5814 throws com.google.protobuf.InvalidProtocolBufferException {
5816 int mutable_bitField0_ = 0;
5817 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5818 com.google.protobuf.UnknownFieldSet.newBuilder();
5820 boolean done = false;
5822 int tag = input.readTag();
5828 if (!parseUnknownField(input, unknownFields,
5829 extensionRegistry, tag)) {
5835 int rawValue = input.readEnum();
5836 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
5837 if (value == null) {
5838 unknownFields.mergeVarintField(1, rawValue);
5840 bitField0_ |= 0x00000001;
5846 bitField0_ |= 0x00000002;
5847 stringValue_ = input.readBytes();
5851 bitField0_ |= 0x00000004;
5852 numericValue_ = input.readDouble();
5856 bitField0_ |= 0x00000008;
5857 booleanValue_ = input.readBool();
5862 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5863 throw e.setUnfinishedMessage(this);
5864 } catch (java.io.IOException e) {
5865 throw new com.google.protobuf.InvalidProtocolBufferException(
5866 e.getMessage()).setUnfinishedMessage(this);
5868 this.unknownFields = unknownFields.build();
5869 makeExtensionsImmutable();
5872 public static final com.google.protobuf.Descriptors.Descriptor
5874 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
5877 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5878 internalGetFieldAccessorTable() {
5879 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
5880 .ensureFieldAccessorsInitialized(
5881 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
5884 public static com.google.protobuf.Parser<DynamicField> PARSER =
5885 new com.google.protobuf.AbstractParser<DynamicField>() {
5886 public DynamicField parsePartialFrom(
5887 com.google.protobuf.CodedInputStream input,
5888 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5889 throws com.google.protobuf.InvalidProtocolBufferException {
5890 return new DynamicField(input, extensionRegistry);
5895 public com.google.protobuf.Parser<DynamicField> getParserForType() {
5900 * Protobuf enum {@code openxc.DynamicField.Type}
5903 implements com.google.protobuf.ProtocolMessageEnum {
5905 * <code>STRING = 1;</code>
5909 * <code>NUM = 2;</code>
5913 * <code>BOOL = 3;</code>
5919 * <code>STRING = 1;</code>
5921 public static final int STRING_VALUE = 1;
5923 * <code>NUM = 2;</code>
5925 public static final int NUM_VALUE = 2;
5927 * <code>BOOL = 3;</code>
5929 public static final int BOOL_VALUE = 3;
5932 public final int getNumber() { return value; }
5934 public static Type valueOf(int value) {
5936 case 1: return STRING;
5938 case 3: return BOOL;
5939 default: return null;
5943 public static com.google.protobuf.Internal.EnumLiteMap<Type>
5944 internalGetValueMap() {
5945 return internalValueMap;
5947 private static com.google.protobuf.Internal.EnumLiteMap<Type>
5949 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
5950 public Type findValueByNumber(int number) {
5951 return Type.valueOf(number);
5955 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5956 getValueDescriptor() {
5957 return getDescriptor().getValues().get(index);
5959 public final com.google.protobuf.Descriptors.EnumDescriptor
5960 getDescriptorForType() {
5961 return getDescriptor();
5963 public static final com.google.protobuf.Descriptors.EnumDescriptor
5965 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
5968 private static final Type[] VALUES = values();
5970 public static Type valueOf(
5971 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5972 if (desc.getType() != getDescriptor()) {
5973 throw new java.lang.IllegalArgumentException(
5974 "EnumValueDescriptor is not for this type.");
5976 return VALUES[desc.getIndex()];
5979 private final int index;
5980 private final int value;
5982 private Type(int index, int value) {
5987 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
5990 private int bitField0_;
5991 // optional .openxc.DynamicField.Type type = 1;
5992 public static final int TYPE_FIELD_NUMBER = 1;
5993 private com.openxc.BinaryMessages.DynamicField.Type type_;
5995 * <code>optional .openxc.DynamicField.Type type = 1;</code>
5997 public boolean hasType() {
5998 return ((bitField0_ & 0x00000001) == 0x00000001);
6001 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6003 public com.openxc.BinaryMessages.DynamicField.Type getType() {
6007 // optional string string_value = 2;
6008 public static final int STRING_VALUE_FIELD_NUMBER = 2;
6009 private java.lang.Object stringValue_;
6011 * <code>optional string string_value = 2;</code>
6013 public boolean hasStringValue() {
6014 return ((bitField0_ & 0x00000002) == 0x00000002);
6017 * <code>optional string string_value = 2;</code>
6019 public java.lang.String getStringValue() {
6020 java.lang.Object ref = stringValue_;
6021 if (ref instanceof java.lang.String) {
6022 return (java.lang.String) ref;
6024 com.google.protobuf.ByteString bs =
6025 (com.google.protobuf.ByteString) ref;
6026 java.lang.String s = bs.toStringUtf8();
6027 if (bs.isValidUtf8()) {
6034 * <code>optional string string_value = 2;</code>
6036 public com.google.protobuf.ByteString
6037 getStringValueBytes() {
6038 java.lang.Object ref = stringValue_;
6039 if (ref instanceof java.lang.String) {
6040 com.google.protobuf.ByteString b =
6041 com.google.protobuf.ByteString.copyFromUtf8(
6042 (java.lang.String) ref);
6046 return (com.google.protobuf.ByteString) ref;
6050 // optional double numeric_value = 3;
6051 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
6052 private double numericValue_;
6054 * <code>optional double numeric_value = 3;</code>
6056 public boolean hasNumericValue() {
6057 return ((bitField0_ & 0x00000004) == 0x00000004);
6060 * <code>optional double numeric_value = 3;</code>
6062 public double getNumericValue() {
6063 return numericValue_;
6066 // optional bool boolean_value = 4;
6067 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
6068 private boolean booleanValue_;
6070 * <code>optional bool boolean_value = 4;</code>
6072 public boolean hasBooleanValue() {
6073 return ((bitField0_ & 0x00000008) == 0x00000008);
6076 * <code>optional bool boolean_value = 4;</code>
6078 public boolean getBooleanValue() {
6079 return booleanValue_;
6082 private void initFields() {
6083 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6086 booleanValue_ = false;
6088 private byte memoizedIsInitialized = -1;
6089 public final boolean isInitialized() {
6090 byte isInitialized = memoizedIsInitialized;
6091 if (isInitialized != -1) return isInitialized == 1;
6093 memoizedIsInitialized = 1;
6097 public void writeTo(com.google.protobuf.CodedOutputStream output)
6098 throws java.io.IOException {
6099 getSerializedSize();
6100 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6101 output.writeEnum(1, type_.getNumber());
6103 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6104 output.writeBytes(2, getStringValueBytes());
6106 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6107 output.writeDouble(3, numericValue_);
6109 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6110 output.writeBool(4, booleanValue_);
6112 getUnknownFields().writeTo(output);
6115 private int memoizedSerializedSize = -1;
6116 public int getSerializedSize() {
6117 int size = memoizedSerializedSize;
6118 if (size != -1) return size;
6121 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6122 size += com.google.protobuf.CodedOutputStream
6123 .computeEnumSize(1, type_.getNumber());
6125 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6126 size += com.google.protobuf.CodedOutputStream
6127 .computeBytesSize(2, getStringValueBytes());
6129 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6130 size += com.google.protobuf.CodedOutputStream
6131 .computeDoubleSize(3, numericValue_);
6133 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6134 size += com.google.protobuf.CodedOutputStream
6135 .computeBoolSize(4, booleanValue_);
6137 size += getUnknownFields().getSerializedSize();
6138 memoizedSerializedSize = size;
6142 private static final long serialVersionUID = 0L;
6144 protected java.lang.Object writeReplace()
6145 throws java.io.ObjectStreamException {
6146 return super.writeReplace();
6149 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6150 com.google.protobuf.ByteString data)
6151 throws com.google.protobuf.InvalidProtocolBufferException {
6152 return PARSER.parseFrom(data);
6154 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6155 com.google.protobuf.ByteString data,
6156 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6157 throws com.google.protobuf.InvalidProtocolBufferException {
6158 return PARSER.parseFrom(data, extensionRegistry);
6160 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
6161 throws com.google.protobuf.InvalidProtocolBufferException {
6162 return PARSER.parseFrom(data);
6164 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6166 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6167 throws com.google.protobuf.InvalidProtocolBufferException {
6168 return PARSER.parseFrom(data, extensionRegistry);
6170 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
6171 throws java.io.IOException {
6172 return PARSER.parseFrom(input);
6174 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6175 java.io.InputStream input,
6176 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6177 throws java.io.IOException {
6178 return PARSER.parseFrom(input, extensionRegistry);
6180 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
6181 throws java.io.IOException {
6182 return PARSER.parseDelimitedFrom(input);
6184 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
6185 java.io.InputStream input,
6186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6187 throws java.io.IOException {
6188 return PARSER.parseDelimitedFrom(input, extensionRegistry);
6190 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6191 com.google.protobuf.CodedInputStream input)
6192 throws java.io.IOException {
6193 return PARSER.parseFrom(input);
6195 public static com.openxc.BinaryMessages.DynamicField parseFrom(
6196 com.google.protobuf.CodedInputStream input,
6197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6198 throws java.io.IOException {
6199 return PARSER.parseFrom(input, extensionRegistry);
6202 public static Builder newBuilder() { return Builder.create(); }
6203 public Builder newBuilderForType() { return newBuilder(); }
6204 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
6205 return newBuilder().mergeFrom(prototype);
6207 public Builder toBuilder() { return newBuilder(this); }
6210 protected Builder newBuilderForType(
6211 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6212 Builder builder = new Builder(parent);
6216 * Protobuf type {@code openxc.DynamicField}
6218 public static final class Builder extends
6219 com.google.protobuf.GeneratedMessage.Builder<Builder>
6220 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
6221 public static final com.google.protobuf.Descriptors.Descriptor
6223 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
6226 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6227 internalGetFieldAccessorTable() {
6228 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable
6229 .ensureFieldAccessorsInitialized(
6230 com.openxc.BinaryMessages.DynamicField.class, com.openxc.BinaryMessages.DynamicField.Builder.class);
6233 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
6235 maybeForceBuilderInitialization();
6239 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6241 maybeForceBuilderInitialization();
6243 private void maybeForceBuilderInitialization() {
6244 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6247 private static Builder create() {
6248 return new Builder();
6251 public Builder clear() {
6253 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6254 bitField0_ = (bitField0_ & ~0x00000001);
6256 bitField0_ = (bitField0_ & ~0x00000002);
6258 bitField0_ = (bitField0_ & ~0x00000004);
6259 booleanValue_ = false;
6260 bitField0_ = (bitField0_ & ~0x00000008);
6264 public Builder clone() {
6265 return create().mergeFrom(buildPartial());
6268 public com.google.protobuf.Descriptors.Descriptor
6269 getDescriptorForType() {
6270 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
6273 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
6274 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
6277 public com.openxc.BinaryMessages.DynamicField build() {
6278 com.openxc.BinaryMessages.DynamicField result = buildPartial();
6279 if (!result.isInitialized()) {
6280 throw newUninitializedMessageException(result);
6285 public com.openxc.BinaryMessages.DynamicField buildPartial() {
6286 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
6287 int from_bitField0_ = bitField0_;
6288 int to_bitField0_ = 0;
6289 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6290 to_bitField0_ |= 0x00000001;
6292 result.type_ = type_;
6293 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6294 to_bitField0_ |= 0x00000002;
6296 result.stringValue_ = stringValue_;
6297 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6298 to_bitField0_ |= 0x00000004;
6300 result.numericValue_ = numericValue_;
6301 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
6302 to_bitField0_ |= 0x00000008;
6304 result.booleanValue_ = booleanValue_;
6305 result.bitField0_ = to_bitField0_;
6310 public Builder mergeFrom(com.google.protobuf.Message other) {
6311 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
6312 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
6314 super.mergeFrom(other);
6319 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
6320 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
6321 if (other.hasType()) {
6322 setType(other.getType());
6324 if (other.hasStringValue()) {
6325 bitField0_ |= 0x00000002;
6326 stringValue_ = other.stringValue_;
6329 if (other.hasNumericValue()) {
6330 setNumericValue(other.getNumericValue());
6332 if (other.hasBooleanValue()) {
6333 setBooleanValue(other.getBooleanValue());
6335 this.mergeUnknownFields(other.getUnknownFields());
6339 public final boolean isInitialized() {
6343 public Builder mergeFrom(
6344 com.google.protobuf.CodedInputStream input,
6345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6346 throws java.io.IOException {
6347 com.openxc.BinaryMessages.DynamicField parsedMessage = null;
6349 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6350 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6351 parsedMessage = (com.openxc.BinaryMessages.DynamicField) e.getUnfinishedMessage();
6354 if (parsedMessage != null) {
6355 mergeFrom(parsedMessage);
6360 private int bitField0_;
6362 // optional .openxc.DynamicField.Type type = 1;
6363 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6365 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6367 public boolean hasType() {
6368 return ((bitField0_ & 0x00000001) == 0x00000001);
6371 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6373 public com.openxc.BinaryMessages.DynamicField.Type getType() {
6377 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6379 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
6380 if (value == null) {
6381 throw new NullPointerException();
6383 bitField0_ |= 0x00000001;
6389 * <code>optional .openxc.DynamicField.Type type = 1;</code>
6391 public Builder clearType() {
6392 bitField0_ = (bitField0_ & ~0x00000001);
6393 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
6398 // optional string string_value = 2;
6399 private java.lang.Object stringValue_ = "";
6401 * <code>optional string string_value = 2;</code>
6403 public boolean hasStringValue() {
6404 return ((bitField0_ & 0x00000002) == 0x00000002);
6407 * <code>optional string string_value = 2;</code>
6409 public java.lang.String getStringValue() {
6410 java.lang.Object ref = stringValue_;
6411 if (!(ref instanceof java.lang.String)) {
6412 java.lang.String s = ((com.google.protobuf.ByteString) ref)
6417 return (java.lang.String) ref;
6421 * <code>optional string string_value = 2;</code>
6423 public com.google.protobuf.ByteString
6424 getStringValueBytes() {
6425 java.lang.Object ref = stringValue_;
6426 if (ref instanceof String) {
6427 com.google.protobuf.ByteString b =
6428 com.google.protobuf.ByteString.copyFromUtf8(
6429 (java.lang.String) ref);
6433 return (com.google.protobuf.ByteString) ref;
6437 * <code>optional string string_value = 2;</code>
6439 public Builder setStringValue(
6440 java.lang.String value) {
6441 if (value == null) {
6442 throw new NullPointerException();
6444 bitField0_ |= 0x00000002;
6445 stringValue_ = value;
6450 * <code>optional string string_value = 2;</code>
6452 public Builder clearStringValue() {
6453 bitField0_ = (bitField0_ & ~0x00000002);
6454 stringValue_ = getDefaultInstance().getStringValue();
6459 * <code>optional string string_value = 2;</code>
6461 public Builder setStringValueBytes(
6462 com.google.protobuf.ByteString value) {
6463 if (value == null) {
6464 throw new NullPointerException();
6466 bitField0_ |= 0x00000002;
6467 stringValue_ = value;
6472 // optional double numeric_value = 3;
6473 private double numericValue_ ;
6475 * <code>optional double numeric_value = 3;</code>
6477 public boolean hasNumericValue() {
6478 return ((bitField0_ & 0x00000004) == 0x00000004);
6481 * <code>optional double numeric_value = 3;</code>
6483 public double getNumericValue() {
6484 return numericValue_;
6487 * <code>optional double numeric_value = 3;</code>
6489 public Builder setNumericValue(double value) {
6490 bitField0_ |= 0x00000004;
6491 numericValue_ = value;
6496 * <code>optional double numeric_value = 3;</code>
6498 public Builder clearNumericValue() {
6499 bitField0_ = (bitField0_ & ~0x00000004);
6505 // optional bool boolean_value = 4;
6506 private boolean booleanValue_ ;
6508 * <code>optional bool boolean_value = 4;</code>
6510 public boolean hasBooleanValue() {
6511 return ((bitField0_ & 0x00000008) == 0x00000008);
6514 * <code>optional bool boolean_value = 4;</code>
6516 public boolean getBooleanValue() {
6517 return booleanValue_;
6520 * <code>optional bool boolean_value = 4;</code>
6522 public Builder setBooleanValue(boolean value) {
6523 bitField0_ |= 0x00000008;
6524 booleanValue_ = value;
6529 * <code>optional bool boolean_value = 4;</code>
6531 public Builder clearBooleanValue() {
6532 bitField0_ = (bitField0_ & ~0x00000008);
6533 booleanValue_ = false;
6538 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
6542 defaultInstance = new DynamicField(true);
6543 defaultInstance.initFields();
6546 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
6549 public interface TranslatedMessageOrBuilder
6550 extends com.google.protobuf.MessageOrBuilder {
6552 // optional .openxc.TranslatedMessage.Type type = 1;
6554 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6558 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6560 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
6562 // optional string name = 2;
6564 * <code>optional string name = 2;</code>
6568 * <code>optional string name = 2;</code>
6570 java.lang.String getName();
6572 * <code>optional string name = 2;</code>
6574 com.google.protobuf.ByteString
6577 // optional .openxc.DynamicField value = 3;
6579 * <code>optional .openxc.DynamicField value = 3;</code>
6583 * <code>optional .openxc.DynamicField value = 3;</code>
6585 com.openxc.BinaryMessages.DynamicField getValue();
6587 * <code>optional .openxc.DynamicField value = 3;</code>
6589 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
6591 // optional .openxc.DynamicField event = 4;
6593 * <code>optional .openxc.DynamicField event = 4;</code>
6597 * <code>optional .openxc.DynamicField event = 4;</code>
6599 com.openxc.BinaryMessages.DynamicField getEvent();
6601 * <code>optional .openxc.DynamicField event = 4;</code>
6603 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
6606 * Protobuf type {@code openxc.TranslatedMessage}
6608 public static final class TranslatedMessage extends
6609 com.google.protobuf.GeneratedMessage
6610 implements TranslatedMessageOrBuilder {
6611 // Use TranslatedMessage.newBuilder() to construct.
6612 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6614 this.unknownFields = builder.getUnknownFields();
6616 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6618 private static final TranslatedMessage defaultInstance;
6619 public static TranslatedMessage getDefaultInstance() {
6620 return defaultInstance;
6623 public TranslatedMessage getDefaultInstanceForType() {
6624 return defaultInstance;
6627 private final com.google.protobuf.UnknownFieldSet unknownFields;
6629 public final com.google.protobuf.UnknownFieldSet
6630 getUnknownFields() {
6631 return this.unknownFields;
6633 private TranslatedMessage(
6634 com.google.protobuf.CodedInputStream input,
6635 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6636 throws com.google.protobuf.InvalidProtocolBufferException {
6638 int mutable_bitField0_ = 0;
6639 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6640 com.google.protobuf.UnknownFieldSet.newBuilder();
6642 boolean done = false;
6644 int tag = input.readTag();
6650 if (!parseUnknownField(input, unknownFields,
6651 extensionRegistry, tag)) {
6657 int rawValue = input.readEnum();
6658 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
6659 if (value == null) {
6660 unknownFields.mergeVarintField(1, rawValue);
6662 bitField0_ |= 0x00000001;
6668 bitField0_ |= 0x00000002;
6669 name_ = input.readBytes();
6673 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
6674 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6675 subBuilder = value_.toBuilder();
6677 value_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
6678 if (subBuilder != null) {
6679 subBuilder.mergeFrom(value_);
6680 value_ = subBuilder.buildPartial();
6682 bitField0_ |= 0x00000004;
6686 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = null;
6687 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6688 subBuilder = event_.toBuilder();
6690 event_ = input.readMessage(com.openxc.BinaryMessages.DynamicField.PARSER, extensionRegistry);
6691 if (subBuilder != null) {
6692 subBuilder.mergeFrom(event_);
6693 event_ = subBuilder.buildPartial();
6695 bitField0_ |= 0x00000008;
6700 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6701 throw e.setUnfinishedMessage(this);
6702 } catch (java.io.IOException e) {
6703 throw new com.google.protobuf.InvalidProtocolBufferException(
6704 e.getMessage()).setUnfinishedMessage(this);
6706 this.unknownFields = unknownFields.build();
6707 makeExtensionsImmutable();
6710 public static final com.google.protobuf.Descriptors.Descriptor
6712 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
6715 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6716 internalGetFieldAccessorTable() {
6717 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
6718 .ensureFieldAccessorsInitialized(
6719 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
6722 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
6723 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
6724 public TranslatedMessage parsePartialFrom(
6725 com.google.protobuf.CodedInputStream input,
6726 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6727 throws com.google.protobuf.InvalidProtocolBufferException {
6728 return new TranslatedMessage(input, extensionRegistry);
6733 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
6738 * Protobuf enum {@code openxc.TranslatedMessage.Type}
6741 implements com.google.protobuf.ProtocolMessageEnum {
6743 * <code>STRING = 1;</code>
6747 * <code>NUM = 2;</code>
6751 * <code>BOOL = 3;</code>
6755 * <code>EVENTED_STRING = 4;</code>
6757 EVENTED_STRING(3, 4),
6759 * <code>EVENTED_NUM = 5;</code>
6763 * <code>EVENTED_BOOL = 6;</code>
6769 * <code>STRING = 1;</code>
6771 public static final int STRING_VALUE = 1;
6773 * <code>NUM = 2;</code>
6775 public static final int NUM_VALUE = 2;
6777 * <code>BOOL = 3;</code>
6779 public static final int BOOL_VALUE = 3;
6781 * <code>EVENTED_STRING = 4;</code>
6783 public static final int EVENTED_STRING_VALUE = 4;
6785 * <code>EVENTED_NUM = 5;</code>
6787 public static final int EVENTED_NUM_VALUE = 5;
6789 * <code>EVENTED_BOOL = 6;</code>
6791 public static final int EVENTED_BOOL_VALUE = 6;
6794 public final int getNumber() { return value; }
6796 public static Type valueOf(int value) {
6798 case 1: return STRING;
6800 case 3: return BOOL;
6801 case 4: return EVENTED_STRING;
6802 case 5: return EVENTED_NUM;
6803 case 6: return EVENTED_BOOL;
6804 default: return null;
6808 public static com.google.protobuf.Internal.EnumLiteMap<Type>
6809 internalGetValueMap() {
6810 return internalValueMap;
6812 private static com.google.protobuf.Internal.EnumLiteMap<Type>
6814 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
6815 public Type findValueByNumber(int number) {
6816 return Type.valueOf(number);
6820 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6821 getValueDescriptor() {
6822 return getDescriptor().getValues().get(index);
6824 public final com.google.protobuf.Descriptors.EnumDescriptor
6825 getDescriptorForType() {
6826 return getDescriptor();
6828 public static final com.google.protobuf.Descriptors.EnumDescriptor
6830 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
6833 private static final Type[] VALUES = values();
6835 public static Type valueOf(
6836 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
6837 if (desc.getType() != getDescriptor()) {
6838 throw new java.lang.IllegalArgumentException(
6839 "EnumValueDescriptor is not for this type.");
6841 return VALUES[desc.getIndex()];
6844 private final int index;
6845 private final int value;
6847 private Type(int index, int value) {
6852 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
6855 private int bitField0_;
6856 // optional .openxc.TranslatedMessage.Type type = 1;
6857 public static final int TYPE_FIELD_NUMBER = 1;
6858 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
6860 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6862 public boolean hasType() {
6863 return ((bitField0_ & 0x00000001) == 0x00000001);
6866 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
6868 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
6872 // optional string name = 2;
6873 public static final int NAME_FIELD_NUMBER = 2;
6874 private java.lang.Object name_;
6876 * <code>optional string name = 2;</code>
6878 public boolean hasName() {
6879 return ((bitField0_ & 0x00000002) == 0x00000002);
6882 * <code>optional string name = 2;</code>
6884 public java.lang.String getName() {
6885 java.lang.Object ref = name_;
6886 if (ref instanceof java.lang.String) {
6887 return (java.lang.String) ref;
6889 com.google.protobuf.ByteString bs =
6890 (com.google.protobuf.ByteString) ref;
6891 java.lang.String s = bs.toStringUtf8();
6892 if (bs.isValidUtf8()) {
6899 * <code>optional string name = 2;</code>
6901 public com.google.protobuf.ByteString
6903 java.lang.Object ref = name_;
6904 if (ref instanceof java.lang.String) {
6905 com.google.protobuf.ByteString b =
6906 com.google.protobuf.ByteString.copyFromUtf8(
6907 (java.lang.String) ref);
6911 return (com.google.protobuf.ByteString) ref;
6915 // optional .openxc.DynamicField value = 3;
6916 public static final int VALUE_FIELD_NUMBER = 3;
6917 private com.openxc.BinaryMessages.DynamicField value_;
6919 * <code>optional .openxc.DynamicField value = 3;</code>
6921 public boolean hasValue() {
6922 return ((bitField0_ & 0x00000004) == 0x00000004);
6925 * <code>optional .openxc.DynamicField value = 3;</code>
6927 public com.openxc.BinaryMessages.DynamicField getValue() {
6931 * <code>optional .openxc.DynamicField value = 3;</code>
6933 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
6937 // optional .openxc.DynamicField event = 4;
6938 public static final int EVENT_FIELD_NUMBER = 4;
6939 private com.openxc.BinaryMessages.DynamicField event_;
6941 * <code>optional .openxc.DynamicField event = 4;</code>
6943 public boolean hasEvent() {
6944 return ((bitField0_ & 0x00000008) == 0x00000008);
6947 * <code>optional .openxc.DynamicField event = 4;</code>
6949 public com.openxc.BinaryMessages.DynamicField getEvent() {
6953 * <code>optional .openxc.DynamicField event = 4;</code>
6955 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
6959 private void initFields() {
6960 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
6962 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
6963 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
6965 private byte memoizedIsInitialized = -1;
6966 public final boolean isInitialized() {
6967 byte isInitialized = memoizedIsInitialized;
6968 if (isInitialized != -1) return isInitialized == 1;
6970 memoizedIsInitialized = 1;
6974 public void writeTo(com.google.protobuf.CodedOutputStream output)
6975 throws java.io.IOException {
6976 getSerializedSize();
6977 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6978 output.writeEnum(1, type_.getNumber());
6980 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6981 output.writeBytes(2, getNameBytes());
6983 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6984 output.writeMessage(3, value_);
6986 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6987 output.writeMessage(4, event_);
6989 getUnknownFields().writeTo(output);
6992 private int memoizedSerializedSize = -1;
6993 public int getSerializedSize() {
6994 int size = memoizedSerializedSize;
6995 if (size != -1) return size;
6998 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6999 size += com.google.protobuf.CodedOutputStream
7000 .computeEnumSize(1, type_.getNumber());
7002 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7003 size += com.google.protobuf.CodedOutputStream
7004 .computeBytesSize(2, getNameBytes());
7006 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7007 size += com.google.protobuf.CodedOutputStream
7008 .computeMessageSize(3, value_);
7010 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7011 size += com.google.protobuf.CodedOutputStream
7012 .computeMessageSize(4, event_);
7014 size += getUnknownFields().getSerializedSize();
7015 memoizedSerializedSize = size;
7019 private static final long serialVersionUID = 0L;
7021 protected java.lang.Object writeReplace()
7022 throws java.io.ObjectStreamException {
7023 return super.writeReplace();
7026 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7027 com.google.protobuf.ByteString data)
7028 throws com.google.protobuf.InvalidProtocolBufferException {
7029 return PARSER.parseFrom(data);
7031 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7032 com.google.protobuf.ByteString data,
7033 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7034 throws com.google.protobuf.InvalidProtocolBufferException {
7035 return PARSER.parseFrom(data, extensionRegistry);
7037 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
7038 throws com.google.protobuf.InvalidProtocolBufferException {
7039 return PARSER.parseFrom(data);
7041 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7043 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7044 throws com.google.protobuf.InvalidProtocolBufferException {
7045 return PARSER.parseFrom(data, extensionRegistry);
7047 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
7048 throws java.io.IOException {
7049 return PARSER.parseFrom(input);
7051 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7052 java.io.InputStream input,
7053 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7054 throws java.io.IOException {
7055 return PARSER.parseFrom(input, extensionRegistry);
7057 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
7058 throws java.io.IOException {
7059 return PARSER.parseDelimitedFrom(input);
7061 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
7062 java.io.InputStream input,
7063 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7064 throws java.io.IOException {
7065 return PARSER.parseDelimitedFrom(input, extensionRegistry);
7067 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7068 com.google.protobuf.CodedInputStream input)
7069 throws java.io.IOException {
7070 return PARSER.parseFrom(input);
7072 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
7073 com.google.protobuf.CodedInputStream input,
7074 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7075 throws java.io.IOException {
7076 return PARSER.parseFrom(input, extensionRegistry);
7079 public static Builder newBuilder() { return Builder.create(); }
7080 public Builder newBuilderForType() { return newBuilder(); }
7081 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
7082 return newBuilder().mergeFrom(prototype);
7084 public Builder toBuilder() { return newBuilder(this); }
7087 protected Builder newBuilderForType(
7088 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7089 Builder builder = new Builder(parent);
7093 * Protobuf type {@code openxc.TranslatedMessage}
7095 public static final class Builder extends
7096 com.google.protobuf.GeneratedMessage.Builder<Builder>
7097 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
7098 public static final com.google.protobuf.Descriptors.Descriptor
7100 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
7103 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7104 internalGetFieldAccessorTable() {
7105 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
7106 .ensureFieldAccessorsInitialized(
7107 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
7110 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
7112 maybeForceBuilderInitialization();
7116 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7118 maybeForceBuilderInitialization();
7120 private void maybeForceBuilderInitialization() {
7121 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7122 getValueFieldBuilder();
7123 getEventFieldBuilder();
7126 private static Builder create() {
7127 return new Builder();
7130 public Builder clear() {
7132 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7133 bitField0_ = (bitField0_ & ~0x00000001);
7135 bitField0_ = (bitField0_ & ~0x00000002);
7136 if (valueBuilder_ == null) {
7137 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7139 valueBuilder_.clear();
7141 bitField0_ = (bitField0_ & ~0x00000004);
7142 if (eventBuilder_ == null) {
7143 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7145 eventBuilder_.clear();
7147 bitField0_ = (bitField0_ & ~0x00000008);
7151 public Builder clone() {
7152 return create().mergeFrom(buildPartial());
7155 public com.google.protobuf.Descriptors.Descriptor
7156 getDescriptorForType() {
7157 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
7160 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
7161 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
7164 public com.openxc.BinaryMessages.TranslatedMessage build() {
7165 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
7166 if (!result.isInitialized()) {
7167 throw newUninitializedMessageException(result);
7172 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
7173 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
7174 int from_bitField0_ = bitField0_;
7175 int to_bitField0_ = 0;
7176 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7177 to_bitField0_ |= 0x00000001;
7179 result.type_ = type_;
7180 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7181 to_bitField0_ |= 0x00000002;
7183 result.name_ = name_;
7184 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7185 to_bitField0_ |= 0x00000004;
7187 if (valueBuilder_ == null) {
7188 result.value_ = value_;
7190 result.value_ = valueBuilder_.build();
7192 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7193 to_bitField0_ |= 0x00000008;
7195 if (eventBuilder_ == null) {
7196 result.event_ = event_;
7198 result.event_ = eventBuilder_.build();
7200 result.bitField0_ = to_bitField0_;
7205 public Builder mergeFrom(com.google.protobuf.Message other) {
7206 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
7207 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
7209 super.mergeFrom(other);
7214 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
7215 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
7216 if (other.hasType()) {
7217 setType(other.getType());
7219 if (other.hasName()) {
7220 bitField0_ |= 0x00000002;
7221 name_ = other.name_;
7224 if (other.hasValue()) {
7225 mergeValue(other.getValue());
7227 if (other.hasEvent()) {
7228 mergeEvent(other.getEvent());
7230 this.mergeUnknownFields(other.getUnknownFields());
7234 public final boolean isInitialized() {
7238 public Builder mergeFrom(
7239 com.google.protobuf.CodedInputStream input,
7240 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7241 throws java.io.IOException {
7242 com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null;
7244 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
7245 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7246 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
7249 if (parsedMessage != null) {
7250 mergeFrom(parsedMessage);
7255 private int bitField0_;
7257 // optional .openxc.TranslatedMessage.Type type = 1;
7258 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7260 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7262 public boolean hasType() {
7263 return ((bitField0_ & 0x00000001) == 0x00000001);
7266 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7268 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
7272 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7274 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
7275 if (value == null) {
7276 throw new NullPointerException();
7278 bitField0_ |= 0x00000001;
7284 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
7286 public Builder clearType() {
7287 bitField0_ = (bitField0_ & ~0x00000001);
7288 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
7293 // optional string name = 2;
7294 private java.lang.Object name_ = "";
7296 * <code>optional string name = 2;</code>
7298 public boolean hasName() {
7299 return ((bitField0_ & 0x00000002) == 0x00000002);
7302 * <code>optional string name = 2;</code>
7304 public java.lang.String getName() {
7305 java.lang.Object ref = name_;
7306 if (!(ref instanceof java.lang.String)) {
7307 java.lang.String s = ((com.google.protobuf.ByteString) ref)
7312 return (java.lang.String) ref;
7316 * <code>optional string name = 2;</code>
7318 public com.google.protobuf.ByteString
7320 java.lang.Object ref = name_;
7321 if (ref instanceof String) {
7322 com.google.protobuf.ByteString b =
7323 com.google.protobuf.ByteString.copyFromUtf8(
7324 (java.lang.String) ref);
7328 return (com.google.protobuf.ByteString) ref;
7332 * <code>optional string name = 2;</code>
7334 public Builder setName(
7335 java.lang.String value) {
7336 if (value == null) {
7337 throw new NullPointerException();
7339 bitField0_ |= 0x00000002;
7345 * <code>optional string name = 2;</code>
7347 public Builder clearName() {
7348 bitField0_ = (bitField0_ & ~0x00000002);
7349 name_ = getDefaultInstance().getName();
7354 * <code>optional string name = 2;</code>
7356 public Builder setNameBytes(
7357 com.google.protobuf.ByteString value) {
7358 if (value == null) {
7359 throw new NullPointerException();
7361 bitField0_ |= 0x00000002;
7367 // optional .openxc.DynamicField value = 3;
7368 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7369 private com.google.protobuf.SingleFieldBuilder<
7370 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
7372 * <code>optional .openxc.DynamicField value = 3;</code>
7374 public boolean hasValue() {
7375 return ((bitField0_ & 0x00000004) == 0x00000004);
7378 * <code>optional .openxc.DynamicField value = 3;</code>
7380 public com.openxc.BinaryMessages.DynamicField getValue() {
7381 if (valueBuilder_ == null) {
7384 return valueBuilder_.getMessage();
7388 * <code>optional .openxc.DynamicField value = 3;</code>
7390 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
7391 if (valueBuilder_ == null) {
7392 if (value == null) {
7393 throw new NullPointerException();
7398 valueBuilder_.setMessage(value);
7400 bitField0_ |= 0x00000004;
7404 * <code>optional .openxc.DynamicField value = 3;</code>
7406 public Builder setValue(
7407 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
7408 if (valueBuilder_ == null) {
7409 value_ = builderForValue.build();
7412 valueBuilder_.setMessage(builderForValue.build());
7414 bitField0_ |= 0x00000004;
7418 * <code>optional .openxc.DynamicField value = 3;</code>
7420 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
7421 if (valueBuilder_ == null) {
7422 if (((bitField0_ & 0x00000004) == 0x00000004) &&
7423 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
7425 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
7431 valueBuilder_.mergeFrom(value);
7433 bitField0_ |= 0x00000004;
7437 * <code>optional .openxc.DynamicField value = 3;</code>
7439 public Builder clearValue() {
7440 if (valueBuilder_ == null) {
7441 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7444 valueBuilder_.clear();
7446 bitField0_ = (bitField0_ & ~0x00000004);
7450 * <code>optional .openxc.DynamicField value = 3;</code>
7452 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
7453 bitField0_ |= 0x00000004;
7455 return getValueFieldBuilder().getBuilder();
7458 * <code>optional .openxc.DynamicField value = 3;</code>
7460 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
7461 if (valueBuilder_ != null) {
7462 return valueBuilder_.getMessageOrBuilder();
7468 * <code>optional .openxc.DynamicField value = 3;</code>
7470 private com.google.protobuf.SingleFieldBuilder<
7471 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
7472 getValueFieldBuilder() {
7473 if (valueBuilder_ == null) {
7474 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7475 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
7477 getParentForChildren(),
7481 return valueBuilder_;
7484 // optional .openxc.DynamicField event = 4;
7485 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7486 private com.google.protobuf.SingleFieldBuilder<
7487 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
7489 * <code>optional .openxc.DynamicField event = 4;</code>
7491 public boolean hasEvent() {
7492 return ((bitField0_ & 0x00000008) == 0x00000008);
7495 * <code>optional .openxc.DynamicField event = 4;</code>
7497 public com.openxc.BinaryMessages.DynamicField getEvent() {
7498 if (eventBuilder_ == null) {
7501 return eventBuilder_.getMessage();
7505 * <code>optional .openxc.DynamicField event = 4;</code>
7507 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
7508 if (eventBuilder_ == null) {
7509 if (value == null) {
7510 throw new NullPointerException();
7515 eventBuilder_.setMessage(value);
7517 bitField0_ |= 0x00000008;
7521 * <code>optional .openxc.DynamicField event = 4;</code>
7523 public Builder setEvent(
7524 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
7525 if (eventBuilder_ == null) {
7526 event_ = builderForValue.build();
7529 eventBuilder_.setMessage(builderForValue.build());
7531 bitField0_ |= 0x00000008;
7535 * <code>optional .openxc.DynamicField event = 4;</code>
7537 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
7538 if (eventBuilder_ == null) {
7539 if (((bitField0_ & 0x00000008) == 0x00000008) &&
7540 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
7542 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
7548 eventBuilder_.mergeFrom(value);
7550 bitField0_ |= 0x00000008;
7554 * <code>optional .openxc.DynamicField event = 4;</code>
7556 public Builder clearEvent() {
7557 if (eventBuilder_ == null) {
7558 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
7561 eventBuilder_.clear();
7563 bitField0_ = (bitField0_ & ~0x00000008);
7567 * <code>optional .openxc.DynamicField event = 4;</code>
7569 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
7570 bitField0_ |= 0x00000008;
7572 return getEventFieldBuilder().getBuilder();
7575 * <code>optional .openxc.DynamicField event = 4;</code>
7577 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
7578 if (eventBuilder_ != null) {
7579 return eventBuilder_.getMessageOrBuilder();
7585 * <code>optional .openxc.DynamicField event = 4;</code>
7587 private com.google.protobuf.SingleFieldBuilder<
7588 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
7589 getEventFieldBuilder() {
7590 if (eventBuilder_ == null) {
7591 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7592 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
7594 getParentForChildren(),
7598 return eventBuilder_;
7601 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
7605 defaultInstance = new TranslatedMessage(true);
7606 defaultInstance.initFields();
7609 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
7612 private static com.google.protobuf.Descriptors.Descriptor
7613 internal_static_openxc_VehicleMessage_descriptor;
7615 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7616 internal_static_openxc_VehicleMessage_fieldAccessorTable;
7617 private static com.google.protobuf.Descriptors.Descriptor
7618 internal_static_openxc_RawMessage_descriptor;
7620 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7621 internal_static_openxc_RawMessage_fieldAccessorTable;
7622 private static com.google.protobuf.Descriptors.Descriptor
7623 internal_static_openxc_ControlCommand_descriptor;
7625 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7626 internal_static_openxc_ControlCommand_fieldAccessorTable;
7627 private static com.google.protobuf.Descriptors.Descriptor
7628 internal_static_openxc_CommandResponse_descriptor;
7630 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7631 internal_static_openxc_CommandResponse_fieldAccessorTable;
7632 private static com.google.protobuf.Descriptors.Descriptor
7633 internal_static_openxc_DiagnosticRequest_descriptor;
7635 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7636 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
7637 private static com.google.protobuf.Descriptors.Descriptor
7638 internal_static_openxc_DiagnosticResponse_descriptor;
7640 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7641 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
7642 private static com.google.protobuf.Descriptors.Descriptor
7643 internal_static_openxc_DynamicField_descriptor;
7645 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7646 internal_static_openxc_DynamicField_fieldAccessorTable;
7647 private static com.google.protobuf.Descriptors.Descriptor
7648 internal_static_openxc_TranslatedMessage_descriptor;
7650 com.google.protobuf.GeneratedMessage.FieldAccessorTable
7651 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
7653 public static com.google.protobuf.Descriptors.FileDescriptor
7657 private static com.google.protobuf.Descriptors.FileDescriptor
7660 java.lang.String[] descriptorData = {
7661 "\n\014openxc.proto\022\006openxc\"\224\003\n\016VehicleMessag" +
7662 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
7663 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
7664 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
7665 "xc.TranslatedMessage\0227\n\023diagnostic_respo" +
7666 "nse\030\004 \001(\0132\032.openxc.DiagnosticResponse\022/\n" +
7667 "\017control_command\030\005 \001(\0132\026.openxc.ControlC" +
7668 "ommand\0221\n\020command_response\030\006 \001(\0132\027.openx" +
7669 "c.CommandResponse\"Z\n\004Type\022\007\n\003RAW\020\001\022\016\n\nTR" +
7670 "ANSLATED\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_CO",
7671 "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\";\n\nRawMess" +
7672 "age\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004" +
7673 "data\030\003 \001(\014\"\246\001\n\016ControlCommand\022)\n\004type\030\001 " +
7674 "\001(\0162\033.openxc.ControlCommand.Type\0225\n\022diag" +
7675 "nostic_request\030\002 \001(\0132\031.openxc.Diagnostic" +
7676 "Request\"2\n\004Type\022\013\n\007VERSION\020\001\022\r\n\tDEVICE_I" +
7677 "D\020\002\022\016\n\nDIAGNOSTIC\020\003\"M\n\017CommandResponse\022)" +
7678 "\n\004type\030\001 \001(\0162\033.openxc.ControlCommand.Typ" +
7679 "e\022\017\n\007message\030\002 \001(\t\"\335\002\n\021DiagnosticRequest" +
7680 "\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mod",
7681 "e\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n" +
7682 "\022multiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007" +
7683 " \001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\016" +
7684 "2%.openxc.DiagnosticRequest.DecodedType\022" +
7685 "0\n\006action\030\n \001(\0162 .openxc.DiagnosticReque" +
7686 "st.Action\"!\n\013DecodedType\022\010\n\004NONE\020\001\022\010\n\004OB" +
7687 "D2\020\002\",\n\006Action\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n" +
7688 "\n\006DELETE\020\003\"\241\001\n\022DiagnosticResponse\022\013\n\003bus" +
7689 "\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r" +
7690 "\022\013\n\003pid\030\004 \001(\r\022\017\n\007success\030\005 \001(\010\022\036\n\026negati",
7691 "ve_response_code\030\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022" +
7692 "\r\n\005value\030\010 \001(\001\"\242\001\n\014DynamicField\022\'\n\004type\030" +
7693 "\001 \001(\0162\031.openxc.DynamicField.Type\022\024\n\014stri" +
7694 "ng_value\030\002 \001(\t\022\025\n\rnumeric_value\030\003 \001(\001\022\025\n" +
7695 "\rboolean_value\030\004 \001(\010\"%\n\004Type\022\n\n\006STRING\020\001" +
7696 "\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\"\367\001\n\021TranslatedMessag" +
7697 "e\022,\n\004type\030\001 \001(\0162\036.openxc.TranslatedMessa" +
7698 "ge.Type\022\014\n\004name\030\002 \001(\t\022#\n\005value\030\003 \001(\0132\024.o" +
7699 "penxc.DynamicField\022#\n\005event\030\004 \001(\0132\024.open" +
7700 "xc.DynamicField\"\\\n\004Type\022\n\n\006STRING\020\001\022\007\n\003N",
7701 "UM\020\002\022\010\n\004BOOL\020\003\022\022\n\016EVENTED_STRING\020\004\022\017\n\013EV" +
7702 "ENTED_NUM\020\005\022\020\n\014EVENTED_BOOL\020\006B\034\n\ncom.ope" +
7703 "nxcB\016BinaryMessages"
7705 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
7706 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
7707 public com.google.protobuf.ExtensionRegistry assignDescriptors(
7708 com.google.protobuf.Descriptors.FileDescriptor root) {
7710 internal_static_openxc_VehicleMessage_descriptor =
7711 getDescriptor().getMessageTypes().get(0);
7712 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
7713 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7714 internal_static_openxc_VehicleMessage_descriptor,
7715 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", });
7716 internal_static_openxc_RawMessage_descriptor =
7717 getDescriptor().getMessageTypes().get(1);
7718 internal_static_openxc_RawMessage_fieldAccessorTable = new
7719 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7720 internal_static_openxc_RawMessage_descriptor,
7721 new java.lang.String[] { "Bus", "MessageId", "Data", });
7722 internal_static_openxc_ControlCommand_descriptor =
7723 getDescriptor().getMessageTypes().get(2);
7724 internal_static_openxc_ControlCommand_fieldAccessorTable = new
7725 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7726 internal_static_openxc_ControlCommand_descriptor,
7727 new java.lang.String[] { "Type", "DiagnosticRequest", });
7728 internal_static_openxc_CommandResponse_descriptor =
7729 getDescriptor().getMessageTypes().get(3);
7730 internal_static_openxc_CommandResponse_fieldAccessorTable = new
7731 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7732 internal_static_openxc_CommandResponse_descriptor,
7733 new java.lang.String[] { "Type", "Message", });
7734 internal_static_openxc_DiagnosticRequest_descriptor =
7735 getDescriptor().getMessageTypes().get(4);
7736 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
7737 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7738 internal_static_openxc_DiagnosticRequest_descriptor,
7739 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", "Action", });
7740 internal_static_openxc_DiagnosticResponse_descriptor =
7741 getDescriptor().getMessageTypes().get(5);
7742 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
7743 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7744 internal_static_openxc_DiagnosticResponse_descriptor,
7745 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
7746 internal_static_openxc_DynamicField_descriptor =
7747 getDescriptor().getMessageTypes().get(6);
7748 internal_static_openxc_DynamicField_fieldAccessorTable = new
7749 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7750 internal_static_openxc_DynamicField_descriptor,
7751 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", });
7752 internal_static_openxc_TranslatedMessage_descriptor =
7753 getDescriptor().getMessageTypes().get(7);
7754 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
7755 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
7756 internal_static_openxc_TranslatedMessage_descriptor,
7757 new java.lang.String[] { "Type", "Name", "Value", "Event", });
7761 com.google.protobuf.Descriptors.FileDescriptor
7762 .internalBuildGeneratedFileFrom(descriptorData,
7763 new com.google.protobuf.Descriptors.FileDescriptor[] {
7767 // @@protoc_insertion_point(outer_class_scope)