Class ClassificationModelOptions.V2Model.Builder (2.43.0)

public static final class ClassificationModelOptions.V2Model.Builder extends GeneratedMessageV3.Builder<ClassificationModelOptions.V2Model.Builder> implements ClassificationModelOptions.V2ModelOrBuilder

Options for the V2 model.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationModelOptions.V2Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

build()

public ClassificationModelOptions.V2Model build()
Returns
Type Description
ClassificationModelOptions.V2Model

buildPartial()

public ClassificationModelOptions.V2Model buildPartial()
Returns
Type Description
ClassificationModelOptions.V2Model

clear()

public ClassificationModelOptions.V2Model.Builder clear()
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

clearContentCategoriesVersion()

public ClassificationModelOptions.V2Model.Builder clearContentCategoriesVersion()

The content categories used for classification.

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

Returns
Type Description
ClassificationModelOptions.V2Model.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ClassificationModelOptions.V2Model.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationModelOptions.V2Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

clone()

public ClassificationModelOptions.V2Model.Builder clone()
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
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
Type Description
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
Type Description
int

The enum numeric value on the wire for contentCategoriesVersion.

getDefaultInstanceForType()

public ClassificationModelOptions.V2Model getDefaultInstanceForType()
Returns
Type Description
ClassificationModelOptions.V2Model

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClassificationModelOptions.V2Model other)

public ClassificationModelOptions.V2Model.Builder mergeFrom(ClassificationModelOptions.V2Model other)
Parameter
Name Description
other ClassificationModelOptions.V2Model
Returns
Type Description
ClassificationModelOptions.V2Model.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationModelOptions.V2Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClassificationModelOptions.V2Model.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationModelOptions.V2Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

setContentCategoriesVersion(ClassificationModelOptions.V2Model.ContentCategoriesVersion value)

public ClassificationModelOptions.V2Model.Builder setContentCategoriesVersion(ClassificationModelOptions.V2Model.ContentCategoriesVersion value)

The content categories used for classification.

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

Parameter
Name Description
value ClassificationModelOptions.V2Model.ContentCategoriesVersion

The contentCategoriesVersion to set.

Returns
Type Description
ClassificationModelOptions.V2Model.Builder

This builder for chaining.

setContentCategoriesVersionValue(int value)

public ClassificationModelOptions.V2Model.Builder setContentCategoriesVersionValue(int value)

The content categories used for classification.

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

Parameter
Name Description
value int

The enum numeric value on the wire for contentCategoriesVersion to set.

Returns
Type Description
ClassificationModelOptions.V2Model.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationModelOptions.V2Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ClassificationModelOptions.V2Model.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationModelOptions.V2Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationModelOptions.V2Model.Builder
Overrides