summaryrefslogtreecommitdiffstats
path: root/gen/java/com
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-17 16:38:23 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-17 16:38:23 -0500
commit6f4799ca62b964e5626d9b22c4d292e6bd378d57 (patch)
tree6f1998a6ce3fff0a8730f89ffe5a5017fb523301 /gen/java/com
parentd5d62371b4b6b2c2c7211aef55a3a967540948fe (diff)
Store raw CAN payload in bytes instead of uint64_t.
Diffstat (limited to 'gen/java/com')
-rw-r--r--gen/java/com/openxc/BinaryMessages.java55
1 files changed, 29 insertions, 26 deletions
diff --git a/gen/java/com/openxc/BinaryMessages.java b/gen/java/com/openxc/BinaryMessages.java
index 495925b1..2962fb65 100644
--- a/gen/java/com/openxc/BinaryMessages.java
+++ b/gen/java/com/openxc/BinaryMessages.java
@@ -1103,15 +1103,15 @@ public final class BinaryMessages {
*/
int getMessageId();
- // optional uint64 data = 3;
+ // optional bytes data = 3;
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
boolean hasData();
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
- long getData();
+ com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code openxc.RawMessage}
@@ -1174,9 +1174,9 @@ public final class BinaryMessages {
messageId_ = input.readUInt32();
break;
}
- case 24: {
+ case 26: {
bitField0_ |= 0x00000004;
- data_ = input.readUInt64();
+ data_ = input.readBytes();
break;
}
}
@@ -1251,26 +1251,26 @@ public final class BinaryMessages {
return messageId_;
}
- // optional uint64 data = 3;
+ // optional bytes data = 3;
public static final int DATA_FIELD_NUMBER = 3;
- private long data_;
+ private com.google.protobuf.ByteString data_;
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
- public long getData() {
+ public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
bus_ = 0;
messageId_ = 0;
- data_ = 0L;
+ data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
@@ -1291,7 +1291,7 @@ public final class BinaryMessages {
output.writeUInt32(2, messageId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeUInt64(3, data_);
+ output.writeBytes(3, data_);
}
getUnknownFields().writeTo(output);
}
@@ -1312,7 +1312,7 @@ public final class BinaryMessages {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(3, data_);
+ .computeBytesSize(3, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -1434,7 +1434,7 @@ public final class BinaryMessages {
bitField0_ = (bitField0_ & ~0x00000001);
messageId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
- data_ = 0L;
+ data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -1594,35 +1594,38 @@ public final class BinaryMessages {
return this;
}
- // optional uint64 data = 3;
- private long data_ ;
+ // optional bytes data = 3;
+ private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
- public long getData() {
+ public com.google.protobuf.ByteString getData() {
return data_;
}
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
- public Builder setData(long value) {
- bitField0_ |= 0x00000004;
+ public Builder setData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
/**
- * <code>optional uint64 data = 3;</code>
+ * <code>optional bytes data = 3;</code>
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
- data_ = 0L;
+ data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@@ -3915,7 +3918,7 @@ public final class BinaryMessages {
"ge\030\004 \001(\0132\031.openxc.DiagnosticMessage\"/\n\004T" +
"ype\022\007\n\003RAW\020\001\022\016\n\nTRANSLATED\020\002\022\016\n\nDIAGNOST" +
"IC\020\003\";\n\nRawMessage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessa" +
- "ge_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\004\"\221\001\n\021Diagnostic" +
+ "ge_id\030\002 \001(\r\022\014\n\004data\030\003 \001(\014\"\221\001\n\021Diagnostic" +
"Message\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r",
"\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007success\030\005" +
" \001(\010\022\036\n\026negative_response_code\030\006 \001(\r\022\017\n\007" +