class Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet
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::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacetFacetValue>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/retail_v2beta/classes.rb, line 3715 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_v2beta/classes.rb, line 3720 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