Class: Google::Apis::CloudsearchV1::FacetResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FacetResult
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Source specific facet response
Instance Attribute Summary collapse
-
#buckets ⇒ Array<Google::Apis::CloudsearchV1::FacetBucket>
FacetBuckets for values in response containing at least a single result with the corresponding filter.
-
#object_type ⇒ String
Object type for which facet results are returned.
-
#operator_name ⇒ String
The name of the operator chosen for faceting.
-
#source_name ⇒ String
Source name for which facet results are returned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FacetResult
constructor
A new instance of FacetResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FacetResult
Returns a new instance of FacetResult.
7665 7666 7667 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buckets ⇒ Array<Google::Apis::CloudsearchV1::FacetBucket>
FacetBuckets for values in response containing at least a single result with
the corresponding filter.
Corresponds to the JSON property buckets
7647 7648 7649 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7647 def buckets @buckets end |
#object_type ⇒ String
Object type for which facet results are returned. Can be empty.
Corresponds to the JSON property objectType
7652 7653 7654 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7652 def object_type @object_type end |
#operator_name ⇒ String
The name of the operator chosen for faceting. @see cloudsearch.
SchemaPropertyOptions
Corresponds to the JSON property operatorName
7658 7659 7660 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7658 def operator_name @operator_name end |
#source_name ⇒ String
Source name for which facet results are returned. Will not be empty.
Corresponds to the JSON property sourceName
7663 7664 7665 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7663 def source_name @source_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7670 7671 7672 7673 7674 7675 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7670 def update!(**args) @buckets = args[:buckets] if args.key?(:buckets) @object_type = args[:object_type] if args.key?(:object_type) @operator_name = args[:operator_name] if args.key?(:operator_name) @source_name = args[:source_name] if args.key?(:source_name) end |