Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Facet::FacetValue.
A facet value which contains value names and their count.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#count
def count() -> ::Integer
Returns
- (::Integer) — Number of items that have this facet value.
#count=
def count=(value) -> ::Integer
Parameter
- value (::Integer) — Number of items that have this facet value.
Returns
- (::Integer) — Number of items that have this facet value.
#interval
def interval() -> ::Google::Cloud::DiscoveryEngine::V1beta::Interval
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It matches SearchRequest.FacetSpec.FacetKey.intervals.
#interval=
def interval=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Interval
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It matches SearchRequest.FacetSpec.FacetKey.intervals.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It matches SearchRequest.FacetSpec.FacetKey.intervals.
#value
def value() -> ::String
Returns
- (::String) — Text value of a facet, such as "Black" for facet "colors".
#value=
def value=(value) -> ::String
Parameter
- value (::String) — Text value of a facet, such as "Black" for facet "colors".
Returns
- (::String) — Text value of a facet, such as "Black" for facet "colors".