protoc 31.1.0 → 32.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/api.proto +23 -1
- package/include/google/protobuf/compiler/plugin.proto +2 -2
- package/include/google/protobuf/cpp_features.proto +1 -1
- package/include/google/protobuf/descriptor.proto +7 -1
- package/include/google/protobuf/go_features.proto +5 -2
- package/include/google/protobuf/java_features.proto +3 -1
- package/include/google/protobuf/type.proto +24 -0
- 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 -->v32.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-32.0-rc-2-linux-aarch_64.zip",
|
|
4
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v32.0-rc2/protoc-32.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-32.0-rc-2-linux-x86_64.zip",
|
|
12
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v32.0-rc2/protoc-32.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-32.0-rc-2-osx-aarch_64.zip",
|
|
20
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v32.0-rc2/protoc-32.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-32.0-rc-2-osx-x86_64.zip",
|
|
28
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v32.0-rc2/protoc-32.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-32.0-rc-2-win64.zip",
|
|
36
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v32.0-rc2/protoc-32.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
|
|
@@ -51,6 +51,11 @@ option go_package = "google.golang.org/protobuf/types/known/apipb";
|
|
|
51
51
|
// sometimes simply referred to as "APIs" in other contexts, such as the name of
|
|
52
52
|
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
|
53
53
|
// detailed terminology.
|
|
54
|
+
//
|
|
55
|
+
// New usages of this message as an alternative to ServiceDescriptorProto are
|
|
56
|
+
// strongly discouraged. This message does not reliability preserve all
|
|
57
|
+
// information necessary to model the schema and preserve semantics. Instead
|
|
58
|
+
// make use of FileDescriptorSet which preserves the necessary information.
|
|
54
59
|
message Api {
|
|
55
60
|
// The fully qualified name of this interface, including package name
|
|
56
61
|
// followed by the interface's simple name.
|
|
@@ -93,9 +98,17 @@ message Api {
|
|
|
93
98
|
|
|
94
99
|
// The source syntax of the service.
|
|
95
100
|
Syntax syntax = 7;
|
|
101
|
+
|
|
102
|
+
// The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
103
|
+
string edition = 8;
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
// Method represents a method of an API interface.
|
|
107
|
+
//
|
|
108
|
+
// New usages of this message as an alternative to MethodDescriptorProto are
|
|
109
|
+
// strongly discouraged. This message does not reliability preserve all
|
|
110
|
+
// information necessary to model the schema and preserve semantics. Instead
|
|
111
|
+
// make use of FileDescriptorSet which preserves the necessary information.
|
|
99
112
|
message Method {
|
|
100
113
|
// The simple name of this method.
|
|
101
114
|
string name = 1;
|
|
@@ -116,7 +129,16 @@ message Method {
|
|
|
116
129
|
repeated Option options = 6;
|
|
117
130
|
|
|
118
131
|
// The source syntax of this method.
|
|
119
|
-
|
|
132
|
+
//
|
|
133
|
+
// This field should be ignored, instead the syntax should be inherited from
|
|
134
|
+
// Api. This is similar to Field and EnumValue.
|
|
135
|
+
Syntax syntax = 7 [deprecated = true];
|
|
136
|
+
|
|
137
|
+
// The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
138
|
+
//
|
|
139
|
+
// This field should be ignored, instead the edition should be inherited from
|
|
140
|
+
// Api. This is similar to Field and EnumValue.
|
|
141
|
+
string edition = 8 [deprecated = true];
|
|
120
142
|
}
|
|
121
143
|
|
|
122
144
|
// Declares an API Interface to be included in this interface. The including
|
|
@@ -24,11 +24,11 @@ package google.protobuf.compiler;
|
|
|
24
24
|
option java_package = "com.google.protobuf.compiler";
|
|
25
25
|
option java_outer_classname = "PluginProtos";
|
|
26
26
|
|
|
27
|
+
import "google/protobuf/descriptor.proto";
|
|
28
|
+
|
|
27
29
|
option csharp_namespace = "Google.Protobuf.Compiler";
|
|
28
30
|
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
|
29
31
|
|
|
30
|
-
import "google/protobuf/descriptor.proto";
|
|
31
|
-
|
|
32
32
|
// The version number of protocol compiler.
|
|
33
33
|
message Version {
|
|
34
34
|
optional int32 major = 1;
|
|
@@ -753,8 +753,9 @@ message FieldOptions {
|
|
|
753
753
|
// is a formalization for deprecating fields.
|
|
754
754
|
optional bool deprecated = 3 [default = false];
|
|
755
755
|
|
|
756
|
+
// DEPRECATED. DO NOT USE!
|
|
756
757
|
// For Google-internal migration only. Do not use.
|
|
757
|
-
optional bool weak = 10 [default = false];
|
|
758
|
+
optional bool weak = 10 [default = false, deprecated = true];
|
|
758
759
|
|
|
759
760
|
// Indicate that the field value should not be printed out when using debug
|
|
760
761
|
// formats, e.g. when the field contains sensitive credentials.
|
|
@@ -1181,6 +1182,11 @@ message FeatureSet {
|
|
|
1181
1182
|
full_name: ".pb.python",
|
|
1182
1183
|
type: ".pb.PythonFeatures"
|
|
1183
1184
|
},
|
|
1185
|
+
declaration = {
|
|
1186
|
+
number: 9989,
|
|
1187
|
+
full_name: ".pb.java_mutable",
|
|
1188
|
+
type: ".pb.JavaMutableFeatures"
|
|
1189
|
+
},
|
|
1184
1190
|
declaration = {
|
|
1185
1191
|
number: 9990,
|
|
1186
1192
|
full_name: ".pb.proto1",
|
|
@@ -52,9 +52,12 @@ message GoFeatures {
|
|
|
52
52
|
feature_support = {
|
|
53
53
|
edition_introduced: EDITION_2023,
|
|
54
54
|
},
|
|
55
|
-
edition_defaults = {
|
|
55
|
+
edition_defaults = {
|
|
56
|
+
edition: EDITION_LEGACY,
|
|
57
|
+
value: "API_LEVEL_UNSPECIFIED"
|
|
58
|
+
},
|
|
56
59
|
edition_defaults = { edition: EDITION_2024, value: "API_OPAQUE" }
|
|
57
|
-
|
|
60
|
+
];
|
|
58
61
|
|
|
59
62
|
enum StripEnumPrefix {
|
|
60
63
|
STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
|
|
@@ -117,7 +117,7 @@ message JavaFeatures {
|
|
|
117
117
|
// Whether to nest the generated class in the generated file class. This is
|
|
118
118
|
// only applicable to *top-level* messages, enums, and services.
|
|
119
119
|
optional NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [
|
|
120
|
-
retention =
|
|
120
|
+
retention = RETENTION_RUNTIME,
|
|
121
121
|
targets = TARGET_TYPE_MESSAGE,
|
|
122
122
|
targets = TARGET_TYPE_ENUM,
|
|
123
123
|
targets = TARGET_TYPE_SERVICE,
|
|
@@ -127,4 +127,6 @@ message JavaFeatures {
|
|
|
127
127
|
edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY" },
|
|
128
128
|
edition_defaults = { edition: EDITION_2024, value: "NO" }
|
|
129
129
|
];
|
|
130
|
+
|
|
131
|
+
reserved 6; // field `mutable_nest_in_file_class` removed.
|
|
130
132
|
}
|
|
@@ -44,6 +44,11 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
|
44
44
|
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
|
45
45
|
|
|
46
46
|
// A protocol buffer message type.
|
|
47
|
+
//
|
|
48
|
+
// New usages of this message as an alternative to DescriptorProto are strongly
|
|
49
|
+
// discouraged. This message does not reliability preserve all information
|
|
50
|
+
// necessary to model the schema and preserve semantics. Instead make use of
|
|
51
|
+
// FileDescriptorSet which preserves the necessary information.
|
|
47
52
|
message Type {
|
|
48
53
|
// The fully qualified message name.
|
|
49
54
|
string name = 1;
|
|
@@ -62,6 +67,11 @@ message Type {
|
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
// A single field of a message type.
|
|
70
|
+
//
|
|
71
|
+
// New usages of this message as an alternative to FieldDescriptorProto are
|
|
72
|
+
// strongly discouraged. This message does not reliability preserve all
|
|
73
|
+
// information necessary to model the schema and preserve semantics. Instead
|
|
74
|
+
// make use of FileDescriptorSet which preserves the necessary information.
|
|
65
75
|
message Field {
|
|
66
76
|
// Basic field types.
|
|
67
77
|
enum Kind {
|
|
@@ -142,6 +152,11 @@ message Field {
|
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
// Enum type definition.
|
|
155
|
+
//
|
|
156
|
+
// New usages of this message as an alternative to EnumDescriptorProto are
|
|
157
|
+
// strongly discouraged. This message does not reliability preserve all
|
|
158
|
+
// information necessary to model the schema and preserve semantics. Instead
|
|
159
|
+
// make use of FileDescriptorSet which preserves the necessary information.
|
|
145
160
|
message Enum {
|
|
146
161
|
// Enum type name.
|
|
147
162
|
string name = 1;
|
|
@@ -158,6 +173,11 @@ message Enum {
|
|
|
158
173
|
}
|
|
159
174
|
|
|
160
175
|
// Enum value definition.
|
|
176
|
+
//
|
|
177
|
+
// New usages of this message as an alternative to EnumValueDescriptorProto are
|
|
178
|
+
// strongly discouraged. This message does not reliability preserve all
|
|
179
|
+
// information necessary to model the schema and preserve semantics. Instead
|
|
180
|
+
// make use of FileDescriptorSet which preserves the necessary information.
|
|
161
181
|
message EnumValue {
|
|
162
182
|
// Enum value name.
|
|
163
183
|
string name = 1;
|
|
@@ -169,6 +189,10 @@ message EnumValue {
|
|
|
169
189
|
|
|
170
190
|
// A protocol buffer option, which can be attached to a message, field,
|
|
171
191
|
// enumeration, etc.
|
|
192
|
+
//
|
|
193
|
+
// New usages of this message as an alternative to FileOptions, MessageOptions,
|
|
194
|
+
// FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions
|
|
195
|
+
// are strongly discouraged.
|
|
172
196
|
message Option {
|
|
173
197
|
// The option's name. For protobuf built-in options (options defined in
|
|
174
198
|
// descriptor.proto), this is the short name. For example, `"map_entry"`.
|
package/package.json
CHANGED