@@ -355,6 +355,26 @@ class CreateDatabaseRequest(proto.Message):
355
355
database_dialect (google.cloud.spanner_admin_database_v1.types.DatabaseDialect):
356
356
Optional. The dialect of the Cloud Spanner
357
357
Database.
358
+ proto_descriptors (bytes):
359
+ Optional. Proto descriptors used by CREATE/ALTER PROTO
360
+ BUNDLE statements in 'extra_statements' above. Contains a
361
+ protobuf-serialized
362
+ `google.protobuf.FileDescriptorSet <https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto>`__.
363
+ To generate it,
364
+ `install <https://grpc.io/docs/protoc-installation/>`__ and
365
+ run ``protoc`` with --include_imports and
366
+ --descriptor_set_out. For example, to generate for
367
+ moon/shot/app.proto, run
368
+
369
+ ::
370
+
371
+ $protoc --proto_path=/app_path --proto_path=/lib_path \
372
+ --include_imports \
373
+ --descriptor_set_out=descriptors.data \
374
+ moon/shot/app.proto
375
+
376
+ For more details, see protobuffer `self
377
+ description <https://developers.google.com/protocol-buffers/docs/techniques#self-description>`__.
358
378
"""
359
379
360
380
parent : str = proto .Field (
@@ -379,6 +399,10 @@ class CreateDatabaseRequest(proto.Message):
379
399
number = 5 ,
380
400
enum = common .DatabaseDialect ,
381
401
)
402
+ proto_descriptors : bytes = proto .Field (
403
+ proto .BYTES ,
404
+ number = 6 ,
405
+ )
382
406
383
407
384
408
class CreateDatabaseMetadata (proto .Message ):
@@ -521,6 +545,25 @@ class UpdateDatabaseDdlRequest(proto.Message):
521
545
underscore. If the named operation already exists,
522
546
[UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
523
547
returns ``ALREADY_EXISTS``.
548
+ proto_descriptors (bytes):
549
+ Optional. Proto descriptors used by CREATE/ALTER PROTO
550
+ BUNDLE statements. Contains a protobuf-serialized
551
+ `google.protobuf.FileDescriptorSet <https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto>`__.
552
+ To generate it,
553
+ `install <https://grpc.io/docs/protoc-installation/>`__ and
554
+ run ``protoc`` with --include_imports and
555
+ --descriptor_set_out. For example, to generate for
556
+ moon/shot/app.proto, run
557
+
558
+ ::
559
+
560
+ $protoc --proto_path=/app_path --proto_path=/lib_path \
561
+ --include_imports \
562
+ --descriptor_set_out=descriptors.data \
563
+ moon/shot/app.proto
564
+
565
+ For more details, see protobuffer `self
566
+ description <https://developers.google.com/protocol-buffers/docs/techniques#self-description>`__.
524
567
"""
525
568
526
569
database : str = proto .Field (
@@ -535,6 +578,10 @@ class UpdateDatabaseDdlRequest(proto.Message):
535
578
proto .STRING ,
536
579
number = 3 ,
537
580
)
581
+ proto_descriptors : bytes = proto .Field (
582
+ proto .BYTES ,
583
+ number = 4 ,
584
+ )
538
585
539
586
540
587
class DdlStatementActionInfo (proto .Message ):
@@ -682,12 +729,22 @@ class GetDatabaseDdlResponse(proto.Message):
682
729
A list of formatted DDL statements defining
683
730
the schema of the database specified in the
684
731
request.
732
+ proto_descriptors (bytes):
733
+ Proto descriptors stored in the database. Contains a
734
+ protobuf-serialized
735
+ `google.protobuf.FileDescriptorSet <https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto>`__.
736
+ For more details, see protobuffer `self
737
+ description <https://developers.google.com/protocol-buffers/docs/techniques#self-description>`__.
685
738
"""
686
739
687
740
statements : MutableSequence [str ] = proto .RepeatedField (
688
741
proto .STRING ,
689
742
number = 1 ,
690
743
)
744
+ proto_descriptors : bytes = proto .Field (
745
+ proto .BYTES ,
746
+ number = 2 ,
747
+ )
691
748
692
749
693
750
class ListDatabaseOperationsRequest (proto .Message ):
0 commit comments