@bufbuild/protobuf 0.0.2-alpha.2 → 0.0.4
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 +5 -2
- package/dist/cjs/descriptor-registry.js +13 -0
- package/dist/cjs/google/protobuf/any_pb.js +19 -39
- package/dist/cjs/google/protobuf/api_pb.js +28 -48
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +32 -67
- package/dist/cjs/google/protobuf/descriptor_pb.js +161 -187
- package/dist/cjs/google/protobuf/duration_pb.js +21 -41
- package/dist/cjs/google/protobuf/empty_pb.js +16 -36
- package/dist/cjs/google/protobuf/field_mask_pb.js +17 -37
- package/dist/cjs/google/protobuf/source_context_pb.js +16 -36
- package/dist/cjs/google/protobuf/struct_pb.js +31 -51
- package/dist/cjs/google/protobuf/timestamp_pb.js +20 -40
- package/dist/cjs/google/protobuf/type_pb.js +43 -63
- package/dist/cjs/google/protobuf/wrappers_pb.js +76 -105
- package/dist/cjs/index-runtime.js +42 -0
- package/dist/cjs/index-wkt.js +42 -0
- package/dist/cjs/index.js +4 -38
- package/dist/cjs/private/json-format-common.js +3 -3
- package/dist/cjs/private/util-common.js +1 -1
- package/dist/cjs/proto-base64.js +138 -0
- package/dist/esm/descriptor-registry.js +13 -0
- package/dist/esm/google/protobuf/any_pb.js +14 -34
- package/dist/esm/google/protobuf/api_pb.js +11 -31
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +11 -46
- package/dist/esm/google/protobuf/descriptor_pb.js +14 -40
- package/dist/esm/google/protobuf/duration_pb.js +11 -31
- package/dist/esm/google/protobuf/empty_pb.js +11 -31
- package/dist/esm/google/protobuf/field_mask_pb.js +11 -31
- package/dist/esm/google/protobuf/source_context_pb.js +11 -31
- package/dist/esm/google/protobuf/struct_pb.js +11 -31
- package/dist/esm/google/protobuf/timestamp_pb.js +11 -31
- package/dist/esm/google/protobuf/type_pb.js +11 -31
- package/dist/esm/google/protobuf/wrappers_pb.js +11 -40
- package/dist/esm/index-runtime.js +25 -0
- package/dist/esm/index-wkt.js +26 -0
- package/dist/esm/index.js +4 -24
- package/dist/esm/private/json-format-common.js +3 -3
- package/dist/esm/private/util-common.js +1 -1
- package/dist/esm/proto-base64.js +135 -0
- package/dist/types/descriptor-registry.d.ts +7 -0
- package/dist/types/google/protobuf/any_pb.d.ts +5 -5
- package/dist/types/google/protobuf/api_pb.d.ts +2 -2
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/dist/types/google/protobuf/descriptor_pb.d.ts +18 -5
- package/dist/types/google/protobuf/duration_pb.d.ts +2 -2
- package/dist/types/google/protobuf/empty_pb.d.ts +2 -2
- package/dist/types/google/protobuf/field_mask_pb.d.ts +2 -2
- package/dist/types/google/protobuf/source_context_pb.d.ts +2 -2
- package/dist/types/google/protobuf/struct_pb.d.ts +2 -2
- package/dist/types/google/protobuf/timestamp_pb.d.ts +2 -2
- package/dist/types/google/protobuf/type_pb.d.ts +2 -2
- package/dist/types/google/protobuf/wrappers_pb.d.ts +2 -2
- package/dist/types/index-runtime.d.ts +19 -0
- package/dist/types/index-wkt.d.ts +12 -0
- package/dist/types/index.d.ts +2 -30
- package/dist/types/message-type.d.ts +2 -1
- package/dist/types/message.d.ts +4 -6
- package/dist/types/private/util.d.ts +2 -2
- package/dist/types/proto-base64.d.ts +26 -0
- package/package.json +3 -2
- package/dist/cjs/private/base64.js +0 -132
- package/dist/esm/private/base64.js +0 -127
- package/dist/types/private/base64.d.ts +0 -18
|
@@ -1,61 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.2-alpha.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
4
|
-
// @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
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
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
// distribution.
|
|
20
|
-
// * Neither the name of Google Inc. nor the names of its
|
|
21
|
-
// contributors may be used to endorse or promote products derived from
|
|
22
|
-
// this software without specific prior written permission.
|
|
23
|
-
//
|
|
24
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
25
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
26
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
27
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
28
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
29
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
30
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
31
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
32
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
33
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
-
// Author: kenton@google.com (Kenton Varda)
|
|
36
|
-
// Based on original Protocol Buffers design by
|
|
37
|
-
// Sanjay Ghemawat, Jeff Dean, and others.
|
|
38
|
-
//
|
|
39
|
-
// The messages in this file describe the definitions found in .proto files.
|
|
40
|
-
// A valid .proto file can be translated directly to a FileDescriptorProto
|
|
41
|
-
// without any other information (e.g. without reading its imports).
|
|
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.
|
|
42
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
16
|
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = void 0;
|
|
44
|
-
const
|
|
17
|
+
const index_runtime_js_1 = require("../../index-runtime.js");
|
|
45
18
|
/**
|
|
46
19
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
47
20
|
* files it parses.
|
|
48
21
|
*
|
|
49
22
|
* @generated from message google.protobuf.FileDescriptorSet
|
|
50
23
|
*/
|
|
51
|
-
class FileDescriptorSet extends
|
|
24
|
+
class FileDescriptorSet extends index_runtime_js_1.Message {
|
|
52
25
|
constructor(data) {
|
|
53
26
|
super();
|
|
54
27
|
/**
|
|
55
28
|
* @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
|
|
56
29
|
*/
|
|
57
30
|
this.file = [];
|
|
58
|
-
|
|
31
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
59
32
|
}
|
|
60
33
|
static fromBinary(bytes, options) {
|
|
61
34
|
return new FileDescriptorSet().fromBinary(bytes, options);
|
|
@@ -67,13 +40,13 @@ class FileDescriptorSet extends index_js_1.Message {
|
|
|
67
40
|
return new FileDescriptorSet().fromJsonString(jsonString, options);
|
|
68
41
|
}
|
|
69
42
|
static equals(a, b) {
|
|
70
|
-
return
|
|
43
|
+
return index_runtime_js_1.proto2.util.equals(FileDescriptorSet, a, b);
|
|
71
44
|
}
|
|
72
45
|
}
|
|
73
46
|
exports.FileDescriptorSet = FileDescriptorSet;
|
|
74
|
-
FileDescriptorSet.runtime =
|
|
47
|
+
FileDescriptorSet.runtime = index_runtime_js_1.proto2;
|
|
75
48
|
FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
|
|
76
|
-
FileDescriptorSet.fields =
|
|
49
|
+
FileDescriptorSet.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
77
50
|
{ no: 1, name: "file", kind: "message", T: FileDescriptorProto, repeated: true },
|
|
78
51
|
]);
|
|
79
52
|
/**
|
|
@@ -81,7 +54,7 @@ FileDescriptorSet.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
81
54
|
*
|
|
82
55
|
* @generated from message google.protobuf.FileDescriptorProto
|
|
83
56
|
*/
|
|
84
|
-
class FileDescriptorProto extends
|
|
57
|
+
class FileDescriptorProto extends index_runtime_js_1.Message {
|
|
85
58
|
constructor(data) {
|
|
86
59
|
super();
|
|
87
60
|
/**
|
|
@@ -121,7 +94,7 @@ class FileDescriptorProto extends index_js_1.Message {
|
|
|
121
94
|
* @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
|
|
122
95
|
*/
|
|
123
96
|
this.extension = [];
|
|
124
|
-
|
|
97
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
125
98
|
}
|
|
126
99
|
static fromBinary(bytes, options) {
|
|
127
100
|
return new FileDescriptorProto().fromBinary(bytes, options);
|
|
@@ -133,13 +106,13 @@ class FileDescriptorProto extends index_js_1.Message {
|
|
|
133
106
|
return new FileDescriptorProto().fromJsonString(jsonString, options);
|
|
134
107
|
}
|
|
135
108
|
static equals(a, b) {
|
|
136
|
-
return
|
|
109
|
+
return index_runtime_js_1.proto2.util.equals(FileDescriptorProto, a, b);
|
|
137
110
|
}
|
|
138
111
|
}
|
|
139
112
|
exports.FileDescriptorProto = FileDescriptorProto;
|
|
140
|
-
FileDescriptorProto.runtime =
|
|
113
|
+
FileDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
141
114
|
FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
|
|
142
|
-
FileDescriptorProto.fields =
|
|
115
|
+
FileDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
143
116
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
144
117
|
{ no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
145
118
|
{ no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
@@ -158,7 +131,7 @@ FileDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
158
131
|
*
|
|
159
132
|
* @generated from message google.protobuf.DescriptorProto
|
|
160
133
|
*/
|
|
161
|
-
class DescriptorProto extends
|
|
134
|
+
class DescriptorProto extends index_runtime_js_1.Message {
|
|
162
135
|
constructor(data) {
|
|
163
136
|
super();
|
|
164
137
|
/**
|
|
@@ -196,7 +169,7 @@ class DescriptorProto extends index_js_1.Message {
|
|
|
196
169
|
* @generated from field: repeated string reserved_name = 10;
|
|
197
170
|
*/
|
|
198
171
|
this.reservedName = [];
|
|
199
|
-
|
|
172
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
200
173
|
}
|
|
201
174
|
static fromBinary(bytes, options) {
|
|
202
175
|
return new DescriptorProto().fromBinary(bytes, options);
|
|
@@ -208,13 +181,13 @@ class DescriptorProto extends index_js_1.Message {
|
|
|
208
181
|
return new DescriptorProto().fromJsonString(jsonString, options);
|
|
209
182
|
}
|
|
210
183
|
static equals(a, b) {
|
|
211
|
-
return
|
|
184
|
+
return index_runtime_js_1.proto2.util.equals(DescriptorProto, a, b);
|
|
212
185
|
}
|
|
213
186
|
}
|
|
214
187
|
exports.DescriptorProto = DescriptorProto;
|
|
215
|
-
DescriptorProto.runtime =
|
|
188
|
+
DescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
216
189
|
DescriptorProto.typeName = "google.protobuf.DescriptorProto";
|
|
217
|
-
DescriptorProto.fields =
|
|
190
|
+
DescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
218
191
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
219
192
|
{ no: 2, name: "field", kind: "message", T: FieldDescriptorProto, repeated: true },
|
|
220
193
|
{ no: 6, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
|
|
@@ -229,10 +202,10 @@ DescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
229
202
|
/**
|
|
230
203
|
* @generated from message google.protobuf.DescriptorProto.ExtensionRange
|
|
231
204
|
*/
|
|
232
|
-
class DescriptorProto_ExtensionRange extends
|
|
205
|
+
class DescriptorProto_ExtensionRange extends index_runtime_js_1.Message {
|
|
233
206
|
constructor(data) {
|
|
234
207
|
super();
|
|
235
|
-
|
|
208
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
236
209
|
}
|
|
237
210
|
static fromBinary(bytes, options) {
|
|
238
211
|
return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
|
|
@@ -244,13 +217,13 @@ class DescriptorProto_ExtensionRange extends index_js_1.Message {
|
|
|
244
217
|
return new DescriptorProto_ExtensionRange().fromJsonString(jsonString, options);
|
|
245
218
|
}
|
|
246
219
|
static equals(a, b) {
|
|
247
|
-
return
|
|
220
|
+
return index_runtime_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
|
|
248
221
|
}
|
|
249
222
|
}
|
|
250
223
|
exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
|
|
251
|
-
DescriptorProto_ExtensionRange.runtime =
|
|
224
|
+
DescriptorProto_ExtensionRange.runtime = index_runtime_js_1.proto2;
|
|
252
225
|
DescriptorProto_ExtensionRange.typeName = "google.protobuf.DescriptorProto.ExtensionRange";
|
|
253
|
-
DescriptorProto_ExtensionRange.fields =
|
|
226
|
+
DescriptorProto_ExtensionRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
254
227
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
255
228
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
256
229
|
{ no: 3, name: "options", kind: "message", T: ExtensionRangeOptions, opt: true },
|
|
@@ -262,10 +235,10 @@ DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(() =
|
|
|
262
235
|
*
|
|
263
236
|
* @generated from message google.protobuf.DescriptorProto.ReservedRange
|
|
264
237
|
*/
|
|
265
|
-
class DescriptorProto_ReservedRange extends
|
|
238
|
+
class DescriptorProto_ReservedRange extends index_runtime_js_1.Message {
|
|
266
239
|
constructor(data) {
|
|
267
240
|
super();
|
|
268
|
-
|
|
241
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
269
242
|
}
|
|
270
243
|
static fromBinary(bytes, options) {
|
|
271
244
|
return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
|
|
@@ -277,20 +250,20 @@ class DescriptorProto_ReservedRange extends index_js_1.Message {
|
|
|
277
250
|
return new DescriptorProto_ReservedRange().fromJsonString(jsonString, options);
|
|
278
251
|
}
|
|
279
252
|
static equals(a, b) {
|
|
280
|
-
return
|
|
253
|
+
return index_runtime_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
|
|
281
254
|
}
|
|
282
255
|
}
|
|
283
256
|
exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
|
|
284
|
-
DescriptorProto_ReservedRange.runtime =
|
|
257
|
+
DescriptorProto_ReservedRange.runtime = index_runtime_js_1.proto2;
|
|
285
258
|
DescriptorProto_ReservedRange.typeName = "google.protobuf.DescriptorProto.ReservedRange";
|
|
286
|
-
DescriptorProto_ReservedRange.fields =
|
|
259
|
+
DescriptorProto_ReservedRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
287
260
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
288
261
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
289
262
|
]);
|
|
290
263
|
/**
|
|
291
264
|
* @generated from message google.protobuf.ExtensionRangeOptions
|
|
292
265
|
*/
|
|
293
|
-
class ExtensionRangeOptions extends
|
|
266
|
+
class ExtensionRangeOptions extends index_runtime_js_1.Message {
|
|
294
267
|
constructor(data) {
|
|
295
268
|
super();
|
|
296
269
|
/**
|
|
@@ -299,7 +272,7 @@ class ExtensionRangeOptions extends index_js_1.Message {
|
|
|
299
272
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
300
273
|
*/
|
|
301
274
|
this.uninterpretedOption = [];
|
|
302
|
-
|
|
275
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
303
276
|
}
|
|
304
277
|
static fromBinary(bytes, options) {
|
|
305
278
|
return new ExtensionRangeOptions().fromBinary(bytes, options);
|
|
@@ -311,13 +284,13 @@ class ExtensionRangeOptions extends index_js_1.Message {
|
|
|
311
284
|
return new ExtensionRangeOptions().fromJsonString(jsonString, options);
|
|
312
285
|
}
|
|
313
286
|
static equals(a, b) {
|
|
314
|
-
return
|
|
287
|
+
return index_runtime_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
|
|
315
288
|
}
|
|
316
289
|
}
|
|
317
290
|
exports.ExtensionRangeOptions = ExtensionRangeOptions;
|
|
318
|
-
ExtensionRangeOptions.runtime =
|
|
291
|
+
ExtensionRangeOptions.runtime = index_runtime_js_1.proto2;
|
|
319
292
|
ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
|
|
320
|
-
ExtensionRangeOptions.fields =
|
|
293
|
+
ExtensionRangeOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
321
294
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
322
295
|
]);
|
|
323
296
|
/**
|
|
@@ -325,10 +298,10 @@ ExtensionRangeOptions.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
325
298
|
*
|
|
326
299
|
* @generated from message google.protobuf.FieldDescriptorProto
|
|
327
300
|
*/
|
|
328
|
-
class FieldDescriptorProto extends
|
|
301
|
+
class FieldDescriptorProto extends index_runtime_js_1.Message {
|
|
329
302
|
constructor(data) {
|
|
330
303
|
super();
|
|
331
|
-
|
|
304
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
332
305
|
}
|
|
333
306
|
static fromBinary(bytes, options) {
|
|
334
307
|
return new FieldDescriptorProto().fromBinary(bytes, options);
|
|
@@ -340,17 +313,17 @@ class FieldDescriptorProto extends index_js_1.Message {
|
|
|
340
313
|
return new FieldDescriptorProto().fromJsonString(jsonString, options);
|
|
341
314
|
}
|
|
342
315
|
static equals(a, b) {
|
|
343
|
-
return
|
|
316
|
+
return index_runtime_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
|
|
344
317
|
}
|
|
345
318
|
}
|
|
346
319
|
exports.FieldDescriptorProto = FieldDescriptorProto;
|
|
347
|
-
FieldDescriptorProto.runtime =
|
|
320
|
+
FieldDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
348
321
|
FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
|
|
349
|
-
FieldDescriptorProto.fields =
|
|
322
|
+
FieldDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
350
323
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
351
324
|
{ no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
352
|
-
{ no: 4, name: "label", kind: "enum", T:
|
|
353
|
-
{ no: 5, name: "type", kind: "enum", T:
|
|
325
|
+
{ no: 4, name: "label", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FieldDescriptorProto_Label), opt: true },
|
|
326
|
+
{ no: 5, name: "type", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FieldDescriptorProto_Type), opt: true },
|
|
354
327
|
{ no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
355
328
|
{ no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
356
329
|
{ no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -460,7 +433,7 @@ var FieldDescriptorProto_Type;
|
|
|
460
433
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
|
|
461
434
|
})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {}));
|
|
462
435
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
|
|
463
|
-
|
|
436
|
+
index_runtime_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
|
|
464
437
|
{ no: 1, name: "TYPE_DOUBLE" },
|
|
465
438
|
{ no: 2, name: "TYPE_FLOAT" },
|
|
466
439
|
{ no: 3, name: "TYPE_INT64" },
|
|
@@ -501,7 +474,7 @@ var FieldDescriptorProto_Label;
|
|
|
501
474
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
|
|
502
475
|
})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {}));
|
|
503
476
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
|
|
504
|
-
|
|
477
|
+
index_runtime_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
|
|
505
478
|
{ no: 1, name: "LABEL_OPTIONAL" },
|
|
506
479
|
{ no: 2, name: "LABEL_REQUIRED" },
|
|
507
480
|
{ no: 3, name: "LABEL_REPEATED" },
|
|
@@ -511,10 +484,10 @@ index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.
|
|
|
511
484
|
*
|
|
512
485
|
* @generated from message google.protobuf.OneofDescriptorProto
|
|
513
486
|
*/
|
|
514
|
-
class OneofDescriptorProto extends
|
|
487
|
+
class OneofDescriptorProto extends index_runtime_js_1.Message {
|
|
515
488
|
constructor(data) {
|
|
516
489
|
super();
|
|
517
|
-
|
|
490
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
518
491
|
}
|
|
519
492
|
static fromBinary(bytes, options) {
|
|
520
493
|
return new OneofDescriptorProto().fromBinary(bytes, options);
|
|
@@ -526,13 +499,13 @@ class OneofDescriptorProto extends index_js_1.Message {
|
|
|
526
499
|
return new OneofDescriptorProto().fromJsonString(jsonString, options);
|
|
527
500
|
}
|
|
528
501
|
static equals(a, b) {
|
|
529
|
-
return
|
|
502
|
+
return index_runtime_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
|
|
530
503
|
}
|
|
531
504
|
}
|
|
532
505
|
exports.OneofDescriptorProto = OneofDescriptorProto;
|
|
533
|
-
OneofDescriptorProto.runtime =
|
|
506
|
+
OneofDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
534
507
|
OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
|
|
535
|
-
OneofDescriptorProto.fields =
|
|
508
|
+
OneofDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
536
509
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
537
510
|
{ no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
|
|
538
511
|
]);
|
|
@@ -541,7 +514,7 @@ OneofDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
541
514
|
*
|
|
542
515
|
* @generated from message google.protobuf.EnumDescriptorProto
|
|
543
516
|
*/
|
|
544
|
-
class EnumDescriptorProto extends
|
|
517
|
+
class EnumDescriptorProto extends index_runtime_js_1.Message {
|
|
545
518
|
constructor(data) {
|
|
546
519
|
super();
|
|
547
520
|
/**
|
|
@@ -563,7 +536,7 @@ class EnumDescriptorProto extends index_js_1.Message {
|
|
|
563
536
|
* @generated from field: repeated string reserved_name = 5;
|
|
564
537
|
*/
|
|
565
538
|
this.reservedName = [];
|
|
566
|
-
|
|
539
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
567
540
|
}
|
|
568
541
|
static fromBinary(bytes, options) {
|
|
569
542
|
return new EnumDescriptorProto().fromBinary(bytes, options);
|
|
@@ -575,13 +548,13 @@ class EnumDescriptorProto extends index_js_1.Message {
|
|
|
575
548
|
return new EnumDescriptorProto().fromJsonString(jsonString, options);
|
|
576
549
|
}
|
|
577
550
|
static equals(a, b) {
|
|
578
|
-
return
|
|
551
|
+
return index_runtime_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
|
|
579
552
|
}
|
|
580
553
|
}
|
|
581
554
|
exports.EnumDescriptorProto = EnumDescriptorProto;
|
|
582
|
-
EnumDescriptorProto.runtime =
|
|
555
|
+
EnumDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
583
556
|
EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
|
|
584
|
-
EnumDescriptorProto.fields =
|
|
557
|
+
EnumDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
585
558
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
586
559
|
{ no: 2, name: "value", kind: "message", T: EnumValueDescriptorProto, repeated: true },
|
|
587
560
|
{ no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
|
|
@@ -598,10 +571,10 @@ EnumDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
598
571
|
*
|
|
599
572
|
* @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
|
|
600
573
|
*/
|
|
601
|
-
class EnumDescriptorProto_EnumReservedRange extends
|
|
574
|
+
class EnumDescriptorProto_EnumReservedRange extends index_runtime_js_1.Message {
|
|
602
575
|
constructor(data) {
|
|
603
576
|
super();
|
|
604
|
-
|
|
577
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
605
578
|
}
|
|
606
579
|
static fromBinary(bytes, options) {
|
|
607
580
|
return new EnumDescriptorProto_EnumReservedRange().fromBinary(bytes, options);
|
|
@@ -613,13 +586,13 @@ class EnumDescriptorProto_EnumReservedRange extends index_js_1.Message {
|
|
|
613
586
|
return new EnumDescriptorProto_EnumReservedRange().fromJsonString(jsonString, options);
|
|
614
587
|
}
|
|
615
588
|
static equals(a, b) {
|
|
616
|
-
return
|
|
589
|
+
return index_runtime_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
|
|
617
590
|
}
|
|
618
591
|
}
|
|
619
592
|
exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange;
|
|
620
|
-
EnumDescriptorProto_EnumReservedRange.runtime =
|
|
593
|
+
EnumDescriptorProto_EnumReservedRange.runtime = index_runtime_js_1.proto2;
|
|
621
594
|
EnumDescriptorProto_EnumReservedRange.typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
|
|
622
|
-
EnumDescriptorProto_EnumReservedRange.fields =
|
|
595
|
+
EnumDescriptorProto_EnumReservedRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
623
596
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
624
597
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
625
598
|
]);
|
|
@@ -628,10 +601,10 @@ EnumDescriptorProto_EnumReservedRange.fields = index_js_1.proto2.util.newFieldLi
|
|
|
628
601
|
*
|
|
629
602
|
* @generated from message google.protobuf.EnumValueDescriptorProto
|
|
630
603
|
*/
|
|
631
|
-
class EnumValueDescriptorProto extends
|
|
604
|
+
class EnumValueDescriptorProto extends index_runtime_js_1.Message {
|
|
632
605
|
constructor(data) {
|
|
633
606
|
super();
|
|
634
|
-
|
|
607
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
635
608
|
}
|
|
636
609
|
static fromBinary(bytes, options) {
|
|
637
610
|
return new EnumValueDescriptorProto().fromBinary(bytes, options);
|
|
@@ -643,13 +616,13 @@ class EnumValueDescriptorProto extends index_js_1.Message {
|
|
|
643
616
|
return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
|
|
644
617
|
}
|
|
645
618
|
static equals(a, b) {
|
|
646
|
-
return
|
|
619
|
+
return index_runtime_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
|
|
647
620
|
}
|
|
648
621
|
}
|
|
649
622
|
exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
|
|
650
|
-
EnumValueDescriptorProto.runtime =
|
|
623
|
+
EnumValueDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
651
624
|
EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
|
|
652
|
-
EnumValueDescriptorProto.fields =
|
|
625
|
+
EnumValueDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
653
626
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
654
627
|
{ no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
655
628
|
{ no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
|
|
@@ -659,14 +632,14 @@ EnumValueDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
659
632
|
*
|
|
660
633
|
* @generated from message google.protobuf.ServiceDescriptorProto
|
|
661
634
|
*/
|
|
662
|
-
class ServiceDescriptorProto extends
|
|
635
|
+
class ServiceDescriptorProto extends index_runtime_js_1.Message {
|
|
663
636
|
constructor(data) {
|
|
664
637
|
super();
|
|
665
638
|
/**
|
|
666
639
|
* @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
|
|
667
640
|
*/
|
|
668
641
|
this.method = [];
|
|
669
|
-
|
|
642
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
670
643
|
}
|
|
671
644
|
static fromBinary(bytes, options) {
|
|
672
645
|
return new ServiceDescriptorProto().fromBinary(bytes, options);
|
|
@@ -678,13 +651,13 @@ class ServiceDescriptorProto extends index_js_1.Message {
|
|
|
678
651
|
return new ServiceDescriptorProto().fromJsonString(jsonString, options);
|
|
679
652
|
}
|
|
680
653
|
static equals(a, b) {
|
|
681
|
-
return
|
|
654
|
+
return index_runtime_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
|
|
682
655
|
}
|
|
683
656
|
}
|
|
684
657
|
exports.ServiceDescriptorProto = ServiceDescriptorProto;
|
|
685
|
-
ServiceDescriptorProto.runtime =
|
|
658
|
+
ServiceDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
686
659
|
ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
|
|
687
|
-
ServiceDescriptorProto.fields =
|
|
660
|
+
ServiceDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
688
661
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
689
662
|
{ no: 2, name: "method", kind: "message", T: MethodDescriptorProto, repeated: true },
|
|
690
663
|
{ no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
|
|
@@ -694,10 +667,10 @@ ServiceDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
694
667
|
*
|
|
695
668
|
* @generated from message google.protobuf.MethodDescriptorProto
|
|
696
669
|
*/
|
|
697
|
-
class MethodDescriptorProto extends
|
|
670
|
+
class MethodDescriptorProto extends index_runtime_js_1.Message {
|
|
698
671
|
constructor(data) {
|
|
699
672
|
super();
|
|
700
|
-
|
|
673
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
701
674
|
}
|
|
702
675
|
static fromBinary(bytes, options) {
|
|
703
676
|
return new MethodDescriptorProto().fromBinary(bytes, options);
|
|
@@ -709,13 +682,13 @@ class MethodDescriptorProto extends index_js_1.Message {
|
|
|
709
682
|
return new MethodDescriptorProto().fromJsonString(jsonString, options);
|
|
710
683
|
}
|
|
711
684
|
static equals(a, b) {
|
|
712
|
-
return
|
|
685
|
+
return index_runtime_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
|
|
713
686
|
}
|
|
714
687
|
}
|
|
715
688
|
exports.MethodDescriptorProto = MethodDescriptorProto;
|
|
716
|
-
MethodDescriptorProto.runtime =
|
|
689
|
+
MethodDescriptorProto.runtime = index_runtime_js_1.proto2;
|
|
717
690
|
MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
|
|
718
|
-
MethodDescriptorProto.fields =
|
|
691
|
+
MethodDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
719
692
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
720
693
|
{ no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
721
694
|
{ no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -726,7 +699,7 @@ MethodDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
726
699
|
/**
|
|
727
700
|
* @generated from message google.protobuf.FileOptions
|
|
728
701
|
*/
|
|
729
|
-
class FileOptions extends
|
|
702
|
+
class FileOptions extends index_runtime_js_1.Message {
|
|
730
703
|
constructor(data) {
|
|
731
704
|
super();
|
|
732
705
|
/**
|
|
@@ -736,7 +709,7 @@ class FileOptions extends index_js_1.Message {
|
|
|
736
709
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
737
710
|
*/
|
|
738
711
|
this.uninterpretedOption = [];
|
|
739
|
-
|
|
712
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
740
713
|
}
|
|
741
714
|
static fromBinary(bytes, options) {
|
|
742
715
|
return new FileOptions().fromBinary(bytes, options);
|
|
@@ -748,19 +721,19 @@ class FileOptions extends index_js_1.Message {
|
|
|
748
721
|
return new FileOptions().fromJsonString(jsonString, options);
|
|
749
722
|
}
|
|
750
723
|
static equals(a, b) {
|
|
751
|
-
return
|
|
724
|
+
return index_runtime_js_1.proto2.util.equals(FileOptions, a, b);
|
|
752
725
|
}
|
|
753
726
|
}
|
|
754
727
|
exports.FileOptions = FileOptions;
|
|
755
|
-
FileOptions.runtime =
|
|
728
|
+
FileOptions.runtime = index_runtime_js_1.proto2;
|
|
756
729
|
FileOptions.typeName = "google.protobuf.FileOptions";
|
|
757
|
-
FileOptions.fields =
|
|
730
|
+
FileOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
758
731
|
{ no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
759
732
|
{ no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
760
733
|
{ no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
761
734
|
{ no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
762
735
|
{ no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
763
|
-
{ no: 9, name: "optimize_for", kind: "enum", T:
|
|
736
|
+
{ no: 9, name: "optimize_for", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
|
|
764
737
|
{ no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
765
738
|
{ no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
766
739
|
{ no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
@@ -806,7 +779,7 @@ var FileOptions_OptimizeMode;
|
|
|
806
779
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
|
|
807
780
|
})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {}));
|
|
808
781
|
// Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
|
|
809
|
-
|
|
782
|
+
index_runtime_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
|
|
810
783
|
{ no: 1, name: "SPEED" },
|
|
811
784
|
{ no: 2, name: "CODE_SIZE" },
|
|
812
785
|
{ no: 3, name: "LITE_RUNTIME" },
|
|
@@ -814,7 +787,7 @@ index_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.Fi
|
|
|
814
787
|
/**
|
|
815
788
|
* @generated from message google.protobuf.MessageOptions
|
|
816
789
|
*/
|
|
817
|
-
class MessageOptions extends
|
|
790
|
+
class MessageOptions extends index_runtime_js_1.Message {
|
|
818
791
|
constructor(data) {
|
|
819
792
|
super();
|
|
820
793
|
/**
|
|
@@ -823,7 +796,7 @@ class MessageOptions extends index_js_1.Message {
|
|
|
823
796
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
824
797
|
*/
|
|
825
798
|
this.uninterpretedOption = [];
|
|
826
|
-
|
|
799
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
827
800
|
}
|
|
828
801
|
static fromBinary(bytes, options) {
|
|
829
802
|
return new MessageOptions().fromBinary(bytes, options);
|
|
@@ -835,13 +808,13 @@ class MessageOptions extends index_js_1.Message {
|
|
|
835
808
|
return new MessageOptions().fromJsonString(jsonString, options);
|
|
836
809
|
}
|
|
837
810
|
static equals(a, b) {
|
|
838
|
-
return
|
|
811
|
+
return index_runtime_js_1.proto2.util.equals(MessageOptions, a, b);
|
|
839
812
|
}
|
|
840
813
|
}
|
|
841
814
|
exports.MessageOptions = MessageOptions;
|
|
842
|
-
MessageOptions.runtime =
|
|
815
|
+
MessageOptions.runtime = index_runtime_js_1.proto2;
|
|
843
816
|
MessageOptions.typeName = "google.protobuf.MessageOptions";
|
|
844
|
-
MessageOptions.fields =
|
|
817
|
+
MessageOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
845
818
|
{ no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
846
819
|
{ no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
847
820
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
@@ -851,7 +824,7 @@ MessageOptions.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
851
824
|
/**
|
|
852
825
|
* @generated from message google.protobuf.FieldOptions
|
|
853
826
|
*/
|
|
854
|
-
class FieldOptions extends
|
|
827
|
+
class FieldOptions extends index_runtime_js_1.Message {
|
|
855
828
|
constructor(data) {
|
|
856
829
|
super();
|
|
857
830
|
/**
|
|
@@ -860,7 +833,7 @@ class FieldOptions extends index_js_1.Message {
|
|
|
860
833
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
861
834
|
*/
|
|
862
835
|
this.uninterpretedOption = [];
|
|
863
|
-
|
|
836
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
864
837
|
}
|
|
865
838
|
static fromBinary(bytes, options) {
|
|
866
839
|
return new FieldOptions().fromBinary(bytes, options);
|
|
@@ -872,17 +845,18 @@ class FieldOptions extends index_js_1.Message {
|
|
|
872
845
|
return new FieldOptions().fromJsonString(jsonString, options);
|
|
873
846
|
}
|
|
874
847
|
static equals(a, b) {
|
|
875
|
-
return
|
|
848
|
+
return index_runtime_js_1.proto2.util.equals(FieldOptions, a, b);
|
|
876
849
|
}
|
|
877
850
|
}
|
|
878
851
|
exports.FieldOptions = FieldOptions;
|
|
879
|
-
FieldOptions.runtime =
|
|
852
|
+
FieldOptions.runtime = index_runtime_js_1.proto2;
|
|
880
853
|
FieldOptions.typeName = "google.protobuf.FieldOptions";
|
|
881
|
-
FieldOptions.fields =
|
|
882
|
-
{ no: 1, name: "ctype", kind: "enum", T:
|
|
854
|
+
FieldOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
855
|
+
{ no: 1, name: "ctype", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FieldOptions_CType), opt: true, default: FieldOptions_CType.STRING },
|
|
883
856
|
{ no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
884
|
-
{ no: 6, name: "jstype", kind: "enum", T:
|
|
857
|
+
{ no: 6, name: "jstype", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
|
|
885
858
|
{ no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
859
|
+
{ no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
886
860
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
887
861
|
{ no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
888
862
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
@@ -908,7 +882,7 @@ var FieldOptions_CType;
|
|
|
908
882
|
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
909
883
|
})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {}));
|
|
910
884
|
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
|
|
911
|
-
|
|
885
|
+
index_runtime_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
|
|
912
886
|
{ no: 0, name: "STRING" },
|
|
913
887
|
{ no: 1, name: "CORD" },
|
|
914
888
|
{ no: 2, name: "STRING_PIECE" },
|
|
@@ -938,7 +912,7 @@ var FieldOptions_JSType;
|
|
|
938
912
|
FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
|
|
939
913
|
})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {}));
|
|
940
914
|
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
|
|
941
|
-
|
|
915
|
+
index_runtime_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
|
|
942
916
|
{ no: 0, name: "JS_NORMAL" },
|
|
943
917
|
{ no: 1, name: "JS_STRING" },
|
|
944
918
|
{ no: 2, name: "JS_NUMBER" },
|
|
@@ -946,7 +920,7 @@ index_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOp
|
|
|
946
920
|
/**
|
|
947
921
|
* @generated from message google.protobuf.OneofOptions
|
|
948
922
|
*/
|
|
949
|
-
class OneofOptions extends
|
|
923
|
+
class OneofOptions extends index_runtime_js_1.Message {
|
|
950
924
|
constructor(data) {
|
|
951
925
|
super();
|
|
952
926
|
/**
|
|
@@ -955,7 +929,7 @@ class OneofOptions extends index_js_1.Message {
|
|
|
955
929
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
956
930
|
*/
|
|
957
931
|
this.uninterpretedOption = [];
|
|
958
|
-
|
|
932
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
959
933
|
}
|
|
960
934
|
static fromBinary(bytes, options) {
|
|
961
935
|
return new OneofOptions().fromBinary(bytes, options);
|
|
@@ -967,19 +941,19 @@ class OneofOptions extends index_js_1.Message {
|
|
|
967
941
|
return new OneofOptions().fromJsonString(jsonString, options);
|
|
968
942
|
}
|
|
969
943
|
static equals(a, b) {
|
|
970
|
-
return
|
|
944
|
+
return index_runtime_js_1.proto2.util.equals(OneofOptions, a, b);
|
|
971
945
|
}
|
|
972
946
|
}
|
|
973
947
|
exports.OneofOptions = OneofOptions;
|
|
974
|
-
OneofOptions.runtime =
|
|
948
|
+
OneofOptions.runtime = index_runtime_js_1.proto2;
|
|
975
949
|
OneofOptions.typeName = "google.protobuf.OneofOptions";
|
|
976
|
-
OneofOptions.fields =
|
|
950
|
+
OneofOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
977
951
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
978
952
|
]);
|
|
979
953
|
/**
|
|
980
954
|
* @generated from message google.protobuf.EnumOptions
|
|
981
955
|
*/
|
|
982
|
-
class EnumOptions extends
|
|
956
|
+
class EnumOptions extends index_runtime_js_1.Message {
|
|
983
957
|
constructor(data) {
|
|
984
958
|
super();
|
|
985
959
|
/**
|
|
@@ -988,7 +962,7 @@ class EnumOptions extends index_js_1.Message {
|
|
|
988
962
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
989
963
|
*/
|
|
990
964
|
this.uninterpretedOption = [];
|
|
991
|
-
|
|
965
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
992
966
|
}
|
|
993
967
|
static fromBinary(bytes, options) {
|
|
994
968
|
return new EnumOptions().fromBinary(bytes, options);
|
|
@@ -1000,13 +974,13 @@ class EnumOptions extends index_js_1.Message {
|
|
|
1000
974
|
return new EnumOptions().fromJsonString(jsonString, options);
|
|
1001
975
|
}
|
|
1002
976
|
static equals(a, b) {
|
|
1003
|
-
return
|
|
977
|
+
return index_runtime_js_1.proto2.util.equals(EnumOptions, a, b);
|
|
1004
978
|
}
|
|
1005
979
|
}
|
|
1006
980
|
exports.EnumOptions = EnumOptions;
|
|
1007
|
-
EnumOptions.runtime =
|
|
981
|
+
EnumOptions.runtime = index_runtime_js_1.proto2;
|
|
1008
982
|
EnumOptions.typeName = "google.protobuf.EnumOptions";
|
|
1009
|
-
EnumOptions.fields =
|
|
983
|
+
EnumOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1010
984
|
{ no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1011
985
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1012
986
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
@@ -1014,7 +988,7 @@ EnumOptions.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
1014
988
|
/**
|
|
1015
989
|
* @generated from message google.protobuf.EnumValueOptions
|
|
1016
990
|
*/
|
|
1017
|
-
class EnumValueOptions extends
|
|
991
|
+
class EnumValueOptions extends index_runtime_js_1.Message {
|
|
1018
992
|
constructor(data) {
|
|
1019
993
|
super();
|
|
1020
994
|
/**
|
|
@@ -1023,7 +997,7 @@ class EnumValueOptions extends index_js_1.Message {
|
|
|
1023
997
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1024
998
|
*/
|
|
1025
999
|
this.uninterpretedOption = [];
|
|
1026
|
-
|
|
1000
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1027
1001
|
}
|
|
1028
1002
|
static fromBinary(bytes, options) {
|
|
1029
1003
|
return new EnumValueOptions().fromBinary(bytes, options);
|
|
@@ -1035,20 +1009,20 @@ class EnumValueOptions extends index_js_1.Message {
|
|
|
1035
1009
|
return new EnumValueOptions().fromJsonString(jsonString, options);
|
|
1036
1010
|
}
|
|
1037
1011
|
static equals(a, b) {
|
|
1038
|
-
return
|
|
1012
|
+
return index_runtime_js_1.proto2.util.equals(EnumValueOptions, a, b);
|
|
1039
1013
|
}
|
|
1040
1014
|
}
|
|
1041
1015
|
exports.EnumValueOptions = EnumValueOptions;
|
|
1042
|
-
EnumValueOptions.runtime =
|
|
1016
|
+
EnumValueOptions.runtime = index_runtime_js_1.proto2;
|
|
1043
1017
|
EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
|
|
1044
|
-
EnumValueOptions.fields =
|
|
1018
|
+
EnumValueOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1045
1019
|
{ no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1046
1020
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1047
1021
|
]);
|
|
1048
1022
|
/**
|
|
1049
1023
|
* @generated from message google.protobuf.ServiceOptions
|
|
1050
1024
|
*/
|
|
1051
|
-
class ServiceOptions extends
|
|
1025
|
+
class ServiceOptions extends index_runtime_js_1.Message {
|
|
1052
1026
|
constructor(data) {
|
|
1053
1027
|
super();
|
|
1054
1028
|
/**
|
|
@@ -1057,7 +1031,7 @@ class ServiceOptions extends index_js_1.Message {
|
|
|
1057
1031
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1058
1032
|
*/
|
|
1059
1033
|
this.uninterpretedOption = [];
|
|
1060
|
-
|
|
1034
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1061
1035
|
}
|
|
1062
1036
|
static fromBinary(bytes, options) {
|
|
1063
1037
|
return new ServiceOptions().fromBinary(bytes, options);
|
|
@@ -1069,20 +1043,20 @@ class ServiceOptions extends index_js_1.Message {
|
|
|
1069
1043
|
return new ServiceOptions().fromJsonString(jsonString, options);
|
|
1070
1044
|
}
|
|
1071
1045
|
static equals(a, b) {
|
|
1072
|
-
return
|
|
1046
|
+
return index_runtime_js_1.proto2.util.equals(ServiceOptions, a, b);
|
|
1073
1047
|
}
|
|
1074
1048
|
}
|
|
1075
1049
|
exports.ServiceOptions = ServiceOptions;
|
|
1076
|
-
ServiceOptions.runtime =
|
|
1050
|
+
ServiceOptions.runtime = index_runtime_js_1.proto2;
|
|
1077
1051
|
ServiceOptions.typeName = "google.protobuf.ServiceOptions";
|
|
1078
|
-
ServiceOptions.fields =
|
|
1052
|
+
ServiceOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1079
1053
|
{ no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1080
1054
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1081
1055
|
]);
|
|
1082
1056
|
/**
|
|
1083
1057
|
* @generated from message google.protobuf.MethodOptions
|
|
1084
1058
|
*/
|
|
1085
|
-
class MethodOptions extends
|
|
1059
|
+
class MethodOptions extends index_runtime_js_1.Message {
|
|
1086
1060
|
constructor(data) {
|
|
1087
1061
|
super();
|
|
1088
1062
|
/**
|
|
@@ -1091,7 +1065,7 @@ class MethodOptions extends index_js_1.Message {
|
|
|
1091
1065
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1092
1066
|
*/
|
|
1093
1067
|
this.uninterpretedOption = [];
|
|
1094
|
-
|
|
1068
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1095
1069
|
}
|
|
1096
1070
|
static fromBinary(bytes, options) {
|
|
1097
1071
|
return new MethodOptions().fromBinary(bytes, options);
|
|
@@ -1103,15 +1077,15 @@ class MethodOptions extends index_js_1.Message {
|
|
|
1103
1077
|
return new MethodOptions().fromJsonString(jsonString, options);
|
|
1104
1078
|
}
|
|
1105
1079
|
static equals(a, b) {
|
|
1106
|
-
return
|
|
1080
|
+
return index_runtime_js_1.proto2.util.equals(MethodOptions, a, b);
|
|
1107
1081
|
}
|
|
1108
1082
|
}
|
|
1109
1083
|
exports.MethodOptions = MethodOptions;
|
|
1110
|
-
MethodOptions.runtime =
|
|
1084
|
+
MethodOptions.runtime = index_runtime_js_1.proto2;
|
|
1111
1085
|
MethodOptions.typeName = "google.protobuf.MethodOptions";
|
|
1112
|
-
MethodOptions.fields =
|
|
1086
|
+
MethodOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1113
1087
|
{ no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1114
|
-
{ no: 34, name: "idempotency_level", kind: "enum", T:
|
|
1088
|
+
{ no: 34, name: "idempotency_level", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
|
|
1115
1089
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1116
1090
|
]);
|
|
1117
1091
|
/**
|
|
@@ -1141,7 +1115,7 @@ var MethodOptions_IdempotencyLevel;
|
|
|
1141
1115
|
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
|
|
1142
1116
|
})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {}));
|
|
1143
1117
|
// Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
|
|
1144
|
-
|
|
1118
|
+
index_runtime_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
|
|
1145
1119
|
{ no: 0, name: "IDEMPOTENCY_UNKNOWN" },
|
|
1146
1120
|
{ no: 1, name: "NO_SIDE_EFFECTS" },
|
|
1147
1121
|
{ no: 2, name: "IDEMPOTENT" },
|
|
@@ -1156,14 +1130,14 @@ index_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.proto
|
|
|
1156
1130
|
*
|
|
1157
1131
|
* @generated from message google.protobuf.UninterpretedOption
|
|
1158
1132
|
*/
|
|
1159
|
-
class UninterpretedOption extends
|
|
1133
|
+
class UninterpretedOption extends index_runtime_js_1.Message {
|
|
1160
1134
|
constructor(data) {
|
|
1161
1135
|
super();
|
|
1162
1136
|
/**
|
|
1163
1137
|
* @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
|
|
1164
1138
|
*/
|
|
1165
1139
|
this.name = [];
|
|
1166
|
-
|
|
1140
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1167
1141
|
}
|
|
1168
1142
|
static fromBinary(bytes, options) {
|
|
1169
1143
|
return new UninterpretedOption().fromBinary(bytes, options);
|
|
@@ -1175,13 +1149,13 @@ class UninterpretedOption extends index_js_1.Message {
|
|
|
1175
1149
|
return new UninterpretedOption().fromJsonString(jsonString, options);
|
|
1176
1150
|
}
|
|
1177
1151
|
static equals(a, b) {
|
|
1178
|
-
return
|
|
1152
|
+
return index_runtime_js_1.proto2.util.equals(UninterpretedOption, a, b);
|
|
1179
1153
|
}
|
|
1180
1154
|
}
|
|
1181
1155
|
exports.UninterpretedOption = UninterpretedOption;
|
|
1182
|
-
UninterpretedOption.runtime =
|
|
1156
|
+
UninterpretedOption.runtime = index_runtime_js_1.proto2;
|
|
1183
1157
|
UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
|
|
1184
|
-
UninterpretedOption.fields =
|
|
1158
|
+
UninterpretedOption.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1185
1159
|
{ no: 2, name: "name", kind: "message", T: UninterpretedOption_NamePart, repeated: true },
|
|
1186
1160
|
{ no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1187
1161
|
{ no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
@@ -1199,10 +1173,10 @@ UninterpretedOption.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
1199
1173
|
*
|
|
1200
1174
|
* @generated from message google.protobuf.UninterpretedOption.NamePart
|
|
1201
1175
|
*/
|
|
1202
|
-
class UninterpretedOption_NamePart extends
|
|
1176
|
+
class UninterpretedOption_NamePart extends index_runtime_js_1.Message {
|
|
1203
1177
|
constructor(data) {
|
|
1204
1178
|
super();
|
|
1205
|
-
|
|
1179
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1206
1180
|
}
|
|
1207
1181
|
static fromBinary(bytes, options) {
|
|
1208
1182
|
return new UninterpretedOption_NamePart().fromBinary(bytes, options);
|
|
@@ -1214,13 +1188,13 @@ class UninterpretedOption_NamePart extends index_js_1.Message {
|
|
|
1214
1188
|
return new UninterpretedOption_NamePart().fromJsonString(jsonString, options);
|
|
1215
1189
|
}
|
|
1216
1190
|
static equals(a, b) {
|
|
1217
|
-
return
|
|
1191
|
+
return index_runtime_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
|
|
1218
1192
|
}
|
|
1219
1193
|
}
|
|
1220
1194
|
exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
|
|
1221
|
-
UninterpretedOption_NamePart.runtime =
|
|
1195
|
+
UninterpretedOption_NamePart.runtime = index_runtime_js_1.proto2;
|
|
1222
1196
|
UninterpretedOption_NamePart.typeName = "google.protobuf.UninterpretedOption.NamePart";
|
|
1223
|
-
UninterpretedOption_NamePart.fields =
|
|
1197
|
+
UninterpretedOption_NamePart.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1224
1198
|
{ no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1225
1199
|
{ no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1226
1200
|
]);
|
|
@@ -1230,7 +1204,7 @@ UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(() =>
|
|
|
1230
1204
|
*
|
|
1231
1205
|
* @generated from message google.protobuf.SourceCodeInfo
|
|
1232
1206
|
*/
|
|
1233
|
-
class SourceCodeInfo extends
|
|
1207
|
+
class SourceCodeInfo extends index_runtime_js_1.Message {
|
|
1234
1208
|
constructor(data) {
|
|
1235
1209
|
super();
|
|
1236
1210
|
/**
|
|
@@ -1281,7 +1255,7 @@ class SourceCodeInfo extends index_js_1.Message {
|
|
|
1281
1255
|
* @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
|
|
1282
1256
|
*/
|
|
1283
1257
|
this.location = [];
|
|
1284
|
-
|
|
1258
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1285
1259
|
}
|
|
1286
1260
|
static fromBinary(bytes, options) {
|
|
1287
1261
|
return new SourceCodeInfo().fromBinary(bytes, options);
|
|
@@ -1293,19 +1267,19 @@ class SourceCodeInfo extends index_js_1.Message {
|
|
|
1293
1267
|
return new SourceCodeInfo().fromJsonString(jsonString, options);
|
|
1294
1268
|
}
|
|
1295
1269
|
static equals(a, b) {
|
|
1296
|
-
return
|
|
1270
|
+
return index_runtime_js_1.proto2.util.equals(SourceCodeInfo, a, b);
|
|
1297
1271
|
}
|
|
1298
1272
|
}
|
|
1299
1273
|
exports.SourceCodeInfo = SourceCodeInfo;
|
|
1300
|
-
SourceCodeInfo.runtime =
|
|
1274
|
+
SourceCodeInfo.runtime = index_runtime_js_1.proto2;
|
|
1301
1275
|
SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
|
|
1302
|
-
SourceCodeInfo.fields =
|
|
1276
|
+
SourceCodeInfo.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1303
1277
|
{ no: 1, name: "location", kind: "message", T: SourceCodeInfo_Location, repeated: true },
|
|
1304
1278
|
]);
|
|
1305
1279
|
/**
|
|
1306
1280
|
* @generated from message google.protobuf.SourceCodeInfo.Location
|
|
1307
1281
|
*/
|
|
1308
|
-
class SourceCodeInfo_Location extends
|
|
1282
|
+
class SourceCodeInfo_Location extends index_runtime_js_1.Message {
|
|
1309
1283
|
constructor(data) {
|
|
1310
1284
|
super();
|
|
1311
1285
|
/**
|
|
@@ -1313,8 +1287,8 @@ class SourceCodeInfo_Location extends index_js_1.Message {
|
|
|
1313
1287
|
* location.
|
|
1314
1288
|
*
|
|
1315
1289
|
* Each element is a field number or an index. They form a path from
|
|
1316
|
-
* the root FileDescriptorProto to the place where the definition.
|
|
1317
|
-
* example, this path:
|
|
1290
|
+
* the root FileDescriptorProto to the place where the definition occurs.
|
|
1291
|
+
* For example, this path:
|
|
1318
1292
|
* [ 4, 3, 2, 7, 1 ]
|
|
1319
1293
|
* refers to:
|
|
1320
1294
|
* file.message_type(3) // 4, 3
|
|
@@ -1350,7 +1324,7 @@ class SourceCodeInfo_Location extends index_js_1.Message {
|
|
|
1350
1324
|
* @generated from field: repeated string leading_detached_comments = 6;
|
|
1351
1325
|
*/
|
|
1352
1326
|
this.leadingDetachedComments = [];
|
|
1353
|
-
|
|
1327
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1354
1328
|
}
|
|
1355
1329
|
static fromBinary(bytes, options) {
|
|
1356
1330
|
return new SourceCodeInfo_Location().fromBinary(bytes, options);
|
|
@@ -1362,13 +1336,13 @@ class SourceCodeInfo_Location extends index_js_1.Message {
|
|
|
1362
1336
|
return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
|
|
1363
1337
|
}
|
|
1364
1338
|
static equals(a, b) {
|
|
1365
|
-
return
|
|
1339
|
+
return index_runtime_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
|
|
1366
1340
|
}
|
|
1367
1341
|
}
|
|
1368
1342
|
exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
|
|
1369
|
-
SourceCodeInfo_Location.runtime =
|
|
1343
|
+
SourceCodeInfo_Location.runtime = index_runtime_js_1.proto2;
|
|
1370
1344
|
SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
|
|
1371
|
-
SourceCodeInfo_Location.fields =
|
|
1345
|
+
SourceCodeInfo_Location.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1372
1346
|
{ no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1373
1347
|
{ no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1374
1348
|
{ no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -1382,7 +1356,7 @@ SourceCodeInfo_Location.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
1382
1356
|
*
|
|
1383
1357
|
* @generated from message google.protobuf.GeneratedCodeInfo
|
|
1384
1358
|
*/
|
|
1385
|
-
class GeneratedCodeInfo extends
|
|
1359
|
+
class GeneratedCodeInfo extends index_runtime_js_1.Message {
|
|
1386
1360
|
constructor(data) {
|
|
1387
1361
|
super();
|
|
1388
1362
|
/**
|
|
@@ -1392,7 +1366,7 @@ class GeneratedCodeInfo extends index_js_1.Message {
|
|
|
1392
1366
|
* @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
|
|
1393
1367
|
*/
|
|
1394
1368
|
this.annotation = [];
|
|
1395
|
-
|
|
1369
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1396
1370
|
}
|
|
1397
1371
|
static fromBinary(bytes, options) {
|
|
1398
1372
|
return new GeneratedCodeInfo().fromBinary(bytes, options);
|
|
@@ -1404,19 +1378,19 @@ class GeneratedCodeInfo extends index_js_1.Message {
|
|
|
1404
1378
|
return new GeneratedCodeInfo().fromJsonString(jsonString, options);
|
|
1405
1379
|
}
|
|
1406
1380
|
static equals(a, b) {
|
|
1407
|
-
return
|
|
1381
|
+
return index_runtime_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
|
|
1408
1382
|
}
|
|
1409
1383
|
}
|
|
1410
1384
|
exports.GeneratedCodeInfo = GeneratedCodeInfo;
|
|
1411
|
-
GeneratedCodeInfo.runtime =
|
|
1385
|
+
GeneratedCodeInfo.runtime = index_runtime_js_1.proto2;
|
|
1412
1386
|
GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
|
|
1413
|
-
GeneratedCodeInfo.fields =
|
|
1387
|
+
GeneratedCodeInfo.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1414
1388
|
{ no: 1, name: "annotation", kind: "message", T: GeneratedCodeInfo_Annotation, repeated: true },
|
|
1415
1389
|
]);
|
|
1416
1390
|
/**
|
|
1417
1391
|
* @generated from message google.protobuf.GeneratedCodeInfo.Annotation
|
|
1418
1392
|
*/
|
|
1419
|
-
class GeneratedCodeInfo_Annotation extends
|
|
1393
|
+
class GeneratedCodeInfo_Annotation extends index_runtime_js_1.Message {
|
|
1420
1394
|
constructor(data) {
|
|
1421
1395
|
super();
|
|
1422
1396
|
/**
|
|
@@ -1426,7 +1400,7 @@ class GeneratedCodeInfo_Annotation extends index_js_1.Message {
|
|
|
1426
1400
|
* @generated from field: repeated int32 path = 1 [packed = true];
|
|
1427
1401
|
*/
|
|
1428
1402
|
this.path = [];
|
|
1429
|
-
|
|
1403
|
+
index_runtime_js_1.proto2.util.initPartial(data, this);
|
|
1430
1404
|
}
|
|
1431
1405
|
static fromBinary(bytes, options) {
|
|
1432
1406
|
return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
|
|
@@ -1438,13 +1412,13 @@ class GeneratedCodeInfo_Annotation extends index_js_1.Message {
|
|
|
1438
1412
|
return new GeneratedCodeInfo_Annotation().fromJsonString(jsonString, options);
|
|
1439
1413
|
}
|
|
1440
1414
|
static equals(a, b) {
|
|
1441
|
-
return
|
|
1415
|
+
return index_runtime_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
|
|
1442
1416
|
}
|
|
1443
1417
|
}
|
|
1444
1418
|
exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
|
|
1445
|
-
GeneratedCodeInfo_Annotation.runtime =
|
|
1419
|
+
GeneratedCodeInfo_Annotation.runtime = index_runtime_js_1.proto2;
|
|
1446
1420
|
GeneratedCodeInfo_Annotation.typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
|
|
1447
|
-
GeneratedCodeInfo_Annotation.fields =
|
|
1421
|
+
GeneratedCodeInfo_Annotation.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
1448
1422
|
{ no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1449
1423
|
{ no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1450
1424
|
{ no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|