@bufbuild/protobuf 0.0.2-alpha.3 → 0.0.3

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.
Files changed (50) hide show
  1. package/README.md +5 -2
  2. package/dist/cjs/google/protobuf/any_pb.js +6 -6
  3. package/dist/cjs/google/protobuf/api_pb.js +18 -18
  4. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +22 -22
  5. package/dist/cjs/google/protobuf/descriptor_pb.js +148 -148
  6. package/dist/cjs/google/protobuf/duration_pb.js +11 -11
  7. package/dist/cjs/google/protobuf/empty_pb.js +6 -6
  8. package/dist/cjs/google/protobuf/field_mask_pb.js +7 -7
  9. package/dist/cjs/google/protobuf/source_context_pb.js +6 -6
  10. package/dist/cjs/google/protobuf/struct_pb.js +21 -21
  11. package/dist/cjs/google/protobuf/timestamp_pb.js +10 -10
  12. package/dist/cjs/google/protobuf/type_pb.js +33 -33
  13. package/dist/cjs/google/protobuf/wrappers_pb.js +66 -66
  14. package/dist/cjs/index-runtime.js +42 -0
  15. package/dist/cjs/index-wkt.js +42 -0
  16. package/dist/cjs/index.js +4 -40
  17. package/dist/cjs/private/util-common.js +1 -1
  18. package/dist/esm/google/protobuf/any_pb.js +1 -1
  19. package/dist/esm/google/protobuf/api_pb.js +1 -1
  20. package/dist/esm/google/protobuf/compiler/plugin_pb.js +1 -1
  21. package/dist/esm/google/protobuf/descriptor_pb.js +1 -1
  22. package/dist/esm/google/protobuf/duration_pb.js +1 -1
  23. package/dist/esm/google/protobuf/empty_pb.js +1 -1
  24. package/dist/esm/google/protobuf/field_mask_pb.js +1 -1
  25. package/dist/esm/google/protobuf/source_context_pb.js +1 -1
  26. package/dist/esm/google/protobuf/struct_pb.js +1 -1
  27. package/dist/esm/google/protobuf/timestamp_pb.js +1 -1
  28. package/dist/esm/google/protobuf/type_pb.js +1 -1
  29. package/dist/esm/google/protobuf/wrappers_pb.js +1 -1
  30. package/dist/esm/index-runtime.js +25 -0
  31. package/dist/esm/index-wkt.js +26 -0
  32. package/dist/esm/index.js +4 -25
  33. package/dist/esm/private/util-common.js +1 -1
  34. package/dist/types/google/protobuf/any_pb.d.ts +2 -2
  35. package/dist/types/google/protobuf/api_pb.d.ts +2 -2
  36. package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +2 -2
  37. package/dist/types/google/protobuf/descriptor_pb.d.ts +2 -2
  38. package/dist/types/google/protobuf/duration_pb.d.ts +2 -2
  39. package/dist/types/google/protobuf/empty_pb.d.ts +2 -2
  40. package/dist/types/google/protobuf/field_mask_pb.d.ts +2 -2
  41. package/dist/types/google/protobuf/source_context_pb.d.ts +2 -2
  42. package/dist/types/google/protobuf/struct_pb.d.ts +2 -2
  43. package/dist/types/google/protobuf/timestamp_pb.d.ts +2 -2
  44. package/dist/types/google/protobuf/type_pb.d.ts +2 -2
  45. package/dist/types/google/protobuf/wrappers_pb.d.ts +2 -2
  46. package/dist/types/index-runtime.d.ts +19 -0
  47. package/dist/types/index-wkt.d.ts +12 -0
  48. package/dist/types/index.d.ts +2 -31
  49. package/dist/types/message.d.ts +1 -3
  50. package/package.json +2 -2
@@ -14,21 +14,21 @@
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
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;
17
- const index_js_1 = require("../../index.js");
17
+ const index_runtime_js_1 = require("../../index-runtime.js");
18
18
  /**
19
19
  * The protocol compiler can output a FileDescriptorSet containing the .proto
20
20
  * files it parses.
21
21
  *
22
22
  * @generated from message google.protobuf.FileDescriptorSet
23
23
  */
