public interface DocumentInputConfigOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
ByteString |
getContent()
Document's content represented as a stream of bytes.
|
GcsSource |
getGcsSource()
Google Cloud Storage location.
|
GcsSourceOrBuilder |
getGcsSourceOrBuilder()
Google Cloud Storage location.
|
String |
getMimeType()
Specifies the input document's mime_type.
|
ByteString |
getMimeTypeBytes()
Specifies the input document's mime_type.
|
DocumentInputConfig.SourceCase |
getSourceCase() |
boolean |
hasContent()
Document's content represented as a stream of bytes.
|
boolean |
hasGcsSource()
Google Cloud Storage location.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean hasContent()
Document's content represented as a stream of bytes.
bytes content = 1;
ByteString getContent()
Document's content represented as a stream of bytes.
bytes content = 1;
boolean hasGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;
GcsSource getGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;
GcsSourceOrBuilder getGcsSourceOrBuilder()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;
String getMimeType()
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;
ByteString getMimeTypeBytes()
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;
DocumentInputConfig.SourceCase getSourceCase()
Copyright © 2022 Google LLC. All rights reserved.