public static enum ClassificationModelOptions.V2Model.ContentCategoriesVersion extends Enum<ClassificationModelOptions.V2Model.ContentCategoriesVersion> implements ProtocolMessageEnum
The content categories used for classification.Protobuf enum
google.cloud.language.v1beta2.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.
|
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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<ClassificationModelOptions.V2Model.ContentCategoriesVersion> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ClassificationModelOptions.V2Model.ContentCategoriesVersion valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.