Class: Google::Cloud::Vision::V1::InputConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/image_annotator.rb

Overview

The desired input location and metadata.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns 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.

Returns:

  • (::String)

    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.



1002
1003
1004
1005
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 1002

class InputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#gcs_source::Google::Cloud::Vision::V1::GcsSource

Returns The Google Cloud Storage location to read the input from.

Returns:



1002
1003
1004
1005
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 1002

class InputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

Returns The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.

Returns:

  • (::String)

    The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.



1002
1003
1004
1005
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 1002

class InputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end