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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FacetResult

Returns a new instance of FacetResult.



8526
8527
8528
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8526

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

Instance Attribute Details

#bucketsArray<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



8508
8509
8510
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8508

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)


8513
8514
8515
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8513

def object_type
  @object_type
end

#operator_nameString

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

Returns:

  • (String)


8519
8520
8521
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8519

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)


8524
8525
8526
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8524

def source_name
  @source_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8531
8532
8533
8534
8535
8536
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8531

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