Interface TextExtractionPredictionInstanceOrBuilder (3.4.1)

public interface TextExtractionPredictionInstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String getContent()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.

getKey()

public abstract String getKey()

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

The key.

getKeyBytes()

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

The bytes for key.

getMimeType()

public abstract String getMimeType()

The MIME type of the text snippet. The supported MIME types are listed below.

  • text/plain

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

The MIME type of the text snippet. The supported MIME types are listed below.

  • text/plain

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.