Package ai.onnx.proto
Enum Class OnnxMl.AttributeProto.AttributeType
java.lang.Object
java.lang.Enum<OnnxMl.AttributeProto.AttributeType>
ai.onnx.proto.OnnxMl.AttributeProto.AttributeType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<OnnxMl.AttributeProto.AttributeType>
,Constable
- Enclosing class:
- OnnxMl.AttributeProto
public static enum OnnxMl.AttributeProto.AttributeType
extends Enum<OnnxMl.AttributeProto.AttributeType>
implements com.google.protobuf.ProtocolMessageEnum
Note: this enum is structurally identical to the OpSchema::AttrType enum defined in schema.h. If you rev one, you likely need to rev the other.Protobuf enum
onnx.AttributeProto.AttributeType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFLOAT = 1;
FLOATS = 6;
GRAPH = 5;
GRAPHS = 10;
INT = 2;
INTS = 7;
SPARSE_TENSOR = 11;
SPARSE_TENSORS = 12;
STRING = 3;
STRINGS = 8;
TENSOR = 4;
TENSORS = 9;
UNDEFINED = 0;
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
FLOAT = 1;
static final int
FLOATS = 6;
static final int
GRAPH = 5;
static final int
GRAPHS = 10;
static final int
INT = 2;
static final int
INTS = 7;
static final int
SPARSE_TENSOR = 11;
static final int
SPARSE_TENSORS = 12;
static final int
STRING = 3;
static final int
STRINGS = 8;
static final int
TENSOR = 4;
static final int
TENSORS = 9;
static final int
UNDEFINED = 0;
-
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<OnnxMl.AttributeProto.AttributeType>
valueOf
(int value) Deprecated.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static OnnxMl.AttributeProto.AttributeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
UNDEFINED = 0;
-
FLOAT
FLOAT = 1;
-
INT
INT = 2;
-
STRING
STRING = 3;
-
TENSOR
TENSOR = 4;
-
GRAPH
GRAPH = 5;
-
SPARSE_TENSOR
SPARSE_TENSOR = 11;
-
FLOATS
FLOATS = 6;
-
INTS
INTS = 7;
-
STRINGS
STRINGS = 8;
-
TENSORS
TENSORS = 9;
-
GRAPHS
GRAPHS = 10;
-
SPARSE_TENSORS
SPARSE_TENSORS = 12;
-
-
Field Details
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUEUNDEFINED = 0;
- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEFLOAT = 1;
- See Also:
-
INT_VALUE
public static final int INT_VALUEINT = 2;
- See Also:
-
STRING_VALUE
public static final int STRING_VALUESTRING = 3;
- See Also:
-
TENSOR_VALUE
public static final int TENSOR_VALUETENSOR = 4;
- See Also:
-
GRAPH_VALUE
public static final int GRAPH_VALUEGRAPH = 5;
- See Also:
-
SPARSE_TENSOR_VALUE
public static final int SPARSE_TENSOR_VALUESPARSE_TENSOR = 11;
- See Also:
-
FLOATS_VALUE
public static final int FLOATS_VALUEFLOATS = 6;
- See Also:
-
INTS_VALUE
public static final int INTS_VALUEINTS = 7;
- See Also:
-
STRINGS_VALUE
public static final int STRINGS_VALUESTRINGS = 8;
- See Also:
-
TENSORS_VALUE
public static final int TENSORS_VALUETENSORS = 9;
- See Also:
-
GRAPHS_VALUE
public static final int GRAPHS_VALUEGRAPHS = 10;
- See Also:
-
SPARSE_TENSORS_VALUE
public static final int SPARSE_TENSORS_VALUESPARSE_TENSORS = 12;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<OnnxMl.AttributeProto.AttributeType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static OnnxMl.AttributeProto.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-