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