Cloud Bigtable V2 Client - Class Value (2.2.1)

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

Value represents a dynamically typed value.

The typed fields in Value are used as a transport encoding for the actual value (which may be of a more complex type). See the documentation of the Type message for more details.

Generated from protobuf message google.bigtable.v2.Value

Namespace

Google \ Cloud \ Bigtable \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ typeGoogle\Cloud\Bigtable\V2\Type

The verified Type of this Value, if it cannot be inferred. Read results will never specify the encoding for type since the value will already have been decoded by the server. Furthermore, the type will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring type will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost Value will specify the type. This top-level type will define the types for any nested Struct' fields,Arrayelements, orMapkey/value pairs. If a nestedValueprovides atype` on write, the request will be rejected with INVALID_ARGUMENT.

↳ raw_valuestring

Represents a raw byte sequence with no type information. The type field must be omitted.

↳ raw_timestamp_microsint|string

Represents a raw cell timestamp with no type information. The type field must be omitted.

↳ bytes_valuestring

Represents a typed value transported as a byte sequence.

↳ string_valuestring

Represents a typed value transported as a string.

↳ int_valueint|string

Represents a typed value transported as an integer.

↳ bool_valuebool

Represents a typed value transported as a boolean.

↳ float_valuefloat

Represents a typed value transported as a floating point number.

↳ timestamp_valueGoogle\Protobuf\Timestamp

Represents a typed value transported as a timestamp.

↳ date_valueGoogle\Type\Date

Represents a typed value transported as a date.

↳ array_valueGoogle\Cloud\Bigtable\V2\ArrayValue

Represents a typed value transported as a sequence of values. To differentiate between Struct, Array, and Map, the outermost Value must provide an explicit type on write. This type will apply recursively to the nested Struct fields, Array elements, or Map key/value pairs, which must not supply their own type.

getType

The verified Type of this Value, if it cannot be inferred.

Read results will never specify the encoding for type since the value will already have been decoded by the server. Furthermore, the type will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring type will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost Value will specify the type. This top-level type will define the types for any nested Struct' fields,Arrayelements, orMapkey/value pairs. If a nestedValueprovides atype` on write, the request will be rejected with INVALID_ARGUMENT.

Returns
TypeDescription
Google\Cloud\Bigtable\V2\Type|null

hasType

clearType

setType

The verified Type of this Value, if it cannot be inferred.

Read results will never specify the encoding for type since the value will already have been decoded by the server. Furthermore, the type will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring type will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost Value will specify the type. This top-level type will define the types for any nested Struct' fields,Arrayelements, orMapkey/value pairs. If a nestedValueprovides atype` on write, the request will be rejected with INVALID_ARGUMENT.

Parameter
NameDescription
varGoogle\Cloud\Bigtable\V2\Type
Returns
TypeDescription
$this

getRawValue

Represents a raw byte sequence with no type information.

The type field must be omitted.

Returns
TypeDescription
string

hasRawValue

setRawValue

Represents a raw byte sequence with no type information.

The type field must be omitted.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRawTimestampMicros

Represents a raw cell timestamp with no type information.

The type field must be omitted.

Returns
TypeDescription
int|string

hasRawTimestampMicros

setRawTimestampMicros

Represents a raw cell timestamp with no type information.

The type field must be omitted.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getBytesValue

Represents a typed value transported as a byte sequence.

Returns
TypeDescription
string

hasBytesValue

setBytesValue

Represents a typed value transported as a byte sequence.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getStringValue

Represents a typed value transported as a string.

Returns
TypeDescription
string

hasStringValue

setStringValue

Represents a typed value transported as a string.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getIntValue

Represents a typed value transported as an integer.

Returns
TypeDescription
int|string

hasIntValue

setIntValue

Represents a typed value transported as an integer.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getBoolValue

Represents a typed value transported as a boolean.

Returns
TypeDescription
bool

hasBoolValue

setBoolValue

Represents a typed value transported as a boolean.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getFloatValue

Represents a typed value transported as a floating point number.

Returns
TypeDescription
float

hasFloatValue

setFloatValue

Represents a typed value transported as a floating point number.

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this

getTimestampValue

Represents a typed value transported as a timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTimestampValue

setTimestampValue

Represents a typed value transported as a timestamp.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getDateValue

Represents a typed value transported as a date.

Returns
TypeDescription
Google\Type\Date|null

hasDateValue

setDateValue

Represents a typed value transported as a date.

Parameter
NameDescription
varGoogle\Type\Date
Returns
TypeDescription
$this

getArrayValue

Represents a typed value transported as a sequence of values.

To differentiate between Struct, Array, and Map, the outermost Value must provide an explicit type on write. This type will apply recursively to the nested Struct fields, Array elements, or Map key/value pairs, which must not supply their own type.

Returns
TypeDescription
Google\Cloud\Bigtable\V2\ArrayValue|null

hasArrayValue

setArrayValue

Represents a typed value transported as a sequence of values.

To differentiate between Struct, Array, and Map, the outermost Value must provide an explicit type on write. This type will apply recursively to the nested Struct fields, Array elements, or Map key/value pairs, which must not supply their own type.

Parameter
NameDescription
varGoogle\Cloud\Bigtable\V2\ArrayValue
Returns
TypeDescription
$this

getKind

Returns
TypeDescription
string