class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage

Product thumbnail/detail image.

Attributes

height[RW]

Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned. Corresponds to the JSON property `height` @return [Fixnum]

uri[RW]

Required. URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](support.google. com/merchants/answer/6324350). Schema.org property [Product.image](https:// schema.org/image). Corresponds to the JSON property `uri` @return [String]

width[RW]

Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/retail_v2alpha/classes.rb, line 1320
def update!(**args)
  @height = args[:height] if args.key?(:height)
  @uri = args[:uri] if args.key?(:uri)
  @width = args[:width] if args.key?(:width)
end