# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SearchResponse::Facet::FacetValue (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::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::V1::Interval

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Interval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Interval)) --- Interval value for a facet, such as \[10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1__SearchRequest__FacetSpec__FacetKey_intervals_instance_ "Google::Cloud::DiscoveryEngine::V1::SearchRequest::FacetSpec::FacetKey#intervals (method)").


  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::V1::Interval

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::Interval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Interval)) --- Interval value for a facet, such as \[10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1__SearchRequest__FacetSpec__FacetKey_intervals_instance_ "Google::Cloud::DiscoveryEngine::V1::SearchRequest::FacetSpec::FacetKey#intervals (method)").


  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.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Interval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Interval)) --- Interval value for a facet, such as \[10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchRequest-FacetSpec-FacetKey#Google__Cloud__DiscoveryEngine__V1__SearchRequest__FacetSpec__FacetKey_intervals_instance_ "Google::Cloud::DiscoveryEngine::V1::SearchRequest::FacetSpec::FacetKey#intervals (method)").


  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

**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=

    def value=(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.