This commit is contained in:
zhongchao
2022-03-11 19:40:23 +08:00
parent c6adf078ee
commit b16e7edbd3
710 changed files with 78933 additions and 26 deletions

View File

@@ -0,0 +1,654 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chassis.proto
package chassis;
public final class Chassis {
private Chassis() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code chassis.GearPosition}
*/
public enum GearPosition
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GEAR_NONE = 0;</code>
*/
GEAR_NONE(0),
/**
* <code>GEAR_N = 1;</code>
*/
GEAR_N(1),
/**
* <code>GEAR_R = 2;</code>
*/
GEAR_R(2),
/**
* <code>GEAR_P = 3;</code>
*/
GEAR_P(3),
/**
* <code>GEAR_D = 4;</code>
*/
GEAR_D(4),
;
/**
* <code>GEAR_NONE = 0;</code>
*/
public static final int GEAR_NONE_VALUE = 0;
/**
* <code>GEAR_N = 1;</code>
*/
public static final int GEAR_N_VALUE = 1;
/**
* <code>GEAR_R = 2;</code>
*/
public static final int GEAR_R_VALUE = 2;
/**
* <code>GEAR_P = 3;</code>
*/
public static final int GEAR_P_VALUE = 3;
/**
* <code>GEAR_D = 4;</code>
*/
public static final int GEAR_D_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GearPosition valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static GearPosition forNumber(int value) {
switch (value) {
case 0: return GEAR_NONE;
case 1: return GEAR_N;
case 2: return GEAR_R;
case 3: return GEAR_P;
case 4: return GEAR_D;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GearPosition>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GearPosition> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GearPosition>() {
public GearPosition findValueByNumber(int number) {
return GearPosition.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return chassis.Chassis.getDescriptor().getEnumTypes().get(0);
}
private static final GearPosition[] VALUES = values();
public static GearPosition 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 value;
private GearPosition(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chassis.GearPosition)
}
/**
* Protobuf enum {@code chassis.LightSwitch}
*/
public enum LightSwitch
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LIGHT_NONE = 0;</code>
*/
LIGHT_NONE(0),
/**
* <code>LIGHT_LEFT = 1;</code>
*/
LIGHT_LEFT(1),
/**
* <code>LIGHT_RIGHT = 2;</code>
*/
LIGHT_RIGHT(2),
/**
* <code>LIGHT_FLASH = 3;</code>
*/
LIGHT_FLASH(3),
/**
* <code>LIGHT_MANUAL = 4;</code>
*/
LIGHT_MANUAL(4),
/**
* <code>LIGHT_AUTO = 5;</code>
*/
LIGHT_AUTO(5),
;
/**
* <code>LIGHT_NONE = 0;</code>
*/
public static final int LIGHT_NONE_VALUE = 0;
/**
* <code>LIGHT_LEFT = 1;</code>
*/
public static final int LIGHT_LEFT_VALUE = 1;
/**
* <code>LIGHT_RIGHT = 2;</code>
*/
public static final int LIGHT_RIGHT_VALUE = 2;
/**
* <code>LIGHT_FLASH = 3;</code>
*/
public static final int LIGHT_FLASH_VALUE = 3;
/**
* <code>LIGHT_MANUAL = 4;</code>
*/
public static final int LIGHT_MANUAL_VALUE = 4;
/**
* <code>LIGHT_AUTO = 5;</code>
*/
public static final int LIGHT_AUTO_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LightSwitch valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LightSwitch forNumber(int value) {
switch (value) {
case 0: return LIGHT_NONE;
case 1: return LIGHT_LEFT;
case 2: return LIGHT_RIGHT;
case 3: return LIGHT_FLASH;
case 4: return LIGHT_MANUAL;
case 5: return LIGHT_AUTO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LightSwitch>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LightSwitch> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LightSwitch>() {
public LightSwitch findValueByNumber(int number) {
return LightSwitch.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return chassis.Chassis.getDescriptor().getEnumTypes().get(1);
}
private static final LightSwitch[] VALUES = values();
public static LightSwitch 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 value;
private LightSwitch(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chassis.LightSwitch)
}
/**
* Protobuf enum {@code chassis.PilotMode}
*/
public enum PilotMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>MODE_MANUAL = 0;</code>
*/
MODE_MANUAL(0),
/**
* <code>MODE_AUTO_DRIVE = 1;</code>
*/
MODE_AUTO_DRIVE(1),
/**
* <code>MODE_STEER_ONLY = 2;</code>
*/
MODE_STEER_ONLY(2),
/**
* <code>MODE_SPEED_ONLY = 3;</code>
*/
MODE_SPEED_ONLY(3),
;
/**
* <code>MODE_MANUAL = 0;</code>
*/
public static final int MODE_MANUAL_VALUE = 0;
/**
* <code>MODE_AUTO_DRIVE = 1;</code>
*/
public static final int MODE_AUTO_DRIVE_VALUE = 1;
/**
* <code>MODE_STEER_ONLY = 2;</code>
*/
public static final int MODE_STEER_ONLY_VALUE = 2;
/**
* <code>MODE_SPEED_ONLY = 3;</code>
*/
public static final int MODE_SPEED_ONLY_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PilotMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static PilotMode forNumber(int value) {
switch (value) {
case 0: return MODE_MANUAL;
case 1: return MODE_AUTO_DRIVE;
case 2: return MODE_STEER_ONLY;
case 3: return MODE_SPEED_ONLY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<PilotMode>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PilotMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<PilotMode>() {
public PilotMode findValueByNumber(int number) {
return PilotMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return chassis.Chassis.getDescriptor().getEnumTypes().get(2);
}
private static final PilotMode[] VALUES = values();
public static PilotMode 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 value;
private PilotMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chassis.PilotMode)
}
/**
* Protobuf enum {@code chassis.LongitudeDrivingMode}
*/
public enum LongitudeDrivingMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ManualMode = 0;</code>
*/
ManualMode(0),
/**
* <code>AutomaticStandby = 1;</code>
*/
AutomaticStandby(1),
/**
* <code>AutomaticAcceleration = 2;</code>
*/
AutomaticAcceleration(2),
/**
* <code>AutomaticDeceleration = 3;</code>
*/
AutomaticDeceleration(3),
;
/**
* <code>ManualMode = 0;</code>
*/
public static final int ManualMode_VALUE = 0;
/**
* <code>AutomaticStandby = 1;</code>
*/
public static final int AutomaticStandby_VALUE = 1;
/**
* <code>AutomaticAcceleration = 2;</code>
*/
public static final int AutomaticAcceleration_VALUE = 2;
/**
* <code>AutomaticDeceleration = 3;</code>
*/
public static final int AutomaticDeceleration_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LongitudeDrivingMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LongitudeDrivingMode forNumber(int value) {
switch (value) {
case 0: return ManualMode;
case 1: return AutomaticStandby;
case 2: return AutomaticAcceleration;
case 3: return AutomaticDeceleration;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LongitudeDrivingMode>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LongitudeDrivingMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LongitudeDrivingMode>() {
public LongitudeDrivingMode findValueByNumber(int number) {
return LongitudeDrivingMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return chassis.Chassis.getDescriptor().getEnumTypes().get(3);
}
private static final LongitudeDrivingMode[] VALUES = values();
public static LongitudeDrivingMode 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 value;
private LongitudeDrivingMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chassis.LongitudeDrivingMode)
}
/**
* Protobuf enum {@code chassis.EPSSteeringMode}
*/
public enum EPSSteeringMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>Manual = 0;</code>
*/
Manual(0),
/**
* <code>Automatic = 1;</code>
*/
Automatic(1),
/**
* <code>ManualFromInterference = 2;</code>
*/
ManualFromInterference(2),
/**
* <code>ManualFromEPSFailure = 3;</code>
*/
ManualFromEPSFailure(3),
/**
* <code>TemporaryInhibited = 4;</code>
*/
TemporaryInhibited(4),
;
/**
* <code>Manual = 0;</code>
*/
public static final int Manual_VALUE = 0;
/**
* <code>Automatic = 1;</code>
*/
public static final int Automatic_VALUE = 1;
/**
* <code>ManualFromInterference = 2;</code>
*/
public static final int ManualFromInterference_VALUE = 2;
/**
* <code>ManualFromEPSFailure = 3;</code>
*/
public static final int ManualFromEPSFailure_VALUE = 3;
/**
* <code>TemporaryInhibited = 4;</code>
*/
public static final int TemporaryInhibited_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EPSSteeringMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EPSSteeringMode forNumber(int value) {
switch (value) {
case 0: return Manual;
case 1: return Automatic;
case 2: return ManualFromInterference;
case 3: return ManualFromEPSFailure;
case 4: return TemporaryInhibited;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<EPSSteeringMode>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EPSSteeringMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<EPSSteeringMode>() {
public EPSSteeringMode findValueByNumber(int number) {
return EPSSteeringMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return chassis.Chassis.getDescriptor().getEnumTypes().get(4);
}
private static final EPSSteeringMode[] VALUES = values();
public static EPSSteeringMode 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 value;
private EPSSteeringMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chassis.EPSSteeringMode)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rchassis.proto\022\007chassis*M\n\014GearPosition" +
"\022\r\n\tGEAR_NONE\020\000\022\n\n\006GEAR_N\020\001\022\n\n\006GEAR_R\020\002\022" +
"\n\n\006GEAR_P\020\003\022\n\n\006GEAR_D\020\004*q\n\013LightSwitch\022\016" +
"\n\nLIGHT_NONE\020\000\022\016\n\nLIGHT_LEFT\020\001\022\017\n\013LIGHT_" +
"RIGHT\020\002\022\017\n\013LIGHT_FLASH\020\003\022\020\n\014LIGHT_MANUAL" +
"\020\004\022\016\n\nLIGHT_AUTO\020\005*[\n\tPilotMode\022\017\n\013MODE_" +
"MANUAL\020\000\022\023\n\017MODE_AUTO_DRIVE\020\001\022\023\n\017MODE_ST" +
"EER_ONLY\020\002\022\023\n\017MODE_SPEED_ONLY\020\003*r\n\024Longi" +
"tudeDrivingMode\022\016\n\nManualMode\020\000\022\024\n\020Autom" +
"aticStandby\020\001\022\031\n\025AutomaticAcceleration\020\002" +
"\022\031\n\025AutomaticDeceleration\020\003*z\n\017EPSSteeri" +
"ngMode\022\n\n\006Manual\020\000\022\r\n\tAutomatic\020\001\022\032\n\026Man" +
"ualFromInterference\020\002\022\030\n\024ManualFromEPSFa" +
"ilure\020\003\022\026\n\022TemporaryInhibited\020\004"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
}
// @@protoc_insertion_point(outer_class_scope)
}