Reference documentation and code samples for the Cloud Bigtable V2 Client class Struct.
A structured data value, consisting of fields which map to dynamically typed values.
Values of type Struct are stored in Value.array_value where entries are
in the same order and number as field_types.
Generated from protobuf message google.bigtable.v2.Type.Struct
Namespace
Google \ Cloud \ Bigtable \ V2 \ TypeMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ fields |
array<Struct\Field>
The names and types of the fields in this struct. |
↳ encoding |
Struct\Encoding
The encoding to use when converting to or from lower level types. |
getFields
The names and types of the fields in this struct.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setFields
The names and types of the fields in this struct.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Struct\Field>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEncoding
The encoding to use when converting to or from lower level types.
| Returns | |
|---|---|
| Type | Description |
Struct\Encoding|null |
|
hasEncoding
clearEncoding
setEncoding
The encoding to use when converting to or from lower level types.
| Parameter | |
|---|---|
| Name | Description |
var |
Struct\Encoding
|
| Returns | |
|---|---|
| Type | Description |
$this |
|