public interface InputConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getContents()
Content in bytes, represented as a stream of bytes.
|
GcsSource |
getGcsSource()
The Google Cloud Storage location to read the input from.
|
GcsSourceOrBuilder |
getGcsSourceOrBuilder()
The Google Cloud Storage location to read the input from.
|
String |
getMimeType()
Required.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
Required.
|
InputConfig.SourceCase |
getSourceCase() |
boolean |
hasContents()
Content in bytes, represented as a stream of bytes.
|
boolean |
hasGcsSource()
The Google Cloud Storage location to read the input from.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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;com.google.protobuf.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;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][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.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][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];InputConfig.SourceCase getSourceCase()
Copyright © 2023 Google LLC. All rights reserved.