@bufbuild/protobuf 0.0.2-alpha.1 → 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 (67) hide show
  1. package/README.md +5 -2
  2. package/dist/cjs/google/protobuf/any_pb.js +19 -39
  3. package/dist/cjs/google/protobuf/api_pb.js +28 -48
  4. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +32 -67
  5. package/dist/cjs/google/protobuf/descriptor_pb.js +161 -187
  6. package/dist/cjs/google/protobuf/duration_pb.js +21 -41
  7. package/dist/cjs/google/protobuf/empty_pb.js +16 -36
  8. package/dist/cjs/google/protobuf/field_mask_pb.js +17 -37
  9. package/dist/cjs/google/protobuf/source_context_pb.js +16 -36
  10. package/dist/cjs/google/protobuf/struct_pb.js +31 -51
  11. package/dist/cjs/google/protobuf/timestamp_pb.js +20 -40
  12. package/dist/cjs/google/protobuf/type_pb.js +43 -63
  13. package/dist/cjs/google/protobuf/wrappers_pb.js +76 -105
  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 -38
  17. package/dist/cjs/private/enum.js +26 -1
  18. package/dist/cjs/private/json-format-common.js +3 -3
  19. package/dist/cjs/private/proto-runtime.js +1 -0
  20. package/dist/cjs/private/util-common.js +1 -1
  21. package/dist/cjs/proto-base64.js +138 -0
  22. package/dist/esm/google/protobuf/any_pb.js +14 -34
  23. package/dist/esm/google/protobuf/api_pb.js +11 -31
  24. package/dist/esm/google/protobuf/compiler/plugin_pb.js +11 -46
  25. package/dist/esm/google/protobuf/descriptor_pb.js +14 -40
  26. package/dist/esm/google/protobuf/duration_pb.js +11 -31
  27. package/dist/esm/google/protobuf/empty_pb.js +11 -31
  28. package/dist/esm/google/protobuf/field_mask_pb.js +11 -31
  29. package/dist/esm/google/protobuf/source_context_pb.js +11 -31
  30. package/dist/esm/google/protobuf/struct_pb.js +11 -31
  31. package/dist/esm/google/protobuf/timestamp_pb.js +11 -31
  32. package/dist/esm/google/protobuf/type_pb.js +11 -31
  33. package/dist/esm/google/protobuf/wrappers_pb.js +11 -40
  34. package/dist/esm/index-runtime.js +25 -0
  35. package/dist/esm/index-wkt.js +26 -0
  36. package/dist/esm/index.js +4 -24
  37. package/dist/esm/private/enum.js +24 -0
  38. package/dist/esm/private/json-format-common.js +3 -3
  39. package/dist/esm/private/proto-runtime.js +2 -1
  40. package/dist/esm/private/util-common.js +1 -1
  41. package/dist/esm/proto-base64.js +135 -0
  42. package/dist/types/google/protobuf/any_pb.d.ts +5 -5
  43. package/dist/types/google/protobuf/api_pb.d.ts +2 -2
  44. package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +2 -2
  45. package/dist/types/google/protobuf/descriptor_pb.d.ts +18 -5
  46. package/dist/types/google/protobuf/duration_pb.d.ts +2 -2
  47. package/dist/types/google/protobuf/empty_pb.d.ts +2 -2
  48. package/dist/types/google/protobuf/field_mask_pb.d.ts +2 -2
  49. package/dist/types/google/protobuf/source_context_pb.d.ts +2 -2
  50. package/dist/types/google/protobuf/struct_pb.d.ts +2 -2
  51. package/dist/types/google/protobuf/timestamp_pb.d.ts +2 -2
  52. package/dist/types/google/protobuf/type_pb.d.ts +2 -2
  53. package/dist/types/google/protobuf/wrappers_pb.d.ts +2 -2
  54. package/dist/types/index-runtime.d.ts +19 -0
  55. package/dist/types/index-wkt.d.ts +12 -0
  56. package/dist/types/index.d.ts +2 -30
  57. package/dist/types/message-type.d.ts +2 -1
  58. package/dist/types/message.d.ts +4 -6
  59. package/dist/types/private/enum.d.ts +9 -0
  60. package/dist/types/private/message-type.d.ts +10 -0
  61. package/dist/types/private/proto-runtime.d.ts +16 -11
  62. package/dist/types/private/util.d.ts +2 -2
  63. package/dist/types/proto-base64.d.ts +26 -0
  64. package/package.json +2 -3
  65. package/dist/cjs/private/base64.js +0 -132
  66. package/dist/esm/private/base64.js +0 -127
  67. package/dist/types/private/base64.d.ts +0 -18
