Reference documentation and code samples for the Cloud Bigtable V2 Client class SetCell.
A Mutation which sets the value of the specified cell.
Generated from protobuf message google.bigtable.v2.Mutation.SetCell
Namespace
Google \ Cloud \ Bigtable \ V2 \ Mutation
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ family_name
string
The name of the family into which new data should be written. Must match [-_.a-zA-Z0-9]+
↳ column_qualifier
string
The qualifier of the column into which new data should be written. Can be any byte string, including the empty string.
↳ timestamp_micros
int|string
The timestamp of the cell into which new data should be written. Use -1 for current Bigtable server time. Otherwise, the client should set this value itself, noting that the default value is a timestamp of zero if the field is left unspecified. Values must match the granularity of the table (e.g. micros, millis).
↳ value
string
The value to be written into the specified cell.
getFamilyName
The name of the family into which new data should be written.
Must match [-_.a-zA-Z0-9]+
Returns
Type
Description
string
setFamilyName
The name of the family into which new data should be written.
Must match [-_.a-zA-Z0-9]+
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getColumnQualifier
The qualifier of the column into which new data should be written.
Can be any byte string, including the empty string.
Returns
Type
Description
string
setColumnQualifier
The qualifier of the column into which new data should be written.
Can be any byte string, including the empty string.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTimestampMicros
The timestamp of the cell into which new data should be written.
Use -1 for current Bigtable server time.
Otherwise, the client should set this value itself, noting that the
default value is a timestamp of zero if the field is left unspecified.
Values must match the granularity of the table (e.g. micros, millis).
Returns
Type
Description
int|string
setTimestampMicros
The timestamp of the cell into which new data should be written.
Use -1 for current Bigtable server time.
Otherwise, the client should set this value itself, noting that the
default value is a timestamp of zero if the field is left unspecified.
Values must match the granularity of the table (e.g. micros, millis).
[[["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,["# Cloud Bigtable V2 Client - Class SetCell (2.17.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.1 (latest)](/php/docs/reference/cloud-bigtable/latest/V2.Mutation.SetCell)\n- [2.17.0](/php/docs/reference/cloud-bigtable/2.17.0/V2.Mutation.SetCell)\n- [2.16.0](/php/docs/reference/cloud-bigtable/2.16.0/V2.Mutation.SetCell)\n- [2.15.0](/php/docs/reference/cloud-bigtable/2.15.0/V2.Mutation.SetCell)\n- [2.14.0](/php/docs/reference/cloud-bigtable/2.14.0/V2.Mutation.SetCell)\n- [2.13.0](/php/docs/reference/cloud-bigtable/2.13.0/V2.Mutation.SetCell)\n- [2.12.0](/php/docs/reference/cloud-bigtable/2.12.0/V2.Mutation.SetCell)\n- [2.11.1](/php/docs/reference/cloud-bigtable/2.11.1/V2.Mutation.SetCell)\n- [2.9.1](/php/docs/reference/cloud-bigtable/2.9.1/V2.Mutation.SetCell)\n- [2.8.0](/php/docs/reference/cloud-bigtable/2.8.0/V2.Mutation.SetCell)\n- [2.7.0](/php/docs/reference/cloud-bigtable/2.7.0/V2.Mutation.SetCell)\n- [2.6.3](/php/docs/reference/cloud-bigtable/2.6.3/V2.Mutation.SetCell)\n- [2.5.0](/php/docs/reference/cloud-bigtable/2.5.0/V2.Mutation.SetCell)\n- [2.4.0](/php/docs/reference/cloud-bigtable/2.4.0/V2.Mutation.SetCell)\n- [2.3.0](/php/docs/reference/cloud-bigtable/2.3.0/V2.Mutation.SetCell)\n- [2.2.1](/php/docs/reference/cloud-bigtable/2.2.1/V2.Mutation.SetCell)\n- [2.1.0](/php/docs/reference/cloud-bigtable/2.1.0/V2.Mutation.SetCell)\n- [2.0.1](/php/docs/reference/cloud-bigtable/2.0.1/V2.Mutation.SetCell)\n- [1.32.1](/php/docs/reference/cloud-bigtable/1.32.1/V2.Mutation.SetCell)\n- [1.31.1](/php/docs/reference/cloud-bigtable/1.31.1/V2.Mutation.SetCell)\n- [1.30.0](/php/docs/reference/cloud-bigtable/1.30.0/V2.Mutation.SetCell)\n- [1.29.2](/php/docs/reference/cloud-bigtable/1.29.2/V2.Mutation.SetCell)\n- [1.28.3](/php/docs/reference/cloud-bigtable/1.28.3/V2.Mutation.SetCell)\n- [1.27.0](/php/docs/reference/cloud-bigtable/1.27.0/V2.Mutation.SetCell)\n- [1.26.2](/php/docs/reference/cloud-bigtable/1.26.2/V2.Mutation.SetCell)\n- [1.25.0](/php/docs/reference/cloud-bigtable/1.25.0/V2.Mutation.SetCell)\n- [1.24.1](/php/docs/reference/cloud-bigtable/1.24.1/V2.Mutation.SetCell)\n- [1.23.0](/php/docs/reference/cloud-bigtable/1.23.0/V2.Mutation.SetCell)\n- [1.22.2](/php/docs/reference/cloud-bigtable/1.22.2/V2.Mutation.SetCell)\n- [1.21.1](/php/docs/reference/cloud-bigtable/1.21.1/V2.Mutation.SetCell)\n- [1.20.3](/php/docs/reference/cloud-bigtable/1.20.3/V2.Mutation.SetCell) \nReference documentation and code samples for the Cloud Bigtable V2 Client class SetCell.\n\nA Mutation which sets the value of the specified cell.\n\nGenerated from protobuf message `google.bigtable.v2.Mutation.SetCell`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Bigtable \\\\ V2 \\\\ Mutation\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFamilyName\n\nThe name of the family into which new data should be written.\n\nMust match `[-_.a-zA-Z0-9]+`\n\n### setFamilyName\n\nThe name of the family into which new data should be written.\n\nMust match `[-_.a-zA-Z0-9]+`\n\n### getColumnQualifier\n\nThe qualifier of the column into which new data should be written.\n\nCan be any byte string, including the empty string.\n\n### setColumnQualifier\n\nThe qualifier of the column into which new data should be written.\n\nCan be any byte string, including the empty string.\n\n### getTimestampMicros\n\nThe timestamp of the cell into which new data should be written.\n\nUse -1 for current Bigtable server time.\nOtherwise, the client should set this value itself, noting that the\ndefault value is a timestamp of zero if the field is left unspecified.\nValues must match the granularity of the table (e.g. micros, millis).\n\n### setTimestampMicros\n\nThe timestamp of the cell into which new data should be written.\n\nUse -1 for current Bigtable server time.\nOtherwise, the client should set this value itself, noting that the\ndefault value is a timestamp of zero if the field is left unspecified.\nValues must match the granularity of the table (e.g. micros, millis).\n\n### getValue\n\nThe value to be written into the specified cell.\n\n### setValue\n\nThe value to be written into the specified cell."]]