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 ConstantsEnum 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
FieldsModifier and TypeFieldDescriptionstatic final intFLOAT = 1;static final intFLOATS = 6;static final intGRAPH = 5;static final intGRAPHS = 10;static final intINT = 2;static final intINTS = 7;static final intSPARSE_TENSOR = 11;static final intSPARSE_TENSORS = 12;static final intSTRING = 3;static final intSTRINGS = 8;static final intTENSOR = 4;static final intTENSORS = 9;static final intUNDEFINED = 0; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein 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
-