grpc-tools 1.67.0 → 1.69.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a6e08c1fcd2298d5871972f8db51409b7fd5d91ed03ac22f98812fd5fc1fd8
4
- data.tar.gz: e247eca9ed50247d535988e79324f151ae9ef02e7fa0e47a6808cd2bc7310b7d
3
+ metadata.gz: fcf855c58fa7c82327021ca36cdaf508d603941215430165eb9a9aea0c3a036e
4
+ data.tar.gz: 95c1dbf82ffba53b5d4b76e9c69ccecbfd5f81b3ee97385643a65cacf7e6fe16
5
5
  SHA512:
6
- metadata.gz: 6de90dc6f4f47921d0ad31d7802c0a09dded373ecc0b0239b59636a3b3187e128f35876cf910771c69ee4f6ea4e6112feadb7178183093f5709bd514af256c2a
7
- data.tar.gz: 888a3420dc4716d53d0101932ddb05deaa7a077b8db8f38410c2b89716818368aa2c074441483c37130869e9068693c5bdab5b86ef64bf7f4b11cf41891b5102
6
+ metadata.gz: c60ff770f608b4e48395be19808c030e8c61f1fe08ce5e2bbd09f77206957bda48e2fbdd120a515637e37e054539aef6ce512179d5b7302a11fcb8d6487b7589
7
+ data.tar.gz: ca8da8a061d8f118f4161cd8230ef2dd223a93508a86d4cff0ca014f3954659fea628fcfb0ffcb291b042c7ceb0d8955fb3476674cb81f590b2f61699ea4202f
@@ -166,7 +166,7 @@ message Method {
166
166
  // The mixin construct implies that all methods in `AccessControl` are
167
167
  // also declared with same name and request/response types in
168
168
  // `Storage`. A documentation generator or annotation processor will
169
- // see the effective `Storage.GetAcl` method after inherting
169
+ // see the effective `Storage.GetAcl` method after inheriting
170
170
  // documentation and annotations as follows:
171
171
  //
172
172
  // service Storage {
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
55
55
  // files it parses.
56
56
  message FileDescriptorSet {
57
57
  repeated FileDescriptorProto file = 1;
58
+
59
+ // Extensions for tooling.
60
+ extensions 536000000 [declaration = {
61
+ number: 536000000
62
+ type: ".buf.descriptor.v1.FileDescriptorSetExtension"
63
+ full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
64
+ }];
58
65
  }
59
66
 
60
67
  // The full set of known editions.
@@ -80,7 +87,7 @@ enum Edition {
80
87
  EDITION_2024 = 1001;
81
88
 
82
89
  // Placeholder editions for testing feature resolution. These should not be
83
- // used or relyed on outside of tests.
90
+ // used or relied on outside of tests.
84
91
  EDITION_1_TEST_ONLY = 1;
85
92
  EDITION_2_TEST_ONLY = 2;
86
93
  EDITION_99997_TEST_ONLY = 99997;
@@ -635,13 +642,14 @@ message MessageOptions {
635
642
  }
636
643
 
637
644
  message FieldOptions {
645
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
638
646
  // The ctype option instructs the C++ code generator to use a different
639
647
  // representation of the field than it normally would. See the specific
640
648
  // options below. This option is only implemented to support use of
641
649
  // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
642
- // type "bytes" in the open source release -- sorry, we'll try to include
643
- // other types in a future version!
644
- optional CType ctype = 1 [default = STRING];
650
+ // type "bytes" in the open source release.
651
+ // TODO: make ctype actually deprecated.
652
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
645
653
  enum CType {
646
654
  // Default mode.
647
655
  STRING = 0;
@@ -731,8 +739,6 @@ message FieldOptions {
731
739
  optional bool debug_redact = 16 [default = false];
732
740
 
733
741
  // If set to RETENTION_SOURCE, the option will be omitted from the binary.
734
- // Note: as of January 2023, support for this is in progress and does not yet
735
- // have an effect (b/264593489).
736
742
  enum OptionRetention {
737
743
  RETENTION_UNKNOWN = 0;
738
744
  RETENTION_RUNTIME = 1;
@@ -743,8 +749,7 @@ message FieldOptions {
743
749
 
744
750
  // This indicates the types of entities that the field may apply to when used
745
751
  // as an option. If it is unset, then the field may be freely used as an
746
- // option on any kind of entity. Note: as of January 2023, support for this is
747
- // in progress and does not yet have an effect (b/264593489).
752
+ // option on any kind of entity.
748
753
  enum OptionTargetType {
749
754
  TARGET_TYPE_UNKNOWN = 0;
750
755
  TARGET_TYPE_FILE = 1;
@@ -974,11 +979,10 @@ message FeatureSet {
974
979
  retention = RETENTION_RUNTIME,
975
980
  targets = TARGET_TYPE_FIELD,
976
981
  targets = TARGET_TYPE_FILE,
977
- // TODO Enable this in google3 once protoc rolls out.
978
982
  feature_support = {
979
983
  edition_introduced: EDITION_2023,
980
984
  },
981
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
985
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
982
986
  edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
983
987
  edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
984
988
  ];
@@ -992,11 +996,10 @@ message FeatureSet {
992
996
  retention = RETENTION_RUNTIME,
993
997
  targets = TARGET_TYPE_ENUM,
994
998
  targets = TARGET_TYPE_FILE,
995
- // TODO Enable this in google3 once protoc rolls out.
996
999
  feature_support = {
997
1000
  edition_introduced: EDITION_2023,
998
1001
  },
999
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
1002
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
1000
1003
  edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
1001
1004
  ];
1002
1005
 
@@ -1009,11 +1012,10 @@ message FeatureSet {
1009
1012
  retention = RETENTION_RUNTIME,
1010
1013
  targets = TARGET_TYPE_FIELD,
1011
1014
  targets = TARGET_TYPE_FILE,
1012
- // TODO Enable this in google3 once protoc rolls out.
1013
1015
  feature_support = {
1014
1016
  edition_introduced: EDITION_2023,
1015
1017
  },
1016
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
1018
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
1017
1019
  edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
1018
1020
  ];
1019
1021
 
@@ -1027,11 +1029,10 @@ message FeatureSet {
1027
1029
  retention = RETENTION_RUNTIME,
1028
1030
  targets = TARGET_TYPE_FIELD,
1029
1031
  targets = TARGET_TYPE_FILE,
1030
- // TODO Enable this in google3 once protoc rolls out.
1031
1032
  feature_support = {
1032
1033
  edition_introduced: EDITION_2023,
1033
1034
  },
1034
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
1035
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
1035
1036
  edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
1036
1037
  ];
1037
1038
 
@@ -1044,11 +1045,10 @@ message FeatureSet {
1044
1045
  retention = RETENTION_RUNTIME,
1045
1046
  targets = TARGET_TYPE_FIELD,
1046
1047
  targets = TARGET_TYPE_FILE,
1047
- // TODO Enable this in google3 once protoc rolls out.
1048
1048
  feature_support = {
1049
1049
  edition_introduced: EDITION_2023,
1050
1050
  },
1051
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
1051
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
1052
1052
  ];
1053
1053
 
1054
1054
  enum JsonFormat {
@@ -1061,11 +1061,10 @@ message FeatureSet {
1061
1061
  targets = TARGET_TYPE_MESSAGE,
1062
1062
  targets = TARGET_TYPE_ENUM,
1063
1063
  targets = TARGET_TYPE_FILE,
1064
- // TODO Enable this in google3 once protoc rolls out.
1065
1064
  feature_support = {
1066
1065
  edition_introduced: EDITION_2023,
1067
1066
  },
1068
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
1067
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
1069
1068
  edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
1070
1069
  ];
1071
1070
 
@@ -1260,6 +1259,13 @@ message SourceCodeInfo {
1260
1259
  optional string trailing_comments = 4;
1261
1260
  repeated string leading_detached_comments = 6;
1262
1261
  }
1262
+
1263
+ // Extensions for tooling.
1264
+ extensions 536000000 [declaration = {
1265
+ number: 536000000
1266
+ type: ".buf.descriptor.v1.SourceCodeInfoExtension"
1267
+ full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
1268
+ }];
1263
1269
  }
1264
1270
 
1265
1271
  // Describes the relationship between generated code and its original source
Binary file
data/bin/x86-linux/protoc CHANGED
Binary file
@@ -166,7 +166,7 @@ message Method {
166
166
  // The mixin construct implies that all methods in `AccessControl` are
167
167
  // also declared with same name and request/response types in
168
168
  // `Storage`. A documentation generator or annotation processor will
169
- // see the effective `Storage.GetAcl` method after inherting
169
+ // see the effective `Storage.GetAcl` method after inheriting
170
170
  // documentation and annotations as follows:
171
171
  //
172
172
  // service Storage {
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
55
55
  // files it parses.
56
56
  message FileDescriptorSet {
57
57
  repeated FileDescriptorProto file = 1;
58
+
59
+ // Extensions for tooling.
60
+ extensions 536000000 [declaration = {
61
+ number: 536000000
62
+ type: ".buf.descriptor.v1.FileDescriptorSetExtension"
63
+ full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
64
+ }];
58
65
  }
59
66
 
60
67
  // The full set of known editions.
@@ -80,7 +87,7 @@ enum Edition {
80
87
  EDITION_2024 = 1001;
81
88
 
82
89
  // Placeholder editions for testing feature resolution. These should not be
83
- // used or relyed on outside of tests.
90
+ // used or relied on outside of tests.
84
91
  EDITION_1_TEST_ONLY = 1;
85
92
  EDITION_2_TEST_ONLY = 2;
86
93
  EDITION_99997_TEST_ONLY = 99997;
@@ -635,13 +642,14 @@ message MessageOptions {
635
642
  }
636
643
 
637
644
  message FieldOptions {
645
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
638
646
  // The ctype option instructs the C++ code generator to use a different
639
647
  // representation of the field than it normally would. See the specific
640
648
  // options below. This option is only implemented to support use of
641
649
  // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
642
- // type "bytes" in the open source release -- sorry, we'll try to include
643
- // other types in a future version!
644
- optional CType ctype = 1 [default = STRING];
650
+ // type "bytes" in the open source release.
651
+ // TODO: make ctype actually deprecated.
652
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
645
653
  enum CType {
646
654
  // Default mode.
647
655
  STRING = 0;
@@ -731,8 +739,6 @@ message FieldOptions {
731
739
  optional bool debug_redact = 16 [default = false];
732
740
 
733
741
  // If set to RETENTION_SOURCE, the option will be omitted from the binary.
734
- // Note: as of January 2023, support for this is in progress and does not yet
735
- // have an effect (b/264593489).
736
742
  enum OptionRetention {
737
743
  RETENTION_UNKNOWN = 0;
738
744
  RETENTION_RUNTIME = 1;
@@ -743,8 +749,7 @@ message FieldOptions {
743
749
 
744
750
  // This indicates the types of entities that the field may apply to when used
745
751
  // as an option. If it is unset, then the field may be freely used as an
746
- // option on any kind of entity. Note: as of January 2023, support for this is
747
- // in progress and does not yet have an effect (b/264593489).
752
+ // option on any kind of entity.
748
753
  enum OptionTargetType {
749
754
  TARGET_TYPE_UNKNOWN = 0;
750
755
  TARGET_TYPE_FILE = 1;
@@ -974,11 +979,10 @@ message FeatureSet {
974
979
  retention = RETENTION_RUNTIME,
975
980
  targets = TARGET_TYPE_FIELD,
976
981
  targets = TARGET_TYPE_FILE,
977
- // TODO Enable this in google3 once protoc rolls out.
978
982
  feature_support = {
979
983
  edition_introduced: EDITION_2023,
980
984
  },
981
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
985
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
982
986
  edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
983
987
  edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
984
988
  ];
@@ -992,11 +996,10 @@ message FeatureSet {
992
996
  retention = RETENTION_RUNTIME,
993
997
  targets = TARGET_TYPE_ENUM,
994
998
  targets = TARGET_TYPE_FILE,
995
- // TODO Enable this in google3 once protoc rolls out.
996
999
  feature_support = {
997
1000
  edition_introduced: EDITION_2023,
998
1001
  },
999
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
1002
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
1000
1003
  edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
1001
1004
  ];
1002
1005
 
@@ -1009,11 +1012,10 @@ message FeatureSet {
1009
1012
  retention = RETENTION_RUNTIME,
1010
1013
  targets = TARGET_TYPE_FIELD,
1011
1014
  targets = TARGET_TYPE_FILE,
1012
- // TODO Enable this in google3 once protoc rolls out.
1013
1015
  feature_support = {
1014
1016
  edition_introduced: EDITION_2023,
1015
1017
  },
1016
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
1018
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
1017
1019
  edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
1018
1020
  ];
1019
1021
 
@@ -1027,11 +1029,10 @@ message FeatureSet {
1027
1029
  retention = RETENTION_RUNTIME,
1028
1030
  targets = TARGET_TYPE_FIELD,
1029
1031
  targets = TARGET_TYPE_FILE,
1030
- // TODO Enable this in google3 once protoc rolls out.
1031
1032
  feature_support = {
1032
1033
  edition_introduced: EDITION_2023,
1033
1034
  },
1034
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
1035
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
1035
1036
  edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
1036
1037
  ];
1037
1038
 
@@ -1044,11 +1045,10 @@ message FeatureSet {
1044
1045
  retention = RETENTION_RUNTIME,
1045
1046
  targets = TARGET_TYPE_FIELD,
1046
1047
  targets = TARGET_TYPE_FILE,
1047
- // TODO Enable this in google3 once protoc rolls out.
1048
1048
  feature_support = {
1049
1049
  edition_introduced: EDITION_2023,
1050
1050
  },
1051
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
1051
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
1052
1052
  ];
1053
1053
 
1054
1054
  enum JsonFormat {
@@ -1061,11 +1061,10 @@ message FeatureSet {
1061
1061
  targets = TARGET_TYPE_MESSAGE,
1062
1062
  targets = TARGET_TYPE_ENUM,
1063
1063
  targets = TARGET_TYPE_FILE,
1064
- // TODO Enable this in google3 once protoc rolls out.
1065
1064
  feature_support = {
1066
1065
  edition_introduced: EDITION_2023,
1067
1066
  },
1068
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
1067
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
1069
1068
  edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
1070
1069
  ];
1071
1070
 
@@ -1260,6 +1259,13 @@ message SourceCodeInfo {
1260
1259
  optional string trailing_comments = 4;
1261
1260
  repeated string leading_detached_comments = 6;
1262
1261
  }
1262
+
1263
+ // Extensions for tooling.
1264
+ extensions 536000000 [declaration = {
1265
+ number: 536000000
1266
+ type: ".buf.descriptor.v1.SourceCodeInfoExtension"
1267
+ full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
1268
+ }];
1263
1269
  }
1264
1270
 
1265
1271
  // Describes the relationship between generated code and its original source
Binary file
Binary file
@@ -166,7 +166,7 @@ message Method {
166
166
  // The mixin construct implies that all methods in `AccessControl` are
167
167
  // also declared with same name and request/response types in
168
168
  // `Storage`. A documentation generator or annotation processor will
169
- // see the effective `Storage.GetAcl` method after inherting
169
+ // see the effective `Storage.GetAcl` method after inheriting
170
170
  // documentation and annotations as follows:
171
171
  //
172
172
  // service Storage {
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
55
55
  // files it parses.
56
56
  message FileDescriptorSet {
57
57
  repeated FileDescriptorProto file = 1;
58
+
59
+ // Extensions for tooling.
60
+ extensions 536000000 [declaration = {
61
+ number: 536000000
62
+ type: ".buf.descriptor.v1.FileDescriptorSetExtension"
63
+ full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
64
+ }];
58
65
  }
59
66
 
60
67
  // The full set of known editions.
@@ -80,7 +87,7 @@ enum Edition {
80
87
  EDITION_2024 = 1001;
81
88
 
82
89
  // Placeholder editions for testing feature resolution. These should not be
83
- // used or relyed on outside of tests.
90
+ // used or relied on outside of tests.
84
91
  EDITION_1_TEST_ONLY = 1;
85
92
  EDITION_2_TEST_ONLY = 2;
86
93
  EDITION_99997_TEST_ONLY = 99997;
@@ -635,13 +642,14 @@ message MessageOptions {
635
642
  }
636
643
 
637
644
  message FieldOptions {
645
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
638
646
  // The ctype option instructs the C++ code generator to use a different
639
647
  // representation of the field than it normally would. See the specific
640
648
  // options below. This option is only implemented to support use of
641
649
  // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
642
- // type "bytes" in the open source release -- sorry, we'll try to include
643
- // other types in a future version!
644
- optional CType ctype = 1 [default = STRING];
650
+ // type "bytes" in the open source release.
651
+ // TODO: make ctype actually deprecated.
652
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
645
653
  enum CType {
646
654
  // Default mode.
647
655
  STRING = 0;
@@ -731,8 +739,6 @@ message FieldOptions {
731
739
  optional bool debug_redact = 16 [default = false];
732
740
 
733
741
  // If set to RETENTION_SOURCE, the option will be omitted from the binary.
734
- // Note: as of January 2023, support for this is in progress and does not yet
735
- // have an effect (b/264593489).
736
742
  enum OptionRetention {
737
743
  RETENTION_UNKNOWN = 0;
738
744
  RETENTION_RUNTIME = 1;
@@ -743,8 +749,7 @@ message FieldOptions {
743
749
 
744
750
  // This indicates the types of entities that the field may apply to when used
745
751
  // as an option. If it is unset, then the field may be freely used as an
746
- // option on any kind of entity. Note: as of January 2023, support for this is
747
- // in progress and does not yet have an effect (b/264593489).
752
+ // option on any kind of entity.
748
753
  enum OptionTargetType {
749
754
  TARGET_TYPE_UNKNOWN = 0;
750
755
  TARGET_TYPE_FILE = 1;
@@ -974,11 +979,10 @@ message FeatureSet {
974
979
  retention = RETENTION_RUNTIME,
975
980
  targets = TARGET_TYPE_FIELD,
976
981
  targets = TARGET_TYPE_FILE,
977
- // TODO Enable this in google3 once protoc rolls out.
978
982
  feature_support = {
979
983
  edition_introduced: EDITION_2023,
980
984
  },
981
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
985
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
982
986
  edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
983
987
  edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
984
988
  ];
@@ -992,11 +996,10 @@ message FeatureSet {
992
996
  retention = RETENTION_RUNTIME,
993
997
  targets = TARGET_TYPE_ENUM,
994
998
  targets = TARGET_TYPE_FILE,
995
- // TODO Enable this in google3 once protoc rolls out.
996
999
  feature_support = {
997
1000
  edition_introduced: EDITION_2023,
998
1001
  },
999
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
1002
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
1000
1003
  edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
1001
1004
  ];
1002
1005
 
@@ -1009,11 +1012,10 @@ message FeatureSet {
1009
1012
  retention = RETENTION_RUNTIME,
1010
1013
  targets = TARGET_TYPE_FIELD,
1011
1014
  targets = TARGET_TYPE_FILE,
1012
- // TODO Enable this in google3 once protoc rolls out.
1013
1015
  feature_support = {
1014
1016
  edition_introduced: EDITION_2023,
1015
1017
  },
1016
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
1018
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
1017
1019
  edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
1018
1020
  ];
1019
1021
 
@@ -1027,11 +1029,10 @@ message FeatureSet {
1027
1029
  retention = RETENTION_RUNTIME,
1028
1030
  targets = TARGET_TYPE_FIELD,
1029
1031
  targets = TARGET_TYPE_FILE,
1030
- // TODO Enable this in google3 once protoc rolls out.
1031
1032
  feature_support = {
1032
1033
  edition_introduced: EDITION_2023,
1033
1034
  },
1034
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
1035
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
1035
1036
  edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
1036
1037
  ];
1037
1038
 
@@ -1044,11 +1045,10 @@ message FeatureSet {
1044
1045
  retention = RETENTION_RUNTIME,
1045
1046
  targets = TARGET_TYPE_FIELD,
1046
1047
  targets = TARGET_TYPE_FILE,
1047
- // TODO Enable this in google3 once protoc rolls out.
1048
1048
  feature_support = {
1049
1049
  edition_introduced: EDITION_2023,
1050
1050
  },
1051
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
1051
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
1052
1052
  ];
1053
1053
 
1054
1054
  enum JsonFormat {
@@ -1061,11 +1061,10 @@ message FeatureSet {
1061
1061
  targets = TARGET_TYPE_MESSAGE,
1062
1062
  targets = TARGET_TYPE_ENUM,
1063
1063
  targets = TARGET_TYPE_FILE,
1064
- // TODO Enable this in google3 once protoc rolls out.
1065
1064
  feature_support = {
1066
1065
  edition_introduced: EDITION_2023,
1067
1066
  },
1068
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
1067
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
1069
1068
  edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
1070
1069
  ];
1071
1070
 
@@ -1260,6 +1259,13 @@ message SourceCodeInfo {
1260
1259
  optional string trailing_comments = 4;
1261
1260
  repeated string leading_detached_comments = 6;
1262
1261
  }
1262
+
1263
+ // Extensions for tooling.
1264
+ extensions 536000000 [declaration = {
1265
+ number: 536000000
1266
+ type: ".buf.descriptor.v1.SourceCodeInfoExtension"
1267
+ full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
1268
+ }];
1263
1269
  }
1264
1270
 
1265
1271
  // Describes the relationship between generated code and its original source
Binary file
Binary file
@@ -166,7 +166,7 @@ message Method {
166
166
  // The mixin construct implies that all methods in `AccessControl` are
167
167
  // also declared with same name and request/response types in
168
168
  // `Storage`. A documentation generator or annotation processor will
169
- // see the effective `Storage.GetAcl` method after inherting
169
+ // see the effective `Storage.GetAcl` method after inheriting
170
170
  // documentation and annotations as follows:
171
171
  //
172
172
  // service Storage {
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
55
55
  // files it parses.
56
56
  message FileDescriptorSet {
57
57
  repeated FileDescriptorProto file = 1;
58
+
59
+ // Extensions for tooling.
60
+ extensions 536000000 [declaration = {
61
+ number: 536000000
62
+ type: ".buf.descriptor.v1.FileDescriptorSetExtension"
63
+ full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
64
+ }];
58
65
  }
59
66
 
60
67
  // The full set of known editions.
@@ -80,7 +87,7 @@ enum Edition {
80
87
  EDITION_2024 = 1001;
81
88
 
82
89
  // Placeholder editions for testing feature resolution. These should not be
83
- // used or relyed on outside of tests.
90
+ // used or relied on outside of tests.
84
91
  EDITION_1_TEST_ONLY = 1;
85
92
  EDITION_2_TEST_ONLY = 2;
86
93
  EDITION_99997_TEST_ONLY = 99997;
@@ -635,13 +642,14 @@ message MessageOptions {
635
642
  }
636
643
 
637
644
  message FieldOptions {
645
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
638
646
  // The ctype option instructs the C++ code generator to use a different
639
647
  // representation of the field than it normally would. See the specific
640
648
  // options below. This option is only implemented to support use of
641
649
  // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
642
- // type "bytes" in the open source release -- sorry, we'll try to include
643
- // other types in a future version!
644
- optional CType ctype = 1 [default = STRING];
650
+ // type "bytes" in the open source release.
651
+ // TODO: make ctype actually deprecated.
652
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
645
653
  enum CType {
646
654
  // Default mode.
647
655
  STRING = 0;
@@ -731,8 +739,6 @@ message FieldOptions {
731
739
  optional bool debug_redact = 16 [default = false];
732
740
 
733
741
  // If set to RETENTION_SOURCE, the option will be omitted from the binary.
734
- // Note: as of January 2023, support for this is in progress and does not yet
735
- // have an effect (b/264593489).
736
742
  enum OptionRetention {
737
743
  RETENTION_UNKNOWN = 0;
738
744
  RETENTION_RUNTIME = 1;
@@ -743,8 +749,7 @@ message FieldOptions {
743
749
 
744
750
  // This indicates the types of entities that the field may apply to when used
745
751
  // as an option. If it is unset, then the field may be freely used as an
746
- // option on any kind of entity. Note: as of January 2023, support for this is
747
- // in progress and does not yet have an effect (b/264593489).
752
+ // option on any kind of entity.
748
753
  enum OptionTargetType {
749
754
  TARGET_TYPE_UNKNOWN = 0;
750
755
  TARGET_TYPE_FILE = 1;
@@ -974,11 +979,10 @@ message FeatureSet {
974
979
  retention = RETENTION_RUNTIME,
975
980
  targets = TARGET_TYPE_FIELD,
976
981
  targets = TARGET_TYPE_FILE,
977
- // TODO Enable this in google3 once protoc rolls out.
978
982
  feature_support = {
979
983
  edition_introduced: EDITION_2023,
980
984
  },
981
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
985
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
982
986
  edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
983
987
  edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
984
988
  ];
@@ -992,11 +996,10 @@ message FeatureSet {
992
996
  retention = RETENTION_RUNTIME,
993
997
  targets = TARGET_TYPE_ENUM,
994
998
  targets = TARGET_TYPE_FILE,
995
- // TODO Enable this in google3 once protoc rolls out.
996
999
  feature_support = {
997
1000
  edition_introduced: EDITION_2023,
998
1001
  },
999
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
1002
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
1000
1003
  edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
1001
1004
  ];
1002
1005
 
@@ -1009,11 +1012,10 @@ message FeatureSet {
1009
1012
  retention = RETENTION_RUNTIME,
1010
1013
  targets = TARGET_TYPE_FIELD,
1011
1014
  targets = TARGET_TYPE_FILE,
1012
- // TODO Enable this in google3 once protoc rolls out.
1013
1015
  feature_support = {
1014
1016
  edition_introduced: EDITION_2023,
1015
1017
  },
1016
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
1018
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
1017
1019
  edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
1018
1020
  ];
1019
1021
 
@@ -1027,11 +1029,10 @@ message FeatureSet {
1027
1029
  retention = RETENTION_RUNTIME,
1028
1030
  targets = TARGET_TYPE_FIELD,
1029
1031
  targets = TARGET_TYPE_FILE,
1030
- // TODO Enable this in google3 once protoc rolls out.
1031
1032
  feature_support = {
1032
1033
  edition_introduced: EDITION_2023,
1033
1034
  },
1034
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
1035
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
1035
1036
  edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
1036
1037
  ];
1037
1038
 
@@ -1044,11 +1045,10 @@ message FeatureSet {
1044
1045
  retention = RETENTION_RUNTIME,
1045
1046
  targets = TARGET_TYPE_FIELD,
1046
1047
  targets = TARGET_TYPE_FILE,
1047
- // TODO Enable this in google3 once protoc rolls out.
1048
1048
  feature_support = {
1049
1049
  edition_introduced: EDITION_2023,
1050
1050
  },
1051
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
1051
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
1052
1052
  ];
1053
1053
 
1054
1054
  enum JsonFormat {
@@ -1061,11 +1061,10 @@ message FeatureSet {
1061
1061
  targets = TARGET_TYPE_MESSAGE,
1062
1062
  targets = TARGET_TYPE_ENUM,
1063
1063
  targets = TARGET_TYPE_FILE,
1064
- // TODO Enable this in google3 once protoc rolls out.
1065
1064
  feature_support = {
1066
1065
  edition_introduced: EDITION_2023,
1067
1066
  },
1068
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
1067
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
1069
1068
  edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
1070
1069
  ];
1071
1070
 
@@ -1260,6 +1259,13 @@ message SourceCodeInfo {
1260
1259
  optional string trailing_comments = 4;
1261
1260
  repeated string leading_detached_comments = 6;
1262
1261
  }
1262
+
1263
+ // Extensions for tooling.
1264
+ extensions 536000000 [declaration = {
1265
+ number: 536000000
1266
+ type: ".buf.descriptor.v1.SourceCodeInfoExtension"
1267
+ full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
1268
+ }];
1263
1269
  }
1264
1270
 
1265
1271
  // Describes the relationship between generated code and its original source
Binary file
Binary file
@@ -166,7 +166,7 @@ message Method {
166
166
  // The mixin construct implies that all methods in `AccessControl` are
167
167
  // also declared with same name and request/response types in
168
168
  // `Storage`. A documentation generator or annotation processor will
169
- // see the effective `Storage.GetAcl` method after inherting
169
+ // see the effective `Storage.GetAcl` method after inheriting
170
170
  // documentation and annotations as follows:
171
171
  //
172
172
  // service Storage {
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
55
55
  // files it parses.
56
56
  message FileDescriptorSet {
57
57
  repeated FileDescriptorProto file = 1;
58
+
59
+ // Extensions for tooling.
60
+ extensions 536000000 [declaration = {
61
+ number: 536000000
62
+ type: ".buf.descriptor.v1.FileDescriptorSetExtension"
63
+ full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
64
+ }];
58
65
  }
59
66
 
60
67
  // The full set of known editions.
@@ -80,7 +87,7 @@ enum Edition {
80
87
  EDITION_2024 = 1001;
81
88
 
82
89
  // Placeholder editions for testing feature resolution. These should not be
83
- // used or relyed on outside of tests.
90
+ // used or relied on outside of tests.
84
91
  EDITION_1_TEST_ONLY = 1;
85
92
  EDITION_2_TEST_ONLY = 2;
86
93
  EDITION_99997_TEST_ONLY = 99997;
@@ -635,13 +642,14 @@ message MessageOptions {
635
642
  }
636
643
 
637
644
  message FieldOptions {
645
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
638
646
  // The ctype option instructs the C++ code generator to use a different
639
647
  // representation of the field than it normally would. See the specific
640
648
  // options below. This option is only implemented to support use of
641
649
  // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
642
- // type "bytes" in the open source release -- sorry, we'll try to include
643
- // other types in a future version!
644
- optional CType ctype = 1 [default = STRING];
650
+ // type "bytes" in the open source release.
651
+ // TODO: make ctype actually deprecated.
652
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
645
653
  enum CType {
646
654
  // Default mode.
647
655
  STRING = 0;
@@ -731,8 +739,6 @@ message FieldOptions {
731
739
  optional bool debug_redact = 16 [default = false];
732
740
 
733
741
  // If set to RETENTION_SOURCE, the option will be omitted from the binary.
734
- // Note: as of January 2023, support for this is in progress and does not yet
735
- // have an effect (b/264593489).
736
742
  enum OptionRetention {
737
743
  RETENTION_UNKNOWN = 0;
738
744
  RETENTION_RUNTIME = 1;
@@ -743,8 +749,7 @@ message FieldOptions {
743
749
 
744
750
  // This indicates the types of entities that the field may apply to when used
745
751
  // as an option. If it is unset, then the field may be freely used as an
746
- // option on any kind of entity. Note: as of January 2023, support for this is
747
- // in progress and does not yet have an effect (b/264593489).
752
+ // option on any kind of entity.
748
753
  enum OptionTargetType {
749
754
  TARGET_TYPE_UNKNOWN = 0;
750
755
  TARGET_TYPE_FILE = 1;
@@ -974,11 +979,10 @@ message FeatureSet {
974
979
  retention = RETENTION_RUNTIME,
975
980
  targets = TARGET_TYPE_FIELD,
976
981
  targets = TARGET_TYPE_FILE,
977
- // TODO Enable this in google3 once protoc rolls out.
978
982
  feature_support = {
979
983
  edition_introduced: EDITION_2023,
980
984
  },
981
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
985
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
982
986
  edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
983
987
  edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
984
988
  ];
@@ -992,11 +996,10 @@ message FeatureSet {
992
996
  retention = RETENTION_RUNTIME,
993
997
  targets = TARGET_TYPE_ENUM,
994
998
  targets = TARGET_TYPE_FILE,
995
- // TODO Enable this in google3 once protoc rolls out.
996
999
  feature_support = {
997
1000
  edition_introduced: EDITION_2023,
998
1001
  },
999
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
1002
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
1000
1003
  edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
1001
1004
  ];
1002
1005
 
@@ -1009,11 +1012,10 @@ message FeatureSet {
1009
1012
  retention = RETENTION_RUNTIME,
1010
1013
  targets = TARGET_TYPE_FIELD,
1011
1014
  targets = TARGET_TYPE_FILE,
1012
- // TODO Enable this in google3 once protoc rolls out.
1013
1015
  feature_support = {
1014
1016
  edition_introduced: EDITION_2023,
1015
1017
  },
1016
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
1018
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
1017
1019
  edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
1018
1020
  ];
1019
1021
 
@@ -1027,11 +1029,10 @@ message FeatureSet {
1027
1029
  retention = RETENTION_RUNTIME,
1028
1030
  targets = TARGET_TYPE_FIELD,
1029
1031
  targets = TARGET_TYPE_FILE,
1030
- // TODO Enable this in google3 once protoc rolls out.
1031
1032
  feature_support = {
1032
1033
  edition_introduced: EDITION_2023,
1033
1034
  },
1034
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
1035
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
1035
1036
  edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
1036
1037
  ];
1037
1038
 
@@ -1044,11 +1045,10 @@ message FeatureSet {
1044
1045
  retention = RETENTION_RUNTIME,
1045
1046
  targets = TARGET_TYPE_FIELD,
1046
1047
  targets = TARGET_TYPE_FILE,
1047
- // TODO Enable this in google3 once protoc rolls out.
1048
1048
  feature_support = {
1049
1049
  edition_introduced: EDITION_2023,
1050
1050
  },
1051
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
1051
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
1052
1052
  ];
1053
1053
 
1054
1054
  enum JsonFormat {
@@ -1061,11 +1061,10 @@ message FeatureSet {
1061
1061
  targets = TARGET_TYPE_MESSAGE,
1062
1062
  targets = TARGET_TYPE_ENUM,
1063
1063
  targets = TARGET_TYPE_FILE,
1064
- // TODO Enable this in google3 once protoc rolls out.
1065
1064
  feature_support = {
1066
1065
  edition_introduced: EDITION_2023,
1067
1066
  },
1068
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
1067
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
1069
1068
  edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
1070
1069
  ];
1071
1070
 
@@ -1260,6 +1259,13 @@ message SourceCodeInfo {
1260
1259
  optional string trailing_comments = 4;
1261
1260
  repeated string leading_detached_comments = 6;
1262
1261
  }
1262
+
1263
+ // Extensions for tooling.
1264
+ extensions 536000000 [declaration = {
1265
+ number: 536000000
1266
+ type: ".buf.descriptor.v1.SourceCodeInfoExtension"
1267
+ full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
1268
+ }];
1263
1269
  }
1264
1270
 
1265
1271
  // Describes the relationship between generated code and its original source
Binary file
data/version.rb CHANGED
@@ -14,6 +14,6 @@
14
14
 
15
15
  module GRPC
16
16
  module Tools
17
- VERSION = '1.67.0'
17
+ VERSION = '1.69.0.pre1'
18
18
  end
19
19
  end
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.67.0
4
+ version: 1.69.0.pre1
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-10-08 00:00:00.000000000 Z
11
+ date: 2024-12-05 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: '0'
113
+ version: 1.3.1
114
114
  requirements: []
115
115
  rubygems_version: 3.0.8
116
116
  signing_key: