@@ -78,6 +78,7 @@ message Corge {
78
78
}
79
79
```
80
80
81
+ <<<<<<< HEAD
81
82
In this example, the setting "` GRAULT" ` in the lowest-level scope feature
82
83
definition overrides the non-nested-scope "` QUUX ` " setting. And within the
83
84
Garply message, "` WALDO ` " overrides "` QUUX ` ."
@@ -212,6 +213,14 @@ message Foo {
212
213
int64 bar_1 = 1;
213
214
}
214
215
```
216
+ ||||||| parent of dcf50a2 (This documentation change includes the following:)
217
+ In this example, the setting ` GRAULT ` in the field-scope feature definition
218
+ overrides the message-scope QUUX setting.
219
+ =======
220
+ In this example, the setting "` GRAULT" ` in the lowest-level scope feature
221
+ definition overrides the non-nested-scope "` QUUX ` " setting. And within the
222
+ Garply message, "` WALDO ` " overrides "` QUUX ` ."
223
+ >>>>>>> dcf50a2 (This documentation change includes the following:)
215
224
216
225
### ` features.enum_type ` {#enum_type}
217
226
@@ -245,6 +254,9 @@ proto2 | `CLOSED`
245
254
** Note:** Feature settings on different schema elements
246
255
[ have different scopes] ( #cascading ) .
247
256
257
+ ** Note:** Feature settings on different schema elements
258
+ [ have different scopes] ( #cascading ) .
259
+
248
260
The following code sample shows a proto2 file:
249
261
250
262
``` proto
@@ -292,7 +304,13 @@ whether a protobuf field has a value.
292
304
293
305
** Applicable to the following scopes:** File, Field
294
306
307
+ <<<<<<< HEAD
295
308
** Added in:** 2023
309
+ ||||||| parent of dcf50a2 (This documentation change includes the following:)
310
+ ** Default value in the Edition 2023:** ` EXPLICIT `
311
+ =======
312
+ ** Default behavior in the Edition 2023:** ` EXPLICIT `
313
+ >>>>>>> dcf50a2 (This documentation change includes the following:)
296
314
297
315
** Default behavior per syntax/edition:**
298
316
@@ -351,8 +369,15 @@ message Bar {
351
369
After running Prototiller, the equivalent code might look like this:
352
370
353
371
``` proto
372
+ <<<<<<< HEAD
354
373
edition = "2024";
355
374
// Setting the file-level field_presence feature matches the proto3 implicit default
375
+ ||||||| parent of dcf50a2 (This documentation change includes the following:)
376
+ edition = "2023";
377
+ =======
378
+ edition = "2023";
379
+ // Setting the file-level field_presence feature matches the proto3 implicit default
380
+ >>>>>>> dcf50a2 (This documentation change includes the following:)
356
381
option features.field_presence = IMPLICIT;
357
382
358
383
message Bar {
@@ -399,6 +424,9 @@ proto2 | `LEGACY_BEST_EFFORT`
399
424
** Note:** Feature settings on different schema elements
400
425
[ have different scopes] ( #cascading ) .
401
426
427
+ ** Note:** Feature settings on different schema elements
428
+ [ have different scopes] ( #cascading ) .
429
+
402
430
The following code sample shows a proto2 file:
403
431
404
432
``` proto
@@ -414,8 +442,16 @@ message Foo {
414
442
After running Prototiller, the equivalent code might look like this:
415
443
416
444
``` proto
445
+ <<<<<<< HEAD
417
446
edition = "2024";
418
447
option features.json_format = LEGACY_BEST_EFFORT;
448
+ ||||||| parent of dcf50a2 (This documentation change includes the following:)
449
+ edition = "2023";
450
+ features.json_format = LEGACY_BEST_EFFORT;
451
+ =======
452
+ edition = "2023";
453
+ option features.json_format = LEGACY_BEST_EFFORT;
454
+ >>>>>>> dcf50a2 (This documentation change includes the following:)
419
455
420
456
message Foo {
421
457
string bar = 1;
@@ -462,6 +498,9 @@ proto2 | `LENGTH_PREFIXED`
462
498
** Note:** Feature settings on different schema elements
463
499
[ have different scopes] ( #cascading ) .
464
500
501
+ ** Note:** Feature settings on different schema elements
502
+ [ have different scopes] ( #cascading ) .
503
+
465
504
The following code sample shows a proto2 file:
466
505
467
506
``` proto
@@ -518,6 +557,9 @@ proto2 | `EXPANDED`
518
557
** Note:** Feature settings on different schema elements
519
558
[ have different scopes] ( #cascading ) .
520
559
560
+ ** Note:** Feature settings on different schema elements
561
+ [ have different scopes] ( #cascading ) .
562
+
521
563
The following code sample shows a proto2 file:
522
564
523
565
``` proto
@@ -597,6 +639,9 @@ proto2 | `NONE`
597
639
** Note:** Feature settings on different schema elements
598
640
[ have different scopes] ( #cascading ) .
599
641
642
+ ** Note:** Feature settings on different schema elements
643
+ [ have different scopes] ( #cascading ) .
644
+
600
645
The following code sample shows a proto2 file:
601
646
602
647
``` proto
@@ -727,6 +772,9 @@ proto2 | `true`
727
772
**Note:** Feature settings on different schema elements
728
773
[have different scopes](#cascading).
729
774
775
+ **Note:** Feature settings on different schema elements
776
+ [have different scopes](#cascading).
777
+
730
778
The following code sample shows a proto2 file:
731
779
732
780
```proto
@@ -826,6 +874,9 @@ proto2 | `STRING`
826
874
** Note:** Feature settings on different schema elements
827
875
[ have different scopes] ( #cascading ) .
828
876
877
+ ** Note:** Feature settings on different schema elements
878
+ [ have different scopes] ( #cascading ) .
879
+
829
880
The following code sample shows a proto2 file:
830
881
831
882
``` proto
@@ -907,6 +958,9 @@ proto2 | `DEFAULT`
907
958
** Note:** Feature settings on different schema elements
908
959
[ have different scopes] ( #cascading ) .
909
960
961
+ ** Note:** Feature settings on different schema elements
962
+ [ have different scopes] ( #cascading ) .
963
+
910
964
The following code sample shows a proto2 file:
911
965
912
966
``` proto
@@ -935,6 +989,32 @@ message MyMessage {
935
989
}
936
990
```
937
991
992
+ #### ` features.(pb.java).large_enum ` {#java-large_enum}
993
+
994
+ ** Languages:** Java
995
+
996
+ This language-specific feature enables you to adopt new functionality that
997
+ handles large enums in Java without causing compiler errors.
998
+
999
+ This is new behavior, so doesn't affect proto2 or proto3 schema definition
1000
+ files.
1001
+
1002
+ ** Values available:**
1003
+
1004
+ * ` true ` : Java enums will use the new functionality.
1005
+ * ` false ` : Java enums will continue to use Java enums.
1006
+
1007
+ ** Applicable to the following scopes:** Enum
1008
+
1009
+ ** Default behavior in Edition 2023:** ` false `
1010
+
1011
+ ** Behavior in proto2:** ` false `
1012
+
1013
+ ** Behavior in proto3:** ` false `
1014
+
1015
+ ** Note:** Feature settings on different schema elements
1016
+ [ have different scopes] ( #cascading ) .
1017
+
938
1018
## Preserving proto2 or proto3 Behavior {#preserving}
939
1019
940
1020
You may want to move to the editions format but not deal with updates to the way
0 commit comments