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
- (::Integer) — Number of items that have this facet value.
#count=
def count=(value) -> ::Integer
- value (::Integer) — Number of items that have this facet value.
- (::Integer) — Number of items that have this facet value.
#interval
def interval() -> ::Google::Cloud::DiscoveryEngine::V1beta::Interval
-
(::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It
matches
SearchRequest.FacetSpec.FacetKey.intervals.
Note: The following fields are mutually exclusive:
interval
,value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interval=
def interval=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Interval
-
value (::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It
matches
SearchRequest.FacetSpec.FacetKey.intervals.
Note: The following fields are mutually exclusive:
interval
,value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1beta::Interval) — Interval value for a facet, such as [10, 20) for facet "price". It
matches
SearchRequest.FacetSpec.FacetKey.intervals.
Note: The following fields are mutually exclusive:
interval
,value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value
def value() -> ::String
-
(::String) — Text value of a facet, such as "Black" for facet "colors".
Note: The following fields are mutually exclusive:
value
,interval
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value=
def value=(value) -> ::String
-
value (::String) — Text value of a facet, such as "Black" for facet "colors".
Note: The following fields are mutually exclusive:
value
,interval
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Text value of a facet, such as "Black" for facet "colors".
Note: The following fields are mutually exclusive:
value
,interval
. If a field in that set is populated, all other fields in the set will automatically be cleared.