Class TextExtractionModelMetadata (2.23.0)

public final class TextExtractionModelMetadata extends GeneratedMessageV3 implements TextExtractionModelMetadataOrBuilder

Model metadata that is specific to text extraction.

Protobuf type google.cloud.automl.v1beta1.TextExtractionModelMetadata

Static Fields

MODEL_HINT_FIELD_NUMBER

public static final int MODEL_HINT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextExtractionModelMetadata getDefaultInstance()
Returns
TypeDescription
TextExtractionModelMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TextExtractionModelMetadata.Builder newBuilder()
Returns
TypeDescription
TextExtractionModelMetadata.Builder

newBuilder(TextExtractionModelMetadata prototype)

public static TextExtractionModelMetadata.Builder newBuilder(TextExtractionModelMetadata prototype)
Parameter
NameDescription
prototypeTextExtractionModelMetadata
Returns
TypeDescription
TextExtractionModelMetadata.Builder

parseDelimitedFrom(InputStream input)

public static TextExtractionModelMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextExtractionModelMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextExtractionModelMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextExtractionModelMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextExtractionModelMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextExtractionModelMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionModelMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextExtractionModelMetadata> parser()
Returns
TypeDescription
Parser<TextExtractionModelMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TextExtractionModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextExtractionModelMetadata

getModelHint()

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
TypeDescription
String

The modelHint.

getModelHintBytes()

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
TypeDescription
ByteString

The bytes for modelHint.

getParserForType()

public Parser<TextExtractionModelMetadata> getParserForType()
Returns
TypeDescription
Parser<TextExtractionModelMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextExtractionModelMetadata.Builder newBuilderForType()
Returns
TypeDescription
TextExtractionModelMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextExtractionModelMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextExtractionModelMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextExtractionModelMetadata.Builder toBuilder()
Returns
TypeDescription
TextExtractionModelMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException