Google Cloud Migration Center V1 Client - Class Bucket (0.1.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Bucket.

A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds.

The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.

Generated from protobuf message google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket

Namespace

Google \ Cloud \ MigrationCenter \ V1 \ AggregationResult \ Histogram

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ lower_bound float

Lower bound - inclusive.

↳ upper_bound float

Upper bound - exclusive.

↳ count int|string

Count of items in the bucket.

getLowerBound

Lower bound - inclusive.

Returns
TypeDescription
float

setLowerBound

Lower bound - inclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getUpperBound

Upper bound - exclusive.

Returns
TypeDescription
float

setUpperBound

Upper bound - exclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getCount

Count of items in the bucket.

Returns
TypeDescription
int|string

setCount

Count of items in the bucket.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this