Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
A facet result.
Instance Attribute Summary collapse
-
#dynamic_facet ⇒ Boolean
(also: #dynamic_facet?)
Whether the facet is dynamically generated.
-
#key ⇒ String
The key for this facet.
-
#values ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue>
The facet values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseFacet.
15999 16000 16001 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15999 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dynamic_facet ⇒ Boolean Also known as: dynamic_facet?
Whether the facet is dynamically generated.
Corresponds to the JSON property dynamicFacet
15985 15986 15987 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15985 def dynamic_facet @dynamic_facet end |
#key ⇒ String
The key for this facet. For example, "colors"
or "price"
. It matches
SearchRequest.FacetSpec.FacetKey.key.
Corresponds to the JSON property key
15992 15993 15994 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15992 def key @key end |
#values ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue>
The facet values for this field.
Corresponds to the JSON property values
15997 15998 15999 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15997 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16004 16005 16006 16007 16008 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16004 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 |