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
defcount()->::Integer
Returns
(::Integer) — Number of items that have this facet value.
#count=
defcount=(value)->::Integer
Parameter
value (::Integer) — Number of items that have this facet value.
Returns
(::Integer) — Number of items that have this facet value.
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.
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.
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
defvalue()->::String
Returns
(::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=
defvalue=(value)->::String
Parameter
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.
Returns
(::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Facet::FacetValue (v0.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.21.0 (latest)](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.20.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.20.1/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.19.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.19.1/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.18.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.18.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.17.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.17.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.16.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.16.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.15.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.15.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.14.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.14.2/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.13.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.13.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.12.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.12.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.11.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.11.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.10.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.10.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.9.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.9.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.8.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.8.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.7.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.7.2/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.6.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.6.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.5.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.4.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.4.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.3.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.2.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.2.1/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue)\n- [0.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.1.0/Google-Cloud-DiscoveryEngine-V1beta-SearchResponse-Facet-FacetValue) \nReference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Facet::FacetValue.\n\nA facet value which contains value names and their count. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #count\n\n def count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Number of items that have this facet value.\n\n### #count=\n\n def count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Number of items that have this facet value. \n**Returns**\n\n- (::Integer) --- Number of items that have this facet value.\n\n### #interval\n\n def interval() -\u003e ::Google::Cloud::DiscoveryEngine::V1beta::Interval\n\n**Returns**\n\n- ([::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](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1beta__SearchRequest__FacetSpec__FacetKey_intervals_instance_ \"Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec::FacetKey#intervals (method)\").\n\n\n 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.\n\n### #interval=\n\n def interval=(value) -\u003e ::Google::Cloud::DiscoveryEngine::V1beta::Interval\n\n**Parameter**\n\n- **value** ([::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](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1beta__SearchRequest__FacetSpec__FacetKey_intervals_instance_ \"Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec::FacetKey#intervals (method)\").\n\n\nNote: 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. \n**Returns**\n\n- ([::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](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1beta__SearchRequest__FacetSpec__FacetKey_intervals_instance_ \"Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec::FacetKey#intervals (method)\").\n\n\n 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.\n\n### #value\n\n def value() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Text value of a facet, such as \"Black\" for facet \"colors\".\n\n 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.\n\n### #value=\n\n def value=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Text value of a facet, such as \"Black\" for facet \"colors\".\n\n\nNote: 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. \n**Returns**\n\n- (::String) --- Text value of a facet, such as \"Black\" for facet \"colors\".\n\n 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."]]