Class: Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Facet::FacetValue

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb

Overview

A facet value which contains value names and their count.

Instance Attribute Summary collapse

Instance Attribute Details

#count::Integer

Returns Number of items that have this facet value.

Returns:

  • (::Integer)

    Number of items that have this facet value.



563
564
565
566
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 563

class FacetValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#interval::Google::Cloud::DiscoveryEngine::V1beta::Interval

Returns Interval value for a facet, such as [10, 20) for facet "price". It matches SearchRequest.FacetSpec.FacetKey.intervals.

Returns:



563
564
565
566
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 563

class FacetValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#value::String

Returns Text value of a facet, such as "Black" for facet "colors".

Returns:

  • (::String)

    Text value of a facet, such as "Black" for facet "colors".



563
564
565
566
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 563

class FacetValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end