Class: Google::Apis::CloudsearchV1::FacetResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FacetResult
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/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.
-
#object_type ⇒ String
Object type for which facet results are returned.
-
#operator_name ⇒ String
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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ FacetResult
Returns a new instance of FacetResult
1070 1071 1072 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1070 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.
Corresponds to the JSON property buckets
1052 1053 1054 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1052 def buckets @buckets end |
#object_type ⇒ String
Object type for which facet results are returned. Can be empty.
Corresponds to the JSON property objectType
1057 1058 1059 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1057 def object_type @object_type end |
#operator_name ⇒ String
Name of the operator chosen for faceting. @see
cloudsearch.SchemaPropertyOptions
Corresponds to the JSON property operatorName
1063 1064 1065 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1063 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
1068 1069 1070 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1068 def source_name @source_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1075 1076 1077 1078 1079 1080 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1075 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 |