public static final class ClassificationModelOptions.Builder extends GeneratedMessageV3.Builder<ClassificationModelOptions.Builder> implements ClassificationModelOptionsOrBuilder
Model options available for classification requests.
Protobuf type google.cloud.language.v1.ClassificationModelOptions
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.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ClassificationModelOptions build()
Returns
buildPartial()
public ClassificationModelOptions buildPartial()
Returns
clear()
public ClassificationModelOptions.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ClassificationModelOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearModelType()
public ClassificationModelOptions.Builder clearModelType()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationModelOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearV1Model()
public ClassificationModelOptions.Builder clearV1Model()
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Returns
clearV2Model()
public ClassificationModelOptions.Builder clearV2Model()
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Returns
clone()
public ClassificationModelOptions.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ClassificationModelOptions getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getModelTypeCase()
public ClassificationModelOptions.ModelTypeCase getModelTypeCase()
Returns
getV1Model()
public ClassificationModelOptions.V1Model getV1Model()
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Returns
getV1ModelBuilder()
public ClassificationModelOptions.V1Model.Builder getV1ModelBuilder()
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Returns
getV1ModelOrBuilder()
public ClassificationModelOptions.V1ModelOrBuilder getV1ModelOrBuilder()
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Returns
getV2Model()
public ClassificationModelOptions.V2Model getV2Model()
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Returns
getV2ModelBuilder()
public ClassificationModelOptions.V2Model.Builder getV2ModelBuilder()
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Returns
getV2ModelOrBuilder()
public ClassificationModelOptions.V2ModelOrBuilder getV2ModelOrBuilder()
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Returns
hasV1Model()
public boolean hasV1Model()
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Returns
Type | Description |
boolean | Whether the v1Model field is set.
|
hasV2Model()
public boolean hasV2Model()
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Returns
Type | Description |
boolean | Whether the v2Model field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ClassificationModelOptions other)
public ClassificationModelOptions.Builder mergeFrom(ClassificationModelOptions other)
Parameter
Returns
public ClassificationModelOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ClassificationModelOptions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeV1Model(ClassificationModelOptions.V1Model value)
public ClassificationModelOptions.Builder mergeV1Model(ClassificationModelOptions.V1Model value)
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Parameter
Returns
mergeV2Model(ClassificationModelOptions.V2Model value)
public ClassificationModelOptions.Builder mergeV2Model(ClassificationModelOptions.V2Model value)
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationModelOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setV1Model(ClassificationModelOptions.V1Model value)
public ClassificationModelOptions.Builder setV1Model(ClassificationModelOptions.V1Model value)
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Parameter
Returns
setV1Model(ClassificationModelOptions.V1Model.Builder builderForValue)
public ClassificationModelOptions.Builder setV1Model(ClassificationModelOptions.V1Model.Builder builderForValue)
Setting this field will use the V1 model and V1 content categories
version. The V1 model is a legacy model; support for this will be
discontinued in the future.
.google.cloud.language.v1.ClassificationModelOptions.V1Model v1_model = 1;
Parameter
Returns
setV2Model(ClassificationModelOptions.V2Model value)
public ClassificationModelOptions.Builder setV2Model(ClassificationModelOptions.V2Model value)
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Parameter
Returns
setV2Model(ClassificationModelOptions.V2Model.Builder builderForValue)
public ClassificationModelOptions.Builder setV2Model(ClassificationModelOptions.V2Model.Builder builderForValue)
Setting this field will use the V2 model with the appropriate content
categories version. The V2 model is a better performing model.
.google.cloud.language.v1.ClassificationModelOptions.V2Model v2_model = 2;
Parameter
Returns