Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

A facet result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaSearchResponseFacet

Returns a new instance of GoogleCloudRetailV2betaSearchResponseFacet.



8292
8293
8294
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8292

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dynamic_facetBoolean Also known as: dynamic_facet?

Whether the facet is dynamically generated. Corresponds to the JSON property dynamicFacet

Returns:

  • (Boolean)


8279
8280
8281
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8279

def dynamic_facet
  @dynamic_facet
end

#keyString

The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1". Corresponds to the JSON property key

Returns:

  • (String)


8285
8286
8287
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8285

def key
  @key
end

#valuesArray<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacetFacetValue>

The facet values for this field. Corresponds to the JSON property values



8290
8291
8292
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8290

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8297
8298
8299
8300
8301
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8297

def update!(**args)
  @dynamic_facet = args[:dynamic_facet] if args.key?(:dynamic_facet)
  @key = args[:key] if args.key?(:key)
  @values = args[:values] if args.key?(:values)
end