grpc-tools 1.65.2 → 1.66.0.pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/x86-linux/google/protobuf/descriptor.proto +92 -10
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-windows/google/protobuf/descriptor.proto +92 -10
- data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86-windows/protoc.exe +0 -0
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +92 -10
- data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
- data/bin/x86_64-linux/protoc +0 -0
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +92 -10
- data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
- data/bin/x86_64-macos/protoc +0 -0
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +92 -10
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c36b58bf75241fdfd810b8272cbf03ff7c1f2f2215d2483a9a83c06ca587ac1
|
4
|
+
data.tar.gz: 38cd5b6c920d558a493dec88aa777bf2025a989a1c4e75081be606557fff2aca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cad8169b5e3000c6a3154c9e787a12ed456dd00d2e021df9d260271128e1634844f08e65d006776d0c1346590cc165dd6393170936954fbc37f9b5e0912a9dc5
|
7
|
+
data.tar.gz: 3e14a7f8034a347ca5cd2c179325b6fe070e14ccf14d3b26c6b71f81f41146d7082de7ed71dfeb7d71cc5c6e110f8ee09d2bf487a358bfc0a34b1c32e5432c10
|
@@ -62,6 +62,10 @@ enum Edition {
|
|
62
62
|
// A placeholder for an unknown edition value.
|
63
63
|
EDITION_UNKNOWN = 0;
|
64
64
|
|
65
|
+
// A placeholder edition for specifying default behaviors *before* a feature
|
66
|
+
// was first introduced. This is effectively an "infinite past".
|
67
|
+
EDITION_LEGACY = 900;
|
68
|
+
|
65
69
|
// Legacy syntax "editions". These pre-date editions, but behave much like
|
66
70
|
// distinct editions. These can't be used to specify the edition of proto
|
67
71
|
// files, but feature definitions must supply proto2/proto3 defaults for
|
@@ -448,12 +452,16 @@ message FileOptions {
|
|
448
452
|
// This option does nothing.
|
449
453
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
450
454
|
|
451
|
-
//
|
452
|
-
//
|
453
|
-
//
|
454
|
-
//
|
455
|
-
//
|
456
|
-
//
|
455
|
+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
456
|
+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
|
457
|
+
// assigned to a string field.
|
458
|
+
//
|
459
|
+
// TODO: clarify exactly what kinds of field types this option
|
460
|
+
// applies to, and update these docs accordingly.
|
461
|
+
//
|
462
|
+
// Proto3 files already perform these checks. Setting the option explicitly to
|
463
|
+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
464
|
+
// checks.
|
457
465
|
optional bool java_string_check_utf8 = 27 [default = false];
|
458
466
|
|
459
467
|
// Generated classes can be optimized for speed or code size.
|
@@ -486,6 +494,7 @@ message FileOptions {
|
|
486
494
|
optional bool java_generic_services = 17 [default = false];
|
487
495
|
optional bool py_generic_services = 18 [default = false];
|
488
496
|
reserved 42; // removed php_generic_services
|
497
|
+
reserved "php_generic_services";
|
489
498
|
|
490
499
|
// Is this file deprecated?
|
491
500
|
// Depending on the target platform, this can emit Deprecated annotations
|
@@ -760,6 +769,28 @@ message FieldOptions {
|
|
760
769
|
// Any features defined in the specific edition.
|
761
770
|
optional FeatureSet features = 21;
|
762
771
|
|
772
|
+
// Information about the support window of a feature.
|
773
|
+
message FeatureSupport {
|
774
|
+
// The edition that this feature was first available in. In editions
|
775
|
+
// earlier than this one, the default assigned to EDITION_LEGACY will be
|
776
|
+
// used, and proto files will not be able to override it.
|
777
|
+
optional Edition edition_introduced = 1;
|
778
|
+
|
779
|
+
// The edition this feature becomes deprecated in. Using this after this
|
780
|
+
// edition may trigger warnings.
|
781
|
+
optional Edition edition_deprecated = 2;
|
782
|
+
|
783
|
+
// The deprecation warning text if this feature is used after the edition it
|
784
|
+
// was marked deprecated in.
|
785
|
+
optional string deprecation_warning = 3;
|
786
|
+
|
787
|
+
// The edition this feature is no longer available in. In editions after
|
788
|
+
// this one, the last default assigned will be used, and proto files will
|
789
|
+
// not be able to override it.
|
790
|
+
optional Edition edition_removed = 4;
|
791
|
+
}
|
792
|
+
optional FeatureSupport feature_support = 22;
|
793
|
+
|
763
794
|
// The parser stores options it doesn't recognize here. See above.
|
764
795
|
repeated UninterpretedOption uninterpreted_option = 999;
|
765
796
|
|
@@ -828,6 +859,9 @@ message EnumValueOptions {
|
|
828
859
|
// credentials.
|
829
860
|
optional bool debug_redact = 3 [default = false];
|
830
861
|
|
862
|
+
// Information about the support window of a feature value.
|
863
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
864
|
+
|
831
865
|
// The parser stores options it doesn't recognize here. See above.
|
832
866
|
repeated UninterpretedOption uninterpreted_option = 999;
|
833
867
|
|
@@ -940,6 +974,10 @@ message FeatureSet {
|
|
940
974
|
retention = RETENTION_RUNTIME,
|
941
975
|
targets = TARGET_TYPE_FIELD,
|
942
976
|
targets = TARGET_TYPE_FILE,
|
977
|
+
// TODO Enable this in google3 once protoc rolls out.
|
978
|
+
feature_support = {
|
979
|
+
edition_introduced: EDITION_2023,
|
980
|
+
},
|
943
981
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
|
944
982
|
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
|
945
983
|
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
|
@@ -954,6 +992,10 @@ message FeatureSet {
|
|
954
992
|
retention = RETENTION_RUNTIME,
|
955
993
|
targets = TARGET_TYPE_ENUM,
|
956
994
|
targets = TARGET_TYPE_FILE,
|
995
|
+
// TODO Enable this in google3 once protoc rolls out.
|
996
|
+
feature_support = {
|
997
|
+
edition_introduced: EDITION_2023,
|
998
|
+
},
|
957
999
|
edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
|
958
1000
|
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
|
959
1001
|
];
|
@@ -967,6 +1009,10 @@ message FeatureSet {
|
|
967
1009
|
retention = RETENTION_RUNTIME,
|
968
1010
|
targets = TARGET_TYPE_FIELD,
|
969
1011
|
targets = TARGET_TYPE_FILE,
|
1012
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1013
|
+
feature_support = {
|
1014
|
+
edition_introduced: EDITION_2023,
|
1015
|
+
},
|
970
1016
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
|
971
1017
|
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
|
972
1018
|
];
|
@@ -975,11 +1021,16 @@ message FeatureSet {
|
|
975
1021
|
UTF8_VALIDATION_UNKNOWN = 0;
|
976
1022
|
VERIFY = 2;
|
977
1023
|
NONE = 3;
|
1024
|
+
reserved 1;
|
978
1025
|
}
|
979
1026
|
optional Utf8Validation utf8_validation = 4 [
|
980
1027
|
retention = RETENTION_RUNTIME,
|
981
1028
|
targets = TARGET_TYPE_FIELD,
|
982
1029
|
targets = TARGET_TYPE_FILE,
|
1030
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1031
|
+
feature_support = {
|
1032
|
+
edition_introduced: EDITION_2023,
|
1033
|
+
},
|
983
1034
|
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
|
984
1035
|
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
|
985
1036
|
];
|
@@ -993,6 +1044,10 @@ message FeatureSet {
|
|
993
1044
|
retention = RETENTION_RUNTIME,
|
994
1045
|
targets = TARGET_TYPE_FIELD,
|
995
1046
|
targets = TARGET_TYPE_FILE,
|
1047
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1048
|
+
feature_support = {
|
1049
|
+
edition_introduced: EDITION_2023,
|
1050
|
+
},
|
996
1051
|
edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
|
997
1052
|
];
|
998
1053
|
|
@@ -1006,15 +1061,34 @@ message FeatureSet {
|
|
1006
1061
|
targets = TARGET_TYPE_MESSAGE,
|
1007
1062
|
targets = TARGET_TYPE_ENUM,
|
1008
1063
|
targets = TARGET_TYPE_FILE,
|
1064
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1065
|
+
feature_support = {
|
1066
|
+
edition_introduced: EDITION_2023,
|
1067
|
+
},
|
1009
1068
|
edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
|
1010
1069
|
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
|
1011
1070
|
];
|
1012
1071
|
|
1013
1072
|
reserved 999;
|
1014
1073
|
|
1015
|
-
extensions 1000
|
1016
|
-
|
1017
|
-
|
1074
|
+
extensions 1000 to 9994 [
|
1075
|
+
declaration = {
|
1076
|
+
number: 1000,
|
1077
|
+
full_name: ".pb.cpp",
|
1078
|
+
type: ".pb.CppFeatures"
|
1079
|
+
},
|
1080
|
+
declaration = {
|
1081
|
+
number: 1001,
|
1082
|
+
full_name: ".pb.java",
|
1083
|
+
type: ".pb.JavaFeatures"
|
1084
|
+
},
|
1085
|
+
declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" },
|
1086
|
+
declaration = {
|
1087
|
+
number: 9990,
|
1088
|
+
full_name: ".pb.proto1",
|
1089
|
+
type: ".pb.Proto1Features"
|
1090
|
+
}
|
1091
|
+
];
|
1018
1092
|
|
1019
1093
|
extensions 9995 to 9999; // For internal testing
|
1020
1094
|
extensions 10000; // for https://github.com/bufbuild/protobuf-es
|
@@ -1031,7 +1105,15 @@ message FeatureSetDefaults {
|
|
1031
1105
|
// be used. This field must be in strict ascending order by edition.
|
1032
1106
|
message FeatureSetEditionDefault {
|
1033
1107
|
optional Edition edition = 3;
|
1034
|
-
|
1108
|
+
|
1109
|
+
// Defaults of features that can be overridden in this edition.
|
1110
|
+
optional FeatureSet overridable_features = 4;
|
1111
|
+
|
1112
|
+
// Defaults of features that can't be overridden in this edition.
|
1113
|
+
optional FeatureSet fixed_features = 5;
|
1114
|
+
|
1115
|
+
reserved 1, 2;
|
1116
|
+
reserved "features";
|
1035
1117
|
}
|
1036
1118
|
repeated FeatureSetEditionDefault defaults = 1;
|
1037
1119
|
|
Binary file
|
data/bin/x86-linux/protoc
CHANGED
Binary file
|
@@ -62,6 +62,10 @@ enum Edition {
|
|
62
62
|
// A placeholder for an unknown edition value.
|
63
63
|
EDITION_UNKNOWN = 0;
|
64
64
|
|
65
|
+
// A placeholder edition for specifying default behaviors *before* a feature
|
66
|
+
// was first introduced. This is effectively an "infinite past".
|
67
|
+
EDITION_LEGACY = 900;
|
68
|
+
|
65
69
|
// Legacy syntax "editions". These pre-date editions, but behave much like
|
66
70
|
// distinct editions. These can't be used to specify the edition of proto
|
67
71
|
// files, but feature definitions must supply proto2/proto3 defaults for
|
@@ -448,12 +452,16 @@ message FileOptions {
|
|
448
452
|
// This option does nothing.
|
449
453
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
450
454
|
|
451
|
-
//
|
452
|
-
//
|
453
|
-
//
|
454
|
-
//
|
455
|
-
//
|
456
|
-
//
|
455
|
+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
456
|
+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
|
457
|
+
// assigned to a string field.
|
458
|
+
//
|
459
|
+
// TODO: clarify exactly what kinds of field types this option
|
460
|
+
// applies to, and update these docs accordingly.
|
461
|
+
//
|
462
|
+
// Proto3 files already perform these checks. Setting the option explicitly to
|
463
|
+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
464
|
+
// checks.
|
457
465
|
optional bool java_string_check_utf8 = 27 [default = false];
|
458
466
|
|
459
467
|
// Generated classes can be optimized for speed or code size.
|
@@ -486,6 +494,7 @@ message FileOptions {
|
|
486
494
|
optional bool java_generic_services = 17 [default = false];
|
487
495
|
optional bool py_generic_services = 18 [default = false];
|
488
496
|
reserved 42; // removed php_generic_services
|
497
|
+
reserved "php_generic_services";
|
489
498
|
|
490
499
|
// Is this file deprecated?
|
491
500
|
// Depending on the target platform, this can emit Deprecated annotations
|
@@ -760,6 +769,28 @@ message FieldOptions {
|
|
760
769
|
// Any features defined in the specific edition.
|
761
770
|
optional FeatureSet features = 21;
|
762
771
|
|
772
|
+
// Information about the support window of a feature.
|
773
|
+
message FeatureSupport {
|
774
|
+
// The edition that this feature was first available in. In editions
|
775
|
+
// earlier than this one, the default assigned to EDITION_LEGACY will be
|
776
|
+
// used, and proto files will not be able to override it.
|
777
|
+
optional Edition edition_introduced = 1;
|
778
|
+
|
779
|
+
// The edition this feature becomes deprecated in. Using this after this
|
780
|
+
// edition may trigger warnings.
|
781
|
+
optional Edition edition_deprecated = 2;
|
782
|
+
|
783
|
+
// The deprecation warning text if this feature is used after the edition it
|
784
|
+
// was marked deprecated in.
|
785
|
+
optional string deprecation_warning = 3;
|
786
|
+
|
787
|
+
// The edition this feature is no longer available in. In editions after
|
788
|
+
// this one, the last default assigned will be used, and proto files will
|
789
|
+
// not be able to override it.
|
790
|
+
optional Edition edition_removed = 4;
|
791
|
+
}
|
792
|
+
optional FeatureSupport feature_support = 22;
|
793
|
+
|
763
794
|
// The parser stores options it doesn't recognize here. See above.
|
764
795
|
repeated UninterpretedOption uninterpreted_option = 999;
|
765
796
|
|
@@ -828,6 +859,9 @@ message EnumValueOptions {
|
|
828
859
|
// credentials.
|
829
860
|
optional bool debug_redact = 3 [default = false];
|
830
861
|
|
862
|
+
// Information about the support window of a feature value.
|
863
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
864
|
+
|
831
865
|
// The parser stores options it doesn't recognize here. See above.
|
832
866
|
repeated UninterpretedOption uninterpreted_option = 999;
|
833
867
|
|
@@ -940,6 +974,10 @@ message FeatureSet {
|
|
940
974
|
retention = RETENTION_RUNTIME,
|
941
975
|
targets = TARGET_TYPE_FIELD,
|
942
976
|
targets = TARGET_TYPE_FILE,
|
977
|
+
// TODO Enable this in google3 once protoc rolls out.
|
978
|
+
feature_support = {
|
979
|
+
edition_introduced: EDITION_2023,
|
980
|
+
},
|
943
981
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
|
944
982
|
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
|
945
983
|
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
|
@@ -954,6 +992,10 @@ message FeatureSet {
|
|
954
992
|
retention = RETENTION_RUNTIME,
|
955
993
|
targets = TARGET_TYPE_ENUM,
|
956
994
|
targets = TARGET_TYPE_FILE,
|
995
|
+
// TODO Enable this in google3 once protoc rolls out.
|
996
|
+
feature_support = {
|
997
|
+
edition_introduced: EDITION_2023,
|
998
|
+
},
|
957
999
|
edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
|
958
1000
|
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
|
959
1001
|
];
|
@@ -967,6 +1009,10 @@ message FeatureSet {
|
|
967
1009
|
retention = RETENTION_RUNTIME,
|
968
1010
|
targets = TARGET_TYPE_FIELD,
|
969
1011
|
targets = TARGET_TYPE_FILE,
|
1012
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1013
|
+
feature_support = {
|
1014
|
+
edition_introduced: EDITION_2023,
|
1015
|
+
},
|
970
1016
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
|
971
1017
|
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
|
972
1018
|
];
|
@@ -975,11 +1021,16 @@ message FeatureSet {
|
|
975
1021
|
UTF8_VALIDATION_UNKNOWN = 0;
|
976
1022
|
VERIFY = 2;
|
977
1023
|
NONE = 3;
|
1024
|
+
reserved 1;
|
978
1025
|
}
|
979
1026
|
optional Utf8Validation utf8_validation = 4 [
|
980
1027
|
retention = RETENTION_RUNTIME,
|
981
1028
|
targets = TARGET_TYPE_FIELD,
|
982
1029
|
targets = TARGET_TYPE_FILE,
|
1030
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1031
|
+
feature_support = {
|
1032
|
+
edition_introduced: EDITION_2023,
|
1033
|
+
},
|
983
1034
|
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
|
984
1035
|
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
|
985
1036
|
];
|
@@ -993,6 +1044,10 @@ message FeatureSet {
|
|
993
1044
|
retention = RETENTION_RUNTIME,
|
994
1045
|
targets = TARGET_TYPE_FIELD,
|
995
1046
|
targets = TARGET_TYPE_FILE,
|
1047
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1048
|
+
feature_support = {
|
1049
|
+
edition_introduced: EDITION_2023,
|
1050
|
+
},
|
996
1051
|
edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
|
997
1052
|
];
|
998
1053
|
|
@@ -1006,15 +1061,34 @@ message FeatureSet {
|
|
1006
1061
|
targets = TARGET_TYPE_MESSAGE,
|
1007
1062
|
targets = TARGET_TYPE_ENUM,
|
1008
1063
|
targets = TARGET_TYPE_FILE,
|
1064
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1065
|
+
feature_support = {
|
1066
|
+
edition_introduced: EDITION_2023,
|
1067
|
+
},
|
1009
1068
|
edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
|
1010
1069
|
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
|
1011
1070
|
];
|
1012
1071
|
|
1013
1072
|
reserved 999;
|
1014
1073
|
|
1015
|
-
extensions 1000
|
1016
|
-
|
1017
|
-
|
1074
|
+
extensions 1000 to 9994 [
|
1075
|
+
declaration = {
|
1076
|
+
number: 1000,
|
1077
|
+
full_name: ".pb.cpp",
|
1078
|
+
type: ".pb.CppFeatures"
|
1079
|
+
},
|
1080
|
+
declaration = {
|
1081
|
+
number: 1001,
|
1082
|
+
full_name: ".pb.java",
|
1083
|
+
type: ".pb.JavaFeatures"
|
1084
|
+
},
|
1085
|
+
declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" },
|
1086
|
+
declaration = {
|
1087
|
+
number: 9990,
|
1088
|
+
full_name: ".pb.proto1",
|
1089
|
+
type: ".pb.Proto1Features"
|
1090
|
+
}
|
1091
|
+
];
|
1018
1092
|
|
1019
1093
|
extensions 9995 to 9999; // For internal testing
|
1020
1094
|
extensions 10000; // for https://github.com/bufbuild/protobuf-es
|
@@ -1031,7 +1105,15 @@ message FeatureSetDefaults {
|
|
1031
1105
|
// be used. This field must be in strict ascending order by edition.
|
1032
1106
|
message FeatureSetEditionDefault {
|
1033
1107
|
optional Edition edition = 3;
|
1034
|
-
|
1108
|
+
|
1109
|
+
// Defaults of features that can be overridden in this edition.
|
1110
|
+
optional FeatureSet overridable_features = 4;
|
1111
|
+
|
1112
|
+
// Defaults of features that can't be overridden in this edition.
|
1113
|
+
optional FeatureSet fixed_features = 5;
|
1114
|
+
|
1115
|
+
reserved 1, 2;
|
1116
|
+
reserved "features";
|
1035
1117
|
}
|
1036
1118
|
repeated FeatureSetEditionDefault defaults = 1;
|
1037
1119
|
|
Binary file
|
data/bin/x86-windows/protoc.exe
CHANGED
Binary file
|
@@ -62,6 +62,10 @@ enum Edition {
|
|
62
62
|
// A placeholder for an unknown edition value.
|
63
63
|
EDITION_UNKNOWN = 0;
|
64
64
|
|
65
|
+
// A placeholder edition for specifying default behaviors *before* a feature
|
66
|
+
// was first introduced. This is effectively an "infinite past".
|
67
|
+
EDITION_LEGACY = 900;
|
68
|
+
|
65
69
|
// Legacy syntax "editions". These pre-date editions, but behave much like
|
66
70
|
// distinct editions. These can't be used to specify the edition of proto
|
67
71
|
// files, but feature definitions must supply proto2/proto3 defaults for
|
@@ -448,12 +452,16 @@ message FileOptions {
|
|
448
452
|
// This option does nothing.
|
449
453
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
450
454
|
|
451
|
-
//
|
452
|
-
//
|
453
|
-
//
|
454
|
-
//
|
455
|
-
//
|
456
|
-
//
|
455
|
+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
456
|
+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
|
457
|
+
// assigned to a string field.
|
458
|
+
//
|
459
|
+
// TODO: clarify exactly what kinds of field types this option
|
460
|
+
// applies to, and update these docs accordingly.
|
461
|
+
//
|
462
|
+
// Proto3 files already perform these checks. Setting the option explicitly to
|
463
|
+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
464
|
+
// checks.
|
457
465
|
optional bool java_string_check_utf8 = 27 [default = false];
|
458
466
|
|
459
467
|
// Generated classes can be optimized for speed or code size.
|
@@ -486,6 +494,7 @@ message FileOptions {
|
|
486
494
|
optional bool java_generic_services = 17 [default = false];
|
487
495
|
optional bool py_generic_services = 18 [default = false];
|
488
496
|
reserved 42; // removed php_generic_services
|
497
|
+
reserved "php_generic_services";
|
489
498
|
|
490
499
|
// Is this file deprecated?
|
491
500
|
// Depending on the target platform, this can emit Deprecated annotations
|
@@ -760,6 +769,28 @@ message FieldOptions {
|
|
760
769
|
// Any features defined in the specific edition.
|
761
770
|
optional FeatureSet features = 21;
|
762
771
|
|
772
|
+
// Information about the support window of a feature.
|
773
|
+
message FeatureSupport {
|
774
|
+
// The edition that this feature was first available in. In editions
|
775
|
+
// earlier than this one, the default assigned to EDITION_LEGACY will be
|
776
|
+
// used, and proto files will not be able to override it.
|
777
|
+
optional Edition edition_introduced = 1;
|
778
|
+
|
779
|
+
// The edition this feature becomes deprecated in. Using this after this
|
780
|
+
// edition may trigger warnings.
|
781
|
+
optional Edition edition_deprecated = 2;
|
782
|
+
|
783
|
+
// The deprecation warning text if this feature is used after the edition it
|
784
|
+
// was marked deprecated in.
|
785
|
+
optional string deprecation_warning = 3;
|
786
|
+
|
787
|
+
// The edition this feature is no longer available in. In editions after
|
788
|
+
// this one, the last default assigned will be used, and proto files will
|
789
|
+
// not be able to override it.
|
790
|
+
optional Edition edition_removed = 4;
|
791
|
+
}
|
792
|
+
optional FeatureSupport feature_support = 22;
|
793
|
+
|
763
794
|
// The parser stores options it doesn't recognize here. See above.
|
764
795
|
repeated UninterpretedOption uninterpreted_option = 999;
|
765
796
|
|
@@ -828,6 +859,9 @@ message EnumValueOptions {
|
|
828
859
|
// credentials.
|
829
860
|
optional bool debug_redact = 3 [default = false];
|
830
861
|
|
862
|
+
// Information about the support window of a feature value.
|
863
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
864
|
+
|
831
865
|
// The parser stores options it doesn't recognize here. See above.
|
832
866
|
repeated UninterpretedOption uninterpreted_option = 999;
|
833
867
|
|
@@ -940,6 +974,10 @@ message FeatureSet {
|
|
940
974
|
retention = RETENTION_RUNTIME,
|
941
975
|
targets = TARGET_TYPE_FIELD,
|
942
976
|
targets = TARGET_TYPE_FILE,
|
977
|
+
// TODO Enable this in google3 once protoc rolls out.
|
978
|
+
feature_support = {
|
979
|
+
edition_introduced: EDITION_2023,
|
980
|
+
},
|
943
981
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
|
944
982
|
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
|
945
983
|
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
|
@@ -954,6 +992,10 @@ message FeatureSet {
|
|
954
992
|
retention = RETENTION_RUNTIME,
|
955
993
|
targets = TARGET_TYPE_ENUM,
|
956
994
|
targets = TARGET_TYPE_FILE,
|
995
|
+
// TODO Enable this in google3 once protoc rolls out.
|
996
|
+
feature_support = {
|
997
|
+
edition_introduced: EDITION_2023,
|
998
|
+
},
|
957
999
|
edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
|
958
1000
|
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
|
959
1001
|
];
|
@@ -967,6 +1009,10 @@ message FeatureSet {
|
|
967
1009
|
retention = RETENTION_RUNTIME,
|
968
1010
|
targets = TARGET_TYPE_FIELD,
|
969
1011
|
targets = TARGET_TYPE_FILE,
|
1012
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1013
|
+
feature_support = {
|
1014
|
+
edition_introduced: EDITION_2023,
|
1015
|
+
},
|
970
1016
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
|
971
1017
|
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
|
972
1018
|
];
|
@@ -975,11 +1021,16 @@ message FeatureSet {
|
|
975
1021
|
UTF8_VALIDATION_UNKNOWN = 0;
|
976
1022
|
VERIFY = 2;
|
977
1023
|
NONE = 3;
|
1024
|
+
reserved 1;
|
978
1025
|
}
|
979
1026
|
optional Utf8Validation utf8_validation = 4 [
|
980
1027
|
retention = RETENTION_RUNTIME,
|
981
1028
|
targets = TARGET_TYPE_FIELD,
|
982
1029
|
targets = TARGET_TYPE_FILE,
|
1030
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1031
|
+
feature_support = {
|
1032
|
+
edition_introduced: EDITION_2023,
|
1033
|
+
},
|
983
1034
|
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
|
984
1035
|
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
|
985
1036
|
];
|
@@ -993,6 +1044,10 @@ message FeatureSet {
|
|
993
1044
|
retention = RETENTION_RUNTIME,
|
994
1045
|
targets = TARGET_TYPE_FIELD,
|
995
1046
|
targets = TARGET_TYPE_FILE,
|
1047
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1048
|
+
feature_support = {
|
1049
|
+
edition_introduced: EDITION_2023,
|
1050
|
+
},
|
996
1051
|
edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
|
997
1052
|
];
|
998
1053
|
|
@@ -1006,15 +1061,34 @@ message FeatureSet {
|
|
1006
1061
|
targets = TARGET_TYPE_MESSAGE,
|
1007
1062
|
targets = TARGET_TYPE_ENUM,
|
1008
1063
|
targets = TARGET_TYPE_FILE,
|
1064
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1065
|
+
feature_support = {
|
1066
|
+
edition_introduced: EDITION_2023,
|
1067
|
+
},
|
1009
1068
|
edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
|
1010
1069
|
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
|
1011
1070
|
];
|
1012
1071
|
|
1013
1072
|
reserved 999;
|
1014
1073
|
|
1015
|
-
extensions 1000
|
1016
|
-
|
1017
|
-
|
1074
|
+
extensions 1000 to 9994 [
|
1075
|
+
declaration = {
|
1076
|
+
number: 1000,
|
1077
|
+
full_name: ".pb.cpp",
|
1078
|
+
type: ".pb.CppFeatures"
|
1079
|
+
},
|
1080
|
+
declaration = {
|
1081
|
+
number: 1001,
|
1082
|
+
full_name: ".pb.java",
|
1083
|
+
type: ".pb.JavaFeatures"
|
1084
|
+
},
|
1085
|
+
declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" },
|
1086
|
+
declaration = {
|
1087
|
+
number: 9990,
|
1088
|
+
full_name: ".pb.proto1",
|
1089
|
+
type: ".pb.Proto1Features"
|
1090
|
+
}
|
1091
|
+
];
|
1018
1092
|
|
1019
1093
|
extensions 9995 to 9999; // For internal testing
|
1020
1094
|
extensions 10000; // for https://github.com/bufbuild/protobuf-es
|
@@ -1031,7 +1105,15 @@ message FeatureSetDefaults {
|
|
1031
1105
|
// be used. This field must be in strict ascending order by edition.
|
1032
1106
|
message FeatureSetEditionDefault {
|
1033
1107
|
optional Edition edition = 3;
|
1034
|
-
|
1108
|
+
|
1109
|
+
// Defaults of features that can be overridden in this edition.
|
1110
|
+
optional FeatureSet overridable_features = 4;
|
1111
|
+
|
1112
|
+
// Defaults of features that can't be overridden in this edition.
|
1113
|
+
optional FeatureSet fixed_features = 5;
|
1114
|
+
|
1115
|
+
reserved 1, 2;
|
1116
|
+
reserved "features";
|
1035
1117
|
}
|
1036
1118
|
repeated FeatureSetEditionDefault defaults = 1;
|
1037
1119
|
|
Binary file
|
data/bin/x86_64-linux/protoc
CHANGED
Binary file
|
@@ -62,6 +62,10 @@ enum Edition {
|
|
62
62
|
// A placeholder for an unknown edition value.
|
63
63
|
EDITION_UNKNOWN = 0;
|
64
64
|
|
65
|
+
// A placeholder edition for specifying default behaviors *before* a feature
|
66
|
+
// was first introduced. This is effectively an "infinite past".
|
67
|
+
EDITION_LEGACY = 900;
|
68
|
+
|
65
69
|
// Legacy syntax "editions". These pre-date editions, but behave much like
|
66
70
|
// distinct editions. These can't be used to specify the edition of proto
|
67
71
|
// files, but feature definitions must supply proto2/proto3 defaults for
|
@@ -448,12 +452,16 @@ message FileOptions {
|
|
448
452
|
// This option does nothing.
|
449
453
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
450
454
|
|
451
|
-
//
|
452
|
-
//
|
453
|
-
//
|
454
|
-
//
|
455
|
-
//
|
456
|
-
//
|
455
|
+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
456
|
+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
|
457
|
+
// assigned to a string field.
|
458
|
+
//
|
459
|
+
// TODO: clarify exactly what kinds of field types this option
|
460
|
+
// applies to, and update these docs accordingly.
|
461
|
+
//
|
462
|
+
// Proto3 files already perform these checks. Setting the option explicitly to
|
463
|
+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
464
|
+
// checks.
|
457
465
|
optional bool java_string_check_utf8 = 27 [default = false];
|
458
466
|
|
459
467
|
// Generated classes can be optimized for speed or code size.
|
@@ -486,6 +494,7 @@ message FileOptions {
|
|
486
494
|
optional bool java_generic_services = 17 [default = false];
|
487
495
|
optional bool py_generic_services = 18 [default = false];
|
488
496
|
reserved 42; // removed php_generic_services
|
497
|
+
reserved "php_generic_services";
|
489
498
|
|
490
499
|
// Is this file deprecated?
|
491
500
|
// Depending on the target platform, this can emit Deprecated annotations
|
@@ -760,6 +769,28 @@ message FieldOptions {
|
|
760
769
|
// Any features defined in the specific edition.
|
761
770
|
optional FeatureSet features = 21;
|
762
771
|
|
772
|
+
// Information about the support window of a feature.
|
773
|
+
message FeatureSupport {
|
774
|
+
// The edition that this feature was first available in. In editions
|
775
|
+
// earlier than this one, the default assigned to EDITION_LEGACY will be
|
776
|
+
// used, and proto files will not be able to override it.
|
777
|
+
optional Edition edition_introduced = 1;
|
778
|
+
|
779
|
+
// The edition this feature becomes deprecated in. Using this after this
|
780
|
+
// edition may trigger warnings.
|
781
|
+
optional Edition edition_deprecated = 2;
|
782
|
+
|
783
|
+
// The deprecation warning text if this feature is used after the edition it
|
784
|
+
// was marked deprecated in.
|
785
|
+
optional string deprecation_warning = 3;
|
786
|
+
|
787
|
+
// The edition this feature is no longer available in. In editions after
|
788
|
+
// this one, the last default assigned will be used, and proto files will
|
789
|
+
// not be able to override it.
|
790
|
+
optional Edition edition_removed = 4;
|
791
|
+
}
|
792
|
+
optional FeatureSupport feature_support = 22;
|
793
|
+
|
763
794
|
// The parser stores options it doesn't recognize here. See above.
|
764
795
|
repeated UninterpretedOption uninterpreted_option = 999;
|
765
796
|
|
@@ -828,6 +859,9 @@ message EnumValueOptions {
|
|
828
859
|
// credentials.
|
829
860
|
optional bool debug_redact = 3 [default = false];
|
830
861
|
|
862
|
+
// Information about the support window of a feature value.
|
863
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
864
|
+
|
831
865
|
// The parser stores options it doesn't recognize here. See above.
|
832
866
|
repeated UninterpretedOption uninterpreted_option = 999;
|
833
867
|
|
@@ -940,6 +974,10 @@ message FeatureSet {
|
|
940
974
|
retention = RETENTION_RUNTIME,
|
941
975
|
targets = TARGET_TYPE_FIELD,
|
942
976
|
targets = TARGET_TYPE_FILE,
|
977
|
+
// TODO Enable this in google3 once protoc rolls out.
|
978
|
+
feature_support = {
|
979
|
+
edition_introduced: EDITION_2023,
|
980
|
+
},
|
943
981
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
|
944
982
|
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
|
945
983
|
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
|
@@ -954,6 +992,10 @@ message FeatureSet {
|
|
954
992
|
retention = RETENTION_RUNTIME,
|
955
993
|
targets = TARGET_TYPE_ENUM,
|
956
994
|
targets = TARGET_TYPE_FILE,
|
995
|
+
// TODO Enable this in google3 once protoc rolls out.
|
996
|
+
feature_support = {
|
997
|
+
edition_introduced: EDITION_2023,
|
998
|
+
},
|
957
999
|
edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
|
958
1000
|
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
|
959
1001
|
];
|
@@ -967,6 +1009,10 @@ message FeatureSet {
|
|
967
1009
|
retention = RETENTION_RUNTIME,
|
968
1010
|
targets = TARGET_TYPE_FIELD,
|
969
1011
|
targets = TARGET_TYPE_FILE,
|
1012
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1013
|
+
feature_support = {
|
1014
|
+
edition_introduced: EDITION_2023,
|
1015
|
+
},
|
970
1016
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
|
971
1017
|
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
|
972
1018
|
];
|
@@ -975,11 +1021,16 @@ message FeatureSet {
|
|
975
1021
|
UTF8_VALIDATION_UNKNOWN = 0;
|
976
1022
|
VERIFY = 2;
|
977
1023
|
NONE = 3;
|
1024
|
+
reserved 1;
|
978
1025
|
}
|
979
1026
|
optional Utf8Validation utf8_validation = 4 [
|
980
1027
|
retention = RETENTION_RUNTIME,
|
981
1028
|
targets = TARGET_TYPE_FIELD,
|
982
1029
|
targets = TARGET_TYPE_FILE,
|
1030
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1031
|
+
feature_support = {
|
1032
|
+
edition_introduced: EDITION_2023,
|
1033
|
+
},
|
983
1034
|
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
|
984
1035
|
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
|
985
1036
|
];
|
@@ -993,6 +1044,10 @@ message FeatureSet {
|
|
993
1044
|
retention = RETENTION_RUNTIME,
|
994
1045
|
targets = TARGET_TYPE_FIELD,
|
995
1046
|
targets = TARGET_TYPE_FILE,
|
1047
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1048
|
+
feature_support = {
|
1049
|
+
edition_introduced: EDITION_2023,
|
1050
|
+
},
|
996
1051
|
edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
|
997
1052
|
];
|
998
1053
|
|
@@ -1006,15 +1061,34 @@ message FeatureSet {
|
|
1006
1061
|
targets = TARGET_TYPE_MESSAGE,
|
1007
1062
|
targets = TARGET_TYPE_ENUM,
|
1008
1063
|
targets = TARGET_TYPE_FILE,
|
1064
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1065
|
+
feature_support = {
|
1066
|
+
edition_introduced: EDITION_2023,
|
1067
|
+
},
|
1009
1068
|
edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
|
1010
1069
|
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
|
1011
1070
|
];
|
1012
1071
|
|
1013
1072
|
reserved 999;
|
1014
1073
|
|
1015
|
-
extensions 1000
|
1016
|
-
|
1017
|
-
|
1074
|
+
extensions 1000 to 9994 [
|
1075
|
+
declaration = {
|
1076
|
+
number: 1000,
|
1077
|
+
full_name: ".pb.cpp",
|
1078
|
+
type: ".pb.CppFeatures"
|
1079
|
+
},
|
1080
|
+
declaration = {
|
1081
|
+
number: 1001,
|
1082
|
+
full_name: ".pb.java",
|
1083
|
+
type: ".pb.JavaFeatures"
|
1084
|
+
},
|
1085
|
+
declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" },
|
1086
|
+
declaration = {
|
1087
|
+
number: 9990,
|
1088
|
+
full_name: ".pb.proto1",
|
1089
|
+
type: ".pb.Proto1Features"
|
1090
|
+
}
|
1091
|
+
];
|
1018
1092
|
|
1019
1093
|
extensions 9995 to 9999; // For internal testing
|
1020
1094
|
extensions 10000; // for https://github.com/bufbuild/protobuf-es
|
@@ -1031,7 +1105,15 @@ message FeatureSetDefaults {
|
|
1031
1105
|
// be used. This field must be in strict ascending order by edition.
|
1032
1106
|
message FeatureSetEditionDefault {
|
1033
1107
|
optional Edition edition = 3;
|
1034
|
-
|
1108
|
+
|
1109
|
+
// Defaults of features that can be overridden in this edition.
|
1110
|
+
optional FeatureSet overridable_features = 4;
|
1111
|
+
|
1112
|
+
// Defaults of features that can't be overridden in this edition.
|
1113
|
+
optional FeatureSet fixed_features = 5;
|
1114
|
+
|
1115
|
+
reserved 1, 2;
|
1116
|
+
reserved "features";
|
1035
1117
|
}
|
1036
1118
|
repeated FeatureSetEditionDefault defaults = 1;
|
1037
1119
|
|
Binary file
|
data/bin/x86_64-macos/protoc
CHANGED
Binary file
|
@@ -62,6 +62,10 @@ enum Edition {
|
|
62
62
|
// A placeholder for an unknown edition value.
|
63
63
|
EDITION_UNKNOWN = 0;
|
64
64
|
|
65
|
+
// A placeholder edition for specifying default behaviors *before* a feature
|
66
|
+
// was first introduced. This is effectively an "infinite past".
|
67
|
+
EDITION_LEGACY = 900;
|
68
|
+
|
65
69
|
// Legacy syntax "editions". These pre-date editions, but behave much like
|
66
70
|
// distinct editions. These can't be used to specify the edition of proto
|
67
71
|
// files, but feature definitions must supply proto2/proto3 defaults for
|
@@ -448,12 +452,16 @@ message FileOptions {
|
|
448
452
|
// This option does nothing.
|
449
453
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
450
454
|
|
451
|
-
//
|
452
|
-
//
|
453
|
-
//
|
454
|
-
//
|
455
|
-
//
|
456
|
-
//
|
455
|
+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
456
|
+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
|
457
|
+
// assigned to a string field.
|
458
|
+
//
|
459
|
+
// TODO: clarify exactly what kinds of field types this option
|
460
|
+
// applies to, and update these docs accordingly.
|
461
|
+
//
|
462
|
+
// Proto3 files already perform these checks. Setting the option explicitly to
|
463
|
+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
464
|
+
// checks.
|
457
465
|
optional bool java_string_check_utf8 = 27 [default = false];
|
458
466
|
|
459
467
|
// Generated classes can be optimized for speed or code size.
|
@@ -486,6 +494,7 @@ message FileOptions {
|
|
486
494
|
optional bool java_generic_services = 17 [default = false];
|
487
495
|
optional bool py_generic_services = 18 [default = false];
|
488
496
|
reserved 42; // removed php_generic_services
|
497
|
+
reserved "php_generic_services";
|
489
498
|
|
490
499
|
// Is this file deprecated?
|
491
500
|
// Depending on the target platform, this can emit Deprecated annotations
|
@@ -760,6 +769,28 @@ message FieldOptions {
|
|
760
769
|
// Any features defined in the specific edition.
|
761
770
|
optional FeatureSet features = 21;
|
762
771
|
|
772
|
+
// Information about the support window of a feature.
|
773
|
+
message FeatureSupport {
|
774
|
+
// The edition that this feature was first available in. In editions
|
775
|
+
// earlier than this one, the default assigned to EDITION_LEGACY will be
|
776
|
+
// used, and proto files will not be able to override it.
|
777
|
+
optional Edition edition_introduced = 1;
|
778
|
+
|
779
|
+
// The edition this feature becomes deprecated in. Using this after this
|
780
|
+
// edition may trigger warnings.
|
781
|
+
optional Edition edition_deprecated = 2;
|
782
|
+
|
783
|
+
// The deprecation warning text if this feature is used after the edition it
|
784
|
+
// was marked deprecated in.
|
785
|
+
optional string deprecation_warning = 3;
|
786
|
+
|
787
|
+
// The edition this feature is no longer available in. In editions after
|
788
|
+
// this one, the last default assigned will be used, and proto files will
|
789
|
+
// not be able to override it.
|
790
|
+
optional Edition edition_removed = 4;
|
791
|
+
}
|
792
|
+
optional FeatureSupport feature_support = 22;
|
793
|
+
|
763
794
|
// The parser stores options it doesn't recognize here. See above.
|
764
795
|
repeated UninterpretedOption uninterpreted_option = 999;
|
765
796
|
|
@@ -828,6 +859,9 @@ message EnumValueOptions {
|
|
828
859
|
// credentials.
|
829
860
|
optional bool debug_redact = 3 [default = false];
|
830
861
|
|
862
|
+
// Information about the support window of a feature value.
|
863
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
864
|
+
|
831
865
|
// The parser stores options it doesn't recognize here. See above.
|
832
866
|
repeated UninterpretedOption uninterpreted_option = 999;
|
833
867
|
|
@@ -940,6 +974,10 @@ message FeatureSet {
|
|
940
974
|
retention = RETENTION_RUNTIME,
|
941
975
|
targets = TARGET_TYPE_FIELD,
|
942
976
|
targets = TARGET_TYPE_FILE,
|
977
|
+
// TODO Enable this in google3 once protoc rolls out.
|
978
|
+
feature_support = {
|
979
|
+
edition_introduced: EDITION_2023,
|
980
|
+
},
|
943
981
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
|
944
982
|
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
|
945
983
|
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
|
@@ -954,6 +992,10 @@ message FeatureSet {
|
|
954
992
|
retention = RETENTION_RUNTIME,
|
955
993
|
targets = TARGET_TYPE_ENUM,
|
956
994
|
targets = TARGET_TYPE_FILE,
|
995
|
+
// TODO Enable this in google3 once protoc rolls out.
|
996
|
+
feature_support = {
|
997
|
+
edition_introduced: EDITION_2023,
|
998
|
+
},
|
957
999
|
edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
|
958
1000
|
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
|
959
1001
|
];
|
@@ -967,6 +1009,10 @@ message FeatureSet {
|
|
967
1009
|
retention = RETENTION_RUNTIME,
|
968
1010
|
targets = TARGET_TYPE_FIELD,
|
969
1011
|
targets = TARGET_TYPE_FILE,
|
1012
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1013
|
+
feature_support = {
|
1014
|
+
edition_introduced: EDITION_2023,
|
1015
|
+
},
|
970
1016
|
edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
|
971
1017
|
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
|
972
1018
|
];
|
@@ -975,11 +1021,16 @@ message FeatureSet {
|
|
975
1021
|
UTF8_VALIDATION_UNKNOWN = 0;
|
976
1022
|
VERIFY = 2;
|
977
1023
|
NONE = 3;
|
1024
|
+
reserved 1;
|
978
1025
|
}
|
979
1026
|
optional Utf8Validation utf8_validation = 4 [
|
980
1027
|
retention = RETENTION_RUNTIME,
|
981
1028
|
targets = TARGET_TYPE_FIELD,
|
982
1029
|
targets = TARGET_TYPE_FILE,
|
1030
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1031
|
+
feature_support = {
|
1032
|
+
edition_introduced: EDITION_2023,
|
1033
|
+
},
|
983
1034
|
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
|
984
1035
|
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
|
985
1036
|
];
|
@@ -993,6 +1044,10 @@ message FeatureSet {
|
|
993
1044
|
retention = RETENTION_RUNTIME,
|
994
1045
|
targets = TARGET_TYPE_FIELD,
|
995
1046
|
targets = TARGET_TYPE_FILE,
|
1047
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1048
|
+
feature_support = {
|
1049
|
+
edition_introduced: EDITION_2023,
|
1050
|
+
},
|
996
1051
|
edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
|
997
1052
|
];
|
998
1053
|
|
@@ -1006,15 +1061,34 @@ message FeatureSet {
|
|
1006
1061
|
targets = TARGET_TYPE_MESSAGE,
|
1007
1062
|
targets = TARGET_TYPE_ENUM,
|
1008
1063
|
targets = TARGET_TYPE_FILE,
|
1064
|
+
// TODO Enable this in google3 once protoc rolls out.
|
1065
|
+
feature_support = {
|
1066
|
+
edition_introduced: EDITION_2023,
|
1067
|
+
},
|
1009
1068
|
edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
|
1010
1069
|
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
|
1011
1070
|
];
|
1012
1071
|
|
1013
1072
|
reserved 999;
|
1014
1073
|
|
1015
|
-
extensions 1000
|
1016
|
-
|
1017
|
-
|
1074
|
+
extensions 1000 to 9994 [
|
1075
|
+
declaration = {
|
1076
|
+
number: 1000,
|
1077
|
+
full_name: ".pb.cpp",
|
1078
|
+
type: ".pb.CppFeatures"
|
1079
|
+
},
|
1080
|
+
declaration = {
|
1081
|
+
number: 1001,
|
1082
|
+
full_name: ".pb.java",
|
1083
|
+
type: ".pb.JavaFeatures"
|
1084
|
+
},
|
1085
|
+
declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" },
|
1086
|
+
declaration = {
|
1087
|
+
number: 9990,
|
1088
|
+
full_name: ".pb.proto1",
|
1089
|
+
type: ".pb.Proto1Features"
|
1090
|
+
}
|
1091
|
+
];
|
1018
1092
|
|
1019
1093
|
extensions 9995 to 9999; // For internal testing
|
1020
1094
|
extensions 10000; // for https://github.com/bufbuild/protobuf-es
|
@@ -1031,7 +1105,15 @@ message FeatureSetDefaults {
|
|
1031
1105
|
// be used. This field must be in strict ascending order by edition.
|
1032
1106
|
message FeatureSetEditionDefault {
|
1033
1107
|
optional Edition edition = 3;
|
1034
|
-
|
1108
|
+
|
1109
|
+
// Defaults of features that can be overridden in this edition.
|
1110
|
+
optional FeatureSet overridable_features = 4;
|
1111
|
+
|
1112
|
+
// Defaults of features that can't be overridden in this edition.
|
1113
|
+
optional FeatureSet fixed_features = 5;
|
1114
|
+
|
1115
|
+
reserved 1, 2;
|
1116
|
+
reserved "features";
|
1035
1117
|
}
|
1036
1118
|
repeated FeatureSetEditionDefault defaults = 1;
|
1037
1119
|
|
Binary file
|
Binary file
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.66.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- grpc Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: protoc and the Ruby gRPC protoc plugin
|
14
14
|
email: grpc-io@googlegroups.com
|
@@ -108,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: 1.3.1
|
114
114
|
requirements: []
|
115
115
|
rubygems_version: 3.0.8
|
116
116
|
signing_key:
|