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();
53 * Protobuf type {@code openxc.VehicleMessage}
55 public static final class VehicleMessage extends
56 com.google.protobuf.GeneratedMessage
57 implements VehicleMessageOrBuilder {
58 // Use VehicleMessage.newBuilder() to construct.
59 private VehicleMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
61 this.unknownFields = builder.getUnknownFields();
63 private VehicleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
65 private static final VehicleMessage defaultInstance;
66 public static VehicleMessage getDefaultInstance() {
67 return defaultInstance;
70 public VehicleMessage getDefaultInstanceForType() {
71 return defaultInstance;
74 private final com.google.protobuf.UnknownFieldSet unknownFields;
76 public final com.google.protobuf.UnknownFieldSet
78 return this.unknownFields;
80 private VehicleMessage(
81 com.google.protobuf.CodedInputStream input,
82 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
83 throws com.google.protobuf.InvalidProtocolBufferException {
85 int mutable_bitField0_ = 0;
86 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
87 com.google.protobuf.UnknownFieldSet.newBuilder();
91 int tag = input.readTag();
97 if (!parseUnknownField(input, unknownFields,
98 extensionRegistry, tag)) {
104 int rawValue = input.readEnum();
105 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
107 unknownFields.mergeVarintField(1, rawValue);
109 bitField0_ |= 0x00000001;
115 com.openxc.BinaryMessages.RawMessage.Builder subBuilder = null;
116 if (((bitField0_ & 0x00000002) == 0x00000002)) {
117 subBuilder = rawMessage_.toBuilder();
119 rawMessage_ = input.readMessage(com.openxc.BinaryMessages.RawMessage.PARSER, extensionRegistry);
120 if (subBuilder != null) {
121 subBuilder.mergeFrom(rawMessage_);
122 rawMessage_ = subBuilder.buildPartial();
124 bitField0_ |= 0x00000002;
128 com.openxc.BinaryMessages.TranslatedMessage.Builder subBuilder = null;
129 if (((bitField0_ & 0x00000004) == 0x00000004)) {
130 subBuilder = translatedMessage_.toBuilder();
132 translatedMessage_ = input.readMessage(com.openxc.BinaryMessages.TranslatedMessage.PARSER, extensionRegistry);
133 if (subBuilder != null) {
134 subBuilder.mergeFrom(translatedMessage_);
135 translatedMessage_ = subBuilder.buildPartial();
137 bitField0_ |= 0x00000004;
142 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
143 throw e.setUnfinishedMessage(this);
144 } catch (java.io.IOException e) {
145 throw new com.google.protobuf.InvalidProtocolBufferException(
146 e.getMessage()).setUnfinishedMessage(this);
148 this.unknownFields = unknownFields.build();
149 makeExtensionsImmutable();
152 public static final com.google.protobuf.Descriptors.Descriptor
154 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
157 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
158 internalGetFieldAccessorTable() {
159 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
160 .ensureFieldAccessorsInitialized(
161 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
164 public static com.google.protobuf.Parser<VehicleMessage> PARSER =
165 new com.google.protobuf.AbstractParser<VehicleMessage>() {
166 public VehicleMessage parsePartialFrom(
167 com.google.protobuf.CodedInputStream input,
168 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
169 throws com.google.protobuf.InvalidProtocolBufferException {
170 return new VehicleMessage(input, extensionRegistry);
175 public com.google.protobuf.Parser<VehicleMessage> getParserForType() {
180 * Protobuf enum {@code openxc.VehicleMessage.Type}
183 implements com.google.protobuf.ProtocolMessageEnum {
185 * <code>RAW = 1;</code>
189 * <code>TRANSLATED = 2;</code>
195 * <code>RAW = 1;</code>
197 public static final int RAW_VALUE = 1;
199 * <code>TRANSLATED = 2;</code>
201 public static final int TRANSLATED_VALUE = 2;
204 public final int getNumber() { return value; }
206 public static Type valueOf(int value) {
209 case 2: return TRANSLATED;
210 default: return null;
214 public static com.google.protobuf.Internal.EnumLiteMap<Type>
215 internalGetValueMap() {
216 return internalValueMap;
218 private static com.google.protobuf.Internal.EnumLiteMap<Type>
220 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
221 public Type findValueByNumber(int number) {
222 return Type.valueOf(number);
226 public final com.google.protobuf.Descriptors.EnumValueDescriptor
227 getValueDescriptor() {
228 return getDescriptor().getValues().get(index);
230 public final com.google.protobuf.Descriptors.EnumDescriptor
231 getDescriptorForType() {
232 return getDescriptor();
234 public static final com.google.protobuf.Descriptors.EnumDescriptor
236 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
239 private static final Type[] VALUES = values();
241 public static Type valueOf(
242 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
243 if (desc.getType() != getDescriptor()) {
244 throw new java.lang.IllegalArgumentException(
245 "EnumValueDescriptor is not for this type.");
247 return VALUES[desc.getIndex()];
250 private final int index;
251 private final int value;
253 private Type(int index, int value) {
258 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
261 private int bitField0_;
262 // optional .openxc.VehicleMessage.Type type = 1;
263 public static final int TYPE_FIELD_NUMBER = 1;
264 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
266 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
268 public boolean hasType() {
269 return ((bitField0_ & 0x00000001) == 0x00000001);
272 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
274 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
278 // optional .openxc.RawMessage raw_message = 2;
279 public static final int RAW_MESSAGE_FIELD_NUMBER = 2;
280 private com.openxc.BinaryMessages.RawMessage rawMessage_;
282 * <code>optional .openxc.RawMessage raw_message = 2;</code>
284 public boolean hasRawMessage() {
285 return ((bitField0_ & 0x00000002) == 0x00000002);
288 * <code>optional .openxc.RawMessage raw_message = 2;</code>
290 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
294 * <code>optional .openxc.RawMessage raw_message = 2;</code>
296 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
300 // optional .openxc.TranslatedMessage translated_message = 3;
301 public static final int TRANSLATED_MESSAGE_FIELD_NUMBER = 3;
302 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_;
304 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
306 public boolean hasTranslatedMessage() {
307 return ((bitField0_ & 0x00000004) == 0x00000004);
310 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
312 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
313 return translatedMessage_;
316 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
318 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
319 return translatedMessage_;
322 private void initFields() {
323 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
324 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
325 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
327 private byte memoizedIsInitialized = -1;
328 public final boolean isInitialized() {
329 byte isInitialized = memoizedIsInitialized;
330 if (isInitialized != -1) return isInitialized == 1;
332 memoizedIsInitialized = 1;
336 public void writeTo(com.google.protobuf.CodedOutputStream output)
337 throws java.io.IOException {
339 if (((bitField0_ & 0x00000001) == 0x00000001)) {
340 output.writeEnum(1, type_.getNumber());
342 if (((bitField0_ & 0x00000002) == 0x00000002)) {
343 output.writeMessage(2, rawMessage_);
345 if (((bitField0_ & 0x00000004) == 0x00000004)) {
346 output.writeMessage(3, translatedMessage_);
348 getUnknownFields().writeTo(output);
351 private int memoizedSerializedSize = -1;
352 public int getSerializedSize() {
353 int size = memoizedSerializedSize;
354 if (size != -1) return size;
357 if (((bitField0_ & 0x00000001) == 0x00000001)) {
358 size += com.google.protobuf.CodedOutputStream
359 .computeEnumSize(1, type_.getNumber());
361 if (((bitField0_ & 0x00000002) == 0x00000002)) {
362 size += com.google.protobuf.CodedOutputStream
363 .computeMessageSize(2, rawMessage_);
365 if (((bitField0_ & 0x00000004) == 0x00000004)) {
366 size += com.google.protobuf.CodedOutputStream
367 .computeMessageSize(3, translatedMessage_);
369 size += getUnknownFields().getSerializedSize();
370 memoizedSerializedSize = size;
374 private static final long serialVersionUID = 0L;
376 protected java.lang.Object writeReplace()
377 throws java.io.ObjectStreamException {
378 return super.writeReplace();
381 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
382 com.google.protobuf.ByteString data)
383 throws com.google.protobuf.InvalidProtocolBufferException {
384 return PARSER.parseFrom(data);
386 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
387 com.google.protobuf.ByteString data,
388 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
389 throws com.google.protobuf.InvalidProtocolBufferException {
390 return PARSER.parseFrom(data, extensionRegistry);
392 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
393 throws com.google.protobuf.InvalidProtocolBufferException {
394 return PARSER.parseFrom(data);
396 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
398 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
399 throws com.google.protobuf.InvalidProtocolBufferException {
400 return PARSER.parseFrom(data, extensionRegistry);
402 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
403 throws java.io.IOException {
404 return PARSER.parseFrom(input);
406 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
407 java.io.InputStream input,
408 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
409 throws java.io.IOException {
410 return PARSER.parseFrom(input, extensionRegistry);
412 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
413 throws java.io.IOException {
414 return PARSER.parseDelimitedFrom(input);
416 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
417 java.io.InputStream input,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws java.io.IOException {
420 return PARSER.parseDelimitedFrom(input, extensionRegistry);
422 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
423 com.google.protobuf.CodedInputStream input)
424 throws java.io.IOException {
425 return PARSER.parseFrom(input);
427 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
428 com.google.protobuf.CodedInputStream input,
429 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
430 throws java.io.IOException {
431 return PARSER.parseFrom(input, extensionRegistry);
434 public static Builder newBuilder() { return Builder.create(); }
435 public Builder newBuilderForType() { return newBuilder(); }
436 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
437 return newBuilder().mergeFrom(prototype);
439 public Builder toBuilder() { return newBuilder(this); }
442 protected Builder newBuilderForType(
443 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
444 Builder builder = new Builder(parent);
448 * Protobuf type {@code openxc.VehicleMessage}
450 public static final class Builder extends
451 com.google.protobuf.GeneratedMessage.Builder<Builder>
452 implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
453 public static final com.google.protobuf.Descriptors.Descriptor
455 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
458 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
459 internalGetFieldAccessorTable() {
460 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
461 .ensureFieldAccessorsInitialized(
462 com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
465 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
467 maybeForceBuilderInitialization();
471 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
473 maybeForceBuilderInitialization();
475 private void maybeForceBuilderInitialization() {
476 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
477 getRawMessageFieldBuilder();
478 getTranslatedMessageFieldBuilder();
481 private static Builder create() {
482 return new Builder();
485 public Builder clear() {
487 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
488 bitField0_ = (bitField0_ & ~0x00000001);
489 if (rawMessageBuilder_ == null) {
490 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
492 rawMessageBuilder_.clear();
494 bitField0_ = (bitField0_ & ~0x00000002);
495 if (translatedMessageBuilder_ == null) {
496 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
498 translatedMessageBuilder_.clear();
500 bitField0_ = (bitField0_ & ~0x00000004);
504 public Builder clone() {
505 return create().mergeFrom(buildPartial());
508 public com.google.protobuf.Descriptors.Descriptor
509 getDescriptorForType() {
510 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
513 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
514 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
517 public com.openxc.BinaryMessages.VehicleMessage build() {
518 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
519 if (!result.isInitialized()) {
520 throw newUninitializedMessageException(result);
525 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
526 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
527 int from_bitField0_ = bitField0_;
528 int to_bitField0_ = 0;
529 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
530 to_bitField0_ |= 0x00000001;
532 result.type_ = type_;
533 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
534 to_bitField0_ |= 0x00000002;
536 if (rawMessageBuilder_ == null) {
537 result.rawMessage_ = rawMessage_;
539 result.rawMessage_ = rawMessageBuilder_.build();
541 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
542 to_bitField0_ |= 0x00000004;
544 if (translatedMessageBuilder_ == null) {
545 result.translatedMessage_ = translatedMessage_;
547 result.translatedMessage_ = translatedMessageBuilder_.build();
549 result.bitField0_ = to_bitField0_;
554 public Builder mergeFrom(com.google.protobuf.Message other) {
555 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
556 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
558 super.mergeFrom(other);
563 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
564 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
565 if (other.hasType()) {
566 setType(other.getType());
568 if (other.hasRawMessage()) {
569 mergeRawMessage(other.getRawMessage());
571 if (other.hasTranslatedMessage()) {
572 mergeTranslatedMessage(other.getTranslatedMessage());
574 this.mergeUnknownFields(other.getUnknownFields());
578 public final boolean isInitialized() {
582 public Builder mergeFrom(
583 com.google.protobuf.CodedInputStream input,
584 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
585 throws java.io.IOException {
586 com.openxc.BinaryMessages.VehicleMessage parsedMessage = null;
588 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
589 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
590 parsedMessage = (com.openxc.BinaryMessages.VehicleMessage) e.getUnfinishedMessage();
593 if (parsedMessage != null) {
594 mergeFrom(parsedMessage);
599 private int bitField0_;
601 // optional .openxc.VehicleMessage.Type type = 1;
602 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
604 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
606 public boolean hasType() {
607 return ((bitField0_ & 0x00000001) == 0x00000001);
610 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
612 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
616 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
618 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
620 throw new NullPointerException();
622 bitField0_ |= 0x00000001;
628 * <code>optional .openxc.VehicleMessage.Type type = 1;</code>
630 public Builder clearType() {
631 bitField0_ = (bitField0_ & ~0x00000001);
632 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
637 // optional .openxc.RawMessage raw_message = 2;
638 private com.openxc.BinaryMessages.RawMessage rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
639 private com.google.protobuf.SingleFieldBuilder<
640 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder> rawMessageBuilder_;
642 * <code>optional .openxc.RawMessage raw_message = 2;</code>
644 public boolean hasRawMessage() {
645 return ((bitField0_ & 0x00000002) == 0x00000002);
648 * <code>optional .openxc.RawMessage raw_message = 2;</code>
650 public com.openxc.BinaryMessages.RawMessage getRawMessage() {
651 if (rawMessageBuilder_ == null) {
654 return rawMessageBuilder_.getMessage();
658 * <code>optional .openxc.RawMessage raw_message = 2;</code>
660 public Builder setRawMessage(com.openxc.BinaryMessages.RawMessage value) {
661 if (rawMessageBuilder_ == null) {
663 throw new NullPointerException();
668 rawMessageBuilder_.setMessage(value);
670 bitField0_ |= 0x00000002;
674 * <code>optional .openxc.RawMessage raw_message = 2;</code>
676 public Builder setRawMessage(
677 com.openxc.BinaryMessages.RawMessage.Builder builderForValue) {
678 if (rawMessageBuilder_ == null) {
679 rawMessage_ = builderForValue.build();
682 rawMessageBuilder_.setMessage(builderForValue.build());
684 bitField0_ |= 0x00000002;
688 * <code>optional .openxc.RawMessage raw_message = 2;</code>
690 public Builder mergeRawMessage(com.openxc.BinaryMessages.RawMessage value) {
691 if (rawMessageBuilder_ == null) {
692 if (((bitField0_ & 0x00000002) == 0x00000002) &&
693 rawMessage_ != com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) {
695 com.openxc.BinaryMessages.RawMessage.newBuilder(rawMessage_).mergeFrom(value).buildPartial();
701 rawMessageBuilder_.mergeFrom(value);
703 bitField0_ |= 0x00000002;
707 * <code>optional .openxc.RawMessage raw_message = 2;</code>
709 public Builder clearRawMessage() {
710 if (rawMessageBuilder_ == null) {
711 rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
714 rawMessageBuilder_.clear();
716 bitField0_ = (bitField0_ & ~0x00000002);
720 * <code>optional .openxc.RawMessage raw_message = 2;</code>
722 public com.openxc.BinaryMessages.RawMessage.Builder getRawMessageBuilder() {
723 bitField0_ |= 0x00000002;
725 return getRawMessageFieldBuilder().getBuilder();
728 * <code>optional .openxc.RawMessage raw_message = 2;</code>
730 public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
731 if (rawMessageBuilder_ != null) {
732 return rawMessageBuilder_.getMessageOrBuilder();
738 * <code>optional .openxc.RawMessage raw_message = 2;</code>
740 private com.google.protobuf.SingleFieldBuilder<
741 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>
742 getRawMessageFieldBuilder() {
743 if (rawMessageBuilder_ == null) {
744 rawMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
745 com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>(
747 getParentForChildren(),
751 return rawMessageBuilder_;
754 // optional .openxc.TranslatedMessage translated_message = 3;
755 private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
756 private com.google.protobuf.SingleFieldBuilder<
757 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder> translatedMessageBuilder_;
759 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
761 public boolean hasTranslatedMessage() {
762 return ((bitField0_ & 0x00000004) == 0x00000004);
765 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
767 public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() {
768 if (translatedMessageBuilder_ == null) {
769 return translatedMessage_;
771 return translatedMessageBuilder_.getMessage();
775 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
777 public Builder setTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
778 if (translatedMessageBuilder_ == null) {
780 throw new NullPointerException();
782 translatedMessage_ = value;
785 translatedMessageBuilder_.setMessage(value);
787 bitField0_ |= 0x00000004;
791 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
793 public Builder setTranslatedMessage(
794 com.openxc.BinaryMessages.TranslatedMessage.Builder builderForValue) {
795 if (translatedMessageBuilder_ == null) {
796 translatedMessage_ = builderForValue.build();
799 translatedMessageBuilder_.setMessage(builderForValue.build());
801 bitField0_ |= 0x00000004;
805 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
807 public Builder mergeTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) {
808 if (translatedMessageBuilder_ == null) {
809 if (((bitField0_ & 0x00000004) == 0x00000004) &&
810 translatedMessage_ != com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) {
812 com.openxc.BinaryMessages.TranslatedMessage.newBuilder(translatedMessage_).mergeFrom(value).buildPartial();
814 translatedMessage_ = value;
818 translatedMessageBuilder_.mergeFrom(value);
820 bitField0_ |= 0x00000004;
824 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
826 public Builder clearTranslatedMessage() {
827 if (translatedMessageBuilder_ == null) {
828 translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
831 translatedMessageBuilder_.clear();
833 bitField0_ = (bitField0_ & ~0x00000004);
837 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
839 public com.openxc.BinaryMessages.TranslatedMessage.Builder getTranslatedMessageBuilder() {
840 bitField0_ |= 0x00000004;
842 return getTranslatedMessageFieldBuilder().getBuilder();
845 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
847 public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() {
848 if (translatedMessageBuilder_ != null) {
849 return translatedMessageBuilder_.getMessageOrBuilder();
851 return translatedMessage_;
855 * <code>optional .openxc.TranslatedMessage translated_message = 3;</code>
857 private com.google.protobuf.SingleFieldBuilder<
858 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>
859 getTranslatedMessageFieldBuilder() {
860 if (translatedMessageBuilder_ == null) {
861 translatedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
862 com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>(
864 getParentForChildren(),
866 translatedMessage_ = null;
868 return translatedMessageBuilder_;
871 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
875 defaultInstance = new VehicleMessage(true);
876 defaultInstance.initFields();
879 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
882 public interface RawMessageOrBuilder
883 extends com.google.protobuf.MessageOrBuilder {
885 // optional int32 bus = 1;
887 * <code>optional int32 bus = 1;</code>
891 * <code>optional int32 bus = 1;</code>
895 // optional uint32 message_id = 2;
897 * <code>optional uint32 message_id = 2;</code>
899 boolean hasMessageId();
901 * <code>optional uint32 message_id = 2;</code>
905 // optional uint64 data = 3;
907 * <code>optional uint64 data = 3;</code>
911 * <code>optional uint64 data = 3;</code>
916 * Protobuf type {@code openxc.RawMessage}
918 public static final class RawMessage extends
919 com.google.protobuf.GeneratedMessage
920 implements RawMessageOrBuilder {
921 // Use RawMessage.newBuilder() to construct.
922 private RawMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
924 this.unknownFields = builder.getUnknownFields();
926 private RawMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
928 private static final RawMessage defaultInstance;
929 public static RawMessage getDefaultInstance() {
930 return defaultInstance;
933 public RawMessage getDefaultInstanceForType() {
934 return defaultInstance;
937 private final com.google.protobuf.UnknownFieldSet unknownFields;
939 public final com.google.protobuf.UnknownFieldSet
941 return this.unknownFields;
944 com.google.protobuf.CodedInputStream input,
945 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
946 throws com.google.protobuf.InvalidProtocolBufferException {
948 int mutable_bitField0_ = 0;
949 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
950 com.google.protobuf.UnknownFieldSet.newBuilder();
952 boolean done = false;
954 int tag = input.readTag();
960 if (!parseUnknownField(input, unknownFields,
961 extensionRegistry, tag)) {
967 bitField0_ |= 0x00000001;
968 bus_ = input.readInt32();
972 bitField0_ |= 0x00000002;
973 messageId_ = input.readUInt32();
977 bitField0_ |= 0x00000004;
978 data_ = input.readUInt64();
983 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
984 throw e.setUnfinishedMessage(this);
985 } catch (java.io.IOException e) {
986 throw new com.google.protobuf.InvalidProtocolBufferException(
987 e.getMessage()).setUnfinishedMessage(this);
989 this.unknownFields = unknownFields.build();
990 makeExtensionsImmutable();
993 public static final com.google.protobuf.Descriptors.Descriptor
995 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
998 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
999 internalGetFieldAccessorTable() {
1000 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1001 .ensureFieldAccessorsInitialized(
1002 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1005 public static com.google.protobuf.Parser<RawMessage> PARSER =
1006 new com.google.protobuf.AbstractParser<RawMessage>() {
1007 public RawMessage parsePartialFrom(
1008 com.google.protobuf.CodedInputStream input,
1009 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1010 throws com.google.protobuf.InvalidProtocolBufferException {
1011 return new RawMessage(input, extensionRegistry);
1016 public com.google.protobuf.Parser<RawMessage> getParserForType() {
1020 private int bitField0_;
1021 // optional int32 bus = 1;
1022 public static final int BUS_FIELD_NUMBER = 1;
1025 * <code>optional int32 bus = 1;</code>
1027 public boolean hasBus() {
1028 return ((bitField0_ & 0x00000001) == 0x00000001);
1031 * <code>optional int32 bus = 1;</code>
1033 public int getBus() {
1037 // optional uint32 message_id = 2;
1038 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
1039 private int messageId_;
1041 * <code>optional uint32 message_id = 2;</code>
1043 public boolean hasMessageId() {
1044 return ((bitField0_ & 0x00000002) == 0x00000002);
1047 * <code>optional uint32 message_id = 2;</code>
1049 public int getMessageId() {
1053 // optional uint64 data = 3;
1054 public static final int DATA_FIELD_NUMBER = 3;
1057 * <code>optional uint64 data = 3;</code>
1059 public boolean hasData() {
1060 return ((bitField0_ & 0x00000004) == 0x00000004);
1063 * <code>optional uint64 data = 3;</code>
1065 public long getData() {
1069 private void initFields() {
1074 private byte memoizedIsInitialized = -1;
1075 public final boolean isInitialized() {
1076 byte isInitialized = memoizedIsInitialized;
1077 if (isInitialized != -1) return isInitialized == 1;
1079 memoizedIsInitialized = 1;
1083 public void writeTo(com.google.protobuf.CodedOutputStream output)
1084 throws java.io.IOException {
1085 getSerializedSize();
1086 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1087 output.writeInt32(1, bus_);
1089 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1090 output.writeUInt32(2, messageId_);
1092 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1093 output.writeUInt64(3, data_);
1095 getUnknownFields().writeTo(output);
1098 private int memoizedSerializedSize = -1;
1099 public int getSerializedSize() {
1100 int size = memoizedSerializedSize;
1101 if (size != -1) return size;
1104 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1105 size += com.google.protobuf.CodedOutputStream
1106 .computeInt32Size(1, bus_);
1108 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1109 size += com.google.protobuf.CodedOutputStream
1110 .computeUInt32Size(2, messageId_);
1112 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1113 size += com.google.protobuf.CodedOutputStream
1114 .computeUInt64Size(3, data_);
1116 size += getUnknownFields().getSerializedSize();
1117 memoizedSerializedSize = size;
1121 private static final long serialVersionUID = 0L;
1123 protected java.lang.Object writeReplace()
1124 throws java.io.ObjectStreamException {
1125 return super.writeReplace();
1128 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1129 com.google.protobuf.ByteString data)
1130 throws com.google.protobuf.InvalidProtocolBufferException {
1131 return PARSER.parseFrom(data);
1133 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1134 com.google.protobuf.ByteString data,
1135 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1136 throws com.google.protobuf.InvalidProtocolBufferException {
1137 return PARSER.parseFrom(data, extensionRegistry);
1139 public static com.openxc.BinaryMessages.RawMessage parseFrom(byte[] data)
1140 throws com.google.protobuf.InvalidProtocolBufferException {
1141 return PARSER.parseFrom(data);
1143 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1145 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1146 throws com.google.protobuf.InvalidProtocolBufferException {
1147 return PARSER.parseFrom(data, extensionRegistry);
1149 public static com.openxc.BinaryMessages.RawMessage parseFrom(java.io.InputStream input)
1150 throws java.io.IOException {
1151 return PARSER.parseFrom(input);
1153 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1154 java.io.InputStream input,
1155 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1156 throws java.io.IOException {
1157 return PARSER.parseFrom(input, extensionRegistry);
1159 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(java.io.InputStream input)
1160 throws java.io.IOException {
1161 return PARSER.parseDelimitedFrom(input);
1163 public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(
1164 java.io.InputStream input,
1165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1166 throws java.io.IOException {
1167 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1169 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1170 com.google.protobuf.CodedInputStream input)
1171 throws java.io.IOException {
1172 return PARSER.parseFrom(input);
1174 public static com.openxc.BinaryMessages.RawMessage parseFrom(
1175 com.google.protobuf.CodedInputStream input,
1176 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1177 throws java.io.IOException {
1178 return PARSER.parseFrom(input, extensionRegistry);
1181 public static Builder newBuilder() { return Builder.create(); }
1182 public Builder newBuilderForType() { return newBuilder(); }
1183 public static Builder newBuilder(com.openxc.BinaryMessages.RawMessage prototype) {
1184 return newBuilder().mergeFrom(prototype);
1186 public Builder toBuilder() { return newBuilder(this); }
1189 protected Builder newBuilderForType(
1190 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1191 Builder builder = new Builder(parent);
1195 * Protobuf type {@code openxc.RawMessage}
1197 public static final class Builder extends
1198 com.google.protobuf.GeneratedMessage.Builder<Builder>
1199 implements com.openxc.BinaryMessages.RawMessageOrBuilder {
1200 public static final com.google.protobuf.Descriptors.Descriptor
1202 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1205 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1206 internalGetFieldAccessorTable() {
1207 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
1208 .ensureFieldAccessorsInitialized(
1209 com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
1212 // Construct using com.openxc.BinaryMessages.RawMessage.newBuilder()
1214 maybeForceBuilderInitialization();
1218 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1220 maybeForceBuilderInitialization();
1222 private void maybeForceBuilderInitialization() {
1223 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1226 private static Builder create() {
1227 return new Builder();
1230 public Builder clear() {
1233 bitField0_ = (bitField0_ & ~0x00000001);
1235 bitField0_ = (bitField0_ & ~0x00000002);
1237 bitField0_ = (bitField0_ & ~0x00000004);
1241 public Builder clone() {
1242 return create().mergeFrom(buildPartial());
1245 public com.google.protobuf.Descriptors.Descriptor
1246 getDescriptorForType() {
1247 return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
1250 public com.openxc.BinaryMessages.RawMessage getDefaultInstanceForType() {
1251 return com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
1254 public com.openxc.BinaryMessages.RawMessage build() {
1255 com.openxc.BinaryMessages.RawMessage result = buildPartial();
1256 if (!result.isInitialized()) {
1257 throw newUninitializedMessageException(result);
1262 public com.openxc.BinaryMessages.RawMessage buildPartial() {
1263 com.openxc.BinaryMessages.RawMessage result = new com.openxc.BinaryMessages.RawMessage(this);
1264 int from_bitField0_ = bitField0_;
1265 int to_bitField0_ = 0;
1266 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1267 to_bitField0_ |= 0x00000001;
1270 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1271 to_bitField0_ |= 0x00000002;
1273 result.messageId_ = messageId_;
1274 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1275 to_bitField0_ |= 0x00000004;
1277 result.data_ = data_;
1278 result.bitField0_ = to_bitField0_;
1283 public Builder mergeFrom(com.google.protobuf.Message other) {
1284 if (other instanceof com.openxc.BinaryMessages.RawMessage) {
1285 return mergeFrom((com.openxc.BinaryMessages.RawMessage)other);
1287 super.mergeFrom(other);
1292 public Builder mergeFrom(com.openxc.BinaryMessages.RawMessage other) {
1293 if (other == com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) return this;
1294 if (other.hasBus()) {
1295 setBus(other.getBus());
1297 if (other.hasMessageId()) {
1298 setMessageId(other.getMessageId());
1300 if (other.hasData()) {
1301 setData(other.getData());
1303 this.mergeUnknownFields(other.getUnknownFields());
1307 public final boolean isInitialized() {
1311 public Builder mergeFrom(
1312 com.google.protobuf.CodedInputStream input,
1313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1314 throws java.io.IOException {
1315 com.openxc.BinaryMessages.RawMessage parsedMessage = null;
1317 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1318 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1319 parsedMessage = (com.openxc.BinaryMessages.RawMessage) e.getUnfinishedMessage();
1322 if (parsedMessage != null) {
1323 mergeFrom(parsedMessage);
1328 private int bitField0_;
1330 // optional int32 bus = 1;
1333 * <code>optional int32 bus = 1;</code>
1335 public boolean hasBus() {
1336 return ((bitField0_ & 0x00000001) == 0x00000001);
1339 * <code>optional int32 bus = 1;</code>
1341 public int getBus() {
1345 * <code>optional int32 bus = 1;</code>
1347 public Builder setBus(int value) {
1348 bitField0_ |= 0x00000001;
1354 * <code>optional int32 bus = 1;</code>
1356 public Builder clearBus() {
1357 bitField0_ = (bitField0_ & ~0x00000001);
1363 // optional uint32 message_id = 2;
1364 private int messageId_ ;
1366 * <code>optional uint32 message_id = 2;</code>
1368 public boolean hasMessageId() {
1369 return ((bitField0_ & 0x00000002) == 0x00000002);
1372 * <code>optional uint32 message_id = 2;</code>
1374 public int getMessageId() {
1378 * <code>optional uint32 message_id = 2;</code>
1380 public Builder setMessageId(int value) {
1381 bitField0_ |= 0x00000002;
1387 * <code>optional uint32 message_id = 2;</code>
1389 public Builder clearMessageId() {
1390 bitField0_ = (bitField0_ & ~0x00000002);
1396 // optional uint64 data = 3;
1397 private long data_ ;
1399 * <code>optional uint64 data = 3;</code>
1401 public boolean hasData() {
1402 return ((bitField0_ & 0x00000004) == 0x00000004);
1405 * <code>optional uint64 data = 3;</code>
1407 public long getData() {
1411 * <code>optional uint64 data = 3;</code>
1413 public Builder setData(long value) {
1414 bitField0_ |= 0x00000004;
1420 * <code>optional uint64 data = 3;</code>
1422 public Builder clearData() {
1423 bitField0_ = (bitField0_ & ~0x00000004);
1429 // @@protoc_insertion_point(builder_scope:openxc.RawMessage)
1433 defaultInstance = new RawMessage(true);
1434 defaultInstance.initFields();
1437 // @@protoc_insertion_point(class_scope:openxc.RawMessage)
1440 public interface DiagnosticMessageOrBuilder
1441 extends com.google.protobuf.MessageOrBuilder {
1443 // optional int32 bus = 1;
1445 * <code>optional int32 bus = 1;</code>
1449 * <code>optional int32 bus = 1;</code>
1453 // optional uint32 message_id = 2;
1455 * <code>optional uint32 message_id = 2;</code>
1457 boolean hasMessageId();
1459 * <code>optional uint32 message_id = 2;</code>
1463 // optional uint32 mode = 3;
1465 * <code>optional uint32 mode = 3;</code>
1469 * <code>optional uint32 mode = 3;</code>
1473 // optional uint32 pid = 4;
1475 * <code>optional uint32 pid = 4;</code>
1479 * <code>optional uint32 pid = 4;</code>
1483 // optional bool success = 5;
1485 * <code>optional bool success = 5;</code>
1487 boolean hasSuccess();
1489 * <code>optional bool success = 5;</code>
1491 boolean getSuccess();
1493 // optional uint32 negative_response_code = 6;
1495 * <code>optional uint32 negative_response_code = 6;</code>
1497 boolean hasNegativeResponseCode();
1499 * <code>optional uint32 negative_response_code = 6;</code>
1501 int getNegativeResponseCode();
1503 // optional uint64 payload = 7;
1505 * <code>optional uint64 payload = 7;</code>
1507 boolean hasPayload();
1509 * <code>optional uint64 payload = 7;</code>
1514 * Protobuf type {@code openxc.DiagnosticMessage}
1516 public static final class DiagnosticMessage extends
1517 com.google.protobuf.GeneratedMessage
1518 implements DiagnosticMessageOrBuilder {
1519 // Use DiagnosticMessage.newBuilder() to construct.
1520 private DiagnosticMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1522 this.unknownFields = builder.getUnknownFields();
1524 private DiagnosticMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1526 private static final DiagnosticMessage defaultInstance;
1527 public static DiagnosticMessage getDefaultInstance() {
1528 return defaultInstance;
1531 public DiagnosticMessage getDefaultInstanceForType() {
1532 return defaultInstance;
1535 private final com.google.protobuf.UnknownFieldSet unknownFields;
1537 public final com.google.protobuf.UnknownFieldSet
1538 getUnknownFields() {
1539 return this.unknownFields;
1541 private DiagnosticMessage(
1542 com.google.protobuf.CodedInputStream input,
1543 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1544 throws com.google.protobuf.InvalidProtocolBufferException {
1546 int mutable_bitField0_ = 0;
1547 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1548 com.google.protobuf.UnknownFieldSet.newBuilder();
1550 boolean done = false;
1552 int tag = input.readTag();
1558 if (!parseUnknownField(input, unknownFields,
1559 extensionRegistry, tag)) {
1565 bitField0_ |= 0x00000001;
1566 bus_ = input.readInt32();
1570 bitField0_ |= 0x00000002;
1571 messageId_ = input.readUInt32();
1575 bitField0_ |= 0x00000004;
1576 mode_ = input.readUInt32();
1580 bitField0_ |= 0x00000008;
1581 pid_ = input.readUInt32();
1585 bitField0_ |= 0x00000010;
1586 success_ = input.readBool();
1590 bitField0_ |= 0x00000020;
1591 negativeResponseCode_ = input.readUInt32();
1595 bitField0_ |= 0x00000040;
1596 payload_ = input.readUInt64();
1601 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1602 throw e.setUnfinishedMessage(this);
1603 } catch (java.io.IOException e) {
1604 throw new com.google.protobuf.InvalidProtocolBufferException(
1605 e.getMessage()).setUnfinishedMessage(this);
1607 this.unknownFields = unknownFields.build();
1608 makeExtensionsImmutable();
1611 public static final com.google.protobuf.Descriptors.Descriptor
1613 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticMessage_descriptor;
1616 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1617 internalGetFieldAccessorTable() {
1618 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticMessage_fieldAccessorTable
1619 .ensureFieldAccessorsInitialized(
1620 com.openxc.BinaryMessages.DiagnosticMessage.class, com.openxc.BinaryMessages.DiagnosticMessage.Builder.class);
1623 public static com.google.protobuf.Parser<DiagnosticMessage> PARSER =
1624 new com.google.protobuf.AbstractParser<DiagnosticMessage>() {
1625 public DiagnosticMessage parsePartialFrom(
1626 com.google.protobuf.CodedInputStream input,
1627 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1628 throws com.google.protobuf.InvalidProtocolBufferException {
1629 return new DiagnosticMessage(input, extensionRegistry);
1634 public com.google.protobuf.Parser<DiagnosticMessage> getParserForType() {
1638 private int bitField0_;
1639 // optional int32 bus = 1;
1640 public static final int BUS_FIELD_NUMBER = 1;
1643 * <code>optional int32 bus = 1;</code>
1645 public boolean hasBus() {
1646 return ((bitField0_ & 0x00000001) == 0x00000001);
1649 * <code>optional int32 bus = 1;</code>
1651 public int getBus() {
1655 // optional uint32 message_id = 2;
1656 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
1657 private int messageId_;
1659 * <code>optional uint32 message_id = 2;</code>
1661 public boolean hasMessageId() {
1662 return ((bitField0_ & 0x00000002) == 0x00000002);
1665 * <code>optional uint32 message_id = 2;</code>
1667 public int getMessageId() {
1671 // optional uint32 mode = 3;
1672 public static final int MODE_FIELD_NUMBER = 3;
1675 * <code>optional uint32 mode = 3;</code>
1677 public boolean hasMode() {
1678 return ((bitField0_ & 0x00000004) == 0x00000004);
1681 * <code>optional uint32 mode = 3;</code>
1683 public int getMode() {
1687 // optional uint32 pid = 4;
1688 public static final int PID_FIELD_NUMBER = 4;
1691 * <code>optional uint32 pid = 4;</code>
1693 public boolean hasPid() {
1694 return ((bitField0_ & 0x00000008) == 0x00000008);
1697 * <code>optional uint32 pid = 4;</code>
1699 public int getPid() {
1703 // optional bool success = 5;
1704 public static final int SUCCESS_FIELD_NUMBER = 5;
1705 private boolean success_;
1707 * <code>optional bool success = 5;</code>
1709 public boolean hasSuccess() {
1710 return ((bitField0_ & 0x00000010) == 0x00000010);
1713 * <code>optional bool success = 5;</code>
1715 public boolean getSuccess() {
1719 // optional uint32 negative_response_code = 6;
1720 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
1721 private int negativeResponseCode_;
1723 * <code>optional uint32 negative_response_code = 6;</code>
1725 public boolean hasNegativeResponseCode() {
1726 return ((bitField0_ & 0x00000020) == 0x00000020);
1729 * <code>optional uint32 negative_response_code = 6;</code>
1731 public int getNegativeResponseCode() {
1732 return negativeResponseCode_;
1735 // optional uint64 payload = 7;
1736 public static final int PAYLOAD_FIELD_NUMBER = 7;
1737 private long payload_;
1739 * <code>optional uint64 payload = 7;</code>
1741 public boolean hasPayload() {
1742 return ((bitField0_ & 0x00000040) == 0x00000040);
1745 * <code>optional uint64 payload = 7;</code>
1747 public long getPayload() {
1751 private void initFields() {
1757 negativeResponseCode_ = 0;
1760 private byte memoizedIsInitialized = -1;
1761 public final boolean isInitialized() {
1762 byte isInitialized = memoizedIsInitialized;
1763 if (isInitialized != -1) return isInitialized == 1;
1765 memoizedIsInitialized = 1;
1769 public void writeTo(com.google.protobuf.CodedOutputStream output)
1770 throws java.io.IOException {
1771 getSerializedSize();
1772 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1773 output.writeInt32(1, bus_);
1775 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1776 output.writeUInt32(2, messageId_);
1778 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1779 output.writeUInt32(3, mode_);
1781 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1782 output.writeUInt32(4, pid_);
1784 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1785 output.writeBool(5, success_);
1787 if (((bitField0_ & 0x00000020) == 0x00000020)) {
1788 output.writeUInt32(6, negativeResponseCode_);
1790 if (((bitField0_ & 0x00000040) == 0x00000040)) {
1791 output.writeUInt64(7, payload_);
1793 getUnknownFields().writeTo(output);
1796 private int memoizedSerializedSize = -1;
1797 public int getSerializedSize() {
1798 int size = memoizedSerializedSize;
1799 if (size != -1) return size;
1802 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1803 size += com.google.protobuf.CodedOutputStream
1804 .computeInt32Size(1, bus_);
1806 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1807 size += com.google.protobuf.CodedOutputStream
1808 .computeUInt32Size(2, messageId_);
1810 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1811 size += com.google.protobuf.CodedOutputStream
1812 .computeUInt32Size(3, mode_);
1814 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1815 size += com.google.protobuf.CodedOutputStream
1816 .computeUInt32Size(4, pid_);
1818 if (((bitField0_ & 0x00000010) == 0x00000010)) {
1819 size += com.google.protobuf.CodedOutputStream
1820 .computeBoolSize(5, success_);
1822 if (((bitField0_ & 0x00000020) == 0x00000020)) {
1823 size += com.google.protobuf.CodedOutputStream
1824 .computeUInt32Size(6, negativeResponseCode_);
1826 if (((bitField0_ & 0x00000040) == 0x00000040)) {
1827 size += com.google.protobuf.CodedOutputStream
1828 .computeUInt64Size(7, payload_);
1830 size += getUnknownFields().getSerializedSize();
1831 memoizedSerializedSize = size;
1835 private static final long serialVersionUID = 0L;
1837 protected java.lang.Object writeReplace()
1838 throws java.io.ObjectStreamException {
1839 return super.writeReplace();
1842 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1843 com.google.protobuf.ByteString data)
1844 throws com.google.protobuf.InvalidProtocolBufferException {
1845 return PARSER.parseFrom(data);
1847 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1848 com.google.protobuf.ByteString data,
1849 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1850 throws com.google.protobuf.InvalidProtocolBufferException {
1851 return PARSER.parseFrom(data, extensionRegistry);
1853 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(byte[] data)
1854 throws com.google.protobuf.InvalidProtocolBufferException {
1855 return PARSER.parseFrom(data);
1857 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1859 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1860 throws com.google.protobuf.InvalidProtocolBufferException {
1861 return PARSER.parseFrom(data, extensionRegistry);
1863 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(java.io.InputStream input)
1864 throws java.io.IOException {
1865 return PARSER.parseFrom(input);
1867 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1868 java.io.InputStream input,
1869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1870 throws java.io.IOException {
1871 return PARSER.parseFrom(input, extensionRegistry);
1873 public static com.openxc.BinaryMessages.DiagnosticMessage parseDelimitedFrom(java.io.InputStream input)
1874 throws java.io.IOException {
1875 return PARSER.parseDelimitedFrom(input);
1877 public static com.openxc.BinaryMessages.DiagnosticMessage parseDelimitedFrom(
1878 java.io.InputStream input,
1879 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1880 throws java.io.IOException {
1881 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1883 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1884 com.google.protobuf.CodedInputStream input)
1885 throws java.io.IOException {
1886 return PARSER.parseFrom(input);
1888 public static com.openxc.BinaryMessages.DiagnosticMessage parseFrom(
1889 com.google.protobuf.CodedInputStream input,
1890 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1891 throws java.io.IOException {
1892 return PARSER.parseFrom(input, extensionRegistry);
1895 public static Builder newBuilder() { return Builder.create(); }
1896 public Builder newBuilderForType() { return newBuilder(); }
1897 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticMessage prototype) {
1898 return newBuilder().mergeFrom(prototype);
1900 public Builder toBuilder() { return newBuilder(this); }
1903 protected Builder newBuilderForType(
1904 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1905 Builder builder = new Builder(parent);
1909 * Protobuf type {@code openxc.DiagnosticMessage}
1911 public static final class Builder extends
1912 com.google.protobuf.GeneratedMessage.Builder<Builder>
1913 implements com.openxc.BinaryMessages.DiagnosticMessageOrBuilder {
1914 public static final com.google.protobuf.Descriptors.Descriptor
1916 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticMessage_descriptor;
1919 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1920 internalGetFieldAccessorTable() {
1921 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticMessage_fieldAccessorTable
1922 .ensureFieldAccessorsInitialized(
1923 com.openxc.BinaryMessages.DiagnosticMessage.class, com.openxc.BinaryMessages.DiagnosticMessage.Builder.class);
1926 // Construct using com.openxc.BinaryMessages.DiagnosticMessage.newBuilder()
1928 maybeForceBuilderInitialization();
1932 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1934 maybeForceBuilderInitialization();
1936 private void maybeForceBuilderInitialization() {
1937 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1940 private static Builder create() {
1941 return new Builder();
1944 public Builder clear() {
1947 bitField0_ = (bitField0_ & ~0x00000001);
1949 bitField0_ = (bitField0_ & ~0x00000002);
1951 bitField0_ = (bitField0_ & ~0x00000004);
1953 bitField0_ = (bitField0_ & ~0x00000008);
1955 bitField0_ = (bitField0_ & ~0x00000010);
1956 negativeResponseCode_ = 0;
1957 bitField0_ = (bitField0_ & ~0x00000020);
1959 bitField0_ = (bitField0_ & ~0x00000040);
1963 public Builder clone() {
1964 return create().mergeFrom(buildPartial());
1967 public com.google.protobuf.Descriptors.Descriptor
1968 getDescriptorForType() {
1969 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticMessage_descriptor;
1972 public com.openxc.BinaryMessages.DiagnosticMessage getDefaultInstanceForType() {
1973 return com.openxc.BinaryMessages.DiagnosticMessage.getDefaultInstance();
1976 public com.openxc.BinaryMessages.DiagnosticMessage build() {
1977 com.openxc.BinaryMessages.DiagnosticMessage result = buildPartial();
1978 if (!result.isInitialized()) {
1979 throw newUninitializedMessageException(result);
1984 public com.openxc.BinaryMessages.DiagnosticMessage buildPartial() {
1985 com.openxc.BinaryMessages.DiagnosticMessage result = new com.openxc.BinaryMessages.DiagnosticMessage(this);
1986 int from_bitField0_ = bitField0_;
1987 int to_bitField0_ = 0;
1988 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1989 to_bitField0_ |= 0x00000001;
1992 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1993 to_bitField0_ |= 0x00000002;
1995 result.messageId_ = messageId_;
1996 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1997 to_bitField0_ |= 0x00000004;
1999 result.mode_ = mode_;
2000 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2001 to_bitField0_ |= 0x00000008;
2004 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2005 to_bitField0_ |= 0x00000010;
2007 result.success_ = success_;
2008 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2009 to_bitField0_ |= 0x00000020;
2011 result.negativeResponseCode_ = negativeResponseCode_;
2012 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
2013 to_bitField0_ |= 0x00000040;
2015 result.payload_ = payload_;
2016 result.bitField0_ = to_bitField0_;
2021 public Builder mergeFrom(com.google.protobuf.Message other) {
2022 if (other instanceof com.openxc.BinaryMessages.DiagnosticMessage) {
2023 return mergeFrom((com.openxc.BinaryMessages.DiagnosticMessage)other);
2025 super.mergeFrom(other);
2030 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticMessage other) {
2031 if (other == com.openxc.BinaryMessages.DiagnosticMessage.getDefaultInstance()) return this;
2032 if (other.hasBus()) {
2033 setBus(other.getBus());
2035 if (other.hasMessageId()) {
2036 setMessageId(other.getMessageId());
2038 if (other.hasMode()) {
2039 setMode(other.getMode());
2041 if (other.hasPid()) {
2042 setPid(other.getPid());
2044 if (other.hasSuccess()) {
2045 setSuccess(other.getSuccess());
2047 if (other.hasNegativeResponseCode()) {
2048 setNegativeResponseCode(other.getNegativeResponseCode());
2050 if (other.hasPayload()) {
2051 setPayload(other.getPayload());
2053 this.mergeUnknownFields(other.getUnknownFields());
2057 public final boolean isInitialized() {
2061 public Builder mergeFrom(
2062 com.google.protobuf.CodedInputStream input,
2063 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2064 throws java.io.IOException {
2065 com.openxc.BinaryMessages.DiagnosticMessage parsedMessage = null;
2067 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2068 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2069 parsedMessage = (com.openxc.BinaryMessages.DiagnosticMessage) e.getUnfinishedMessage();
2072 if (parsedMessage != null) {
2073 mergeFrom(parsedMessage);
2078 private int bitField0_;
2080 // optional int32 bus = 1;
2083 * <code>optional int32 bus = 1;</code>
2085 public boolean hasBus() {
2086 return ((bitField0_ & 0x00000001) == 0x00000001);
2089 * <code>optional int32 bus = 1;</code>
2091 public int getBus() {
2095 * <code>optional int32 bus = 1;</code>
2097 public Builder setBus(int value) {
2098 bitField0_ |= 0x00000001;
2104 * <code>optional int32 bus = 1;</code>
2106 public Builder clearBus() {
2107 bitField0_ = (bitField0_ & ~0x00000001);
2113 // optional uint32 message_id = 2;
2114 private int messageId_ ;
2116 * <code>optional uint32 message_id = 2;</code>
2118 public boolean hasMessageId() {
2119 return ((bitField0_ & 0x00000002) == 0x00000002);
2122 * <code>optional uint32 message_id = 2;</code>
2124 public int getMessageId() {
2128 * <code>optional uint32 message_id = 2;</code>
2130 public Builder setMessageId(int value) {
2131 bitField0_ |= 0x00000002;
2137 * <code>optional uint32 message_id = 2;</code>
2139 public Builder clearMessageId() {
2140 bitField0_ = (bitField0_ & ~0x00000002);
2146 // optional uint32 mode = 3;
2149 * <code>optional uint32 mode = 3;</code>
2151 public boolean hasMode() {
2152 return ((bitField0_ & 0x00000004) == 0x00000004);
2155 * <code>optional uint32 mode = 3;</code>
2157 public int getMode() {
2161 * <code>optional uint32 mode = 3;</code>
2163 public Builder setMode(int value) {
2164 bitField0_ |= 0x00000004;
2170 * <code>optional uint32 mode = 3;</code>
2172 public Builder clearMode() {
2173 bitField0_ = (bitField0_ & ~0x00000004);
2179 // optional uint32 pid = 4;
2182 * <code>optional uint32 pid = 4;</code>
2184 public boolean hasPid() {
2185 return ((bitField0_ & 0x00000008) == 0x00000008);
2188 * <code>optional uint32 pid = 4;</code>
2190 public int getPid() {
2194 * <code>optional uint32 pid = 4;</code>
2196 public Builder setPid(int value) {
2197 bitField0_ |= 0x00000008;
2203 * <code>optional uint32 pid = 4;</code>
2205 public Builder clearPid() {
2206 bitField0_ = (bitField0_ & ~0x00000008);
2212 // optional bool success = 5;
2213 private boolean success_ ;
2215 * <code>optional bool success = 5;</code>
2217 public boolean hasSuccess() {
2218 return ((bitField0_ & 0x00000010) == 0x00000010);
2221 * <code>optional bool success = 5;</code>
2223 public boolean getSuccess() {
2227 * <code>optional bool success = 5;</code>
2229 public Builder setSuccess(boolean value) {
2230 bitField0_ |= 0x00000010;
2236 * <code>optional bool success = 5;</code>
2238 public Builder clearSuccess() {
2239 bitField0_ = (bitField0_ & ~0x00000010);
2245 // optional uint32 negative_response_code = 6;
2246 private int negativeResponseCode_ ;
2248 * <code>optional uint32 negative_response_code = 6;</code>
2250 public boolean hasNegativeResponseCode() {
2251 return ((bitField0_ & 0x00000020) == 0x00000020);
2254 * <code>optional uint32 negative_response_code = 6;</code>
2256 public int getNegativeResponseCode() {
2257 return negativeResponseCode_;
2260 * <code>optional uint32 negative_response_code = 6;</code>
2262 public Builder setNegativeResponseCode(int value) {
2263 bitField0_ |= 0x00000020;
2264 negativeResponseCode_ = value;
2269 * <code>optional uint32 negative_response_code = 6;</code>
2271 public Builder clearNegativeResponseCode() {
2272 bitField0_ = (bitField0_ & ~0x00000020);
2273 negativeResponseCode_ = 0;
2278 // optional uint64 payload = 7;
2279 private long payload_ ;
2281 * <code>optional uint64 payload = 7;</code>
2283 public boolean hasPayload() {
2284 return ((bitField0_ & 0x00000040) == 0x00000040);
2287 * <code>optional uint64 payload = 7;</code>
2289 public long getPayload() {
2293 * <code>optional uint64 payload = 7;</code>
2295 public Builder setPayload(long value) {
2296 bitField0_ |= 0x00000040;
2302 * <code>optional uint64 payload = 7;</code>
2304 public Builder clearPayload() {
2305 bitField0_ = (bitField0_ & ~0x00000040);
2311 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticMessage)
2315 defaultInstance = new DiagnosticMessage(true);
2316 defaultInstance.initFields();
2319 // @@protoc_insertion_point(class_scope:openxc.DiagnosticMessage)
2322 public interface TranslatedMessageOrBuilder
2323 extends com.google.protobuf.MessageOrBuilder {
2325 // optional .openxc.TranslatedMessage.Type type = 1;
2327 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
2331 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
2333 com.openxc.BinaryMessages.TranslatedMessage.Type getType();
2335 // optional string name = 2;
2337 * <code>optional string name = 2;</code>
2341 * <code>optional string name = 2;</code>
2343 java.lang.String getName();
2345 * <code>optional string name = 2;</code>
2347 com.google.protobuf.ByteString
2350 // optional string string_value = 3;
2352 * <code>optional string string_value = 3;</code>
2354 boolean hasStringValue();
2356 * <code>optional string string_value = 3;</code>
2358 java.lang.String getStringValue();
2360 * <code>optional string string_value = 3;</code>
2362 com.google.protobuf.ByteString
2363 getStringValueBytes();
2365 // optional double numeric_value = 4;
2367 * <code>optional double numeric_value = 4;</code>
2369 boolean hasNumericValue();
2371 * <code>optional double numeric_value = 4;</code>
2373 double getNumericValue();
2375 // optional bool boolean_value = 5;
2377 * <code>optional bool boolean_value = 5;</code>
2379 boolean hasBooleanValue();
2381 * <code>optional bool boolean_value = 5;</code>
2383 boolean getBooleanValue();
2385 // optional string string_event = 6;
2387 * <code>optional string string_event = 6;</code>
2389 boolean hasStringEvent();
2391 * <code>optional string string_event = 6;</code>
2393 java.lang.String getStringEvent();
2395 * <code>optional string string_event = 6;</code>
2397 com.google.protobuf.ByteString
2398 getStringEventBytes();
2400 // optional double numeric_event = 7;
2402 * <code>optional double numeric_event = 7;</code>
2404 boolean hasNumericEvent();
2406 * <code>optional double numeric_event = 7;</code>
2408 double getNumericEvent();
2410 // optional bool boolean_event = 8;
2412 * <code>optional bool boolean_event = 8;</code>
2414 boolean hasBooleanEvent();
2416 * <code>optional bool boolean_event = 8;</code>
2418 boolean getBooleanEvent();
2421 * Protobuf type {@code openxc.TranslatedMessage}
2423 public static final class TranslatedMessage extends
2424 com.google.protobuf.GeneratedMessage
2425 implements TranslatedMessageOrBuilder {
2426 // Use TranslatedMessage.newBuilder() to construct.
2427 private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2429 this.unknownFields = builder.getUnknownFields();
2431 private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2433 private static final TranslatedMessage defaultInstance;
2434 public static TranslatedMessage getDefaultInstance() {
2435 return defaultInstance;
2438 public TranslatedMessage getDefaultInstanceForType() {
2439 return defaultInstance;
2442 private final com.google.protobuf.UnknownFieldSet unknownFields;
2444 public final com.google.protobuf.UnknownFieldSet
2445 getUnknownFields() {
2446 return this.unknownFields;
2448 private TranslatedMessage(
2449 com.google.protobuf.CodedInputStream input,
2450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2451 throws com.google.protobuf.InvalidProtocolBufferException {
2453 int mutable_bitField0_ = 0;
2454 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2455 com.google.protobuf.UnknownFieldSet.newBuilder();
2457 boolean done = false;
2459 int tag = input.readTag();
2465 if (!parseUnknownField(input, unknownFields,
2466 extensionRegistry, tag)) {
2472 int rawValue = input.readEnum();
2473 com.openxc.BinaryMessages.TranslatedMessage.Type value = com.openxc.BinaryMessages.TranslatedMessage.Type.valueOf(rawValue);
2474 if (value == null) {
2475 unknownFields.mergeVarintField(1, rawValue);
2477 bitField0_ |= 0x00000001;
2483 bitField0_ |= 0x00000002;
2484 name_ = input.readBytes();
2488 bitField0_ |= 0x00000004;
2489 stringValue_ = input.readBytes();
2493 bitField0_ |= 0x00000008;
2494 numericValue_ = input.readDouble();
2498 bitField0_ |= 0x00000010;
2499 booleanValue_ = input.readBool();
2503 bitField0_ |= 0x00000020;
2504 stringEvent_ = input.readBytes();
2508 bitField0_ |= 0x00000040;
2509 numericEvent_ = input.readDouble();
2513 bitField0_ |= 0x00000080;
2514 booleanEvent_ = input.readBool();
2519 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2520 throw e.setUnfinishedMessage(this);
2521 } catch (java.io.IOException e) {
2522 throw new com.google.protobuf.InvalidProtocolBufferException(
2523 e.getMessage()).setUnfinishedMessage(this);
2525 this.unknownFields = unknownFields.build();
2526 makeExtensionsImmutable();
2529 public static final com.google.protobuf.Descriptors.Descriptor
2531 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
2534 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2535 internalGetFieldAccessorTable() {
2536 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
2537 .ensureFieldAccessorsInitialized(
2538 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
2541 public static com.google.protobuf.Parser<TranslatedMessage> PARSER =
2542 new com.google.protobuf.AbstractParser<TranslatedMessage>() {
2543 public TranslatedMessage parsePartialFrom(
2544 com.google.protobuf.CodedInputStream input,
2545 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2546 throws com.google.protobuf.InvalidProtocolBufferException {
2547 return new TranslatedMessage(input, extensionRegistry);
2552 public com.google.protobuf.Parser<TranslatedMessage> getParserForType() {
2557 * Protobuf enum {@code openxc.TranslatedMessage.Type}
2560 implements com.google.protobuf.ProtocolMessageEnum {
2562 * <code>STRING = 1;</code>
2566 * <code>NUM = 2;</code>
2570 * <code>BOOL = 3;</code>
2574 * <code>EVENTED_STRING = 4;</code>
2576 EVENTED_STRING(3, 4),
2578 * <code>EVENTED_NUM = 5;</code>
2582 * <code>EVENTED_BOOL = 6;</code>
2588 * <code>STRING = 1;</code>
2590 public static final int STRING_VALUE = 1;
2592 * <code>NUM = 2;</code>
2594 public static final int NUM_VALUE = 2;
2596 * <code>BOOL = 3;</code>
2598 public static final int BOOL_VALUE = 3;
2600 * <code>EVENTED_STRING = 4;</code>
2602 public static final int EVENTED_STRING_VALUE = 4;
2604 * <code>EVENTED_NUM = 5;</code>
2606 public static final int EVENTED_NUM_VALUE = 5;
2608 * <code>EVENTED_BOOL = 6;</code>
2610 public static final int EVENTED_BOOL_VALUE = 6;
2613 public final int getNumber() { return value; }
2615 public static Type valueOf(int value) {
2617 case 1: return STRING;
2619 case 3: return BOOL;
2620 case 4: return EVENTED_STRING;
2621 case 5: return EVENTED_NUM;
2622 case 6: return EVENTED_BOOL;
2623 default: return null;
2627 public static com.google.protobuf.Internal.EnumLiteMap<Type>
2628 internalGetValueMap() {
2629 return internalValueMap;
2631 private static com.google.protobuf.Internal.EnumLiteMap<Type>
2633 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
2634 public Type findValueByNumber(int number) {
2635 return Type.valueOf(number);
2639 public final com.google.protobuf.Descriptors.EnumValueDescriptor
2640 getValueDescriptor() {
2641 return getDescriptor().getValues().get(index);
2643 public final com.google.protobuf.Descriptors.EnumDescriptor
2644 getDescriptorForType() {
2645 return getDescriptor();
2647 public static final com.google.protobuf.Descriptors.EnumDescriptor
2649 return com.openxc.BinaryMessages.TranslatedMessage.getDescriptor().getEnumTypes().get(0);
2652 private static final Type[] VALUES = values();
2654 public static Type valueOf(
2655 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
2656 if (desc.getType() != getDescriptor()) {
2657 throw new java.lang.IllegalArgumentException(
2658 "EnumValueDescriptor is not for this type.");
2660 return VALUES[desc.getIndex()];
2663 private final int index;
2664 private final int value;
2666 private Type(int index, int value) {
2671 // @@protoc_insertion_point(enum_scope:openxc.TranslatedMessage.Type)
2674 private int bitField0_;
2675 // optional .openxc.TranslatedMessage.Type type = 1;
2676 public static final int TYPE_FIELD_NUMBER = 1;
2677 private com.openxc.BinaryMessages.TranslatedMessage.Type type_;
2679 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
2681 public boolean hasType() {
2682 return ((bitField0_ & 0x00000001) == 0x00000001);
2685 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
2687 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
2691 // optional string name = 2;
2692 public static final int NAME_FIELD_NUMBER = 2;
2693 private java.lang.Object name_;
2695 * <code>optional string name = 2;</code>
2697 public boolean hasName() {
2698 return ((bitField0_ & 0x00000002) == 0x00000002);
2701 * <code>optional string name = 2;</code>
2703 public java.lang.String getName() {
2704 java.lang.Object ref = name_;
2705 if (ref instanceof java.lang.String) {
2706 return (java.lang.String) ref;
2708 com.google.protobuf.ByteString bs =
2709 (com.google.protobuf.ByteString) ref;
2710 java.lang.String s = bs.toStringUtf8();
2711 if (bs.isValidUtf8()) {
2718 * <code>optional string name = 2;</code>
2720 public com.google.protobuf.ByteString
2722 java.lang.Object ref = name_;
2723 if (ref instanceof java.lang.String) {
2724 com.google.protobuf.ByteString b =
2725 com.google.protobuf.ByteString.copyFromUtf8(
2726 (java.lang.String) ref);
2730 return (com.google.protobuf.ByteString) ref;
2734 // optional string string_value = 3;
2735 public static final int STRING_VALUE_FIELD_NUMBER = 3;
2736 private java.lang.Object stringValue_;
2738 * <code>optional string string_value = 3;</code>
2740 public boolean hasStringValue() {
2741 return ((bitField0_ & 0x00000004) == 0x00000004);
2744 * <code>optional string string_value = 3;</code>
2746 public java.lang.String getStringValue() {
2747 java.lang.Object ref = stringValue_;
2748 if (ref instanceof java.lang.String) {
2749 return (java.lang.String) ref;
2751 com.google.protobuf.ByteString bs =
2752 (com.google.protobuf.ByteString) ref;
2753 java.lang.String s = bs.toStringUtf8();
2754 if (bs.isValidUtf8()) {
2761 * <code>optional string string_value = 3;</code>
2763 public com.google.protobuf.ByteString
2764 getStringValueBytes() {
2765 java.lang.Object ref = stringValue_;
2766 if (ref instanceof java.lang.String) {
2767 com.google.protobuf.ByteString b =
2768 com.google.protobuf.ByteString.copyFromUtf8(
2769 (java.lang.String) ref);
2773 return (com.google.protobuf.ByteString) ref;
2777 // optional double numeric_value = 4;
2778 public static final int NUMERIC_VALUE_FIELD_NUMBER = 4;
2779 private double numericValue_;
2781 * <code>optional double numeric_value = 4;</code>
2783 public boolean hasNumericValue() {
2784 return ((bitField0_ & 0x00000008) == 0x00000008);
2787 * <code>optional double numeric_value = 4;</code>
2789 public double getNumericValue() {
2790 return numericValue_;
2793 // optional bool boolean_value = 5;
2794 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 5;
2795 private boolean booleanValue_;
2797 * <code>optional bool boolean_value = 5;</code>
2799 public boolean hasBooleanValue() {
2800 return ((bitField0_ & 0x00000010) == 0x00000010);
2803 * <code>optional bool boolean_value = 5;</code>
2805 public boolean getBooleanValue() {
2806 return booleanValue_;
2809 // optional string string_event = 6;
2810 public static final int STRING_EVENT_FIELD_NUMBER = 6;
2811 private java.lang.Object stringEvent_;
2813 * <code>optional string string_event = 6;</code>
2815 public boolean hasStringEvent() {
2816 return ((bitField0_ & 0x00000020) == 0x00000020);
2819 * <code>optional string string_event = 6;</code>
2821 public java.lang.String getStringEvent() {
2822 java.lang.Object ref = stringEvent_;
2823 if (ref instanceof java.lang.String) {
2824 return (java.lang.String) ref;
2826 com.google.protobuf.ByteString bs =
2827 (com.google.protobuf.ByteString) ref;
2828 java.lang.String s = bs.toStringUtf8();
2829 if (bs.isValidUtf8()) {
2836 * <code>optional string string_event = 6;</code>
2838 public com.google.protobuf.ByteString
2839 getStringEventBytes() {
2840 java.lang.Object ref = stringEvent_;
2841 if (ref instanceof java.lang.String) {
2842 com.google.protobuf.ByteString b =
2843 com.google.protobuf.ByteString.copyFromUtf8(
2844 (java.lang.String) ref);
2848 return (com.google.protobuf.ByteString) ref;
2852 // optional double numeric_event = 7;
2853 public static final int NUMERIC_EVENT_FIELD_NUMBER = 7;
2854 private double numericEvent_;
2856 * <code>optional double numeric_event = 7;</code>
2858 public boolean hasNumericEvent() {
2859 return ((bitField0_ & 0x00000040) == 0x00000040);
2862 * <code>optional double numeric_event = 7;</code>
2864 public double getNumericEvent() {
2865 return numericEvent_;
2868 // optional bool boolean_event = 8;
2869 public static final int BOOLEAN_EVENT_FIELD_NUMBER = 8;
2870 private boolean booleanEvent_;
2872 * <code>optional bool boolean_event = 8;</code>
2874 public boolean hasBooleanEvent() {
2875 return ((bitField0_ & 0x00000080) == 0x00000080);
2878 * <code>optional bool boolean_event = 8;</code>
2880 public boolean getBooleanEvent() {
2881 return booleanEvent_;
2884 private void initFields() {
2885 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
2889 booleanValue_ = false;
2892 booleanEvent_ = false;
2894 private byte memoizedIsInitialized = -1;
2895 public final boolean isInitialized() {
2896 byte isInitialized = memoizedIsInitialized;
2897 if (isInitialized != -1) return isInitialized == 1;
2899 memoizedIsInitialized = 1;
2903 public void writeTo(com.google.protobuf.CodedOutputStream output)
2904 throws java.io.IOException {
2905 getSerializedSize();
2906 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2907 output.writeEnum(1, type_.getNumber());
2909 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2910 output.writeBytes(2, getNameBytes());
2912 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2913 output.writeBytes(3, getStringValueBytes());
2915 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2916 output.writeDouble(4, numericValue_);
2918 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2919 output.writeBool(5, booleanValue_);
2921 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2922 output.writeBytes(6, getStringEventBytes());
2924 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2925 output.writeDouble(7, numericEvent_);
2927 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2928 output.writeBool(8, booleanEvent_);
2930 getUnknownFields().writeTo(output);
2933 private int memoizedSerializedSize = -1;
2934 public int getSerializedSize() {
2935 int size = memoizedSerializedSize;
2936 if (size != -1) return size;
2939 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2940 size += com.google.protobuf.CodedOutputStream
2941 .computeEnumSize(1, type_.getNumber());
2943 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2944 size += com.google.protobuf.CodedOutputStream
2945 .computeBytesSize(2, getNameBytes());
2947 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2948 size += com.google.protobuf.CodedOutputStream
2949 .computeBytesSize(3, getStringValueBytes());
2951 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2952 size += com.google.protobuf.CodedOutputStream
2953 .computeDoubleSize(4, numericValue_);
2955 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2956 size += com.google.protobuf.CodedOutputStream
2957 .computeBoolSize(5, booleanValue_);
2959 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2960 size += com.google.protobuf.CodedOutputStream
2961 .computeBytesSize(6, getStringEventBytes());
2963 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2964 size += com.google.protobuf.CodedOutputStream
2965 .computeDoubleSize(7, numericEvent_);
2967 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2968 size += com.google.protobuf.CodedOutputStream
2969 .computeBoolSize(8, booleanEvent_);
2971 size += getUnknownFields().getSerializedSize();
2972 memoizedSerializedSize = size;
2976 private static final long serialVersionUID = 0L;
2978 protected java.lang.Object writeReplace()
2979 throws java.io.ObjectStreamException {
2980 return super.writeReplace();
2983 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
2984 com.google.protobuf.ByteString data)
2985 throws com.google.protobuf.InvalidProtocolBufferException {
2986 return PARSER.parseFrom(data);
2988 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
2989 com.google.protobuf.ByteString data,
2990 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2991 throws com.google.protobuf.InvalidProtocolBufferException {
2992 return PARSER.parseFrom(data, extensionRegistry);
2994 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data)
2995 throws com.google.protobuf.InvalidProtocolBufferException {
2996 return PARSER.parseFrom(data);
2998 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
3000 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3001 throws com.google.protobuf.InvalidProtocolBufferException {
3002 return PARSER.parseFrom(data, extensionRegistry);
3004 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input)
3005 throws java.io.IOException {
3006 return PARSER.parseFrom(input);
3008 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
3009 java.io.InputStream input,
3010 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3011 throws java.io.IOException {
3012 return PARSER.parseFrom(input, extensionRegistry);
3014 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input)
3015 throws java.io.IOException {
3016 return PARSER.parseDelimitedFrom(input);
3018 public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(
3019 java.io.InputStream input,
3020 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3021 throws java.io.IOException {
3022 return PARSER.parseDelimitedFrom(input, extensionRegistry);
3024 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
3025 com.google.protobuf.CodedInputStream input)
3026 throws java.io.IOException {
3027 return PARSER.parseFrom(input);
3029 public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(
3030 com.google.protobuf.CodedInputStream input,
3031 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3032 throws java.io.IOException {
3033 return PARSER.parseFrom(input, extensionRegistry);
3036 public static Builder newBuilder() { return Builder.create(); }
3037 public Builder newBuilderForType() { return newBuilder(); }
3038 public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) {
3039 return newBuilder().mergeFrom(prototype);
3041 public Builder toBuilder() { return newBuilder(this); }
3044 protected Builder newBuilderForType(
3045 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3046 Builder builder = new Builder(parent);
3050 * Protobuf type {@code openxc.TranslatedMessage}
3052 public static final class Builder extends
3053 com.google.protobuf.GeneratedMessage.Builder<Builder>
3054 implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder {
3055 public static final com.google.protobuf.Descriptors.Descriptor
3057 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
3060 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3061 internalGetFieldAccessorTable() {
3062 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable
3063 .ensureFieldAccessorsInitialized(
3064 com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class);
3067 // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder()
3069 maybeForceBuilderInitialization();
3073 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3075 maybeForceBuilderInitialization();
3077 private void maybeForceBuilderInitialization() {
3078 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3081 private static Builder create() {
3082 return new Builder();
3085 public Builder clear() {
3087 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
3088 bitField0_ = (bitField0_ & ~0x00000001);
3090 bitField0_ = (bitField0_ & ~0x00000002);
3092 bitField0_ = (bitField0_ & ~0x00000004);
3094 bitField0_ = (bitField0_ & ~0x00000008);
3095 booleanValue_ = false;
3096 bitField0_ = (bitField0_ & ~0x00000010);
3098 bitField0_ = (bitField0_ & ~0x00000020);
3100 bitField0_ = (bitField0_ & ~0x00000040);
3101 booleanEvent_ = false;
3102 bitField0_ = (bitField0_ & ~0x00000080);
3106 public Builder clone() {
3107 return create().mergeFrom(buildPartial());
3110 public com.google.protobuf.Descriptors.Descriptor
3111 getDescriptorForType() {
3112 return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor;
3115 public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() {
3116 return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance();
3119 public com.openxc.BinaryMessages.TranslatedMessage build() {
3120 com.openxc.BinaryMessages.TranslatedMessage result = buildPartial();
3121 if (!result.isInitialized()) {
3122 throw newUninitializedMessageException(result);
3127 public com.openxc.BinaryMessages.TranslatedMessage buildPartial() {
3128 com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this);
3129 int from_bitField0_ = bitField0_;
3130 int to_bitField0_ = 0;
3131 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3132 to_bitField0_ |= 0x00000001;
3134 result.type_ = type_;
3135 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3136 to_bitField0_ |= 0x00000002;
3138 result.name_ = name_;
3139 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
3140 to_bitField0_ |= 0x00000004;
3142 result.stringValue_ = stringValue_;
3143 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
3144 to_bitField0_ |= 0x00000008;
3146 result.numericValue_ = numericValue_;
3147 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
3148 to_bitField0_ |= 0x00000010;
3150 result.booleanValue_ = booleanValue_;
3151 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
3152 to_bitField0_ |= 0x00000020;
3154 result.stringEvent_ = stringEvent_;
3155 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
3156 to_bitField0_ |= 0x00000040;
3158 result.numericEvent_ = numericEvent_;
3159 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
3160 to_bitField0_ |= 0x00000080;
3162 result.booleanEvent_ = booleanEvent_;
3163 result.bitField0_ = to_bitField0_;
3168 public Builder mergeFrom(com.google.protobuf.Message other) {
3169 if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) {
3170 return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other);
3172 super.mergeFrom(other);
3177 public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) {
3178 if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this;
3179 if (other.hasType()) {
3180 setType(other.getType());
3182 if (other.hasName()) {
3183 bitField0_ |= 0x00000002;
3184 name_ = other.name_;
3187 if (other.hasStringValue()) {
3188 bitField0_ |= 0x00000004;
3189 stringValue_ = other.stringValue_;
3192 if (other.hasNumericValue()) {
3193 setNumericValue(other.getNumericValue());
3195 if (other.hasBooleanValue()) {
3196 setBooleanValue(other.getBooleanValue());
3198 if (other.hasStringEvent()) {
3199 bitField0_ |= 0x00000020;
3200 stringEvent_ = other.stringEvent_;
3203 if (other.hasNumericEvent()) {
3204 setNumericEvent(other.getNumericEvent());
3206 if (other.hasBooleanEvent()) {
3207 setBooleanEvent(other.getBooleanEvent());
3209 this.mergeUnknownFields(other.getUnknownFields());
3213 public final boolean isInitialized() {
3217 public Builder mergeFrom(
3218 com.google.protobuf.CodedInputStream input,
3219 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3220 throws java.io.IOException {
3221 com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null;
3223 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3224 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3225 parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage();
3228 if (parsedMessage != null) {
3229 mergeFrom(parsedMessage);
3234 private int bitField0_;
3236 // optional .openxc.TranslatedMessage.Type type = 1;
3237 private com.openxc.BinaryMessages.TranslatedMessage.Type type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
3239 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
3241 public boolean hasType() {
3242 return ((bitField0_ & 0x00000001) == 0x00000001);
3245 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
3247 public com.openxc.BinaryMessages.TranslatedMessage.Type getType() {
3251 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
3253 public Builder setType(com.openxc.BinaryMessages.TranslatedMessage.Type value) {
3254 if (value == null) {
3255 throw new NullPointerException();
3257 bitField0_ |= 0x00000001;
3263 * <code>optional .openxc.TranslatedMessage.Type type = 1;</code>
3265 public Builder clearType() {
3266 bitField0_ = (bitField0_ & ~0x00000001);
3267 type_ = com.openxc.BinaryMessages.TranslatedMessage.Type.STRING;
3272 // optional string name = 2;
3273 private java.lang.Object name_ = "";
3275 * <code>optional string name = 2;</code>
3277 public boolean hasName() {
3278 return ((bitField0_ & 0x00000002) == 0x00000002);
3281 * <code>optional string name = 2;</code>
3283 public java.lang.String getName() {
3284 java.lang.Object ref = name_;
3285 if (!(ref instanceof java.lang.String)) {
3286 java.lang.String s = ((com.google.protobuf.ByteString) ref)
3291 return (java.lang.String) ref;
3295 * <code>optional string name = 2;</code>
3297 public com.google.protobuf.ByteString
3299 java.lang.Object ref = name_;
3300 if (ref instanceof String) {
3301 com.google.protobuf.ByteString b =
3302 com.google.protobuf.ByteString.copyFromUtf8(
3303 (java.lang.String) ref);
3307 return (com.google.protobuf.ByteString) ref;
3311 * <code>optional string name = 2;</code>
3313 public Builder setName(
3314 java.lang.String value) {
3315 if (value == null) {
3316 throw new NullPointerException();
3318 bitField0_ |= 0x00000002;
3324 * <code>optional string name = 2;</code>
3326 public Builder clearName() {
3327 bitField0_ = (bitField0_ & ~0x00000002);
3328 name_ = getDefaultInstance().getName();
3333 * <code>optional string name = 2;</code>
3335 public Builder setNameBytes(
3336 com.google.protobuf.ByteString value) {
3337 if (value == null) {
3338 throw new NullPointerException();
3340 bitField0_ |= 0x00000002;
3346 // optional string string_value = 3;
3347 private java.lang.Object stringValue_ = "";
3349 * <code>optional string string_value = 3;</code>
3351 public boolean hasStringValue() {
3352 return ((bitField0_ & 0x00000004) == 0x00000004);
3355 * <code>optional string string_value = 3;</code>
3357 public java.lang.String getStringValue() {
3358 java.lang.Object ref = stringValue_;
3359 if (!(ref instanceof java.lang.String)) {
3360 java.lang.String s = ((com.google.protobuf.ByteString) ref)
3365 return (java.lang.String) ref;
3369 * <code>optional string string_value = 3;</code>
3371 public com.google.protobuf.ByteString
3372 getStringValueBytes() {
3373 java.lang.Object ref = stringValue_;
3374 if (ref instanceof String) {
3375 com.google.protobuf.ByteString b =
3376 com.google.protobuf.ByteString.copyFromUtf8(
3377 (java.lang.String) ref);
3381 return (com.google.protobuf.ByteString) ref;
3385 * <code>optional string string_value = 3;</code>
3387 public Builder setStringValue(
3388 java.lang.String value) {
3389 if (value == null) {
3390 throw new NullPointerException();
3392 bitField0_ |= 0x00000004;
3393 stringValue_ = value;
3398 * <code>optional string string_value = 3;</code>
3400 public Builder clearStringValue() {
3401 bitField0_ = (bitField0_ & ~0x00000004);
3402 stringValue_ = getDefaultInstance().getStringValue();
3407 * <code>optional string string_value = 3;</code>
3409 public Builder setStringValueBytes(
3410 com.google.protobuf.ByteString value) {
3411 if (value == null) {
3412 throw new NullPointerException();
3414 bitField0_ |= 0x00000004;
3415 stringValue_ = value;
3420 // optional double numeric_value = 4;
3421 private double numericValue_ ;
3423 * <code>optional double numeric_value = 4;</code>
3425 public boolean hasNumericValue() {
3426 return ((bitField0_ & 0x00000008) == 0x00000008);
3429 * <code>optional double numeric_value = 4;</code>
3431 public double getNumericValue() {
3432 return numericValue_;
3435 * <code>optional double numeric_value = 4;</code>
3437 public Builder setNumericValue(double value) {
3438 bitField0_ |= 0x00000008;
3439 numericValue_ = value;
3444 * <code>optional double numeric_value = 4;</code>
3446 public Builder clearNumericValue() {
3447 bitField0_ = (bitField0_ & ~0x00000008);
3453 // optional bool boolean_value = 5;
3454 private boolean booleanValue_ ;
3456 * <code>optional bool boolean_value = 5;</code>
3458 public boolean hasBooleanValue() {
3459 return ((bitField0_ & 0x00000010) == 0x00000010);
3462 * <code>optional bool boolean_value = 5;</code>
3464 public boolean getBooleanValue() {
3465 return booleanValue_;
3468 * <code>optional bool boolean_value = 5;</code>
3470 public Builder setBooleanValue(boolean value) {
3471 bitField0_ |= 0x00000010;
3472 booleanValue_ = value;
3477 * <code>optional bool boolean_value = 5;</code>
3479 public Builder clearBooleanValue() {
3480 bitField0_ = (bitField0_ & ~0x00000010);
3481 booleanValue_ = false;
3486 // optional string string_event = 6;
3487 private java.lang.Object stringEvent_ = "";
3489 * <code>optional string string_event = 6;</code>
3491 public boolean hasStringEvent() {
3492 return ((bitField0_ & 0x00000020) == 0x00000020);
3495 * <code>optional string string_event = 6;</code>
3497 public java.lang.String getStringEvent() {
3498 java.lang.Object ref = stringEvent_;
3499 if (!(ref instanceof java.lang.String)) {
3500 java.lang.String s = ((com.google.protobuf.ByteString) ref)
3505 return (java.lang.String) ref;
3509 * <code>optional string string_event = 6;</code>
3511 public com.google.protobuf.ByteString
3512 getStringEventBytes() {
3513 java.lang.Object ref = stringEvent_;
3514 if (ref instanceof String) {
3515 com.google.protobuf.ByteString b =
3516 com.google.protobuf.ByteString.copyFromUtf8(
3517 (java.lang.String) ref);
3521 return (com.google.protobuf.ByteString) ref;
3525 * <code>optional string string_event = 6;</code>
3527 public Builder setStringEvent(
3528 java.lang.String value) {
3529 if (value == null) {
3530 throw new NullPointerException();
3532 bitField0_ |= 0x00000020;
3533 stringEvent_ = value;
3538 * <code>optional string string_event = 6;</code>
3540 public Builder clearStringEvent() {
3541 bitField0_ = (bitField0_ & ~0x00000020);
3542 stringEvent_ = getDefaultInstance().getStringEvent();
3547 * <code>optional string string_event = 6;</code>
3549 public Builder setStringEventBytes(
3550 com.google.protobuf.ByteString value) {
3551 if (value == null) {
3552 throw new NullPointerException();
3554 bitField0_ |= 0x00000020;
3555 stringEvent_ = value;
3560 // optional double numeric_event = 7;
3561 private double numericEvent_ ;
3563 * <code>optional double numeric_event = 7;</code>
3565 public boolean hasNumericEvent() {
3566 return ((bitField0_ & 0x00000040) == 0x00000040);
3569 * <code>optional double numeric_event = 7;</code>
3571 public double getNumericEvent() {
3572 return numericEvent_;
3575 * <code>optional double numeric_event = 7;</code>
3577 public Builder setNumericEvent(double value) {
3578 bitField0_ |= 0x00000040;
3579 numericEvent_ = value;
3584 * <code>optional double numeric_event = 7;</code>
3586 public Builder clearNumericEvent() {
3587 bitField0_ = (bitField0_ & ~0x00000040);
3593 // optional bool boolean_event = 8;
3594 private boolean booleanEvent_ ;
3596 * <code>optional bool boolean_event = 8;</code>
3598 public boolean hasBooleanEvent() {
3599 return ((bitField0_ & 0x00000080) == 0x00000080);
3602 * <code>optional bool boolean_event = 8;</code>
3604 public boolean getBooleanEvent() {
3605 return booleanEvent_;
3608 * <code>optional bool boolean_event = 8;</code>
3610 public Builder setBooleanEvent(boolean value) {
3611 bitField0_ |= 0x00000080;
3612 booleanEvent_ = value;
3617 * <code>optional bool boolean_event = 8;</code>
3619 public Builder clearBooleanEvent() {
3620 bitField0_ = (bitField0_ & ~0x00000080);
3621 booleanEvent_ = false;
3626 // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage)
3630 defaultInstance = new TranslatedMessage(true);
3631 defaultInstance.initFields();
3634 // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
3637 private static com.google.protobuf.Descriptors.Descriptor
3638 internal_static_openxc_VehicleMessage_descriptor;
3640 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3641 internal_static_openxc_VehicleMessage_fieldAccessorTable;
3642 private static com.google.protobuf.Descriptors.Descriptor
3643 internal_static_openxc_RawMessage_descriptor;
3645 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3646 internal_static_openxc_RawMessage_fieldAccessorTable;
3647 private static com.google.protobuf.Descriptors.Descriptor
3648 internal_static_openxc_DiagnosticMessage_descriptor;
3650 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3651 internal_static_openxc_DiagnosticMessage_fieldAccessorTable;
3652 private static com.google.protobuf.Descriptors.Descriptor
3653 internal_static_openxc_TranslatedMessage_descriptor;
3655 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3656 internal_static_openxc_TranslatedMessage_fieldAccessorTable;
3658 public static com.google.protobuf.Descriptors.FileDescriptor
3662 private static com.google.protobuf.Descriptors.FileDescriptor
3665 java.lang.String[] descriptorData = {
3666 "\n\014openxc.proto\022\006openxc\"\274\001\n\016VehicleMessag" +
3667 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
3668 "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
3669 "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" +
3670 "xc.TranslatedMessage\"\037\n\004Type\022\007\n\003RAW\020\001\022\016\n" +
3671 "\nTRANSLATED\020\002\";\n\nRawMessage\022\013\n\003bus\030\001 \001(\005" +
3672 "\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\004\"\221\001\n\021D" +
3673 "iagnosticMessage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage" +
3674 "_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007" +
3675 "success\030\005 \001(\010\022\036\n\026negative_response_code\030",
3676 "\006 \001(\r\022\017\n\007payload\030\007 \001(\004\"\265\002\n\021TranslatedMes" +
3677 "sage\022,\n\004type\030\001 \001(\0162\036.openxc.TranslatedMe" +
3678 "ssage.Type\022\014\n\004name\030\002 \001(\t\022\024\n\014string_value" +
3679 "\030\003 \001(\t\022\025\n\rnumeric_value\030\004 \001(\001\022\025\n\rboolean" +
3680 "_value\030\005 \001(\010\022\024\n\014string_event\030\006 \001(\t\022\025\n\rnu" +
3681 "meric_event\030\007 \001(\001\022\025\n\rboolean_event\030\010 \001(\010" +
3682 "\"\\\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\022" +
3683 "\022\n\016EVENTED_STRING\020\004\022\017\n\013EVENTED_NUM\020\005\022\020\n\014" +
3684 "EVENTED_BOOL\020\006B\034\n\ncom.openxcB\016BinaryMess" +
3687 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
3688 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
3689 public com.google.protobuf.ExtensionRegistry assignDescriptors(
3690 com.google.protobuf.Descriptors.FileDescriptor root) {
3692 internal_static_openxc_VehicleMessage_descriptor =
3693 getDescriptor().getMessageTypes().get(0);
3694 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
3695 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3696 internal_static_openxc_VehicleMessage_descriptor,
3697 new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", });
3698 internal_static_openxc_RawMessage_descriptor =
3699 getDescriptor().getMessageTypes().get(1);
3700 internal_static_openxc_RawMessage_fieldAccessorTable = new
3701 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3702 internal_static_openxc_RawMessage_descriptor,
3703 new java.lang.String[] { "Bus", "MessageId", "Data", });
3704 internal_static_openxc_DiagnosticMessage_descriptor =
3705 getDescriptor().getMessageTypes().get(2);
3706 internal_static_openxc_DiagnosticMessage_fieldAccessorTable = new
3707 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3708 internal_static_openxc_DiagnosticMessage_descriptor,
3709 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", });
3710 internal_static_openxc_TranslatedMessage_descriptor =
3711 getDescriptor().getMessageTypes().get(3);
3712 internal_static_openxc_TranslatedMessage_fieldAccessorTable = new
3713 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3714 internal_static_openxc_TranslatedMessage_descriptor,
3715 new java.lang.String[] { "Type", "Name", "StringValue", "NumericValue", "BooleanValue", "StringEvent", "NumericEvent", "BooleanEvent", });
3719 com.google.protobuf.Descriptors.FileDescriptor
3720 .internalBuildGeneratedFileFrom(descriptorData,
3721 new com.google.protobuf.Descriptors.FileDescriptor[] {
3725 // @@protoc_insertion_point(outer_class_scope)