@bufbuild/protobuf 2.5.2 → 2.6.1
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/dist/cjs/codegenv2/boot.js +11 -5
- package/dist/cjs/codegenv2/embed.d.ts +1 -1
- package/dist/cjs/codegenv2/embed.js +3 -0
- package/dist/cjs/from-binary.js +17 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/merge.d.ts +13 -0
- package/dist/cjs/merge.js +70 -0
- package/dist/cjs/registry.js +4 -1
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +141 -0
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +76 -3
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +83 -4
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +43 -4
- package/dist/esm/codegenv2/boot.js +11 -5
- package/dist/esm/codegenv2/embed.d.ts +1 -1
- package/dist/esm/codegenv2/embed.js +4 -1
- package/dist/esm/from-binary.js +18 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/merge.d.ts +13 -0
- package/dist/esm/merge.js +67 -0
- package/dist/esm/registry.js +4 -1
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +141 -0
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +74 -1
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +83 -4
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +42 -3
- package/package.json +1 -1
|
@@ -44,11 +44,14 @@ function bootFileDescriptorProto(init) {
|
|
|
44
44
|
syntax: "",
|
|
45
45
|
edition: 0,
|
|
46
46
|
});
|
|
47
|
-
return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], service: [], extension: [] }, init), { messageType: init.messageType.map(bootDescriptorProto), enumType: init.enumType.map(bootEnumDescriptorProto) }));
|
|
47
|
+
return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], optionDependency: [], service: [], extension: [] }, init), { messageType: init.messageType.map(bootDescriptorProto), enumType: init.enumType.map(bootEnumDescriptorProto) }));
|
|
48
48
|
}
|
|
49
49
|
function bootDescriptorProto(init) {
|
|
50
50
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
51
|
-
|
|
51
|
+
const proto = Object.create({
|
|
52
|
+
visibility: 0,
|
|
53
|
+
});
|
|
54
|
+
return Object.assign(proto, {
|
|
52
55
|
$typeName: "google.protobuf.DescriptorProto",
|
|
53
56
|
name: init.name,
|
|
54
57
|
field: (_b = (_a = init.field) === null || _a === void 0 ? void 0 : _a.map(bootFieldDescriptorProto)) !== null && _b !== void 0 ? _b : [],
|
|
@@ -59,7 +62,7 @@ function bootDescriptorProto(init) {
|
|
|
59
62
|
oneofDecl: [],
|
|
60
63
|
reservedRange: [],
|
|
61
64
|
reservedName: [],
|
|
62
|
-
};
|
|
65
|
+
});
|
|
63
66
|
}
|
|
64
67
|
function bootFieldDescriptorProto(init) {
|
|
65
68
|
const proto = Object.create({
|
|
@@ -89,11 +92,14 @@ function bootFieldOptions(init) {
|
|
|
89
92
|
return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldOptions" }, init), { targets: (_a = init.targets) !== null && _a !== void 0 ? _a : [], editionDefaults: (_c = (_b = init.editionDefaults) === null || _b === void 0 ? void 0 : _b.map((e) => (Object.assign({ $typeName: "google.protobuf.FieldOptions.EditionDefault" }, e)))) !== null && _c !== void 0 ? _c : [], uninterpretedOption: [] }));
|
|
90
93
|
}
|
|
91
94
|
function bootEnumDescriptorProto(init) {
|
|
92
|
-
|
|
95
|
+
const proto = Object.create({
|
|
96
|
+
visibility: 0,
|
|
97
|
+
});
|
|
98
|
+
return Object.assign(proto, {
|
|
93
99
|
$typeName: "google.protobuf.EnumDescriptorProto",
|
|
94
100
|
name: init.name,
|
|
95
101
|
reservedName: [],
|
|
96
102
|
reservedRange: [],
|
|
97
103
|
value: init.value.map((e) => (Object.assign({ $typeName: "google.protobuf.EnumValueDescriptorProto" }, e))),
|
|
98
|
-
};
|
|
104
|
+
});
|
|
99
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DescEnum, DescExtension, DescMessage, DescService } from "../descriptors.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type FileDescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js";
|
|
3
3
|
import type { FileDescriptorProtoBoot } from "./boot.js";
|
|
4
4
|
type EmbedUnknown = {
|
|
5
5
|
bootable: false;
|
|
@@ -122,6 +122,7 @@ function createFileDescriptorProtoBoot(proto) {
|
|
|
122
122
|
assert(!proto.dependency.length);
|
|
123
123
|
assert(!proto.publicDependency.length);
|
|
124
124
|
assert(!proto.weakDependency.length);
|
|
125
|
+
assert(!proto.optionDependency.length);
|
|
125
126
|
assert(!proto.service.length);
|
|
126
127
|
assert(!proto.extension.length);
|
|
127
128
|
assert(proto.sourceCodeInfo === undefined);
|
|
@@ -139,6 +140,7 @@ function createDescriptorBoot(proto) {
|
|
|
139
140
|
assert(proto.extension.length == 0);
|
|
140
141
|
assert(!proto.oneofDecl.length);
|
|
141
142
|
assert(!proto.options);
|
|
143
|
+
assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.DescriptorProtoSchema.field.visibility));
|
|
142
144
|
const b = {
|
|
143
145
|
name: proto.name,
|
|
144
146
|
};
|
|
@@ -220,6 +222,7 @@ function createFieldOptionsBoot(proto) {
|
|
|
220
222
|
}
|
|
221
223
|
function createEnumDescriptorBoot(proto) {
|
|
222
224
|
assert(!proto.options);
|
|
225
|
+
assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.EnumDescriptorProtoSchema.field.visibility));
|
|
223
226
|
return {
|
|
224
227
|
name: proto.name,
|
|
225
228
|
value: proto.value.map((v) => {
|
package/dist/cjs/from-binary.js
CHANGED
|
@@ -90,12 +90,28 @@ function readMessage(message, reader, options, delimited, lengthOrDelimitedField
|
|
|
90
90
|
* @private
|
|
91
91
|
*/
|
|
92
92
|
function readField(message, reader, field, wireType, options) {
|
|
93
|
+
var _a;
|
|
93
94
|
switch (field.fieldKind) {
|
|
94
95
|
case "scalar":
|
|
95
96
|
message.set(field, readScalar(reader, field.scalar));
|
|
96
97
|
break;
|
|
97
98
|
case "enum":
|
|
98
|
-
|
|
99
|
+
const val = readScalar(reader, descriptors_js_1.ScalarType.INT32);
|
|
100
|
+
if (field.enum.open) {
|
|
101
|
+
message.set(field, val);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const ok = field.enum.values.some((v) => v.number === val);
|
|
105
|
+
if (ok) {
|
|
106
|
+
message.set(field, val);
|
|
107
|
+
}
|
|
108
|
+
else if (options.readUnknownFields) {
|
|
109
|
+
const data = new binary_encoding_js_1.BinaryWriter().int32(val).finish();
|
|
110
|
+
const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : [];
|
|
111
|
+
unknownFields.push({ no: field.number, wireType, data });
|
|
112
|
+
message.setUnknown(unknownFields);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
99
115
|
break;
|
|
100
116
|
case "message":
|
|
101
117
|
message.set(field, readMessageField(reader, options, field, message.get(field)));
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -13,5 +13,6 @@ export { fromBinary, mergeFromBinary } from "./from-binary.js";
|
|
|
13
13
|
export type { BinaryReadOptions } from "./from-binary.js";
|
|
14
14
|
export * from "./to-json.js";
|
|
15
15
|
export * from "./from-json.js";
|
|
16
|
+
export * from "./merge.js";
|
|
16
17
|
export { hasExtension, getExtension, setExtension, clearExtension, hasOption, getOption, } from "./extensions.js";
|
|
17
18
|
export * from "./proto-int64.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "fromBinary", { enumerable: true, get: function (
|
|
|
43
43
|
Object.defineProperty(exports, "mergeFromBinary", { enumerable: true, get: function () { return from_binary_js_1.mergeFromBinary; } });
|
|
44
44
|
__exportStar(require("./to-json.js"), exports);
|
|
45
45
|
__exportStar(require("./from-json.js"), exports);
|
|
46
|
+
__exportStar(require("./merge.js"), exports);
|
|
46
47
|
var extensions_js_1 = require("./extensions.js");
|
|
47
48
|
Object.defineProperty(exports, "hasExtension", { enumerable: true, get: function () { return extensions_js_1.hasExtension; } });
|
|
48
49
|
Object.defineProperty(exports, "getExtension", { enumerable: true, get: function () { return extensions_js_1.getExtension; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MessageShape } from "./types.js";
|
|
2
|
+
import type { DescMessage } from "./descriptors.js";
|
|
3
|
+
/**
|
|
4
|
+
* Merge message `source` into message `target`, following Protobuf semantics.
|
|
5
|
+
*
|
|
6
|
+
* This is the same as serializing the source message, then deserializing it
|
|
7
|
+
* into the target message via `mergeFromBinary()`, with one difference:
|
|
8
|
+
* While serialization will create a copy of all values, `merge()` will copy
|
|
9
|
+
* the reference for `bytes` and messages.
|
|
10
|
+
*
|
|
11
|
+
* Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages
|
|
12
|
+
*/
|
|
13
|
+
export declare function merge<Desc extends DescMessage>(schema: Desc, target: MessageShape<Desc>, source: MessageShape<Desc>): void;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.merge = merge;
|
|
17
|
+
const reflect_js_1 = require("./reflect/reflect.js");
|
|
18
|
+
/**
|
|
19
|
+
* Merge message `source` into message `target`, following Protobuf semantics.
|
|
20
|
+
*
|
|
21
|
+
* This is the same as serializing the source message, then deserializing it
|
|
22
|
+
* into the target message via `mergeFromBinary()`, with one difference:
|
|
23
|
+
* While serialization will create a copy of all values, `merge()` will copy
|
|
24
|
+
* the reference for `bytes` and messages.
|
|
25
|
+
*
|
|
26
|
+
* Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages
|
|
27
|
+
*/
|
|
28
|
+
function merge(schema, target, source) {
|
|
29
|
+
reflectMerge((0, reflect_js_1.reflect)(schema, target), (0, reflect_js_1.reflect)(schema, source));
|
|
30
|
+
}
|
|
31
|
+
function reflectMerge(target, source) {
|
|
32
|
+
var _a;
|
|
33
|
+
var _b;
|
|
34
|
+
const sourceUnknown = source.message.$unknown;
|
|
35
|
+
if (sourceUnknown !== undefined && sourceUnknown.length > 0) {
|
|
36
|
+
(_a = (_b = target.message).$unknown) !== null && _a !== void 0 ? _a : (_b.$unknown = []);
|
|
37
|
+
target.message.$unknown.push(...sourceUnknown);
|
|
38
|
+
}
|
|
39
|
+
for (const f of target.fields) {
|
|
40
|
+
if (!source.isSet(f)) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
switch (f.fieldKind) {
|
|
44
|
+
case "scalar":
|
|
45
|
+
case "enum":
|
|
46
|
+
target.set(f, source.get(f));
|
|
47
|
+
break;
|
|
48
|
+
case "message":
|
|
49
|
+
if (target.isSet(f)) {
|
|
50
|
+
reflectMerge(target.get(f), source.get(f));
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
target.set(f, source.get(f));
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case "list":
|
|
57
|
+
const list = target.get(f);
|
|
58
|
+
for (const e of source.get(f)) {
|
|
59
|
+
list.add(e);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case "map":
|
|
63
|
+
const map = target.get(f);
|
|
64
|
+
for (const [k, v] of source.get(f)) {
|
|
65
|
+
map.set(k, v);
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
package/dist/cjs/registry.js
CHANGED
|
@@ -229,7 +229,7 @@ const DELIMITED = 2;
|
|
|
229
229
|
const OPEN = 1;
|
|
230
230
|
// biome-ignore format: want this to read well
|
|
231
231
|
// bootstrap-inject defaults: EDITION_PROTO2 to EDITION_2023: export const minimumEdition: SupportedEdition = $minimumEdition, maximumEdition: SupportedEdition = $maximumEdition;
|
|
232
|
-
// generated from protoc
|
|
232
|
+
// generated from protoc v31.1
|
|
233
233
|
exports.minimumEdition = 998, exports.maximumEdition = 1000;
|
|
234
234
|
const featureDefaults = {
|
|
235
235
|
// EDITION_PROTO2
|
|
@@ -241,6 +241,7 @@ const featureDefaults = {
|
|
|
241
241
|
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
242
242
|
jsonFormat: 2, // LEGACY_BEST_EFFORT,
|
|
243
243
|
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
244
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
244
245
|
},
|
|
245
246
|
// EDITION_PROTO3
|
|
246
247
|
999: {
|
|
@@ -251,6 +252,7 @@ const featureDefaults = {
|
|
|
251
252
|
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
252
253
|
jsonFormat: 1, // ALLOW,
|
|
253
254
|
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
255
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
254
256
|
},
|
|
255
257
|
// EDITION_2023
|
|
256
258
|
1000: {
|
|
@@ -261,6 +263,7 @@ const featureDefaults = {
|
|
|
261
263
|
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
262
264
|
jsonFormat: 1, // ALLOW,
|
|
263
265
|
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
266
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
264
267
|
},
|
|
265
268
|
};
|
|
266
269
|
/**
|
|
@@ -72,6 +72,13 @@ export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto">
|
|
|
72
72
|
* @generated from field: repeated int32 weak_dependency = 11;
|
|
73
73
|
*/
|
|
74
74
|
weakDependency: number[];
|
|
75
|
+
/**
|
|
76
|
+
* Names of files imported by this file purely for the purpose of providing
|
|
77
|
+
* option extensions. These are excluded from the dependency list above.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: repeated string option_dependency = 15;
|
|
80
|
+
*/
|
|
81
|
+
optionDependency: string[];
|
|
75
82
|
/**
|
|
76
83
|
* All top-level definitions in this file.
|
|
77
84
|
*
|
|
@@ -162,6 +169,13 @@ export type FileDescriptorProtoJson = {
|
|
|
162
169
|
* @generated from field: repeated int32 weak_dependency = 11;
|
|
163
170
|
*/
|
|
164
171
|
weakDependency?: number[];
|
|
172
|
+
/**
|
|
173
|
+
* Names of files imported by this file purely for the purpose of providing
|
|
174
|
+
* option extensions. These are excluded from the dependency list above.
|
|
175
|
+
*
|
|
176
|
+
* @generated from field: repeated string option_dependency = 15;
|
|
177
|
+
*/
|
|
178
|
+
optionDependency?: string[];
|
|
165
179
|
/**
|
|
166
180
|
* All top-level definitions in this file.
|
|
167
181
|
*
|
|
@@ -271,6 +285,12 @@ export type DescriptorProto = Message<"google.protobuf.DescriptorProto"> & {
|
|
|
271
285
|
* @generated from field: repeated string reserved_name = 10;
|
|
272
286
|
*/
|
|
273
287
|
reservedName: string[];
|
|
288
|
+
/**
|
|
289
|
+
* Support for `export` and `local` keywords on enums.
|
|
290
|
+
*
|
|
291
|
+
* @generated from field: optional google.protobuf.SymbolVisibility visibility = 11;
|
|
292
|
+
*/
|
|
293
|
+
visibility: SymbolVisibility;
|
|
274
294
|
};
|
|
275
295
|
/**
|
|
276
296
|
* Describes a message type.
|
|
@@ -321,6 +341,12 @@ export type DescriptorProtoJson = {
|
|
|
321
341
|
* @generated from field: repeated string reserved_name = 10;
|
|
322
342
|
*/
|
|
323
343
|
reservedName?: string[];
|
|
344
|
+
/**
|
|
345
|
+
* Support for `export` and `local` keywords on enums.
|
|
346
|
+
*
|
|
347
|
+
* @generated from field: optional google.protobuf.SymbolVisibility visibility = 11;
|
|
348
|
+
*/
|
|
349
|
+
visibility?: SymbolVisibilityJson;
|
|
324
350
|
};
|
|
325
351
|
/**
|
|
326
352
|
* Describes the message google.protobuf.DescriptorProto.
|
|
@@ -1028,6 +1054,12 @@ export type EnumDescriptorProto = Message<"google.protobuf.EnumDescriptorProto">
|
|
|
1028
1054
|
* @generated from field: repeated string reserved_name = 5;
|
|
1029
1055
|
*/
|
|
1030
1056
|
reservedName: string[];
|
|
1057
|
+
/**
|
|
1058
|
+
* Support for `export` and `local` keywords on enums.
|
|
1059
|
+
*
|
|
1060
|
+
* @generated from field: optional google.protobuf.SymbolVisibility visibility = 6;
|
|
1061
|
+
*/
|
|
1062
|
+
visibility: SymbolVisibility;
|
|
1031
1063
|
};
|
|
1032
1064
|
/**
|
|
1033
1065
|
* Describes an enum type.
|
|
@@ -1062,6 +1094,12 @@ export type EnumDescriptorProtoJson = {
|
|
|
1062
1094
|
* @generated from field: repeated string reserved_name = 5;
|
|
1063
1095
|
*/
|
|
1064
1096
|
reservedName?: string[];
|
|
1097
|
+
/**
|
|
1098
|
+
* Support for `export` and `local` keywords on enums.
|
|
1099
|
+
*
|
|
1100
|
+
* @generated from field: optional google.protobuf.SymbolVisibility visibility = 6;
|
|
1101
|
+
*/
|
|
1102
|
+
visibility?: SymbolVisibilityJson;
|
|
1065
1103
|
};
|
|
1066
1104
|
/**
|
|
1067
1105
|
* Describes the message google.protobuf.EnumDescriptorProto.
|
|
@@ -3052,6 +3090,10 @@ export type FeatureSet = Message<"google.protobuf.FeatureSet"> & {
|
|
|
3052
3090
|
* @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
|
|
3053
3091
|
*/
|
|
3054
3092
|
enforceNamingStyle: FeatureSet_EnforceNamingStyle;
|
|
3093
|
+
/**
|
|
3094
|
+
* @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8;
|
|
3095
|
+
*/
|
|
3096
|
+
defaultSymbolVisibility: FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
|
|
3055
3097
|
};
|
|
3056
3098
|
/**
|
|
3057
3099
|
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
@@ -3092,6 +3134,10 @@ export type FeatureSetJson = {
|
|
|
3092
3134
|
* @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
|
|
3093
3135
|
*/
|
|
3094
3136
|
enforceNamingStyle?: FeatureSet_EnforceNamingStyleJson;
|
|
3137
|
+
/**
|
|
3138
|
+
* @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8;
|
|
3139
|
+
*/
|
|
3140
|
+
defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson;
|
|
3095
3141
|
};
|
|
3096
3142
|
/**
|
|
3097
3143
|
* Describes the message google.protobuf.FeatureSet.
|
|
@@ -3100,6 +3146,64 @@ export type FeatureSetJson = {
|
|
|
3100
3146
|
export declare const FeatureSetSchema: GenMessage<FeatureSet, {
|
|
3101
3147
|
jsonType: FeatureSetJson;
|
|
3102
3148
|
}>;
|
|
3149
|
+
/**
|
|
3150
|
+
* @generated from message google.protobuf.FeatureSet.VisibilityFeature
|
|
3151
|
+
*/
|
|
3152
|
+
export type FeatureSet_VisibilityFeature = Message<"google.protobuf.FeatureSet.VisibilityFeature"> & {};
|
|
3153
|
+
/**
|
|
3154
|
+
* @generated from message google.protobuf.FeatureSet.VisibilityFeature
|
|
3155
|
+
*/
|
|
3156
|
+
export type FeatureSet_VisibilityFeatureJson = {};
|
|
3157
|
+
/**
|
|
3158
|
+
* Describes the message google.protobuf.FeatureSet.VisibilityFeature.
|
|
3159
|
+
* Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message.
|
|
3160
|
+
*/
|
|
3161
|
+
export declare const FeatureSet_VisibilityFeatureSchema: GenMessage<FeatureSet_VisibilityFeature, {
|
|
3162
|
+
jsonType: FeatureSet_VisibilityFeatureJson;
|
|
3163
|
+
}>;
|
|
3164
|
+
/**
|
|
3165
|
+
* @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
3166
|
+
*/
|
|
3167
|
+
export declare enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility {
|
|
3168
|
+
/**
|
|
3169
|
+
* @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
|
|
3170
|
+
*/
|
|
3171
|
+
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
|
|
3172
|
+
/**
|
|
3173
|
+
* Default pre-EDITION_2024, all UNSET visibility are export.
|
|
3174
|
+
*
|
|
3175
|
+
* @generated from enum value: EXPORT_ALL = 1;
|
|
3176
|
+
*/
|
|
3177
|
+
EXPORT_ALL = 1,
|
|
3178
|
+
/**
|
|
3179
|
+
* All top-level symbols default to export, nested default to local.
|
|
3180
|
+
*
|
|
3181
|
+
* @generated from enum value: EXPORT_TOP_LEVEL = 2;
|
|
3182
|
+
*/
|
|
3183
|
+
EXPORT_TOP_LEVEL = 2,
|
|
3184
|
+
/**
|
|
3185
|
+
* All symbols default to local.
|
|
3186
|
+
*
|
|
3187
|
+
* @generated from enum value: LOCAL_ALL = 3;
|
|
3188
|
+
*/
|
|
3189
|
+
LOCAL_ALL = 3,
|
|
3190
|
+
/**
|
|
3191
|
+
* All symbols local by default. Nested types cannot be exported.
|
|
3192
|
+
* With special case caveat for message { enum {} reserved 1 to max; }
|
|
3193
|
+
* This is the recommended setting for new protos.
|
|
3194
|
+
*
|
|
3195
|
+
* @generated from enum value: STRICT = 4;
|
|
3196
|
+
*/
|
|
3197
|
+
STRICT = 4
|
|
3198
|
+
}
|
|
3199
|
+
/**
|
|
3200
|
+
* @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
3201
|
+
*/
|
|
3202
|
+
export type FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" | "EXPORT_ALL" | "EXPORT_TOP_LEVEL" | "LOCAL_ALL" | "STRICT";
|
|
3203
|
+
/**
|
|
3204
|
+
* Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility.
|
|
3205
|
+
*/
|
|
3206
|
+
export declare const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema: GenEnum<FeatureSet_VisibilityFeature_DefaultSymbolVisibility, FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson>;
|
|
3103
3207
|
/**
|
|
3104
3208
|
* @generated from enum google.protobuf.FeatureSet.FieldPresence
|
|
3105
3209
|
*/
|
|
@@ -3976,3 +4080,40 @@ export type EditionJson = "EDITION_UNKNOWN" | "EDITION_LEGACY" | "EDITION_PROTO2
|
|
|
3976
4080
|
* Describes the enum google.protobuf.Edition.
|
|
3977
4081
|
*/
|
|
3978
4082
|
export declare const EditionSchema: GenEnum<Edition, EditionJson>;
|
|
4083
|
+
/**
|
|
4084
|
+
* Describes the 'visibility' of a symbol with respect to the proto import
|
|
4085
|
+
* system. Symbols can only be imported when the visibility rules do not prevent
|
|
4086
|
+
* it (ex: local symbols cannot be imported). Visibility modifiers can only set
|
|
4087
|
+
* on `message` and `enum` as they are the only types available to be referenced
|
|
4088
|
+
* from other files.
|
|
4089
|
+
*
|
|
4090
|
+
* @generated from enum google.protobuf.SymbolVisibility
|
|
4091
|
+
*/
|
|
4092
|
+
export declare enum SymbolVisibility {
|
|
4093
|
+
/**
|
|
4094
|
+
* @generated from enum value: VISIBILITY_UNSET = 0;
|
|
4095
|
+
*/
|
|
4096
|
+
VISIBILITY_UNSET = 0,
|
|
4097
|
+
/**
|
|
4098
|
+
* @generated from enum value: VISIBILITY_LOCAL = 1;
|
|
4099
|
+
*/
|
|
4100
|
+
VISIBILITY_LOCAL = 1,
|
|
4101
|
+
/**
|
|
4102
|
+
* @generated from enum value: VISIBILITY_EXPORT = 2;
|
|
4103
|
+
*/
|
|
4104
|
+
VISIBILITY_EXPORT = 2
|
|
4105
|
+
}
|
|
4106
|
+
/**
|
|
4107
|
+
* Describes the 'visibility' of a symbol with respect to the proto import
|
|
4108
|
+
* system. Symbols can only be imported when the visibility rules do not prevent
|
|
4109
|
+
* it (ex: local symbols cannot be imported). Visibility modifiers can only set
|
|
4110
|
+
* on `message` and `enum` as they are the only types available to be referenced
|
|
4111
|
+
* from other files.
|
|
4112
|
+
*
|
|
4113
|
+
* @generated from enum google.protobuf.SymbolVisibility
|
|
4114
|
+
*/
|
|
4115
|
+
export type SymbolVisibilityJson = "VISIBILITY_UNSET" | "VISIBILITY_LOCAL" | "VISIBILITY_EXPORT";
|
|
4116
|
+
/**
|
|
4117
|
+
* Describes the enum google.protobuf.SymbolVisibility.
|
|
4118
|
+
*/
|
|
4119
|
+
export declare const SymbolVisibilitySchema: GenEnum<SymbolVisibility, SymbolVisibilityJson>;
|