public final class ClassificationModelOptions extends GeneratedMessageV3 implements ClassificationModelOptionsOrBuilder
Model options available for classification requests.
Protobuf type google.cloud.language.v1beta2.ClassificationModelOptions
Static Fields
V1_MODEL_FIELD_NUMBER
public static final int V1_MODEL_FIELD_NUMBER
Field Value
V2_MODEL_FIELD_NUMBER
public static final int V2_MODEL_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassificationModelOptions getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassificationModelOptions.Builder newBuilder()
Returns
newBuilder(ClassificationModelOptions prototype)
public static ClassificationModelOptions.Builder newBuilder(ClassificationModelOptions prototype)
Parameter
Returns
public static ClassificationModelOptions parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationModelOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassificationModelOptions parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationModelOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassificationModelOptions parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationModelOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationModelOptions parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ClassificationModelOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationModelOptions parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationModelOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassificationModelOptions parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationModelOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassificationModelOptions> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ClassificationModelOptions getDefaultInstanceForType()
Returns
getModelTypeCase()
public ClassificationModelOptions.ModelTypeCase getModelTypeCase()
Returns
getParserForType()
public Parser<ClassificationModelOptions> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.ClassificationModelOptions.V2Model v2_model = 2;
Returns
Type | Description |
boolean | Whether the v2Model field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ClassificationModelOptions.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationModelOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassificationModelOptions.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions