Skip to content

Commit ff47072

Browse files
Google APIscopybara-github
authored andcommitted
feat: add type support for Proto and Enum
PiperOrigin-RevId: 783889912
1 parent 016414f commit ff47072

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

google/bigtable/admin/v2/types.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,28 @@ message Type {
297297
Encoding encoding = 2;
298298
}
299299

300+
// A protobuf message type.
301+
// Values of type `Proto` are stored in `Value.bytes_value`.
302+
message Proto {
303+
// The ID of the schema bundle that this proto is defined in.
304+
string schema_bundle_id = 1;
305+
306+
// The fully qualified name of the protobuf message, including package. In
307+
// the format of "foo.bar.Message".
308+
string message_name = 2;
309+
}
310+
311+
// A protobuf enum type.
312+
// Values of type `Enum` are stored in `Value.int_value`.
313+
message Enum {
314+
// The ID of the schema bundle that this enum is defined in.
315+
string schema_bundle_id = 1;
316+
317+
// The fully qualified name of the protobuf enum message, including package.
318+
// In the format of "foo.bar.EnumMessage".
319+
string enum_name = 2;
320+
}
321+
300322
// An ordered list of elements of a given type.
301323
// Values of type `Array` are stored in `Value.array_value`.
302324
message Array {
@@ -413,5 +435,11 @@ message Type {
413435

414436
// Map
415437
Map map_type = 4;
438+
439+
// Proto
440+
Proto proto_type = 13;
441+
442+
// Enum
443+
Enum enum_type = 14;
416444
}
417445
}

0 commit comments

Comments
 (0)