Reference documentation and code samples for the Google API Common Protos Client class BucketOptions.
BucketOptionsdescribes 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.
BucketOptionsdoes not include the number of values in each bucket.
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.
Generated from protobuf messagegoogle.api.Distribution.BucketOptions
[[["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,["# Google API Common Protos Client - Class BucketOptions (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.Distribution.BucketOptions)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.Distribution.BucketOptions)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.Distribution.BucketOptions)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.Distribution.BucketOptions)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.Distribution.BucketOptions)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.Distribution.BucketOptions) \nReference documentation and code samples for the Google API Common Protos Client class BucketOptions.\n\n`BucketOptions` describes the bucket boundaries used to create a histogram\nfor the distribution. The buckets can be in a linear sequence, an\nexponential sequence, or each bucket can be specified explicitly.\n\n`BucketOptions` does not include the number of values in each bucket.\nA bucket has an inclusive lower bound and exclusive upper bound for the\nvalues that are counted for that bucket. The upper bound of a bucket must\nbe strictly greater than the lower bound. The sequence of N buckets for a\ndistribution consists of an underflow bucket (number 0), zero or more\nfinite buckets (number 1 through N - 2) and an overflow bucket (number N -\n1). The buckets are contiguous: the lower bound of bucket i (i \\\u003e 0) is the\nsame as the upper bound of bucket i - 1. The buckets span the whole range\nof finite values: lower bound of the underflow bucket is -infinity and the\nupper bound of the overflow bucket is +infinity. The finite buckets are\nso-called because both bounds are finite.\n\nGenerated from protobuf message `google.api.Distribution.BucketOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Api \\\\ Distribution\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLinearBuckets\n\nThe linear bucket.\n\n### hasLinearBuckets\n\n### setLinearBuckets\n\nThe linear bucket.\n\n### getExponentialBuckets\n\nThe exponential buckets.\n\n### hasExponentialBuckets\n\n### setExponentialBuckets\n\nThe exponential buckets.\n\n### getExplicitBuckets\n\nThe explicit buckets.\n\n### hasExplicitBuckets\n\n### setExplicitBuckets\n\nThe explicit buckets.\n\n### getOptions"]]