Google Cloud Migration Center V1 Client - Class Bucket (1.0.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
Name Description
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
Type Description
float

setLowerBound

Lower bound - inclusive.

Parameter
Name Description
var float
Returns
Type Description
$this

getUpperBound

Upper bound - exclusive.

Returns
Type Description
float

setUpperBound

Upper bound - exclusive.

Parameter
Name Description
var float
Returns
Type Description
$this

getCount

Count of items in the bucket.

Returns
Type Description
int|string

setCount

Count of items in the bucket.

Parameter
Name Description
var int|string
Returns
Type Description
$this