Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseFacet
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseFacet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue>
The facet values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseFacet
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseFacet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseFacet
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseFacet.
7058 7059 7060 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7058 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
7044 7045 7046 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7044 def dynamic_facet @dynamic_facet end |
#key ⇒ String
The key for this facet. E.g., "colors" or "price". It matches SearchRequest.
FacetSpec.FacetKey.key.
Corresponds to the JSON property key
7051 7052 7053 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7051 def key @key end |
#values ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue>
The facet values for this field.
Corresponds to the JSON property values
7056 7057 7058 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7056 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7063 7064 7065 7066 7067 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7063 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 |