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();
67 * Protobuf type {@code openxc.VehicleMessage}
69 public static final class VehicleMessage extends
70 com.google.protobuf.GeneratedMessage
71 implements VehicleMessageOrBuilder {
72 // Use VehicleMessage.newBuilder() to construct.
73 private VehicleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
75 this.unknownFields = builder.getUnknownFields();
77 private VehicleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
79 private static final VehicleMessage defaultInstance;
80 public static VehicleMessage getDefaultInstance() {
81 return defaultInstance;
84 public VehicleMessage getDefaultInstanceForType() {
85 return defaultInstance;
88 private final com.google.protobuf.UnknownFieldSet unknownFields;
90 public final com.google.protobuf.UnknownFieldSet
92 return this.unknownFields;
94 private VehicleMessage(
95 com.google.protobuf.CodedInputStream input,
96 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
97 throws com.google.protobuf.InvalidProtocolBufferException {
99 int mutable_bitField0_ = 0;
100 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
101 com.google.protobuf.UnknownFieldSet.newBuilder();
103 boolean done = false;
105 int tag = input.readTag();
111 if (!parseUnknownField(input, unknownFields,
112 extensionRegistry, tag)) {
118 int rawValue = input.readEnum();
119 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
121 unknownFields.mergeVarintField(1, rawValue);
123 bitField0_ |= 0x00000001;
129 com.openxc.BinaryMessages.RawMessage.Builder subBuilder = null;
130 if (((bitField0_ & 0x00000002) == 0x00000002)) {
131 subBuilder = rawMessage_.toBuilder();
133 rawMessage_ = input.readMessage(com.openxc.BinaryMessages.RawMessage.PARSER, extensionRegistry);
134 if (subBuilder != null) {
135 subBuilder.mergeFrom(rawMessage_);
136 rawMessage_ = subBuilder.buildPartial();
138 bitField0_ |= 0x00000002;
142 com.openxc.BinaryMessages.TranslatedMessage.Builder subBuilder = null;
143 if (((bitField0_ & 0x00000004) == 0x00000004)) {
144 subBuilder = translatedMessage_.toBuilder();
146 translatedMessage_ = input.readMessage(com.openxc.BinaryMessages.TranslatedMessage.PARSER, extensionRegistry);
147 if (subBuilder != null) {
148 subBuilder.mergeFrom(translatedMessage_);
149 translatedMessage_ = subBuilder.buildPartial();
151 bitField0_ |= 0x00000004;
155 com.openxc.BinaryMessages.DiagnosticResponse.Builder subBuilder = null;
156 if (((bitField0_ & 0x00000008) == 0x00000008)) {
157 subBuilder = diagnosticResponse_.toBuilder();
159 diagnosticResponse_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticResponse.PARSER, extensionRegistry);
160 if (subBuilder != null) {
161 subBuilder.mergeFrom(diagnosticResponse_);
162 diagnosticResponse_ = subBuilder.buildPartial();
164 bitField0_ |= 0x00000008;
169 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
170 throw e.setUnfinishedMessage(this);
171 } catch (java.io.IOException e) {
172 throw new com.google.protobuf.InvalidProtocolBufferException(
173 e.getMessage()).setUnfinishedMessage(this);
175 this.unknownFields = unknownFields.build();
176 makeExtensionsImmutable();
179 public static final com.google.protobuf.Descriptors.Descriptor
181 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
184 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
185 internalGetFieldAccessorTable() {
186 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
187 .ensureFieldAccessorsInitialized(
188 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
191 public static com.google.protobuf.Parser<VehicleMessage> PARSER =
192 new com.google.protobuf.AbstractParser<VehicleMessage>() {
193 public VehicleMessage parsePartialFrom(
194 com.google.protobuf.CodedInputStream input,
195 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
196 throws com.google.protobuf.InvalidProtocolBufferException {
197 return new VehicleMessage(input, extensionRegistry);
202 public com.google.protobuf.Parser<VehicleMessage> getParserForType() {
207 * Protobuf enum {@code openxc.VehicleMessage.Type}
210 implements com.google.protobuf.ProtocolMessageEnum {
212 * <code>RAW = 1;</code>
216 * <code>TRANSLATED = 2;</code>
220 * <code>DIAGNOSTIC = 3;</code>
226 * <code>RAW = 1;</code>
228 public static final int RAW_VALUE = 1;
230 * <code>TRANSLATED = 2;</code>
232 public static final int TRANSLATED_VALUE = 2;
234 * <code>DIAGNOSTIC = 3;</code>
236 public static final int DIAGNOSTIC_VALUE = 3;
239 public final int getNumber() { return value; }
241 public static Type valueOf(int value) {
244 case 2: return TRANSLATED;
245 case 3: return DIAGNOSTIC;
246 default: return null;
250 public static com.google.protobuf.Internal.EnumLiteMap<Type>
251 internalGetValueMap() {
252 return internalValueMap;
254 private static com.google.protobuf.Internal.EnumLiteMap<Type>
256 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
257 public Type findValueByNumber(int number) {
258 return Type.valueOf(number);
262 public final com.google.protobuf.Descriptors.EnumValueDescriptor
263 getValueDescriptor() {
264 return getDescriptor().getValues().get(index);
266 public final com.google.protobuf.Descriptors.EnumDescriptor
267 getDescriptorForType() {
268 return getDescriptor();
270 public static final com.google.protobuf.Descriptors.EnumDescriptor
272 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
275 private static final Type[] VALUES = values();
277 public static Type valueOf(
278 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
279 if (desc.getType() != getDescriptor()) {
280 throw new java.lang.IllegalArgumentException(
281 "EnumValueDescriptor is not for this type.");
283 return VALUES[desc.getIndex()];
286 private final int index;
287 private final int value;
289 private Type(int index, int value) {
294 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
297 private int bitField0_;
298 // optional .openxc.VehicleMessage.Type type = 1;
299 public static final int TYPE_FIELD_NUMBER = 1;
300 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
302 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
304 public boolean hasType() {
305 return ((bitField0_ & 0x00000001) == 0x00000001);
308 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
310 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
314 // optional .openxc.RawMessage raw_message = 2;
315 public static final int RAW_MESSAGE_FIELD_NUMBER = 2;
316 private com.openxc.BinaryMessages.RawMessage rawMessage_;
318 * <code>optional .openxc.RawMessage raw_message = 2;</code>
320 public boolean hasRawMessage() {
321 return ((bitField0_ & 0x00000002) == 0x00000002);
324 * <code>optional .openxc.RawMessage raw_message = 2;</code>
326 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
330 * <code>optional .openxc.RawMessage raw_message = 2;</code>
332 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
336 // optional .openxc.TranslatedMessage translated_message = 3;
337 public static final int TRANSLATED_MESSAGE_FIELD_NUMBER = 3;
338 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_;
340 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
342 public boolean hasTranslatedMessage() {
343 return ((bitField0_ & 0x00000004) == 0x00000004);
346 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
348 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
349 return translatedMessage_;
352 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
354 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
355 return translatedMessage_;
358 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
359 public static final int DIAGNOSTIC_RESPONSE_FIELD_NUMBER = 4;
360 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_;
362 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
364 public boolean hasDiagnosticResponse() {
365 return ((bitField0_ & 0x00000008) == 0x00000008);
368 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
370 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
371 return diagnosticResponse_;
374 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
376 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
377 return diagnosticResponse_;
380 private void initFields() {
381 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
382 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
383 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
384 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
386 private byte memoizedIsInitialized = -1;
387 public final boolean isInitialized() {
388 byte isInitialized = memoizedIsInitialized;
389 if (isInitialized != -1) return isInitialized == 1;
391 memoizedIsInitialized = 1;
395 public void writeTo(com.google.protobuf.CodedOutputStream output)
396 throws java.io.IOException {
398 if (((bitField0_ & 0x00000001) == 0x00000001)) {
399 output.writeEnum(1, type_.getNumber());
401 if (((bitField0_ & 0x00000002) == 0x00000002)) {
402 output.writeMessage(2, rawMessage_);
404 if (((bitField0_ & 0x00000004) == 0x00000004)) {
405 output.writeMessage(3, translatedMessage_);
407 if (((bitField0_ & 0x00000008) == 0x00000008)) {
408 output.writeMessage(4, diagnosticResponse_);
410 getUnknownFields().writeTo(output);
413 private int memoizedSerializedSize = -1;
414 public int getSerializedSize() {
415 int size = memoizedSerializedSize;
416 if (size != -1) return size;
419 if (((bitField0_ & 0x00000001) == 0x00000001)) {
420 size += com.google.protobuf.CodedOutputStream
421 .computeEnumSize(1, type_.getNumber());
423 if (((bitField0_ & 0x00000002) == 0x00000002)) {
424 size += com.google.protobuf.CodedOutputStream
425 .computeMessageSize(2, rawMessage_);
427 if (((bitField0_ & 0x00000004) == 0x00000004)) {
428 size += com.google.protobuf.CodedOutputStream
429 .computeMessageSize(3, translatedMessage_);
431 if (((bitField0_ & 0x00000008) == 0x00000008)) {
432 size += com.google.protobuf.CodedOutputStream
433 .computeMessageSize(4, diagnosticResponse_);
435 size += getUnknownFields().getSerializedSize();
436 memoizedSerializedSize = size;
440 private static final long serialVersionUID = 0L;
442 protected java.lang.Object writeReplace()
443 throws java.io.ObjectStreamException {
444 return super.writeReplace();
447 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
448 com.google.protobuf.ByteString data)
449 throws com.google.protobuf.InvalidProtocolBufferException {
450 return PARSER.parseFrom(data);
452 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
453 com.google.protobuf.ByteString data,
454 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
455 throws com.google.protobuf.InvalidProtocolBufferException {
456 return PARSER.parseFrom(data, extensionRegistry);
458 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
459 throws com.google.protobuf.InvalidProtocolBufferException {
460 return PARSER.parseFrom(data);
462 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws com.google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data, extensionRegistry);
468 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
469 throws java.io.IOException {
470 return PARSER.parseFrom(input);
472 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
473 java.io.InputStream input,
474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
475 throws java.io.IOException {
476 return PARSER.parseFrom(input, extensionRegistry);
478 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
479 throws java.io.IOException {
480 return PARSER.parseDelimitedFrom(input);
482 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
483 java.io.InputStream input,
484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
485 throws java.io.IOException {
486 return PARSER.parseDelimitedFrom(input, extensionRegistry);
488 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
489 com.google.protobuf.CodedInputStream input)
490 throws java.io.IOException {
491 return PARSER.parseFrom(input);
493 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
494 com.google.protobuf.CodedInputStream input,
495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
496 throws java.io.IOException {
497 return PARSER.parseFrom(input, extensionRegistry);
500 public static Builder newBuilder() { return Builder.create(); }
501 public Builder newBuilderForType() { return newBuilder(); }
502 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
503 return newBuilder().mergeFrom(prototype);
505 public Builder toBuilder() { return newBuilder(this); }
508 protected Builder newBuilderForType(
509 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
510 Builder builder = new Builder(parent);
514 * Protobuf type {@code openxc.VehicleMessage}
516 public static final class Builder extends
517 com.google.protobuf.GeneratedMessage.Builder<Builder>
518 implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
519 public static final com.google.protobuf.Descriptors.Descriptor
521 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
524 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
525 internalGetFieldAccessorTable() {
526 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
527 .ensureFieldAccessorsInitialized(
528 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
531 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
533 maybeForceBuilderInitialization();
537 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
539 maybeForceBuilderInitialization();
541 private void maybeForceBuilderInitialization() {
542 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
543 getRawMessageFieldBuilder();
544 getTranslatedMessageFieldBuilder();
545 getDiagnosticResponseFieldBuilder();
548 private static Builder create() {
549 return new Builder();
552 public Builder clear() {
554 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
555 bitField0_ = (bitField0_ & ~0x00000001);
556 if (rawMessageBuilder_ == null) {
557 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
559 rawMessageBuilder_.clear();
561 bitField0_ = (bitField0_ & ~0x00000002);
562 if (translatedMessageBuilder_ == null) {
563 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
565 translatedMessageBuilder_.clear();
567 bitField0_ = (bitField0_ & ~0x00000004);
568 if (diagnosticResponseBuilder_ == null) {
569 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
571 diagnosticResponseBuilder_.clear();
573 bitField0_ = (bitField0_ & ~0x00000008);
577 public Builder clone() {
578 return create().mergeFrom(buildPartial());
581 public com.google.protobuf.Descriptors.Descriptor
582 getDescriptorForType() {
583 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
586 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
587 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
590 public com.openxc.BinaryMessages.VehicleMessage build() {
591 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
592 if (!result.isInitialized()) {
593 throw newUninitializedMessageException(result);
598 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
599 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
600 int from_bitField0_ = bitField0_;
601 int to_bitField0_ = 0;
602 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
603 to_bitField0_ |= 0x00000001;
605 result.type_ = type_;
606 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
607 to_bitField0_ |= 0x00000002;
609 if (rawMessageBuilder_ == null) {
610 result.rawMessage_ = rawMessage_;
612 result.rawMessage_ = rawMessageBuilder_.build();
614 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
615 to_bitField0_ |= 0x00000004;
617 if (translatedMessageBuilder_ == null) {
618 result.translatedMessage_ = translatedMessage_;
620 result.translatedMessage_ = translatedMessageBuilder_.build();
622 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
623 to_bitField0_ |= 0x00000008;
625 if (diagnosticResponseBuilder_ == null) {
626 result.diagnosticResponse_ = diagnosticResponse_;
628 result.diagnosticResponse_ = diagnosticResponseBuilder_.build();
630 result.bitField0_ = to_bitField0_;
635 public Builder mergeFrom(com.google.protobuf.Message other) {
636 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
637 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
639 super.mergeFrom(other);
644 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
645 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
646 if (other.hasType()) {
647 setType(other.getType());
649 if (other.hasRawMessage()) {
650 mergeRawMessage(other.getRawMessage());
652 if (other.hasTranslatedMessage()) {
653 mergeTranslatedMessage(other.getTranslatedMessage());
655 if (other.hasDiagnosticResponse()) {
656 mergeDiagnosticResponse(other.getDiagnosticResponse());
658 this.mergeUnknownFields(other.getUnknownFields());
662 public final boolean isInitialized() {
666 public Builder mergeFrom(
667 com.google.protobuf.CodedInputStream input,
668 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
669 throws java.io.IOException {
670 com.openxc.BinaryMessages.VehicleMessage parsedMessage = null;
672 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
673 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
674 parsedMessage = (com.openxc.BinaryMessages.VehicleMessage) e.getUnfinishedMessage();
677 if (parsedMessage != null) {
678 mergeFrom(parsedMessage);
683 private int bitField0_;
685 // optional .openxc.VehicleMessage.Type type = 1;
686 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
688 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
690 public boolean hasType() {
691 return ((bitField0_ & 0x00000001) == 0x00000001);
694 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
696 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
700 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
702 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
704 throw new NullPointerException();
706 bitField0_ |= 0x00000001;
712 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
714 public Builder clearType() {
715 bitField0_ = (bitField0_ & ~0x00000001);
716 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
721 // optional .openxc.RawMessage raw_message = 2;
722 private com.openxc.BinaryMessages.RawMessage rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
723 private com.google.protobuf.SingleFieldBuilder<
724 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder> rawMessageBuilder_;
726 * <code>optional .openxc.RawMessage raw_message = 2;</code>
728 public boolean hasRawMessage() {
729 return ((bitField0_ & 0x00000002) == 0x00000002);
732 * <code>optional .openxc.RawMessage raw_message = 2;</code>
734 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
735 if (rawMessageBuilder_ == null) {
738 return rawMessageBuilder_.getMessage();
742 * <code>optional .openxc.RawMessage raw_message = 2;</code>
744 public Builder setRawMessage(com.openxc.BinaryMessages.RawMessage value) {
745 if (rawMessageBuilder_ == null) {
747 throw new NullPointerException();
752 rawMessageBuilder_.setMessage(value);
754 bitField0_ |= 0x00000002;
758 * <code>optional .openxc.RawMessage raw_message = 2;</code>
760 public Builder setRawMessage(
761 com.openxc.BinaryMessages.RawMessage.Builder builderForValue) {
762 if (rawMessageBuilder_ == null) {
763 rawMessage_ = builderForValue.build();
766 rawMessageBuilder_.setMessage(builderForValue.build());
768 bitField0_ |= 0x00000002;
772 * <code>optional .openxc.RawMessage raw_message = 2;</code>
774 public Builder mergeRawMessage(com.openxc.BinaryMessages.RawMessage value) {
775 if (rawMessageBuilder_ == null) {
776 if (((bitField0_ & 0x00000002) == 0x00000002) &&
777 rawMessage_ != com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) {
779 com.openxc.BinaryMessages.RawMessage.newBuilder(rawMessage_).mergeFrom(value).buildPartial();
785 rawMessageBuilder_.mergeFrom(value);
787 bitField0_ |= 0x00000002;
791 * <code>optional .openxc.RawMessage raw_message = 2;</code>
793 public Builder clearRawMessage() {
794 if (rawMessageBuilder_ == null) {
795 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
798 rawMessageBuilder_.clear();
800 bitField0_ = (bitField0_ & ~0x00000002);
804 * <code>optional .openxc.RawMessage raw_message = 2;</code>
806 public com.openxc.BinaryMessages.RawMessage.Builder getRawMessageBuilder() {
807 bitField0_ |= 0x00000002;
809 return getRawMessageFieldBuilder().getBuilder();
812 * <code>optional .openxc.RawMessage raw_message = 2;</code>
814 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
815 if (rawMessageBuilder_ != null) {
816 return rawMessageBuilder_.getMessageOrBuilder();
822 * <code>optional .openxc.RawMessage raw_message = 2;</code>
824 private com.google.protobuf.SingleFieldBuilder<
825 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>
826 getRawMessageFieldBuilder() {
827 if (rawMessageBuilder_ == null) {
828 rawMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
829 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>(
831 getParentForChildren(),
835 return rawMessageBuilder_;
838 // optional .openxc.TranslatedMessage translated_message = 3;
839 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
840 private com.google.protobuf.SingleFieldBuilder<
841 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder> translatedMessageBuilder_;
843 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
845 public boolean hasTranslatedMessage() {
846 return ((bitField0_ & 0x00000004) == 0x00000004);
849 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
851 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
852 if (translatedMessageBuilder_ == null) {
853 return translatedMessage_;
855 return translatedMessageBuilder_.getMessage();
859 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
861 public Builder setTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
862 if (translatedMessageBuilder_ == null) {
864 throw new NullPointerException();
866 translatedMessage_ = value;
869 translatedMessageBuilder_.setMessage(value);
871 bitField0_ |= 0x00000004;
875 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
877 public Builder setTranslatedMessage(
878 com.openxc.BinaryMessages.TranslatedMessage.Builder builderForValue) {
879 if (translatedMessageBuilder_ == null) {
880 translatedMessage_ = builderForValue.build();
883 translatedMessageBuilder_.setMessage(builderForValue.build());
885 bitField0_ |= 0x00000004;
889 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
891 public Builder mergeTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
892 if (translatedMessageBuilder_ == null) {
893 if (((bitField0_ & 0x00000004) == 0x00000004) &&
894 translatedMessage_ != com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) {
896 com.openxc.BinaryMessages.TranslatedMessage.newBuilder(translatedMessage_).mergeFrom(value).buildPartial();
898 translatedMessage_ = value;
902 translatedMessageBuilder_.mergeFrom(value);
904 bitField0_ |= 0x00000004;
908 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
910 public Builder clearTranslatedMessage() {
911 if (translatedMessageBuilder_ == null) {
912 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
915 translatedMessageBuilder_.clear();
917 bitField0_ = (bitField0_ & ~0x00000004);
921 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
923 public com.openxc.BinaryMessages.TranslatedMessage.Builder getTranslatedMessageBuilder() {
924 bitField0_ |= 0x00000004;
926 return getTranslatedMessageFieldBuilder().getBuilder();
929 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
931 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
932 if (translatedMessageBuilder_ != null) {
933 return translatedMessageBuilder_.getMessageOrBuilder();
935 return translatedMessage_;
939 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
941 private com.google.protobuf.SingleFieldBuilder<
942 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>
943 getTranslatedMessageFieldBuilder() {
944 if (translatedMessageBuilder_ == null) {
945 translatedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
946 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>(
948 getParentForChildren(),
950 translatedMessage_ = null;
952 return translatedMessageBuilder_;
955 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
956 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
957 private com.google.protobuf.SingleFieldBuilder<
958 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder> diagnosticResponseBuilder_;
960 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
962 public boolean hasDiagnosticResponse() {
963 return ((bitField0_ & 0x00000008) == 0x00000008);
966 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
968 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
969 if (diagnosticResponseBuilder_ == null) {
970 return diagnosticResponse_;
972 return diagnosticResponseBuilder_.getMessage();
976 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
978 public Builder setDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
979 if (diagnosticResponseBuilder_ == null) {
981 throw new NullPointerException();
983 diagnosticResponse_ = value;
986 diagnosticResponseBuilder_.setMessage(value);
988 bitField0_ |= 0x00000008;
992 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
994 public Builder setDiagnosticResponse(
995 com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) {
996 if (diagnosticResponseBuilder_ == null) {
997 diagnosticResponse_ = builderForValue.build();
1000 diagnosticResponseBuilder_.setMessage(builderForValue.build());
1002 bitField0_ |= 0x00000008;
1006 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1008 public Builder mergeDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
1009 if (diagnosticResponseBuilder_ == null) {
1010 if (((bitField0_ & 0x00000008) == 0x00000008) &&
1011 diagnosticResponse_ != com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) {
1012 diagnosticResponse_ =
1013 com.openxc.BinaryMessages.DiagnosticResponse.newBuilder(diagnosticResponse_).mergeFrom(value).buildPartial();
1015 diagnosticResponse_ = value;
1019 diagnosticResponseBuilder_.mergeFrom(value);
1021 bitField0_ |= 0x00000008;
1025 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1027 public Builder clearDiagnosticResponse() {
1028 if (diagnosticResponseBuilder_ == null) {
1029 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
1032 diagnosticResponseBuilder_.clear();
1034 bitField0_ = (bitField0_ & ~0x00000008);
1038 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1040 public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() {
1041 bitField0_ |= 0x00000008;
1043 return getDiagnosticResponseFieldBuilder().getBuilder();
1046 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1048 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
1049 if (diagnosticResponseBuilder_ != null) {
1050 return diagnosticResponseBuilder_.getMessageOrBuilder();
1052 return diagnosticResponse_;
1056 * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code>
1058 private com.google.protobuf.SingleFieldBuilder<
1059 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>
1060 getDiagnosticResponseFieldBuilder() {
1061 if (diagnosticResponseBuilder_ == null) {
1062 diagnosticResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1063 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>(
1064 diagnosticResponse_,
1065 getParentForChildren(),
1067 diagnosticResponse_ = null;
1069 return diagnosticResponseBuilder_;
1072 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
1076 defaultInstance = new VehicleMessage(true);
1077 defaultInstance.initFields();
1080 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
1083 public interface RawMessageOrBuilder
1084 extends com.google.protobuf.MessageOrBuilder {
1086 // optional int32 bus = 1;
1088 * <code>optional int32 bus = 1;</code>
1092 * <code>optional int32 bus = 1;</code>
1096 // optional uint32 message_id = 2;
1098 * <code>optional uint32 message_id = 2;</code>
1100 boolean hasMessageId();
1102 * <code>optional uint32 message_id = 2;</code>
1106 // optional bytes data = 3;
1108 * <code>optional bytes data = 3;</code>
1112 * <code>optional bytes data = 3;</code>
1114 com.google.protobuf.ByteString getData();
1117 * Protobuf type {@code openxc.RawMessage}
1119 public static final class RawMessage extends
1120 com.google.protobuf.GeneratedMessage
1121 implements RawMessageOrBuilder {
1122 // Use RawMessage.newBuilder() to construct.
1123 private RawMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1125 this.unknownFields = builder.getUnknownFields();
1127 private RawMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1129 private static final RawMessage defaultInstance;
1130 public static RawMessage getDefaultInstance() {
1131 return defaultInstance;
1134 public RawMessage getDefaultInstanceForType() {
1135 return defaultInstance;
1138 private final com.google.protobuf.UnknownFieldSet unknownFields;
1140 public final com.google.protobuf.UnknownFieldSet
1141 getUnknownFields() {
1142 return this.unknownFields;
1145 com.google.protobuf.CodedInputStream input,
1146 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1147 throws com.google.protobuf.InvalidProtocolBufferException {
1149 int mutable_bitField0_ = 0;
1150 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1151 com.google.protobuf.UnknownFieldSet.newBuilder();
1153 boolean done = false;
1155 int tag = input.readTag();
1161 if (!parseUnknownField(input, unknownFields,
1162 extensionRegistry, tag)) {
1168 bitField0_ |= 0x00000001;
1169 bus_ = input.readInt32();
1173 bitField0_ |= 0x00000002;
1174 messageId_ = input.readUInt32();
1178 bitField0_ |= 0x00000004;
1179 data_ = input.readBytes();
1184 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1185 throw e.setUnfinishedMessage(this);
1186 } catch (java.io.IOException e) {
1187 throw new com.google.protobuf.InvalidProtocolBufferException(
1188 e.getMessage()).setUnfinishedMessage(this);
1190 this.unknownFields = unknownFields.build();
1191 makeExtensionsImmutable();
1194 public static final com.google.protobuf.Descriptors.Descriptor
1196 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1199 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1200 internalGetFieldAccessorTable() {
1201 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1202 .ensureFieldAccessorsInitialized(
1203 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1206 public static com.google.protobuf.Parser<RawMessage> PARSER =
1207 new com.google.protobuf.AbstractParser<RawMessage>() {
1208 public RawMessage parsePartialFrom(
1209 com.google.protobuf.CodedInputStream input,
1210 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1211 throws com.google.protobuf.InvalidProtocolBufferException {
1212 return new RawMessage(input, extensionRegistry);
1217 public com.google.protobuf.Parser<RawMessage> getParserForType() {
1221 private int bitField0_;
1222 // optional int32 bus = 1;
1223 public static final int BUS_FIELD_NUMBER = 1;
1226 * <code>optional int32 bus = 1;</code>
1228 public boolean hasBus() {
1229 return ((bitField0_ & 0x00000001) == 0x00000001);
1232 * <code>optional int32 bus = 1;</code>
1234 public int getBus() {
1238 // optional uint32 message_id = 2;
1239 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
1240 private int messageId_;
1242 * <code>optional uint32 message_id = 2;</code>
1244 public boolean hasMessageId() {
1245 return ((bitField0_ & 0x00000002) == 0x00000002);
1248 * <code>optional uint32 message_id = 2;</code>
1250 public int getMessageId() {
1254 // optional bytes data = 3;
1255 public static final int DATA_FIELD_NUMBER = 3;
1256 private com.google.protobuf.ByteString data_;
1258 * <code>optional bytes data = 3;</code>
1260 public boolean hasData() {
1261 return ((bitField0_ & 0x00000004) == 0x00000004);
1264 * <code>optional bytes data = 3;</code>
1266 public com.google.protobuf.ByteString getData() {
1270 private void initFields() {
1273 data_ = com.google.protobuf.ByteString.EMPTY;
1275 private byte memoizedIsInitialized = -1;
1276 public final boolean isInitialized() {
1277 byte isInitialized = memoizedIsInitialized;
1278 if (isInitialized != -1) return isInitialized == 1;
1280 memoizedIsInitialized = 1;
1284 public void writeTo(com.google.protobuf.CodedOutputStream output)
1285 throws java.io.IOException {
1286 getSerializedSize();
1287 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1288 output.writeInt32(1, bus_);
1290 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1291 output.writeUInt32(2, messageId_);
1293 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1294 output.writeBytes(3, data_);
1296 getUnknownFields().writeTo(output);
1299 private int memoizedSerializedSize = -1;
1300 public int getSerializedSize() {
1301 int size = memoizedSerializedSize;
1302 if (size != -1) return size;
1305 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1306 size += com.google.protobuf.CodedOutputStream
1307 .computeInt32Size(1, bus_);
1309 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1310 size += com.google.protobuf.CodedOutputStream
1311 .computeUInt32Size(2, messageId_);
1313 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1314 size += com.google.protobuf.CodedOutputStream
1315 .computeBytesSize(3, data_);
1317 size += getUnknownFields().getSerializedSize();
1318 memoizedSerializedSize = size;
1322 private static final long serialVersionUID = 0L;
1324 protected java.lang.Object writeReplace()
1325 throws java.io.ObjectStreamException {
1326 return super.writeReplace();
1329 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1330 com.google.protobuf.ByteString data)
1331 throws com.google.protobuf.InvalidProtocolBufferException {
1332 return PARSER.parseFrom(data);
1334 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1335 com.google.protobuf.ByteString data,
1336 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1337 throws com.google.protobuf.InvalidProtocolBufferException {
1338 return PARSER.parseFrom(data, extensionRegistry);
1340 public static com.openxc.BinaryMessages.RawMessage parseFrom(byte[] data)
1341 throws com.google.protobuf.InvalidProtocolBufferException {
1342 return PARSER.parseFrom(data);
1344 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1347 throws com.google.protobuf.InvalidProtocolBufferException {
1348 return PARSER.parseFrom(data, extensionRegistry);
1350 public static com.openxc.BinaryMessages.RawMessage parseFrom(java.io.InputStream input)
1351 throws java.io.IOException {
1352 return PARSER.parseFrom(input);
1354 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1355 java.io.InputStream input,
1356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1357 throws java.io.IOException {
1358 return PARSER.parseFrom(input, extensionRegistry);
1360 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(java.io.InputStream input)
1361 throws java.io.IOException {
1362 return PARSER.parseDelimitedFrom(input);
1364 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(
1365 java.io.InputStream input,
1366 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1367 throws java.io.IOException {
1368 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1370 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1371 com.google.protobuf.CodedInputStream input)
1372 throws java.io.IOException {
1373 return PARSER.parseFrom(input);
1375 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1376 com.google.protobuf.CodedInputStream input,
1377 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1378 throws java.io.IOException {
1379 return PARSER.parseFrom(input, extensionRegistry);
1382 public static Builder newBuilder() { return Builder.create(); }
1383 public Builder newBuilderForType() { return newBuilder(); }
1384 public static Builder newBuilder(com.openxc.BinaryMessages.RawMessage prototype) {
1385 return newBuilder().mergeFrom(prototype);
1387 public Builder toBuilder() { return newBuilder(this); }
1390 protected Builder newBuilderForType(
1391 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1392 Builder builder = new Builder(parent);
1396 * Protobuf type {@code openxc.RawMessage}
1398 public static final class Builder extends
1399 com.google.protobuf.GeneratedMessage.Builder<Builder>
1400 implements com.openxc.BinaryMessages.RawMessageOrBuilder {
1401 public static final com.google.protobuf.Descriptors.Descriptor
1403 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1406 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1407 internalGetFieldAccessorTable() {
1408 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1409 .ensureFieldAccessorsInitialized(
1410 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1413 // Construct using com.openxc.BinaryMessages.RawMessage.newBuilder()
1415 maybeForceBuilderInitialization();
1419 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1421 maybeForceBuilderInitialization();
1423 private void maybeForceBuilderInitialization() {
1424 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1427 private static Builder create() {
1428 return new Builder();
1431 public Builder clear() {
1434 bitField0_ = (bitField0_ & ~0x00000001);
1436 bitField0_ = (bitField0_ & ~0x00000002);
1437 data_ = com.google.protobuf.ByteString.EMPTY;
1438 bitField0_ = (bitField0_ & ~0x00000004);
1442 public Builder clone() {
1443 return create().mergeFrom(buildPartial());
1446 public com.google.protobuf.Descriptors.Descriptor
1447 getDescriptorForType() {
1448 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1451 public com.openxc.BinaryMessages.RawMessage getDefaultInstanceForType() {
1452 return com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
1455 public com.openxc.BinaryMessages.RawMessage build() {
1456 com.openxc.BinaryMessages.RawMessage result = buildPartial();
1457 if (!result.isInitialized()) {
1458 throw newUninitializedMessageException(result);
1463 public com.openxc.BinaryMessages.RawMessage buildPartial() {
1464 com.openxc.BinaryMessages.RawMessage result = new com.openxc.BinaryMessages.RawMessage(this);
1465 int from_bitField0_ = bitField0_;
1466 int to_bitField0_ = 0;
1467 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1468 to_bitField0_ |= 0x00000001;
1471 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1472 to_bitField0_ |= 0x00000002;
1474 result.messageId_ = messageId_;
1475 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1476 to_bitField0_ |= 0x00000004;
1478 result.data_ = data_;
1479 result.bitField0_ = to_bitField0_;
1484 public Builder mergeFrom(com.google.protobuf.Message other) {
1485 if (other instanceof com.openxc.BinaryMessages.RawMessage) {
1486 return mergeFrom((com.openxc.BinaryMessages.RawMessage)other);
1488 super.mergeFrom(other);
1493 public Builder mergeFrom(com.openxc.BinaryMessages.RawMessage other) {
1494 if (other == com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) return this;
1495 if (other.hasBus()) {
1496 setBus(other.getBus());
1498 if (other.hasMessageId()) {
1499 setMessageId(other.getMessageId());
1501 if (other.hasData()) {
1502 setData(other.getData());
1504 this.mergeUnknownFields(other.getUnknownFields());
1508 public final boolean isInitialized() {
1512 public Builder mergeFrom(
1513 com.google.protobuf.CodedInputStream input,
1514 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1515 throws java.io.IOException {
1516 com.openxc.BinaryMessages.RawMessage parsedMessage = null;
1518 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1519 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1520 parsedMessage = (com.openxc.BinaryMessages.RawMessage) e.getUnfinishedMessage();
1523 if (parsedMessage != null) {
1524 mergeFrom(parsedMessage);
1529 private int bitField0_;
1531 // optional int32 bus = 1;
1534 * <code>optional int32 bus = 1;</code>
1536 public boolean hasBus() {
1537 return ((bitField0_ & 0x00000001) == 0x00000001);
1540 * <code>optional int32 bus = 1;</code>
1542 public int getBus() {
1546 * <code>optional int32 bus = 1;</code>
1548 public Builder setBus(int value) {
1549 bitField0_ |= 0x00000001;
1555 * <code>optional int32 bus = 1;</code>
1557 public Builder clearBus() {
1558 bitField0_ = (bitField0_ & ~0x00000001);
1564 // optional uint32 message_id = 2;
1565 private int messageId_ ;
1567 * <code>optional uint32 message_id = 2;</code>
1569 public boolean hasMessageId() {
1570 return ((bitField0_ & 0x00000002) == 0x00000002);
1573 * <code>optional uint32 message_id = 2;</code>
1575 public int getMessageId() {
1579 * <code>optional uint32 message_id = 2;</code>
1581 public Builder setMessageId(int value) {
1582 bitField0_ |= 0x00000002;
1588 * <code>optional uint32 message_id = 2;</code>
1590 public Builder clearMessageId() {
1591 bitField0_ = (bitField0_ & ~0x00000002);
1597 // optional bytes data = 3;
1598 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
1600 * <code>optional bytes data = 3;</code>
1602 public boolean hasData() {
1603 return ((bitField0_ & 0x00000004) == 0x00000004);
1606 * <code>optional bytes data = 3;</code>
1608 public com.google.protobuf.ByteString getData() {
1612 * <code>optional bytes data = 3;</code>
1614 public Builder setData(com.google.protobuf.ByteString value) {
1615 if (value == null) {
1616 throw new NullPointerException();
1618 bitField0_ |= 0x00000004;
1624 * <code>optional bytes data = 3;</code>
1626 public Builder clearData() {
1627 bitField0_ = (bitField0_ & ~0x00000004);
1628 data_ = getDefaultInstance().getData();
1633 // @@protoc_insertion_point(builder_scope:openxc.RawMessage)
1637 defaultInstance = new RawMessage(true);
1638 defaultInstance.initFields();
1641 // @@protoc_insertion_point(class_scope:openxc.RawMessage)
1644 public interface ControlCommandOrBuilder
1645 extends com.google.protobuf.MessageOrBuilder {
1647 // optional .openxc.ControlCommand.Type type = 1;
1649 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
1653 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
1655 com.openxc.BinaryMessages.ControlCommand.Type getType();
1657 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
1659 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1661 boolean hasDiagnosticRequest();
1663 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1665 com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest();
1667 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1669 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder();
1672 * Protobuf type {@code openxc.ControlCommand}
1674 public static final class ControlCommand extends
1675 com.google.protobuf.GeneratedMessage
1676 implements ControlCommandOrBuilder {
1677 // Use ControlCommand.newBuilder() to construct.
1678 private ControlCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1680 this.unknownFields = builder.getUnknownFields();
1682 private ControlCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1684 private static final ControlCommand defaultInstance;
1685 public static ControlCommand getDefaultInstance() {
1686 return defaultInstance;
1689 public ControlCommand getDefaultInstanceForType() {
1690 return defaultInstance;
1693 private final com.google.protobuf.UnknownFieldSet unknownFields;
1695 public final com.google.protobuf.UnknownFieldSet
1696 getUnknownFields() {
1697 return this.unknownFields;
1699 private ControlCommand(
1700 com.google.protobuf.CodedInputStream input,
1701 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1702 throws com.google.protobuf.InvalidProtocolBufferException {
1704 int mutable_bitField0_ = 0;
1705 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1706 com.google.protobuf.UnknownFieldSet.newBuilder();
1708 boolean done = false;
1710 int tag = input.readTag();
1716 if (!parseUnknownField(input, unknownFields,
1717 extensionRegistry, tag)) {
1723 int rawValue = input.readEnum();
1724 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
1725 if (value == null) {
1726 unknownFields.mergeVarintField(1, rawValue);
1728 bitField0_ |= 0x00000001;
1734 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = null;
1735 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1736 subBuilder = diagnosticRequest_.toBuilder();
1738 diagnosticRequest_ = input.readMessage(com.openxc.BinaryMessages.DiagnosticRequest.PARSER, extensionRegistry);
1739 if (subBuilder != null) {
1740 subBuilder.mergeFrom(diagnosticRequest_);
1741 diagnosticRequest_ = subBuilder.buildPartial();
1743 bitField0_ |= 0x00000002;
1748 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1749 throw e.setUnfinishedMessage(this);
1750 } catch (java.io.IOException e) {
1751 throw new com.google.protobuf.InvalidProtocolBufferException(
1752 e.getMessage()).setUnfinishedMessage(this);
1754 this.unknownFields = unknownFields.build();
1755 makeExtensionsImmutable();
1758 public static final com.google.protobuf.Descriptors.Descriptor
1760 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
1763 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1764 internalGetFieldAccessorTable() {
1765 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
1766 .ensureFieldAccessorsInitialized(
1767 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
1770 public static com.google.protobuf.Parser<ControlCommand> PARSER =
1771 new com.google.protobuf.AbstractParser<ControlCommand>() {
1772 public ControlCommand parsePartialFrom(
1773 com.google.protobuf.CodedInputStream input,
1774 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1775 throws com.google.protobuf.InvalidProtocolBufferException {
1776 return new ControlCommand(input, extensionRegistry);
1781 public com.google.protobuf.Parser<ControlCommand> getParserForType() {
1786 * Protobuf enum {@code openxc.ControlCommand.Type}
1789 implements com.google.protobuf.ProtocolMessageEnum {
1791 * <code>VERSION = 1;</code>
1795 * <code>DEVICE_ID = 2;</code>
1799 * <code>DIAGNOSTIC = 3;</code>
1805 * <code>VERSION = 1;</code>
1807 public static final int VERSION_VALUE = 1;
1809 * <code>DEVICE_ID = 2;</code>
1811 public static final int DEVICE_ID_VALUE = 2;
1813 * <code>DIAGNOSTIC = 3;</code>
1815 public static final int DIAGNOSTIC_VALUE = 3;
1818 public final int getNumber() { return value; }
1820 public static Type valueOf(int value) {
1822 case 1: return VERSION;
1823 case 2: return DEVICE_ID;
1824 case 3: return DIAGNOSTIC;
1825 default: return null;
1829 public static com.google.protobuf.Internal.EnumLiteMap<Type>
1830 internalGetValueMap() {
1831 return internalValueMap;
1833 private static com.google.protobuf.Internal.EnumLiteMap<Type>
1835 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
1836 public Type findValueByNumber(int number) {
1837 return Type.valueOf(number);
1841 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1842 getValueDescriptor() {
1843 return getDescriptor().getValues().get(index);
1845 public final com.google.protobuf.Descriptors.EnumDescriptor
1846 getDescriptorForType() {
1847 return getDescriptor();
1849 public static final com.google.protobuf.Descriptors.EnumDescriptor
1851 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
1854 private static final Type[] VALUES = values();
1856 public static Type valueOf(
1857 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1858 if (desc.getType() != getDescriptor()) {
1859 throw new java.lang.IllegalArgumentException(
1860 "EnumValueDescriptor is not for this type.");
1862 return VALUES[desc.getIndex()];
1865 private final int index;
1866 private final int value;
1868 private Type(int index, int value) {
1873 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
1876 private int bitField0_;
1877 // optional .openxc.ControlCommand.Type type = 1;
1878 public static final int TYPE_FIELD_NUMBER = 1;
1879 private com.openxc.BinaryMessages.ControlCommand.Type type_;
1881 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
1883 public boolean hasType() {
1884 return ((bitField0_ & 0x00000001) == 0x00000001);
1887 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
1889 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
1893 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
1894 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
1895 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_;
1897 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1899 public boolean hasDiagnosticRequest() {
1900 return ((bitField0_ & 0x00000002) == 0x00000002);
1903 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1905 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
1906 return diagnosticRequest_;
1909 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
1911 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
1912 return diagnosticRequest_;
1915 private void initFields() {
1916 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
1917 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
1919 private byte memoizedIsInitialized = -1;
1920 public final boolean isInitialized() {
1921 byte isInitialized = memoizedIsInitialized;
1922 if (isInitialized != -1) return isInitialized == 1;
1924 memoizedIsInitialized = 1;
1928 public void writeTo(com.google.protobuf.CodedOutputStream output)
1929 throws java.io.IOException {
1930 getSerializedSize();
1931 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1932 output.writeEnum(1, type_.getNumber());
1934 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1935 output.writeMessage(2, diagnosticRequest_);
1937 getUnknownFields().writeTo(output);
1940 private int memoizedSerializedSize = -1;
1941 public int getSerializedSize() {
1942 int size = memoizedSerializedSize;
1943 if (size != -1) return size;
1946 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1947 size += com.google.protobuf.CodedOutputStream
1948 .computeEnumSize(1, type_.getNumber());
1950 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1951 size += com.google.protobuf.CodedOutputStream
1952 .computeMessageSize(2, diagnosticRequest_);
1954 size += getUnknownFields().getSerializedSize();
1955 memoizedSerializedSize = size;
1959 private static final long serialVersionUID = 0L;
1961 protected java.lang.Object writeReplace()
1962 throws java.io.ObjectStreamException {
1963 return super.writeReplace();
1966 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
1967 com.google.protobuf.ByteString data)
1968 throws com.google.protobuf.InvalidProtocolBufferException {
1969 return PARSER.parseFrom(data);
1971 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
1972 com.google.protobuf.ByteString data,
1973 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1974 throws com.google.protobuf.InvalidProtocolBufferException {
1975 return PARSER.parseFrom(data, extensionRegistry);
1977 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
1978 throws com.google.protobuf.InvalidProtocolBufferException {
1979 return PARSER.parseFrom(data);
1981 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
1983 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1984 throws com.google.protobuf.InvalidProtocolBufferException {
1985 return PARSER.parseFrom(data, extensionRegistry);
1987 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
1988 throws java.io.IOException {
1989 return PARSER.parseFrom(input);
1991 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
1992 java.io.InputStream input,
1993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1994 throws java.io.IOException {
1995 return PARSER.parseFrom(input, extensionRegistry);
1997 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
1998 throws java.io.IOException {
1999 return PARSER.parseDelimitedFrom(input);
2001 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2002 java.io.InputStream input,
2003 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2004 throws java.io.IOException {
2005 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2007 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2008 com.google.protobuf.CodedInputStream input)
2009 throws java.io.IOException {
2010 return PARSER.parseFrom(input);
2012 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2013 com.google.protobuf.CodedInputStream input,
2014 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2015 throws java.io.IOException {
2016 return PARSER.parseFrom(input, extensionRegistry);
2019 public static Builder newBuilder() { return Builder.create(); }
2020 public Builder newBuilderForType() { return newBuilder(); }
2021 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2022 return newBuilder().mergeFrom(prototype);
2024 public Builder toBuilder() { return newBuilder(this); }
2027 protected Builder newBuilderForType(
2028 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2029 Builder builder = new Builder(parent);
2033 * Protobuf type {@code openxc.ControlCommand}
2035 public static final class Builder extends
2036 com.google.protobuf.GeneratedMessage.Builder<Builder>
2037 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2038 public static final com.google.protobuf.Descriptors.Descriptor
2040 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2043 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2044 internalGetFieldAccessorTable() {
2045 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable
2046 .ensureFieldAccessorsInitialized(
2047 com.openxc.BinaryMessages.ControlCommand.class, com.openxc.BinaryMessages.ControlCommand.Builder.class);
2050 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2052 maybeForceBuilderInitialization();
2056 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2058 maybeForceBuilderInitialization();
2060 private void maybeForceBuilderInitialization() {
2061 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2062 getDiagnosticRequestFieldBuilder();
2065 private static Builder create() {
2066 return new Builder();
2069 public Builder clear() {
2071 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2072 bitField0_ = (bitField0_ & ~0x00000001);
2073 if (diagnosticRequestBuilder_ == null) {
2074 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2076 diagnosticRequestBuilder_.clear();
2078 bitField0_ = (bitField0_ & ~0x00000002);
2082 public Builder clone() {
2083 return create().mergeFrom(buildPartial());
2086 public com.google.protobuf.Descriptors.Descriptor
2087 getDescriptorForType() {
2088 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2091 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2092 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2095 public com.openxc.BinaryMessages.ControlCommand build() {
2096 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2097 if (!result.isInitialized()) {
2098 throw newUninitializedMessageException(result);
2103 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2104 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2105 int from_bitField0_ = bitField0_;
2106 int to_bitField0_ = 0;
2107 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2108 to_bitField0_ |= 0x00000001;
2110 result.type_ = type_;
2111 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2112 to_bitField0_ |= 0x00000002;
2114 if (diagnosticRequestBuilder_ == null) {
2115 result.diagnosticRequest_ = diagnosticRequest_;
2117 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2119 result.bitField0_ = to_bitField0_;
2124 public Builder mergeFrom(com.google.protobuf.Message other) {
2125 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2126 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2128 super.mergeFrom(other);
2133 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2134 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2135 if (other.hasType()) {
2136 setType(other.getType());
2138 if (other.hasDiagnosticRequest()) {
2139 mergeDiagnosticRequest(other.getDiagnosticRequest());
2141 this.mergeUnknownFields(other.getUnknownFields());
2145 public final boolean isInitialized() {
2149 public Builder mergeFrom(
2150 com.google.protobuf.CodedInputStream input,
2151 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2152 throws java.io.IOException {
2153 com.openxc.BinaryMessages.ControlCommand parsedMessage = null;
2155 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2156 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2157 parsedMessage = (com.openxc.BinaryMessages.ControlCommand) e.getUnfinishedMessage();
2160 if (parsedMessage != null) {
2161 mergeFrom(parsedMessage);
2166 private int bitField0_;
2168 // optional .openxc.ControlCommand.Type type = 1;
2169 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2171 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2173 public boolean hasType() {
2174 return ((bitField0_ & 0x00000001) == 0x00000001);
2177 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2179 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2183 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2185 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2186 if (value == null) {
2187 throw new NullPointerException();
2189 bitField0_ |= 0x00000001;
2195 * <code>optional .openxc.ControlCommand.Type type = 1;</code>
2197 public Builder clearType() {
2198 bitField0_ = (bitField0_ & ~0x00000001);
2199 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2204 // optional .openxc.DiagnosticRequest diagnostic_request = 2;
2205 private com.openxc.BinaryMessages.DiagnosticRequest diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2206 private com.google.protobuf.SingleFieldBuilder<
2207 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> diagnosticRequestBuilder_;
2209 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2211 public boolean hasDiagnosticRequest() {
2212 return ((bitField0_ & 0x00000002) == 0x00000002);
2215 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2217 public com.openxc.BinaryMessages.DiagnosticRequest getDiagnosticRequest() {
2218 if (diagnosticRequestBuilder_ == null) {
2219 return diagnosticRequest_;
2221 return diagnosticRequestBuilder_.getMessage();
2225 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2227 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2228 if (diagnosticRequestBuilder_ == null) {
2229 if (value == null) {
2230 throw new NullPointerException();
2232 diagnosticRequest_ = value;
2235 diagnosticRequestBuilder_.setMessage(value);
2237 bitField0_ |= 0x00000002;
2241 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2243 public Builder setDiagnosticRequest(
2244 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
2245 if (diagnosticRequestBuilder_ == null) {
2246 diagnosticRequest_ = builderForValue.build();
2249 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2251 bitField0_ |= 0x00000002;
2255 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2257 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
2258 if (diagnosticRequestBuilder_ == null) {
2259 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2260 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
2261 diagnosticRequest_ =
2262 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2264 diagnosticRequest_ = value;
2268 diagnosticRequestBuilder_.mergeFrom(value);
2270 bitField0_ |= 0x00000002;
2274 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2276 public Builder clearDiagnosticRequest() {
2277 if (diagnosticRequestBuilder_ == null) {
2278 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2281 diagnosticRequestBuilder_.clear();
2283 bitField0_ = (bitField0_ & ~0x00000002);
2287 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2289 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getDiagnosticRequestBuilder() {
2290 bitField0_ |= 0x00000002;
2292 return getDiagnosticRequestFieldBuilder().getBuilder();
2295 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2297 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getDiagnosticRequestOrBuilder() {
2298 if (diagnosticRequestBuilder_ != null) {
2299 return diagnosticRequestBuilder_.getMessageOrBuilder();
2301 return diagnosticRequest_;
2305 * <code>optional .openxc.DiagnosticRequest diagnostic_request = 2;</code>
2307 private com.google.protobuf.SingleFieldBuilder<
2308 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
2309 getDiagnosticRequestFieldBuilder() {
2310 if (diagnosticRequestBuilder_ == null) {
2311 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2312 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
2314 getParentForChildren(),
2316 diagnosticRequest_ = null;
2318 return diagnosticRequestBuilder_;
2321 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
2325 defaultInstance = new ControlCommand(true);
2326 defaultInstance.initFields();
2329 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
2332 public interface DiagnosticRequestOrBuilder
2333 extends com.google.protobuf.MessageOrBuilder {
2335 // optional int32 bus = 1;
2337 * <code>optional int32 bus = 1;</code>
2341 * <code>optional int32 bus = 1;</code>
2345 // optional uint32 message_id = 2;
2347 * <code>optional uint32 message_id = 2;</code>
2349 boolean hasMessageId();
2351 * <code>optional uint32 message_id = 2;</code>
2355 // optional uint32 mode = 3;
2357 * <code>optional uint32 mode = 3;</code>
2361 * <code>optional uint32 mode = 3;</code>
2365 // optional uint32 pid = 4;
2367 * <code>optional uint32 pid = 4;</code>
2371 * <code>optional uint32 pid = 4;</code>
2375 // optional bytes payload = 5;
2377 * <code>optional bytes payload = 5;</code>
2380 * TODO we are capping this at 8 bytes for now - need to change when we
2381 * support multi-frame responses
2384 boolean hasPayload();
2386 * <code>optional bytes payload = 5;</code>
2389 * TODO we are capping this at 8 bytes for now - need to change when we
2390 * support multi-frame responses
2393 com.google.protobuf.ByteString getPayload();
2395 // optional bool parse_payload = 6;
2397 * <code>optional bool parse_payload = 6;</code>
2399 boolean hasParsePayload();
2401 * <code>optional bool parse_payload = 6;</code>
2403 boolean getParsePayload();
2405 // optional double factor = 7;
2407 * <code>optional double factor = 7;</code>
2409 boolean hasFactor();
2411 * <code>optional double factor = 7;</code>
2415 // optional double offset = 8;
2417 * <code>optional double offset = 8;</code>
2419 boolean hasOffset();
2421 * <code>optional double offset = 8;</code>
2425 // optional double frequency = 9;
2427 * <code>optional double frequency = 9;</code>
2429 boolean hasFrequency();
2431 * <code>optional double frequency = 9;</code>
2433 double getFrequency();
2436 * Protobuf type {@code openxc.DiagnosticRequest}
2438 public static final class DiagnosticRequest extends
2439 com.google.protobuf.GeneratedMessage
2440 implements DiagnosticRequestOrBuilder {
2441 // Use DiagnosticRequest.newBuilder() to construct.
2442 private DiagnosticRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2444 this.unknownFields = builder.getUnknownFields();
2446 private DiagnosticRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2448 private static final DiagnosticRequest defaultInstance;
2449 public static DiagnosticRequest getDefaultInstance() {
2450 return defaultInstance;
2453 public DiagnosticRequest getDefaultInstanceForType() {
2454 return defaultInstance;
2457 private final com.google.protobuf.UnknownFieldSet unknownFields;
2459 public final com.google.protobuf.UnknownFieldSet
2460 getUnknownFields() {
2461 return this.unknownFields;
2463 private DiagnosticRequest(
2464 com.google.protobuf.CodedInputStream input,
2465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2466 throws com.google.protobuf.InvalidProtocolBufferException {
2468 int mutable_bitField0_ = 0;
2469 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2470 com.google.protobuf.UnknownFieldSet.newBuilder();
2472 boolean done = false;
2474 int tag = input.readTag();
2480 if (!parseUnknownField(input, unknownFields,
2481 extensionRegistry, tag)) {
2487 bitField0_ |= 0x00000001;
2488 bus_ = input.readInt32();
2492 bitField0_ |= 0x00000002;
2493 messageId_ = input.readUInt32();
2497 bitField0_ |= 0x00000004;
2498 mode_ = input.readUInt32();
2502 bitField0_ |= 0x00000008;
2503 pid_ = input.readUInt32();
2507 bitField0_ |= 0x00000010;
2508 payload_ = input.readBytes();
2512 bitField0_ |= 0x00000020;
2513 parsePayload_ = input.readBool();
2517 bitField0_ |= 0x00000040;
2518 factor_ = input.readDouble();
2522 bitField0_ |= 0x00000080;
2523 offset_ = input.readDouble();
2527 bitField0_ |= 0x00000100;
2528 frequency_ = input.readDouble();
2533 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2534 throw e.setUnfinishedMessage(this);
2535 } catch (java.io.IOException e) {
2536 throw new com.google.protobuf.InvalidProtocolBufferException(
2537 e.getMessage()).setUnfinishedMessage(this);
2539 this.unknownFields = unknownFields.build();
2540 makeExtensionsImmutable();
2543 public static final com.google.protobuf.Descriptors.Descriptor
2545 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
2548 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2549 internalGetFieldAccessorTable() {
2550 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
2551 .ensureFieldAccessorsInitialized(
2552 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
2555 public static com.google.protobuf.Parser<DiagnosticRequest> PARSER =
2556 new com.google.protobuf.AbstractParser<DiagnosticRequest>() {
2557 public DiagnosticRequest parsePartialFrom(
2558 com.google.protobuf.CodedInputStream input,
2559 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2560 throws com.google.protobuf.InvalidProtocolBufferException {
2561 return new DiagnosticRequest(input, extensionRegistry);
2566 public com.google.protobuf.Parser<DiagnosticRequest> getParserForType() {
2570 private int bitField0_;
2571 // optional int32 bus = 1;
2572 public static final int BUS_FIELD_NUMBER = 1;
2575 * <code>optional int32 bus = 1;</code>
2577 public boolean hasBus() {
2578 return ((bitField0_ & 0x00000001) == 0x00000001);
2581 * <code>optional int32 bus = 1;</code>
2583 public int getBus() {
2587 // optional uint32 message_id = 2;
2588 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
2589 private int messageId_;
2591 * <code>optional uint32 message_id = 2;</code>
2593 public boolean hasMessageId() {
2594 return ((bitField0_ & 0x00000002) == 0x00000002);
2597 * <code>optional uint32 message_id = 2;</code>
2599 public int getMessageId() {
2603 // optional uint32 mode = 3;
2604 public static final int MODE_FIELD_NUMBER = 3;
2607 * <code>optional uint32 mode = 3;</code>
2609 public boolean hasMode() {
2610 return ((bitField0_ & 0x00000004) == 0x00000004);
2613 * <code>optional uint32 mode = 3;</code>
2615 public int getMode() {
2619 // optional uint32 pid = 4;
2620 public static final int PID_FIELD_NUMBER = 4;
2623 * <code>optional uint32 pid = 4;</code>
2625 public boolean hasPid() {
2626 return ((bitField0_ & 0x00000008) == 0x00000008);
2629 * <code>optional uint32 pid = 4;</code>
2631 public int getPid() {
2635 // optional bytes payload = 5;
2636 public static final int PAYLOAD_FIELD_NUMBER = 5;
2637 private com.google.protobuf.ByteString payload_;
2639 * <code>optional bytes payload = 5;</code>
2642 * TODO we are capping this at 8 bytes for now - need to change when we
2643 * support multi-frame responses
2646 public boolean hasPayload() {
2647 return ((bitField0_ & 0x00000010) == 0x00000010);
2650 * <code>optional bytes payload = 5;</code>
2653 * TODO we are capping this at 8 bytes for now - need to change when we
2654 * support multi-frame responses
2657 public com.google.protobuf.ByteString getPayload() {
2661 // optional bool parse_payload = 6;
2662 public static final int PARSE_PAYLOAD_FIELD_NUMBER = 6;
2663 private boolean parsePayload_;
2665 * <code>optional bool parse_payload = 6;</code>
2667 public boolean hasParsePayload() {
2668 return ((bitField0_ & 0x00000020) == 0x00000020);
2671 * <code>optional bool parse_payload = 6;</code>
2673 public boolean getParsePayload() {
2674 return parsePayload_;
2677 // optional double factor = 7;
2678 public static final int FACTOR_FIELD_NUMBER = 7;
2679 private double factor_;
2681 * <code>optional double factor = 7;</code>
2683 public boolean hasFactor() {
2684 return ((bitField0_ & 0x00000040) == 0x00000040);
2687 * <code>optional double factor = 7;</code>
2689 public double getFactor() {
2693 // optional double offset = 8;
2694 public static final int OFFSET_FIELD_NUMBER = 8;
2695 private double offset_;
2697 * <code>optional double offset = 8;</code>
2699 public boolean hasOffset() {
2700 return ((bitField0_ & 0x00000080) == 0x00000080);
2703 * <code>optional double offset = 8;</code>
2705 public double getOffset() {
2709 // optional double frequency = 9;
2710 public static final int FREQUENCY_FIELD_NUMBER = 9;
2711 private double frequency_;
2713 * <code>optional double frequency = 9;</code>
2715 public boolean hasFrequency() {
2716 return ((bitField0_ & 0x00000100) == 0x00000100);
2719 * <code>optional double frequency = 9;</code>
2721 public double getFrequency() {
2725 private void initFields() {
2730 payload_ = com.google.protobuf.ByteString.EMPTY;
2731 parsePayload_ = false;
2736 private byte memoizedIsInitialized = -1;
2737 public final boolean isInitialized() {
2738 byte isInitialized = memoizedIsInitialized;
2739 if (isInitialized != -1) return isInitialized == 1;
2741 memoizedIsInitialized = 1;
2745 public void writeTo(com.google.protobuf.CodedOutputStream output)
2746 throws java.io.IOException {
2747 getSerializedSize();
2748 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2749 output.writeInt32(1, bus_);
2751 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2752 output.writeUInt32(2, messageId_);
2754 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2755 output.writeUInt32(3, mode_);
2757 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2758 output.writeUInt32(4, pid_);
2760 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2761 output.writeBytes(5, payload_);
2763 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2764 output.writeBool(6, parsePayload_);
2766 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2767 output.writeDouble(7, factor_);
2769 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2770 output.writeDouble(8, offset_);
2772 if (((bitField0_ & 0x00000100) == 0x00000100)) {
2773 output.writeDouble(9, frequency_);
2775 getUnknownFields().writeTo(output);
2778 private int memoizedSerializedSize = -1;
2779 public int getSerializedSize() {
2780 int size = memoizedSerializedSize;
2781 if (size != -1) return size;
2784 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2785 size += com.google.protobuf.CodedOutputStream
2786 .computeInt32Size(1, bus_);
2788 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2789 size += com.google.protobuf.CodedOutputStream
2790 .computeUInt32Size(2, messageId_);
2792 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2793 size += com.google.protobuf.CodedOutputStream
2794 .computeUInt32Size(3, mode_);
2796 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2797 size += com.google.protobuf.CodedOutputStream
2798 .computeUInt32Size(4, pid_);
2800 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2801 size += com.google.protobuf.CodedOutputStream
2802 .computeBytesSize(5, payload_);
2804 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2805 size += com.google.protobuf.CodedOutputStream
2806 .computeBoolSize(6, parsePayload_);
2808 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2809 size += com.google.protobuf.CodedOutputStream
2810 .computeDoubleSize(7, factor_);
2812 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2813 size += com.google.protobuf.CodedOutputStream
2814 .computeDoubleSize(8, offset_);
2816 if (((bitField0_ & 0x00000100) == 0x00000100)) {
2817 size += com.google.protobuf.CodedOutputStream
2818 .computeDoubleSize(9, frequency_);
2820 size += getUnknownFields().getSerializedSize();
2821 memoizedSerializedSize = size;
2825 private static final long serialVersionUID = 0L;
2827 protected java.lang.Object writeReplace()
2828 throws java.io.ObjectStreamException {
2829 return super.writeReplace();
2832 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2833 com.google.protobuf.ByteString data)
2834 throws com.google.protobuf.InvalidProtocolBufferException {
2835 return PARSER.parseFrom(data);
2837 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2838 com.google.protobuf.ByteString data,
2839 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2840 throws com.google.protobuf.InvalidProtocolBufferException {
2841 return PARSER.parseFrom(data, extensionRegistry);
2843 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
2844 throws com.google.protobuf.InvalidProtocolBufferException {
2845 return PARSER.parseFrom(data);
2847 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2849 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2850 throws com.google.protobuf.InvalidProtocolBufferException {
2851 return PARSER.parseFrom(data, extensionRegistry);
2853 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
2854 throws java.io.IOException {
2855 return PARSER.parseFrom(input);
2857 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2858 java.io.InputStream input,
2859 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2860 throws java.io.IOException {
2861 return PARSER.parseFrom(input, extensionRegistry);
2863 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
2864 throws java.io.IOException {
2865 return PARSER.parseDelimitedFrom(input);
2867 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
2868 java.io.InputStream input,
2869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2870 throws java.io.IOException {
2871 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2873 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2874 com.google.protobuf.CodedInputStream input)
2875 throws java.io.IOException {
2876 return PARSER.parseFrom(input);
2878 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
2879 com.google.protobuf.CodedInputStream input,
2880 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2881 throws java.io.IOException {
2882 return PARSER.parseFrom(input, extensionRegistry);
2885 public static Builder newBuilder() { return Builder.create(); }
2886 public Builder newBuilderForType() { return newBuilder(); }
2887 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
2888 return newBuilder().mergeFrom(prototype);
2890 public Builder toBuilder() { return newBuilder(this); }
2893 protected Builder newBuilderForType(
2894 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2895 Builder builder = new Builder(parent);
2899 * Protobuf type {@code openxc.DiagnosticRequest}
2901 public static final class Builder extends
2902 com.google.protobuf.GeneratedMessage.Builder<Builder>
2903 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
2904 public static final com.google.protobuf.Descriptors.Descriptor
2906 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
2909 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2910 internalGetFieldAccessorTable() {
2911 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable
2912 .ensureFieldAccessorsInitialized(
2913 com.openxc.BinaryMessages.DiagnosticRequest.class, com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
2916 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
2918 maybeForceBuilderInitialization();
2922 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2924 maybeForceBuilderInitialization();
2926 private void maybeForceBuilderInitialization() {
2927 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2930 private static Builder create() {
2931 return new Builder();
2934 public Builder clear() {
2937 bitField0_ = (bitField0_ & ~0x00000001);
2939 bitField0_ = (bitField0_ & ~0x00000002);
2941 bitField0_ = (bitField0_ & ~0x00000004);
2943 bitField0_ = (bitField0_ & ~0x00000008);
2944 payload_ = com.google.protobuf.ByteString.EMPTY;
2945 bitField0_ = (bitField0_ & ~0x00000010);
2946 parsePayload_ = false;
2947 bitField0_ = (bitField0_ & ~0x00000020);
2949 bitField0_ = (bitField0_ & ~0x00000040);
2951 bitField0_ = (bitField0_ & ~0x00000080);
2953 bitField0_ = (bitField0_ & ~0x00000100);
2957 public Builder clone() {
2958 return create().mergeFrom(buildPartial());
2961 public com.google.protobuf.Descriptors.Descriptor
2962 getDescriptorForType() {
2963 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
2966 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
2967 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
2970 public com.openxc.BinaryMessages.DiagnosticRequest build() {
2971 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
2972 if (!result.isInitialized()) {
2973 throw newUninitializedMessageException(result);
2978 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
2979 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
2980 int from_bitField0_ = bitField0_;
2981 int to_bitField0_ = 0;
2982 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2983 to_bitField0_ |= 0x00000001;
2986 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2987 to_bitField0_ |= 0x00000002;
2989 result.messageId_ = messageId_;
2990 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2991 to_bitField0_ |= 0x00000004;
2993 result.mode_ = mode_;
2994 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2995 to_bitField0_ |= 0x00000008;
2998 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2999 to_bitField0_ |= 0x00000010;
3001 result.payload_ = payload_;
3002 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
3003 to_bitField0_ |= 0x00000020;
3005 result.parsePayload_ = parsePayload_;
3006 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
3007 to_bitField0_ |= 0x00000040;
3009 result.factor_ = factor_;
3010 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
3011 to_bitField0_ |= 0x00000080;
3013 result.offset_ = offset_;
3014 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
3015 to_bitField0_ |= 0x00000100;
3017 result.frequency_ = frequency_;
3018 result.bitField0_ = to_bitField0_;
3023 public Builder mergeFrom(com.google.protobuf.Message other) {
3024 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
3025 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
3027 super.mergeFrom(other);
3032 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
3033 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
3034 if (other.hasBus()) {
3035 setBus(other.getBus());
3037 if (other.hasMessageId()) {
3038 setMessageId(other.getMessageId());
3040 if (other.hasMode()) {
3041 setMode(other.getMode());
3043 if (other.hasPid()) {
3044 setPid(other.getPid());
3046 if (other.hasPayload()) {
3047 setPayload(other.getPayload());
3049 if (other.hasParsePayload()) {
3050 setParsePayload(other.getParsePayload());
3052 if (other.hasFactor()) {
3053 setFactor(other.getFactor());
3055 if (other.hasOffset()) {
3056 setOffset(other.getOffset());
3058 if (other.hasFrequency()) {
3059 setFrequency(other.getFrequency());
3061 this.mergeUnknownFields(other.getUnknownFields());
3065 public final boolean isInitialized() {
3069 public Builder mergeFrom(
3070 com.google.protobuf.CodedInputStream input,
3071 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3072 throws java.io.IOException {
3073 com.openxc.BinaryMessages.DiagnosticRequest parsedMessage = null;
3075 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3076 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3077 parsedMessage = (com.openxc.BinaryMessages.DiagnosticRequest) e.getUnfinishedMessage();
3080 if (parsedMessage != null) {
3081 mergeFrom(parsedMessage);
3086 private int bitField0_;
3088 // optional int32 bus = 1;
3091 * <code>optional int32 bus = 1;</code>
3093 public boolean hasBus() {
3094 return ((bitField0_ & 0x00000001) == 0x00000001);
3097 * <code>optional int32 bus = 1;</code>
3099 public int getBus() {
3103 * <code>optional int32 bus = 1;</code>
3105 public Builder setBus(int value) {
3106 bitField0_ |= 0x00000001;
3112 * <code>optional int32 bus = 1;</code>
3114 public Builder clearBus() {
3115 bitField0_ = (bitField0_ & ~0x00000001);
3121 // optional uint32 message_id = 2;
3122 private int messageId_ ;
3124 * <code>optional uint32 message_id = 2;</code>
3126 public boolean hasMessageId() {
3127 return ((bitField0_ & 0x00000002) == 0x00000002);
3130 * <code>optional uint32 message_id = 2;</code>
3132 public int getMessageId() {
3136 * <code>optional uint32 message_id = 2;</code>
3138 public Builder setMessageId(int value) {
3139 bitField0_ |= 0x00000002;
3145 * <code>optional uint32 message_id = 2;</code>
3147 public Builder clearMessageId() {
3148 bitField0_ = (bitField0_ & ~0x00000002);
3154 // optional uint32 mode = 3;
3157 * <code>optional uint32 mode = 3;</code>
3159 public boolean hasMode() {
3160 return ((bitField0_ & 0x00000004) == 0x00000004);
3163 * <code>optional uint32 mode = 3;</code>
3165 public int getMode() {
3169 * <code>optional uint32 mode = 3;</code>
3171 public Builder setMode(int value) {
3172 bitField0_ |= 0x00000004;
3178 * <code>optional uint32 mode = 3;</code>
3180 public Builder clearMode() {
3181 bitField0_ = (bitField0_ & ~0x00000004);
3187 // optional uint32 pid = 4;
3190 * <code>optional uint32 pid = 4;</code>
3192 public boolean hasPid() {
3193 return ((bitField0_ & 0x00000008) == 0x00000008);
3196 * <code>optional uint32 pid = 4;</code>
3198 public int getPid() {
3202 * <code>optional uint32 pid = 4;</code>
3204 public Builder setPid(int value) {
3205 bitField0_ |= 0x00000008;
3211 * <code>optional uint32 pid = 4;</code>
3213 public Builder clearPid() {
3214 bitField0_ = (bitField0_ & ~0x00000008);
3220 // optional bytes payload = 5;
3221 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
3223 * <code>optional bytes payload = 5;</code>
3226 * TODO we are capping this at 8 bytes for now - need to change when we
3227 * support multi-frame responses
3230 public boolean hasPayload() {
3231 return ((bitField0_ & 0x00000010) == 0x00000010);
3234 * <code>optional bytes payload = 5;</code>
3237 * TODO we are capping this at 8 bytes for now - need to change when we
3238 * support multi-frame responses
3241 public com.google.protobuf.ByteString getPayload() {
3245 * <code>optional bytes payload = 5;</code>
3248 * TODO we are capping this at 8 bytes for now - need to change when we
3249 * support multi-frame responses
3252 public Builder setPayload(com.google.protobuf.ByteString value) {
3253 if (value == null) {
3254 throw new NullPointerException();
3256 bitField0_ |= 0x00000010;
3262 * <code>optional bytes payload = 5;</code>
3265 * TODO we are capping this at 8 bytes for now - need to change when we
3266 * support multi-frame responses
3269 public Builder clearPayload() {
3270 bitField0_ = (bitField0_ & ~0x00000010);
3271 payload_ = getDefaultInstance().getPayload();
3276 // optional bool parse_payload = 6;
3277 private boolean parsePayload_ ;
3279 * <code>optional bool parse_payload = 6;</code>
3281 public boolean hasParsePayload() {
3282 return ((bitField0_ & 0x00000020) == 0x00000020);
3285 * <code>optional bool parse_payload = 6;</code>
3287 public boolean getParsePayload() {
3288 return parsePayload_;
3291 * <code>optional bool parse_payload = 6;</code>
3293 public Builder setParsePayload(boolean value) {
3294 bitField0_ |= 0x00000020;
3295 parsePayload_ = value;
3300 * <code>optional bool parse_payload = 6;</code>
3302 public Builder clearParsePayload() {
3303 bitField0_ = (bitField0_ & ~0x00000020);
3304 parsePayload_ = false;
3309 // optional double factor = 7;
3310 private double factor_ ;
3312 * <code>optional double factor = 7;</code>
3314 public boolean hasFactor() {
3315 return ((bitField0_ & 0x00000040) == 0x00000040);
3318 * <code>optional double factor = 7;</code>
3320 public double getFactor() {
3324 * <code>optional double factor = 7;</code>
3326 public Builder setFactor(double value) {
3327 bitField0_ |= 0x00000040;
3333 * <code>optional double factor = 7;</code>
3335 public Builder clearFactor() {
3336 bitField0_ = (bitField0_ & ~0x00000040);
3342 // optional double offset = 8;
3343 private double offset_ ;
3345 * <code>optional double offset = 8;</code>
3347 public boolean hasOffset() {
3348 return ((bitField0_ & 0x00000080) == 0x00000080);
3351 * <code>optional double offset = 8;</code>
3353 public double getOffset() {
3357 * <code>optional double offset = 8;</code>
3359 public Builder setOffset(double value) {
3360 bitField0_ |= 0x00000080;
3366 * <code>optional double offset = 8;</code>
3368 public Builder clearOffset() {
3369 bitField0_ = (bitField0_ & ~0x00000080);
3375 // optional double frequency = 9;
3376 private double frequency_ ;
3378 * <code>optional double frequency = 9;</code>
3380 public boolean hasFrequency() {
3381 return ((bitField0_ & 0x00000100) == 0x00000100);
3384 * <code>optional double frequency = 9;</code>
3386 public double getFrequency() {
3390 * <code>optional double frequency = 9;</code>
3392 public Builder setFrequency(double value) {
3393 bitField0_ |= 0x00000100;
3399 * <code>optional double frequency = 9;</code>
3401 public Builder clearFrequency() {
3402 bitField0_ = (bitField0_ & ~0x00000100);
3408 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
3412 defaultInstance = new DiagnosticRequest(true);
3413 defaultInstance.initFields();
3416 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
3419 public interface DiagnosticResponseOrBuilder
3420 extends com.google.protobuf.MessageOrBuilder {
3422 // optional int32 bus = 1;
3424 * <code>optional int32 bus = 1;</code>
3428 * <code>optional int32 bus = 1;</code>
3432 // optional uint32 message_id = 2;
3434 * <code>optional uint32 message_id = 2;</code>
3436 boolean hasMessageId();
3438 * <code>optional uint32 message_id = 2;</code>
3442 // optional uint32 mode = 3;
3444 * <code>optional uint32 mode = 3;</code>
3448 * <code>optional uint32 mode = 3;</code>
3452 // optional uint32 pid = 4;
3454 * <code>optional uint32 pid = 4;</code>
3458 * <code>optional uint32 pid = 4;</code>
3462 // optional bool success = 5;
3464 * <code>optional bool success = 5;</code>
3466 boolean hasSuccess();
3468 * <code>optional bool success = 5;</code>
3470 boolean getSuccess();
3472 // optional uint32 negative_response_code = 6;
3474 * <code>optional uint32 negative_response_code = 6;</code>
3476 boolean hasNegativeResponseCode();
3478 * <code>optional uint32 negative_response_code = 6;</code>
3480 int getNegativeResponseCode();
3482 // optional bytes payload = 7;
3484 * <code>optional bytes payload = 7;</code>
3487 * TODO we are capping this at 8 bytes for now - need to change when we
3488 * support multi-frame responses
3491 boolean hasPayload();
3493 * <code>optional bytes payload = 7;</code>
3496 * TODO we are capping this at 8 bytes for now - need to change when we
3497 * support multi-frame responses
3500 com.google.protobuf.ByteString getPayload();
3502 // optional double value = 8;
3504 * <code>optional double value = 8;</code>
3508 * <code>optional double value = 8;</code>
3513 * Protobuf type {@code openxc.DiagnosticResponse}
3515 public static final class DiagnosticResponse extends
3516 com.google.protobuf.GeneratedMessage
3517 implements DiagnosticResponseOrBuilder {
3518 // Use DiagnosticResponse.newBuilder() to construct.
3519 private DiagnosticResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3521 this.unknownFields = builder.getUnknownFields();
3523 private DiagnosticResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3525 private static final DiagnosticResponse defaultInstance;
3526 public static DiagnosticResponse getDefaultInstance() {
3527 return defaultInstance;
3530 public DiagnosticResponse getDefaultInstanceForType() {
3531 return defaultInstance;
3534 private final com.google.protobuf.UnknownFieldSet unknownFields;
3536 public final com.google.protobuf.UnknownFieldSet
3537 getUnknownFields() {
3538 return this.unknownFields;
3540 private DiagnosticResponse(
3541 com.google.protobuf.CodedInputStream input,
3542 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3543 throws com.google.protobuf.InvalidProtocolBufferException {
3545 int mutable_bitField0_ = 0;
3546 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3547 com.google.protobuf.UnknownFieldSet.newBuilder();
3549 boolean done = false;
3551 int tag = input.readTag();
3557 if (!parseUnknownField(input, unknownFields,
3558 extensionRegistry, tag)) {
3564 bitField0_ |= 0x00000001;
3565 bus_ = input.readInt32();
3569 bitField0_ |= 0x00000002;
3570 messageId_ = input.readUInt32();
3574 bitField0_ |= 0x00000004;
3575 mode_ = input.readUInt32();
3579 bitField0_ |= 0x00000008;
3580 pid_ = input.readUInt32();
3584 bitField0_ |= 0x00000010;
3585 success_ = input.readBool();
3589 bitField0_ |= 0x00000020;
3590 negativeResponseCode_ = input.readUInt32();
3594 bitField0_ |= 0x00000040;
3595 payload_ = input.readBytes();
3599 bitField0_ |= 0x00000080;
3600 value_ = input.readDouble();
3605 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3606 throw e.setUnfinishedMessage(this);
3607 } catch (java.io.IOException e) {
3608 throw new com.google.protobuf.InvalidProtocolBufferException(
3609 e.getMessage()).setUnfinishedMessage(this);
3611 this.unknownFields = unknownFields.build();
3612 makeExtensionsImmutable();
3615 public static final com.google.protobuf.Descriptors.Descriptor
3617 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
3620 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3621 internalGetFieldAccessorTable() {
3622 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
3623 .ensureFieldAccessorsInitialized(
3624 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
3627 public static com.google.protobuf.Parser<DiagnosticResponse> PARSER =
3628 new com.google.protobuf.AbstractParser<DiagnosticResponse>() {
3629 public DiagnosticResponse parsePartialFrom(
3630 com.google.protobuf.CodedInputStream input,
3631 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3632 throws com.google.protobuf.InvalidProtocolBufferException {
3633 return new DiagnosticResponse(input, extensionRegistry);
3638 public com.google.protobuf.Parser<DiagnosticResponse> getParserForType() {
3642 private int bitField0_;
3643 // optional int32 bus = 1;
3644 public static final int BUS_FIELD_NUMBER = 1;
3647 * <code>optional int32 bus = 1;</code>
3649 public boolean hasBus() {
3650 return ((bitField0_ & 0x00000001) == 0x00000001);
3653 * <code>optional int32 bus = 1;</code>
3655 public int getBus() {
3659 // optional uint32 message_id = 2;
3660 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
3661 private int messageId_;
3663 * <code>optional uint32 message_id = 2;</code>
3665 public boolean hasMessageId() {
3666 return ((bitField0_ & 0x00000002) == 0x00000002);
3669 * <code>optional uint32 message_id = 2;</code>
3671 public int getMessageId() {
3675 // optional uint32 mode = 3;
3676 public static final int MODE_FIELD_NUMBER = 3;
3679 * <code>optional uint32 mode = 3;</code>
3681 public boolean hasMode() {
3682 return ((bitField0_ & 0x00000004) == 0x00000004);
3685 * <code>optional uint32 mode = 3;</code>
3687 public int getMode() {
3691 // optional uint32 pid = 4;
3692 public static final int PID_FIELD_NUMBER = 4;
3695 * <code>optional uint32 pid = 4;</code>
3697 public boolean hasPid() {
3698 return ((bitField0_ & 0x00000008) == 0x00000008);
3701 * <code>optional uint32 pid = 4;</code>
3703 public int getPid() {
3707 // optional bool success = 5;
3708 public static final int SUCCESS_FIELD_NUMBER = 5;
3709 private boolean success_;
3711 * <code>optional bool success = 5;</code>
3713 public boolean hasSuccess() {
3714 return ((bitField0_ & 0x00000010) == 0x00000010);
3717 * <code>optional bool success = 5;</code>
3719 public boolean getSuccess() {
3723 // optional uint32 negative_response_code = 6;
3724 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
3725 private int negativeResponseCode_;
3727 * <code>optional uint32 negative_response_code = 6;</code>
3729 public boolean hasNegativeResponseCode() {
3730 return ((bitField0_ & 0x00000020) == 0x00000020);
3733 * <code>optional uint32 negative_response_code = 6;</code>
3735 public int getNegativeResponseCode() {
3736 return negativeResponseCode_;
3739 // optional bytes payload = 7;
3740 public static final int PAYLOAD_FIELD_NUMBER = 7;
3741 private com.google.protobuf.ByteString payload_;
3743 * <code>optional bytes payload = 7;</code>
3746 * TODO we are capping this at 8 bytes for now - need to change when we
3747 * support multi-frame responses
3750 public boolean hasPayload() {
3751 return ((bitField0_ & 0x00000040) == 0x00000040);
3754 * <code>optional bytes payload = 7;</code>
3757 * TODO we are capping this at 8 bytes for now - need to change when we
3758 * support multi-frame responses
3761 public com.google.protobuf.ByteString getPayload() {
3765 // optional double value = 8;
3766 public static final int VALUE_FIELD_NUMBER = 8;
3767 private double value_;
3769 * <code>optional double value = 8;</code>
3771 public boolean hasValue() {
3772 return ((bitField0_ & 0x00000080) == 0x00000080);
3775 * <code>optional double value = 8;</code>
3777 public double getValue() {
3781 private void initFields() {
3787 negativeResponseCode_ = 0;
3788 payload_ = com.google.protobuf.ByteString.EMPTY;
3791 private byte memoizedIsInitialized = -1;
3792 public final boolean isInitialized() {
3793 byte isInitialized = memoizedIsInitialized;
3794 if (isInitialized != -1) return isInitialized == 1;
3796 memoizedIsInitialized = 1;
3800 public void writeTo(com.google.protobuf.CodedOutputStream output)
3801 throws java.io.IOException {
3802 getSerializedSize();
3803 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3804 output.writeInt32(1, bus_);
3806 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3807 output.writeUInt32(2, messageId_);
3809 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3810 output.writeUInt32(3, mode_);
3812 if (((bitField0_ & 0x00000008) == 0x00000008)) {
3813 output.writeUInt32(4, pid_);
3815 if (((bitField0_ & 0x00000010) == 0x00000010)) {
3816 output.writeBool(5, success_);
3818 if (((bitField0_ & 0x00000020) == 0x00000020)) {
3819 output.writeUInt32(6, negativeResponseCode_);
3821 if (((bitField0_ & 0x00000040) == 0x00000040)) {
3822 output.writeBytes(7, payload_);
3824 if (((bitField0_ & 0x00000080) == 0x00000080)) {
3825 output.writeDouble(8, value_);
3827 getUnknownFields().writeTo(output);
3830 private int memoizedSerializedSize = -1;
3831 public int getSerializedSize() {
3832 int size = memoizedSerializedSize;
3833 if (size != -1) return size;
3836 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3837 size += com.google.protobuf.CodedOutputStream
3838 .computeInt32Size(1, bus_);
3840 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3841 size += com.google.protobuf.CodedOutputStream
3842 .computeUInt32Size(2, messageId_);
3844 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3845 size += com.google.protobuf.CodedOutputStream
3846 .computeUInt32Size(3, mode_);
3848 if (((bitField0_ & 0x00000008) == 0x00000008)) {
3849 size += com.google.protobuf.CodedOutputStream
3850 .computeUInt32Size(4, pid_);
3852 if (((bitField0_ & 0x00000010) == 0x00000010)) {
3853 size += com.google.protobuf.CodedOutputStream
3854 .computeBoolSize(5, success_);
3856 if (((bitField0_ & 0x00000020) == 0x00000020)) {
3857 size += com.google.protobuf.CodedOutputStream
3858 .computeUInt32Size(6, negativeResponseCode_);
3860 if (((bitField0_ & 0x00000040) == 0x00000040)) {
3861 size += com.google.protobuf.CodedOutputStream
3862 .computeBytesSize(7, payload_);
3864 if (((bitField0_ & 0x00000080) == 0x00000080)) {
3865 size += com.google.protobuf.CodedOutputStream
3866 .computeDoubleSize(8, value_);
3868 size += getUnknownFields().getSerializedSize();
3869 memoizedSerializedSize = size;
3873 private static final long serialVersionUID = 0L;
3875 protected java.lang.Object writeReplace()
3876 throws java.io.ObjectStreamException {
3877 return super.writeReplace();
3880 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3881 com.google.protobuf.ByteString data)
3882 throws com.google.protobuf.InvalidProtocolBufferException {
3883 return PARSER.parseFrom(data);
3885 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3886 com.google.protobuf.ByteString data,
3887 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3888 throws com.google.protobuf.InvalidProtocolBufferException {
3889 return PARSER.parseFrom(data, extensionRegistry);
3891 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
3892 throws com.google.protobuf.InvalidProtocolBufferException {
3893 return PARSER.parseFrom(data);
3895 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3897 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3898 throws com.google.protobuf.InvalidProtocolBufferException {
3899 return PARSER.parseFrom(data, extensionRegistry);
3901 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
3902 throws java.io.IOException {
3903 return PARSER.parseFrom(input);
3905 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3906 java.io.InputStream input,
3907 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3908 throws java.io.IOException {
3909 return PARSER.parseFrom(input, extensionRegistry);
3911 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
3912 throws java.io.IOException {
3913 return PARSER.parseDelimitedFrom(input);
3915 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
3916 java.io.InputStream input,
3917 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3918 throws java.io.IOException {
3919 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3921 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3922 com.google.protobuf.CodedInputStream input)
3923 throws java.io.IOException {
3924 return PARSER.parseFrom(input);
3926 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
3927 com.google.protobuf.CodedInputStream input,
3928 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3929 throws java.io.IOException {
3930 return PARSER.parseFrom(input, extensionRegistry);
3933 public static Builder newBuilder() { return Builder.create(); }
3934 public Builder newBuilderForType() { return newBuilder(); }
3935 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
3936 return newBuilder().mergeFrom(prototype);
3938 public Builder toBuilder() { return newBuilder(this); }
3941 protected Builder newBuilderForType(
3942 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3943 Builder builder = new Builder(parent);
3947 * Protobuf type {@code openxc.DiagnosticResponse}
3949 public static final class Builder extends
3950 com.google.protobuf.GeneratedMessage.Builder<Builder>
3951 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
3952 public static final com.google.protobuf.Descriptors.Descriptor
3954 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
3957 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3958 internalGetFieldAccessorTable() {
3959 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable
3960 .ensureFieldAccessorsInitialized(
3961 com.openxc.BinaryMessages.DiagnosticResponse.class, com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
3964 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
3966 maybeForceBuilderInitialization();
3970 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3972 maybeForceBuilderInitialization();
3974 private void maybeForceBuilderInitialization() {
3975 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3978 private static Builder create() {
3979 return new Builder();
3982 public Builder clear() {
3985 bitField0_ = (bitField0_ & ~0x00000001);
3987 bitField0_ = (bitField0_ & ~0x00000002);
3989 bitField0_ = (bitField0_ & ~0x00000004);
3991 bitField0_ = (bitField0_ & ~0x00000008);
3993 bitField0_ = (bitField0_ & ~0x00000010);
3994 negativeResponseCode_ = 0;
3995 bitField0_ = (bitField0_ & ~0x00000020);
3996 payload_ = com.google.protobuf.ByteString.EMPTY;
3997 bitField0_ = (bitField0_ & ~0x00000040);
3999 bitField0_ = (bitField0_ & ~0x00000080);
4003 public Builder clone() {
4004 return create().mergeFrom(buildPartial());
4007 public com.google.protobuf.Descriptors.Descriptor
4008 getDescriptorForType() {
4009 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
4012 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
4013 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
4016 public com.openxc.BinaryMessages.DiagnosticResponse build() {
4017 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
4018 if (!result.isInitialized()) {
4019 throw newUninitializedMessageException(result);
4024 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
4025 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
4026 int from_bitField0_ = bitField0_;
4027 int to_bitField0_ = 0;
4028 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4029 to_bitField0_ |= 0x00000001;
4032 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4033 to_bitField0_ |= 0x00000002;
4035 result.messageId_ = messageId_;
4036 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
4037 to_bitField0_ |= 0x00000004;
4039 result.mode_ = mode_;
4040 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
4041 to_bitField0_ |= 0x00000008;
4044 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
4045 to_bitField0_ |= 0x00000010;
4047 result.success_ = success_;
4048 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
4049 to_bitField0_ |= 0x00000020;
4051 result.negativeResponseCode_ = negativeResponseCode_;
4052 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
4053 to_bitField0_ |= 0x00000040;
4055 result.payload_ = payload_;
4056 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
4057 to_bitField0_ |= 0x00000080;
4059 result.value_ = value_;
4060 result.bitField0_ = to_bitField0_;
4065 public Builder mergeFrom(com.google.protobuf.Message other) {
4066 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
4067 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
4069 super.mergeFrom(other);
4074 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
4075 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
4076 if (other.hasBus()) {
4077 setBus(other.getBus());
4079 if (other.hasMessageId()) {
4080 setMessageId(other.getMessageId());
4082 if (other.hasMode()) {
4083 setMode(other.getMode());
4085 if (other.hasPid()) {
4086 setPid(other.getPid());
4088 if (other.hasSuccess()) {
4089 setSuccess(other.getSuccess());
4091 if (other.hasNegativeResponseCode()) {
4092 setNegativeResponseCode(other.getNegativeResponseCode());
4094 if (other.hasPayload()) {
4095 setPayload(other.getPayload());
4097 if (other.hasValue()) {
4098 setValue(other.getValue());
4100 this.mergeUnknownFields(other.getUnknownFields());
4104 public final boolean isInitialized() {
4108 public Builder mergeFrom(
4109 com.google.protobuf.CodedInputStream input,
4110 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4111 throws java.io.IOException {
4112 com.openxc.BinaryMessages.DiagnosticResponse parsedMessage = null;
4114 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4115 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4116 parsedMessage = (com.openxc.BinaryMessages.DiagnosticResponse) e.getUnfinishedMessage();
4119 if (parsedMessage != null) {
4120 mergeFrom(parsedMessage);
4125 private int bitField0_;
4127 // optional int32 bus = 1;
4130 * <code>optional int32 bus = 1;</code>
4132 public boolean hasBus() {
4133 return ((bitField0_ & 0x00000001) == 0x00000001);
4136 * <code>optional int32 bus = 1;</code>
4138 public int getBus() {
4142 * <code>optional int32 bus = 1;</code>
4144 public Builder setBus(int value) {
4145 bitField0_ |= 0x00000001;
4151 * <code>optional int32 bus = 1;</code>
4153 public Builder clearBus() {
4154 bitField0_ = (bitField0_ & ~0x00000001);
4160 // optional uint32 message_id = 2;
4161 private int messageId_ ;
4163 * <code>optional uint32 message_id = 2;</code>
4165 public boolean hasMessageId() {
4166 return ((bitField0_ & 0x00000002) == 0x00000002);
4169 * <code>optional uint32 message_id = 2;</code>
4171 public int getMessageId() {
4175 * <code>optional uint32 message_id = 2;</code>
4177 public Builder setMessageId(int value) {
4178 bitField0_ |= 0x00000002;
4184 * <code>optional uint32 message_id = 2;</code>
4186 public Builder clearMessageId() {
4187 bitField0_ = (bitField0_ & ~0x00000002);
4193 // optional uint32 mode = 3;
4196 * <code>optional uint32 mode = 3;</code>
4198 public boolean hasMode() {
4199 return ((bitField0_ & 0x00000004) == 0x00000004);
4202 * <code>optional uint32 mode = 3;</code>
4204 public int getMode() {
4208 * <code>optional uint32 mode = 3;</code>
4210 public Builder setMode(int value) {
4211 bitField0_ |= 0x00000004;
4217 * <code>optional uint32 mode = 3;</code>
4219 public Builder clearMode() {
4220 bitField0_ = (bitField0_ & ~0x00000004);
4226 // optional uint32 pid = 4;
4229 * <code>optional uint32 pid = 4;</code>
4231 public boolean hasPid() {
4232 return ((bitField0_ & 0x00000008) == 0x00000008);
4235 * <code>optional uint32 pid = 4;</code>
4237 public int getPid() {
4241 * <code>optional uint32 pid = 4;</code>
4243 public Builder setPid(int value) {
4244 bitField0_ |= 0x00000008;
4250 * <code>optional uint32 pid = 4;</code>
4252 public Builder clearPid() {
4253 bitField0_ = (bitField0_ & ~0x00000008);
4259 // optional bool success = 5;
4260 private boolean success_ ;
4262 * <code>optional bool success = 5;</code>
4264 public boolean hasSuccess() {
4265 return ((bitField0_ & 0x00000010) == 0x00000010);
4268 * <code>optional bool success = 5;</code>
4270 public boolean getSuccess() {
4274 * <code>optional bool success = 5;</code>
4276 public Builder setSuccess(boolean value) {
4277 bitField0_ |= 0x00000010;
4283 * <code>optional bool success = 5;</code>
4285 public Builder clearSuccess() {
4286 bitField0_ = (bitField0_ & ~0x00000010);
4292 // optional uint32 negative_response_code = 6;
4293 private int negativeResponseCode_ ;
4295 * <code>optional uint32 negative_response_code = 6;</code>
4297 public boolean hasNegativeResponseCode() {
4298 return ((bitField0_ & 0x00000020) == 0x00000020);
4301 * <code>optional uint32 negative_response_code = 6;</code>
4303 public int getNegativeResponseCode() {
4304 return negativeResponseCode_;
4307 * <code>optional uint32 negative_response_code = 6;</code>
4309 public Builder setNegativeResponseCode(int value) {
4310 bitField0_ |= 0x00000020;
4311 negativeResponseCode_ = value;
4316 * <code>optional uint32 negative_response_code = 6;</code>
4318 public Builder clearNegativeResponseCode() {
4319 bitField0_ = (bitField0_ & ~0x00000020);
4320 negativeResponseCode_ = 0;
4325 // optional bytes payload = 7;
4326 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
4328 * <code>optional bytes payload = 7;</code>
4331 * TODO we are capping this at 8 bytes for now - need to change when we
4332 * support multi-frame responses
4335 public boolean hasPayload() {
4336 return ((bitField0_ & 0x00000040) == 0x00000040);
4339 * <code>optional bytes payload = 7;</code>
4342 * TODO we are capping this at 8 bytes for now - need to change when we
4343 * support multi-frame responses
4346 public com.google.protobuf.ByteString getPayload() {
4350 * <code>optional bytes payload = 7;</code>
4353 * TODO we are capping this at 8 bytes for now - need to change when we
4354 * support multi-frame responses
4357 public Builder setPayload(com.google.protobuf.ByteString value) {
4358 if (value == null) {
4359 throw new NullPointerException();
4361 bitField0_ |= 0x00000040;
4367 * <code>optional bytes payload = 7;</code>
4370 * TODO we are capping this at 8 bytes for now - need to change when we
4371 * support multi-frame responses
4374 public Builder clearPayload() {
4375 bitField0_ = (bitField0_ & ~0x00000040);
4376 payload_ = getDefaultInstance().getPayload();
4381 // optional double value = 8;
4382 private double value_ ;
4384 * <code>optional double value = 8;</code>
4386 public boolean hasValue() {
4387 return ((bitField0_ & 0x00000080) == 0x00000080);
4390 * <code>optional double value = 8;</code>
4392 public double getValue() {
4396 * <code>optional double value = 8;</code>
4398 public Builder setValue(double value) {
4399 bitField0_ |= 0x00000080;
4405 * <code>optional double value = 8;</code>
4407 public Builder clearValue() {
4408 bitField0_ = (bitField0_ & ~0x00000080);
4414 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
4418 defaultInstance = new DiagnosticResponse(true);
4419 defaultInstance.initFields();
4422 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
4425 public interface TranslatedMessageOrBuilder
4426 extends com.google.protobuf.MessageOrBuilder {
4428 // optional .openxc.TranslatedMessage.Type type = 1;
4430 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
4434 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
4436 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
4438 // optional string name = 2;
4440 * <code>optional string name = 2;</code>
4444 * <code>optional string name = 2;</code>
4446 java.lang.String getName();
4448 * <code>optional string name = 2;</code>
4450 com.google.protobuf.ByteString
4453 // optional string string_value = 3;
4455 * <code>optional string string_value = 3;</code>
4457 boolean hasStringValue();
4459 * <code>optional string string_value = 3;</code>
4461 java.lang.String getStringValue();
4463 * <code>optional string string_value = 3;</code>
4465 com.google.protobuf.ByteString
4466 getStringValueBytes();
4468 // optional double numeric_value = 4;
4470 * <code>optional double numeric_value = 4;</code>
4472 boolean hasNumericValue();
4474 * <code>optional double numeric_value = 4;</code>
4476 double getNumericValue();
4478 // optional bool boolean_value = 5;
4480 * <code>optional bool boolean_value = 5;</code>
4482 boolean hasBooleanValue();
4484 * <code>optional bool boolean_value = 5;</code>
4486 boolean getBooleanValue();
4488 // optional string string_event = 6;
4490 * <code>optional string string_event = 6;</code>
4492 boolean hasStringEvent();
4494 * <code>optional string string_event = 6;</code>
4496 java.lang.String getStringEvent();
4498 * <code>optional string string_event = 6;</code>
4500 com.google.protobuf.ByteString
4501 getStringEventBytes();
4503 // optional double numeric_event = 7;
4505 * <code>optional double numeric_event = 7;</code>
4507 boolean hasNumericEvent();
4509 * <code>optional double numeric_event = 7;</code>
4511 double getNumericEvent();
4513 // optional bool boolean_event = 8;
4515 * <code>optional bool boolean_event = 8;</code>
4517 boolean hasBooleanEvent();
4519 * <code>optional bool boolean_event = 8;</code>
4521 boolean getBooleanEvent();
4524 * Protobuf type {@code openxc.TranslatedMessage}
4526 public static final class TranslatedMessage extends
4527 com.google.protobuf.GeneratedMessage
4528 implements TranslatedMessageOrBuilder {
4529 // Use TranslatedMessage.newBuilder() to construct.
4530 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4532 this.unknownFields = builder.getUnknownFields();
4534 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4536 private static final TranslatedMessage defaultInstance;
4537 public static TranslatedMessage getDefaultInstance() {
4538 return defaultInstance;
4541 public TranslatedMessage getDefaultInstanceForType() {
4542 return defaultInstance;
4545 private final com.google.protobuf.UnknownFieldSet unknownFields;
4547 public final com.google.protobuf.UnknownFieldSet
4548 getUnknownFields() {
4549 return this.unknownFields;
4551 private TranslatedMessage(
4552 com.google.protobuf.CodedInputStream input,
4553 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4554 throws com.google.protobuf.InvalidProtocolBufferException {
4556 int mutable_bitField0_ = 0;
4557 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4558 com.google.protobuf.UnknownFieldSet.newBuilder();
4560 boolean done = false;
4562 int tag = input.readTag();
4568 if (!parseUnknownField(input, unknownFields,
4569 extensionRegistry, tag)) {
4575 int rawValue = input.readEnum();
4576 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
4577 if (value == null) {
4578 unknownFields.mergeVarintField(1, rawValue);
4580 bitField0_ |= 0x00000001;
4586 bitField0_ |= 0x00000002;
4587 name_ = input.readBytes();
4591 bitField0_ |= 0x00000004;
4592 stringValue_ = input.readBytes();
4596 bitField0_ |= 0x00000008;
4597 numericValue_ = input.readDouble();
4601 bitField0_ |= 0x00000010;
4602 booleanValue_ = input.readBool();
4606 bitField0_ |= 0x00000020;
4607 stringEvent_ = input.readBytes();
4611 bitField0_ |= 0x00000040;
4612 numericEvent_ = input.readDouble();
4616 bitField0_ |= 0x00000080;
4617 booleanEvent_ = input.readBool();
4622 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4623 throw e.setUnfinishedMessage(this);
4624 } catch (java.io.IOException e) {
4625 throw new com.google.protobuf.InvalidProtocolBufferException(
4626 e.getMessage()).setUnfinishedMessage(this);
4628 this.unknownFields = unknownFields.build();
4629 makeExtensionsImmutable();
4632 public static final com.google.protobuf.Descriptors.Descriptor
4634 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
4637 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4638 internalGetFieldAccessorTable() {
4639 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
4640 .ensureFieldAccessorsInitialized(
4641 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
4644 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
4645 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
4646 public TranslatedMessage parsePartialFrom(
4647 com.google.protobuf.CodedInputStream input,
4648 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4649 throws com.google.protobuf.InvalidProtocolBufferException {
4650 return new TranslatedMessage(input, extensionRegistry);
4655 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
4660 * Protobuf enum {@code openxc.TranslatedMessage.Type}
4663 implements com.google.protobuf.ProtocolMessageEnum {
4665 * <code>STRING = 1;</code>
4669 * <code>NUM = 2;</code>
4673 * <code>BOOL = 3;</code>
4677 * <code>EVENTED_STRING = 4;</code>
4679 EVENTED_STRING(3, 4),
4681 * <code>EVENTED_NUM = 5;</code>
4685 * <code>EVENTED_BOOL = 6;</code>
4691 * <code>STRING = 1;</code>
4693 public static final int STRING_VALUE = 1;
4695 * <code>NUM = 2;</code>
4697 public static final int NUM_VALUE = 2;
4699 * <code>BOOL = 3;</code>
4701 public static final int BOOL_VALUE = 3;
4703 * <code>EVENTED_STRING = 4;</code>
4705 public static final int EVENTED_STRING_VALUE = 4;
4707 * <code>EVENTED_NUM = 5;</code>
4709 public static final int EVENTED_NUM_VALUE = 5;
4711 * <code>EVENTED_BOOL = 6;</code>
4713 public static final int EVENTED_BOOL_VALUE = 6;
4716 public final int getNumber() { return value; }
4718 public static Type valueOf(int value) {
4720 case 1: return STRING;
4722 case 3: return BOOL;
4723 case 4: return EVENTED_STRING;
4724 case 5: return EVENTED_NUM;
4725 case 6: return EVENTED_BOOL;
4726 default: return null;
4730 public static com.google.protobuf.Internal.EnumLiteMap<Type>
4731 internalGetValueMap() {
4732 return internalValueMap;
4734 private static com.google.protobuf.Internal.EnumLiteMap<Type>
4736 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
4737 public Type findValueByNumber(int number) {
4738 return Type.valueOf(number);
4742 public final com.google.protobuf.Descriptors.EnumValueDescriptor
4743 getValueDescriptor() {
4744 return getDescriptor().getValues().get(index);
4746 public final com.google.protobuf.Descriptors.EnumDescriptor
4747 getDescriptorForType() {
4748 return getDescriptor();
4750 public static final com.google.protobuf.Descriptors.EnumDescriptor
4752 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
4755 private static final Type[] VALUES = values();
4757 public static Type valueOf(
4758 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
4759 if (desc.getType() != getDescriptor()) {
4760 throw new java.lang.IllegalArgumentException(
4761 "EnumValueDescriptor is not for this type.");
4763 return VALUES[desc.getIndex()];
4766 private final int index;
4767 private final int value;
4769 private Type(int index, int value) {
4774 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
4777 private int bitField0_;
4778 // optional .openxc.TranslatedMessage.Type type = 1;
4779 public static final int TYPE_FIELD_NUMBER = 1;
4780 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
4782 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
4784 public boolean hasType() {
4785 return ((bitField0_ & 0x00000001) == 0x00000001);
4788 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
4790 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
4794 // optional string name = 2;
4795 public static final int NAME_FIELD_NUMBER = 2;
4796 private java.lang.Object name_;
4798 * <code>optional string name = 2;</code>
4800 public boolean hasName() {
4801 return ((bitField0_ & 0x00000002) == 0x00000002);
4804 * <code>optional string name = 2;</code>
4806 public java.lang.String getName() {
4807 java.lang.Object ref = name_;
4808 if (ref instanceof java.lang.String) {
4809 return (java.lang.String) ref;
4811 com.google.protobuf.ByteString bs =
4812 (com.google.protobuf.ByteString) ref;
4813 java.lang.String s = bs.toStringUtf8();
4814 if (bs.isValidUtf8()) {
4821 * <code>optional string name = 2;</code>
4823 public com.google.protobuf.ByteString
4825 java.lang.Object ref = name_;
4826 if (ref instanceof java.lang.String) {
4827 com.google.protobuf.ByteString b =
4828 com.google.protobuf.ByteString.copyFromUtf8(
4829 (java.lang.String) ref);
4833 return (com.google.protobuf.ByteString) ref;
4837 // optional string string_value = 3;
4838 public static final int STRING_VALUE_FIELD_NUMBER = 3;
4839 private java.lang.Object stringValue_;
4841 * <code>optional string string_value = 3;</code>
4843 public boolean hasStringValue() {
4844 return ((bitField0_ & 0x00000004) == 0x00000004);
4847 * <code>optional string string_value = 3;</code>
4849 public java.lang.String getStringValue() {
4850 java.lang.Object ref = stringValue_;
4851 if (ref instanceof java.lang.String) {
4852 return (java.lang.String) ref;
4854 com.google.protobuf.ByteString bs =
4855 (com.google.protobuf.ByteString) ref;
4856 java.lang.String s = bs.toStringUtf8();
4857 if (bs.isValidUtf8()) {
4864 * <code>optional string string_value = 3;</code>
4866 public com.google.protobuf.ByteString
4867 getStringValueBytes() {
4868 java.lang.Object ref = stringValue_;
4869 if (ref instanceof java.lang.String) {
4870 com.google.protobuf.ByteString b =
4871 com.google.protobuf.ByteString.copyFromUtf8(
4872 (java.lang.String) ref);
4876 return (com.google.protobuf.ByteString) ref;
4880 // optional double numeric_value = 4;
4881 public static final int NUMERIC_VALUE_FIELD_NUMBER = 4;
4882 private double numericValue_;
4884 * <code>optional double numeric_value = 4;</code>
4886 public boolean hasNumericValue() {
4887 return ((bitField0_ & 0x00000008) == 0x00000008);
4890 * <code>optional double numeric_value = 4;</code>
4892 public double getNumericValue() {
4893 return numericValue_;
4896 // optional bool boolean_value = 5;
4897 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 5;
4898 private boolean booleanValue_;
4900 * <code>optional bool boolean_value = 5;</code>
4902 public boolean hasBooleanValue() {
4903 return ((bitField0_ & 0x00000010) == 0x00000010);
4906 * <code>optional bool boolean_value = 5;</code>
4908 public boolean getBooleanValue() {
4909 return booleanValue_;
4912 // optional string string_event = 6;
4913 public static final int STRING_EVENT_FIELD_NUMBER = 6;
4914 private java.lang.Object stringEvent_;
4916 * <code>optional string string_event = 6;</code>
4918 public boolean hasStringEvent() {
4919 return ((bitField0_ & 0x00000020) == 0x00000020);
4922 * <code>optional string string_event = 6;</code>
4924 public java.lang.String getStringEvent() {
4925 java.lang.Object ref = stringEvent_;
4926 if (ref instanceof java.lang.String) {
4927 return (java.lang.String) ref;
4929 com.google.protobuf.ByteString bs =
4930 (com.google.protobuf.ByteString) ref;
4931 java.lang.String s = bs.toStringUtf8();
4932 if (bs.isValidUtf8()) {
4939 * <code>optional string string_event = 6;</code>
4941 public com.google.protobuf.ByteString
4942 getStringEventBytes() {
4943 java.lang.Object ref = stringEvent_;
4944 if (ref instanceof java.lang.String) {
4945 com.google.protobuf.ByteString b =
4946 com.google.protobuf.ByteString.copyFromUtf8(
4947 (java.lang.String) ref);
4951 return (com.google.protobuf.ByteString) ref;
4955 // optional double numeric_event = 7;
4956 public static final int NUMERIC_EVENT_FIELD_NUMBER = 7;
4957 private double numericEvent_;
4959 * <code>optional double numeric_event = 7;</code>
4961 public boolean hasNumericEvent() {
4962 return ((bitField0_ & 0x00000040) == 0x00000040);
4965 * <code>optional double numeric_event = 7;</code>
4967 public double getNumericEvent() {
4968 return numericEvent_;
4971 // optional bool boolean_event = 8;
4972 public static final int BOOLEAN_EVENT_FIELD_NUMBER = 8;
4973 private boolean booleanEvent_;
4975 * <code>optional bool boolean_event = 8;</code>
4977 public boolean hasBooleanEvent() {
4978 return ((bitField0_ & 0x00000080) == 0x00000080);
4981 * <code>optional bool boolean_event = 8;</code>
4983 public boolean getBooleanEvent() {
4984 return booleanEvent_;
4987 private void initFields() {
4988 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
4992 booleanValue_ = false;
4995 booleanEvent_ = false;
4997 private byte memoizedIsInitialized = -1;
4998 public final boolean isInitialized() {
4999 byte isInitialized = memoizedIsInitialized;
5000 if (isInitialized != -1) return isInitialized == 1;
5002 memoizedIsInitialized = 1;
5006 public void writeTo(com.google.protobuf.CodedOutputStream output)
5007 throws java.io.IOException {
5008 getSerializedSize();
5009 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5010 output.writeEnum(1, type_.getNumber());
5012 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5013 output.writeBytes(2, getNameBytes());
5015 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5016 output.writeBytes(3, getStringValueBytes());
5018 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5019 output.writeDouble(4, numericValue_);
5021 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5022 output.writeBool(5, booleanValue_);
5024 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5025 output.writeBytes(6, getStringEventBytes());
5027 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5028 output.writeDouble(7, numericEvent_);
5030 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5031 output.writeBool(8, booleanEvent_);
5033 getUnknownFields().writeTo(output);
5036 private int memoizedSerializedSize = -1;
5037 public int getSerializedSize() {
5038 int size = memoizedSerializedSize;
5039 if (size != -1) return size;
5042 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5043 size += com.google.protobuf.CodedOutputStream
5044 .computeEnumSize(1, type_.getNumber());
5046 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5047 size += com.google.protobuf.CodedOutputStream
5048 .computeBytesSize(2, getNameBytes());
5050 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5051 size += com.google.protobuf.CodedOutputStream
5052 .computeBytesSize(3, getStringValueBytes());
5054 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5055 size += com.google.protobuf.CodedOutputStream
5056 .computeDoubleSize(4, numericValue_);
5058 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5059 size += com.google.protobuf.CodedOutputStream
5060 .computeBoolSize(5, booleanValue_);
5062 if (((bitField0_ & 0x00000020) == 0x00000020)) {
5063 size += com.google.protobuf.CodedOutputStream
5064 .computeBytesSize(6, getStringEventBytes());
5066 if (((bitField0_ & 0x00000040) == 0x00000040)) {
5067 size += com.google.protobuf.CodedOutputStream
5068 .computeDoubleSize(7, numericEvent_);
5070 if (((bitField0_ & 0x00000080) == 0x00000080)) {
5071 size += com.google.protobuf.CodedOutputStream
5072 .computeBoolSize(8, booleanEvent_);
5074 size += getUnknownFields().getSerializedSize();
5075 memoizedSerializedSize = size;
5079 private static final long serialVersionUID = 0L;
5081 protected java.lang.Object writeReplace()
5082 throws java.io.ObjectStreamException {
5083 return super.writeReplace();
5086 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5087 com.google.protobuf.ByteString data)
5088 throws com.google.protobuf.InvalidProtocolBufferException {
5089 return PARSER.parseFrom(data);
5091 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5092 com.google.protobuf.ByteString data,
5093 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5094 throws com.google.protobuf.InvalidProtocolBufferException {
5095 return PARSER.parseFrom(data, extensionRegistry);
5097 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
5098 throws com.google.protobuf.InvalidProtocolBufferException {
5099 return PARSER.parseFrom(data);
5101 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5104 throws com.google.protobuf.InvalidProtocolBufferException {
5105 return PARSER.parseFrom(data, extensionRegistry);
5107 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
5108 throws java.io.IOException {
5109 return PARSER.parseFrom(input);
5111 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5112 java.io.InputStream input,
5113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5114 throws java.io.IOException {
5115 return PARSER.parseFrom(input, extensionRegistry);
5117 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
5118 throws java.io.IOException {
5119 return PARSER.parseDelimitedFrom(input);
5121 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
5122 java.io.InputStream input,
5123 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5124 throws java.io.IOException {
5125 return PARSER.parseDelimitedFrom(input, extensionRegistry);
5127 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5128 com.google.protobuf.CodedInputStream input)
5129 throws java.io.IOException {
5130 return PARSER.parseFrom(input);
5132 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
5133 com.google.protobuf.CodedInputStream input,
5134 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5135 throws java.io.IOException {
5136 return PARSER.parseFrom(input, extensionRegistry);
5139 public static Builder newBuilder() { return Builder.create(); }
5140 public Builder newBuilderForType() { return newBuilder(); }
5141 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
5142 return newBuilder().mergeFrom(prototype);
5144 public Builder toBuilder() { return newBuilder(this); }
5147 protected Builder newBuilderForType(
5148 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5149 Builder builder = new Builder(parent);
5153 * Protobuf type {@code openxc.TranslatedMessage}
5155 public static final class Builder extends
5156 com.google.protobuf.GeneratedMessage.Builder<Builder>
5157 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
5158 public static final com.google.protobuf.Descriptors.Descriptor
5160 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
5163 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5164 internalGetFieldAccessorTable() {
5165 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
5166 .ensureFieldAccessorsInitialized(
5167 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
5170 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
5172 maybeForceBuilderInitialization();
5176 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5178 maybeForceBuilderInitialization();
5180 private void maybeForceBuilderInitialization() {
5181 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5184 private static Builder create() {
5185 return new Builder();
5188 public Builder clear() {
5190 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
5191 bitField0_ = (bitField0_ & ~0x00000001);
5193 bitField0_ = (bitField0_ & ~0x00000002);
5195 bitField0_ = (bitField0_ & ~0x00000004);
5197 bitField0_ = (bitField0_ & ~0x00000008);
5198 booleanValue_ = false;
5199 bitField0_ = (bitField0_ & ~0x00000010);
5201 bitField0_ = (bitField0_ & ~0x00000020);
5203 bitField0_ = (bitField0_ & ~0x00000040);
5204 booleanEvent_ = false;
5205 bitField0_ = (bitField0_ & ~0x00000080);
5209 public Builder clone() {
5210 return create().mergeFrom(buildPartial());
5213 public com.google.protobuf.Descriptors.Descriptor
5214 getDescriptorForType() {
5215 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
5218 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
5219 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
5222 public com.openxc.BinaryMessages.TranslatedMessage build() {
5223 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
5224 if (!result.isInitialized()) {
5225 throw newUninitializedMessageException(result);
5230 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
5231 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
5232 int from_bitField0_ = bitField0_;
5233 int to_bitField0_ = 0;
5234 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5235 to_bitField0_ |= 0x00000001;
5237 result.type_ = type_;
5238 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5239 to_bitField0_ |= 0x00000002;
5241 result.name_ = name_;
5242 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
5243 to_bitField0_ |= 0x00000004;
5245 result.stringValue_ = stringValue_;
5246 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
5247 to_bitField0_ |= 0x00000008;
5249 result.numericValue_ = numericValue_;
5250 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
5251 to_bitField0_ |= 0x00000010;
5253 result.booleanValue_ = booleanValue_;
5254 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
5255 to_bitField0_ |= 0x00000020;
5257 result.stringEvent_ = stringEvent_;
5258 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
5259 to_bitField0_ |= 0x00000040;
5261 result.numericEvent_ = numericEvent_;
5262 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
5263 to_bitField0_ |= 0x00000080;
5265 result.booleanEvent_ = booleanEvent_;
5266 result.bitField0_ = to_bitField0_;
5271 public Builder mergeFrom(com.google.protobuf.Message other) {
5272 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
5273 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
5275 super.mergeFrom(other);
5280 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
5281 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
5282 if (other.hasType()) {
5283 setType(other.getType());
5285 if (other.hasName()) {
5286 bitField0_ |= 0x00000002;
5287 name_ = other.name_;
5290 if (other.hasStringValue()) {
5291 bitField0_ |= 0x00000004;
5292 stringValue_ = other.stringValue_;
5295 if (other.hasNumericValue()) {
5296 setNumericValue(other.getNumericValue());
5298 if (other.hasBooleanValue()) {
5299 setBooleanValue(other.getBooleanValue());
5301 if (other.hasStringEvent()) {
5302 bitField0_ |= 0x00000020;
5303 stringEvent_ = other.stringEvent_;
5306 if (other.hasNumericEvent()) {
5307 setNumericEvent(other.getNumericEvent());
5309 if (other.hasBooleanEvent()) {
5310 setBooleanEvent(other.getBooleanEvent());
5312 this.mergeUnknownFields(other.getUnknownFields());
5316 public final boolean isInitialized() {
5320 public Builder mergeFrom(
5321 com.google.protobuf.CodedInputStream input,
5322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5323 throws java.io.IOException {
5324 com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null;
5326 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5327 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5328 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
5331 if (parsedMessage != null) {
5332 mergeFrom(parsedMessage);
5337 private int bitField0_;
5339 // optional .openxc.TranslatedMessage.Type type = 1;
5340 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
5342 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
5344 public boolean hasType() {
5345 return ((bitField0_ & 0x00000001) == 0x00000001);
5348 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
5350 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
5354 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
5356 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
5357 if (value == null) {
5358 throw new NullPointerException();
5360 bitField0_ |= 0x00000001;
5366 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
5368 public Builder clearType() {
5369 bitField0_ = (bitField0_ & ~0x00000001);
5370 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
5375 // optional string name = 2;
5376 private java.lang.Object name_ = "";
5378 * <code>optional string name = 2;</code>
5380 public boolean hasName() {
5381 return ((bitField0_ & 0x00000002) == 0x00000002);
5384 * <code>optional string name = 2;</code>
5386 public java.lang.String getName() {
5387 java.lang.Object ref = name_;
5388 if (!(ref instanceof java.lang.String)) {
5389 java.lang.String s = ((com.google.protobuf.ByteString) ref)
5394 return (java.lang.String) ref;
5398 * <code>optional string name = 2;</code>
5400 public com.google.protobuf.ByteString
5402 java.lang.Object ref = name_;
5403 if (ref instanceof String) {
5404 com.google.protobuf.ByteString b =
5405 com.google.protobuf.ByteString.copyFromUtf8(
5406 (java.lang.String) ref);
5410 return (com.google.protobuf.ByteString) ref;
5414 * <code>optional string name = 2;</code>
5416 public Builder setName(
5417 java.lang.String value) {
5418 if (value == null) {
5419 throw new NullPointerException();
5421 bitField0_ |= 0x00000002;
5427 * <code>optional string name = 2;</code>
5429 public Builder clearName() {
5430 bitField0_ = (bitField0_ & ~0x00000002);
5431 name_ = getDefaultInstance().getName();
5436 * <code>optional string name = 2;</code>
5438 public Builder setNameBytes(
5439 com.google.protobuf.ByteString value) {
5440 if (value == null) {
5441 throw new NullPointerException();
5443 bitField0_ |= 0x00000002;
5449 // optional string string_value = 3;
5450 private java.lang.Object stringValue_ = "";
5452 * <code>optional string string_value = 3;</code>
5454 public boolean hasStringValue() {
5455 return ((bitField0_ & 0x00000004) == 0x00000004);
5458 * <code>optional string string_value = 3;</code>
5460 public java.lang.String getStringValue() {
5461 java.lang.Object ref = stringValue_;
5462 if (!(ref instanceof java.lang.String)) {
5463 java.lang.String s = ((com.google.protobuf.ByteString) ref)
5468 return (java.lang.String) ref;
5472 * <code>optional string string_value = 3;</code>
5474 public com.google.protobuf.ByteString
5475 getStringValueBytes() {
5476 java.lang.Object ref = stringValue_;
5477 if (ref instanceof String) {
5478 com.google.protobuf.ByteString b =
5479 com.google.protobuf.ByteString.copyFromUtf8(
5480 (java.lang.String) ref);
5484 return (com.google.protobuf.ByteString) ref;
5488 * <code>optional string string_value = 3;</code>
5490 public Builder setStringValue(
5491 java.lang.String value) {
5492 if (value == null) {
5493 throw new NullPointerException();
5495 bitField0_ |= 0x00000004;
5496 stringValue_ = value;
5501 * <code>optional string string_value = 3;</code>
5503 public Builder clearStringValue() {
5504 bitField0_ = (bitField0_ & ~0x00000004);
5505 stringValue_ = getDefaultInstance().getStringValue();
5510 * <code>optional string string_value = 3;</code>
5512 public Builder setStringValueBytes(
5513 com.google.protobuf.ByteString value) {
5514 if (value == null) {
5515 throw new NullPointerException();
5517 bitField0_ |= 0x00000004;
5518 stringValue_ = value;
5523 // optional double numeric_value = 4;
5524 private double numericValue_ ;
5526 * <code>optional double numeric_value = 4;</code>
5528 public boolean hasNumericValue() {
5529 return ((bitField0_ & 0x00000008) == 0x00000008);
5532 * <code>optional double numeric_value = 4;</code>
5534 public double getNumericValue() {
5535 return numericValue_;
5538 * <code>optional double numeric_value = 4;</code>
5540 public Builder setNumericValue(double value) {
5541 bitField0_ |= 0x00000008;
5542 numericValue_ = value;
5547 * <code>optional double numeric_value = 4;</code>
5549 public Builder clearNumericValue() {
5550 bitField0_ = (bitField0_ & ~0x00000008);
5556 // optional bool boolean_value = 5;
5557 private boolean booleanValue_ ;
5559 * <code>optional bool boolean_value = 5;</code>
5561 public boolean hasBooleanValue() {
5562 return ((bitField0_ & 0x00000010) == 0x00000010);
5565 * <code>optional bool boolean_value = 5;</code>
5567 public boolean getBooleanValue() {
5568 return booleanValue_;
5571 * <code>optional bool boolean_value = 5;</code>
5573 public Builder setBooleanValue(boolean value) {
5574 bitField0_ |= 0x00000010;
5575 booleanValue_ = value;
5580 * <code>optional bool boolean_value = 5;</code>
5582 public Builder clearBooleanValue() {
5583 bitField0_ = (bitField0_ & ~0x00000010);
5584 booleanValue_ = false;
5589 // optional string string_event = 6;
5590 private java.lang.Object stringEvent_ = "";
5592 * <code>optional string string_event = 6;</code>
5594 public boolean hasStringEvent() {
5595 return ((bitField0_ & 0x00000020) == 0x00000020);
5598 * <code>optional string string_event = 6;</code>
5600 public java.lang.String getStringEvent() {
5601 java.lang.Object ref = stringEvent_;
5602 if (!(ref instanceof java.lang.String)) {
5603 java.lang.String s = ((com.google.protobuf.ByteString) ref)
5608 return (java.lang.String) ref;
5612 * <code>optional string string_event = 6;</code>
5614 public com.google.protobuf.ByteString
5615 getStringEventBytes() {
5616 java.lang.Object ref = stringEvent_;
5617 if (ref instanceof String) {
5618 com.google.protobuf.ByteString b =
5619 com.google.protobuf.ByteString.copyFromUtf8(
5620 (java.lang.String) ref);
5624 return (com.google.protobuf.ByteString) ref;
5628 * <code>optional string string_event = 6;</code>
5630 public Builder setStringEvent(
5631 java.lang.String value) {
5632 if (value == null) {
5633 throw new NullPointerException();
5635 bitField0_ |= 0x00000020;
5636 stringEvent_ = value;
5641 * <code>optional string string_event = 6;</code>
5643 public Builder clearStringEvent() {
5644 bitField0_ = (bitField0_ & ~0x00000020);
5645 stringEvent_ = getDefaultInstance().getStringEvent();
5650 * <code>optional string string_event = 6;</code>
5652 public Builder setStringEventBytes(
5653 com.google.protobuf.ByteString value) {
5654 if (value == null) {
5655 throw new NullPointerException();
5657 bitField0_ |= 0x00000020;
5658 stringEvent_ = value;
5663 // optional double numeric_event = 7;
5664 private double numericEvent_ ;
5666 * <code>optional double numeric_event = 7;</code>
5668 public boolean hasNumericEvent() {
5669 return ((bitField0_ & 0x00000040) == 0x00000040);
5672 * <code>optional double numeric_event = 7;</code>
5674 public double getNumericEvent() {
5675 return numericEvent_;
5678 * <code>optional double numeric_event = 7;</code>
5680 public Builder setNumericEvent(double value) {
5681 bitField0_ |= 0x00000040;
5682 numericEvent_ = value;
5687 * <code>optional double numeric_event = 7;</code>
5689 public Builder clearNumericEvent() {
5690 bitField0_ = (bitField0_ & ~0x00000040);
5696 // optional bool boolean_event = 8;
5697 private boolean booleanEvent_ ;
5699 * <code>optional bool boolean_event = 8;</code>
5701 public boolean hasBooleanEvent() {
5702 return ((bitField0_ & 0x00000080) == 0x00000080);
5705 * <code>optional bool boolean_event = 8;</code>
5707 public boolean getBooleanEvent() {
5708 return booleanEvent_;
5711 * <code>optional bool boolean_event = 8;</code>
5713 public Builder setBooleanEvent(boolean value) {
5714 bitField0_ |= 0x00000080;
5715 booleanEvent_ = value;
5720 * <code>optional bool boolean_event = 8;</code>
5722 public Builder clearBooleanEvent() {
5723 bitField0_ = (bitField0_ & ~0x00000080);
5724 booleanEvent_ = false;
5729 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
5733 defaultInstance = new TranslatedMessage(true);
5734 defaultInstance.initFields();
5737 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
5740 private static com.google.protobuf.Descriptors.Descriptor
5741 internal_static_openxc_VehicleMessage_descriptor;
5743 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5744 internal_static_openxc_VehicleMessage_fieldAccessorTable;
5745 private static com.google.protobuf.Descriptors.Descriptor
5746 internal_static_openxc_RawMessage_descriptor;
5748 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5749 internal_static_openxc_RawMessage_fieldAccessorTable;
5750 private static com.google.protobuf.Descriptors.Descriptor
5751 internal_static_openxc_ControlCommand_descriptor;
5753 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5754 internal_static_openxc_ControlCommand_fieldAccessorTable;
5755 private static com.google.protobuf.Descriptors.Descriptor
5756 internal_static_openxc_DiagnosticRequest_descriptor;
5758 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5759 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
5760 private static com.google.protobuf.Descriptors.Descriptor
5761 internal_static_openxc_DiagnosticResponse_descriptor;
5763 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5764 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
5765 private static com.google.protobuf.Descriptors.Descriptor
5766 internal_static_openxc_TranslatedMessage_descriptor;
5768 com.google.protobuf.GeneratedMessage.FieldAccessorTable
5769 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
5771 public static com.google.protobuf.Descriptors.FileDescriptor
5775 private static com.google.protobuf.Descriptors.FileDescriptor
5778 java.lang.String[] descriptorData = {
5779 "\n\014openxc.proto\022\006openxc\"\205\002\n\016VehicleMessag" +
5780 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
5781 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
5782 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
5783 "xc.TranslatedMessage\0227\n\023diagnostic_respo" +
5784 "nse\030\004 \001(\0132\032.openxc.DiagnosticResponse\"/\n" +
5785 "\004Type\022\007\n\003RAW\020\001\022\016\n\nTRANSLATED\020\002\022\016\n\nDIAGNO" +
5786 "STIC\020\003\";\n\nRawMessage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmes" +
5787 "sage_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\014\"\246\001\n\016ControlC" +
5788 "ommand\022)\n\004type\030\001 \001(\0162\033.openxc.ControlCom",
5789 "mand.Type\0225\n\022diagnostic_request\030\002 \001(\0132\031." +
5790 "openxc.DiagnosticRequest\"2\n\004Type\022\013\n\007VERS" +
5791 "ION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOSTIC\020\003\"\252\001\n" +
5792 "\021DiagnosticRequest\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessa" +
5793 "ge_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017" +
5794 "\n\007payload\030\005 \001(\014\022\025\n\rparse_payload\030\006 \001(\010\022\016" +
5795 "\n\006factor\030\007 \001(\001\022\016\n\006offset\030\010 \001(\001\022\021\n\tfreque" +
5796 "ncy\030\t \001(\001\"\241\001\n\022DiagnosticResponse\022\013\n\003bus\030" +
5797 "\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022" +
5798 "\013\n\003pid\030\004 \001(\r\022\017\n\007success\030\005 \001(\010\022\036\n\026negativ",
5799 "e_response_code\030\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022\r" +
5800 "\n\005value\030\010 \001(\001\"\265\002\n\021TranslatedMessage\022,\n\004t" +
5801 "ype\030\001 \001(\0162\036.openxc.TranslatedMessage.Typ" +
5802 "e\022\014\n\004name\030\002 \001(\t\022\024\n\014string_value\030\003 \001(\t\022\025\n" +
5803 "\rnumeric_value\030\004 \001(\001\022\025\n\rboolean_value\030\005 " +
5804 "\001(\010\022\024\n\014string_event\030\006 \001(\t\022\025\n\rnumeric_eve" +
5805 "nt\030\007 \001(\001\022\025\n\rboolean_event\030\010 \001(\010\"\\\n\004Type\022" +
5806 "\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\022\022\n\016EVENTE" +
5807 "D_STRING\020\004\022\017\n\013EVENTED_NUM\020\005\022\020\n\014EVENTED_B" +
5808 "OOL\020\006B\034\n\ncom.openxcB\016BinaryMessages"
5810 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
5811 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
5812 public com.google.protobuf.ExtensionRegistry assignDescriptors(
5813 com.google.protobuf.Descriptors.FileDescriptor root) {
5815 internal_static_openxc_VehicleMessage_descriptor =
5816 getDescriptor().getMessageTypes().get(0);
5817 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
5818 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5819 internal_static_openxc_VehicleMessage_descriptor,
5820 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", "DiagnosticResponse", });
5821 internal_static_openxc_RawMessage_descriptor =
5822 getDescriptor().getMessageTypes().get(1);
5823 internal_static_openxc_RawMessage_fieldAccessorTable = new
5824 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5825 internal_static_openxc_RawMessage_descriptor,
5826 new java.lang.String[] { "Bus", "MessageId", "Data", });
5827 internal_static_openxc_ControlCommand_descriptor =
5828 getDescriptor().getMessageTypes().get(2);
5829 internal_static_openxc_ControlCommand_fieldAccessorTable = new
5830 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5831 internal_static_openxc_ControlCommand_descriptor,
5832 new java.lang.String[] { "Type", "DiagnosticRequest", });
5833 internal_static_openxc_DiagnosticRequest_descriptor =
5834 getDescriptor().getMessageTypes().get(3);
5835 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
5836 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5837 internal_static_openxc_DiagnosticRequest_descriptor,
5838 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "ParsePayload", "Factor", "Offset", "Frequency", });
5839 internal_static_openxc_DiagnosticResponse_descriptor =
5840 getDescriptor().getMessageTypes().get(4);
5841 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
5842 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5843 internal_static_openxc_DiagnosticResponse_descriptor,
5844 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", });
5845 internal_static_openxc_TranslatedMessage_descriptor =
5846 getDescriptor().getMessageTypes().get(5);
5847 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
5848 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
5849 internal_static_openxc_TranslatedMessage_descriptor,
5850 new java.lang.String[] { "Type", "Name", "StringValue", "NumericValue", "BooleanValue", "StringEvent", "NumericEvent", "BooleanEvent", });
5854 com.google.protobuf.Descriptors.FileDescriptor
5855 .internalBuildGeneratedFileFrom(descriptorData,
5856 new com.google.protobuf.Descriptors.FileDescriptor[] {
5860 // @@protoc_insertion_point(outer_class_scope)