diff options
Diffstat (limited to 'gen/java/com/openxc/BinaryMessages.java')
-rw-r--r-- | gen/java/com/openxc/BinaryMessages.java | 4911 |
1 files changed, 4363 insertions, 548 deletions
diff --git a/gen/java/com/openxc/BinaryMessages.java b/gen/java/com/openxc/BinaryMessages.java index 7410c63e..a2932845 100644 --- a/gen/java/com/openxc/BinaryMessages.java +++ b/gen/java/com/openxc/BinaryMessages.java @@ -35,19 +35,89 @@ public final class BinaryMessages { */ com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder(); - // optional .openxc.TranslatedMessage translated_message = 3; + // optional .openxc.StringMessage string_message = 3; /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - boolean hasTranslatedMessage(); + boolean hasStringMessage(); /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage(); + com.openxc.BinaryMessages.StringMessage getStringMessage(); /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder(); + com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder(); + + // optional .openxc.NumericMessage numeric_message = 4; + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + boolean hasNumericMessage(); + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + com.openxc.BinaryMessages.NumericMessage getNumericMessage(); + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder(); + + // optional .openxc.BooleanMessage boolean_message = 5; + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + boolean hasBooleanMessage(); + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + com.openxc.BinaryMessages.BooleanMessage getBooleanMessage(); + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder(); + + // optional .openxc.EventedStringMessage evented_string_message = 6; + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + boolean hasEventedStringMessage(); + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage(); + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder(); + + // optional .openxc.EventedBooleanMessage evented_boolean_message = 7; + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + boolean hasEventedBooleanMessage(); + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage(); + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder(); + + // optional .openxc.EventedNumericMessage evented_numeric_message = 8; + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + boolean hasEventedNumericMessage(); + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage(); + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder(); } /** * Protobuf type {@code openxc.VehicleMessage} @@ -125,18 +195,83 @@ public final class BinaryMessages { break; } case 26: { - com.openxc.BinaryMessages.TranslatedMessage.Builder subBuilder = null; + com.openxc.BinaryMessages.StringMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = translatedMessage_.toBuilder(); + subBuilder = stringMessage_.toBuilder(); } - translatedMessage_ = input.readMessage(com.openxc.BinaryMessages.TranslatedMessage.PARSER, extensionRegistry); + stringMessage_ = input.readMessage(com.openxc.BinaryMessages.StringMessage.PARSER, extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(translatedMessage_); - translatedMessage_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(stringMessage_); + stringMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } + case 34: { + com.openxc.BinaryMessages.NumericMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = numericMessage_.toBuilder(); + } + numericMessage_ = input.readMessage(com.openxc.BinaryMessages.NumericMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(numericMessage_); + numericMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + com.openxc.BinaryMessages.BooleanMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = booleanMessage_.toBuilder(); + } + booleanMessage_ = input.readMessage(com.openxc.BinaryMessages.BooleanMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(booleanMessage_); + booleanMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 50: { + com.openxc.BinaryMessages.EventedStringMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = eventedStringMessage_.toBuilder(); + } + eventedStringMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedStringMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventedStringMessage_); + eventedStringMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + case 58: { + com.openxc.BinaryMessages.EventedBooleanMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + subBuilder = eventedBooleanMessage_.toBuilder(); + } + eventedBooleanMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedBooleanMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventedBooleanMessage_); + eventedBooleanMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000040; + break; + } + case 66: { + com.openxc.BinaryMessages.EventedNumericMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = eventedNumericMessage_.toBuilder(); + } + eventedNumericMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedNumericMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventedNumericMessage_); + eventedNumericMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000080; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -186,9 +321,29 @@ public final class BinaryMessages { */ RAW(0, 1), /** - * <code>TRANSLATED = 2;</code> + * <code>STRING = 2;</code> + */ + STRING(1, 2), + /** + * <code>BOOL = 3;</code> + */ + BOOL(2, 3), + /** + * <code>NUM = 4;</code> + */ + NUM(3, 4), + /** + * <code>EVENTED_NUM = 5;</code> */ - TRANSLATED(1, 2), + EVENTED_NUM(4, 5), + /** + * <code>EVENTED_STRING = 6;</code> + */ + EVENTED_STRING(5, 6), + /** + * <code>EVENTED_BOOL = 7;</code> + */ + EVENTED_BOOL(6, 7), ; /** @@ -196,9 +351,29 @@ public final class BinaryMessages { */ public static final int RAW_VALUE = 1; /** - * <code>TRANSLATED = 2;</code> + * <code>STRING = 2;</code> + */ + public static final int STRING_VALUE = 2; + /** + * <code>BOOL = 3;</code> + */ + public static final int BOOL_VALUE = 3; + /** + * <code>NUM = 4;</code> + */ + public static final int NUM_VALUE = 4; + /** + * <code>EVENTED_NUM = 5;</code> + */ + public static final int EVENTED_NUM_VALUE = 5; + /** + * <code>EVENTED_STRING = 6;</code> */ - public static final int TRANSLATED_VALUE = 2; + public static final int EVENTED_STRING_VALUE = 6; + /** + * <code>EVENTED_BOOL = 7;</code> + */ + public static final int EVENTED_BOOL_VALUE = 7; public final int getNumber() { return value; } @@ -206,7 +381,12 @@ public final class BinaryMessages { public static Type valueOf(int value) { switch (value) { case 1: return RAW; - case 2: return TRANSLATED; + case 2: return STRING; + case 3: return BOOL; + case 4: return NUM; + case 5: return EVENTED_NUM; + case 6: return EVENTED_STRING; + case 7: return EVENTED_BOOL; default: return null; } } @@ -297,32 +477,147 @@ public final class BinaryMessages { return rawMessage_; } - // optional .openxc.TranslatedMessage translated_message = 3; - public static final int TRANSLATED_MESSAGE_FIELD_NUMBER = 3; - private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_; + // optional .openxc.StringMessage string_message = 3; + public static final int STRING_MESSAGE_FIELD_NUMBER = 3; + private com.openxc.BinaryMessages.StringMessage stringMessage_; /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public boolean hasTranslatedMessage() { + public boolean hasStringMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> + */ + public com.openxc.BinaryMessages.StringMessage getStringMessage() { + return stringMessage_; + } + /** + * <code>optional .openxc.StringMessage string_message = 3;</code> + */ + public com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder() { + return stringMessage_; + } + + // optional .openxc.NumericMessage numeric_message = 4; + public static final int NUMERIC_MESSAGE_FIELD_NUMBER = 4; + private com.openxc.BinaryMessages.NumericMessage numericMessage_; + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public boolean hasNumericMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public com.openxc.BinaryMessages.NumericMessage getNumericMessage() { + return numericMessage_; + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> */ - public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() { - return translatedMessage_; + public com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder() { + return numericMessage_; } + + // optional .openxc.BooleanMessage boolean_message = 5; + public static final int BOOLEAN_MESSAGE_FIELD_NUMBER = 5; + private com.openxc.BinaryMessages.BooleanMessage booleanMessage_; /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> */ - public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() { - return translatedMessage_; + public boolean hasBooleanMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public com.openxc.BinaryMessages.BooleanMessage getBooleanMessage() { + return booleanMessage_; + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder() { + return booleanMessage_; + } + + // optional .openxc.EventedStringMessage evented_string_message = 6; + public static final int EVENTED_STRING_MESSAGE_FIELD_NUMBER = 6; + private com.openxc.BinaryMessages.EventedStringMessage eventedStringMessage_; + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public boolean hasEventedStringMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage() { + return eventedStringMessage_; + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder() { + return eventedStringMessage_; + } + + // optional .openxc.EventedBooleanMessage evented_boolean_message = 7; + public static final int EVENTED_BOOLEAN_MESSAGE_FIELD_NUMBER = 7; + private com.openxc.BinaryMessages.EventedBooleanMessage eventedBooleanMessage_; + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public boolean hasEventedBooleanMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage() { + return eventedBooleanMessage_; + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder() { + return eventedBooleanMessage_; + } + + // optional .openxc.EventedNumericMessage evented_numeric_message = 8; + public static final int EVENTED_NUMERIC_MESSAGE_FIELD_NUMBER = 8; + private com.openxc.BinaryMessages.EventedNumericMessage eventedNumericMessage_; + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public boolean hasEventedNumericMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage() { + return eventedNumericMessage_; + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder() { + return eventedNumericMessage_; } private void initFields() { type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW; rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance(); - translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance(); + stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance(); + numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance(); + booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance(); + eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance(); + eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance(); + eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -343,7 +638,22 @@ public final class BinaryMessages { output.writeMessage(2, rawMessage_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, translatedMessage_); + output.writeMessage(3, stringMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, numericMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, booleanMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, eventedStringMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(7, eventedBooleanMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(8, eventedNumericMessage_); } getUnknownFields().writeTo(output); } @@ -364,7 +674,27 @@ public final class BinaryMessages { } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, translatedMessage_); + .computeMessageSize(3, stringMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, numericMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, booleanMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, eventedStringMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, eventedBooleanMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, eventedNumericMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -475,7 +805,12 @@ public final class BinaryMessages { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRawMessageFieldBuilder(); - getTranslatedMessageFieldBuilder(); + getStringMessageFieldBuilder(); + getNumericMessageFieldBuilder(); + getBooleanMessageFieldBuilder(); + getEventedStringMessageFieldBuilder(); + getEventedBooleanMessageFieldBuilder(); + getEventedNumericMessageFieldBuilder(); } } private static Builder create() { @@ -492,12 +827,42 @@ public final class BinaryMessages { rawMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); - if (translatedMessageBuilder_ == null) { - translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance(); + if (stringMessageBuilder_ == null) { + stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance(); } else { - translatedMessageBuilder_.clear(); + stringMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + if (numericMessageBuilder_ == null) { + numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance(); + } else { + numericMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (booleanMessageBuilder_ == null) { + booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance(); + } else { + booleanMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (eventedStringMessageBuilder_ == null) { + eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance(); + } else { + eventedStringMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (eventedBooleanMessageBuilder_ == null) { + eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance(); + } else { + eventedBooleanMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (eventedNumericMessageBuilder_ == null) { + eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance(); + } else { + eventedNumericMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -541,10 +906,50 @@ public final class BinaryMessages { if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } - if (translatedMessageBuilder_ == null) { - result.translatedMessage_ = translatedMessage_; + if (stringMessageBuilder_ == null) { + result.stringMessage_ = stringMessage_; + } else { + result.stringMessage_ = stringMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (numericMessageBuilder_ == null) { + result.numericMessage_ = numericMessage_; + } else { + result.numericMessage_ = numericMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (booleanMessageBuilder_ == null) { + result.booleanMessage_ = booleanMessage_; + } else { + result.booleanMessage_ = booleanMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + if (eventedStringMessageBuilder_ == null) { + result.eventedStringMessage_ = eventedStringMessage_; + } else { + result.eventedStringMessage_ = eventedStringMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + if (eventedBooleanMessageBuilder_ == null) { + result.eventedBooleanMessage_ = eventedBooleanMessage_; } else { - result.translatedMessage_ = translatedMessageBuilder_.build(); + result.eventedBooleanMessage_ = eventedBooleanMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + if (eventedNumericMessageBuilder_ == null) { + result.eventedNumericMessage_ = eventedNumericMessage_; + } else { + result.eventedNumericMessage_ = eventedNumericMessageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); @@ -568,8 +973,23 @@ public final class BinaryMessages { if (other.hasRawMessage()) { mergeRawMessage(other.getRawMessage()); } - if (other.hasTranslatedMessage()) { - mergeTranslatedMessage(other.getTranslatedMessage()); + if (other.hasStringMessage()) { + mergeStringMessage(other.getStringMessage()); + } + if (other.hasNumericMessage()) { + mergeNumericMessage(other.getNumericMessage()); + } + if (other.hasBooleanMessage()) { + mergeBooleanMessage(other.getBooleanMessage()); + } + if (other.hasEventedStringMessage()) { + mergeEventedStringMessage(other.getEventedStringMessage()); + } + if (other.hasEventedBooleanMessage()) { + mergeEventedBooleanMessage(other.getEventedBooleanMessage()); + } + if (other.hasEventedNumericMessage()) { + mergeEventedNumericMessage(other.getEventedNumericMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -751,121 +1171,706 @@ public final class BinaryMessages { return rawMessageBuilder_; } - // optional .openxc.TranslatedMessage translated_message = 3; - private com.openxc.BinaryMessages.TranslatedMessage translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance(); + // optional .openxc.StringMessage string_message = 3; + private com.openxc.BinaryMessages.StringMessage stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< - com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder> translatedMessageBuilder_; + com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder> stringMessageBuilder_; /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public boolean hasTranslatedMessage() { + public boolean hasStringMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public com.openxc.BinaryMessages.TranslatedMessage getTranslatedMessage() { - if (translatedMessageBuilder_ == null) { - return translatedMessage_; + public com.openxc.BinaryMessages.StringMessage getStringMessage() { + if (stringMessageBuilder_ == null) { + return stringMessage_; } else { - return translatedMessageBuilder_.getMessage(); + return stringMessageBuilder_.getMessage(); } } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public Builder setTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) { - if (translatedMessageBuilder_ == null) { + public Builder setStringMessage(com.openxc.BinaryMessages.StringMessage value) { + if (stringMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - translatedMessage_ = value; + stringMessage_ = value; onChanged(); } else { - translatedMessageBuilder_.setMessage(value); + stringMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public Builder setTranslatedMessage( - com.openxc.BinaryMessages.TranslatedMessage.Builder builderForValue) { - if (translatedMessageBuilder_ == null) { - translatedMessage_ = builderForValue.build(); + public Builder setStringMessage( + com.openxc.BinaryMessages.StringMessage.Builder builderForValue) { + if (stringMessageBuilder_ == null) { + stringMessage_ = builderForValue.build(); onChanged(); } else { - translatedMessageBuilder_.setMessage(builderForValue.build()); + stringMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public Builder mergeTranslatedMessage(com.openxc.BinaryMessages.TranslatedMessage value) { - if (translatedMessageBuilder_ == null) { + public Builder mergeStringMessage(com.openxc.BinaryMessages.StringMessage value) { + if (stringMessageBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && - translatedMessage_ != com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) { - translatedMessage_ = - com.openxc.BinaryMessages.TranslatedMessage.newBuilder(translatedMessage_).mergeFrom(value).buildPartial(); + stringMessage_ != com.openxc.BinaryMessages.StringMessage.getDefaultInstance()) { + stringMessage_ = + com.openxc.BinaryMessages.StringMessage.newBuilder(stringMessage_).mergeFrom(value).buildPartial(); } else { - translatedMessage_ = value; + stringMessage_ = value; } onChanged(); } else { - translatedMessageBuilder_.mergeFrom(value); + stringMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public Builder clearTranslatedMessage() { - if (translatedMessageBuilder_ == null) { - translatedMessage_ = com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance(); + public Builder clearStringMessage() { + if (stringMessageBuilder_ == null) { + stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance(); onChanged(); } else { - translatedMessageBuilder_.clear(); + stringMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.StringMessage string_message = 3;</code> */ - public com.openxc.BinaryMessages.TranslatedMessage.Builder getTranslatedMessageBuilder() { + public com.openxc.BinaryMessages.StringMessage.Builder getStringMessageBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getTranslatedMessageFieldBuilder().getBuilder(); + return getStringMessageFieldBuilder().getBuilder(); + } + /** + * <code>optional .openxc.StringMessage string_message = 3;</code> + */ + public com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder() { + if (stringMessageBuilder_ != null) { + return stringMessageBuilder_.getMessageOrBuilder(); + } else { + return stringMessage_; + } + } + /** + * <code>optional .openxc.StringMessage string_message = 3;</code> + */ + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder> + getStringMessageFieldBuilder() { + if (stringMessageBuilder_ == null) { + stringMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder>( + stringMessage_, + getParentForChildren(), + isClean()); + stringMessage_ = null; + } + return stringMessageBuilder_; + } + + // optional .openxc.NumericMessage numeric_message = 4; + private com.openxc.BinaryMessages.NumericMessage numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder> numericMessageBuilder_; + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public boolean hasNumericMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public com.openxc.BinaryMessages.NumericMessage getNumericMessage() { + if (numericMessageBuilder_ == null) { + return numericMessage_; + } else { + return numericMessageBuilder_.getMessage(); + } + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public Builder setNumericMessage(com.openxc.BinaryMessages.NumericMessage value) { + if (numericMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + numericMessage_ = value; + onChanged(); + } else { + numericMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public Builder setNumericMessage( + com.openxc.BinaryMessages.NumericMessage.Builder builderForValue) { + if (numericMessageBuilder_ == null) { + numericMessage_ = builderForValue.build(); + onChanged(); + } else { + numericMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public Builder mergeNumericMessage(com.openxc.BinaryMessages.NumericMessage value) { + if (numericMessageBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + numericMessage_ != com.openxc.BinaryMessages.NumericMessage.getDefaultInstance()) { + numericMessage_ = + com.openxc.BinaryMessages.NumericMessage.newBuilder(numericMessage_).mergeFrom(value).buildPartial(); + } else { + numericMessage_ = value; + } + onChanged(); + } else { + numericMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public Builder clearNumericMessage() { + if (numericMessageBuilder_ == null) { + numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance(); + onChanged(); + } else { + numericMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public com.openxc.BinaryMessages.NumericMessage.Builder getNumericMessageBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNumericMessageFieldBuilder().getBuilder(); + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + public com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder() { + if (numericMessageBuilder_ != null) { + return numericMessageBuilder_.getMessageOrBuilder(); + } else { + return numericMessage_; + } + } + /** + * <code>optional .openxc.NumericMessage numeric_message = 4;</code> + */ + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder> + getNumericMessageFieldBuilder() { + if (numericMessageBuilder_ == null) { + numericMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder>( + numericMessage_, + getParentForChildren(), + isClean()); + numericMessage_ = null; + } + return numericMessageBuilder_; + } + + // optional .openxc.BooleanMessage boolean_message = 5; + private com.openxc.BinaryMessages.BooleanMessage booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder> booleanMessageBuilder_; + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public boolean hasBooleanMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public com.openxc.BinaryMessages.BooleanMessage getBooleanMessage() { + if (booleanMessageBuilder_ == null) { + return booleanMessage_; + } else { + return booleanMessageBuilder_.getMessage(); + } + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public Builder setBooleanMessage(com.openxc.BinaryMessages.BooleanMessage value) { + if (booleanMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + booleanMessage_ = value; + onChanged(); + } else { + booleanMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public Builder setBooleanMessage( + com.openxc.BinaryMessages.BooleanMessage.Builder builderForValue) { + if (booleanMessageBuilder_ == null) { + booleanMessage_ = builderForValue.build(); + onChanged(); + } else { + booleanMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public Builder mergeBooleanMessage(com.openxc.BinaryMessages.BooleanMessage value) { + if (booleanMessageBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + booleanMessage_ != com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance()) { + booleanMessage_ = + com.openxc.BinaryMessages.BooleanMessage.newBuilder(booleanMessage_).mergeFrom(value).buildPartial(); + } else { + booleanMessage_ = value; + } + onChanged(); + } else { + booleanMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public Builder clearBooleanMessage() { + if (booleanMessageBuilder_ == null) { + booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance(); + onChanged(); + } else { + booleanMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public com.openxc.BinaryMessages.BooleanMessage.Builder getBooleanMessageBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getBooleanMessageFieldBuilder().getBuilder(); + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + public com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder() { + if (booleanMessageBuilder_ != null) { + return booleanMessageBuilder_.getMessageOrBuilder(); + } else { + return booleanMessage_; + } + } + /** + * <code>optional .openxc.BooleanMessage boolean_message = 5;</code> + */ + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder> + getBooleanMessageFieldBuilder() { + if (booleanMessageBuilder_ == null) { + booleanMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder>( + booleanMessage_, + getParentForChildren(), + isClean()); + booleanMessage_ = null; + } + return booleanMessageBuilder_; + } + + // optional .openxc.EventedStringMessage evented_string_message = 6; + private com.openxc.BinaryMessages.EventedStringMessage eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder> eventedStringMessageBuilder_; + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public boolean hasEventedStringMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage() { + if (eventedStringMessageBuilder_ == null) { + return eventedStringMessage_; + } else { + return eventedStringMessageBuilder_.getMessage(); + } + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public Builder setEventedStringMessage(com.openxc.BinaryMessages.EventedStringMessage value) { + if (eventedStringMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventedStringMessage_ = value; + onChanged(); + } else { + eventedStringMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public Builder setEventedStringMessage( + com.openxc.BinaryMessages.EventedStringMessage.Builder builderForValue) { + if (eventedStringMessageBuilder_ == null) { + eventedStringMessage_ = builderForValue.build(); + onChanged(); + } else { + eventedStringMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public Builder mergeEventedStringMessage(com.openxc.BinaryMessages.EventedStringMessage value) { + if (eventedStringMessageBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + eventedStringMessage_ != com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance()) { + eventedStringMessage_ = + com.openxc.BinaryMessages.EventedStringMessage.newBuilder(eventedStringMessage_).mergeFrom(value).buildPartial(); + } else { + eventedStringMessage_ = value; + } + onChanged(); + } else { + eventedStringMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public Builder clearEventedStringMessage() { + if (eventedStringMessageBuilder_ == null) { + eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance(); + onChanged(); + } else { + eventedStringMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public com.openxc.BinaryMessages.EventedStringMessage.Builder getEventedStringMessageBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEventedStringMessageFieldBuilder().getBuilder(); + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + public com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder() { + if (eventedStringMessageBuilder_ != null) { + return eventedStringMessageBuilder_.getMessageOrBuilder(); + } else { + return eventedStringMessage_; + } + } + /** + * <code>optional .openxc.EventedStringMessage evented_string_message = 6;</code> + */ + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder> + getEventedStringMessageFieldBuilder() { + if (eventedStringMessageBuilder_ == null) { + eventedStringMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder>( + eventedStringMessage_, + getParentForChildren(), + isClean()); + eventedStringMessage_ = null; + } + return eventedStringMessageBuilder_; + } + + // optional .openxc.EventedBooleanMessage evented_boolean_message = 7; + private com.openxc.BinaryMessages.EventedBooleanMessage eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder> eventedBooleanMessageBuilder_; + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public boolean hasEventedBooleanMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage() { + if (eventedBooleanMessageBuilder_ == null) { + return eventedBooleanMessage_; + } else { + return eventedBooleanMessageBuilder_.getMessage(); + } + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public Builder setEventedBooleanMessage(com.openxc.BinaryMessages.EventedBooleanMessage value) { + if (eventedBooleanMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventedBooleanMessage_ = value; + onChanged(); + } else { + eventedBooleanMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public Builder setEventedBooleanMessage( + com.openxc.BinaryMessages.EventedBooleanMessage.Builder builderForValue) { + if (eventedBooleanMessageBuilder_ == null) { + eventedBooleanMessage_ = builderForValue.build(); + onChanged(); + } else { + eventedBooleanMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public Builder mergeEventedBooleanMessage(com.openxc.BinaryMessages.EventedBooleanMessage value) { + if (eventedBooleanMessageBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + eventedBooleanMessage_ != com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance()) { + eventedBooleanMessage_ = + com.openxc.BinaryMessages.EventedBooleanMessage.newBuilder(eventedBooleanMessage_).mergeFrom(value).buildPartial(); + } else { + eventedBooleanMessage_ = value; + } + onChanged(); + } else { + eventedBooleanMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public Builder clearEventedBooleanMessage() { + if (eventedBooleanMessageBuilder_ == null) { + eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance(); + onChanged(); + } else { + eventedBooleanMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public com.openxc.BinaryMessages.EventedBooleanMessage.Builder getEventedBooleanMessageBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEventedBooleanMessageFieldBuilder().getBuilder(); + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + public com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder() { + if (eventedBooleanMessageBuilder_ != null) { + return eventedBooleanMessageBuilder_.getMessageOrBuilder(); + } else { + return eventedBooleanMessage_; + } + } + /** + * <code>optional .openxc.EventedBooleanMessage evented_boolean_message = 7;</code> + */ + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder> + getEventedBooleanMessageFieldBuilder() { + if (eventedBooleanMessageBuilder_ == null) { + eventedBooleanMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder>( + eventedBooleanMessage_, + getParentForChildren(), + isClean()); + eventedBooleanMessage_ = null; + } + return eventedBooleanMessageBuilder_; + } + + // optional .openxc.EventedNumericMessage evented_numeric_message = 8; + private com.openxc.BinaryMessages.EventedNumericMessage eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder> eventedNumericMessageBuilder_; + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public boolean hasEventedNumericMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage() { + if (eventedNumericMessageBuilder_ == null) { + return eventedNumericMessage_; + } else { + return eventedNumericMessageBuilder_.getMessage(); + } + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public Builder setEventedNumericMessage(com.openxc.BinaryMessages.EventedNumericMessage value) { + if (eventedNumericMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventedNumericMessage_ = value; + onChanged(); + } else { + eventedNumericMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public Builder setEventedNumericMessage( + com.openxc.BinaryMessages.EventedNumericMessage.Builder builderForValue) { + if (eventedNumericMessageBuilder_ == null) { + eventedNumericMessage_ = builderForValue.build(); + onChanged(); + } else { + eventedNumericMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public Builder mergeEventedNumericMessage(com.openxc.BinaryMessages.EventedNumericMessage value) { + if (eventedNumericMessageBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + eventedNumericMessage_ != com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance()) { + eventedNumericMessage_ = + com.openxc.BinaryMessages.EventedNumericMessage.newBuilder(eventedNumericMessage_).mergeFrom(value).buildPartial(); + } else { + eventedNumericMessage_ = value; + } + onChanged(); + } else { + eventedNumericMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public Builder clearEventedNumericMessage() { + if (eventedNumericMessageBuilder_ == null) { + eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance(); + onChanged(); + } else { + eventedNumericMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> + */ + public com.openxc.BinaryMessages.EventedNumericMessage.Builder getEventedNumericMessageBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getEventedNumericMessageFieldBuilder().getBuilder(); } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> */ - public com.openxc.BinaryMessages.TranslatedMessageOrBuilder getTranslatedMessageOrBuilder() { - if (translatedMessageBuilder_ != null) { - return translatedMessageBuilder_.getMessageOrBuilder(); + public com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder() { + if (eventedNumericMessageBuilder_ != null) { + return eventedNumericMessageBuilder_.getMessageOrBuilder(); } else { - return translatedMessage_; + return eventedNumericMessage_; } } /** - * <code>optional .openxc.TranslatedMessage translated_message = 3;</code> + * <code>optional .openxc.EventedNumericMessage evented_numeric_message = 8;</code> */ private com.google.protobuf.SingleFieldBuilder< - com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder> - getTranslatedMessageFieldBuilder() { - if (translatedMessageBuilder_ == null) { - translatedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.openxc.BinaryMessages.TranslatedMessage, com.openxc.BinaryMessages.TranslatedMessage.Builder, com.openxc.BinaryMessages.TranslatedMessageOrBuilder>( - translatedMessage_, + com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder> + getEventedNumericMessageFieldBuilder() { + if (eventedNumericMessageBuilder_ == null) { + eventedNumericMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder>( + eventedNumericMessage_, getParentForChildren(), isClean()); - translatedMessage_ = null; + eventedNumericMessage_ = null; } - return translatedMessageBuilder_; + return eventedNumericMessageBuilder_; } // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage) @@ -901,16 +1906,6 @@ public final class BinaryMessages { * <code>optional uint32 message_id = 2;</code> */ int getMessageId(); - - // optional uint64 data = 3; - /** - * <code>optional uint64 data = 3;</code> - */ - boolean hasData(); - /** - * <code>optional uint64 data = 3;</code> - */ - long getData(); } /** * Protobuf type {@code openxc.RawMessage} @@ -973,11 +1968,6 @@ public final class BinaryMessages { messageId_ = input.readUInt32(); break; } - case 24: { - bitField0_ |= 0x00000004; - data_ = input.readUInt64(); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1050,26 +2040,9 @@ public final class BinaryMessages { return messageId_; } - // optional uint64 data = 3; - public static final int DATA_FIELD_NUMBER = 3; - private long data_; - /** - * <code>optional uint64 data = 3;</code> - */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional uint64 data = 3;</code> - */ - public long getData() { - return data_; - } - private void initFields() { bus_ = 0; messageId_ = 0; - data_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1089,9 +2062,6 @@ public final class BinaryMessages { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, messageId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt64(3, data_); - } getUnknownFields().writeTo(output); } @@ -1109,10 +2079,6 @@ public final class BinaryMessages { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, messageId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, data_); - } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -1233,8 +2199,6 @@ public final class BinaryMessages { bitField0_ = (bitField0_ & ~0x00000001); messageId_ = 0; bitField0_ = (bitField0_ & ~0x00000002); - data_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1271,10 +2235,6 @@ public final class BinaryMessages { to_bitField0_ |= 0x00000002; } result.messageId_ = messageId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1297,9 +2257,6 @@ public final class BinaryMessages { if (other.hasMessageId()) { setMessageId(other.getMessageId()); } - if (other.hasData()) { - setData(other.getData()); - } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -1393,51 +2350,645 @@ public final class BinaryMessages { return this; } - // optional uint64 data = 3; - private long data_ ; + // @@protoc_insertion_point(builder_scope:openxc.RawMessage) + } + + static { + defaultInstance = new RawMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:openxc.RawMessage) + } + + public interface StringMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + /** + * <code>optional string name = 1;</code> + */ + boolean hasName(); + /** + * <code>optional string name = 1;</code> + */ + java.lang.String getName(); + /** + * <code>optional string name = 1;</code> + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional string value = 2; + /** + * <code>optional string value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional string value = 2;</code> + */ + java.lang.String getValue(); + /** + * <code>optional string value = 2;</code> + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code openxc.StringMessage} + */ + public static final class StringMessage extends + com.google.protobuf.GeneratedMessage + implements StringMessageOrBuilder { + // Use StringMessage.newBuilder() to construct. + private StringMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private StringMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final StringMessage defaultInstance; + public static StringMessage getDefaultInstance() { + return defaultInstance; + } + + public StringMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StringMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.StringMessage.class, com.openxc.BinaryMessages.StringMessage.Builder.class); + } + + public static com.google.protobuf.Parser<StringMessage> PARSER = + new com.google.protobuf.AbstractParser<StringMessage>() { + public StringMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser<StringMessage> getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private java.lang.Object value_; + /** + * <code>optional string value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + * <code>optional string value = 2;</code> + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + name_ = ""; + value_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getValueBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getValueBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.openxc.BinaryMessages.StringMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.StringMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.openxc.BinaryMessages.StringMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.StringMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.openxc.BinaryMessages.StringMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code openxc.StringMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements com.openxc.BinaryMessages.StringMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.StringMessage.class, com.openxc.BinaryMessages.StringMessage.Builder.class); + } + + // Construct using com.openxc.BinaryMessages.StringMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor; + } + + public com.openxc.BinaryMessages.StringMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.StringMessage.getDefaultInstance(); + } + + public com.openxc.BinaryMessages.StringMessage build() { + com.openxc.BinaryMessages.StringMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.openxc.BinaryMessages.StringMessage buildPartial() { + com.openxc.BinaryMessages.StringMessage result = new com.openxc.BinaryMessages.StringMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.openxc.BinaryMessages.StringMessage) { + return mergeFrom((com.openxc.BinaryMessages.StringMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.openxc.BinaryMessages.StringMessage other) { + if (other == com.openxc.BinaryMessages.StringMessage.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.openxc.BinaryMessages.StringMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.openxc.BinaryMessages.StringMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string name = 1; + private java.lang.Object name_ = ""; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // optional string value = 2; + private java.lang.Object value_ = ""; /** - * <code>optional uint64 data = 3;</code> + * <code>optional string value = 2;</code> */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * <code>optional uint64 data = 3;</code> + * <code>optional string value = 2;</code> */ - public long getData() { - return data_; + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * <code>optional uint64 data = 3;</code> + * <code>optional string value = 2;</code> */ - public Builder setData(long value) { - bitField0_ |= 0x00000004; - data_ = value; + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; onChanged(); return this; } /** - * <code>optional uint64 data = 3;</code> + * <code>optional string value = 2;</code> */ - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000004); - data_ = 0L; + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:openxc.RawMessage) + // @@protoc_insertion_point(builder_scope:openxc.StringMessage) } static { - defaultInstance = new RawMessage(true); + defaultInstance = new StringMessage(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:openxc.RawMessage) + // @@protoc_insertion_point(class_scope:openxc.StringMessage) } - public interface TranslatedMessageOrBuilder + public interface NumericMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string name = 1; @@ -1455,95 +3006,1159 @@ public final class BinaryMessages { com.google.protobuf.ByteString getNameBytes(); - // optional string string_value = 2; + // optional double value = 2; + /** + * <code>optional double value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional double value = 2;</code> + */ + double getValue(); + } + /** + * Protobuf type {@code openxc.NumericMessage} + */ + public static final class NumericMessage extends + com.google.protobuf.GeneratedMessage + implements NumericMessageOrBuilder { + // Use NumericMessage.newBuilder() to construct. + private NumericMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private NumericMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final NumericMessage defaultInstance; + public static NumericMessage getDefaultInstance() { + return defaultInstance; + } + + public NumericMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NumericMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 17: { + bitField0_ |= 0x00000002; + value_ = input.readDouble(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.NumericMessage.class, com.openxc.BinaryMessages.NumericMessage.Builder.class); + } + + public static com.google.protobuf.Parser<NumericMessage> PARSER = + new com.google.protobuf.AbstractParser<NumericMessage>() { + public NumericMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NumericMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser<NumericMessage> getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional double value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private double value_; + /** + * <code>optional double value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional double value = 2;</code> + */ + public double getValue() { + return value_; + } + + private void initFields() { + name_ = ""; + value_ = 0D; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeDouble(2, value_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.NumericMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.openxc.BinaryMessages.NumericMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.NumericMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.openxc.BinaryMessages.NumericMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code openxc.NumericMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements com.openxc.BinaryMessages.NumericMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.NumericMessage.class, com.openxc.BinaryMessages.NumericMessage.Builder.class); + } + + // Construct using com.openxc.BinaryMessages.NumericMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor; + } + + public com.openxc.BinaryMessages.NumericMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.NumericMessage.getDefaultInstance(); + } + + public com.openxc.BinaryMessages.NumericMessage build() { + com.openxc.BinaryMessages.NumericMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.openxc.BinaryMessages.NumericMessage buildPartial() { + com.openxc.BinaryMessages.NumericMessage result = new com.openxc.BinaryMessages.NumericMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.openxc.BinaryMessages.NumericMessage) { + return mergeFrom((com.openxc.BinaryMessages.NumericMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.openxc.BinaryMessages.NumericMessage other) { + if (other == com.openxc.BinaryMessages.NumericMessage.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.openxc.BinaryMessages.NumericMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.openxc.BinaryMessages.NumericMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string name = 1; + private java.lang.Object name_ = ""; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // optional double value = 2; + private double value_ ; + /** + * <code>optional double value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional double value = 2;</code> + */ + public double getValue() { + return value_; + } + /** + * <code>optional double value = 2;</code> + */ + public Builder setValue(double value) { + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * <code>optional double value = 2;</code> + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:openxc.NumericMessage) + } + + static { + defaultInstance = new NumericMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:openxc.NumericMessage) + } + + public interface BooleanMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; /** - * <code>optional string string_value = 2;</code> + * <code>optional string name = 1;</code> */ - boolean hasStringValue(); + boolean hasName(); /** - * <code>optional string string_value = 2;</code> + * <code>optional string name = 1;</code> */ - java.lang.String getStringValue(); + java.lang.String getName(); /** - * <code>optional string string_value = 2;</code> + * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString - getStringValueBytes(); + getNameBytes(); + + // optional bool value = 2; + /** + * <code>optional bool value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional bool value = 2;</code> + */ + boolean getValue(); + } + /** + * Protobuf type {@code openxc.BooleanMessage} + */ + public static final class BooleanMessage extends + com.google.protobuf.GeneratedMessage + implements BooleanMessageOrBuilder { + // Use BooleanMessage.newBuilder() to construct. + private BooleanMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private BooleanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final BooleanMessage defaultInstance; + public static BooleanMessage getDefaultInstance() { + return defaultInstance; + } + + public BooleanMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BooleanMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + value_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor; + } - // optional double numerical_value = 3; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.BooleanMessage.class, com.openxc.BinaryMessages.BooleanMessage.Builder.class); + } + + public static com.google.protobuf.Parser<BooleanMessage> PARSER = + new com.google.protobuf.AbstractParser<BooleanMessage>() { + public BooleanMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BooleanMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser<BooleanMessage> getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional string name = 1;</code> */ - boolean hasNumericalValue(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional string name = 1;</code> */ - double getNumericalValue(); + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional bool boolean_value = 4; + // optional bool value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private boolean value_; + /** + * <code>optional bool value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } /** - * <code>optional bool boolean_value = 4;</code> + * <code>optional bool value = 2;</code> */ - boolean hasBooleanValue(); + public boolean getValue() { + return value_; + } + + private void initFields() { + name_ = ""; + value_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, value_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.BooleanMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.openxc.BinaryMessages.BooleanMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.BooleanMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.openxc.BinaryMessages.BooleanMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** - * <code>optional bool boolean_value = 4;</code> + * Protobuf type {@code openxc.BooleanMessage} */ - boolean getBooleanValue(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements com.openxc.BinaryMessages.BooleanMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.BooleanMessage.class, com.openxc.BinaryMessages.BooleanMessage.Builder.class); + } + + // Construct using com.openxc.BinaryMessages.BooleanMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor; + } + + public com.openxc.BinaryMessages.BooleanMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance(); + } + + public com.openxc.BinaryMessages.BooleanMessage build() { + com.openxc.BinaryMessages.BooleanMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.openxc.BinaryMessages.BooleanMessage buildPartial() { + com.openxc.BinaryMessages.BooleanMessage result = new com.openxc.BinaryMessages.BooleanMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.openxc.BinaryMessages.BooleanMessage) { + return mergeFrom((com.openxc.BinaryMessages.BooleanMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.openxc.BinaryMessages.BooleanMessage other) { + if (other == com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.openxc.BinaryMessages.BooleanMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.openxc.BinaryMessages.BooleanMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string name = 1; + private java.lang.Object name_ = ""; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // optional bool value = 2; + private boolean value_ ; + /** + * <code>optional bool value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional bool value = 2;</code> + */ + public boolean getValue() { + return value_; + } + /** + * <code>optional bool value = 2;</code> + */ + public Builder setValue(boolean value) { + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * <code>optional bool value = 2;</code> + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:openxc.BooleanMessage) + } + + static { + defaultInstance = new BooleanMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:openxc.BooleanMessage) + } - // optional string string_event = 5; + public interface EventedStringMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - boolean hasStringEvent(); + boolean hasName(); /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - java.lang.String getStringEvent(); + java.lang.String getName(); /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString - getStringEventBytes(); + getNameBytes(); - // optional double numerical_event = 6; + // optional string value = 2; + /** + * <code>optional string value = 2;</code> + */ + boolean hasValue(); /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - boolean hasNumericalEvent(); + java.lang.String getValue(); /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - double getNumericalEvent(); + com.google.protobuf.ByteString + getValueBytes(); - // optional bool boolean_event = 7; + // optional string event = 3; /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional string event = 3;</code> */ - boolean hasBooleanEvent(); + boolean hasEvent(); /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional string event = 3;</code> */ - boolean getBooleanEvent(); + java.lang.String getEvent(); + /** + * <code>optional string event = 3;</code> + */ + com.google.protobuf.ByteString + getEventBytes(); } /** - * Protobuf type {@code openxc.TranslatedMessage} + * Protobuf type {@code openxc.EventedStringMessage} */ - public static final class TranslatedMessage extends + public static final class EventedStringMessage extends com.google.protobuf.GeneratedMessage - implements TranslatedMessageOrBuilder { - // Use TranslatedMessage.newBuilder() to construct. - private TranslatedMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + implements EventedStringMessageOrBuilder { + // Use EventedStringMessage.newBuilder() to construct. + private EventedStringMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private TranslatedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private EventedStringMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final TranslatedMessage defaultInstance; - public static TranslatedMessage getDefaultInstance() { + private static final EventedStringMessage defaultInstance; + public static EventedStringMessage getDefaultInstance() { return defaultInstance; } - public TranslatedMessage getDefaultInstanceForType() { + public EventedStringMessage getDefaultInstanceForType() { return defaultInstance; } @@ -1553,7 +4168,7 @@ public final class BinaryMessages { getUnknownFields() { return this.unknownFields; } - private TranslatedMessage( + private EventedStringMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1583,32 +4198,12 @@ public final class BinaryMessages { } case 18: { bitField0_ |= 0x00000002; - stringValue_ = input.readBytes(); + value_ = input.readBytes(); break; } - case 25: { + case 26: { bitField0_ |= 0x00000004; - numericalValue_ = input.readDouble(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - booleanValue_ = input.readBool(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - stringEvent_ = input.readBytes(); - break; - } - case 49: { - bitField0_ |= 0x00000020; - numericalEvent_ = input.readDouble(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - booleanEvent_ = input.readBool(); + event_ = input.readBytes(); break; } } @@ -1625,28 +4220,28 @@ public final class BinaryMessages { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor; + return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable + return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class); + com.openxc.BinaryMessages.EventedStringMessage.class, com.openxc.BinaryMessages.EventedStringMessage.Builder.class); } - public static com.google.protobuf.Parser<TranslatedMessage> PARSER = - new com.google.protobuf.AbstractParser<TranslatedMessage>() { - public TranslatedMessage parsePartialFrom( + public static com.google.protobuf.Parser<EventedStringMessage> PARSER = + new com.google.protobuf.AbstractParser<EventedStringMessage>() { + public EventedStringMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslatedMessage(input, extensionRegistry); + return new EventedStringMessage(input, extensionRegistry); } }; @java.lang.Override - public com.google.protobuf.Parser<TranslatedMessage> getParserForType() { + public com.google.protobuf.Parser<EventedStringMessage> getParserForType() { return PARSER; } @@ -1694,20 +4289,20 @@ public final class BinaryMessages { } } - // optional string string_value = 2; - public static final int STRING_VALUE_FIELD_NUMBER = 2; - private java.lang.Object stringValue_; + // optional string value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private java.lang.Object value_; /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public boolean hasStringValue() { + public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; + public java.lang.String getValue() { + java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -1715,74 +4310,734 @@ public final class BinaryMessages { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - stringValue_ = s; + value_ = s; } return s; } } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; + getValueBytes() { + java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - stringValue_ = b; + value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - // optional double numerical_value = 3; - public static final int NUMERICAL_VALUE_FIELD_NUMBER = 3; - private double numericalValue_; + // optional string event = 3; + public static final int EVENT_FIELD_NUMBER = 3; + private java.lang.Object event_; /** - * <code>optional double numerical_value = 3;</code> + * <code>optional string event = 3;</code> */ - public boolean hasNumericalValue() { + public boolean hasEvent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional string event = 3;</code> + */ + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + event_ = s; + } + return s; + } + } + /** + * <code>optional string event = 3;</code> */ - public double getNumericalValue() { - return numericalValue_; + public com.google.protobuf.ByteString + getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + name_ = ""; + value_ = ""; + event_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getValueBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getEventBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getValueBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getEventBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; } - // optional bool boolean_value = 4; - public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4; - private boolean booleanValue_; + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.EventedStringMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.openxc.BinaryMessages.EventedStringMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** - * <code>optional bool boolean_value = 4;</code> + * Protobuf type {@code openxc.EventedStringMessage} */ - public boolean hasBooleanValue() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements com.openxc.BinaryMessages.EventedStringMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.EventedStringMessage.class, com.openxc.BinaryMessages.EventedStringMessage.Builder.class); + } + + // Construct using com.openxc.BinaryMessages.EventedStringMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + event_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor; + } + + public com.openxc.BinaryMessages.EventedStringMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance(); + } + + public com.openxc.BinaryMessages.EventedStringMessage build() { + com.openxc.BinaryMessages.EventedStringMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.openxc.BinaryMessages.EventedStringMessage buildPartial() { + com.openxc.BinaryMessages.EventedStringMessage result = new com.openxc.BinaryMessages.EventedStringMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.event_ = event_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.openxc.BinaryMessages.EventedStringMessage) { + return mergeFrom((com.openxc.BinaryMessages.EventedStringMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.openxc.BinaryMessages.EventedStringMessage other) { + if (other == com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + if (other.hasEvent()) { + bitField0_ |= 0x00000004; + event_ = other.event_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.openxc.BinaryMessages.EventedStringMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.openxc.BinaryMessages.EventedStringMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string name = 1; + private java.lang.Object name_ = ""; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // optional string value = 2; + private java.lang.Object value_ = ""; + /** + * <code>optional string value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string value = 2;</code> + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + + // optional string event = 3; + private java.lang.Object event_ = ""; + /** + * <code>optional string event = 3;</code> + */ + public boolean hasEvent() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string event = 3;</code> + */ + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + event_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string event = 3;</code> + */ + public com.google.protobuf.ByteString + getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string event = 3;</code> + */ + public Builder setEvent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + event_ = value; + onChanged(); + return this; + } + /** + * <code>optional string event = 3;</code> + */ + public Builder clearEvent() { + bitField0_ = (bitField0_ & ~0x00000004); + event_ = getDefaultInstance().getEvent(); + onChanged(); + return this; + } + /** + * <code>optional string event = 3;</code> + */ + public Builder setEventBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + event_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:openxc.EventedStringMessage) } + + static { + defaultInstance = new EventedStringMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:openxc.EventedStringMessage) + } + + public interface EventedBooleanMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + /** + * <code>optional string name = 1;</code> + */ + boolean hasName(); /** - * <code>optional bool boolean_value = 4;</code> + * <code>optional string name = 1;</code> */ - public boolean getBooleanValue() { - return booleanValue_; + java.lang.String getName(); + /** + * <code>optional string name = 1;</code> + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional string value = 2; + /** + * <code>optional string value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional string value = 2;</code> + */ + java.lang.String getValue(); + /** + * <code>optional string value = 2;</code> + */ + com.google.protobuf.ByteString + getValueBytes(); + + // optional bool event = 3; + /** + * <code>optional bool event = 3;</code> + */ + boolean hasEvent(); + /** + * <code>optional bool event = 3;</code> + */ + boolean getEvent(); + } + /** + * Protobuf type {@code openxc.EventedBooleanMessage} + */ + public static final class EventedBooleanMessage extends + com.google.protobuf.GeneratedMessage + implements EventedBooleanMessageOrBuilder { + // Use EventedBooleanMessage.newBuilder() to construct. + private EventedBooleanMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private EventedBooleanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final EventedBooleanMessage defaultInstance; + public static EventedBooleanMessage getDefaultInstance() { + return defaultInstance; + } + + public EventedBooleanMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventedBooleanMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + event_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.EventedBooleanMessage.class, com.openxc.BinaryMessages.EventedBooleanMessage.Builder.class); } - // optional string string_event = 5; - public static final int STRING_EVENT_FIELD_NUMBER = 5; - private java.lang.Object stringEvent_; + public static com.google.protobuf.Parser<EventedBooleanMessage> PARSER = + new com.google.protobuf.AbstractParser<EventedBooleanMessage>() { + public EventedBooleanMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventedBooleanMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser<EventedBooleanMessage> getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public boolean hasStringEvent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public java.lang.String getStringEvent() { - java.lang.Object ref = stringEvent_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -1790,68 +5045,91 @@ public final class BinaryMessages { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - stringEvent_ = s; + name_ = s; } return s; } } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString - getStringEventBytes() { - java.lang.Object ref = stringEvent_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - stringEvent_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - // optional double numerical_event = 6; - public static final int NUMERICAL_EVENT_FIELD_NUMBER = 6; - private double numericalEvent_; + // optional string value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private java.lang.Object value_; /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public boolean hasNumericalEvent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } } /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public double getNumericalEvent() { - return numericalEvent_; + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - // optional bool boolean_event = 7; - public static final int BOOLEAN_EVENT_FIELD_NUMBER = 7; - private boolean booleanEvent_; + // optional bool event = 3; + public static final int EVENT_FIELD_NUMBER = 3; + private boolean event_; /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional bool event = 3;</code> */ - public boolean hasBooleanEvent() { - return ((bitField0_ & 0x00000040) == 0x00000040); + public boolean hasEvent() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional bool event = 3;</code> */ - public boolean getBooleanEvent() { - return booleanEvent_; + public boolean getEvent() { + return event_; } private void initFields() { name_ = ""; - stringValue_ = ""; - numericalValue_ = 0D; - booleanValue_ = false; - stringEvent_ = ""; - numericalEvent_ = 0D; - booleanEvent_ = false; + value_ = ""; + event_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1869,22 +5147,10 @@ public final class BinaryMessages { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStringValueBytes()); + output.writeBytes(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeDouble(3, numericalValue_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, booleanValue_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getStringEventBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeDouble(6, numericalEvent_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, booleanEvent_); + output.writeBool(3, event_); } getUnknownFields().writeTo(output); } @@ -1901,27 +5167,11 @@ public final class BinaryMessages { } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStringValueBytes()); + .computeBytesSize(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, numericalValue_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, booleanValue_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getStringEventBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, numericalEvent_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, booleanEvent_); + .computeBoolSize(3, event_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1935,53 +5185,53 @@ public final class BinaryMessages { return super.writeReplace(); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(byte[] data) + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom(java.io.InputStream input) + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom(java.io.InputStream input) + public static com.openxc.BinaryMessages.EventedBooleanMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static com.openxc.BinaryMessages.TranslatedMessage parseDelimitedFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.openxc.BinaryMessages.TranslatedMessage parseFrom( + public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1990,7 +5240,7 @@ public final class BinaryMessages { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.openxc.BinaryMessages.TranslatedMessage prototype) { + public static Builder newBuilder(com.openxc.BinaryMessages.EventedBooleanMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -2002,24 +5252,24 @@ public final class BinaryMessages { return builder; } /** - * Protobuf type {@code openxc.TranslatedMessage} + * Protobuf type {@code openxc.EventedBooleanMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> - implements com.openxc.BinaryMessages.TranslatedMessageOrBuilder { + implements com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor; + return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_fieldAccessorTable + return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.openxc.BinaryMessages.TranslatedMessage.class, com.openxc.BinaryMessages.TranslatedMessage.Builder.class); + com.openxc.BinaryMessages.EventedBooleanMessage.class, com.openxc.BinaryMessages.EventedBooleanMessage.Builder.class); } - // Construct using com.openxc.BinaryMessages.TranslatedMessage.newBuilder() + // Construct using com.openxc.BinaryMessages.EventedBooleanMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2041,18 +5291,10 @@ public final class BinaryMessages { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - stringValue_ = ""; + value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - numericalValue_ = 0D; + event_ = false; bitField0_ = (bitField0_ & ~0x00000004); - booleanValue_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - stringEvent_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - numericalEvent_ = 0D; - bitField0_ = (bitField0_ & ~0x00000020); - booleanEvent_ = false; - bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -2062,23 +5304,23 @@ public final class BinaryMessages { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.openxc.BinaryMessages.internal_static_openxc_TranslatedMessage_descriptor; + return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor; } - public com.openxc.BinaryMessages.TranslatedMessage getDefaultInstanceForType() { - return com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance(); + public com.openxc.BinaryMessages.EventedBooleanMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance(); } - public com.openxc.BinaryMessages.TranslatedMessage build() { - com.openxc.BinaryMessages.TranslatedMessage result = buildPartial(); + public com.openxc.BinaryMessages.EventedBooleanMessage build() { + com.openxc.BinaryMessages.EventedBooleanMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.openxc.BinaryMessages.TranslatedMessage buildPartial() { - com.openxc.BinaryMessages.TranslatedMessage result = new com.openxc.BinaryMessages.TranslatedMessage(this); + public com.openxc.BinaryMessages.EventedBooleanMessage buildPartial() { + com.openxc.BinaryMessages.EventedBooleanMessage result = new com.openxc.BinaryMessages.EventedBooleanMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -2088,69 +5330,39 @@ public final class BinaryMessages { if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.stringValue_ = stringValue_; + result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } - result.numericalValue_ = numericalValue_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.booleanValue_ = booleanValue_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.stringEvent_ = stringEvent_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.numericalEvent_ = numericalEvent_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.booleanEvent_ = booleanEvent_; + result.event_ = event_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.openxc.BinaryMessages.TranslatedMessage) { - return mergeFrom((com.openxc.BinaryMessages.TranslatedMessage)other); + if (other instanceof com.openxc.BinaryMessages.EventedBooleanMessage) { + return mergeFrom((com.openxc.BinaryMessages.EventedBooleanMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.openxc.BinaryMessages.TranslatedMessage other) { - if (other == com.openxc.BinaryMessages.TranslatedMessage.getDefaultInstance()) return this; + public Builder mergeFrom(com.openxc.BinaryMessages.EventedBooleanMessage other) { + if (other == com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } - if (other.hasStringValue()) { + if (other.hasValue()) { bitField0_ |= 0x00000002; - stringValue_ = other.stringValue_; + value_ = other.value_; onChanged(); } - if (other.hasNumericalValue()) { - setNumericalValue(other.getNumericalValue()); - } - if (other.hasBooleanValue()) { - setBooleanValue(other.getBooleanValue()); - } - if (other.hasStringEvent()) { - bitField0_ |= 0x00000010; - stringEvent_ = other.stringEvent_; - onChanged(); - } - if (other.hasNumericalEvent()) { - setNumericalEvent(other.getNumericalEvent()); - } - if (other.hasBooleanEvent()) { - setBooleanEvent(other.getBooleanEvent()); + if (other.hasEvent()) { + setEvent(other.getEvent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -2164,11 +5376,11 @@ public final class BinaryMessages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.openxc.BinaryMessages.TranslatedMessage parsedMessage = null; + com.openxc.BinaryMessages.EventedBooleanMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.openxc.BinaryMessages.TranslatedMessage) e.getUnfinishedMessage(); + parsedMessage = (com.openxc.BinaryMessages.EventedBooleanMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2253,295 +5465,830 @@ public final class BinaryMessages { return this; } - // optional string string_value = 2; - private java.lang.Object stringValue_ = ""; + // optional string value = 2; + private java.lang.Object value_ = ""; /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public boolean hasStringValue() { + public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; + public java.lang.String getValue() { + java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); - stringValue_ = s; + value_ = s; return s; } else { return (java.lang.String) ref; } } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; + getValueBytes() { + java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - stringValue_ = b; + value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public Builder setStringValue( + public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - stringValue_ = value; + value_ = value; onChanged(); return this; } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public Builder clearStringValue() { + public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); - stringValue_ = getDefaultInstance().getStringValue(); + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * <code>optional string string_value = 2;</code> + * <code>optional string value = 2;</code> */ - public Builder setStringValueBytes( + public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - stringValue_ = value; + value_ = value; onChanged(); return this; } - // optional double numerical_value = 3; - private double numericalValue_ ; + // optional bool event = 3; + private boolean event_ ; /** - * <code>optional double numerical_value = 3;</code> + * <code>optional bool event = 3;</code> */ - public boolean hasNumericalValue() { + public boolean hasEvent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional bool event = 3;</code> */ - public double getNumericalValue() { - return numericalValue_; + public boolean getEvent() { + return event_; } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional bool event = 3;</code> */ - public Builder setNumericalValue(double value) { + public Builder setEvent(boolean value) { bitField0_ |= 0x00000004; - numericalValue_ = value; + event_ = value; onChanged(); return this; } /** - * <code>optional double numerical_value = 3;</code> + * <code>optional bool event = 3;</code> */ - public Builder clearNumericalValue() { + public Builder clearEvent() { bitField0_ = (bitField0_ & ~0x00000004); - numericalValue_ = 0D; + event_ = false; onChanged(); return this; } - // optional bool boolean_value = 4; - private boolean booleanValue_ ; - /** - * <code>optional bool boolean_value = 4;</code> - */ - public boolean hasBooleanValue() { - return ((bitField0_ & 0x00000008) == 0x00000008); + // @@protoc_insertion_point(builder_scope:openxc.EventedBooleanMessage) + } + + static { + defaultInstance = new EventedBooleanMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:openxc.EventedBooleanMessage) + } + + public interface EventedNumericMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + /** + * <code>optional string name = 1;</code> + */ + boolean hasName(); + /** + * <code>optional string name = 1;</code> + */ + java.lang.String getName(); + /** + * <code>optional string name = 1;</code> + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional string value = 2; + /** + * <code>optional string value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional string value = 2;</code> + */ + java.lang.String getValue(); + /** + * <code>optional string value = 2;</code> + */ + com.google.protobuf.ByteString + getValueBytes(); + + // optional double event = 3; + /** + * <code>optional double event = 3;</code> + */ + boolean hasEvent(); + /** + * <code>optional double event = 3;</code> + */ + double getEvent(); + } + /** + * Protobuf type {@code openxc.EventedNumericMessage} + */ + public static final class EventedNumericMessage extends + com.google.protobuf.GeneratedMessage + implements EventedNumericMessageOrBuilder { + // Use EventedNumericMessage.newBuilder() to construct. + private EventedNumericMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private EventedNumericMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final EventedNumericMessage defaultInstance; + public static EventedNumericMessage getDefaultInstance() { + return defaultInstance; + } + + public EventedNumericMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventedNumericMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + case 25: { + bitField0_ |= 0x00000004; + event_ = input.readDouble(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - * <code>optional bool boolean_value = 4;</code> - */ - public boolean getBooleanValue() { - return booleanValue_; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.EventedNumericMessage.class, com.openxc.BinaryMessages.EventedNumericMessage.Builder.class); + } + + public static com.google.protobuf.Parser<EventedNumericMessage> PARSER = + new com.google.protobuf.AbstractParser<EventedNumericMessage>() { + public EventedNumericMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventedNumericMessage(input, extensionRegistry); } - /** - * <code>optional bool boolean_value = 4;</code> - */ - public Builder setBooleanValue(boolean value) { - bitField0_ |= 0x00000008; - booleanValue_ = value; - onChanged(); + }; + + @java.lang.Override + public com.google.protobuf.Parser<EventedNumericMessage> getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * <code>optional string name = 1;</code> + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string value = 2; + public static final int VALUE_FIELD_NUMBER = 2; + private java.lang.Object value_; + /** + * <code>optional string value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + * <code>optional string value = 2;</code> + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional double event = 3; + public static final int EVENT_FIELD_NUMBER = 3; + private double event_; + /** + * <code>optional double event = 3;</code> + */ + public boolean hasEvent() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional double event = 3;</code> + */ + public double getEvent() { + return event_; + } + + private void initFields() { + name_ = ""; + value_ = ""; + event_ = 0D; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getValueBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeDouble(3, event_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getValueBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, event_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.openxc.BinaryMessages.EventedNumericMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code openxc.EventedNumericMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements com.openxc.BinaryMessages.EventedNumericMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.openxc.BinaryMessages.EventedNumericMessage.class, com.openxc.BinaryMessages.EventedNumericMessage.Builder.class); + } + + // Construct using com.openxc.BinaryMessages.EventedNumericMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + event_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); return this; } - /** - * <code>optional bool boolean_value = 4;</code> - */ - public Builder clearBooleanValue() { - bitField0_ = (bitField0_ & ~0x00000008); - booleanValue_ = false; - onChanged(); + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor; + } + + public com.openxc.BinaryMessages.EventedNumericMessage getDefaultInstanceForType() { + return com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance(); + } + + public com.openxc.BinaryMessages.EventedNumericMessage build() { + com.openxc.BinaryMessages.EventedNumericMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.openxc.BinaryMessages.EventedNumericMessage buildPartial() { + com.openxc.BinaryMessages.EventedNumericMessage result = new com.openxc.BinaryMessages.EventedNumericMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.event_ = event_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.openxc.BinaryMessages.EventedNumericMessage) { + return mergeFrom((com.openxc.BinaryMessages.EventedNumericMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.openxc.BinaryMessages.EventedNumericMessage other) { + if (other == com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + if (other.hasEvent()) { + setEvent(other.getEvent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.openxc.BinaryMessages.EventedNumericMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.openxc.BinaryMessages.EventedNumericMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; - // optional string string_event = 5; - private java.lang.Object stringEvent_ = ""; + // optional string name = 1; + private java.lang.Object name_ = ""; /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public boolean hasStringEvent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public java.lang.String getStringEvent() { - java.lang.Object ref = stringEvent_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); - stringEvent_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString - getStringEventBytes() { - java.lang.Object ref = stringEvent_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - stringEvent_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public Builder setStringEvent( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - stringEvent_ = value; + bitField0_ |= 0x00000001; + name_ = value; onChanged(); return this; } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public Builder clearStringEvent() { - bitField0_ = (bitField0_ & ~0x00000010); - stringEvent_ = getDefaultInstance().getStringEvent(); + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * <code>optional string string_event = 5;</code> + * <code>optional string name = 1;</code> */ - public Builder setStringEventBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - stringEvent_ = value; + bitField0_ |= 0x00000001; + name_ = value; onChanged(); return this; } - // optional double numerical_event = 6; - private double numericalEvent_ ; + // optional string value = 2; + private java.lang.Object value_ = ""; /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public boolean hasNumericalEvent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public double getNumericalEvent() { - return numericalEvent_; + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public Builder setNumericalEvent(double value) { - bitField0_ |= 0x00000020; - numericalEvent_ = value; + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; onChanged(); return this; } /** - * <code>optional double numerical_event = 6;</code> + * <code>optional string value = 2;</code> */ - public Builder clearNumericalEvent() { - bitField0_ = (bitField0_ & ~0x00000020); - numericalEvent_ = 0D; + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; onChanged(); return this; } - // optional bool boolean_event = 7; - private boolean booleanEvent_ ; + // optional double event = 3; + private double event_ ; /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional double event = 3;</code> */ - public boolean hasBooleanEvent() { - return ((bitField0_ & 0x00000040) == 0x00000040); + public boolean hasEvent() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional double event = 3;</code> */ - public boolean getBooleanEvent() { - return booleanEvent_; + public double getEvent() { + return event_; } /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional double event = 3;</code> */ - public Builder setBooleanEvent(boolean value) { - bitField0_ |= 0x00000040; - booleanEvent_ = value; + public Builder setEvent(double value) { + bitField0_ |= 0x00000004; + event_ = value; onChanged(); return this; } /** - * <code>optional bool boolean_event = 7;</code> + * <code>optional double event = 3;</code> */ - public Builder clearBooleanEvent() { - bitField0_ = (bitField0_ & ~0x00000040); - booleanEvent_ = false; + public Builder clearEvent() { + bitField0_ = (bitField0_ & ~0x00000004); + event_ = 0D; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:openxc.TranslatedMessage) + // @@protoc_insertion_point(builder_scope:openxc.EventedNumericMessage) } static { - defaultInstance = new TranslatedMessage(true); + defaultInstance = new EventedNumericMessage(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:openxc.TranslatedMessage) + // @@protoc_insertion_point(class_scope:openxc.EventedNumericMessage) } private static com.google.protobuf.Descriptors.Descriptor @@ -2555,10 +6302,35 @@ public final class BinaryMessages { com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_openxc_RawMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_openxc_TranslatedMessage_descriptor; + internal_static_openxc_StringMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_openxc_StringMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_openxc_NumericMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_openxc_NumericMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_openxc_BooleanMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_openxc_BooleanMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_openxc_EventedStringMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_openxc_EventedStringMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_openxc_EventedBooleanMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_openxc_EventedBooleanMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_openxc_EventedNumericMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_openxc_TranslatedMessage_fieldAccessorTable; + internal_static_openxc_EventedNumericMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2568,18 +6340,31 @@ public final class BinaryMessages { descriptor; static { java.lang.String[] descriptorData = { - "\n\014openxc.proto\022\006openxc\"\274\001\n\016VehicleMessag" + + "\n\014openxc.proto\022\006openxc\"\232\004\n\016VehicleMessag" + "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." + "Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" + - "ssage\0225\n\022translated_message\030\003 \001(\0132\031.open" + - "xc.TranslatedMessage\"\037\n\004Type\022\007\n\003RAW\020\001\022\016\n" + - "\nTRANSLATED\020\002\";\n\nRawMessage\022\013\n\003bus\030\001 \001(\005" + - "\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\004\"\255\001\n\021T" + - "ranslatedMessage\022\014\n\004name\030\001 \001(\t\022\024\n\014string" + - "_value\030\002 \001(\t\022\027\n\017numerical_value\030\003 \001(\001\022\025\n" + - "\rboolean_value\030\004 \001(\010\022\024\n\014string_event\030\005 \001", - "(\t\022\027\n\017numerical_event\030\006 \001(\001\022\025\n\rboolean_e" + - "vent\030\007 \001(\010B\034\n\ncom.openxcB\016BinaryMessages" + "ssage\022-\n\016string_message\030\003 \001(\0132\025.openxc.S" + + "tringMessage\022/\n\017numeric_message\030\004 \001(\0132\026." + + "openxc.NumericMessage\022/\n\017boolean_message" + + "\030\005 \001(\0132\026.openxc.BooleanMessage\022<\n\026evente" + + "d_string_message\030\006 \001(\0132\034.openxc.EventedS" + + "tringMessage\022>\n\027evented_boolean_message\030" + + "\007 \001(\0132\035.openxc.EventedBooleanMessage\022>\n\027", + "evented_numeric_message\030\010 \001(\0132\035.openxc.E" + + "ventedNumericMessage\"e\n\004Type\022\007\n\003RAW\020\001\022\n\n" + + "\006STRING\020\002\022\010\n\004BOOL\020\003\022\007\n\003NUM\020\004\022\017\n\013EVENTED_" + + "NUM\020\005\022\022\n\016EVENTED_STRING\020\006\022\020\n\014EVENTED_BOO" + + "L\020\007\"-\n\nRawMessage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessag" + + "e_id\030\002 \001(\r\",\n\rStringMessage\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"-\n\016NumericMessage\022\014\n\004na" + + "me\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\"-\n\016BooleanMessag" + + "e\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\010\"B\n\024Evente" + + "dStringMessage\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 ", + "\001(\t\022\r\n\005event\030\003 \001(\t\"C\n\025EventedBooleanMess" + + "age\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\r\n\005even" + + "t\030\003 \001(\010\"C\n\025EventedNumericMessage\022\014\n\004name" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\r\n\005event\030\003 \001(\001B\034\n\n" + + "com.openxcB\016BinaryMessages" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -2591,19 +6376,49 @@ public final class BinaryMessages { internal_static_openxc_VehicleMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_openxc_VehicleMessage_descriptor, - new java.lang.String[] { "Type", "RawMessage", "TranslatedMessage", }); + new java.lang.String[] { "Type", "RawMessage", "StringMessage", "NumericMessage", "BooleanMessage", "EventedStringMessage", "EventedBooleanMessage", "EventedNumericMessage", }); internal_static_openxc_RawMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_openxc_RawMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_openxc_RawMessage_descriptor, - new java.lang.String[] { "Bus", "MessageId", "Data", }); - internal_static_openxc_TranslatedMessage_descriptor = + new java.lang.String[] { "Bus", "MessageId", }); + internal_static_openxc_StringMessage_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_openxc_TranslatedMessage_fieldAccessorTable = new + internal_static_openxc_StringMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_openxc_StringMessage_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_openxc_NumericMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_openxc_NumericMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_openxc_NumericMessage_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_openxc_BooleanMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_openxc_BooleanMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_openxc_BooleanMessage_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_openxc_EventedStringMessage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_openxc_EventedStringMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_openxc_EventedStringMessage_descriptor, + new java.lang.String[] { "Name", "Value", "Event", }); + internal_static_openxc_EventedBooleanMessage_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_openxc_EventedBooleanMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_openxc_EventedBooleanMessage_descriptor, + new java.lang.String[] { "Name", "Value", "Event", }); + internal_static_openxc_EventedNumericMessage_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_openxc_EventedNumericMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_openxc_TranslatedMessage_descriptor, - new java.lang.String[] { "Name", "StringValue", "NumericalValue", "BooleanValue", "StringEvent", "NumericalEvent", "BooleanEvent", }); + internal_static_openxc_EventedNumericMessage_descriptor, + new java.lang.String[] { "Name", "Value", "Event", }); return null; } }; |