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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.V2Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ClassificationModelOptions.V2Model build()
Returns
buildPartial()
public ClassificationModelOptions.V2Model buildPartial()
Returns
clear()
public ClassificationModelOptions.V2Model.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public ClassificationModelOptions.V2Model.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationModelOptions.V2Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ClassificationModelOptions.V2Model.Builder clone()
Returns
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
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ClassificationModelOptions.V2Model other)
public ClassificationModelOptions.V2Model.Builder mergeFrom(ClassificationModelOptions.V2Model other)
Parameter
Returns
public ClassificationModelOptions.V2Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ClassificationModelOptions.V2Model.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.V2Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.V2Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationModelOptions.V2Model.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.V2Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides