Cloud Bigtable V2 Client - Class ProtoSchema (2.17.1)

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

Represents a protobuf schema.

Generated from protobuf message google.bigtable.admin.v2.ProtoSchema

Namespace

Google \ Cloud \ Bigtable \ Admin \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ proto_descriptors
string

Required. Contains a protobuf-serialized google.protobuf.FileDescriptorSet , which could include multiple proto files. To generate it, install and run protoc with --include_imports and --descriptor_set_out . For example, to generate for moon/shot/app.proto, run $protoc --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ --descriptor_set_out=descriptors.pb \ moon/shot/app.proto For more details, see protobuffer self description .

getProtoDescriptors

Required. Contains a protobuf-serialized google.protobuf.FileDescriptorSet , which could include multiple proto files.

To generate it, install and run protoc with --include_imports and --descriptor_set_out . For example, to generate for moon/shot/app.proto, run

 $protoc  --proto_path=/app_path --proto_path=/lib_path \
         --include_imports \
         --descriptor_set_out=descriptors.pb \
         moon/shot/app.proto 

For more details, see protobuffer self description .

Returns
Type
Description
string

setProtoDescriptors

Required. Contains a protobuf-serialized google.protobuf.FileDescriptorSet , which could include multiple proto files.

To generate it, install and run protoc with --include_imports and --descriptor_set_out . For example, to generate for moon/shot/app.proto, run

 $protoc  --proto_path=/app_path --proto_path=/lib_path \
         --include_imports \
         --descriptor_set_out=descriptors.pb \
         moon/shot/app.proto 

For more details, see protobuffer self description .

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: