1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.6 Reference documentation and code samples for the Cloud Logging V2 API class Google::Api::Distribution::BucketOptions.

`BucketOptions` describes the bucket boundaries used to create a histogram
for the distribution. The buckets can be in a linear sequence, an
exponential sequence, or each bucket can be specified explicitly.
`BucketOptions` does not include the number of values in each bucket.


<br />

A bucket has an inclusive lower bound and exclusive upper bound for the
values that are counted for that bucket. The upper bound of a bucket must
be strictly greater than the lower bound. The sequence of N buckets for a
distribution consists of an underflow bucket (number 0), zero or more
finite buckets (number 1 through N - 2) and an overflow bucket (number N -
1). The buckets are contiguous: the lower bound of bucket i (i \> 0) is the
same as the upper bound of bucket i - 1. The buckets span the whole range
of finite values: lower bound of the underflow bucket is -infinity and the
upper bound of the overflow bucket is +infinity. The finite buckets are
so-called because both bounds are finite.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #explicit_buckets

    def explicit_buckets() -> ::Google::Api::Distribution::BucketOptions::Explicit

**Returns**

- ([::Google::Api::Distribution::BucketOptions::Explicit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Explicit)) --- The explicit buckets.


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

### #explicit_buckets=

    def explicit_buckets=(value) -> ::Google::Api::Distribution::BucketOptions::Explicit

**Parameter**

- **value** ([::Google::Api::Distribution::BucketOptions::Explicit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Explicit)) --- The explicit buckets.


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

- ([::Google::Api::Distribution::BucketOptions::Explicit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Explicit)) --- The explicit buckets.


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

### #exponential_buckets

    def exponential_buckets() -> ::Google::Api::Distribution::BucketOptions::Exponential

**Returns**

- ([::Google::Api::Distribution::BucketOptions::Exponential](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Exponential)) --- The exponential buckets.


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

### #exponential_buckets=

    def exponential_buckets=(value) -> ::Google::Api::Distribution::BucketOptions::Exponential

**Parameter**

- **value** ([::Google::Api::Distribution::BucketOptions::Exponential](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Exponential)) --- The exponential buckets.


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

- ([::Google::Api::Distribution::BucketOptions::Exponential](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Exponential)) --- The exponential buckets.


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

### #linear_buckets

    def linear_buckets() -> ::Google::Api::Distribution::BucketOptions::Linear

**Returns**

- ([::Google::Api::Distribution::BucketOptions::Linear](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Linear)) --- The linear bucket.


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

### #linear_buckets=

    def linear_buckets=(value) -> ::Google::Api::Distribution::BucketOptions::Linear

**Parameter**

- **value** ([::Google::Api::Distribution::BucketOptions::Linear](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Linear)) --- The linear bucket.


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

- ([::Google::Api::Distribution::BucketOptions::Linear](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Linear)) --- The linear bucket.


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