@bufbuild/protobuf 0.0.5 → 0.0.6

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