-
Notifications
You must be signed in to change notification settings - Fork 571
/
all_types.proto
192 lines (176 loc) · 8.05 KB
/
all_types.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/*
* Copyright 2013 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package squareup.protos.kotlin.alltypes;
import "wire/extensions.proto";
option java_package = "com.squareup.wire.protos.kotlin.alltypes";
option java_outer_classname = "AlltypesProtos";
message AllTypes {
extensions 1001 to 1217;
enum NestedEnum {
UNKNOWN = 0;
A = 1;
}
message NestedMessage {
optional int32 a = 1;
}
optional int32 opt_int32 = 1;
optional uint32 opt_uint32 = 2;
optional sint32 opt_sint32 = 3;
optional fixed32 opt_fixed32 = 4;
optional sfixed32 opt_sfixed32 = 5;
optional int64 opt_int64 = 6;
optional uint64 opt_uint64 = 7;
optional sint64 opt_sint64 = 8;
optional fixed64 opt_fixed64 = 9;
optional sfixed64 opt_sfixed64 = 10;
optional bool opt_bool = 11;
optional float opt_float = 12;
optional double opt_double = 13;
optional string opt_string = 14;
optional bytes opt_bytes = 15;
optional NestedEnum opt_nested_enum = 16;
optional NestedMessage opt_nested_message = 17;
required int32 req_int32 = 101;
required uint32 req_uint32 = 102;
required sint32 req_sint32 = 103;
required fixed32 req_fixed32 = 104;
required sfixed32 req_sfixed32 = 105;
required int64 req_int64 = 106;
required uint64 req_uint64 = 107;
required sint64 req_sint64 = 108;
required fixed64 req_fixed64 = 109;
required sfixed64 req_sfixed64 = 110;
required bool req_bool = 111;
required float req_float = 112;
required double req_double = 113;
required string req_string = 114;
required bytes req_bytes = 115;
required NestedEnum req_nested_enum = 116;
required NestedMessage req_nested_message = 117;
repeated int32 rep_int32 = 201;
repeated uint32 rep_uint32 = 202;
repeated sint32 rep_sint32 = 203;
repeated fixed32 rep_fixed32 = 204;
repeated sfixed32 rep_sfixed32 = 205;
repeated int64 rep_int64 = 206;
repeated uint64 rep_uint64 = 207;
repeated sint64 rep_sint64 = 208;
repeated fixed64 rep_fixed64 = 209;
repeated sfixed64 rep_sfixed64 = 210;
repeated bool rep_bool = 211;
repeated float rep_float = 212;
repeated double rep_double = 213;
repeated string rep_string = 214;
repeated bytes rep_bytes = 215;
repeated NestedEnum rep_nested_enum = 216;
repeated NestedMessage rep_nested_message = 217;
repeated int32 pack_int32 = 301 [packed = true];
repeated uint32 pack_uint32 = 302 [packed = true];
repeated sint32 pack_sint32 = 303 [packed = true];
repeated fixed32 pack_fixed32 = 304 [packed = true];
repeated sfixed32 pack_sfixed32 = 305 [packed = true];
repeated int64 pack_int64 = 306 [packed = true];
repeated uint64 pack_uint64 = 307 [packed = true];
repeated sint64 pack_sint64 = 308 [packed = true];
repeated fixed64 pack_fixed64 = 309 [packed = true];
repeated sfixed64 pack_sfixed64 = 310 [packed = true];
repeated bool pack_bool = 311 [packed = true];
repeated float pack_float = 312 [packed = true];
repeated double pack_double = 313 [packed = true];
repeated NestedEnum pack_nested_enum = 316 [packed = true];
optional int32 default_int32 = 401 [default = 2147483647 ];
optional uint32 default_uint32 = 402 [default = 4294967295 ];
optional sint32 default_sint32 = 403 [default = -2147483648 ];
optional fixed32 default_fixed32 = 404 [default = 4294967295 ];
optional sfixed32 default_sfixed32 = 405 [default = -2147483648 ];
optional int64 default_int64 = 406 [default = 9223372036854775807 ];
optional uint64 default_uint64 = 407 [default = 18446744073709551615 ];
optional sint64 default_sint64 = 408 [default = -9223372036854775808 ];
optional fixed64 default_fixed64 = 409 [default = 18446744073709551615 ];
optional sfixed64 default_sfixed64 = 410 [default = -9223372036854775808 ];
optional bool default_bool = 411 [default = true ];
optional float default_float = 412 [default = 123.456e7 ];
optional double default_double = 413 [default = 123.456e78 ];
optional string default_string = 414 [default = "çok\a\b\f\n\r\t\v\1\01\001\17\017\176\x1\x01\x11\x01\x01\x11güzel" ];
optional bytes default_bytes = 415 [default = "çok\a\b\f\n\r\t\v\1\01\001\17\017\176\x1\x01\x11\x1\x01\x11güzel" ];
optional NestedEnum default_nested_enum = 416 [default = A ];
map<int32, int32> map_int32_int32 = 501;
map<string, string> map_string_string = 502;
map<string, NestedMessage> map_string_message = 503;
map<string, NestedEnum> map_string_enum = 504;
repeated int32 array_int32 = 601 [packed = true, (wire.use_array) = true];
repeated uint32 array_uint32 = 602 [packed = true, (wire.use_array) = true];
repeated sint32 array_sint32 = 603 [packed = true, (wire.use_array) = true];
repeated fixed32 array_fixed32 = 604 [packed = true, (wire.use_array) = true];
repeated sfixed32 array_sfixed32 = 605 [packed = true, (wire.use_array) = true];
repeated int64 array_int64 = 606 [packed = true, (wire.use_array) = true];
repeated uint64 array_uint64 = 607 [packed = true, (wire.use_array) = true];
repeated sint64 array_sint64 = 608 [packed = true, (wire.use_array) = true];
repeated fixed64 array_fixed64 = 609 [packed = true, (wire.use_array) = true];
repeated sfixed64 array_sfixed64 = 610 [packed = true, (wire.use_array) = true];
repeated float array_float = 611 [packed = true, (wire.use_array) = true];
repeated double array_double = 612 [packed = true, (wire.use_array) = true];
}
extend AllTypes {
optional int32 ext_opt_int32 = 1001;
optional uint32 ext_opt_uint32 = 1002;
optional sint32 ext_opt_sint32 = 1003;
optional fixed32 ext_opt_fixed32 = 1004;
optional sfixed32 ext_opt_sfixed32 = 1005;
optional int64 ext_opt_int64 = 1006;
optional uint64 ext_opt_uint64 = 1007;
optional sint64 ext_opt_sint64 = 1008;
optional fixed64 ext_opt_fixed64 = 1009;
optional sfixed64 ext_opt_sfixed64 = 1010;
optional bool ext_opt_bool = 1011;
optional float ext_opt_float = 1012;
optional double ext_opt_double = 1013;
optional string ext_opt_string = 1014;
optional bytes ext_opt_bytes = 1015;
optional AllTypes.NestedEnum ext_opt_nested_enum = 1016;
optional AllTypes.NestedMessage ext_opt_nested_message = 1017;
repeated int32 ext_rep_int32 = 1101;
repeated uint32 ext_rep_uint32 = 1102;
repeated sint32 ext_rep_sint32 = 1103;
repeated fixed32 ext_rep_fixed32 = 1104;
repeated sfixed32 ext_rep_sfixed32 = 1105;
repeated int64 ext_rep_int64 = 1106;
repeated uint64 ext_rep_uint64 = 1107;
repeated sint64 ext_rep_sint64 = 1108;
repeated fixed64 ext_rep_fixed64 = 1109;
repeated sfixed64 ext_rep_sfixed64 = 1110;
repeated bool ext_rep_bool = 1111;
repeated float ext_rep_float = 1112;
repeated double ext_rep_double = 1113;
repeated string ext_rep_string = 1114;
repeated bytes ext_rep_bytes = 1115;
repeated AllTypes.NestedEnum ext_rep_nested_enum = 1116;
repeated AllTypes.NestedMessage ext_rep_nested_message = 1117;
repeated int32 ext_pack_int32 = 1201 [packed = true];
repeated uint32 ext_pack_uint32 = 1202 [packed = true];
repeated sint32 ext_pack_sint32 = 1203 [packed = true];
repeated fixed32 ext_pack_fixed32 = 1204 [packed = true];
repeated sfixed32 ext_pack_sfixed32 = 1205 [packed = true];
repeated int64 ext_pack_int64 = 1206 [packed = true];
repeated uint64 ext_pack_uint64 = 1207 [packed = true];
repeated sint64 ext_pack_sint64 = 1208 [packed = true];
repeated fixed64 ext_pack_fixed64 = 1209 [packed = true];
repeated sfixed64 ext_pack_sfixed64 = 1210 [packed = true];
repeated bool ext_pack_bool = 1211 [packed = true];
repeated float ext_pack_float = 1212 [packed = true];
repeated double ext_pack_double = 1213 [packed = true];
repeated AllTypes.NestedEnum ext_pack_nested_enum = 1216 [packed = true];
}