Debian Codegraph @

internal/testprotos/proto3_proto/test.proto

raw
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 syntax = "proto3";
6
7 option go_package = "github.com/golang/protobuf/internal/testprotos/proto3_proto";
8
9 import "google/protobuf/any.proto";
10 import "proto2_proto/test.proto";
11
12 package proto3_test;
13
14 message Message {
15 enum Humour {
16 UNKNOWN = 0;
17 PUNS = 1;
18 SLAPSTICK = 2;
19 BILL_BAILEY = 3;
20 }
21
22 string name = 1;
23 Humour hilarity = 2;
24 uint32 height_in_cm = 3;
25 bytes data = 4;
26 int64 result_count = 7;
27 bool true_scotsman = 8;
28 float score = 9;
29
30 repeated uint64 key = 5;
31 repeated int32 short_key = 19;
32 Nested nested = 6;
33 repeated Humour r_funny = 16;
34
35 map<string, Nested> terrain = 10;
36 proto2_test.SubDefaults proto2_field = 11;
37 map<string, proto2_test.SubDefaults> proto2_value = 13;
38
39 google.protobuf.Any anything = 14;
40 repeated google.protobuf.Any many_things = 15;
41
42 Message submessage = 17;
43 repeated Message children = 18;
44
45 map<string, string> string_map = 20;
46 }
47
48 message Nested {
49 string bunny = 1;
50 bool cute = 2;
51 }
52
53 message MessageWithMap {
54 map<bool, bytes> byte_mapping = 1;
55 }
56
57
58 message IntMap {
59 map<int32, int32> rtt = 1;
60 }
61
62 message IntMaps {
63 repeated IntMap maps = 1;
64 }
65
66 message TestUTF8 {
67 string scalar = 1;
68 repeated string vector = 2;
69 oneof oneof { string field = 3; }
70 map<string, int64> map_key = 4;
71 map<int64, string> map_value = 5;
72 }