Class: Google::Apis::CloudsearchV1::FacetOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FacetOptions
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
Instance Attribute Summary collapse
-
#object_type ⇒ String
If object_type is set, only those objects of that type will be used to compute facets.
-
#operator_name ⇒ String
Name of the operator chosen for faceting.
-
#source_name ⇒ String
Source name to facet on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FacetOptions
constructor
A new instance of FacetOptions.
-
#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) ⇒ FacetOptions
Returns a new instance of FacetOptions
921 922 923 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 921 def initialize(**args) update!(**args) end |
Instance Attribute Details
#object_type ⇒ String
If object_type is set, only those objects of that type will be used to
compute facets. If empty, then all objects will be used to compute facets.
Corresponds to the JSON property objectType
907 908 909 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 907 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
913 914 915 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 913 def operator_name @operator_name end |
#source_name ⇒ String
Source name to facet on. Format: datasources/source_id
If empty, all data sources will be used.
Corresponds to the JSON property sourceName
919 920 921 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 919 def source_name @source_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
926 927 928 929 930 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 926 def update!(**args) @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 |