Cloud Bigtable V2 Client - Class Cell (1.28.3)

Reference documentation and code samples for the Cloud Bigtable V2 Client class Cell.

Specifies (some of) the contents of a single row/column/timestamp of a table.

Generated from protobuf message google.bigtable.v2.Cell

Namespace

Google \ Cloud \ Bigtable \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ timestamp_micros int|string

The cell's stored timestamp, which also uniquely identifies it within its column. Values are always expressed in microseconds, but individual tables may set a coarser granularity to further restrict the allowed values. For example, a table which specifies millisecond granularity will only allow values of timestamp_micros which are multiples of 1000.

↳ value string

The value stored in the cell. May contain any byte string, including the empty string, up to 100MiB in length.

↳ labels array

Labels applied to the cell by a RowFilter.

getTimestampMicros

The cell's stored timestamp, which also uniquely identifies it within its column.

Values are always expressed in microseconds, but individual tables may set a coarser granularity to further restrict the allowed values. For example, a table which specifies millisecond granularity will only allow values of timestamp_micros which are multiples of 1000.

Returns
TypeDescription
int|string

setTimestampMicros

The cell's stored timestamp, which also uniquely identifies it within its column.

Values are always expressed in microseconds, but individual tables may set a coarser granularity to further restrict the allowed values. For example, a table which specifies millisecond granularity will only allow values of timestamp_micros which are multiples of 1000.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getValue

The value stored in the cell.

May contain any byte string, including the empty string, up to 100MiB in length.

Returns
TypeDescription
string

setValue

The value stored in the cell.

May contain any byte string, including the empty string, up to 100MiB in length.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Labels applied to the cell by a RowFilter.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLabels

Labels applied to the cell by a RowFilter.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this