# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::FacetBucket (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::FacetBucket.

Holds the facet value, selections state, and metadata.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #range

    def range() -> ::Google::Cloud::VisionAI::V1::FacetBucket::Range

**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetBucket::Range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetBucket-Range)) --- Range value.


  Note: The following fields are mutually exclusive: `range`, `value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #range=

    def range=(value) -> ::Google::Cloud::VisionAI::V1::FacetBucket::Range

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::FacetBucket::Range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetBucket-Range)) --- Range value.


  Note: The following fields are mutually exclusive: `range`, `value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetBucket::Range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetBucket-Range)) --- Range value.


  Note: The following fields are mutually exclusive: `range`, `value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #selected

    def selected() -> ::Boolean

**Returns**

- (::Boolean) --- Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.

### #selected=

    def selected=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.
**Returns**

- (::Boolean) --- Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.

### #value

    def value() -> ::Google::Cloud::VisionAI::V1::FacetValue

**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Singular value.


  Note: The following fields are mutually exclusive: `value`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #value=

    def value=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Singular value.


  Note: The following fields are mutually exclusive: `value`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Singular value.


  Note: The following fields are mutually exclusive: `value`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.