public final class TextExtractionPredictionInstance extends GeneratedMessageV3 implements TextExtractionPredictionInstanceOrBuilder
Prediction input format for Text Extraction.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CONTENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int KEY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MIME_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static TextExtractionPredictionInstance getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TextExtractionPredictionInstance.Builder newBuilder()
public static TextExtractionPredictionInstance.Builder newBuilder(TextExtractionPredictionInstance prototype)
public static TextExtractionPredictionInstance parseDelimitedFrom(InputStream input)
public static TextExtractionPredictionInstance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TextExtractionPredictionInstance parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static TextExtractionPredictionInstance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TextExtractionPredictionInstance parseFrom(ByteString data)
public static TextExtractionPredictionInstance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TextExtractionPredictionInstance parseFrom(CodedInputStream input)
public static TextExtractionPredictionInstance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TextExtractionPredictionInstance parseFrom(InputStream input)
public static TextExtractionPredictionInstance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TextExtractionPredictionInstance parseFrom(ByteBuffer data)
public static TextExtractionPredictionInstance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TextExtractionPredictionInstance> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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()
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 |
---|
Type | Description |
ByteString | The bytes for key.
|
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TextExtractionPredictionInstance.Builder newBuilderForType()
protected TextExtractionPredictionInstance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public TextExtractionPredictionInstance.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides