Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseFacet
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseFacet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue>
The facet values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseFacet
constructor
A new instance of GoogleCloudDiscoveryengineV1SearchResponseFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseFacet
Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseFacet.
7660 7661 7662 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7660 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
7646 7647 7648 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7646 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
7653 7654 7655 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7653 def key @key end |
#values ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue>
The facet values for this field.
Corresponds to the JSON property values
7658 7659 7660 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7658 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7665 7666 7667 7668 7669 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7665 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 |