summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbenchmark/proto/compare_sizes.py35
-rw-r--r--gen/cpp/openxc.pb54
-rw-r--r--gen/cpp/openxc.pb.c62
-rw-r--r--gen/cpp/openxc.pb.h136
-rw-r--r--gen/java/com/openxc/BinaryMessages.java4911
-rw-r--r--gen/python/openxc_pb2.py319
-rw-r--r--openxc.proto52
7 files changed, 4903 insertions, 666 deletions
diff --git a/benchmark/proto/compare_sizes.py b/benchmark/proto/compare_sizes.py
index e4ae6691..1fb96030 100755
--- a/benchmark/proto/compare_sizes.py
+++ b/benchmark/proto/compare_sizes.py
@@ -40,14 +40,35 @@ for trace_file in sys.argv[1:]:
message.raw_message.data = int(json_message['data'], 0)
total_raw_binary_size += len(message.SerializeToString())
else:
- message.type = openxc_pb2.VehicleMessage.TRANSLATED
- message.translated_message.name = json_message['name']
- if isinstance(json_message['value'], bool):
- message.translated_message.boolean_value = json_message['value']
- elif isinstance(json_message['value'], numbers.Number):
- message.translated_message.numerical_value = json_message['value']
+ if 'event' in json_message:
+ if isinstance(json_message['event'], bool):
+ message.type = openxc_pb2.VehicleMessage.EVENTED_BOOL
+ message.evented_boolean_message.name = json_message['name']
+ message.evented_boolean_message.value = json_message['value']
+ message.evented_boolean_message.event = json_message['event']
+ elif isinstance(json_message['event'], numbers.Number):
+ message.type = openxc_pb2.VehicleMessage.EVENTED_NUM
+ message.evented_numeric_message.name = json_message['name']
+ message.evented_numeric_message.value = json_message['value']
+ message.evented_numeric_message.event = json_message['event']
+ else:
+ message.type = openxc_pb2.VehicleMessage.EVENTED_STRING
+ message.evented_string_message.name = json_message['name']
+ message.evented_string_message.value = json_message['value']
+ message.evented_numeric_message.event = json_message['event']
else:
- message.translated_message.string_value = json_message['value']
+ if isinstance(json_message['value'], bool):
+ message.type = openxc_pb2.VehicleMessage.BOOL
+ message.boolean_message.name = json_message['name']
+ message.boolean_message.value = json_message['value']
+ elif isinstance(json_message['value'], numbers.Number):
+ message.type = openxc_pb2.VehicleMessage.NUM
+ message.numeric_message.name = json_message['name']
+ message.numeric_message.value = json_message['value']
+ else:
+ message.type = openxc_pb2.VehicleMessage.STRING
+ message.string_message.name = json_message['name']
+ message.string_message.value = json_message['value']
total_translated_json_size += len(json.dumps(json_message))
total_translated_binary_size += len(message.SerializeToString())
diff --git a/gen/cpp/openxc.pb b/gen/cpp/openxc.pb
index d4356e1c..7efe870c 100644
--- a/gen/cpp/openxc.pb
+++ b/gen/cpp/openxc.pb
@@ -1,27 +1,49 @@
-à
- openxc.protoopenxc"¼
+Ú
+ openxc.protoopenxc"š
VehicleMessage)
type (2.openxc.VehicleMessage.Type'
- raw_message ( 2.openxc.RawMessage5
-translated_message ( 2.openxc.TranslatedMessage"
+ raw_message ( 2.openxc.RawMessage-
+string_message ( 2.openxc.StringMessage/
+numeric_message ( 2.openxc.NumericMessage/
+boolean_message ( 2.openxc.BooleanMessage<
+evented_string_message ( 2.openxc.EventedStringMessage>
+evented_boolean_message ( 2.openxc.EventedBooleanMessage>
+evented_numeric_message ( 2.openxc.EventedNumericMessage"e
Type
-RAW
+RAW
-TRANSLATED";
+STRING
+BOOL
+NUM
+ EVENTED_NUM
+EVENTED_STRING
+ EVENTED_BOOL"-
RawMessage
bus (
-message_id ( 
-data ("­
-TranslatedMessage
-name ( 
- string_value ( 
-numerical_value (
- boolean_value (
- string_event ( 
-numerical_event (
- boolean_event (B
+message_id ( ",
+ StringMessage
+name ( 
+value ( "-
+NumericMessage
+name ( 
+value ("-
+BooleanMessage
+name ( 
+value ("B
+EventedStringMessage
+name ( 
+value ( 
+event ( "C
+EventedBooleanMessage
+name ( 
+value ( 
+event ("C
+EventedNumericMessage
+name ( 
+value ( 
+event (B
com.openxcBBinaryMessages \ No newline at end of file
diff --git a/gen/cpp/openxc.pb.c b/gen/cpp/openxc.pb.c
index 91667bf3..541c6b0c 100644
--- a/gen/cpp/openxc.pb.c
+++ b/gen/cpp/openxc.pb.c
@@ -1,43 +1,75 @@
/* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.2.4-dev at Wed Oct 9 14:26:13 2013. */
+/* Generated by nanopb-0.2.4-dev at Wed Oct 23 08:59:20 2013. */
#include "openxc.pb.h"
-const pb_field_t openxc_VehicleMessage_fields[4] = {
+const pb_field_t openxc_VehicleMessage_fields[9] = {
PB_FIELD2( 1, ENUM , OPTIONAL, STATIC, FIRST, openxc_VehicleMessage, type, type, 0),
PB_FIELD2( 2, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, raw_message, type, &openxc_RawMessage_fields),
- PB_FIELD2( 3, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, translated_message, raw_message, &openxc_TranslatedMessage_fields),
+ PB_FIELD2( 3, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, string_message, raw_message, &openxc_StringMessage_fields),
+ PB_FIELD2( 4, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, numeric_message, string_message, &openxc_NumericMessage_fields),
+ PB_FIELD2( 5, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, boolean_message, numeric_message, &openxc_BooleanMessage_fields),
+ PB_FIELD2( 6, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, evented_string_message, boolean_message, &openxc_EventedStringMessage_fields),
+ PB_FIELD2( 7, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, evented_boolean_message, evented_string_message, &openxc_EventedBooleanMessage_fields),
+ PB_FIELD2( 8, MESSAGE , OPTIONAL, STATIC, OTHER, openxc_VehicleMessage, evented_numeric_message, evented_boolean_message, &openxc_EventedNumericMessage_fields),
PB_LAST_FIELD
};
-const pb_field_t openxc_RawMessage_fields[4] = {
+const pb_field_t openxc_RawMessage_fields[3] = {
PB_FIELD2( 1, INT32 , OPTIONAL, STATIC, FIRST, openxc_RawMessage, bus, bus, 0),
PB_FIELD2( 2, UINT32 , OPTIONAL, STATIC, OTHER, openxc_RawMessage, message_id, bus, 0),
- PB_FIELD2( 3, UINT64 , OPTIONAL, STATIC, OTHER, openxc_RawMessage, data, message_id, 0),
PB_LAST_FIELD
};
-const pb_field_t openxc_TranslatedMessage_fields[8] = {
- PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_TranslatedMessage, name, name, 0),
- PB_FIELD2( 2, STRING , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, string_value, name, 0),
- PB_FIELD2( 3, DOUBLE , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, numerical_value, string_value, 0),
- PB_FIELD2( 4, BOOL , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, boolean_value, numerical_value, 0),
- PB_FIELD2( 5, STRING , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, string_event, boolean_value, 0),
- PB_FIELD2( 6, DOUBLE , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, numerical_event, string_event, 0),
- PB_FIELD2( 7, BOOL , OPTIONAL, STATIC, OTHER, openxc_TranslatedMessage, boolean_event, numerical_event, 0),
+const pb_field_t openxc_StringMessage_fields[3] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_StringMessage, name, name, 0),
+ PB_FIELD2( 2, STRING , OPTIONAL, STATIC, OTHER, openxc_StringMessage, value, name, 0),
+ PB_LAST_FIELD
+};
+
+const pb_field_t openxc_NumericMessage_fields[3] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_NumericMessage, name, name, 0),
+ PB_FIELD2( 2, DOUBLE , OPTIONAL, STATIC, OTHER, openxc_NumericMessage, value, name, 0),
+ PB_LAST_FIELD
+};
+
+const pb_field_t openxc_BooleanMessage_fields[3] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_BooleanMessage, name, name, 0),
+ PB_FIELD2( 2, BOOL , OPTIONAL, STATIC, OTHER, openxc_BooleanMessage, value, name, 0),
+ PB_LAST_FIELD
+};
+
+const pb_field_t openxc_EventedStringMessage_fields[4] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_EventedStringMessage, name, name, 0),
+ PB_FIELD2( 2, STRING , OPTIONAL, STATIC, OTHER, openxc_EventedStringMessage, value, name, 0),
+ PB_FIELD2( 3, STRING , OPTIONAL, STATIC, OTHER, openxc_EventedStringMessage, event, value, 0),
+ PB_LAST_FIELD
+};
+
+const pb_field_t openxc_EventedBooleanMessage_fields[4] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_EventedBooleanMessage, name, name, 0),
+ PB_FIELD2( 2, STRING , OPTIONAL, STATIC, OTHER, openxc_EventedBooleanMessage, value, name, 0),
+ PB_FIELD2( 3, BOOL , OPTIONAL, STATIC, OTHER, openxc_EventedBooleanMessage, event, value, 0),
+ PB_LAST_FIELD
+};
+
+const pb_field_t openxc_EventedNumericMessage_fields[4] = {
+ PB_FIELD2( 1, STRING , OPTIONAL, STATIC, FIRST, openxc_EventedNumericMessage, name, name, 0),
+ PB_FIELD2( 2, STRING , OPTIONAL, STATIC, OTHER, openxc_EventedNumericMessage, value, name, 0),
+ PB_FIELD2( 3, DOUBLE , OPTIONAL, STATIC, OTHER, openxc_EventedNumericMessage, event, value, 0),
PB_LAST_FIELD
};
/* Check that field information fits in pb_field_t */
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
-STATIC_ASSERT((pb_membersize(openxc_VehicleMessage, raw_message) < 256 && pb_membersize(openxc_VehicleMessage, translated_message) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_openxc_VehicleMessage_openxc_RawMessage_openxc_TranslatedMessage)
+STATIC_ASSERT((pb_membersize(openxc_VehicleMessage, raw_message) < 256 && pb_membersize(openxc_VehicleMessage, string_message) < 256 && pb_membersize(openxc_VehicleMessage, numeric_message) < 256 && pb_membersize(openxc_VehicleMessage, boolean_message) < 256 && pb_membersize(openxc_VehicleMessage, evented_string_message) < 256 && pb_membersize(openxc_VehicleMessage, evented_boolean_message) < 256 && pb_membersize(openxc_VehicleMessage, evented_numeric_message) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_openxc_VehicleMessage_openxc_RawMessage_openxc_StringMessage_openxc_NumericMessage_openxc_BooleanMessage_openxc_EventedStringMessage_openxc_EventedBooleanMessage_openxc_EventedNumericMessage)
#endif
#if !defined(PB_FIELD_32BIT)
-STATIC_ASSERT((pb_membersize(openxc_VehicleMessage, raw_message) < 65536 && pb_membersize(openxc_VehicleMessage, translated_message) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_openxc_VehicleMessage_openxc_RawMessage_openxc_TranslatedMessage)
+STATIC_ASSERT((pb_membersize(openxc_VehicleMessage, raw_message) < 65536 && pb_membersize(openxc_VehicleMessage, string_message) < 65536 && pb_membersize(openxc_VehicleMessage, numeric_message) < 65536 && pb_membersize(openxc_VehicleMessage, boolean_message) < 65536 && pb_membersize(openxc_VehicleMessage, evented_string_message) < 65536 && pb_membersize(openxc_VehicleMessage, evented_boolean_message) < 65536 && pb_membersize(openxc_VehicleMessage, evented_numeric_message) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_openxc_VehicleMessage_openxc_RawMessage_openxc_StringMessage_openxc_NumericMessage_openxc_BooleanMessage_openxc_EventedStringMessage_openxc_EventedBooleanMessage_openxc_EventedNumericMessage)
#endif
/* On some platforms (such as AVR), double is really float.
diff --git a/gen/cpp/openxc.pb.h b/gen/cpp/openxc.pb.h
index d278c681..389c09c9 100644
--- a/gen/cpp/openxc.pb.h
+++ b/gen/cpp/openxc.pb.h
@@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
-/* Generated by nanopb-0.2.4-dev at Wed Oct 9 14:26:13 2013. */
+/* Generated by nanopb-0.2.4-dev at Wed Oct 23 08:59:20 2013. */
#ifndef _PB_OPENXC_PB_H_
#define _PB_OPENXC_PB_H_
@@ -12,71 +12,137 @@ extern "C" {
/* Enum definitions */
typedef enum _openxc_VehicleMessage_Type {
openxc_VehicleMessage_Type_RAW = 1,
- openxc_VehicleMessage_Type_TRANSLATED = 2
+ openxc_VehicleMessage_Type_STRING = 2,
+ openxc_VehicleMessage_Type_BOOL = 3,
+ openxc_VehicleMessage_Type_NUM = 4,
+ openxc_VehicleMessage_Type_EVENTED_NUM = 5,
+ openxc_VehicleMessage_Type_EVENTED_STRING = 6,
+ openxc_VehicleMessage_Type_EVENTED_BOOL = 7
} openxc_VehicleMessage_Type;
/* Struct definitions */
+typedef struct _openxc_BooleanMessage {
+ bool has_name;
+ char name[100];
+ bool has_value;
+ bool value;
+} openxc_BooleanMessage;
+
+typedef struct _openxc_EventedBooleanMessage {
+ bool has_name;
+ char name[100];
+ bool has_value;
+ char value[100];
+ bool has_event;
+ bool event;
+} openxc_EventedBooleanMessage;
+
+typedef struct _openxc_EventedNumericMessage {
+ bool has_name;
+ char name[100];
+ bool has_value;
+ char value[100];
+ bool has_event;
+ double event;
+} openxc_EventedNumericMessage;
+
+typedef struct _openxc_EventedStringMessage {
+ bool has_name;
+ char name[100];
+ bool has_value;
+ char value[100];
+ bool has_event;
+ char event[100];
+} openxc_EventedStringMessage;
+
+typedef struct _openxc_NumericMessage {
+ bool has_name;
+ char name[100];
+ bool has_value;
+ double value;
+} openxc_NumericMessage;
+
typedef struct _openxc_RawMessage {
bool has_bus;
int32_t bus;
bool has_message_id;
uint32_t message_id;
- bool has_data;
- uint64_t data;
} openxc_RawMessage;
-typedef struct _openxc_TranslatedMessage {
+typedef struct _openxc_StringMessage {
bool has_name;
char name[100];
- bool has_string_value;
- char string_value[100];
- bool has_numerical_value;
- double numerical_value;
- bool has_boolean_value;
- bool boolean_value;
- bool has_string_event;
- char string_event[100];
- bool has_numerical_event;
- double numerical_event;
- bool has_boolean_event;
- bool boolean_event;
-} openxc_TranslatedMessage;
+ bool has_value;
+ char value[100];
+} openxc_StringMessage;
typedef struct _openxc_VehicleMessage {
bool has_type;
openxc_VehicleMessage_Type type;
bool has_raw_message;
openxc_RawMessage raw_message;
- bool has_translated_message;
- openxc_TranslatedMessage translated_message;
+ bool has_string_message;
+ openxc_StringMessage string_message;
+ bool has_numeric_message;
+ openxc_NumericMessage numeric_message;
+ bool has_boolean_message;
+ openxc_BooleanMessage boolean_message;
+ bool has_evented_string_message;
+ openxc_EventedStringMessage evented_string_message;
+ bool has_evented_boolean_message;
+ openxc_EventedBooleanMessage evented_boolean_message;
+ bool has_evented_numeric_message;
+ openxc_EventedNumericMessage evented_numeric_message;
} openxc_VehicleMessage;
/* Default values for struct fields */
/* Field tags (for use in manual encoding/decoding) */
+#define openxc_BooleanMessage_name_tag 1
+#define openxc_BooleanMessage_value_tag 2
+#define openxc_EventedBooleanMessage_name_tag 1
+#define openxc_EventedBooleanMessage_value_tag 2
+#define openxc_EventedBooleanMessage_event_tag 3
+#define openxc_EventedNumericMessage_name_tag 1
+#define openxc_EventedNumericMessage_value_tag 2
+#define openxc_EventedNumericMessage_event_tag 3
+#define openxc_EventedStringMessage_name_tag 1
+#define openxc_EventedStringMessage_value_tag 2
+#define openxc_EventedStringMessage_event_tag 3
+#define openxc_NumericMessage_name_tag 1
+#define openxc_NumericMessage_value_tag 2
#define openxc_RawMessage_bus_tag 1
#define openxc_RawMessage_message_id_tag 2
-#define openxc_RawMessage_data_tag 3
-#define openxc_TranslatedMessage_name_tag 1
-#define openxc_TranslatedMessage_string_value_tag 2
-#define openxc_TranslatedMessage_numerical_value_tag 3
-#define openxc_TranslatedMessage_boolean_value_tag 4
-#define openxc_TranslatedMessage_string_event_tag 5
-#define openxc_TranslatedMessage_numerical_event_tag 6
-#define openxc_TranslatedMessage_boolean_event_tag 7
+#define openxc_StringMessage_name_tag 1
+#define openxc_StringMessage_value_tag 2
#define openxc_VehicleMessage_type_tag 1
#define openxc_VehicleMessage_raw_message_tag 2
-#define openxc_VehicleMessage_translated_message_tag 3
+#define openxc_VehicleMessage_string_message_tag 3
+#define openxc_VehicleMessage_numeric_message_tag 4
+#define openxc_VehicleMessage_boolean_message_tag 5
+#define openxc_VehicleMessage_evented_string_message_tag 6
+#define openxc_VehicleMessage_evented_boolean_message_tag 7
+#define openxc_VehicleMessage_evented_numeric_message_tag 8
/* Struct field encoding specification for nanopb */
-extern const pb_field_t openxc_VehicleMessage_fields[4];
-extern const pb_field_t openxc_RawMessage_fields[4];
-extern const pb_field_t openxc_TranslatedMessage_fields[8];
+extern const pb_field_t openxc_VehicleMessage_fields[9];
+extern const pb_field_t openxc_RawMessage_fields[3];
+extern const pb_field_t openxc_StringMessage_fields[3];
+extern const pb_field_t openxc_NumericMessage_fields[3];
+extern const pb_field_t openxc_BooleanMessage_fields[3];
+extern const pb_field_t openxc_EventedStringMessage_fields[4];
+extern const pb_field_t openxc_EventedBooleanMessage_fields[4];
+extern const pb_field_t openxc_EventedNumericMessage_fields[4];
/* Maximum encoded size of messages (where known) */
-#define openxc_VehicleMessage_size 362
-#define openxc_RawMessage_size 23
-#define openxc_TranslatedMessage_size 328
+#define openxc_VehicleMessage_size 1180
+#define openxc_RawMessage_size 12
+#define openxc_StringMessage_size 204
+#define openxc_NumericMessage_size 111
+#define openxc_BooleanMessage_size 104
+#define openxc_EventedStringMessage_size 306
+#define openxc_EventedBooleanMessage_size 206
+#define openxc_EventedNumericMessage_size 213
#ifdef __cplusplus
} /* extern "C" */
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;
}
};
diff --git a/gen/python/openxc_pb2.py b/gen/python/openxc_pb2.py
index 5b311a2e..6c773033 100644
--- a/gen/python/openxc_pb2.py
+++ b/gen/python/openxc_pb2.py
@@ -13,7 +13,7 @@ from google.protobuf import descriptor_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='openxc.proto',
package='openxc',
- serialized_pb='\n\x0copenxc.proto\x12\x06openxc\"\xbc\x01\n\x0eVehicleMessage\x12)\n\x04type\x18\x01 \x01(\x0e\x32\x1b.openxc.VehicleMessage.Type\x12\'\n\x0braw_message\x18\x02 \x01(\x0b\x32\x12.openxc.RawMessage\x12\x35\n\x12translated_message\x18\x03 \x01(\x0b\x32\x19.openxc.TranslatedMessage\"\x1f\n\x04Type\x12\x07\n\x03RAW\x10\x01\x12\x0e\n\nTRANSLATED\x10\x02\";\n\nRawMessage\x12\x0b\n\x03\x62us\x18\x01 \x01(\x05\x12\x12\n\nmessage_id\x18\x02 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x04\"\xad\x01\n\x11TranslatedMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cstring_value\x18\x02 \x01(\t\x12\x17\n\x0fnumerical_value\x18\x03 \x01(\x01\x12\x15\n\rboolean_value\x18\x04 \x01(\x08\x12\x14\n\x0cstring_event\x18\x05 \x01(\t\x12\x17\n\x0fnumerical_event\x18\x06 \x01(\x01\x12\x15\n\rboolean_event\x18\x07 \x01(\x08\x42\x1c\n\ncom.openxcB\x0e\x42inaryMessages')
+ serialized_pb='\n\x0copenxc.proto\x12\x06openxc\"\x9a\x04\n\x0eVehicleMessage\x12)\n\x04type\x18\x01 \x01(\x0e\x32\x1b.openxc.VehicleMessage.Type\x12\'\n\x0braw_message\x18\x02 \x01(\x0b\x32\x12.openxc.RawMessage\x12-\n\x0estring_message\x18\x03 \x01(\x0b\x32\x15.openxc.StringMessage\x12/\n\x0fnumeric_message\x18\x04 \x01(\x0b\x32\x16.openxc.NumericMessage\x12/\n\x0f\x62oolean_message\x18\x05 \x01(\x0b\x32\x16.openxc.BooleanMessage\x12<\n\x16\x65vented_string_message\x18\x06 \x01(\x0b\x32\x1c.openxc.EventedStringMessage\x12>\n\x17\x65vented_boolean_message\x18\x07 \x01(\x0b\x32\x1d.openxc.EventedBooleanMessage\x12>\n\x17\x65vented_numeric_message\x18\x08 \x01(\x0b\x32\x1d.openxc.EventedNumericMessage\"e\n\x04Type\x12\x07\n\x03RAW\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\x12\x07\n\x03NUM\x10\x04\x12\x0f\n\x0b\x45VENTED_NUM\x10\x05\x12\x12\n\x0e\x45VENTED_STRING\x10\x06\x12\x10\n\x0c\x45VENTED_BOOL\x10\x07\"-\n\nRawMessage\x12\x0b\n\x03\x62us\x18\x01 \x01(\x05\x12\x12\n\nmessage_id\x18\x02 \x01(\r\",\n\rStringMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"-\n\x0eNumericMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01\"-\n\x0e\x42ooleanMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x08\"B\n\x14\x45ventedStringMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\r\n\x05\x65vent\x18\x03 \x01(\t\"C\n\x15\x45ventedBooleanMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\r\n\x05\x65vent\x18\x03 \x01(\x08\"C\n\x15\x45ventedNumericMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\r\n\x05\x65vent\x18\x03 \x01(\x01\x42\x1c\n\ncom.openxcB\x0e\x42inaryMessages')
@@ -28,14 +28,34 @@ _VEHICLEMESSAGE_TYPE = _descriptor.EnumDescriptor(
options=None,
type=None),
_descriptor.EnumValueDescriptor(
- name='TRANSLATED', index=1, number=2,
+ name='STRING', index=1, number=2,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='BOOL', index=2, number=3,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='NUM', index=3, number=4,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='EVENTED_NUM', index=4, number=5,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='EVENTED_STRING', index=5, number=6,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='EVENTED_BOOL', index=6, number=7,
options=None,
type=None),
],
containing_type=None,
options=None,
- serialized_start=182,
- serialized_end=213,
+ serialized_start=462,
+ serialized_end=563,
)
@@ -61,12 +81,47 @@ _VEHICLEMESSAGE = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='translated_message', full_name='openxc.VehicleMessage.translated_message', index=2,
+ name='string_message', full_name='openxc.VehicleMessage.string_message', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
+ _descriptor.FieldDescriptor(
+ name='numeric_message', full_name='openxc.VehicleMessage.numeric_message', index=3,
+ number=4, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='boolean_message', full_name='openxc.VehicleMessage.boolean_message', index=4,
+ number=5, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='evented_string_message', full_name='openxc.VehicleMessage.evented_string_message', index=5,
+ number=6, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='evented_boolean_message', full_name='openxc.VehicleMessage.evented_boolean_message', index=6,
+ number=7, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='evented_numeric_message', full_name='openxc.VehicleMessage.evented_numeric_message', index=7,
+ number=8, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
],
extensions=[
],
@@ -78,7 +133,7 @@ _VEHICLEMESSAGE = _descriptor.Descriptor(
is_extendable=False,
extension_ranges=[],
serialized_start=25,
- serialized_end=213,
+ serialized_end=563,
)
@@ -103,9 +158,72 @@ _RAWMESSAGE = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ extension_ranges=[],
+ serialized_start=565,
+ serialized_end=610,
+)
+
+
+_STRINGMESSAGE = _descriptor.Descriptor(
+ name='StringMessage',
+ full_name='openxc.StringMessage',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name='name', full_name='openxc.StringMessage.name', index=0,
+ number=1, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='value', full_name='openxc.StringMessage.value', index=1,
+ number=2, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ extension_ranges=[],
+ serialized_start=612,
+ serialized_end=656,
+)
+
+
+_NUMERICMESSAGE = _descriptor.Descriptor(
+ name='NumericMessage',
+ full_name='openxc.NumericMessage',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
_descriptor.FieldDescriptor(
- name='data', full_name='openxc.RawMessage.data', index=2,
- number=3, type=4, cpp_type=4, label=1,
+ name='name', full_name='openxc.NumericMessage.name', index=0,
+ number=1, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='value', full_name='openxc.NumericMessage.value', index=1,
+ number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
@@ -119,64 +237,155 @@ _RAWMESSAGE = _descriptor.Descriptor(
options=None,
is_extendable=False,
extension_ranges=[],
- serialized_start=215,
- serialized_end=274,
+ serialized_start=658,
+ serialized_end=703,
+)
+
+
+_BOOLEANMESSAGE = _descriptor.Descriptor(
+ name='BooleanMessage',
+ full_name='openxc.BooleanMessage',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name='name', full_name='openxc.BooleanMessage.name', index=0,
+ number=1, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='value', full_name='openxc.BooleanMessage.value', index=1,
+ number=2, type=8, cpp_type=7, label=1,
+ has_default_value=False, default_value=False,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ extension_ranges=[],
+ serialized_start=705,
+ serialized_end=750,
)
-_TRANSLATEDMESSAGE = _descriptor.Descriptor(
- name='TranslatedMessage',
- full_name='openxc.TranslatedMessage',
+_EVENTEDSTRINGMESSAGE = _descriptor.Descriptor(
+ name='EventedStringMessage',
+ full_name='openxc.EventedStringMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
- name='name', full_name='openxc.TranslatedMessage.name', index=0,
+ name='name', full_name='openxc.EventedStringMessage.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=unicode("", "utf-8"),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='string_value', full_name='openxc.TranslatedMessage.string_value', index=1,
+ name='value', full_name='openxc.EventedStringMessage.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=unicode("", "utf-8"),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='numerical_value', full_name='openxc.TranslatedMessage.numerical_value', index=2,
- number=3, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=0,
+ name='event', full_name='openxc.EventedStringMessage.event', index=2,
+ number=3, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ extension_ranges=[],
+ serialized_start=752,
+ serialized_end=818,
+)
+
+
+_EVENTEDBOOLEANMESSAGE = _descriptor.Descriptor(
+ name='EventedBooleanMessage',
+ full_name='openxc.EventedBooleanMessage',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
_descriptor.FieldDescriptor(
- name='boolean_value', full_name='openxc.TranslatedMessage.boolean_value', index=3,
- number=4, type=8, cpp_type=7, label=1,
+ name='name', full_name='openxc.EventedBooleanMessage.name', index=0,
+ number=1, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='value', full_name='openxc.EventedBooleanMessage.value', index=1,
+ number=2, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='event', full_name='openxc.EventedBooleanMessage.event', index=2,
+ number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ extension_ranges=[],
+ serialized_start=820,
+ serialized_end=887,
+)
+
+
+_EVENTEDNUMERICMESSAGE = _descriptor.Descriptor(
+ name='EventedNumericMessage',
+ full_name='openxc.EventedNumericMessage',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
_descriptor.FieldDescriptor(
- name='string_event', full_name='openxc.TranslatedMessage.string_event', index=4,
- number=5, type=9, cpp_type=9, label=1,
+ name='name', full_name='openxc.EventedNumericMessage.name', index=0,
+ number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=unicode("", "utf-8"),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='numerical_event', full_name='openxc.TranslatedMessage.numerical_event', index=5,
- number=6, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=0,
+ name='value', full_name='openxc.EventedNumericMessage.value', index=1,
+ number=2, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='boolean_event', full_name='openxc.TranslatedMessage.boolean_event', index=6,
- number=7, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
+ name='event', full_name='openxc.EventedNumericMessage.event', index=2,
+ number=3, type=1, cpp_type=5, label=1,
+ has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
@@ -189,17 +398,27 @@ _TRANSLATEDMESSAGE = _descriptor.Descriptor(
options=None,
is_extendable=False,
extension_ranges=[],
- serialized_start=277,
- serialized_end=450,
+ serialized_start=889,
+ serialized_end=956,
)
_VEHICLEMESSAGE.fields_by_name['type'].enum_type = _VEHICLEMESSAGE_TYPE
_VEHICLEMESSAGE.fields_by_name['raw_message'].message_type = _RAWMESSAGE
-_VEHICLEMESSAGE.fields_by_name['translated_message'].message_type = _TRANSLATEDMESSAGE
+_VEHICLEMESSAGE.fields_by_name['string_message'].message_type = _STRINGMESSAGE
+_VEHICLEMESSAGE.fields_by_name['numeric_message'].message_type = _NUMERICMESSAGE
+_VEHICLEMESSAGE.fields_by_name['boolean_message'].message_type = _BOOLEANMESSAGE
+_VEHICLEMESSAGE.fields_by_name['evented_string_message'].message_type = _EVENTEDSTRINGMESSAGE
+_VEHICLEMESSAGE.fields_by_name['evented_boolean_message'].message_type = _EVENTEDBOOLEANMESSAGE
+_VEHICLEMESSAGE.fields_by_name['evented_numeric_message'].message_type = _EVENTEDNUMERICMESSAGE
_VEHICLEMESSAGE_TYPE.containing_type = _VEHICLEMESSAGE;
DESCRIPTOR.message_types_by_name['VehicleMessage'] = _VEHICLEMESSAGE
DESCRIPTOR.message_types_by_name['RawMessage'] = _RAWMESSAGE
-DESCRIPTOR.message_types_by_name['TranslatedMessage'] = _TRANSLATEDMESSAGE
+DESCRIPTOR.message_types_by_name['StringMessage'] = _STRINGMESSAGE
+DESCRIPTOR.message_types_by_name['NumericMessage'] = _NUMERICMESSAGE
+DESCRIPTOR.message_types_by_name['BooleanMessage'] = _BOOLEANMESSAGE
+DESCRIPTOR.message_types_by_name['EventedStringMessage'] = _EVENTEDSTRINGMESSAGE
+DESCRIPTOR.message_types_by_name['EventedBooleanMessage'] = _EVENTEDBOOLEANMESSAGE
+DESCRIPTOR.message_types_by_name['EventedNumericMessage'] = _EVENTEDNUMERICMESSAGE
class VehicleMessage(_message.Message):
__metaclass__ = _reflection.GeneratedProtocolMessageType
@@ -213,11 +432,41 @@ class RawMessage(_message.Message):
# @@protoc_insertion_point(class_scope:openxc.RawMessage)
-class TranslatedMessage(_message.Message):
+class StringMessage(_message.Message):
+ __metaclass__ = _reflection.GeneratedProtocolMessageType
+ DESCRIPTOR = _STRINGMESSAGE
+
+ # @@protoc_insertion_point(class_scope:openxc.StringMessage)
+
+class NumericMessage(_message.Message):
+ __metaclass__ = _reflection.GeneratedProtocolMessageType
+ DESCRIPTOR = _NUMERICMESSAGE
+
+ # @@protoc_insertion_point(class_scope:openxc.NumericMessage)
+
+class BooleanMessage(_message.Message):
+ __metaclass__ = _reflection.GeneratedProtocolMessageType
+ DESCRIPTOR = _BOOLEANMESSAGE
+
+ # @@protoc_insertion_point(class_scope:openxc.BooleanMessage)
+
+class EventedStringMessage(_message.Message):
+ __metaclass__ = _reflection.GeneratedProtocolMessageType
+ DESCRIPTOR = _EVENTEDSTRINGMESSAGE
+
+ # @@protoc_insertion_point(class_scope:openxc.EventedStringMessage)
+
+class EventedBooleanMessage(_message.Message):
+ __metaclass__ = _reflection.GeneratedProtocolMessageType
+ DESCRIPTOR = _EVENTEDBOOLEANMESSAGE
+
+ # @@protoc_insertion_point(class_scope:openxc.EventedBooleanMessage)
+
+class EventedNumericMessage(_message.Message):
__metaclass__ = _reflection.GeneratedProtocolMessageType
- DESCRIPTOR = _TRANSLATEDMESSAGE
+ DESCRIPTOR = _EVENTEDNUMERICMESSAGE
- # @@protoc_insertion_point(class_scope:openxc.TranslatedMessage)
+ # @@protoc_insertion_point(class_scope:openxc.EventedNumericMessage)
DESCRIPTOR.has_options = True
diff --git a/openxc.proto b/openxc.proto
index 9f9046eb..54133432 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -4,30 +4,62 @@ option java_package = "com.openxc";
option java_outer_classname = "BinaryMessages";
message VehicleMessage {
- enum Type { RAW = 1; TRANSLATED = 2; }
+ enum Type { RAW = 1;
+ STRING = 2;
+ BOOL = 3;
+ NUM = 4;
+ EVENTED_NUM = 5;
+ EVENTED_STRING = 6;
+ EVENTED_BOOL = 7;
+ }
optional Type type = 1;
optional RawMessage raw_message = 2;
- optional TranslatedMessage translated_message = 3;
+ optional StringMessage string_message = 3;
+ optional NumericMessage numeric_message = 4;
+ optional BooleanMessage boolean_message = 5;
+ optional EventedStringMessage evented_string_message = 6;
+ optional EventedBooleanMessage evented_boolean_message = 7;
+ optional EventedNumericMessage evented_numeric_message = 8;
}
message RawMessage {
optional int32 bus = 1;
optional uint32 message_id = 2;
- optional uint64 data = 3;
}
-message TranslatedMessage {
+message StringMessage {
optional string name = 1;
+ optional string value = 2;
+}
- optional string string_value = 2;
- optional double numerical_value = 3;
- optional bool boolean_value = 4;
+message NumericMessage {
+ optional string name = 1;
+ optional double value = 2;
+}
- optional string string_event = 5;
- optional double numerical_event = 6;
- optional bool boolean_event = 7;
+message BooleanMessage {
+ optional string name = 1;
+ optional bool value = 2;
+}
+
+message EventedStringMessage {
+ optional string name = 1;
+ optional string value = 2;
+ optional string event = 3;
+}
+
+message EventedBooleanMessage {
+ optional string name = 1;
+ optional string value = 2;
+ optional bool event = 3;
+}
+
+message EventedNumericMessage {
+ optional string name = 1;
+ optional string value = 2;
+ optional double event = 3;
}
// TODO we should also consider having an enum type, having each specific