Class TextExtractionPredictionInstance (3.3.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.3.0keyboard_arrow_down
public final class TextExtractionPredictionInstance extends GeneratedMessageV3 implements TextExtractionPredictionInstanceOrBuilder
Prediction input format for Text Extraction.
Protobuf type
google.cloud.aiplatform.v1.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
Type
Description
ByteString
The bytes for content.
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
Type
Description
String
The key.
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
Type
Description
ByteString
The bytes for mimeType.
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]