Class ClassificationModelOptions.V2Model.Builder (2.25.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.v1beta2.ClassificationModelOptions.V2Model

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationModelOptions.V2Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ClassificationModelOptions.V2Model.Builder clear()
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

clearContentCategoriesVersion()

public ClassificationModelOptions.V2Model.Builder clearContentCategoriesVersion()

The content categories used for classification.

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

Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ClassificationModelOptions.V2Model.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationModelOptions.V2Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

clone()

public ClassificationModelOptions.V2Model.Builder clone()
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

getContentCategoriesVersion()

public ClassificationModelOptions.V2Model.ContentCategoriesVersion getContentCategoriesVersion()

The content categories used for classification.

.google.cloud.language.v1beta2.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.v1beta2.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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClassificationModelOptions.V2Model other)

public ClassificationModelOptions.V2Model.Builder mergeFrom(ClassificationModelOptions.V2Model other)
Parameter
NameDescription
otherClassificationModelOptions.V2Model
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationModelOptions.V2Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ClassificationModelOptions.V2Model.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationModelOptions.V2Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;

Parameter
NameDescription
valueClassificationModelOptions.V2Model.ContentCategoriesVersion

The contentCategoriesVersion to set.

Returns
TypeDescription
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.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationModelOptions.V2Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationModelOptions.V2Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationModelOptions.V2Model.Builder
Overrides