Debian Codegraph @

tests/integration/schema_registry/data/proto/NestedTestProto.proto

raw
1 syntax = "proto3";
2
3 import "google/protobuf/timestamp.proto";
4
5 package tests.integration.serialization.data;
6
7 option java_package = "io.confluent.kafka.serializers.protobuf.test";
8 option java_outer_classname = "NestedTestProto";
9 option java_multiple_files = false;
10
11 message UserId {
12 oneof user_id {
13 string kafka_user_id = 1;
14 int32 other_user_id = 2;
15 MessageId another_id = 3;
16 }
17 }
18
19 message MessageId {
20 string id = 1;
21 }
22
23 enum Status {
24 ACTIVE = 0;
25 INACTIVE = 1;
26 }
27
28 message ComplexType {
29 oneof some_val {
30 string one_id = 1;
31 int32 other_id = 2;
32 }
33 bool is_active = 3;
34 }
35
36 /*
37 * Complex message using nested protos and repeated fields
38 */
39 message NestedMessage {
40 UserId user_id = 1;
41 bool is_active = 2;
42 repeated string experiments_active = 3;
43 Status status = 5;
44 ComplexType complex_type = 6;
45 map<string, string> map_type = 7;
46 InnerMessage inner = 8;
47
48 message InnerMessage {
49 string id = 1 [json_name="id"];
50 repeated int32 ids = 2 [packed=true];
51 }
52
53 enum InnerEnum {
54 option allow_alias = true;
55 ZERO = 0;
56 ALSO_ZERO = 0;
57 }
58
59 reserved 14, 15, 9 to 11;
60 reserved "foo", "bar";
61 }