public static final class TextExtractionModelMetadata.Builder extends GeneratedMessageV3.Builder<TextExtractionModelMetadata.Builder> implements TextExtractionModelMetadataOrBuilder
Model metadata that is specific to text extraction.
Protobuf type google.cloud.automl.v1beta1.TextExtractionModelMetadata
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public TextExtractionModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextExtractionModelMetadata build()
Returns
public TextExtractionModelMetadata buildPartial()
Returns
public TextExtractionModelMetadata.Builder clear()
Returns
Overrides
public TextExtractionModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public TextExtractionModelMetadata.Builder clearModelHint()
Indicates the scope of model use case.
default
: Use to train a general text extraction model. Default value.
health_care
: Use to train a text extraction model that is tuned for
healthcare applications.
string model_hint = 3;
Returns
public TextExtractionModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public TextExtractionModelMetadata.Builder clone()
Returns
Overrides
public TextExtractionModelMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getModelHint()
Indicates the scope of model use case.
default
: Use to train a general text extraction model. Default value.
health_care
: Use to train a text extraction model that is tuned for
healthcare applications.
string model_hint = 3;
Returns
Type | Description |
String | The modelHint.
|
public ByteString getModelHintBytes()
Indicates the scope of model use case.
default
: Use to train a general text extraction model. Default value.
health_care
: Use to train a text extraction model that is tuned for
healthcare applications.
string model_hint = 3;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextExtractionModelMetadata.Builder mergeFrom(TextExtractionModelMetadata other)
Parameter
Returns
public TextExtractionModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public TextExtractionModelMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final TextExtractionModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public TextExtractionModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextExtractionModelMetadata.Builder setModelHint(String value)
Indicates the scope of model use case.
default
: Use to train a general text extraction model. Default value.
health_care
: Use to train a text extraction model that is tuned for
healthcare applications.
string model_hint = 3;
Parameter
Name | Description |
value | String
The modelHint to set.
|
Returns
public TextExtractionModelMetadata.Builder setModelHintBytes(ByteString value)
Indicates the scope of model use case.
default
: Use to train a general text extraction model. Default value.
health_care
: Use to train a text extraction model that is tuned for
healthcare applications.
string model_hint = 3;
Parameter
Name | Description |
value | ByteString
The bytes for modelHint to set.
|
Returns
public TextExtractionModelMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final TextExtractionModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides