public interface InputConfigOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getContents()
public abstract ByteString getContents() Content in bytes, represented as a stream of bytes.
Note: As with all bytes fields, proto buffer messages use a pure binary
representation, whereas JSON representations use base64.
This field only works for synchronous ProcessDocument method.
bytes contents = 3;
| Type | Description |
| ByteString | The contents. |
getGcsSource()
public abstract GcsSource getGcsSource()The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;
| Type | Description |
| GcsSource | The gcsSource. |
getGcsSourceOrBuilder()
public abstract GcsSourceOrBuilder getGcsSourceOrBuilder()The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;
| Type | Description |
| GcsSourceOrBuilder |
getMimeType()
public abstract String getMimeType()Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with ProcessDocumentRequest.automl_params field set. The JSON file needs to be in Document format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The mimeType. |
getMimeTypeBytes()
public abstract ByteString getMimeTypeBytes()Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with ProcessDocumentRequest.automl_params field set. The JSON file needs to be in Document format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for mimeType. |
getSourceCase()
public abstract InputConfig.SourceCase getSourceCase()| Type | Description |
| InputConfig.SourceCase |
hasContents()
public abstract boolean hasContents() Content in bytes, represented as a stream of bytes.
Note: As with all bytes fields, proto buffer messages use a pure binary
representation, whereas JSON representations use base64.
This field only works for synchronous ProcessDocument method.
bytes contents = 3;
| Type | Description |
| boolean | Whether the contents field is set. |
hasGcsSource()
public abstract boolean hasGcsSource()The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;
| Type | Description |
| boolean | Whether the gcsSource field is set. |