class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet

A facet result.

Attributes

dynamic_facet[RW]

Whether the facet is dynamically generated. Corresponds to the JSON property `dynamicFacet` @return [Boolean]

dynamic_facet?[RW]

Whether the facet is dynamically generated. Corresponds to the JSON property `dynamicFacet` @return [Boolean]

key[RW]

The key for this facet. E.g., “colorFamilies” or “price” or “attributes.attr1”. Corresponds to the JSON property `key` @return [String]

values[RW]

The facet values for this field. Corresponds to the JSON property `values` @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacetFacetValue>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 3362
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 3367
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