Class: Google::Cloud::Vision::V1::Image

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

Client image to perform Google Cloud Vision API tasks over.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns Image 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 BatchAnnotateImages requests. It does not work for AsyncBatchAnnotateImages requests.

Returns:

  • (::String)

    Image 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 BatchAnnotateImages requests. It does not work for AsyncBatchAnnotateImages requests.



139
140
141
142
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 139

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

#source::Google::Cloud::Vision::V1::ImageSource

Returns Google Cloud Storage image location, or publicly-accessible image URL. If both content and source are provided for an image, content takes precedence and is used to perform the image annotation request.

Returns:

  • (::Google::Cloud::Vision::V1::ImageSource)

    Google Cloud Storage image location, or publicly-accessible image URL. If both content and source are provided for an image, content takes precedence and is used to perform the image annotation request.



139
140
141
142
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 139

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