Package com.google.cloud.vision.v1
Interface InputConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
InputConfig,InputConfig.Builder
@Generated
public interface InputConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringFile content, represented as a stream of bytes.The Google Cloud Storage location to read the input from.The Google Cloud Storage location to read the input from.The type of the file.com.google.protobuf.ByteStringThe type of the file.booleanThe Google Cloud Storage location to read the input from.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasGcsSource
boolean hasGcsSource()The Google Cloud Storage location to read the input from.
.google.cloud.vision.v1.GcsSource gcs_source = 1;- Returns:
- Whether the gcsSource field is set.
-
getGcsSource
GcsSource getGcsSource()The Google Cloud Storage location to read the input from.
.google.cloud.vision.v1.GcsSource gcs_source = 1;- Returns:
- The gcsSource.
-
getGcsSourceOrBuilder
GcsSourceOrBuilder getGcsSourceOrBuilder()The Google Cloud Storage location to read the input from.
.google.cloud.vision.v1.GcsSource gcs_source = 1; -
getContent
com.google.protobuf.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:
- The content.
-
getMimeType
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:
- The mimeType.
-
getMimeTypeBytes
com.google.protobuf.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:
- The bytes for mimeType.
-