@@ -1,40 +1,20 @@
1
1
  "use strict";
2
- /* eslint-disable */
3
- // @generated by protoc-gen-es v0.0.2-alpha.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
4
- // @generated from file google/protobuf/timestamp.proto (package google.protobuf, syntax proto3)
2
+ // Copyright 2021-2022 Buf Technologies, Inc.
5
3
  //
6
- // Protocol Buffers - Google's data interchange format
7
- // Copyright 2008 Google Inc. All rights reserved.
8
- // https://developers.google.com/protocol-buffers/
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
9
7
  //
10
- // Redistribution and use in source and binary forms, with or without
11
- // modification, are permitted provided that the following conditions are
12
- // met:
8
+ // http://www.apache.org/licenses/LICENSE-2.0
13
9
  //
14
- // * Redistributions of source code must retain the above copyright
15
- // notice, this list of conditions and the following disclaimer.
16
- // * Redistributions in binary form must reproduce the above
17
- // copyright notice, this list of conditions and the following disclaimer
18
- // in the documentation and/or other materials provided with the
19
- // distribution.
20
- // * Neither the name of Google Inc. nor the names of its
21
- // contributors may be used to endorse or promote products derived from
22
- // this software without specific prior written permission.
23
- //
24
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
35
15
  Object.defineProperty(exports, "__esModule", { value: true });
36
16
  exports.Timestamp = void 0;
37
- const index_js_1 = require("../../index.js");
17
+ const index_runtime_js_1 = require("../../index-runtime.js");
38
18
  /**
39
19
  * A Timestamp represents a point in time independent of any time zone or local
40
20
  * calendar, encoded as a count of seconds and fractions of seconds at
@@ -132,7 +112,7 @@ const index_js_1 = require("../../index.js");
132
112
  *
133
113
  * @generated from message google.protobuf.Timestamp
134
114
  */
