Lines Matching refs:optional
65 optional int32 bb = 1;
76 optional int32 optional_int32 = 1;
77 optional int64 optional_int64 = 2;
78 optional uint32 optional_uint32 = 3;
79 optional uint64 optional_uint64 = 4;
80 optional sint32 optional_sint32 = 5;
81 optional sint64 optional_sint64 = 6;
82 optional fixed32 optional_fixed32 = 7;
83 optional fixed64 optional_fixed64 = 8;
84 optional sfixed32 optional_sfixed32 = 9;
85 optional sfixed64 optional_sfixed64 = 10;
86 optional float optional_float = 11;
87 optional double optional_double = 12;
88 optional bool optional_bool = 13;
89 optional string optional_string = 14;
90 optional bytes optional_bytes = 15;
92 optional group OptionalGroup = 16 {
93 optional int32 a = 17;
96 optional NestedMessage optional_nested_message = 18;
97 optional ForeignMessage optional_foreign_message = 19;
98 optional protobuf_unittest_import.ImportMessage optional_import_message = 20;
100 optional NestedEnum optional_nested_enum = 21;
101 optional ForeignEnum optional_foreign_enum = 22;
102 optional protobuf_unittest_import.ImportEnum optional_import_enum = 23;
104 optional string optional_string_piece = 24 [ctype=STRING_PIECE];
105 optional string optional_cord = 25 [ctype=CORD];
108 optional protobuf_unittest_import.PublicImportMessage
111 optional NestedMessage optional_lazy_message = 27 [lazy=true];
131 optional int32 a = 47;
148 optional int32 default_int32 = 61 [default = 41 ];
149 optional int64 default_int64 = 62 [default = 42 ];
150 optional uint32 default_uint32 = 63 [default = 43 ];
151 optional uint64 default_uint64 = 64 [default = 44 ];
152 optional sint32 default_sint32 = 65 [default = -45 ];
153 optional sint64 default_sint64 = 66 [default = 46 ];
154 optional fixed32 default_fixed32 = 67 [default = 47 ];
155 optional fixed64 default_fixed64 = 68 [default = 48 ];
156 optional sfixed32 default_sfixed32 = 69 [default = 49 ];
157 optional sfixed64 default_sfixed64 = 70 [default = -50 ];
158 optional float default_float = 71 [default = 51.5 ];
159 optional double default_double = 72 [default = 52e3 ];
160 optional bool default_bool = 73 [default = true ];
161 optional string default_string = 74 [default = "hello"];
162 optional bytes default_bytes = 75 [default = "world"];
164 optional NestedEnum default_nested_enum = 81 [default = BAR ];
165 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
166 optional protobuf_unittest_import.ImportEnum
169 optional string default_string_piece = 84 [ctype=STRING_PIECE,default="abc"];
170 optional string default_cord = 85 [ctype=CORD,default="123"];
183 optional NestedTestAllTypes child = 1;
184 optional TestAllTypes payload = 2;
188 optional int32 deprecated_int32 = 1 [deprecated=true];
194 optional int32 c = 1;
209 optional int32 optional_int32_extension = 1;
210 optional int64 optional_int64_extension = 2;
211 optional uint32 optional_uint32_extension = 3;
212 optional uint64 optional_uint64_extension = 4;
213 optional sint32 optional_sint32_extension = 5;
214 optional sint64 optional_sint64_extension = 6;
215 optional fixed32 optional_fixed32_extension = 7;
216 optional fixed64 optional_fixed64_extension = 8;
217 optional sfixed32 optional_sfixed32_extension = 9;
218 optional sfixed64 optional_sfixed64_extension = 10;
219 optional float optional_float_extension = 11;
220 optional double optional_double_extension = 12;
221 optional bool optional_bool_extension = 13;
222 optional string optional_string_extension = 14;
223 optional bytes optional_bytes_extension = 15;
225 optional group OptionalGroup_extension = 16 {
226 optional int32 a = 17;
229 optional TestAllTypes.NestedMessage optional_nested_message_extension = 18;
230 optional ForeignMessage optional_foreign_message_extension = 19;
231 optional protobuf_unittest_import.ImportMessage
234 optional TestAllTypes.NestedEnum optional_nested_enum_extension = 21;
235 optional ForeignEnum optional_foreign_enum_extension = 22;
236 optional protobuf_unittest_import.ImportEnum
239 optional string optional_string_piece_extension = 24 [ctype=STRING_PIECE];
240 optional string optional_cord_extension = 25 [ctype=CORD];
242 optional protobuf_unittest_import.PublicImportMessage
245 optional TestAllTypes.NestedMessage
266 optional int32 a = 47;
286 optional int32 default_int32_extension = 61 [default = 41 ];
287 optional int64 default_int64_extension = 62 [default = 42 ];
288 optional uint32 default_uint32_extension = 63 [default = 43 ];
289 optional uint64 default_uint64_extension = 64 [default = 44 ];
290 optional sint32 default_sint32_extension = 65 [default = -45 ];
291 optional sint64 default_sint64_extension = 66 [default = 46 ];
292 optional fixed32 default_fixed32_extension = 67 [default = 47 ];
293 optional fixed64 default_fixed64_extension = 68 [default = 48 ];
294 optional sfixed32 default_sfixed32_extension = 69 [default = 49 ];
295 optional sfixed64 default_sfixed64_extension = 70 [default = -50 ];
296 optional float default_float_extension = 71 [default = 51.5 ];
297 optional double default_double_extension = 72 [default = 52e3 ];
298 optional bool default_bool_extension = 73 [default = true ];
299 optional string default_string_extension = 74 [default = "hello"];
300 optional bytes default_bytes_extension = 75 [default = "world"];
302 optional TestAllTypes.NestedEnum
304 optional ForeignEnum
306 optional protobuf_unittest_import.ImportEnum
309 optional string default_string_piece_extension = 84 [ctype=STRING_PIECE,
311 optional string default_cord_extension = 85 [ctype=CORD, default="123"];
314 optional uint32 oneof_uint32_extension = 111;
315 optional TestAllTypes.NestedMessage oneof_nested_message_extension = 112;
316 optional string oneof_string_extension = 113;
317 optional bytes oneof_bytes_extension = 114;
324 optional string test = 1002 [default="test"];
327 optional string nested_string_extension = 1003;
335 // optional fields for all types.
338 optional int32 dummy2 = 2;
342 optional TestRequired single = 1000;
348 optional int32 dummy4 = 4;
349 optional int32 dummy5 = 5;
350 optional int32 dummy6 = 6;
351 optional int32 dummy7 = 7;
352 optional int32 dummy8 = 8;
353 optional int32 dummy9 = 9;
354 optional int32 dummy10 = 10;
355 optional int32 dummy11 = 11;
356 optional int32 dummy12 = 12;
357 optional int32 dummy13 = 13;
358 optional int32 dummy14 = 14;
359 optional int32 dummy15 = 15;
360 optional int32 dummy16 = 16;
361 optional int32 dummy17 = 17;
362 optional int32 dummy18 = 18;
363 optional int32 dummy19 = 19;
364 optional int32 dummy20 = 20;
365 optional int32 dummy21 = 21;
366 optional int32 dummy22 = 22;
367 optional int32 dummy23 = 23;
368 optional int32 dummy24 = 24;
369 optional int32 dummy25 = 25;
370 optional int32 dummy26 = 26;
371 optional int32 dummy27 = 27;
372 optional int32 dummy28 = 28;
373 optional int32 dummy29 = 29;
374 optional int32 dummy30 = 30;
375 optional int32 dummy31 = 31;
376 optional int32 dummy32 = 32;
382 optional TestRequired optional_message = 1;
384 optional int32 dummy = 3;
389 optional TestAllTypes.NestedMessage foreign_nested = 1;
412 optional int32 a = 1;
413 optional int32 bb = 268435455;
417 optional TestRecursiveMessage a = 1;
418 optional int32 i = 2;
423 optional TestMutualRecursionB bb = 1;
427 optional TestMutualRecursionA a = 1;
428 optional int32 optional_int32 = 2;
436 optional int32 a = 1; // NO_PROTO1
437 optional group Foo = 2 { optional int32 a = 1; } // NO_PROTO1
438 optional group Bar = 3 { optional int32 a = 1; } // NO_PROTO1
443 optional TestAllTypes sub_message = 1 [lazy=false];
446 optional TestAllTypes sub_message = 1 [lazy=true];
455 optional NestedMessage optional_nested_message = 1;
484 optional int32 PrimitiveField = 1;
485 optional string StringField = 2;
486 optional ForeignEnum EnumField = 3;
487 optional ForeignMessage MessageField = 4;
488 optional string StringPieceField = 5 [ctype=STRING_PIECE];
489 optional string CordField = 6 [ctype=CORD];
503 optional string my_string = 11;
505 optional int64 my_int = 1;
507 optional float my_float = 101;
512 optional string my_extension_string = 50;
513 optional int32 my_extension_int = 5;
518 optional bytes escaped_bytes = 1 [default = "\0\001\a\b\f\n\r\t\v\\\'\"\xfe"];
519 optional uint32 large_uint32 = 2 [default = 0xFFFFFFFF];
520 optional uint64 large_uint64 = 3 [default = 0xFFFFFFFFFFFFFFFF];
521 optional int32 small_int32 = 4 [default = -0x7FFFFFFF];
522 optional int64 small_int64 = 5 [default = -0x7FFFFFFFFFFFFFFF];
523 optional int32 really_small_int32 = 21 [default = -0x80000000];
524 optional int64 really_small_int64 = 22 [default = -0x8000000000000000];
529 optional string utf8_string = 6 [default = "\341\210\264"];
532 optional float zero_float = 7 [default = 0];
533 optional float one_float = 8 [default = 1];
534 optional float small_float = 9 [default = 1.5];
535 optional float negative_one_float = 10 [default = -1];
536 optional float negative_float = 11 [default = -1.5];
538 optional float large_float = 12 [default = 2E8];
539 optional float small_negative_float = 13 [default = -8e-28];
542 optional double inf_double = 14 [default = inf];
543 optional double neg_inf_double = 15 [default = -inf];
544 optional double nan_double = 16 [default = nan];
545 optional float inf_float = 17 [default = inf];
546 optional float neg_inf_float = 18 [default = -inf];
547 optional float nan_float = 19 [default = nan];
554 optional string cpp_trigraph = 20 [default = "? \? ?? \?? \??? ??/ ?\?-"];
557 optional string string_with_zero = 23 [default = "hel\000lo"];
558 optional bytes bytes_with_zero = 24 [default = "wor\000ld"];
559 optional string string_piece_with_zero = 25 [ctype=STRING_PIECE,
561 optional string cord_with_zero = 26 [ctype=CORD,
563 optional string replacement_string = 27 [default="${unknown}"];
567 optional TestSparseEnum sparse_enum = 1;
572 optional string data = 1;
580 optional bytes data = 1;
589 optional int32 data = 1;
593 optional uint32 data = 1;
597 optional int64 data = 1;
601 optional uint64 data = 1;
605 optional bool data = 1;
615 optional int32 a = 5;
616 optional string b = 6;
622 optional int32 foo_int = 1;
623 optional string foo_string = 2;
624 optional TestAllTypes foo_message = 3;
625 optional group FooGroup = 4 {
626 optional int32 a = 5;
627 optional string b = 6;
641 optional int32 a = 9;
642 optional string b = 10;
656 optional int32 baz_int = 18;
657 optional string baz_string = 19 [default = "BAZ"];
660 optional int64 qux_int = 1;
772 optional int32 dynamic_field = 2100;
775 optional fixed32 scalar_extension = 2000;
776 optional ForeignEnum enum_extension = 2001;
777 optional DynamicEnumType dynamic_enum_extension = 2002;
779 optional ForeignMessage message_extension = 2003;
780 optional DynamicMessageType dynamic_message_extension = 2004;
803 // Test that if an optional or required message/group field appears multiple
810 // the corresponding required/optional fields in TestParsingMerge.
816 optional TestAllTypes field1 = 11;
819 optional TestAllTypes field1 = 21;
825 optional TestAllTypes optional_all_types = 2;
827 optional group OptionalGroup = 10 {
828 optional TestAllTypes optional_group_all_types = 11;
831 optional TestAllTypes repeated_group_all_types = 21;
835 optional TestAllTypes optional_ext = 1000;
842 optional string a = 1 [default="*/ <- Neither should this."];