protoc 35.1.0 → 36.0.0-rc2
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.
- package/README.md +1 -1
- package/assets.json +10 -10
- package/bin/protoc-linux-aarch_64 +0 -0
- package/bin/protoc-linux-x86_64 +0 -0
- package/bin/protoc-osx-aarch_64 +0 -0
- package/bin/protoc-osx-x86_64 +0 -0
- package/bin/protoc-win64.exe +0 -0
- package/include/google/protobuf/c_sharp_features.proto +13 -0
- package/include/google/protobuf/cpp_file_options.proto +24 -0
- package/include/google/protobuf/cpp_options.proto +15 -0
- package/include/google/protobuf/descriptor.proto +64 -4
- package/include/google/protobuf/json_enumvalue_options.proto +31 -0
- package/include/google/protobuf/json_options.proto +16 -0
- package/include/google/protobuf/struct.proto +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
protoc
|
|
2
2
|
======
|
|
3
3
|
|
|
4
|
-
This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->
|
|
4
|
+
This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->v36.0-rc2<!-- end -->.
|
|
5
5
|
|
|
6
6
|
```shell script
|
|
7
7
|
npm install --save-dev protoc
|
package/assets.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"name": "protoc-
|
|
4
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
3
|
+
"name": "protoc-36.0-rc-2-linux-aarch_64.zip",
|
|
4
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protoc-36.0-rc-2-linux-aarch_64.zip",
|
|
5
5
|
"platform": "linux",
|
|
6
6
|
"arch": "arm64",
|
|
7
7
|
"dotExe": false,
|
|
8
8
|
"executable": "protoc-linux-aarch_64"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"name": "protoc-
|
|
12
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
11
|
+
"name": "protoc-36.0-rc-2-linux-x86_64.zip",
|
|
12
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protoc-36.0-rc-2-linux-x86_64.zip",
|
|
13
13
|
"platform": "linux",
|
|
14
14
|
"arch": "x64",
|
|
15
15
|
"dotExe": false,
|
|
16
16
|
"executable": "protoc-linux-x86_64"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "protoc-
|
|
20
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
19
|
+
"name": "protoc-36.0-rc-2-osx-aarch_64.zip",
|
|
20
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protoc-36.0-rc-2-osx-aarch_64.zip",
|
|
21
21
|
"platform": "darwin",
|
|
22
22
|
"arch": "arm64",
|
|
23
23
|
"dotExe": false,
|
|
24
24
|
"executable": "protoc-osx-aarch_64"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "protoc-
|
|
28
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
27
|
+
"name": "protoc-36.0-rc-2-osx-x86_64.zip",
|
|
28
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protoc-36.0-rc-2-osx-x86_64.zip",
|
|
29
29
|
"platform": "darwin",
|
|
30
30
|
"arch": "x64",
|
|
31
31
|
"dotExe": false,
|
|
32
32
|
"executable": "protoc-osx-x86_64"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"name": "protoc-
|
|
36
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
35
|
+
"name": "protoc-36.0-rc-2-win64.zip",
|
|
36
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protoc-36.0-rc-2-win64.zip",
|
|
37
37
|
"platform": "win32",
|
|
38
38
|
"arch": "x64",
|
|
39
39
|
"dotExe": true,
|
|
Binary file
|
package/bin/protoc-linux-x86_64
CHANGED
|
Binary file
|
package/bin/protoc-osx-aarch_64
CHANGED
|
Binary file
|
package/bin/protoc-osx-x86_64
CHANGED
|
Binary file
|
package/bin/protoc-win64.exe
CHANGED
|
Binary file
|
|
@@ -20,4 +20,17 @@ extend google.protobuf.FeatureSet {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
message CSharpFeatures {
|
|
23
|
+
// Whether the generated files should have nullable reference type annotations.
|
|
24
|
+
// When enabled, the generated C# code includes `#nullable enable annotations`
|
|
25
|
+
// and annotates message-typed properties and certain parameters with `?`.
|
|
26
|
+
optional bool nullable_reference_types = 1 [
|
|
27
|
+
retention = RETENTION_RUNTIME,
|
|
28
|
+
targets = TARGET_TYPE_FIELD,
|
|
29
|
+
targets = TARGET_TYPE_MESSAGE,
|
|
30
|
+
targets = TARGET_TYPE_FILE,
|
|
31
|
+
feature_support = {
|
|
32
|
+
edition_introduced: EDITION_2026,
|
|
33
|
+
},
|
|
34
|
+
edition_defaults = { edition: EDITION_LEGACY, value: "false" }
|
|
35
|
+
];
|
|
23
36
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
edition = "2024";
|
|
9
|
+
|
|
10
|
+
package pb.file;
|
|
11
|
+
|
|
12
|
+
import "google/protobuf/descriptor.proto";
|
|
13
|
+
|
|
14
|
+
extend google.protobuf.FileOptions {
|
|
15
|
+
CppFileOptions cpp = 990
|
|
16
|
+
[feature_support = { edition_introduced: EDITION_2026 }];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
local message CppFileOptions {
|
|
20
|
+
// Use this option to change the namespace of cpp generated classes. When this
|
|
21
|
+
// option is not set, the package name will be used for determining the cpp
|
|
22
|
+
// namespace.
|
|
23
|
+
string namespace = 1;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
edition = "2024";
|
|
9
|
+
|
|
10
|
+
package pb;
|
|
11
|
+
|
|
12
|
+
// This file is the user facing cpp language proto that bundles all descriptor
|
|
13
|
+
// type cpp language options.
|
|
14
|
+
|
|
15
|
+
import public "google/protobuf/cpp_file_options.proto";
|
|
@@ -524,7 +524,14 @@ message FileOptions {
|
|
|
524
524
|
|
|
525
525
|
// Enables the use of arenas for the proto messages in this file. This applies
|
|
526
526
|
// only to generated classes for C++.
|
|
527
|
-
optional bool cc_enable_arenas = 31 [
|
|
527
|
+
optional bool cc_enable_arenas = 31 [
|
|
528
|
+
default = true,
|
|
529
|
+
feature_support = {
|
|
530
|
+
edition_removed: EDITION_2026
|
|
531
|
+
removal_error: "cc_enable_arenas is enabled by default in every edition and overrides are ignored."
|
|
532
|
+
"This option is removed in editions 2026 and above."
|
|
533
|
+
}
|
|
534
|
+
];
|
|
528
535
|
|
|
529
536
|
// Sets the objective c class prefix which is prepended to all objective c
|
|
530
537
|
// generated classes from this .proto. There is no default.
|
|
@@ -929,7 +936,11 @@ message EnumValueOptions {
|
|
|
929
936
|
|
|
930
937
|
// Range reserved for first-class extension options defined by the Protobuf
|
|
931
938
|
// team. Custom options must use the 1000+ range instead.
|
|
932
|
-
extensions 990 to 998
|
|
939
|
+
extensions 990 to 998 [declaration = {
|
|
940
|
+
number: 998,
|
|
941
|
+
full_name: ".pb.enumvalue.json",
|
|
942
|
+
type: ".pb.enumvalue.JsonEnumValueOptions"
|
|
943
|
+
}];
|
|
933
944
|
|
|
934
945
|
// The parser stores options it doesn't recognize here. See above.
|
|
935
946
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
@@ -1168,7 +1179,7 @@ message FeatureSet {
|
|
|
1168
1179
|
},
|
|
1169
1180
|
edition_defaults = { edition: EDITION_LEGACY, value: "STYLE_LEGACY" },
|
|
1170
1181
|
edition_defaults = { edition: EDITION_2024, value: "STYLE2024" },
|
|
1171
|
-
edition_defaults = { edition:
|
|
1182
|
+
edition_defaults = { edition: EDITION_2026, value: "STYLE2026" }
|
|
1172
1183
|
];
|
|
1173
1184
|
|
|
1174
1185
|
message VisibilityFeature {
|
|
@@ -1199,9 +1210,41 @@ message FeatureSet {
|
|
|
1199
1210
|
edition_introduced: EDITION_2024,
|
|
1200
1211
|
},
|
|
1201
1212
|
edition_defaults = { edition: EDITION_LEGACY, value: "EXPORT_ALL" },
|
|
1202
|
-
edition_defaults = { edition: EDITION_2024, value: "EXPORT_TOP_LEVEL" }
|
|
1213
|
+
edition_defaults = { edition: EDITION_2024, value: "EXPORT_TOP_LEVEL" },
|
|
1214
|
+
edition_defaults = { edition: EDITION_2026, value: "STRICT" }
|
|
1203
1215
|
];
|
|
1204
1216
|
|
|
1217
|
+
message ProtoLimitsFeature {
|
|
1218
|
+
enum EnforceProtoLimits {
|
|
1219
|
+
PROTO_LIMITS_UNKNOWN = 0;
|
|
1220
|
+
|
|
1221
|
+
// Default pre-EDITION_2026: there are no limit enforcement at the protoc
|
|
1222
|
+
// level. Practical limits still exist, but they will tend to fail while
|
|
1223
|
+
// compiling protoc-generated code, and these limits tend to be language
|
|
1224
|
+
// or toolchain specific.
|
|
1225
|
+
LEGACY_NO_EXPLICIT_LIMITS = 1;
|
|
1226
|
+
|
|
1227
|
+
// A set of limits enforced by Edition 2026 by default. For a detailed
|
|
1228
|
+
// list of all the limits please consult the Edition 2026 documentation.
|
|
1229
|
+
PROTO_LIMITS2026 = 2;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
optional ProtoLimitsFeature.EnforceProtoLimits enforce_proto_limits = 9 [
|
|
1233
|
+
retention = RETENTION_SOURCE,
|
|
1234
|
+
targets = TARGET_TYPE_ENUM,
|
|
1235
|
+
targets = TARGET_TYPE_MESSAGE,
|
|
1236
|
+
targets = TARGET_TYPE_FIELD,
|
|
1237
|
+
targets = TARGET_TYPE_ONEOF,
|
|
1238
|
+
feature_support = {
|
|
1239
|
+
edition_introduced: EDITION_2026,
|
|
1240
|
+
},
|
|
1241
|
+
edition_defaults = {
|
|
1242
|
+
edition: EDITION_LEGACY,
|
|
1243
|
+
value: "LEGACY_NO_EXPLICIT_LIMITS"
|
|
1244
|
+
},
|
|
1245
|
+
edition_defaults = { edition: EDITION_2026, value: "PROTO_LIMITS2026" }
|
|
1246
|
+
];
|
|
1247
|
+
|
|
1205
1248
|
reserved 999;
|
|
1206
1249
|
|
|
1207
1250
|
extensions 1000 to 9994 [
|
|
@@ -1353,6 +1396,23 @@ message SourceCodeInfo {
|
|
|
1353
1396
|
// [ 4, 3, 2, 7 ]
|
|
1354
1397
|
// this path refers to the whole field declaration (from the beginning
|
|
1355
1398
|
// of the label to the terminating semicolon).
|
|
1399
|
+
//
|
|
1400
|
+
// For options, the path refers to the interpreted option in the descriptor.
|
|
1401
|
+
// E.g., for a custom option `(my_opt) = "foo"` on a message using extension
|
|
1402
|
+
// number 10101, the path is:
|
|
1403
|
+
// [ 4, 3, 7, 10101 ]
|
|
1404
|
+
// refers to:
|
|
1405
|
+
// file.message_type(3) // 4, 3
|
|
1406
|
+
// .options() // 7
|
|
1407
|
+
// .my_opt() // 10101
|
|
1408
|
+
//
|
|
1409
|
+
// Sub-locations corresponding to the interpreted option's corresponding
|
|
1410
|
+
// `UninterpretedOption` are also appended to the interpreted option, which
|
|
1411
|
+
// deviates from the actual FileDescriptorProto path. E.g.:
|
|
1412
|
+
// [ 4, 3, 7, 10101, 2 ]
|
|
1413
|
+
// refers to the option name `(my_opt)`, and:
|
|
1414
|
+
// [ 4, 3, 7, 10101, 7 ]
|
|
1415
|
+
// refers to the "foo" string value of the option.
|
|
1356
1416
|
repeated int32 path = 1 [packed = true];
|
|
1357
1417
|
|
|
1358
1418
|
// Always has exactly three or four elements: start line, start column,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
edition = "2024";
|
|
9
|
+
|
|
10
|
+
package pb.enumvalue;
|
|
11
|
+
|
|
12
|
+
import "google/protobuf/descriptor.proto";
|
|
13
|
+
|
|
14
|
+
option java_package = "com.google.protobuf.util";
|
|
15
|
+
|
|
16
|
+
local message JsonEnumValueOptions {
|
|
17
|
+
// Allows user to specify a custom string to use when serializing an enum
|
|
18
|
+
// value to JSON.
|
|
19
|
+
//
|
|
20
|
+
// Sample usage:
|
|
21
|
+
// enum Foo {
|
|
22
|
+
// ...
|
|
23
|
+
// FOO_BAR = 42 [(pb.enumvalue.json).string = "my_custom_name"];
|
|
24
|
+
// }
|
|
25
|
+
string string = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
extend google.protobuf.EnumValueOptions {
|
|
29
|
+
JsonEnumValueOptions json = 998
|
|
30
|
+
[feature_support = { edition_introduced: EDITION_2026 }];
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
// A convenience proto that houses all JSON-related options.
|
|
9
|
+
|
|
10
|
+
edition = "2024";
|
|
11
|
+
|
|
12
|
+
package pb;
|
|
13
|
+
|
|
14
|
+
import public "google/protobuf/json_enumvalue_options.proto";
|
|
15
|
+
|
|
16
|
+
option java_package = "com.google.protobuf.util";
|
|
@@ -96,9 +96,9 @@ message Value {
|
|
|
96
96
|
// the null value for the `Value` type union.
|
|
97
97
|
//
|
|
98
98
|
// A field of type `NullValue` with any value other than `0` is considered
|
|
99
|
-
// invalid. Most ProtoJSON serializers will emit a Value with a `null_value`
|
|
100
|
-
// as a JSON `null` regardless of the integer value, and so will round trip
|
|
101
|
-
// a `0` value.
|
|
99
|
+
// invalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`
|
|
100
|
+
// set as a JSON `null` regardless of the integer value, and so will round trip
|
|
101
|
+
// to a `0` value.
|
|
102
102
|
enum NullValue {
|
|
103
103
|
// Null value.
|
|
104
104
|
NULL_VALUE = 0;
|
package/package.json
CHANGED