columns = $columns; } /** * @return BigtableColumn[] */ public function getColumns() { return $this->columns; } /** * Optional. The encoding of the values when the type is not STRING. * Acceptable encoding values are: TEXT - indicates values are alphanumeric * text strings. BINARY - indicates values are encoded using HBase * Bytes.toBytes family of functions. PROTO_BINARY - indicates values are * encoded using serialized proto messages. This can only be used in * combination with JSON type. This can be overridden for a specific column by * listing that column in 'columns' and specifying an encoding for it. * * @param string $encoding */ public function setEncoding($encoding) { $this->encoding = $encoding; } /** * @return string */ public function getEncoding() { return $this->encoding; } /** * Identifier of the column family. * * @param string $familyId */ public function setFamilyId($familyId) { $this->familyId = $familyId; } /** * @return string */ public function getFamilyId() { return $this->familyId; } /** * Optional. If this is set only the latest version of value are exposed for * all columns in this column family. This can be overridden for a specific * column by listing that column in 'columns' and specifying a different * setting for that column. * * @param bool $onlyReadLatest */ public function setOnlyReadLatest($onlyReadLatest) { $this->onlyReadLatest = $onlyReadLatest; } /** * @return bool */ public function getOnlyReadLatest() { return $this->onlyReadLatest; } /** * Optional. Protobuf-specific configurations, only takes effect when the * encoding is PROTO_BINARY. * * @param BigtableProtoConfig $protoConfig */ public function setProtoConfig(BigtableProtoConfig $protoConfig) { $this->protoConfig = $protoConfig; } /** * @return BigtableProtoConfig */ public function getProtoConfig() { return $this->protoConfig; } /** * Optional. The type to convert the value in cells of this column family. The * values are expected to be encoded using HBase Bytes.toBytes function when * using the BINARY encoding value. Following BigQuery types are allowed * (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON * Default type is BYTES. This can be overridden for a specific column by * listing that column in 'columns' and specifying a type for it. * * @param string $type */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BigtableColumnFamily::class, 'Google_Service_Bigquery_BigtableColumnFamily');