Class ClassificationModelOptions.V2Model (2.13.0)

public static final class ClassificationModelOptions.V2Model extends GeneratedMessageV3 implements ClassificationModelOptions.V2ModelOrBuilder

Options for the V2 model.

Protobuf type google.cloud.language.v1.ClassificationModelOptions.V2Model

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ClassificationModelOptions.V2Model

Static Fields

CONTENT_CATEGORIES_VERSION_FIELD_NUMBER

public static final int CONTENT_CATEGORIES_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClassificationModelOptions.V2Model getDefaultInstance()
Returns
TypeDescription
ClassificationModelOptions.V2Model

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ClassificationModelOptions.V2Model.Builder newBuilder()
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

newBuilder(ClassificationModelOptions.V2Model prototype)

public static ClassificationModelOptions.V2Model.Builder newBuilder(ClassificationModelOptions.V2Model prototype)
Parameter
NameDescription
prototypeClassificationModelOptions.V2Model
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

parseDelimitedFrom(InputStream input)

public static ClassificationModelOptions.V2Model parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClassificationModelOptions.V2Model parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClassificationModelOptions.V2Model parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClassificationModelOptions.V2Model parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClassificationModelOptions.V2Model parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClassificationModelOptions.V2Model parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClassificationModelOptions.V2Model parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ClassificationModelOptions.V2Model> parser()
Returns
TypeDescription
Parser<V2Model>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContentCategoriesVersion()

public ClassificationModelOptions.V2Model.ContentCategoriesVersion getContentCategoriesVersion()

The content categories used for classification.

.google.cloud.language.v1.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;

Returns
TypeDescription
ClassificationModelOptions.V2Model.ContentCategoriesVersion

The contentCategoriesVersion.

getContentCategoriesVersionValue()

public int getContentCategoriesVersionValue()

The content categories used for classification.

.google.cloud.language.v1.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for contentCategoriesVersion.

getDefaultInstanceForType()

public ClassificationModelOptions.V2Model getDefaultInstanceForType()
Returns
TypeDescription
ClassificationModelOptions.V2Model

getParserForType()

public Parser<ClassificationModelOptions.V2Model> getParserForType()
Returns
TypeDescription
Parser<V2Model>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClassificationModelOptions.V2Model.Builder newBuilderForType()
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClassificationModelOptions.V2Model.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClassificationModelOptions.V2Model.Builder toBuilder()
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException