class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1InputConfig

The desired input location and metadata.

Attributes

content[RW]

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. Corresponds to the JSON property `content` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

gcs_source[RW]

The Google Cloud Storage location where the input will be read from. Corresponds to the JSON property `gcsSource` @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1GcsSource]

mime_type[RW]

The type of the file. Currently only “application/pdf”, “image/tiff” and “ image/gif” are supported. Wildcards are not supported. Corresponds to the JSON property `mimeType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 7644
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1p1beta1/classes.rb, line 7649
def update!(**args)
  @content = args[:content] if args.key?(:content)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end