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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.V2Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ClassificationModelOptions.V2Model build()
buildPartial()
public ClassificationModelOptions.V2Model buildPartial()
clear()
public ClassificationModelOptions.V2Model.Builder clear()
Overrides
clearContentCategoriesVersion()
public ClassificationModelOptions.V2Model.Builder clearContentCategoriesVersion()
The content categories used for classification.
.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;
clearField(Descriptors.FieldDescriptor field)
public ClassificationModelOptions.V2Model.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationModelOptions.V2Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ClassificationModelOptions.V2Model.Builder clone()
Overrides
getContentCategoriesVersion()
public ClassificationModelOptions.V2Model.ContentCategoriesVersion getContentCategoriesVersion()
The content categories used for classification.
.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;
getContentCategoriesVersionValue()
public int getContentCategoriesVersionValue()
The content categories used for classification.
.google.cloud.language.v1beta2.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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ClassificationModelOptions.V2Model other)
public ClassificationModelOptions.V2Model.Builder mergeFrom(ClassificationModelOptions.V2Model other)
public ClassificationModelOptions.V2Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ClassificationModelOptions.V2Model.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.V2Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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 |
Name |
Description |
value |
int
The enum numeric value on the wire for contentCategoriesVersion to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.V2Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationModelOptions.V2Model.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.V2Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides