Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Product thumbnail/detail image.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
Height of the image in number of pixels.
-
#uri ⇒ String
Required.
-
#width ⇒ Fixnum
Width of the image in number of pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaImage
constructor
A new instance of GoogleCloudRetailV2alphaImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaImage
Returns a new instance of GoogleCloudRetailV2alphaImage.
1395 1396 1397 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
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
1378 1379 1380 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1378 def height @height end |
#uri ⇒ String
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. Schema.org property Product.image.
Corresponds to the JSON property uri
1387 1388 1389 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1387 def uri @uri end |
#width ⇒ Fixnum
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
1393 1394 1395 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1393 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1400 1401 1402 1403 1404 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1400 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 |