Package onnx
Enum Onnx.AttributeProto.AttributeType
- java.lang.Object
-
- java.lang.Enum<Onnx.AttributeProto.AttributeType>
-
- onnx.Onnx.AttributeProto.AttributeType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Onnx.AttributeProto.AttributeType>
- Enclosing class:
- Onnx.AttributeProto
public static enum Onnx.AttributeProto.AttributeType extends Enum<Onnx.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 enumonnx.AttributeProto.AttributeType
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLOAT_VALUE
FLOAT = 1;
static int
FLOATS_VALUE
FLOATS = 6;
static int
GRAPH_VALUE
GRAPH = 5;
static int
GRAPHS_VALUE
GRAPHS = 10;
static int
INT_VALUE
INT = 2;
static int
INTS_VALUE
INTS = 7;
static int
STRING_VALUE
STRING = 3;
static int
STRINGS_VALUE
STRINGS = 8;
static int
TENSOR_VALUE
TENSOR = 4;
static int
TENSORS_VALUE
TENSORS = 9;
static int
UNDEFINED_VALUE
UNDEFINED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Onnx.AttributeProto.AttributeType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Onnx.AttributeProto.AttributeType>
internalGetValueMap()
static Onnx.AttributeProto.AttributeType
valueOf(int value)
Deprecated.static Onnx.AttributeProto.AttributeType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Onnx.AttributeProto.AttributeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Onnx.AttributeProto.AttributeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final Onnx.AttributeProto.AttributeType UNDEFINED
UNDEFINED = 0;
-
FLOAT
public static final Onnx.AttributeProto.AttributeType FLOAT
FLOAT = 1;
-
INT
public static final Onnx.AttributeProto.AttributeType INT
INT = 2;
-
STRING
public static final Onnx.AttributeProto.AttributeType STRING
STRING = 3;
-
TENSOR
public static final Onnx.AttributeProto.AttributeType TENSOR
TENSOR = 4;
-
GRAPH
public static final Onnx.AttributeProto.AttributeType GRAPH
GRAPH = 5;
-
FLOATS
public static final Onnx.AttributeProto.AttributeType FLOATS
FLOATS = 6;
-
INTS
public static final Onnx.AttributeProto.AttributeType INTS
INTS = 7;
-
STRINGS
public static final Onnx.AttributeProto.AttributeType STRINGS
STRINGS = 8;
-
TENSORS
public static final Onnx.AttributeProto.AttributeType TENSORS
TENSORS = 9;
-
GRAPHS
public static final Onnx.AttributeProto.AttributeType GRAPHS
GRAPHS = 10;
-
-
Field Detail
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUE
UNDEFINED = 0;
- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 1;
- See Also:
- Constant Field Values
-
INT_VALUE
public static final int INT_VALUE
INT = 2;
- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 3;
- See Also:
- Constant Field Values
-
TENSOR_VALUE
public static final int TENSOR_VALUE
TENSOR = 4;
- See Also:
- Constant Field Values
-
GRAPH_VALUE
public static final int GRAPH_VALUE
GRAPH = 5;
- See Also:
- Constant Field Values
-
FLOATS_VALUE
public static final int FLOATS_VALUE
FLOATS = 6;
- See Also:
- Constant Field Values
-
INTS_VALUE
public static final int INTS_VALUE
INTS = 7;
- See Also:
- Constant Field Values
-
STRINGS_VALUE
public static final int STRINGS_VALUE
STRINGS = 8;
- See Also:
- Constant Field Values
-
TENSORS_VALUE
public static final int TENSORS_VALUE
TENSORS = 9;
- See Also:
- Constant Field Values
-
GRAPHS_VALUE
public static final int GRAPHS_VALUE
GRAPHS = 10;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Onnx.AttributeProto.AttributeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Onnx.AttributeProto.AttributeType c : Onnx.AttributeProto.AttributeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Onnx.AttributeProto.AttributeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 public static Onnx.AttributeProto.AttributeType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Onnx.AttributeProto.AttributeType forNumber(int value)
- 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<Onnx.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 Onnx.AttributeProto.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-