24
- class FileDescriptorSet extends index_js_1.Message {
24
+ class FileDescriptorSet extends index_runtime_js_1.Message {
25
25
  constructor(data) {
26
26
  super();
27
27
  /**
28
28
  * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
29
29
  */
30
30
  this.file = [];
31
- index_js_1.proto2.util.initPartial(data, this);
31
+ index_runtime_js_1.proto2.util.initPartial(data, this);
32
32
  }
33
33
  static fromBinary(bytes, options) {
34
34
  return new FileDescriptorSet().fromBinary(bytes, options);
@@ -40,13 +40,13 @@ class FileDescriptorSet extends index_js_1.Message {
40
40
  return new FileDescriptorSet().fromJsonString(jsonString, options);
41
41
  }
42
42
  static equals(a, b) {
43
- return index_js_1.proto2.util.equals(FileDescriptorSet, a, b);
43
+ return index_runtime_js_1.proto2.util.equals(FileDescriptorSet, a, b);
44
44
  }
45
45
  }
46
46
  exports.FileDescriptorSet = FileDescriptorSet;
47
- FileDescriptorSet.runtime = index_js_1.proto2;
47
+ FileDescriptorSet.runtime = index_runtime_js_1.proto2;
48
48
  FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
49
- FileDescriptorSet.fields = index_js_1.proto2.util.newFieldList(() => [
49
+ FileDescriptorSet.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
50
50
  { no: 1, name: "file", kind: "message", T: FileDescriptorProto, repeated: true },
51
51
  ]);
52
52
  /**
@@ -54,7 +54,7 @@ FileDescriptorSet.fields = index_js_1.proto2.util.newFieldList(() => [
54
54
  *
55
55
  * @generated from message google.protobuf.FileDescriptorProto
56
56
  */
57
- class FileDescriptorProto extends index_js_1.Message {
57
+ class FileDescriptorProto extends index_runtime_js_1.Message {
58
58
  constructor(data) {
59
59
  super();
60
60
  /**
@@ -94,7 +94,7 @@ class FileDescriptorProto extends index_js_1.Message {
94
94
  * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
95
95
  */
96
96
  this.extension = [];
97
- index_js_1.proto2.util.initPartial(data, this);
97
+ index_runtime_js_1.proto2.util.initPartial(data, this);
98
98
  }
99
99
  static fromBinary(bytes, options) {
100
100
  return new FileDescriptorProto().fromBinary(bytes, options);
@@ -106,13 +106,13 @@ class FileDescriptorProto extends index_js_1.Message {
106
106
  return new FileDescriptorProto().fromJsonString(jsonString, options);
107
107
  }
108
108
  static equals(a, b) {
109
- return index_js_1.proto2.util.equals(FileDescriptorProto, a, b);
109
+ return index_runtime_js_1.proto2.util.equals(FileDescriptorProto, a, b);
110
110
  }
111
111
  }
112
112
  exports.FileDescriptorProto = FileDescriptorProto;
113
- FileDescriptorProto.runtime = index_js_1.proto2;
113
+ FileDescriptorProto.runtime = index_runtime_js_1.proto2;
114
114
  FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
115
- FileDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
115
+ FileDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
116
116
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
117
117
  { no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
118
118
  { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
@@ -131,7 +131,7 @@ FileDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
131
131
  *
132
132
  * @generated from message google.protobuf.DescriptorProto
133
133
  */
134
- class DescriptorProto extends index_js_1.Message {
134
+ class DescriptorProto extends index_runtime_js_1.Message {
135
135
  constructor(data) {
136
136
  super();
137
137
  /**
@@ -169,7 +169,7 @@ class DescriptorProto extends index_js_1.Message {
169
169
  * @generated from field: repeated string reserved_name = 10;
170
170
  */
171
171
  this.reservedName = [];
172
- index_js_1.proto2.util.initPartial(data, this);
172
+ index_runtime_js_1.proto2.util.initPartial(data, this);
173
173
  }
174
174
  static fromBinary(bytes, options) {
175
175
  return new DescriptorProto().fromBinary(bytes, options);
@@ -181,13 +181,13 @@ class DescriptorProto extends index_js_1.Message {
181
181
  return new DescriptorProto().fromJsonString(jsonString, options);
182
182
  }
183
183
  static equals(a, b) {
184
- return index_js_1.proto2.util.equals(DescriptorProto, a, b);
184
+ return index_runtime_js_1.proto2.util.equals(DescriptorProto, a, b);
185
185
  }
186
186
  }
187
187
  exports.DescriptorProto = DescriptorProto;
188
- DescriptorProto.runtime = index_js_1.proto2;
188
+ DescriptorProto.runtime = index_runtime_js_1.proto2;
189
189
  DescriptorProto.typeName = "google.protobuf.DescriptorProto";
190
- DescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
190
+ DescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
191
191
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
192
192
  { no: 2, name: "field", kind: "message", T: FieldDescriptorProto, repeated: true },
193
193
  { no: 6, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
@@ -202,10 +202,10 @@ DescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
202
202
  /**
203
203
  * @generated from message google.protobuf.DescriptorProto.ExtensionRange
204
204
  */
205
- class DescriptorProto_ExtensionRange extends index_js_1.Message {
205
+ class DescriptorProto_ExtensionRange extends index_runtime_js_1.Message {
206
206
  constructor(data) {
207
207
  super();
208
- index_js_1.proto2.util.initPartial(data, this);
208
+ index_runtime_js_1.proto2.util.initPartial(data, this);
209
209
  }
210
210
  static fromBinary(bytes, options) {
211
211
  return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
@@ -217,13 +217,13 @@ class DescriptorProto_ExtensionRange extends index_js_1.Message {
217
217
  return new DescriptorProto_ExtensionRange().fromJsonString(jsonString, options);
218
218
  }
219
219
  static equals(a, b) {
220
- return index_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
220
+ return index_runtime_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
221
221
  }
222
222
  }
223
223
  exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
224
- DescriptorProto_ExtensionRange.runtime = index_js_1.proto2;
224
+ DescriptorProto_ExtensionRange.runtime = index_runtime_js_1.proto2;
225
225
  DescriptorProto_ExtensionRange.typeName = "google.protobuf.DescriptorProto.ExtensionRange";
226
- DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(() => [
226
+ DescriptorProto_ExtensionRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
227
227
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
228
228
  { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
229
229
  { no: 3, name: "options", kind: "message", T: ExtensionRangeOptions, opt: true },
@@ -235,10 +235,10 @@ DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(() =
235
235
  *
236
236
  * @generated from message google.protobuf.DescriptorProto.ReservedRange
237
237
  */
238
- class DescriptorProto_ReservedRange extends index_js_1.Message {
238
+ class DescriptorProto_ReservedRange extends index_runtime_js_1.Message {
239
239
  constructor(data) {
240
240
  super();
241
- index_js_1.proto2.util.initPartial(data, this);
241
+ index_runtime_js_1.proto2.util.initPartial(data, this);
242
242
  }
243
243
  static fromBinary(bytes, options) {
244
244
  return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
@@ -250,20 +250,20 @@ class DescriptorProto_ReservedRange extends index_js_1.Message {
250
250
  return new DescriptorProto_ReservedRange().fromJsonString(jsonString, options);
251
251
  }
252
252
  static equals(a, b) {
253
- return index_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
253
+ return index_runtime_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
254
254
  }
255
255
  }
256
256
  exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
257
- DescriptorProto_ReservedRange.runtime = index_js_1.proto2;
257
+ DescriptorProto_ReservedRange.runtime = index_runtime_js_1.proto2;
258
258
  DescriptorProto_ReservedRange.typeName = "google.protobuf.DescriptorProto.ReservedRange";
259
- DescriptorProto_ReservedRange.fields = index_js_1.proto2.util.newFieldList(() => [
259
+ DescriptorProto_ReservedRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
260
260
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
261
261
  { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
262
262
  ]);
263
263
  /**
264
264
  * @generated from message google.protobuf.ExtensionRangeOptions
265
265
  */
266
- class ExtensionRangeOptions extends index_js_1.Message {
266
+ class ExtensionRangeOptions extends index_runtime_js_1.Message {
267
267
  constructor(data) {
268
268
  super();
269
269
  /**
@@ -272,7 +272,7 @@ class ExtensionRangeOptions extends index_js_1.Message {
272
272
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
273
273
  */
274
274
  this.uninterpretedOption = [];
275
- index_js_1.proto2.util.initPartial(data, this);
275
+ index_runtime_js_1.proto2.util.initPartial(data, this);
276
276
  }
277
277
  static fromBinary(bytes, options) {
278
278
  return new ExtensionRangeOptions().fromBinary(bytes, options);
@@ -284,13 +284,13 @@ class ExtensionRangeOptions extends index_js_1.Message {
284
284
  return new ExtensionRangeOptions().fromJsonString(jsonString, options);
285
285
  }
286
286
  static equals(a, b) {
287
- return index_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
287
+ return index_runtime_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
288
288
  }
289
289
  }
290
290
  exports.ExtensionRangeOptions = ExtensionRangeOptions;
291
- ExtensionRangeOptions.runtime = index_js_1.proto2;
291
+ ExtensionRangeOptions.runtime = index_runtime_js_1.proto2;
292
292
  ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
293
- ExtensionRangeOptions.fields = index_js_1.proto2.util.newFieldList(() => [
293
+ ExtensionRangeOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
294
294
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
295
295
  ]);
296
296
  /**
@@ -298,10 +298,10 @@ ExtensionRangeOptions.fields = index_js_1.proto2.util.newFieldList(() => [
298
298
  *
299
299
  * @generated from message google.protobuf.FieldDescriptorProto
300
300
  */
301
- class FieldDescriptorProto extends index_js_1.Message {
301
+ class FieldDescriptorProto extends index_runtime_js_1.Message {
302
302
  constructor(data) {
303
303
  super();
304
- index_js_1.proto2.util.initPartial(data, this);
304
+ index_runtime_js_1.proto2.util.initPartial(data, this);
305
305
  }
306
306
  static fromBinary(bytes, options) {
307
307
  return new FieldDescriptorProto().fromBinary(bytes, options);
@@ -313,17 +313,17 @@ class FieldDescriptorProto extends index_js_1.Message {
313
313
  return new FieldDescriptorProto().fromJsonString(jsonString, options);
314
314
  }
315
315
  static equals(a, b) {
316
- return index_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
316
+ return index_runtime_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
317
317
  }
318
318
  }
319
319
  exports.FieldDescriptorProto = FieldDescriptorProto;
320
- FieldDescriptorProto.runtime = index_js_1.proto2;
320
+ FieldDescriptorProto.runtime = index_runtime_js_1.proto2;
321
321
  FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
322
- FieldDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
322
+ FieldDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
323
323
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
324
324
  { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
325
- { no: 4, name: "label", kind: "enum", T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Label), opt: true },
326
- { no: 5, name: "type", kind: "enum", T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Type), opt: true },
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 },
327
327
  { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
328
328
  { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
329
329
  { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
@@ -433,7 +433,7 @@ var FieldDescriptorProto_Type;
433
433
  FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
434
434
  })(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {}));
435
435
  // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
436
- index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
436
+ index_runtime_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
437
437
  { no: 1, name: "TYPE_DOUBLE" },
438
438
  { no: 2, name: "TYPE_FLOAT" },
439
439
  { no: 3, name: "TYPE_INT64" },
@@ -474,7 +474,7 @@ var FieldDescriptorProto_Label;
474
474
  FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
475
475
  })(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {}));
476
476
  // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
477
- index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
477
+ index_runtime_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
478
478
  { no: 1, name: "LABEL_OPTIONAL" },
479
479
  { no: 2, name: "LABEL_REQUIRED" },
480
480
  { no: 3, name: "LABEL_REPEATED" },
@@ -484,10 +484,10 @@ index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.
484
484
  *
485
485
  * @generated from message google.protobuf.OneofDescriptorProto
486
486
  */
487
- class OneofDescriptorProto extends index_js_1.Message {
487
+ class OneofDescriptorProto extends index_runtime_js_1.Message {
488
488
  constructor(data) {
489
489
  super();
490
- index_js_1.proto2.util.initPartial(data, this);
490
+ index_runtime_js_1.proto2.util.initPartial(data, this);
491
491
  }
492
492
  static fromBinary(bytes, options) {
493
493
  return new OneofDescriptorProto().fromBinary(bytes, options);
@@ -499,13 +499,13 @@ class OneofDescriptorProto extends index_js_1.Message {
499
499
  return new OneofDescriptorProto().fromJsonString(jsonString, options);
500
500
  }
501
501
  static equals(a, b) {
502
- return index_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
502
+ return index_runtime_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
503
503
  }
504
504
  }
505
505
  exports.OneofDescriptorProto = OneofDescriptorProto;
506
- OneofDescriptorProto.runtime = index_js_1.proto2;
506
+ OneofDescriptorProto.runtime = index_runtime_js_1.proto2;
507
507
  OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
508
- OneofDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
508
+ OneofDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
509
509
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
510
510
  { no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
511
511
  ]);
@@ -514,7 +514,7 @@ OneofDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
514
514
  *
515
515
  * @generated from message google.protobuf.EnumDescriptorProto
516
516
  */
517
- class EnumDescriptorProto extends index_js_1.Message {
517
+ class EnumDescriptorProto extends index_runtime_js_1.Message {
518
518
  constructor(data) {
519
519
  super();
520
520
  /**
@@ -536,7 +536,7 @@ class EnumDescriptorProto extends index_js_1.Message {
536
536
  * @generated from field: repeated string reserved_name = 5;
537
537
  */
538
538
  this.reservedName = [];
539
- index_js_1.proto2.util.initPartial(data, this);
539
+ index_runtime_js_1.proto2.util.initPartial(data, this);
540
540
  }
541
541
  static fromBinary(bytes, options) {
542
542
  return new EnumDescriptorProto().fromBinary(bytes, options);
@@ -548,13 +548,13 @@ class EnumDescriptorProto extends index_js_1.Message {
548
548
  return new EnumDescriptorProto().fromJsonString(jsonString, options);
549
549
  }
550
550
  static equals(a, b) {
551
- return index_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
551
+ return index_runtime_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
552
552
  }
553
553
  }
554
554
  exports.EnumDescriptorProto = EnumDescriptorProto;
555
- EnumDescriptorProto.runtime = index_js_1.proto2;
555
+ EnumDescriptorProto.runtime = index_runtime_js_1.proto2;
556
556
  EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
557
- EnumDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
557
+ EnumDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
558
558
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
559
559
  { no: 2, name: "value", kind: "message", T: EnumValueDescriptorProto, repeated: true },
560
560
  { no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
@@ -571,10 +571,10 @@ EnumDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
571
571
  *
572
572
  * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
573
573
  */
574
- class EnumDescriptorProto_EnumReservedRange extends index_js_1.Message {
574
+ class EnumDescriptorProto_EnumReservedRange extends index_runtime_js_1.Message {
575
575
  constructor(data) {
576
576
  super();
577
- index_js_1.proto2.util.initPartial(data, this);
577
+ index_runtime_js_1.proto2.util.initPartial(data, this);
578
578
  }
579
579
  static fromBinary(bytes, options) {
580
580
  return new EnumDescriptorProto_EnumReservedRange().fromBinary(bytes, options);
@@ -586,13 +586,13 @@ class EnumDescriptorProto_EnumReservedRange extends index_js_1.Message {
586
586
  return new EnumDescriptorProto_EnumReservedRange().fromJsonString(jsonString, options);
587
587
  }
588
588
  static equals(a, b) {
589
- return index_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
589
+ return index_runtime_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
590
590
  }
591
591
  }
592
592
  exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange;
593
- EnumDescriptorProto_EnumReservedRange.runtime = index_js_1.proto2;
593
+ EnumDescriptorProto_EnumReservedRange.runtime = index_runtime_js_1.proto2;
594
594
  EnumDescriptorProto_EnumReservedRange.typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
595
- EnumDescriptorProto_EnumReservedRange.fields = index_js_1.proto2.util.newFieldList(() => [
595
+ EnumDescriptorProto_EnumReservedRange.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
596
596
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
597
597
  { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
598
598
  ]);
@@ -601,10 +601,10 @@ EnumDescriptorProto_EnumReservedRange.fields = index_js_1.proto2.util.newFieldLi
601
601
  *
602
602
  * @generated from message google.protobuf.EnumValueDescriptorProto
603
603
  */
604
- class EnumValueDescriptorProto extends index_js_1.Message {
604
+ class EnumValueDescriptorProto extends index_runtime_js_1.Message {
605
605
  constructor(data) {
606
606
  super();
607
- index_js_1.proto2.util.initPartial(data, this);
607
+ index_runtime_js_1.proto2.util.initPartial(data, this);
608
608
  }
609
609
  static fromBinary(bytes, options) {
610
610
  return new EnumValueDescriptorProto().fromBinary(bytes, options);
@@ -616,13 +616,13 @@ class EnumValueDescriptorProto extends index_js_1.Message {
616
616
  return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
617
617
  }
618
618
  static equals(a, b) {
619
- return index_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
619
+ return index_runtime_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
620
620
  }
621
621
  }
622
622
  exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
623
- EnumValueDescriptorProto.runtime = index_js_1.proto2;
623
+ EnumValueDescriptorProto.runtime = index_runtime_js_1.proto2;
624
624
  EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
625
- EnumValueDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
625
+ EnumValueDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
626
626
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
627
627
  { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
628
628
  { no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
@@ -632,14 +632,14 @@ EnumValueDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
632
632
  *
633
633
  * @generated from message google.protobuf.ServiceDescriptorProto
634
634
  */
635
- class ServiceDescriptorProto extends index_js_1.Message {
635
+ class ServiceDescriptorProto extends index_runtime_js_1.Message {
636
636
  constructor(data) {
637
637
  super();
638
638
  /**
639
639
  * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
640
640
  */
641
641
  this.method = [];
642
- index_js_1.proto2.util.initPartial(data, this);
642
+ index_runtime_js_1.proto2.util.initPartial(data, this);
643
643
  }
644
644
  static fromBinary(bytes, options) {
645
645
  return new ServiceDescriptorProto().fromBinary(bytes, options);
@@ -651,13 +651,13 @@ class ServiceDescriptorProto extends index_js_1.Message {
651
651
  return new ServiceDescriptorProto().fromJsonString(jsonString, options);
652
652
  }
653
653
  static equals(a, b) {
654
- return index_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
654
+ return index_runtime_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
655
655
  }
656
656
  }
657
657
  exports.ServiceDescriptorProto = ServiceDescriptorProto;
658
- ServiceDescriptorProto.runtime = index_js_1.proto2;
658
+ ServiceDescriptorProto.runtime = index_runtime_js_1.proto2;
659
659
  ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
660
- ServiceDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
660
+ ServiceDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
661
661
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
662
662
  { no: 2, name: "method", kind: "message", T: MethodDescriptorProto, repeated: true },
663
663
  { no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
@@ -667,10 +667,10 @@ ServiceDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
667
667
  *
668
668
  * @generated from message google.protobuf.MethodDescriptorProto
669
669
  */
670
- class MethodDescriptorProto extends index_js_1.Message {
670
+ class MethodDescriptorProto extends index_runtime_js_1.Message {
671
671
  constructor(data) {
672
672
  super();
673
- index_js_1.proto2.util.initPartial(data, this);
673
+ index_runtime_js_1.proto2.util.initPartial(data, this);
674
674
  }
675
675
  static fromBinary(bytes, options) {
676
676
  return new MethodDescriptorProto().fromBinary(bytes, options);
@@ -682,13 +682,13 @@ class MethodDescriptorProto extends index_js_1.Message {
682
682
  return new MethodDescriptorProto().fromJsonString(jsonString, options);
683
683
  }
684
684
  static equals(a, b) {
685
- return index_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
685
+ return index_runtime_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
686
686
  }
687
687
  }
688
688
  exports.MethodDescriptorProto = MethodDescriptorProto;
689
- MethodDescriptorProto.runtime = index_js_1.proto2;
689
+ MethodDescriptorProto.runtime = index_runtime_js_1.proto2;
690
690
  MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
691
- MethodDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
691
+ MethodDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
692
692
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
693
693
  { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
694
694
  { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
@@ -699,7 +699,7 @@ MethodDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
699
699
  /**
700
700
  * @generated from message google.protobuf.FileOptions
701
701
  */
702
- class FileOptions extends index_js_1.Message {
702
+ class FileOptions extends index_runtime_js_1.Message {
703
703
  constructor(data) {
704
704
  super();
705
705
  /**
@@ -709,7 +709,7 @@ class FileOptions extends index_js_1.Message {
709
709
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
710
710
  */
711
711
  this.uninterpretedOption = [];
712
- index_js_1.proto2.util.initPartial(data, this);
712
+ index_runtime_js_1.proto2.util.initPartial(data, this);
713
713
  }
714
714
  static fromBinary(bytes, options) {
715
715
  return new FileOptions().fromBinary(bytes, options);
@@ -721,19 +721,19 @@ class FileOptions extends index_js_1.Message {
721
721
  return new FileOptions().fromJsonString(jsonString, options);
722
722
  }
723
723
  static equals(a, b) {
724
- return index_js_1.proto2.util.equals(FileOptions, a, b);
724
+ return index_runtime_js_1.proto2.util.equals(FileOptions, a, b);
725
725
  }
726
726
  }
727
727
  exports.FileOptions = FileOptions;
728
- FileOptions.runtime = index_js_1.proto2;
728
+ FileOptions.runtime = index_runtime_js_1.proto2;
729
729
  FileOptions.typeName = "google.protobuf.FileOptions";
730
- FileOptions.fields = index_js_1.proto2.util.newFieldList(() => [
730
+ FileOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
731
731
  { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
732
732
  { no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
733
733
  { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
734
734
  { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
735
735
  { no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
736
- { no: 9, name: "optimize_for", kind: "enum", T: index_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
736
+ { no: 9, name: "optimize_for", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
737
737
  { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
738
738
  { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
739
739
  { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
@@ -779,7 +779,7 @@ var FileOptions_OptimizeMode;
779
779
  FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
780
780
  })(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {}));
781
781
  // Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
782
- index_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
782
+ index_runtime_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
783
783
  { no: 1, name: "SPEED" },
784
784
  { no: 2, name: "CODE_SIZE" },
785
785
  { no: 3, name: "LITE_RUNTIME" },
@@ -787,7 +787,7 @@ index_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.Fi
787
787
  /**
788
788
  * @generated from message google.protobuf.MessageOptions
789
789
  */
790
- class MessageOptions extends index_js_1.Message {
790
+ class MessageOptions extends index_runtime_js_1.Message {
791
791
  constructor(data) {
792
792
  super();
793
793
  /**
@@ -796,7 +796,7 @@ class MessageOptions extends index_js_1.Message {
796
796
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
797
797
  */
798
798
  this.uninterpretedOption = [];
799
- index_js_1.proto2.util.initPartial(data, this);
799
+ index_runtime_js_1.proto2.util.initPartial(data, this);
800
800
  }
801
801
  static fromBinary(bytes, options) {
802
802
  return new MessageOptions().fromBinary(bytes, options);
@@ -808,13 +808,13 @@ class MessageOptions extends index_js_1.Message {
808
808
  return new MessageOptions().fromJsonString(jsonString, options);
809
809
  }
810
810
  static equals(a, b) {
811
- return index_js_1.proto2.util.equals(MessageOptions, a, b);
811
+ return index_runtime_js_1.proto2.util.equals(MessageOptions, a, b);
812
812
  }
813
813
  }
814
814
  exports.MessageOptions = MessageOptions;
815
- MessageOptions.runtime = index_js_1.proto2;
815
+ MessageOptions.runtime = index_runtime_js_1.proto2;
816
816
  MessageOptions.typeName = "google.protobuf.MessageOptions";
817
- MessageOptions.fields = index_js_1.proto2.util.newFieldList(() => [
817
+ MessageOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
818
818
  { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
819
819
  { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
820
820
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
@@ -824,7 +824,7 @@ MessageOptions.fields = index_js_1.proto2.util.newFieldList(() => [
824
824
  /**
825
825
  * @generated from message google.protobuf.FieldOptions
826
826
  */
827
- class FieldOptions extends index_js_1.Message {
827
+ class FieldOptions extends index_runtime_js_1.Message {
828
828
  constructor(data) {
829
829
  super();
830
830
  /**
@@ -833,7 +833,7 @@ class FieldOptions extends index_js_1.Message {
833
833
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
834
834
  */
835
835
  this.uninterpretedOption = [];
836
- index_js_1.proto2.util.initPartial(data, this);
836
+ index_runtime_js_1.proto2.util.initPartial(data, this);
837
837
  }
838
838
  static fromBinary(bytes, options) {
839
839
  return new FieldOptions().fromBinary(bytes, options);
@@ -845,16 +845,16 @@ class FieldOptions extends index_js_1.Message {
845
845
  return new FieldOptions().fromJsonString(jsonString, options);
846
846
  }
847
847
  static equals(a, b) {
848
- return index_js_1.proto2.util.equals(FieldOptions, a, b);
848
+ return index_runtime_js_1.proto2.util.equals(FieldOptions, a, b);
849
849
  }
850
850
  }
851
851
  exports.FieldOptions = FieldOptions;
852
- FieldOptions.runtime = index_js_1.proto2;
852
+ FieldOptions.runtime = index_runtime_js_1.proto2;
853
853
  FieldOptions.typeName = "google.protobuf.FieldOptions";
854
- FieldOptions.fields = index_js_1.proto2.util.newFieldList(() => [
855
- { no: 1, name: "ctype", kind: "enum", T: index_js_1.proto2.getEnumType(FieldOptions_CType), opt: true, default: FieldOptions_CType.STRING },
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 },
856
856
  { no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
857
- { no: 6, name: "jstype", kind: "enum", T: index_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
857
+ { no: 6, name: "jstype", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
858
858
  { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
859
859
  { no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
860
860
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
@@ -882,7 +882,7 @@ var FieldOptions_CType;
882
882
  FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
883
883
  })(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {}));
884
884
  // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
885
- index_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
885
+ index_runtime_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
886
886
  { no: 0, name: "STRING" },
887
887
  { no: 1, name: "CORD" },
888
888
  { no: 2, name: "STRING_PIECE" },
@@ -912,7 +912,7 @@ var FieldOptions_JSType;
912
912
  FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
913
913
  })(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {}));
914
914
  // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
915
- index_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
915
+ index_runtime_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
916
916
  { no: 0, name: "JS_NORMAL" },
917
917
  { no: 1, name: "JS_STRING" },
918
918
  { no: 2, name: "JS_NUMBER" },
@@ -920,7 +920,7 @@ index_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOp
920
920
  /**
921
921
  * @generated from message google.protobuf.OneofOptions
922
922
  */
923
- class OneofOptions extends index_js_1.Message {
923
+ class OneofOptions extends index_runtime_js_1.Message {
924
924
  constructor(data) {
925
925
  super();
926
926
  /**
@@ -929,7 +929,7 @@ class OneofOptions extends index_js_1.Message {
929
929
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
930
930
  */
931
931
  this.uninterpretedOption = [];
932
- index_js_1.proto2.util.initPartial(data, this);
932
+ index_runtime_js_1.proto2.util.initPartial(data, this);
933
933
  }
934
934
  static fromBinary(bytes, options) {
935
935
  return new OneofOptions().fromBinary(bytes, options);
@@ -941,19 +941,19 @@ class OneofOptions extends index_js_1.Message {
941
941
  return new OneofOptions().fromJsonString(jsonString, options);
942
942
  }
943
943
  static equals(a, b) {
944
- return index_js_1.proto2.util.equals(OneofOptions, a, b);
944
+ return index_runtime_js_1.proto2.util.equals(OneofOptions, a, b);
945
945
  }
946
946
  }
947
947
  exports.OneofOptions = OneofOptions;
948
- OneofOptions.runtime = index_js_1.proto2;
948
+ OneofOptions.runtime = index_runtime_js_1.proto2;
949
949
  OneofOptions.typeName = "google.protobuf.OneofOptions";
950
- OneofOptions.fields = index_js_1.proto2.util.newFieldList(() => [
950
+ OneofOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
951
951
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
952
952
  ]);
953
953
  /**
954
954
  * @generated from message google.protobuf.EnumOptions
955
955
  */
956
- class EnumOptions extends index_js_1.Message {
956
+ class EnumOptions extends index_runtime_js_1.Message {
957
957
  constructor(data) {
958
958
  super();
959
959
  /**
@@ -962,7 +962,7 @@ class EnumOptions extends index_js_1.Message {
962
962
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
963
963
  */
964
964
  this.uninterpretedOption = [];
965
- index_js_1.proto2.util.initPartial(data, this);
965
+ index_runtime_js_1.proto2.util.initPartial(data, this);
966
966
  }
967
967
  static fromBinary(bytes, options) {
968
968
  return new EnumOptions().fromBinary(bytes, options);
@@ -974,13 +974,13 @@ class EnumOptions extends index_js_1.Message {
974
974
  return new EnumOptions().fromJsonString(jsonString, options);
975
975
  }
976
976
  static equals(a, b) {
977
- return index_js_1.proto2.util.equals(EnumOptions, a, b);
977
+ return index_runtime_js_1.proto2.util.equals(EnumOptions, a, b);
978
978
  }
979
979
  }
980
980
  exports.EnumOptions = EnumOptions;
981
- EnumOptions.runtime = index_js_1.proto2;
981
+ EnumOptions.runtime = index_runtime_js_1.proto2;
982
982
  EnumOptions.typeName = "google.protobuf.EnumOptions";
983
- EnumOptions.fields = index_js_1.proto2.util.newFieldList(() => [
983
+ EnumOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
984
984
  { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
985
985
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
986
986
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
@@ -988,7 +988,7 @@ EnumOptions.fields = index_js_1.proto2.util.newFieldList(() => [
988
988
  /**
989
989
  * @generated from message google.protobuf.EnumValueOptions
990
990
  */
991
- class EnumValueOptions extends index_js_1.Message {
991
+ class EnumValueOptions extends index_runtime_js_1.Message {
992
992
  constructor(data) {
993
993
  super();
994
994
  /**
@@ -997,7 +997,7 @@ class EnumValueOptions extends index_js_1.Message {
997
997
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
998
998
  */
999
999
  this.uninterpretedOption = [];
1000
- index_js_1.proto2.util.initPartial(data, this);
1000
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1001
1001
  }
1002
1002
  static fromBinary(bytes, options) {
1003
1003
  return new EnumValueOptions().fromBinary(bytes, options);
@@ -1009,20 +1009,20 @@ class EnumValueOptions extends index_js_1.Message {
1009
1009
  return new EnumValueOptions().fromJsonString(jsonString, options);
1010
1010
  }
1011
1011
  static equals(a, b) {
1012
- return index_js_1.proto2.util.equals(EnumValueOptions, a, b);
1012
+ return index_runtime_js_1.proto2.util.equals(EnumValueOptions, a, b);
1013
1013
  }
1014
1014
  }
1015
1015
  exports.EnumValueOptions = EnumValueOptions;
1016
- EnumValueOptions.runtime = index_js_1.proto2;
1016
+ EnumValueOptions.runtime = index_runtime_js_1.proto2;
1017
1017
  EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
1018
- EnumValueOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1018
+ EnumValueOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1019
1019
  { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1020
1020
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1021
1021
  ]);
1022
1022
  /**
1023
1023
  * @generated from message google.protobuf.ServiceOptions
1024
1024
  */
1025
- class ServiceOptions extends index_js_1.Message {
1025
+ class ServiceOptions extends index_runtime_js_1.Message {
1026
1026
  constructor(data) {
1027
1027
  super();
1028
1028
  /**
@@ -1031,7 +1031,7 @@ class ServiceOptions extends index_js_1.Message {
1031
1031
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1032
1032
  */
1033
1033
  this.uninterpretedOption = [];
1034
- index_js_1.proto2.util.initPartial(data, this);
1034
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1035
1035
  }
1036
1036
  static fromBinary(bytes, options) {
1037
1037
  return new ServiceOptions().fromBinary(bytes, options);
@@ -1043,20 +1043,20 @@ class ServiceOptions extends index_js_1.Message {
1043
1043
  return new ServiceOptions().fromJsonString(jsonString, options);
1044
1044
  }
1045
1045
  static equals(a, b) {
1046
- return index_js_1.proto2.util.equals(ServiceOptions, a, b);
1046
+ return index_runtime_js_1.proto2.util.equals(ServiceOptions, a, b);
1047
1047
  }
1048
1048
  }
1049
1049
  exports.ServiceOptions = ServiceOptions;
1050
- ServiceOptions.runtime = index_js_1.proto2;
1050
+ ServiceOptions.runtime = index_runtime_js_1.proto2;
1051
1051
  ServiceOptions.typeName = "google.protobuf.ServiceOptions";
1052
- ServiceOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1052
+ ServiceOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1053
1053
  { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1054
1054
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1055
1055
  ]);
1056
1056
  /**
1057
1057
  * @generated from message google.protobuf.MethodOptions
1058
1058
  */
1059
- class MethodOptions extends index_js_1.Message {
1059
+ class MethodOptions extends index_runtime_js_1.Message {
1060
1060
  constructor(data) {
1061
1061
  super();
1062
1062
  /**
@@ -1065,7 +1065,7 @@ class MethodOptions extends index_js_1.Message {
1065
1065
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1066
1066
  */
1067
1067
  this.uninterpretedOption = [];
1068
- index_js_1.proto2.util.initPartial(data, this);
1068
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1069
1069
  }
1070
1070
  static fromBinary(bytes, options) {
1071
1071
  return new MethodOptions().fromBinary(bytes, options);
@@ -1077,15 +1077,15 @@ class MethodOptions extends index_js_1.Message {
1077
1077
  return new MethodOptions().fromJsonString(jsonString, options);
1078
1078
  }
1079
1079
  static equals(a, b) {
1080
- return index_js_1.proto2.util.equals(MethodOptions, a, b);
1080
+ return index_runtime_js_1.proto2.util.equals(MethodOptions, a, b);
1081
1081
  }
1082
1082
  }
1083
1083
  exports.MethodOptions = MethodOptions;
1084
- MethodOptions.runtime = index_js_1.proto2;
1084
+ MethodOptions.runtime = index_runtime_js_1.proto2;
1085
1085
  MethodOptions.typeName = "google.protobuf.MethodOptions";
1086
- MethodOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1086
+ MethodOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1087
1087
  { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1088
- { no: 34, name: "idempotency_level", kind: "enum", T: index_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
1088
+ { no: 34, name: "idempotency_level", kind: "enum", T: index_runtime_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
1089
1089
  { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1090
1090
  ]);
1091
1091
  /**
@@ -1115,7 +1115,7 @@ var MethodOptions_IdempotencyLevel;
1115
1115
  MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
1116
1116
  })(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {}));
1117
1117
  // Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
1118
- index_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
1118
+ index_runtime_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
1119
1119
  { no: 0, name: "IDEMPOTENCY_UNKNOWN" },
1120
1120
  { no: 1, name: "NO_SIDE_EFFECTS" },
1121
1121
  { no: 2, name: "IDEMPOTENT" },
@@ -1130,14 +1130,14 @@ index_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.proto
1130
1130
  *
1131
1131
  * @generated from message google.protobuf.UninterpretedOption
1132
1132
  */
1133
- class UninterpretedOption extends index_js_1.Message {
1133
+ class UninterpretedOption extends index_runtime_js_1.Message {
1134
1134
  constructor(data) {
1135
1135
  super();
1136
1136
  /**
1137
1137
  * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1138
1138
  */
1139
1139
  this.name = [];
1140
- index_js_1.proto2.util.initPartial(data, this);
1140
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1141
1141
  }
1142
1142
  static fromBinary(bytes, options) {
1143
1143
  return new UninterpretedOption().fromBinary(bytes, options);
@@ -1149,13 +1149,13 @@ class UninterpretedOption extends index_js_1.Message {
1149
1149
  return new UninterpretedOption().fromJsonString(jsonString, options);
1150
1150
  }
1151
1151
  static equals(a, b) {
1152
- return index_js_1.proto2.util.equals(UninterpretedOption, a, b);
1152
+ return index_runtime_js_1.proto2.util.equals(UninterpretedOption, a, b);
1153
1153
  }
1154
1154
  }
1155
1155
  exports.UninterpretedOption = UninterpretedOption;
1156
- UninterpretedOption.runtime = index_js_1.proto2;
1156
+ UninterpretedOption.runtime = index_runtime_js_1.proto2;
1157
1157
  UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
1158
- UninterpretedOption.fields = index_js_1.proto2.util.newFieldList(() => [
1158
+ UninterpretedOption.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1159
1159
  { no: 2, name: "name", kind: "message", T: UninterpretedOption_NamePart, repeated: true },
1160
1160
  { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1161
1161
  { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
@@ -1173,10 +1173,10 @@ UninterpretedOption.fields = index_js_1.proto2.util.newFieldList(() => [
1173
1173
  *
1174
1174
  * @generated from message google.protobuf.UninterpretedOption.NamePart
1175
1175
  */
1176
- class UninterpretedOption_NamePart extends index_js_1.Message {
1176
+ class UninterpretedOption_NamePart extends index_runtime_js_1.Message {
1177
1177
  constructor(data) {
1178
1178
  super();
1179
- index_js_1.proto2.util.initPartial(data, this);
1179
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1180
1180
  }
1181
1181
  static fromBinary(bytes, options) {
1182
1182
  return new UninterpretedOption_NamePart().fromBinary(bytes, options);
@@ -1188,13 +1188,13 @@ class UninterpretedOption_NamePart extends index_js_1.Message {
1188
1188
  return new UninterpretedOption_NamePart().fromJsonString(jsonString, options);
1189
1189
  }
1190
1190
  static equals(a, b) {
1191
- return index_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
1191
+ return index_runtime_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
1192
1192
  }
1193
1193
  }
1194
1194
  exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
1195
- UninterpretedOption_NamePart.runtime = index_js_1.proto2;
1195
+ UninterpretedOption_NamePart.runtime = index_runtime_js_1.proto2;
1196
1196
  UninterpretedOption_NamePart.typeName = "google.protobuf.UninterpretedOption.NamePart";
1197
- UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(() => [
1197
+ UninterpretedOption_NamePart.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1198
1198
  { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1199
1199
  { no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1200
1200
  ]);
@@ -1204,7 +1204,7 @@ UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(() =>
1204
1204
  *
1205
1205
  * @generated from message google.protobuf.SourceCodeInfo
1206
1206
  */
1207
- class SourceCodeInfo extends index_js_1.Message {
1207
+ class SourceCodeInfo extends index_runtime_js_1.Message {
1208
1208
  constructor(data) {
1209
1209
  super();
1210
1210
  /**
@@ -1255,7 +1255,7 @@ class SourceCodeInfo extends index_js_1.Message {
1255
1255
  * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1256
1256
  */
1257
1257
  this.location = [];
1258
- index_js_1.proto2.util.initPartial(data, this);
1258
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1259
1259
  }
1260
1260
  static fromBinary(bytes, options) {
1261
1261
  return new SourceCodeInfo().fromBinary(bytes, options);
@@ -1267,19 +1267,19 @@ class SourceCodeInfo extends index_js_1.Message {
1267
1267
  return new SourceCodeInfo().fromJsonString(jsonString, options);
1268
1268
  }
1269
1269
  static equals(a, b) {
1270
- return index_js_1.proto2.util.equals(SourceCodeInfo, a, b);
1270
+ return index_runtime_js_1.proto2.util.equals(SourceCodeInfo, a, b);
1271
1271
  }
1272
1272
  }
1273
1273
  exports.SourceCodeInfo = SourceCodeInfo;
1274
- SourceCodeInfo.runtime = index_js_1.proto2;
1274
+ SourceCodeInfo.runtime = index_runtime_js_1.proto2;
1275
1275
  SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
1276
- SourceCodeInfo.fields = index_js_1.proto2.util.newFieldList(() => [
1276
+ SourceCodeInfo.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1277
1277
  { no: 1, name: "location", kind: "message", T: SourceCodeInfo_Location, repeated: true },
1278
1278
  ]);
1279
1279
  /**
1280
1280
  * @generated from message google.protobuf.SourceCodeInfo.Location
1281
1281
  */
1282
- class SourceCodeInfo_Location extends index_js_1.Message {
1282
+ class SourceCodeInfo_Location extends index_runtime_js_1.Message {
1283
1283
  constructor(data) {
1284
1284
  super();
1285
1285
  /**
@@ -1324,7 +1324,7 @@ class SourceCodeInfo_Location extends index_js_1.Message {
1324
1324
  * @generated from field: repeated string leading_detached_comments = 6;
1325
1325
  */
1326
1326
  this.leadingDetachedComments = [];
1327
- index_js_1.proto2.util.initPartial(data, this);
1327
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1328
1328
  }
1329
1329
  static fromBinary(bytes, options) {
1330
1330
  return new SourceCodeInfo_Location().fromBinary(bytes, options);
@@ -1336,13 +1336,13 @@ class SourceCodeInfo_Location extends index_js_1.Message {
1336
1336
  return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
1337
1337
  }
1338
1338
  static equals(a, b) {
1339
- return index_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
1339
+ return index_runtime_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
1340
1340
  }
1341
1341
  }
1342
1342
  exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
1343
- SourceCodeInfo_Location.runtime = index_js_1.proto2;
1343
+ SourceCodeInfo_Location.runtime = index_runtime_js_1.proto2;
1344
1344
  SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
1345
- SourceCodeInfo_Location.fields = index_js_1.proto2.util.newFieldList(() => [
1345
+ SourceCodeInfo_Location.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1346
1346
  { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1347
1347
  { no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1348
1348
  { no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
@@ -1356,7 +1356,7 @@ SourceCodeInfo_Location.fields = index_js_1.proto2.util.newFieldList(() => [
1356
1356
  *
1357
1357
  * @generated from message google.protobuf.GeneratedCodeInfo
1358
1358
  */
1359
- class GeneratedCodeInfo extends index_js_1.Message {
1359
+ class GeneratedCodeInfo extends index_runtime_js_1.Message {
1360
1360
  constructor(data) {
1361
1361
  super();
1362
1362
  /**
@@ -1366,7 +1366,7 @@ class GeneratedCodeInfo extends index_js_1.Message {
1366
1366
  * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1367
1367
  */
1368
1368
  this.annotation = [];
1369
- index_js_1.proto2.util.initPartial(data, this);
1369
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1370
1370
  }
1371
1371
  static fromBinary(bytes, options) {
1372
1372
  return new GeneratedCodeInfo().fromBinary(bytes, options);
@@ -1378,19 +1378,19 @@ class GeneratedCodeInfo extends index_js_1.Message {
1378
1378
  return new GeneratedCodeInfo().fromJsonString(jsonString, options);
1379
1379
  }
1380
1380
  static equals(a, b) {
1381
- return index_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
1381
+ return index_runtime_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
1382
1382
  }
1383
1383
  }
1384
1384
  exports.GeneratedCodeInfo = GeneratedCodeInfo;
1385
- GeneratedCodeInfo.runtime = index_js_1.proto2;
1385
+ GeneratedCodeInfo.runtime = index_runtime_js_1.proto2;
1386
1386
  GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
1387
- GeneratedCodeInfo.fields = index_js_1.proto2.util.newFieldList(() => [
1387
+ GeneratedCodeInfo.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1388
1388
  { no: 1, name: "annotation", kind: "message", T: GeneratedCodeInfo_Annotation, repeated: true },
1389
1389
  ]);
1390
1390
  /**
1391
1391
  * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
1392
1392
  */
1393
- class GeneratedCodeInfo_Annotation extends index_js_1.Message {
1393
+ class GeneratedCodeInfo_Annotation extends index_runtime_js_1.Message {
1394
1394
  constructor(data) {
1395
1395
  super();
1396
1396
  /**
@@ -1400,7 +1400,7 @@ class GeneratedCodeInfo_Annotation extends index_js_1.Message {
1400
1400
  * @generated from field: repeated int32 path = 1 [packed = true];
1401
1401
  */
1402
1402
  this.path = [];
1403
- index_js_1.proto2.util.initPartial(data, this);
1403
+ index_runtime_js_1.proto2.util.initPartial(data, this);
1404
1404
  }
1405
1405
  static fromBinary(bytes, options) {
1406
1406
  return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
@@ -1412,13 +1412,13 @@ class GeneratedCodeInfo_Annotation extends index_js_1.Message {
1412
1412
  return new GeneratedCodeInfo_Annotation().fromJsonString(jsonString, options);
1413
1413
  }
1414
1414
  static equals(a, b) {
1415
- return index_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
1415
+ return index_runtime_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
1416
1416
  }
1417
1417
  }
1418
1418
  exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
1419
- GeneratedCodeInfo_Annotation.runtime = index_js_1.proto2;
1419
+ GeneratedCodeInfo_Annotation.runtime = index_runtime_js_1.proto2;
1420
1420
  GeneratedCodeInfo_Annotation.typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1421
- GeneratedCodeInfo_Annotation.fields = index_js_1.proto2.util.newFieldList(() => [
1421
+ GeneratedCodeInfo_Annotation.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
1422
1422
  { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1423
1423
  { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1424
1424
  { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },