Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::Image (v0.13.0)

Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::Image.

A representation of an image. Only images up to 30MB in size are supported.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image_bytes

def image_bytes() -> ::String
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.

    Note: The following fields are mutually exclusive: image_bytes, input_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image_bytes=

def image_bytes=(value) -> ::String
Parameter
  • value (::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.

    Note: The following fields are mutually exclusive: image_bytes, input_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

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.

    Note: The following fields are mutually exclusive: image_bytes, input_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#input_config

def input_config() -> ::Google::Cloud::AutoML::V1beta1::InputConfig
Returns
  • (::Google::Cloud::AutoML::V1beta1::InputConfig) — An input config specifying the content of the image.

    Note: The following fields are mutually exclusive: input_config, image_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

#input_config=

def input_config=(value) -> ::Google::Cloud::AutoML::V1beta1::InputConfig
Parameter
  • value (::Google::Cloud::AutoML::V1beta1::InputConfig) — An input config specifying the content of the image.

    Note: The following fields are mutually exclusive: input_config, image_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::AutoML::V1beta1::InputConfig) — An input config specifying the content of the image.

    Note: The following fields are mutually exclusive: input_config, image_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

#thumbnail_uri

def thumbnail_uri() -> ::String
Returns
  • (::String) — Output only. HTTP URI to the thumbnail image.

#thumbnail_uri=

def thumbnail_uri=(value) -> ::String
Parameter
  • value (::String) — Output only. HTTP URI to the thumbnail image.
Returns
  • (::String) — Output only. HTTP URI to the thumbnail image.