Interface InputConfigOrBuilder (3.49.0)

public interface InputConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract ByteString getContent()

File content, represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

Currently, this field only works for BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles requests.

bytes content = 3;

Returns
Type Description
ByteString

The content.

getGcsSource()

public abstract GcsSource getGcsSource()

The Google Cloud Storage location to read the input from.

.google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1;

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceOrBuilder()

public abstract GcsSourceOrBuilder getGcsSourceOrBuilder()

The Google Cloud Storage location to read the input from.

.google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1;

Returns
Type Description
GcsSourceOrBuilder

getMimeType()

public abstract String getMimeType()

The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.

string mime_type = 2;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.

string mime_type = 2;

Returns
Type Description
ByteString

The bytes for mimeType.

hasGcsSource()

public abstract boolean hasGcsSource()

The Google Cloud Storage location to read the input from.

.google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1;

Returns
Type Description
boolean

Whether the gcsSource field is set.