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.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.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ClassificationModelOptions build()
buildPartial()
public ClassificationModelOptions buildPartial()
clear()
public ClassificationModelOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ClassificationModelOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearModelType()
public ClassificationModelOptions.Builder clearModelType()
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationModelOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public ClassificationModelOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public ClassificationModelOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getModelTypeCase()
public ClassificationModelOptions.ModelTypeCase getModelTypeCase()
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;
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;
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;
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ClassificationModelOptions other)
public ClassificationModelOptions.Builder mergeFrom(ClassificationModelOptions other)
public ClassificationModelOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ClassificationModelOptions.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationModelOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationModelOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationModelOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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;
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;