Class: Google::Apis::BigtableadminV2::ProtoSchema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb

Overview

Represents a protobuf schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProtoSchema

Returns a new instance of ProtoSchema.



3752
3753
3754
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3752

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#proto_descriptorsString

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. Corresponds to the JSON property protoDescriptors NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3750
3751
3752
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3750

def proto_descriptors
  @proto_descriptors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3757
3758
3759
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3757

def update!(**args)
  @proto_descriptors = args[:proto_descriptors] if args.key?(:proto_descriptors)
end