public final class TextExtractionPredictionInstance extends GeneratedMessageV3 implements TextExtractionPredictionInstanceOrBuilder
Prediction input format for Text Extraction.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance
Static Fields
public static final int CONTENT_FIELD_NUMBER
Field Value
public static final int KEY_FIELD_NUMBER
Field Value
public static final int MIME_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static TextExtractionPredictionInstance getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TextExtractionPredictionInstance.Builder newBuilder()
Returns
public static TextExtractionPredictionInstance.Builder newBuilder(TextExtractionPredictionInstance prototype)
Parameter
Returns
public static TextExtractionPredictionInstance parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionPredictionInstance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TextExtractionPredictionInstance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TextExtractionPredictionInstance> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public String getContent()
The text snippet to make the predictions on.
string content = 1;
Returns
Type | Description |
String | The content.
|
public ByteString getContentBytes()
The text snippet to make the predictions on.
string content = 1;
Returns
public TextExtractionPredictionInstance getDefaultInstanceForType()
Returns
This field is only used for batch prediction. If a key is provided, the
batch prediction result will by mapped to this key. If omitted, then the
batch prediction result will contain the entire input instance. Vertex AI
will not check if keys in the request are duplicates, so it is up to the
caller to ensure the keys are unique.
string key = 3;
Returns
public ByteString getKeyBytes()
This field is only used for batch prediction. If a key is provided, the
batch prediction result will by mapped to this key. If omitted, then the
batch prediction result will contain the entire input instance. Vertex AI
will not check if keys in the request are duplicates, so it is up to the
caller to ensure the keys are unique.
string key = 3;
Returns
public String getMimeType()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns
Type | Description |
String | The mimeType.
|
public ByteString getMimeTypeBytes()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns
public Parser<TextExtractionPredictionInstance> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextExtractionPredictionInstance.Builder newBuilderForType()
Returns
protected TextExtractionPredictionInstance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TextExtractionPredictionInstance.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions