Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadata
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadata
- 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
Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.
Instance Attribute Summary collapse
-
#all_matched_pins ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadataProductPins>
Map of all matched pins, keyed by pin position.
-
#dropped_pins ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadataProductPins>
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPinControlMetadata
constructor
A new instance of GoogleCloudRetailV2alphaPinControlMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPinControlMetadata
Returns a new instance of GoogleCloudRetailV2alphaPinControlMetadata.
4857 4858 4859 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4857 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_matched_pins ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadataProductPins>
Map of all matched pins, keyed by pin position.
Corresponds to the JSON property allMatchedPins
4849 4850 4851 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4849 def all_matched_pins @all_matched_pins end |
#dropped_pins ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPinControlMetadataProductPins>
Map of pins that were dropped due to overlap with other matching pins, keyed
by pin position.
Corresponds to the JSON property droppedPins
4855 4856 4857 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4855 def dropped_pins @dropped_pins end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4862 4863 4864 4865 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4862 def update!(**args) @all_matched_pins = args[:all_matched_pins] if args.key?(:all_matched_pins) @dropped_pins = args[:dropped_pins] if args.key?(:dropped_pins) end |