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

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/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.



1106
1107
1108
1109
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1106

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

#interval::Google::Cloud::DiscoveryEngine::V1::Interval

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

Returns:



1106
1107
1108
1109
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1106

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".



1106
1107
1108
1109
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1106

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