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 messagegoogle.bigtable.v2.Cell
Namespace
Google \ Cloud \ Bigtable \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
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 oftimestamp_microswhich 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.
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 oftimestamp_microswhich are multiples of 1000.
Returns
Type
Description
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 oftimestamp_microswhich are multiples of 1000.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getValue
The value stored in the cell.
May contain any byte string, including the empty string, up to 100MiB in
length.
Returns
Type
Description
string
setValue
The value stored in the cell.
May contain any byte string, including the empty string, up to 100MiB in
length.
[[["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-09 UTC."],[],[],null,["# Cloud Bigtable V2 Client - Class Cell (2.17.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.1 (latest)](/php/docs/reference/cloud-bigtable/latest/V2.Cell)\n- [2.17.0](/php/docs/reference/cloud-bigtable/2.17.0/V2.Cell)\n- [2.16.0](/php/docs/reference/cloud-bigtable/2.16.0/V2.Cell)\n- [2.15.0](/php/docs/reference/cloud-bigtable/2.15.0/V2.Cell)\n- [2.14.0](/php/docs/reference/cloud-bigtable/2.14.0/V2.Cell)\n- [2.13.0](/php/docs/reference/cloud-bigtable/2.13.0/V2.Cell)\n- [2.12.0](/php/docs/reference/cloud-bigtable/2.12.0/V2.Cell)\n- [2.11.1](/php/docs/reference/cloud-bigtable/2.11.1/V2.Cell)\n- [2.9.1](/php/docs/reference/cloud-bigtable/2.9.1/V2.Cell)\n- [2.8.0](/php/docs/reference/cloud-bigtable/2.8.0/V2.Cell)\n- [2.7.0](/php/docs/reference/cloud-bigtable/2.7.0/V2.Cell)\n- [2.6.3](/php/docs/reference/cloud-bigtable/2.6.3/V2.Cell)\n- [2.5.0](/php/docs/reference/cloud-bigtable/2.5.0/V2.Cell)\n- [2.4.0](/php/docs/reference/cloud-bigtable/2.4.0/V2.Cell)\n- [2.3.0](/php/docs/reference/cloud-bigtable/2.3.0/V2.Cell)\n- [2.2.1](/php/docs/reference/cloud-bigtable/2.2.1/V2.Cell)\n- [2.1.0](/php/docs/reference/cloud-bigtable/2.1.0/V2.Cell)\n- [2.0.1](/php/docs/reference/cloud-bigtable/2.0.1/V2.Cell)\n- [1.32.1](/php/docs/reference/cloud-bigtable/1.32.1/V2.Cell)\n- [1.31.1](/php/docs/reference/cloud-bigtable/1.31.1/V2.Cell)\n- [1.30.0](/php/docs/reference/cloud-bigtable/1.30.0/V2.Cell)\n- [1.29.2](/php/docs/reference/cloud-bigtable/1.29.2/V2.Cell)\n- [1.28.3](/php/docs/reference/cloud-bigtable/1.28.3/V2.Cell)\n- [1.27.0](/php/docs/reference/cloud-bigtable/1.27.0/V2.Cell)\n- [1.26.2](/php/docs/reference/cloud-bigtable/1.26.2/V2.Cell)\n- [1.25.0](/php/docs/reference/cloud-bigtable/1.25.0/V2.Cell)\n- [1.24.1](/php/docs/reference/cloud-bigtable/1.24.1/V2.Cell)\n- [1.23.0](/php/docs/reference/cloud-bigtable/1.23.0/V2.Cell)\n- [1.22.2](/php/docs/reference/cloud-bigtable/1.22.2/V2.Cell)\n- [1.21.1](/php/docs/reference/cloud-bigtable/1.21.1/V2.Cell)\n- [1.20.3](/php/docs/reference/cloud-bigtable/1.20.3/V2.Cell) \nReference documentation and code samples for the Cloud Bigtable V2 Client class Cell.\n\nSpecifies (some of) the contents of a single row/column/timestamp of a table.\n\nGenerated from protobuf message `google.bigtable.v2.Cell`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Bigtable \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTimestampMicros\n\nThe cell's stored timestamp, which also uniquely identifies it within\nits column.\n\nValues are always expressed in microseconds, but individual tables may set\na coarser granularity to further restrict the allowed values. For\nexample, a table which specifies millisecond granularity will only allow\nvalues of `timestamp_micros` which are multiples of 1000.\n\n### setTimestampMicros\n\nThe cell's stored timestamp, which also uniquely identifies it within\nits column.\n\nValues are always expressed in microseconds, but individual tables may set\na coarser granularity to further restrict the allowed values. For\nexample, a table which specifies millisecond granularity will only allow\nvalues of `timestamp_micros` which are multiples of 1000.\n\n### getValue\n\nThe value stored in the cell.\n\nMay contain any byte string, including the empty string, up to 100MiB in\nlength.\n\n### setValue\n\nThe value stored in the cell.\n\nMay contain any byte string, including the empty string, up to 100MiB in\nlength.\n\n### getLabels\n\nLabels applied to the cell by a [RowFilter](/php/docs/reference/cloud-bigtable/latest/V2.RowFilter).\n\n### setLabels\n\nLabels applied to the cell by a [RowFilter](/php/docs/reference/cloud-bigtable/latest/V2.RowFilter)."]]