CMVR-IOT/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/msgs/CanCardParameter.java

2160 lines
71 KiB
Java
Raw Normal View History

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cmvr/msgs/can_card_parameter.proto
package cmvr.msgs;
public final class CanCardParameter {
private CanCardParameter() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface CANCardParameterOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.msgs.CANCardParameter)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return Whether the brand field is set.
*/
boolean hasBrand();
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The enum numeric value on the wire for brand.
*/
int getBrandValue();
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The brand.
*/
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand getBrand();
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return Whether the type field is set.
*/
boolean hasType();
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The type.
*/
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType getType();
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return Whether the channelId field is set.
*/
boolean hasChannelId();
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The enum numeric value on the wire for channelId.
*/
int getChannelIdValue();
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The channelId.
*/
cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId getChannelId();
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return Whether the interface field is set.
*/
boolean hasInterface();
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The enum numeric value on the wire for interface.
*/
int getInterfaceValue();
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The interface.
*/
cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface getInterface();
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return Whether the numPorts field is set.
*/
boolean hasNumPorts();
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return The numPorts.
*/
int getNumPorts();
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return Whether the baudrate field is set.
*/
boolean hasBaudrate();
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The enum numeric value on the wire for baudrate.
*/
int getBaudrateValue();
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The baudrate.
*/
cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE getBaudrate();
}
/**
* Protobuf type {@code cmvr.msgs.CANCardParameter}
*/
public static final class CANCardParameter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.msgs.CANCardParameter)
CANCardParameterOrBuilder {
private static final long serialVersionUID = 0L;
// Use CANCardParameter.newBuilder() to construct.
private CANCardParameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CANCardParameter() {
brand_ = 0;
type_ = 0;
channelId_ = 0;
interface_ = 0;
baudrate_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CANCardParameter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.msgs.CanCardParameter.internal_static_cmvr_msgs_CANCardParameter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.msgs.CanCardParameter.internal_static_cmvr_msgs_CANCardParameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.msgs.CanCardParameter.CANCardParameter.class, cmvr.msgs.CanCardParameter.CANCardParameter.Builder.class);
}
/**
* Protobuf enum {@code cmvr.msgs.CANCardParameter.CANCardBrand}
*/
public enum CANCardBrand
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>FAKE_CAN = 0;</code>
*/
FAKE_CAN(0),
/**
* <code>ESD_CAN = 1;</code>
*/
ESD_CAN(1),
/**
* <code>SOCKET_CAN_RAW = 2;</code>
*/
SOCKET_CAN_RAW(2),
/**
* <code>HERMES_CAN = 3;</code>
*/
HERMES_CAN(3),
UNRECOGNIZED(-1),
;
/**
* <code>FAKE_CAN = 0;</code>
*/
public static final int FAKE_CAN_VALUE = 0;
/**
* <code>ESD_CAN = 1;</code>
*/
public static final int ESD_CAN_VALUE = 1;
/**
* <code>SOCKET_CAN_RAW = 2;</code>
*/
public static final int SOCKET_CAN_RAW_VALUE = 2;
/**
* <code>HERMES_CAN = 3;</code>
*/
public static final int HERMES_CAN_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 CANCardBrand 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 CANCardBrand forNumber(int value) {
switch (value) {
case 0: return FAKE_CAN;
case 1: return ESD_CAN;
case 2: return SOCKET_CAN_RAW;
case 3: return HERMES_CAN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CANCardBrand>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CANCardBrand> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CANCardBrand>() {
public CANCardBrand findValueByNumber(int number) {
return CANCardBrand.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cmvr.msgs.CanCardParameter.CANCardParameter.getDescriptor().getEnumTypes().get(0);
}
private static final CANCardBrand[] VALUES = values();
public static CANCardBrand valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CANCardBrand(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.msgs.CANCardParameter.CANCardBrand)
}
/**
* Protobuf enum {@code cmvr.msgs.CANCardParameter.CANCardType}
*/
public enum CANCardType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>PCI_CARD = 0;</code>
*/
PCI_CARD(0),
/**
* <code>USB_CARD = 1;</code>
*/
USB_CARD(1),
UNRECOGNIZED(-1),
;
/**
* <code>PCI_CARD = 0;</code>
*/
public static final int PCI_CARD_VALUE = 0;
/**
* <code>USB_CARD = 1;</code>
*/
public static final int USB_CARD_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 CANCardType 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 CANCardType forNumber(int value) {
switch (value) {
case 0: return PCI_CARD;
case 1: return USB_CARD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CANCardType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CANCardType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CANCardType>() {
public CANCardType findValueByNumber(int number) {
return CANCardType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cmvr.msgs.CanCardParameter.CANCardParameter.getDescriptor().getEnumTypes().get(1);
}
private static final CANCardType[] VALUES = values();
public static CANCardType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CANCardType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.msgs.CANCardParameter.CANCardType)
}
/**
* Protobuf enum {@code cmvr.msgs.CANCardParameter.CANChannelId}
*/
public enum CANChannelId
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CHANNEL_ID_ZERO = 0;</code>
*/
CHANNEL_ID_ZERO(0),
/**
* <code>CHANNEL_ID_ONE = 1;</code>
*/
CHANNEL_ID_ONE(1),
/**
* <code>CHANNEL_ID_TWO = 2;</code>
*/
CHANNEL_ID_TWO(2),
/**
* <code>CHANNEL_ID_THREE = 3;</code>
*/
CHANNEL_ID_THREE(3),
/**
* <code>CHANNEL_ID_FOUR = 4;</code>
*/
CHANNEL_ID_FOUR(4),
/**
* <code>CHANNEL_ID_FIVE = 5;</code>
*/
CHANNEL_ID_FIVE(5),
/**
* <code>CHANNEL_ID_SIX = 6;</code>
*/
CHANNEL_ID_SIX(6),
/**
* <code>CHANNEL_ID_SEVEN = 7;</code>
*/
CHANNEL_ID_SEVEN(7),
UNRECOGNIZED(-1),
;
/**
* <code>CHANNEL_ID_ZERO = 0;</code>
*/
public static final int CHANNEL_ID_ZERO_VALUE = 0;
/**
* <code>CHANNEL_ID_ONE = 1;</code>
*/
public static final int CHANNEL_ID_ONE_VALUE = 1;
/**
* <code>CHANNEL_ID_TWO = 2;</code>
*/
public static final int CHANNEL_ID_TWO_VALUE = 2;
/**
* <code>CHANNEL_ID_THREE = 3;</code>
*/
public static final int CHANNEL_ID_THREE_VALUE = 3;
/**
* <code>CHANNEL_ID_FOUR = 4;</code>
*/
public static final int CHANNEL_ID_FOUR_VALUE = 4;
/**
* <code>CHANNEL_ID_FIVE = 5;</code>
*/
public static final int CHANNEL_ID_FIVE_VALUE = 5;
/**
* <code>CHANNEL_ID_SIX = 6;</code>
*/
public static final int CHANNEL_ID_SIX_VALUE = 6;
/**
* <code>CHANNEL_ID_SEVEN = 7;</code>
*/
public static final int CHANNEL_ID_SEVEN_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 CANChannelId 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 CANChannelId forNumber(int value) {
switch (value) {
case 0: return CHANNEL_ID_ZERO;
case 1: return CHANNEL_ID_ONE;
case 2: return CHANNEL_ID_TWO;
case 3: return CHANNEL_ID_THREE;
case 4: return CHANNEL_ID_FOUR;
case 5: return CHANNEL_ID_FIVE;
case 6: return CHANNEL_ID_SIX;
case 7: return CHANNEL_ID_SEVEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CANChannelId>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CANChannelId> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CANChannelId>() {
public CANChannelId findValueByNumber(int number) {
return CANChannelId.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cmvr.msgs.CanCardParameter.CANCardParameter.getDescriptor().getEnumTypes().get(2);
}
private static final CANChannelId[] VALUES = values();
public static CANChannelId valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CANChannelId(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.msgs.CANCardParameter.CANChannelId)
}
/**
* Protobuf enum {@code cmvr.msgs.CANCardParameter.CANInterface}
*/
public enum CANInterface
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NATIVE = 0;</code>
*/
NATIVE(0),
/**
* <code>VIRTUAL = 1;</code>
*/
VIRTUAL(1),
/**
* <code>SLCAN = 2;</code>
*/
SLCAN(2),
UNRECOGNIZED(-1),
;
/**
* <code>NATIVE = 0;</code>
*/
public static final int NATIVE_VALUE = 0;
/**
* <code>VIRTUAL = 1;</code>
*/
public static final int VIRTUAL_VALUE = 1;
/**
* <code>SLCAN = 2;</code>
*/
public static final int SLCAN_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 CANInterface 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 CANInterface forNumber(int value) {
switch (value) {
case 0: return NATIVE;
case 1: return VIRTUAL;
case 2: return SLCAN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CANInterface>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CANInterface> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CANInterface>() {
public CANInterface findValueByNumber(int number) {
return CANInterface.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cmvr.msgs.CanCardParameter.CANCardParameter.getDescriptor().getEnumTypes().get(3);
}
private static final CANInterface[] VALUES = values();
public static CANInterface valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CANInterface(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.msgs.CANCardParameter.CANInterface)
}
/**
* Protobuf enum {@code cmvr.msgs.CANCardParameter.BAUDRATE}
*/
public enum BAUDRATE
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>BCAN_BAUDRATE_1M = 0;</code>
*/
BCAN_BAUDRATE_1M(0),
/**
* <code>BCAN_BAUDRATE_500K = 1;</code>
*/
BCAN_BAUDRATE_500K(1),
/**
* <code>BCAN_BAUDRATE_250K = 2;</code>
*/
BCAN_BAUDRATE_250K(2),
/**
* <code>BCAN_BAUDRATE_150K = 3;</code>
*/
BCAN_BAUDRATE_150K(3),
/**
* <code>BCAN_BAUDRATE_NUM = 4;</code>
*/
BCAN_BAUDRATE_NUM(4),
UNRECOGNIZED(-1),
;
/**
* <code>BCAN_BAUDRATE_1M = 0;</code>
*/
public static final int BCAN_BAUDRATE_1M_VALUE = 0;
/**
* <code>BCAN_BAUDRATE_500K = 1;</code>
*/
public static final int BCAN_BAUDRATE_500K_VALUE = 1;
/**
* <code>BCAN_BAUDRATE_250K = 2;</code>
*/
public static final int BCAN_BAUDRATE_250K_VALUE = 2;
/**
* <code>BCAN_BAUDRATE_150K = 3;</code>
*/
public static final int BCAN_BAUDRATE_150K_VALUE = 3;
/**
* <code>BCAN_BAUDRATE_NUM = 4;</code>
*/
public static final int BCAN_BAUDRATE_NUM_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 BAUDRATE 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 BAUDRATE forNumber(int value) {
switch (value) {
case 0: return BCAN_BAUDRATE_1M;
case 1: return BCAN_BAUDRATE_500K;
case 2: return BCAN_BAUDRATE_250K;
case 3: return BCAN_BAUDRATE_150K;
case 4: return BCAN_BAUDRATE_NUM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<BAUDRATE>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BAUDRATE> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<BAUDRATE>() {
public BAUDRATE findValueByNumber(int number) {
return BAUDRATE.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cmvr.msgs.CanCardParameter.CANCardParameter.getDescriptor().getEnumTypes().get(4);
}
private static final BAUDRATE[] VALUES = values();
public static BAUDRATE valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BAUDRATE(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.msgs.CANCardParameter.BAUDRATE)
}
private int bitField0_;
public static final int BRAND_FIELD_NUMBER = 1;
private int brand_;
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return Whether the brand field is set.
*/
@java.lang.Override public boolean hasBrand() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The enum numeric value on the wire for brand.
*/
@java.lang.Override public int getBrandValue() {
return brand_;
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The brand.
*/
@java.lang.Override public cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand getBrand() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand result = cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand.valueOf(brand_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The type.
*/
@java.lang.Override public cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType getType() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType result = cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType.valueOf(type_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType.UNRECOGNIZED : result;
}
public static final int CHANNEL_ID_FIELD_NUMBER = 3;
private int channelId_;
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return Whether the channelId field is set.
*/
@java.lang.Override public boolean hasChannelId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The enum numeric value on the wire for channelId.
*/
@java.lang.Override public int getChannelIdValue() {
return channelId_;
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override public cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId getChannelId() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId result = cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId.valueOf(channelId_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId.UNRECOGNIZED : result;
}
public static final int INTERFACE_FIELD_NUMBER = 4;
private int interface_;
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return Whether the interface field is set.
*/
@java.lang.Override public boolean hasInterface() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The enum numeric value on the wire for interface.
*/
@java.lang.Override public int getInterfaceValue() {
return interface_;
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The interface.
*/
@java.lang.Override public cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface getInterface() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface result = cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface.valueOf(interface_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface.UNRECOGNIZED : result;
}
public static final int NUM_PORTS_FIELD_NUMBER = 5;
private int numPorts_;
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return Whether the numPorts field is set.
*/
@java.lang.Override
public boolean hasNumPorts() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return The numPorts.
*/
@java.lang.Override
public int getNumPorts() {
return numPorts_;
}
public static final int BAUDRATE_FIELD_NUMBER = 6;
private int baudrate_;
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return Whether the baudrate field is set.
*/
@java.lang.Override public boolean hasBaudrate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The enum numeric value on the wire for baudrate.
*/
@java.lang.Override public int getBaudrateValue() {
return baudrate_;
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The baudrate.
*/
@java.lang.Override public cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE getBaudrate() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE result = cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE.valueOf(baudrate_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, brand_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, channelId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, interface_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, numPorts_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(6, baudrate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, brand_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, channelId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, interface_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, numPorts_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, baudrate_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.msgs.CanCardParameter.CANCardParameter)) {
return super.equals(obj);
}
cmvr.msgs.CanCardParameter.CANCardParameter other = (cmvr.msgs.CanCardParameter.CANCardParameter) obj;
if (hasBrand() != other.hasBrand()) return false;
if (hasBrand()) {
if (brand_ != other.brand_) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasChannelId() != other.hasChannelId()) return false;
if (hasChannelId()) {
if (channelId_ != other.channelId_) return false;
}
if (hasInterface() != other.hasInterface()) return false;
if (hasInterface()) {
if (interface_ != other.interface_) return false;
}
if (hasNumPorts() != other.hasNumPorts()) return false;
if (hasNumPorts()) {
if (getNumPorts()
!= other.getNumPorts()) return false;
}
if (hasBaudrate() != other.hasBaudrate()) return false;
if (hasBaudrate()) {
if (baudrate_ != other.baudrate_) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBrand()) {
hash = (37 * hash) + BRAND_FIELD_NUMBER;
hash = (53 * hash) + brand_;
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasChannelId()) {
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + channelId_;
}
if (hasInterface()) {
hash = (37 * hash) + INTERFACE_FIELD_NUMBER;
hash = (53 * hash) + interface_;
}
if (hasNumPorts()) {
hash = (37 * hash) + NUM_PORTS_FIELD_NUMBER;
hash = (53 * hash) + getNumPorts();
}
if (hasBaudrate()) {
hash = (37 * hash) + BAUDRATE_FIELD_NUMBER;
hash = (53 * hash) + baudrate_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.msgs.CanCardParameter.CANCardParameter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.msgs.CanCardParameter.CANCardParameter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.msgs.CANCardParameter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:cmvr.msgs.CANCardParameter)
cmvr.msgs.CanCardParameter.CANCardParameterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.msgs.CanCardParameter.internal_static_cmvr_msgs_CANCardParameter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.msgs.CanCardParameter.internal_static_cmvr_msgs_CANCardParameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.msgs.CanCardParameter.CANCardParameter.class, cmvr.msgs.CanCardParameter.CANCardParameter.Builder.class);
}
// Construct using cmvr.msgs.CanCardParameter.CANCardParameter.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
brand_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
channelId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
interface_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
numPorts_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
baudrate_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.msgs.CanCardParameter.internal_static_cmvr_msgs_CANCardParameter_descriptor;
}
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter getDefaultInstanceForType() {
return cmvr.msgs.CanCardParameter.CANCardParameter.getDefaultInstance();
}
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter build() {
cmvr.msgs.CanCardParameter.CANCardParameter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter buildPartial() {
cmvr.msgs.CanCardParameter.CANCardParameter result = new cmvr.msgs.CanCardParameter.CANCardParameter(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.brand_ = brand_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.interface_ = interface_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.numPorts_ = numPorts_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.baudrate_ = baudrate_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.msgs.CanCardParameter.CANCardParameter) {
return mergeFrom((cmvr.msgs.CanCardParameter.CANCardParameter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.msgs.CanCardParameter.CANCardParameter other) {
if (other == cmvr.msgs.CanCardParameter.CANCardParameter.getDefaultInstance()) return this;
if (other.hasBrand()) {
setBrand(other.getBrand());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasChannelId()) {
setChannelId(other.getChannelId());
}
if (other.hasInterface()) {
setInterface(other.getInterface());
}
if (other.hasNumPorts()) {
setNumPorts(other.getNumPorts());
}
if (other.hasBaudrate()) {
setBaudrate(other.getBaudrate());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
brand_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
type_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
channelId_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
interface_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
numPorts_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
baudrate_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int brand_ = 0;
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return Whether the brand field is set.
*/
@java.lang.Override public boolean hasBrand() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The enum numeric value on the wire for brand.
*/
@java.lang.Override public int getBrandValue() {
return brand_;
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @param value The enum numeric value on the wire for brand to set.
* @return This builder for chaining.
*/
public Builder setBrandValue(int value) {
bitField0_ |= 0x00000001;
brand_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return The brand.
*/
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand getBrand() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand result = cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand.valueOf(brand_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand.UNRECOGNIZED : result;
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @param value The brand to set.
* @return This builder for chaining.
*/
public Builder setBrand(cmvr.msgs.CanCardParameter.CANCardParameter.CANCardBrand value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
brand_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* CAN卡驱动类型配置 | 根据所用的CAN卡硬件型号或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardBrand brand = 1;</code>
* @return This builder for chaining.
*/
public Builder clearBrand() {
bitField0_ = (bitField0_ & ~0x00000001);
brand_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return The type.
*/
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType getType() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType result = cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType.valueOf(type_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType.UNRECOGNIZED : result;
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(cmvr.msgs.CanCardParameter.CANCardParameter.CANCardType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* CAN卡硬件接口类型配置 | 根据所用的CAN卡硬件接口类型或驱动类型配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANCardType type = 2;</code>
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private int channelId_ = 0;
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return Whether the channelId field is set.
*/
@java.lang.Override public boolean hasChannelId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The enum numeric value on the wire for channelId.
*/
@java.lang.Override public int getChannelIdValue() {
return channelId_;
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @param value The enum numeric value on the wire for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdValue(int value) {
bitField0_ |= 0x00000004;
channelId_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId getChannelId() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId result = cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId.valueOf(channelId_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId.UNRECOGNIZED : result;
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(cmvr.msgs.CanCardParameter.CANCardParameter.CANChannelId value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
channelId_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* CAN卡端口号配置 | 根据所连接的CAN卡端口号配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANChannelId channel_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000004);
channelId_ = 0;
onChanged();
return this;
}
private int interface_ = 0;
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return Whether the interface field is set.
*/
@java.lang.Override public boolean hasInterface() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The enum numeric value on the wire for interface.
*/
@java.lang.Override public int getInterfaceValue() {
return interface_;
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @param value The enum numeric value on the wire for interface to set.
* @return This builder for chaining.
*/
public Builder setInterfaceValue(int value) {
bitField0_ |= 0x00000008;
interface_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return The interface.
*/
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface getInterface() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface result = cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface.valueOf(interface_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface.UNRECOGNIZED : result;
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @param value The interface to set.
* @return This builder for chaining.
*/
public Builder setInterface(cmvr.msgs.CanCardParameter.CANCardParameter.CANInterface value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
interface_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* CAN卡软件接口配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.CANInterface interface = 4;</code>
* @return This builder for chaining.
*/
public Builder clearInterface() {
bitField0_ = (bitField0_ & ~0x00000008);
interface_ = 0;
onChanged();
return this;
}
private int numPorts_ ;
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return Whether the numPorts field is set.
*/
@java.lang.Override
public boolean hasNumPorts() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return The numPorts.
*/
@java.lang.Override
public int getNumPorts() {
return numPorts_;
}
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @param value The numPorts to set.
* @return This builder for chaining.
*/
public Builder setNumPorts(int value) {
bitField0_ |= 0x00000010;
numPorts_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡端口数量配置
* </pre>
*
* <code>optional uint32 num_ports = 5;</code>
* @return This builder for chaining.
*/
public Builder clearNumPorts() {
bitField0_ = (bitField0_ & ~0x00000010);
numPorts_ = 0;
onChanged();
return this;
}
private int baudrate_ = 0;
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return Whether the baudrate field is set.
*/
@java.lang.Override public boolean hasBaudrate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The enum numeric value on the wire for baudrate.
*/
@java.lang.Override public int getBaudrateValue() {
return baudrate_;
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @param value The enum numeric value on the wire for baudrate to set.
* @return This builder for chaining.
*/
public Builder setBaudrateValue(int value) {
bitField0_ |= 0x00000020;
baudrate_ = value;
onChanged();
return this;
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return The baudrate.
*/
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE getBaudrate() {
@SuppressWarnings("deprecation")
cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE result = cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE.valueOf(baudrate_);
return result == null ? cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE.UNRECOGNIZED : result;
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @param value The baudrate to set.
* @return This builder for chaining.
*/
public Builder setBaudrate(cmvr.msgs.CanCardParameter.CANCardParameter.BAUDRATE value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
baudrate_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* CAN卡波特率配置
* </pre>
*
* <code>optional .cmvr.msgs.CANCardParameter.BAUDRATE baudrate = 6;</code>
* @return This builder for chaining.
*/
public Builder clearBaudrate() {
bitField0_ = (bitField0_ & ~0x00000020);
baudrate_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.msgs.CANCardParameter)
}
// @@protoc_insertion_point(class_scope:cmvr.msgs.CANCardParameter)
private static final cmvr.msgs.CanCardParameter.CANCardParameter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.msgs.CanCardParameter.CANCardParameter();
}
public static cmvr.msgs.CanCardParameter.CANCardParameter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CANCardParameter>
PARSER = new com.google.protobuf.AbstractParser<CANCardParameter>() {
@java.lang.Override
public CANCardParameter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<CANCardParameter> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CANCardParameter> getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.msgs.CanCardParameter.CANCardParameter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_msgs_CANCardParameter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_msgs_CANCardParameter_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"cmvr/msgs/can_card_parameter.proto\022\tcm" +
"vr.msgs\"\230\007\n\020CANCardParameter\022<\n\005brand\030\001 " +
"\001(\0162(.cmvr.msgs.CANCardParameter.CANCard" +
"BrandH\000\210\001\001\022:\n\004type\030\002 \001(\0162\'.cmvr.msgs.CAN" +
"CardParameter.CANCardTypeH\001\210\001\001\022A\n\nchanne" +
"l_id\030\003 \001(\0162(.cmvr.msgs.CANCardParameter." +
"CANChannelIdH\002\210\001\001\022@\n\tinterface\030\004 \001(\0162(.c" +
"mvr.msgs.CANCardParameter.CANInterfaceH\003" +
"\210\001\001\022\026\n\tnum_ports\030\005 \001(\rH\004\210\001\001\022;\n\010baudrate\030" +
"\006 \001(\0162$.cmvr.msgs.CANCardParameter.BAUDR" +
"ATEH\005\210\001\001\"M\n\014CANCardBrand\022\014\n\010FAKE_CAN\020\000\022\013" +
"\n\007ESD_CAN\020\001\022\022\n\016SOCKET_CAN_RAW\020\002\022\016\n\nHERME" +
"S_CAN\020\003\")\n\013CANCardType\022\014\n\010PCI_CARD\020\000\022\014\n\010" +
"USB_CARD\020\001\"\265\001\n\014CANChannelId\022\023\n\017CHANNEL_I" +
"D_ZERO\020\000\022\022\n\016CHANNEL_ID_ONE\020\001\022\022\n\016CHANNEL_" +
"ID_TWO\020\002\022\024\n\020CHANNEL_ID_THREE\020\003\022\023\n\017CHANNE" +
"L_ID_FOUR\020\004\022\023\n\017CHANNEL_ID_FIVE\020\005\022\022\n\016CHAN" +
"NEL_ID_SIX\020\006\022\024\n\020CHANNEL_ID_SEVEN\020\007\"2\n\014CA" +
"NInterface\022\n\n\006NATIVE\020\000\022\013\n\007VIRTUAL\020\001\022\t\n\005S" +
"LCAN\020\002\"\177\n\010BAUDRATE\022\024\n\020BCAN_BAUDRATE_1M\020\000" +
"\022\026\n\022BCAN_BAUDRATE_500K\020\001\022\026\n\022BCAN_BAUDRAT" +
"E_250K\020\002\022\026\n\022BCAN_BAUDRATE_150K\020\003\022\025\n\021BCAN" +
"_BAUDRATE_NUM\020\004B\010\n\006_brandB\007\n\005_typeB\r\n\013_c" +
"hannel_idB\014\n\n_interfaceB\014\n\n_num_portsB\013\n" +
"\t_baudrateb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_cmvr_msgs_CANCardParameter_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cmvr_msgs_CANCardParameter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_msgs_CANCardParameter_descriptor,
new java.lang.String[] { "Brand", "Type", "ChannelId", "Interface", "NumPorts", "Baudrate", "Brand", "Type", "ChannelId", "Interface", "NumPorts", "Baudrate", });
}
// @@protoc_insertion_point(outer_class_scope)
}