X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=gen%2Fjava%2Fcom%2Fopenxc%2FBinaryMessages.java;h=2e3cd56f388dc220954b40611ee5cc2b58119609;hb=28c895ef2fc4e152c506b0965d8f1830f848870e;hp=b3d1be4391abf0e5e5bf8fc176c79ed6902db31e;hpb=68ce7c57c76496efb28c385428b0e2d797d8df74;p=apps%2Fagl-service-can-low-level.git
diff --git a/gen/java/com/openxc/BinaryMessages.java b/gen/java/com/openxc/BinaryMessages.java
index b3d1be43..2e3cd56f 100644
--- a/gen/java/com/openxc/BinaryMessages.java
+++ b/gen/java/com/openxc/BinaryMessages.java
@@ -1514,6 +1514,16 @@ public final class BinaryMessages {
* optional bytes data = 3;
*/
com.google.protobuf.ByteString getData();
+
+ // optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ boolean hasFrameFormat();
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ com.openxc.BinaryMessages.RawMessage.FrameFormat getFrameFormat();
}
/**
* Protobuf type {@code openxc.RawMessage}
@@ -1581,6 +1591,17 @@ public final class BinaryMessages {
data_ = input.readBytes();
break;
}
+ case 32: {
+ int rawValue = input.readEnum();
+ com.openxc.BinaryMessages.RawMessage.FrameFormat value = com.openxc.BinaryMessages.RawMessage.FrameFormat.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(4, rawValue);
+ } else {
+ bitField0_ |= 0x00000008;
+ frameFormat_ = value;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1620,6 +1641,88 @@ public final class BinaryMessages {
return PARSER;
}
+ /**
+ * Protobuf enum {@code openxc.RawMessage.FrameFormat}
+ */
+ public enum FrameFormat
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * STANDARD = 1;
+ */
+ STANDARD(0, 1),
+ /**
+ * EXTENDED = 2;
+ */
+ EXTENDED(1, 2),
+ ;
+
+ /**
+ * STANDARD = 1;
+ */
+ public static final int STANDARD_VALUE = 1;
+ /**
+ * EXTENDED = 2;
+ */
+ public static final int EXTENDED_VALUE = 2;
+
+
+ public final int getNumber() { return value; }
+
+ public static FrameFormat valueOf(int value) {
+ switch (value) {
+ case 1: return STANDARD;
+ case 2: return EXTENDED;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public FrameFormat findValueByNumber(int number) {
+ return FrameFormat.valueOf(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.openxc.BinaryMessages.RawMessage.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final FrameFormat[] VALUES = values();
+
+ public static FrameFormat valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private FrameFormat(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:openxc.RawMessage.FrameFormat)
+ }
+
private int bitField0_;
// optional int32 bus = 1;
public static final int BUS_FIELD_NUMBER = 1;
@@ -1669,10 +1772,27 @@ public final class BinaryMessages {
return data_;
}
+ // optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ public static final int FRAME_FORMAT_FIELD_NUMBER = 4;
+ private com.openxc.BinaryMessages.RawMessage.FrameFormat frameFormat_;
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public boolean hasFrameFormat() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public com.openxc.BinaryMessages.RawMessage.FrameFormat getFrameFormat() {
+ return frameFormat_;
+ }
+
private void initFields() {
bus_ = 0;
messageId_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
+ frameFormat_ = com.openxc.BinaryMessages.RawMessage.FrameFormat.STANDARD;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
@@ -1695,6 +1815,9 @@ public final class BinaryMessages {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, data_);
}
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeEnum(4, frameFormat_.getNumber());
+ }
getUnknownFields().writeTo(output);
}
@@ -1716,6 +1839,10 @@ public final class BinaryMessages {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, frameFormat_.getNumber());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
@@ -1838,6 +1965,8 @@ public final class BinaryMessages {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
+ frameFormat_ = com.openxc.BinaryMessages.RawMessage.FrameFormat.STANDARD;
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -1878,6 +2007,10 @@ public final class BinaryMessages {
to_bitField0_ |= 0x00000004;
}
result.data_ = data_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.frameFormat_ = frameFormat_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1903,6 +2036,9 @@ public final class BinaryMessages {
if (other.hasData()) {
setData(other.getData());
}
+ if (other.hasFrameFormat()) {
+ setFrameFormat(other.getFrameFormat());
+ }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@@ -2032,6 +2168,42 @@ public final class BinaryMessages {
return this;
}
+ // optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ private com.openxc.BinaryMessages.RawMessage.FrameFormat frameFormat_ = com.openxc.BinaryMessages.RawMessage.FrameFormat.STANDARD;
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public boolean hasFrameFormat() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public com.openxc.BinaryMessages.RawMessage.FrameFormat getFrameFormat() {
+ return frameFormat_;
+ }
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public Builder setFrameFormat(com.openxc.BinaryMessages.RawMessage.FrameFormat value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ frameFormat_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .openxc.RawMessage.FrameFormat frame_format = 4;
+ */
+ public Builder clearFrameFormat() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ frameFormat_ = com.openxc.BinaryMessages.RawMessage.FrameFormat.STANDARD;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:openxc.RawMessage)
}
@@ -10913,59 +11085,61 @@ public final class BinaryMessages {
"ommand\0221\n\020command_response\030\006 \001(\0132\027.openx" +
"c.CommandResponse\"Z\n\004Type\022\007\n\003RAW\020\001\022\016\n\nTR" +
"ANSLATED\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTROL_CO",
- "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\";\n\nRawMess" +
- "age\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004" +
- "data\030\003 \001(\014\"\270\004\n\016ControlCommand\022)\n\004type\030\001 " +
- "\001(\0162\033.openxc.ControlCommand.Type\022<\n\022diag" +
- "nostic_request\030\002 \001(\0132 .openxc.Diagnostic" +
- "ControlCommand\022G\n\030passthrough_mode_reque" +
- "st\030\003 \001(\0132%.openxc.PassthroughModeControl" +
- "Command\022O\n acceptance_filter_bypass_comm" +
- "and\030\004 \001(\0132%.openxc.AcceptanceFilterBypas" +
- "sCommand\022<\n\026payload_format_command\030\005 \001(\013",
- "2\034.openxc.PayloadFormatCommand\022O\n predef" +
- "ined_obd2_requests_command\030\006 \001(\0132%.openx" +
- "c.PredefinedObd2RequestsCommand\"\223\001\n\004Type" +
- "\022\013\n\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOST" +
- "IC\020\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILT" +
- "ER_BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDE" +
- "FINED_OBD2_REQUESTS\020\007\"\236\001\n\030DiagnosticCont" +
- "rolCommand\022*\n\007request\030\001 \001(\0132\031.openxc.Dia" +
- "gnosticRequest\0227\n\006action\030\002 \001(\0162\'.openxc." +
- "DiagnosticControlCommand.Action\"\035\n\006Actio",
- "n\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035PassthroughMod" +
- "eControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007enabled\030" +
- "\002 \001(\010\"<\n\035AcceptanceFilterBypassCommand\022\013" +
- "\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"{\n\024PayloadFo" +
- "rmatCommand\022:\n\006format\030\001 \001(\0162*.openxc.Pay" +
- "loadFormatCommand.PayloadFormat\"\'\n\rPaylo" +
- "adFormat\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\"0\n\035Pred" +
- "efinedObd2RequestsCommand\022\017\n\007enabled\030\001 \001" +
- "(\010\"]\n\017CommandResponse\022)\n\004type\030\001 \001(\0162\033.op" +
- "enxc.ControlCommand.Type\022\017\n\007message\030\002 \001(",
- "\t\022\016\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\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\007payload\030\005 \001(\014\022\032\n\022" +
- "multiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007 " +
- "\001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162" +
- "%.openxc.DiagnosticRequest.DecodedType\"!" +
- "\n\013DecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022Di" +
- "agnosticResponse\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\007" +
- "success\030\005 \001(\010\022\036\n\026negative_response_code\030",
- "\006 \001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001" +
- "\n\014DynamicField\022\'\n\004type\030\001 \001(\0162\031.openxc.Dy" +
- "namicField.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n" +
- "\rnumeric_value\030\003 \001(\001\022\025\n\rboolean_value\030\004 " +
- "\001(\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL" +
- "\020\003\"\367\001\n\021TranslatedMessage\022,\n\004type\030\001 \001(\0162\036" +
- ".openxc.TranslatedMessage.Type\022\014\n\004name\030\002" +
- " \001(\t\022#\n\005value\030\003 \001(\0132\024.openxc.DynamicFiel" +
- "d\022#\n\005event\030\004 \001(\0132\024.openxc.DynamicField\"\\" +
- "\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\022\022\n",
- "\016EVENTED_STRING\020\004\022\017\n\013EVENTED_NUM\020\005\022\020\n\014EV" +
- "ENTED_BOOL\020\006B\034\n\ncom.openxcB\016BinaryMessag" +
- "es"
+ "MMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\"\234\001\n\nRawMes" +
+ "sage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n" +
+ "\004data\030\003 \001(\014\0224\n\014frame_format\030\004 \001(\0162\036.open" +
+ "xc.RawMessage.FrameFormat\")\n\013FrameFormat" +
+ "\022\014\n\010STANDARD\020\001\022\014\n\010EXTENDED\020\002\"\270\004\n\016Control" +
+ "Command\022)\n\004type\030\001 \001(\0162\033.openxc.ControlCo" +
+ "mmand.Type\022<\n\022diagnostic_request\030\002 \001(\0132 " +
+ ".openxc.DiagnosticControlCommand\022G\n\030pass" +
+ "through_mode_request\030\003 \001(\0132%.openxc.Pass" +
+ "throughModeControlCommand\022O\n acceptance_",
+ "filter_bypass_command\030\004 \001(\0132%.openxc.Acc" +
+ "eptanceFilterBypassCommand\022<\n\026payload_fo" +
+ "rmat_command\030\005 \001(\0132\034.openxc.PayloadForma" +
+ "tCommand\022O\n predefined_obd2_requests_com" +
+ "mand\030\006 \001(\0132%.openxc.PredefinedObd2Reques" +
+ "tsCommand\"\223\001\n\004Type\022\013\n\007VERSION\020\001\022\r\n\tDEVIC" +
+ "E_ID\020\002\022\016\n\nDIAGNOSTIC\020\003\022\017\n\013PASSTHROUGH\020\004\022" +
+ "\034\n\030ACCEPTANCE_FILTER_BYPASS\020\005\022\022\n\016PAYLOAD" +
+ "_FORMAT\020\006\022\034\n\030PREDEFINED_OBD2_REQUESTS\020\007\"" +
+ "\236\001\n\030DiagnosticControlCommand\022*\n\007request\030",
+ "\001 \001(\0132\031.openxc.DiagnosticRequest\0227\n\006acti" +
+ "on\030\002 \001(\0162\'.openxc.DiagnosticControlComma" +
+ "nd.Action\"\035\n\006Action\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002" +
+ "\"=\n\035PassthroughModeControlCommand\022\013\n\003bus" +
+ "\030\001 \001(\005\022\017\n\007enabled\030\002 \001(\010\"<\n\035AcceptanceFil" +
+ "terBypassCommand\022\013\n\003bus\030\001 \001(\005\022\016\n\006bypass\030" +
+ "\002 \001(\010\"{\n\024PayloadFormatCommand\022:\n\006format\030" +
+ "\001 \001(\0162*.openxc.PayloadFormatCommand.Payl" +
+ "oadFormat\"\'\n\rPayloadFormat\022\010\n\004JSON\020\001\022\014\n\010" +
+ "PROTOBUF\020\002\"0\n\035PredefinedObd2RequestsComm",
+ "and\022\017\n\007enabled\030\001 \001(\010\"]\n\017CommandResponse\022" +
+ ")\n\004type\030\001 \001(\0162\033.openxc.ControlCommand.Ty" +
+ "pe\022\017\n\007message\030\002 \001(\t\022\016\n\006status\030\003 \001(\010\"\375\001\n\021" +
+ "DiagnosticRequest\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessag" +
+ "e_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n" +
+ "\007payload\030\005 \001(\014\022\032\n\022multiple_responses\030\006 \001" +
+ "(\010\022\021\n\tfrequency\030\007 \001(\001\022\014\n\004name\030\010 \001(\t\022;\n\014d" +
+ "ecoded_type\030\t \001(\0162%.openxc.DiagnosticReq" +
+ "uest.DecodedType\"!\n\013DecodedType\022\010\n\004NONE\020" +
+ "\001\022\010\n\004OBD2\020\002\"\241\001\n\022DiagnosticResponse\022\013\n\003bu",
+ "s\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\026negat" +
+ "ive_response_code\030\006 \001(\r\022\017\n\007payload\030\007 \001(\014" +
+ "\022\r\n\005value\030\010 \001(\001\"\242\001\n\014DynamicField\022\'\n\004type" +
+ "\030\001 \001(\0162\031.openxc.DynamicField.Type\022\024\n\014str" +
+ "ing_value\030\002 \001(\t\022\025\n\rnumeric_value\030\003 \001(\001\022\025" +
+ "\n\rboolean_value\030\004 \001(\010\"%\n\004Type\022\n\n\006STRING\020" +
+ "\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\"\367\001\n\021TranslatedMessa" +
+ "ge\022,\n\004type\030\001 \001(\0162\036.openxc.TranslatedMess" +
+ "age.Type\022\014\n\004name\030\002 \001(\t\022#\n\005value\030\003 \001(\0132\024.",
+ "openxc.DynamicField\022#\n\005event\030\004 \001(\0132\024.ope" +
+ "nxc.DynamicField\"\\\n\004Type\022\n\n\006STRING\020\001\022\007\n\003" +
+ "NUM\020\002\022\010\n\004BOOL\020\003\022\022\n\016EVENTED_STRING\020\004\022\017\n\013E" +
+ "VENTED_NUM\020\005\022\020\n\014EVENTED_BOOL\020\006B\034\n\ncom.op" +
+ "enxcB\016BinaryMessages"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -10983,7 +11157,7 @@ public final class BinaryMessages {
internal_static_openxc_RawMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_RawMessage_descriptor,
- new java.lang.String[] { "Bus", "MessageId", "Data", });
+ new java.lang.String[] { "Bus", "MessageId", "Data", "FrameFormat", });
internal_static_openxc_ControlCommand_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_openxc_ControlCommand_fieldAccessorTable = new