public static enum ClassificationModelOptions.V2Model.ContentCategoriesVersion extends Enum<ClassificationModelOptions.V2Model.ContentCategoriesVersion> implements com.google.protobuf.ProtocolMessageEnum
The content categories used for classification.Protobuf enum
google.cloud.language.v1.ClassificationModelOptions.V2Model.ContentCategoriesVersion| Enum Constant and Description |
|---|
CONTENT_CATEGORIES_VERSION_UNSPECIFIED
If `ContentCategoriesVersion` is not specified, this option will
default to `V1`.
|
UNRECOGNIZED |
V1
Legacy content categories of our initial launch in 2017.
|
V2
Updated content categories in 2022.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_CATEGORIES_VERSION_UNSPECIFIED_VALUE
If `ContentCategoriesVersion` is not specified, this option will
default to `V1`.
|
static int |
V1_VALUE
Legacy content categories of our initial launch in 2017.
|
static int |
V2_VALUE
Updated content categories in 2022.
|
| Modifier and Type | Method and Description |
|---|---|
static ClassificationModelOptions.V2Model.ContentCategoriesVersion |
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<ClassificationModelOptions.V2Model.ContentCategoriesVersion> |
internalGetValueMap() |
static ClassificationModelOptions.V2Model.ContentCategoriesVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ClassificationModelOptions.V2Model.ContentCategoriesVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ClassificationModelOptions.V2Model.ContentCategoriesVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassificationModelOptions.V2Model.ContentCategoriesVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassificationModelOptions.V2Model.ContentCategoriesVersion CONTENT_CATEGORIES_VERSION_UNSPECIFIED
If `ContentCategoriesVersion` is not specified, this option will default to `V1`.
CONTENT_CATEGORIES_VERSION_UNSPECIFIED = 0;public static final ClassificationModelOptions.V2Model.ContentCategoriesVersion V1
Legacy content categories of our initial launch in 2017.
V1 = 1;public static final ClassificationModelOptions.V2Model.ContentCategoriesVersion V2
Updated content categories in 2022.
V2 = 2;public static final ClassificationModelOptions.V2Model.ContentCategoriesVersion UNRECOGNIZED
public static final int CONTENT_CATEGORIES_VERSION_UNSPECIFIED_VALUE
If `ContentCategoriesVersion` is not specified, this option will default to `V1`.
CONTENT_CATEGORIES_VERSION_UNSPECIFIED = 0;public static final int V1_VALUE
Legacy content categories of our initial launch in 2017.
V1 = 1;public static final int V2_VALUE
Updated content categories in 2022.
V2 = 2;public static ClassificationModelOptions.V2Model.ContentCategoriesVersion[] values()
for (ClassificationModelOptions.V2Model.ContentCategoriesVersion c : ClassificationModelOptions.V2Model.ContentCategoriesVersion.values()) System.out.println(c);
public static ClassificationModelOptions.V2Model.ContentCategoriesVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ClassificationModelOptions.V2Model.ContentCategoriesVersion valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ClassificationModelOptions.V2Model.ContentCategoriesVersion forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ClassificationModelOptions.V2Model.ContentCategoriesVersion> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ClassificationModelOptions.V2Model.ContentCategoriesVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.