# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::HistogramQueryResult (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::HistogramQueryResult.

Histogram result that matches
[HistogramQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-HistogramQuery "Google::Cloud::Talent::V4beta1::HistogramQuery (class)") specified in
searches.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #histogram

    def histogram() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map from the values of the facet associated with distinct values to the
  number of matching entries with corresponding value.

  The key format is:
  - (for string histogram) string values stored in the field.
  - (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
  - (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`.

### #histogram=

    def histogram=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) ---

  A map from the values of the facet associated with distinct values to the
  number of matching entries with corresponding value.

  The key format is:
  - (for string histogram) string values stored in the field.
  - (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
  - (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map from the values of the facet associated with distinct values to the
  number of matching entries with corresponding value.

  The key format is:
  - (for string histogram) string values stored in the field.
  - (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
  - (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`.

### #histogram_query

    def histogram_query() -> ::String

**Returns**

- (::String) --- Requested histogram expression.

### #histogram_query=

    def histogram_query=(value) -> ::String

**Parameter**

- **value** (::String) --- Requested histogram expression.
**Returns**

- (::String) --- Requested histogram expression.