Package com.google.cloud.automl.v1
Enum ClassificationType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ClassificationType>
@Generated
public enum ClassificationType
extends Enum<ClassificationType>
implements com.google.protobuf.ProtocolMessageEnum
Type of the classification problem.Protobuf enum
google.cloud.automl.v1.ClassificationType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn un-set value of this enum.At most one label is allowed per example.Multiple labels are allowed for one example. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn un-set value of this enum.static final intAt most one label is allowed per example.static final intMultiple labels are allowed for one example. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassificationTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ClassificationType>static ClassificationTypevalueOf(int value) Deprecated.static ClassificationTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ClassificationTypeReturns the enum constant of this type with the specified name.static ClassificationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLASSIFICATION_TYPE_UNSPECIFIED
An un-set value of this enum.
CLASSIFICATION_TYPE_UNSPECIFIED = 0; -
MULTICLASS
At most one label is allowed per example.
MULTICLASS = 1; -
MULTILABEL
Multiple labels are allowed for one example.
MULTILABEL = 2; -
UNRECOGNIZED
-
-
Field Details
-
CLASSIFICATION_TYPE_UNSPECIFIED_VALUE
public static final int CLASSIFICATION_TYPE_UNSPECIFIED_VALUEAn un-set value of this enum.
CLASSIFICATION_TYPE_UNSPECIFIED = 0;- See Also:
-
MULTICLASS_VALUE
public static final int MULTICLASS_VALUEAt most one label is allowed per example.
MULTICLASS = 1;- See Also:
-
MULTILABEL_VALUE
public static final int MULTILABEL_VALUEMultiple labels are allowed for one example.
MULTILABEL = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-