Class: Google::Apis::CloudsearchV1::FacetResult

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FacetResult

Returns a new instance of FacetResult



957
958
959
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 957

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketsArray<Google::Apis::CloudsearchV1::FacetBucket>

FacetBuckets for values in response containing atleast a single result. Corresponds to the JSON property buckets



939
940
941
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 939

def buckets
  @buckets
end

#object_typeString

Object type for which facet results are returned. Can be empty. Corresponds to the JSON property objectType

Returns:

  • (String)


944
945
946
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 944

def object_type
  @object_type
end

#operator_nameString

Name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions Corresponds to the JSON property operatorName

Returns:

  • (String)


950
951
952
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 950

def operator_name
  @operator_name
end

#source_nameString

Source name for which facet results are returned. Will not be empty. Corresponds to the JSON property sourceName

Returns:

  • (String)


955
956
957
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 955

def source_name
  @source_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



962
963
964
965
966
967
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 962

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