135
- class Timestamp extends index_js_1.Message {
115
+ class Timestamp extends index_runtime_js_1.Message {
136
116
  constructor(data) {
137
117
  super();
138
118
  /**
@@ -142,7 +122,7 @@ class Timestamp extends index_js_1.Message {
142
122
  *
143
123
  * @generated from field: int64 seconds = 1;
144
124
  */
145
- this.seconds = index_js_1.protoInt64.zero;
125
+ this.seconds = index_runtime_js_1.protoInt64.zero;
146
126
  /**
147
127
  * Non-negative fractions of a second at nanosecond resolution. Negative
148
128
  * second values with fractions must still have non-negative nanos values
@@ -152,11 +132,11 @@ class Timestamp extends index_js_1.Message {
152
132
  * @generated from field: int32 nanos = 2;
153
133
  */
154
134
  this.nanos = 0;
155
- index_js_1.proto3.util.initPartial(data, this);
135
+ index_runtime_js_1.proto3.util.initPartial(data, this);
156
136
  }
157
137
  fromJson(json, options) {
158
138
  if (typeof json !== "string") {
159
- throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${index_js_1.proto3.json.debug(json)}`);
139
+ throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${index_runtime_js_1.proto3.json.debug(json)}`);
160
140
  }
161
141
  const matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
162
142
  if (!matches) {
@@ -169,7 +149,7 @@ class Timestamp extends index_js_1.Message {
169
149
  if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) {
170
150
  throw new Error(`cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);
171
151
  }
172
- this.seconds = index_js_1.protoInt64.parse(ms / 1000);
152
+ this.seconds = index_runtime_js_1.protoInt64.parse(ms / 1000);
173
153
  this.nanos = 0;
174
154
  if (matches[7]) {
175
155
  this.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
@@ -208,7 +188,7 @@ class Timestamp extends index_js_1.Message {
208
188
  static fromDate(date) {
209
189
  const ms = date.getTime();
210
190
  return new Timestamp({
211
- seconds: index_js_1.protoInt64.parse(Math.floor(ms / 1000)),
191
+ seconds: index_runtime_js_1.protoInt64.parse(Math.floor(ms / 1000)),
212
192
  nanos: (ms % 1000) * 1000000,
213
193
  });
214
194
  }
@@ -222,13 +202,13 @@ class Timestamp extends index_js_1.Message {
222
202
  return new Timestamp().fromJsonString(jsonString, options);
223
203
  }
224
204
  static equals(a, b) {
225
- return index_js_1.proto3.util.equals(Timestamp, a, b);
205
+ return index_runtime_js_1.proto3.util.equals(Timestamp, a, b);
226
206
  }
227
207
  }
228
208
  exports.Timestamp = Timestamp;
229
- Timestamp.runtime = index_js_1.proto3;
209
+ Timestamp.runtime = index_runtime_js_1.proto3;
230
210
  Timestamp.typeName = "google.protobuf.Timestamp";
231
- Timestamp.fields = index_js_1.proto3.util.newFieldList(() => [
211
+ Timestamp.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
232
212
  { no: 1, name: "seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
233
213
  { no: 2, name: "nanos", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
234
214
  ]);
@@ -1,40 +1,20 @@
1
1
  "use strict";
2
- /* eslint-disable */
3
- // @generated by protoc-gen-es v0.0.2-alpha.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
4
- // @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
2
+ // Copyright 2021-2022 Buf Technologies, Inc.
5
3
  //
6
- // Protocol Buffers - Google's data interchange format
7
- // Copyright 2008 Google Inc. All rights reserved.
8
- // https://developers.google.com/protocol-buffers/
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
9
7
  //
10
- // Redistribution and use in source and binary forms, with or without
11
- // modification, are permitted provided that the following conditions are
12
- // met:
8
+ // http://www.apache.org/licenses/LICENSE-2.0
13
9
  //
14
- // * Redistributions of source code must retain the above copyright
15
- // notice, this list of conditions and the following disclaimer.
16
- // * Redistributions in binary form must reproduce the above
17
- // copyright notice, this list of conditions and the following disclaimer
18
- // in the documentation and/or other materials provided with the
19
- // distribution.
20
- // * Neither the name of Google Inc. nor the names of its
21
- // contributors may be used to endorse or promote products derived from
22
- // this software without specific prior written permission.
23
- //
24
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
35
15
  Object.defineProperty(exports, "__esModule", { value: true });
36
16
  exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
37
- const index_js_1 = require("../../index.js");
17
+ const index_runtime_js_1 = require("../../index-runtime.js");
38
18
  const source_context_pb_js_1 = require("./source_context_pb.js");
39
19
  const any_pb_js_1 = require("./any_pb.js");
40
20
  /**
@@ -58,7 +38,7 @@ var Syntax;
58
38
  Syntax[Syntax["PROTO3"] = 1] = "PROTO3";
59
39
  })(Syntax = exports.Syntax || (exports.Syntax = {}));
60
40
  // Retrieve enum metadata with: proto3.getEnumType(Syntax)
61
- index_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [
41
+ index_runtime_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [
62
42
  { no: 0, name: "SYNTAX_PROTO2" },
63
43
  { no: 1, name: "SYNTAX_PROTO3" },
64
44
  ]);
@@ -67,7 +47,7 @@ index_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [
67
47
  *
68
48
  * @generated from message google.protobuf.Type
69
49
  */
70
- class Type extends index_js_1.Message {
50
+ class Type extends index_runtime_js_1.Message {
71
51
  constructor(data) {
72
52
  super();
73
53
  /**
@@ -100,7 +80,7 @@ class Type extends index_js_1.Message {
100
80
  * @generated from field: google.protobuf.Syntax syntax = 6;
101
81
  */
102
82
  this.syntax = Syntax.PROTO2;
103
- index_js_1.proto3.util.initPartial(data, this);
83
+ index_runtime_js_1.proto3.util.initPartial(data, this);
104
84
  }
105
85
  static fromBinary(bytes, options) {
106
86
  return new Type().fromBinary(bytes, options);
@@ -112,26 +92,26 @@ class Type extends index_js_1.Message {
112
92
  return new Type().fromJsonString(jsonString, options);
113
93
  }
114
94
  static equals(a, b) {
115
- return index_js_1.proto3.util.equals(Type, a, b);
95
+ return index_runtime_js_1.proto3.util.equals(Type, a, b);
116
96
  }
117
97
  }
118
98
  exports.Type = Type;
119
- Type.runtime = index_js_1.proto3;
99
+ Type.runtime = index_runtime_js_1.proto3;
120
100
  Type.typeName = "google.protobuf.Type";
121
- Type.fields = index_js_1.proto3.util.newFieldList(() => [
101
+ Type.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
122
102
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
103
  { no: 2, name: "fields", kind: "message", T: Field, repeated: true },
124
104
  { no: 3, name: "oneofs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
125
105
  { no: 4, name: "options", kind: "message", T: Option, repeated: true },
126
106
  { no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
127
- { no: 6, name: "syntax", kind: "enum", T: index_js_1.proto3.getEnumType(Syntax) },
107
+ { no: 6, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Syntax) },
128
108
  ]);
129
109
  /**
130
110
  * A single field of a message type.
131
111
  *
132
112
  * @generated from message google.protobuf.Field
133
113
  */
134
- class Field extends index_js_1.Message {
114
+ class Field extends index_runtime_js_1.Message {
135
115
  constructor(data) {
136
116
  super();
137
117
  /**
@@ -196,7 +176,7 @@ class Field extends index_js_1.Message {
196
176
  * @generated from field: string default_value = 11;
197
177
  */
198
178
  this.defaultValue = "";
199
- index_js_1.proto3.util.initPartial(data, this);
179
+ index_runtime_js_1.proto3.util.initPartial(data, this);
200
180
  }
201
181
  static fromBinary(bytes, options) {
202
182
  return new Field().fromBinary(bytes, options);
@@ -208,15 +188,15 @@ class Field extends index_js_1.Message {
208
188
  return new Field().fromJsonString(jsonString, options);
209
189
  }
210
190
  static equals(a, b) {
211
- return index_js_1.proto3.util.equals(Field, a, b);
191
+ return index_runtime_js_1.proto3.util.equals(Field, a, b);
212
192
  }
213
193
  }
214
194
  exports.Field = Field;
215
- Field.runtime = index_js_1.proto3;
195
+ Field.runtime = index_runtime_js_1.proto3;
216
196
  Field.typeName = "google.protobuf.Field";
217
- Field.fields = index_js_1.proto3.util.newFieldList(() => [
218
- { no: 1, name: "kind", kind: "enum", T: index_js_1.proto3.getEnumType(Field_Kind) },
219
- { no: 2, name: "cardinality", kind: "enum", T: index_js_1.proto3.getEnumType(Field_Cardinality) },
197
+ Field.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
198
+ { no: 1, name: "kind", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Field_Kind) },
199
+ { no: 2, name: "cardinality", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Field_Cardinality) },
220
200
  { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
221
201
  { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
202
  { no: 6, name: "type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -349,7 +329,7 @@ var Field_Kind;
349
329
  Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64";
350
330
  })(Field_Kind = exports.Field_Kind || (exports.Field_Kind = {}));
351
331
  // Retrieve enum metadata with: proto3.getEnumType(Field_Kind)
352
- index_js_1.proto3.util.setEnumType(Field_Kind, "google.protobuf.Field.Kind", [
332
+ index_runtime_js_1.proto3.util.setEnumType(Field_Kind, "google.protobuf.Field.Kind", [
353
333
  { no: 0, name: "TYPE_UNKNOWN" },
354
334
  { no: 1, name: "TYPE_DOUBLE" },
355
335
  { no: 2, name: "TYPE_FLOAT" },
@@ -403,7 +383,7 @@ var Field_Cardinality;
403
383
  Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED";
404
384
  })(Field_Cardinality = exports.Field_Cardinality || (exports.Field_Cardinality = {}));
405
385
  // Retrieve enum metadata with: proto3.getEnumType(Field_Cardinality)
406
- index_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Cardinality", [
386
+ index_runtime_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Cardinality", [
407
387
  { no: 0, name: "CARDINALITY_UNKNOWN" },
408
388
  { no: 1, name: "CARDINALITY_OPTIONAL" },
409
389
  { no: 2, name: "CARDINALITY_REQUIRED" },
@@ -414,7 +394,7 @@ index_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Car
414
394
  *
415
395
  * @generated from message google.protobuf.Enum
416
396
  */
417
- class Enum extends index_js_1.Message {
397
+ class Enum extends index_runtime_js_1.Message {
418
398
  constructor(data) {
419
399
  super();
420
400
  /**
@@ -441,7 +421,7 @@ class Enum extends index_js_1.Message {
441
421
  * @generated from field: google.protobuf.Syntax syntax = 5;
442
422
  */
443
423
  this.syntax = Syntax.PROTO2;
444
- index_js_1.proto3.util.initPartial(data, this);
424
+ index_runtime_js_1.proto3.util.initPartial(data, this);
445
425
  }
446
426
  static fromBinary(bytes, options) {
447
427
  return new Enum().fromBinary(bytes, options);
@@ -453,25 +433,25 @@ class Enum extends index_js_1.Message {
453
433
  return new Enum().fromJsonString(jsonString, options);
454
434
  }
455
435
  static equals(a, b) {
456
- return index_js_1.proto3.util.equals(Enum, a, b);
436
+ return index_runtime_js_1.proto3.util.equals(Enum, a, b);
457
437
  }
458
438
  }
459
439
  exports.Enum = Enum;
460
- Enum.runtime = index_js_1.proto3;
440
+ Enum.runtime = index_runtime_js_1.proto3;
461
441
  Enum.typeName = "google.protobuf.Enum";
462
- Enum.fields = index_js_1.proto3.util.newFieldList(() => [
442
+ Enum.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
463
443
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
464
444
  { no: 2, name: "enumvalue", kind: "message", T: EnumValue, repeated: true },
465
445
  { no: 3, name: "options", kind: "message", T: Option, repeated: true },
466
446
  { no: 4, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
467
- { no: 5, name: "syntax", kind: "enum", T: index_js_1.proto3.getEnumType(Syntax) },
447
+ { no: 5, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Syntax) },
468
448
  ]);
469
449
  /**
470
450
  * Enum value definition.
471
451
  *
472
452
  * @generated from message google.protobuf.EnumValue
473
453
  */
474
- class EnumValue extends index_js_1.Message {
454
+ class EnumValue extends index_runtime_js_1.Message {
475
455
  constructor(data) {
476
456
  super();
477
457
  /**
@@ -492,7 +472,7 @@ class EnumValue extends index_js_1.Message {
492
472
  * @generated from field: repeated google.protobuf.Option options = 3;
493
473
  */
494
474
  this.options = [];
495
- index_js_1.proto3.util.initPartial(data, this);
475
+ index_runtime_js_1.proto3.util.initPartial(data, this);
496
476
  }
497
477
  static fromBinary(bytes, options) {
498
478
  return new EnumValue().fromBinary(bytes, options);
@@ -504,13 +484,13 @@ class EnumValue extends index_js_1.Message {
504
484
  return new EnumValue().fromJsonString(jsonString, options);
505
485
  }
506
486
  static equals(a, b) {
507
- return index_js_1.proto3.util.equals(EnumValue, a, b);
487
+ return index_runtime_js_1.proto3.util.equals(EnumValue, a, b);
508
488
  }
509
489
  }
510
490
  exports.EnumValue = EnumValue;
511
- EnumValue.runtime = index_js_1.proto3;
491
+ EnumValue.runtime = index_runtime_js_1.proto3;
512
492
  EnumValue.typeName = "google.protobuf.EnumValue";
513
- EnumValue.fields = index_js_1.proto3.util.newFieldList(() => [
493
+ EnumValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
514
494
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
515
495
  { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
516
496
  { no: 3, name: "options", kind: "message", T: Option, repeated: true },
@@ -521,7 +501,7 @@ EnumValue.fields = index_js_1.proto3.util.newFieldList(() => [
521
501
  *
522
502
  * @generated from message google.protobuf.Option
523
503
  */
524
- class Option extends index_js_1.Message {
504
+ class Option extends index_runtime_js_1.Message {
525
505
  constructor(data) {
526
506
  super();
527
507
  /**
@@ -533,7 +513,7 @@ class Option extends index_js_1.Message {
533
513
  * @generated from field: string name = 1;
534
514
  */
535
515
  this.name = "";
536
- index_js_1.proto3.util.initPartial(data, this);
516
+ index_runtime_js_1.proto3.util.initPartial(data, this);
537
517
  }
538
518
  static fromBinary(bytes, options) {
539
519
  return new Option().fromBinary(bytes, options);
@@ -545,13 +525,13 @@ class Option extends index_js_1.Message {
545
525
  return new Option().fromJsonString(jsonString, options);
546
526
  }
547
527
  static equals(a, b) {
548
- return index_js_1.proto3.util.equals(Option, a, b);
528
+ return index_runtime_js_1.proto3.util.equals(Option, a, b);
549
529
  }
550
530
  }
551
531
  exports.Option = Option;
552
- Option.runtime = index_js_1.proto3;
532
+ Option.runtime = index_runtime_js_1.proto3;
553
533
  Option.typeName = "google.protobuf.Option";
554
- Option.fields = index_js_1.proto3.util.newFieldList(() => [
534
+ Option.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
555
535
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
556
536
  { no: 2, name: "value", kind: "message", T: any_pb_js_1.Any },
557
537
  ]);