@bufbuild/protobuf 0.0.4 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/binary-encoding.js +2 -2
- package/dist/cjs/descriptor-registry.js +18 -60
- package/dist/cjs/descriptor-set.js +15 -37
- package/dist/cjs/google/protobuf/any_pb.js +11 -8
- package/dist/cjs/google/protobuf/api_pb.js +19 -18
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +23 -22
- package/dist/cjs/google/protobuf/descriptor_pb.js +149 -148
- package/dist/cjs/google/protobuf/duration_pb.js +14 -12
- package/dist/cjs/google/protobuf/empty_pb.js +7 -6
- package/dist/cjs/google/protobuf/field_mask_pb.js +8 -7
- package/dist/cjs/google/protobuf/source_context_pb.js +7 -6
- package/dist/cjs/google/protobuf/struct_pb.js +26 -22
- package/dist/cjs/google/protobuf/timestamp_pb.js +12 -10
- package/dist/cjs/google/protobuf/type_pb.js +37 -33
- package/dist/cjs/google/protobuf/wrappers_pb.js +69 -66
- package/dist/cjs/index.js +40 -4
- package/dist/cjs/message.js +2 -1
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/private/binary-format-common.js +4 -3
- package/dist/cjs/private/binary-format-proto2.js +3 -6
- package/dist/cjs/private/binary-format-proto3.js +2 -5
- package/dist/cjs/private/enum.js +1 -1
- package/dist/cjs/private/json-format-common.js +6 -5
- package/dist/cjs/private/message-type.js +2 -1
- package/dist/cjs/proto-int64.js +1 -1
- package/dist/cjs/proto2.js +6 -8
- package/dist/cjs/proto3.js +9 -12
- package/dist/cjs/type-registry.js +58 -13
- package/dist/esm/binary-encoding.js +2 -2
- package/dist/esm/descriptor-registry.js +18 -60
- package/dist/esm/descriptor-set.js +15 -37
- package/dist/esm/google/protobuf/any_pb.js +6 -3
- package/dist/esm/google/protobuf/api_pb.js +2 -1
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +2 -1
- package/dist/esm/google/protobuf/descriptor_pb.js +2 -1
- package/dist/esm/google/protobuf/duration_pb.js +4 -2
- package/dist/esm/google/protobuf/empty_pb.js +2 -1
- package/dist/esm/google/protobuf/field_mask_pb.js +2 -1
- package/dist/esm/google/protobuf/source_context_pb.js +2 -1
- package/dist/esm/google/protobuf/struct_pb.js +6 -2
- package/dist/esm/google/protobuf/timestamp_pb.js +3 -1
- package/dist/esm/google/protobuf/type_pb.js +5 -1
- package/dist/esm/google/protobuf/wrappers_pb.js +4 -1
- package/dist/esm/index.js +25 -4
- package/dist/esm/message.js +2 -1
- package/dist/esm/private/binary-format-common.js +4 -3
- package/dist/esm/private/binary-format-proto2.js +3 -6
- package/dist/esm/private/binary-format-proto3.js +2 -5
- package/dist/esm/private/enum.js +1 -1
- package/dist/esm/private/json-format-common.js +6 -5
- package/dist/esm/private/message-type.js +2 -1
- package/dist/esm/proto-int64.js +1 -1
- package/dist/esm/proto2.js +6 -8
- package/dist/esm/proto3.js +9 -12
- package/dist/esm/type-registry.js +58 -13
- package/dist/types/google/protobuf/any_pb.d.ts +6 -2
- package/dist/types/google/protobuf/api_pb.d.ts +5 -2
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +5 -2
- package/dist/types/google/protobuf/descriptor_pb.d.ts +5 -2
- package/dist/types/google/protobuf/duration_pb.d.ts +5 -2
- package/dist/types/google/protobuf/empty_pb.d.ts +5 -2
- package/dist/types/google/protobuf/field_mask_pb.d.ts +5 -2
- package/dist/types/google/protobuf/source_context_pb.d.ts +5 -2
- package/dist/types/google/protobuf/struct_pb.d.ts +5 -2
- package/dist/types/google/protobuf/timestamp_pb.d.ts +5 -2
- package/dist/types/google/protobuf/type_pb.d.ts +5 -2
- package/dist/types/google/protobuf/wrappers_pb.d.ts +5 -2
- package/dist/types/index.d.ts +31 -2
- package/dist/types/type-registry.d.ts +35 -2
- package/package.json +3 -3
- package/dist/cjs/index-runtime.js +0 -42
- package/dist/cjs/index-wkt.js +0 -42
- package/dist/esm/index-runtime.js +0 -25
- package/dist/esm/index-wkt.js +0 -26
- package/dist/types/index-runtime.d.ts +0 -19
- package/dist/types/index-wkt.d.ts +0 -12
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
|
|
17
|
-
|
|
17
|
+
// @generated by protoc-gen-es v0.0.7 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
|
+
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
19
|
+
/* eslint-disable */
|
|
20
|
+
const proto3_js_1 = require("../../proto3.js");
|
|
21
|
+
const message_js_1 = require("../../message.js");
|
|
18
22
|
const source_context_pb_js_1 = require("./source_context_pb.js");
|
|
19
23
|
const any_pb_js_1 = require("./any_pb.js");
|
|
20
24
|
/**
|
|
@@ -38,7 +42,7 @@ var Syntax;
|
|
|
38
42
|
Syntax[Syntax["PROTO3"] = 1] = "PROTO3";
|
|
39
43
|
})(Syntax = exports.Syntax || (exports.Syntax = {}));
|
|
40
44
|
// Retrieve enum metadata with: proto3.getEnumType(Syntax)
|
|
41
|
-
|
|
45
|
+
proto3_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [
|
|
42
46
|
{ no: 0, name: "SYNTAX_PROTO2" },
|
|
43
47
|
{ no: 1, name: "SYNTAX_PROTO3" },
|
|
44
48
|
]);
|
|
@@ -47,7 +51,7 @@ index_runtime_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [
|
|
|
47
51
|
*
|
|
48
52
|
* @generated from message google.protobuf.Type
|
|
49
53
|
*/
|
|
50
|
-
class Type extends
|
|
54
|
+
class Type extends message_js_1.Message {
|
|
51
55
|
constructor(data) {
|
|
52
56
|
super();
|
|
53
57
|
/**
|
|
@@ -80,7 +84,7 @@ class Type extends index_runtime_js_1.Message {
|
|
|
80
84
|
* @generated from field: google.protobuf.Syntax syntax = 6;
|
|
81
85
|
*/
|
|
82
86
|
this.syntax = Syntax.PROTO2;
|
|
83
|
-
|
|
87
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
84
88
|
}
|
|
85
89
|
static fromBinary(bytes, options) {
|
|
86
90
|
return new Type().fromBinary(bytes, options);
|
|
@@ -92,26 +96,26 @@ class Type extends index_runtime_js_1.Message {
|
|
|
92
96
|
return new Type().fromJsonString(jsonString, options);
|
|
93
97
|
}
|
|
94
98
|
static equals(a, b) {
|
|
95
|
-
return
|
|
99
|
+
return proto3_js_1.proto3.util.equals(Type, a, b);
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
exports.Type = Type;
|
|
99
|
-
Type.runtime =
|
|
103
|
+
Type.runtime = proto3_js_1.proto3;
|
|
100
104
|
Type.typeName = "google.protobuf.Type";
|
|
101
|
-
Type.fields =
|
|
105
|
+
Type.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
102
106
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
107
|
{ no: 2, name: "fields", kind: "message", T: Field, repeated: true },
|
|
104
108
|
{ no: 3, name: "oneofs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
105
109
|
{ no: 4, name: "options", kind: "message", T: Option, repeated: true },
|
|
106
110
|
{ no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
|
|
107
|
-
{ no: 6, name: "syntax", kind: "enum", T:
|
|
111
|
+
{ no: 6, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(Syntax) },
|
|
108
112
|
]);
|
|
109
113
|
/**
|
|
110
114
|
* A single field of a message type.
|
|
111
115
|
*
|
|
112
116
|
* @generated from message google.protobuf.Field
|
|
113
117
|
*/
|
|
114
|
-
class Field extends
|
|
118
|
+
class Field extends message_js_1.Message {
|
|
115
119
|
constructor(data) {
|
|
116
120
|
super();
|
|
117
121
|
/**
|
|
@@ -176,7 +180,7 @@ class Field extends index_runtime_js_1.Message {
|
|
|
176
180
|
* @generated from field: string default_value = 11;
|
|
177
181
|
*/
|
|
178
182
|
this.defaultValue = "";
|
|
179
|
-
|
|
183
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
180
184
|
}
|
|
181
185
|
static fromBinary(bytes, options) {
|
|
182
186
|
return new Field().fromBinary(bytes, options);
|
|
@@ -188,15 +192,15 @@ class Field extends index_runtime_js_1.Message {
|
|
|
188
192
|
return new Field().fromJsonString(jsonString, options);
|
|
189
193
|
}
|
|
190
194
|
static equals(a, b) {
|
|
191
|
-
return
|
|
195
|
+
return proto3_js_1.proto3.util.equals(Field, a, b);
|
|
192
196
|
}
|
|
193
197
|
}
|
|
194
198
|
exports.Field = Field;
|
|
195
|
-
Field.runtime =
|
|
199
|
+
Field.runtime = proto3_js_1.proto3;
|
|
196
200
|
Field.typeName = "google.protobuf.Field";
|
|
197
|
-
Field.fields =
|
|
198
|
-
{ no: 1, name: "kind", kind: "enum", T:
|
|
199
|
-
{ no: 2, name: "cardinality", kind: "enum", T:
|
|
201
|
+
Field.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
202
|
+
{ no: 1, name: "kind", kind: "enum", T: proto3_js_1.proto3.getEnumType(Field_Kind) },
|
|
203
|
+
{ no: 2, name: "cardinality", kind: "enum", T: proto3_js_1.proto3.getEnumType(Field_Cardinality) },
|
|
200
204
|
{ no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
201
205
|
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
206
|
{ no: 6, name: "type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -329,7 +333,7 @@ var Field_Kind;
|
|
|
329
333
|
Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
|
330
334
|
})(Field_Kind = exports.Field_Kind || (exports.Field_Kind = {}));
|
|
331
335
|
// Retrieve enum metadata with: proto3.getEnumType(Field_Kind)
|
|
332
|
-
|
|
336
|
+
proto3_js_1.proto3.util.setEnumType(Field_Kind, "google.protobuf.Field.Kind", [
|
|
333
337
|
{ no: 0, name: "TYPE_UNKNOWN" },
|
|
334
338
|
{ no: 1, name: "TYPE_DOUBLE" },
|
|
335
339
|
{ no: 2, name: "TYPE_FLOAT" },
|
|
@@ -383,7 +387,7 @@ var Field_Cardinality;
|
|
|
383
387
|
Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED";
|
|
384
388
|
})(Field_Cardinality = exports.Field_Cardinality || (exports.Field_Cardinality = {}));
|
|
385
389
|
// Retrieve enum metadata with: proto3.getEnumType(Field_Cardinality)
|
|
386
|
-
|
|
390
|
+
proto3_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Cardinality", [
|
|
387
391
|
{ no: 0, name: "CARDINALITY_UNKNOWN" },
|
|
388
392
|
{ no: 1, name: "CARDINALITY_OPTIONAL" },
|
|
389
393
|
{ no: 2, name: "CARDINALITY_REQUIRED" },
|
|
@@ -394,7 +398,7 @@ index_runtime_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.F
|
|
|
394
398
|
*
|
|
395
399
|
* @generated from message google.protobuf.Enum
|
|
396
400
|
*/
|
|
397
|
-
class Enum extends
|
|
401
|
+
class Enum extends message_js_1.Message {
|
|
398
402
|
constructor(data) {
|
|
399
403
|
super();
|
|
400
404
|
/**
|
|
@@ -421,7 +425,7 @@ class Enum extends index_runtime_js_1.Message {
|
|
|
421
425
|
* @generated from field: google.protobuf.Syntax syntax = 5;
|
|
422
426
|
*/
|
|
423
427
|
this.syntax = Syntax.PROTO2;
|
|
424
|
-
|
|
428
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
425
429
|
}
|
|
426
430
|
static fromBinary(bytes, options) {
|
|
427
431
|
return new Enum().fromBinary(bytes, options);
|
|
@@ -433,25 +437,25 @@ class Enum extends index_runtime_js_1.Message {
|
|
|
433
437
|
return new Enum().fromJsonString(jsonString, options);
|
|
434
438
|
}
|
|
435
439
|
static equals(a, b) {
|
|
436
|
-
return
|
|
440
|
+
return proto3_js_1.proto3.util.equals(Enum, a, b);
|
|
437
441
|
}
|
|
438
442
|
}
|
|
439
443
|
exports.Enum = Enum;
|
|
440
|
-
Enum.runtime =
|
|
444
|
+
Enum.runtime = proto3_js_1.proto3;
|
|
441
445
|
Enum.typeName = "google.protobuf.Enum";
|
|
442
|
-
Enum.fields =
|
|
446
|
+
Enum.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
443
447
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
444
448
|
{ no: 2, name: "enumvalue", kind: "message", T: EnumValue, repeated: true },
|
|
445
449
|
{ no: 3, name: "options", kind: "message", T: Option, repeated: true },
|
|
446
450
|
{ no: 4, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
|
|
447
|
-
{ no: 5, name: "syntax", kind: "enum", T:
|
|
451
|
+
{ no: 5, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(Syntax) },
|
|
448
452
|
]);
|
|
449
453
|
/**
|
|
450
454
|
* Enum value definition.
|
|
451
455
|
*
|
|
452
456
|
* @generated from message google.protobuf.EnumValue
|
|
453
457
|
*/
|
|
454
|
-
class EnumValue extends
|
|
458
|
+
class EnumValue extends message_js_1.Message {
|
|
455
459
|
constructor(data) {
|
|
456
460
|
super();
|
|
457
461
|
/**
|
|
@@ -472,7 +476,7 @@ class EnumValue extends index_runtime_js_1.Message {
|
|
|
472
476
|
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
473
477
|
*/
|
|
474
478
|
this.options = [];
|
|
475
|
-
|
|
479
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
476
480
|
}
|
|
477
481
|
static fromBinary(bytes, options) {
|
|
478
482
|
return new EnumValue().fromBinary(bytes, options);
|
|
@@ -484,13 +488,13 @@ class EnumValue extends index_runtime_js_1.Message {
|
|
|
484
488
|
return new EnumValue().fromJsonString(jsonString, options);
|
|
485
489
|
}
|
|
486
490
|
static equals(a, b) {
|
|
487
|
-
return
|
|
491
|
+
return proto3_js_1.proto3.util.equals(EnumValue, a, b);
|
|
488
492
|
}
|
|
489
493
|
}
|
|
490
494
|
exports.EnumValue = EnumValue;
|
|
491
|
-
EnumValue.runtime =
|
|
495
|
+
EnumValue.runtime = proto3_js_1.proto3;
|
|
492
496
|
EnumValue.typeName = "google.protobuf.EnumValue";
|
|
493
|
-
EnumValue.fields =
|
|
497
|
+
EnumValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
494
498
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
495
499
|
{ no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
496
500
|
{ no: 3, name: "options", kind: "message", T: Option, repeated: true },
|
|
@@ -501,7 +505,7 @@ EnumValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [
|
|
|
501
505
|
*
|
|
502
506
|
* @generated from message google.protobuf.Option
|
|
503
507
|
*/
|
|
504
|
-
class Option extends
|
|
508
|
+
class Option extends message_js_1.Message {
|
|
505
509
|
constructor(data) {
|
|
506
510
|
super();
|
|
507
511
|
/**
|
|
@@ -513,7 +517,7 @@ class Option extends index_runtime_js_1.Message {
|
|
|
513
517
|
* @generated from field: string name = 1;
|
|
514
518
|
*/
|
|
515
519
|
this.name = "";
|
|
516
|
-
|
|
520
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
517
521
|
}
|
|
518
522
|
static fromBinary(bytes, options) {
|
|
519
523
|
return new Option().fromBinary(bytes, options);
|
|
@@ -525,13 +529,13 @@ class Option extends index_runtime_js_1.Message {
|
|
|
525
529
|
return new Option().fromJsonString(jsonString, options);
|
|
526
530
|
}
|
|
527
531
|
static equals(a, b) {
|
|
528
|
-
return
|
|
532
|
+
return proto3_js_1.proto3.util.equals(Option, a, b);
|
|
529
533
|
}
|
|
530
534
|
}
|
|
531
535
|
exports.Option = Option;
|
|
532
|
-
Option.runtime =
|
|
536
|
+
Option.runtime = proto3_js_1.proto3;
|
|
533
537
|
Option.typeName = "google.protobuf.Option";
|
|
534
|
-
Option.fields =
|
|
538
|
+
Option.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
535
539
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
536
540
|
{ no: 2, name: "value", kind: "message", T: any_pb_js_1.Any },
|
|
537
541
|
]);
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = void 0;
|
|
17
|
-
const
|
|
17
|
+
const message_js_1 = require("../../message.js");
|
|
18
|
+
const proto3_js_1 = require("../../proto3.js");
|
|
19
|
+
const field_js_1 = require("../../field.js");
|
|
20
|
+
const proto_int64_js_1 = require("../../proto-int64.js");
|
|
18
21
|
/**
|
|
19
22
|
* Wrapper message for `double`.
|
|
20
23
|
*
|
|
@@ -22,7 +25,7 @@ const index_runtime_js_1 = require("../../index-runtime.js");
|
|
|
22
25
|
*
|
|
23
26
|
* @generated from message google.protobuf.DoubleValue
|
|
24
27
|
*/
|
|
25
|
-
class DoubleValue extends
|
|
28
|
+
class DoubleValue extends message_js_1.Message {
|
|
26
29
|
constructor(data) {
|
|
27
30
|
super();
|
|
28
31
|
/**
|
|
@@ -31,14 +34,14 @@ class DoubleValue extends index_runtime_js_1.Message {
|
|
|
31
34
|
* @generated from field: double value = 1;
|
|
32
35
|
*/
|
|
33
36
|
this.value = 0;
|
|
34
|
-
|
|
37
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
35
38
|
}
|
|
36
39
|
toJson(options) {
|
|
37
|
-
return
|
|
40
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.DOUBLE, this.value, true);
|
|
38
41
|
}
|
|
39
42
|
fromJson(json, options) {
|
|
40
43
|
try {
|
|
41
|
-
this.value =
|
|
44
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.DOUBLE, json);
|
|
42
45
|
}
|
|
43
46
|
catch (e) {
|
|
44
47
|
let m = `cannot decode message google.protobuf.DoubleValue from JSON"`;
|
|
@@ -59,13 +62,13 @@ class DoubleValue extends index_runtime_js_1.Message {
|
|
|
59
62
|
return new DoubleValue().fromJsonString(jsonString, options);
|
|
60
63
|
}
|
|
61
64
|
static equals(a, b) {
|
|
62
|
-
return
|
|
65
|
+
return proto3_js_1.proto3.util.equals(DoubleValue, a, b);
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
exports.DoubleValue = DoubleValue;
|
|
66
|
-
DoubleValue.runtime =
|
|
69
|
+
DoubleValue.runtime = proto3_js_1.proto3;
|
|
67
70
|
DoubleValue.typeName = "google.protobuf.DoubleValue";
|
|
68
|
-
DoubleValue.fields =
|
|
71
|
+
DoubleValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
69
72
|
{ no: 1, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
70
73
|
]);
|
|
71
74
|
DoubleValue.fieldWrapper = {
|
|
@@ -83,7 +86,7 @@ DoubleValue.fieldWrapper = {
|
|
|
83
86
|
*
|
|
84
87
|
* @generated from message google.protobuf.FloatValue
|
|
85
88
|
*/
|
|
86
|
-
class FloatValue extends
|
|
89
|
+
class FloatValue extends message_js_1.Message {
|
|
87
90
|
constructor(data) {
|
|
88
91
|
super();
|
|
89
92
|
/**
|
|
@@ -92,14 +95,14 @@ class FloatValue extends index_runtime_js_1.Message {
|
|
|
92
95
|
* @generated from field: float value = 1;
|
|
93
96
|
*/
|
|
94
97
|
this.value = 0;
|
|
95
|
-
|
|
98
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
96
99
|
}
|
|
97
100
|
toJson(options) {
|
|
98
|
-
return
|
|
101
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.FLOAT, this.value, true);
|
|
99
102
|
}
|
|
100
103
|
fromJson(json, options) {
|
|
101
104
|
try {
|
|
102
|
-
this.value =
|
|
105
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.FLOAT, json);
|
|
103
106
|
}
|
|
104
107
|
catch (e) {
|
|
105
108
|
let m = `cannot decode message google.protobuf.FloatValue from JSON"`;
|
|
@@ -120,13 +123,13 @@ class FloatValue extends index_runtime_js_1.Message {
|
|
|
120
123
|
return new FloatValue().fromJsonString(jsonString, options);
|
|
121
124
|
}
|
|
122
125
|
static equals(a, b) {
|
|
123
|
-
return
|
|
126
|
+
return proto3_js_1.proto3.util.equals(FloatValue, a, b);
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
exports.FloatValue = FloatValue;
|
|
127
|
-
FloatValue.runtime =
|
|
130
|
+
FloatValue.runtime = proto3_js_1.proto3;
|
|
128
131
|
FloatValue.typeName = "google.protobuf.FloatValue";
|
|
129
|
-
FloatValue.fields =
|
|
132
|
+
FloatValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
130
133
|
{ no: 1, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
131
134
|
]);
|
|
132
135
|
FloatValue.fieldWrapper = {
|
|
@@ -144,7 +147,7 @@ FloatValue.fieldWrapper = {
|
|
|
144
147
|
*
|
|
145
148
|
* @generated from message google.protobuf.Int64Value
|
|
146
149
|
*/
|
|
147
|
-
class Int64Value extends
|
|
150
|
+
class Int64Value extends message_js_1.Message {
|
|
148
151
|
constructor(data) {
|
|
149
152
|
super();
|
|
150
153
|
/**
|
|
@@ -152,15 +155,15 @@ class Int64Value extends index_runtime_js_1.Message {
|
|
|
152
155
|
*
|
|
153
156
|
* @generated from field: int64 value = 1;
|
|
154
157
|
*/
|
|
155
|
-
this.value =
|
|
156
|
-
|
|
158
|
+
this.value = proto_int64_js_1.protoInt64.zero;
|
|
159
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
157
160
|
}
|
|
158
161
|
toJson(options) {
|
|
159
|
-
return
|
|
162
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.INT64, this.value, true);
|
|
160
163
|
}
|
|
161
164
|
fromJson(json, options) {
|
|
162
165
|
try {
|
|
163
|
-
this.value =
|
|
166
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.INT64, json);
|
|
164
167
|
}
|
|
165
168
|
catch (e) {
|
|
166
169
|
let m = `cannot decode message google.protobuf.Int64Value from JSON"`;
|
|
@@ -181,13 +184,13 @@ class Int64Value extends index_runtime_js_1.Message {
|
|
|
181
184
|
return new Int64Value().fromJsonString(jsonString, options);
|
|
182
185
|
}
|
|
183
186
|
static equals(a, b) {
|
|
184
|
-
return
|
|
187
|
+
return proto3_js_1.proto3.util.equals(Int64Value, a, b);
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
exports.Int64Value = Int64Value;
|
|
188
|
-
Int64Value.runtime =
|
|
191
|
+
Int64Value.runtime = proto3_js_1.proto3;
|
|
189
192
|
Int64Value.typeName = "google.protobuf.Int64Value";
|
|
190
|
-
Int64Value.fields =
|
|
193
|
+
Int64Value.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
191
194
|
{ no: 1, name: "value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
192
195
|
]);
|
|
193
196
|
Int64Value.fieldWrapper = {
|
|
@@ -205,7 +208,7 @@ Int64Value.fieldWrapper = {
|
|
|
205
208
|
*
|
|
206
209
|
* @generated from message google.protobuf.UInt64Value
|
|
207
210
|
*/
|
|
208
|
-
class UInt64Value extends
|
|
211
|
+
class UInt64Value extends message_js_1.Message {
|
|
209
212
|
constructor(data) {
|
|
210
213
|
super();
|
|
211
214
|
/**
|
|
@@ -213,15 +216,15 @@ class UInt64Value extends index_runtime_js_1.Message {
|
|
|
213
216
|
*
|
|
214
217
|
* @generated from field: uint64 value = 1;
|
|
215
218
|
*/
|
|
216
|
-
this.value =
|
|
217
|
-
|
|
219
|
+
this.value = proto_int64_js_1.protoInt64.zero;
|
|
220
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
218
221
|
}
|
|
219
222
|
toJson(options) {
|
|
220
|
-
return
|
|
223
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.UINT64, this.value, true);
|
|
221
224
|
}
|
|
222
225
|
fromJson(json, options) {
|
|
223
226
|
try {
|
|
224
|
-
this.value =
|
|
227
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.UINT64, json);
|
|
225
228
|
}
|
|
226
229
|
catch (e) {
|
|
227
230
|
let m = `cannot decode message google.protobuf.UInt64Value from JSON"`;
|
|
@@ -242,13 +245,13 @@ class UInt64Value extends index_runtime_js_1.Message {
|
|
|
242
245
|
return new UInt64Value().fromJsonString(jsonString, options);
|
|
243
246
|
}
|
|
244
247
|
static equals(a, b) {
|
|
245
|
-
return
|
|
248
|
+
return proto3_js_1.proto3.util.equals(UInt64Value, a, b);
|
|
246
249
|
}
|
|
247
250
|
}
|
|
248
251
|
exports.UInt64Value = UInt64Value;
|
|
249
|
-
UInt64Value.runtime =
|
|
252
|
+
UInt64Value.runtime = proto3_js_1.proto3;
|
|
250
253
|
UInt64Value.typeName = "google.protobuf.UInt64Value";
|
|
251
|
-
UInt64Value.fields =
|
|
254
|
+
UInt64Value.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
252
255
|
{ no: 1, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
253
256
|
]);
|
|
254
257
|
UInt64Value.fieldWrapper = {
|
|
@@ -266,7 +269,7 @@ UInt64Value.fieldWrapper = {
|
|
|
266
269
|
*
|
|
267
270
|
* @generated from message google.protobuf.Int32Value
|
|
268
271
|
*/
|
|
269
|
-
class Int32Value extends
|
|
272
|
+
class Int32Value extends message_js_1.Message {
|
|
270
273
|
constructor(data) {
|
|
271
274
|
super();
|
|
272
275
|
/**
|
|
@@ -275,14 +278,14 @@ class Int32Value extends index_runtime_js_1.Message {
|
|
|
275
278
|
* @generated from field: int32 value = 1;
|
|
276
279
|
*/
|
|
277
280
|
this.value = 0;
|
|
278
|
-
|
|
281
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
279
282
|
}
|
|
280
283
|
toJson(options) {
|
|
281
|
-
return
|
|
284
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.INT32, this.value, true);
|
|
282
285
|
}
|
|
283
286
|
fromJson(json, options) {
|
|
284
287
|
try {
|
|
285
|
-
this.value =
|
|
288
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.INT32, json);
|
|
286
289
|
}
|
|
287
290
|
catch (e) {
|
|
288
291
|
let m = `cannot decode message google.protobuf.Int32Value from JSON"`;
|
|
@@ -303,13 +306,13 @@ class Int32Value extends index_runtime_js_1.Message {
|
|
|
303
306
|
return new Int32Value().fromJsonString(jsonString, options);
|
|
304
307
|
}
|
|
305
308
|
static equals(a, b) {
|
|
306
|
-
return
|
|
309
|
+
return proto3_js_1.proto3.util.equals(Int32Value, a, b);
|
|
307
310
|
}
|
|
308
311
|
}
|
|
309
312
|
exports.Int32Value = Int32Value;
|
|
310
|
-
Int32Value.runtime =
|
|
313
|
+
Int32Value.runtime = proto3_js_1.proto3;
|
|
311
314
|
Int32Value.typeName = "google.protobuf.Int32Value";
|
|
312
|
-
Int32Value.fields =
|
|
315
|
+
Int32Value.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
313
316
|
{ no: 1, name: "value", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
314
317
|
]);
|
|
315
318
|
Int32Value.fieldWrapper = {
|
|
@@ -327,7 +330,7 @@ Int32Value.fieldWrapper = {
|
|
|
327
330
|
*
|
|
328
331
|
* @generated from message google.protobuf.UInt32Value
|
|
329
332
|
*/
|
|
330
|
-
class UInt32Value extends
|
|
333
|
+
class UInt32Value extends message_js_1.Message {
|
|
331
334
|
constructor(data) {
|
|
332
335
|
super();
|
|
333
336
|
/**
|
|
@@ -336,14 +339,14 @@ class UInt32Value extends index_runtime_js_1.Message {
|
|
|
336
339
|
* @generated from field: uint32 value = 1;
|
|
337
340
|
*/
|
|
338
341
|
this.value = 0;
|
|
339
|
-
|
|
342
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
340
343
|
}
|
|
341
344
|
toJson(options) {
|
|
342
|
-
return
|
|
345
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.UINT32, this.value, true);
|
|
343
346
|
}
|
|
344
347
|
fromJson(json, options) {
|
|
345
348
|
try {
|
|
346
|
-
this.value =
|
|
349
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.UINT32, json);
|
|
347
350
|
}
|
|
348
351
|
catch (e) {
|
|
349
352
|
let m = `cannot decode message google.protobuf.UInt32Value from JSON"`;
|
|
@@ -364,13 +367,13 @@ class UInt32Value extends index_runtime_js_1.Message {
|
|
|
364
367
|
return new UInt32Value().fromJsonString(jsonString, options);
|
|
365
368
|
}
|
|
366
369
|
static equals(a, b) {
|
|
367
|
-
return
|
|
370
|
+
return proto3_js_1.proto3.util.equals(UInt32Value, a, b);
|
|
368
371
|
}
|
|
369
372
|
}
|
|
370
373
|
exports.UInt32Value = UInt32Value;
|
|
371
|
-
UInt32Value.runtime =
|
|
374
|
+
UInt32Value.runtime = proto3_js_1.proto3;
|
|
372
375
|
UInt32Value.typeName = "google.protobuf.UInt32Value";
|
|
373
|
-
UInt32Value.fields =
|
|
376
|
+
UInt32Value.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
374
377
|
{ no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
375
378
|
]);
|
|
376
379
|
UInt32Value.fieldWrapper = {
|
|
@@ -388,7 +391,7 @@ UInt32Value.fieldWrapper = {
|
|
|
388
391
|
*
|
|
389
392
|
* @generated from message google.protobuf.BoolValue
|
|
390
393
|
*/
|
|
391
|
-
class BoolValue extends
|
|
394
|
+
class BoolValue extends message_js_1.Message {
|
|
392
395
|
constructor(data) {
|
|
393
396
|
super();
|
|
394
397
|
/**
|
|
@@ -397,14 +400,14 @@ class BoolValue extends index_runtime_js_1.Message {
|
|
|
397
400
|
* @generated from field: bool value = 1;
|
|
398
401
|
*/
|
|
399
402
|
this.value = false;
|
|
400
|
-
|
|
403
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
401
404
|
}
|
|
402
405
|
toJson(options) {
|
|
403
|
-
return
|
|
406
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.BOOL, this.value, true);
|
|
404
407
|
}
|
|
405
408
|
fromJson(json, options) {
|
|
406
409
|
try {
|
|
407
|
-
this.value =
|
|
410
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.BOOL, json);
|
|
408
411
|
}
|
|
409
412
|
catch (e) {
|
|
410
413
|
let m = `cannot decode message google.protobuf.BoolValue from JSON"`;
|
|
@@ -425,13 +428,13 @@ class BoolValue extends index_runtime_js_1.Message {
|
|
|
425
428
|
return new BoolValue().fromJsonString(jsonString, options);
|
|
426
429
|
}
|
|
427
430
|
static equals(a, b) {
|
|
428
|
-
return
|
|
431
|
+
return proto3_js_1.proto3.util.equals(BoolValue, a, b);
|
|
429
432
|
}
|
|
430
433
|
}
|
|
431
434
|
exports.BoolValue = BoolValue;
|
|
432
|
-
BoolValue.runtime =
|
|
435
|
+
BoolValue.runtime = proto3_js_1.proto3;
|
|
433
436
|
BoolValue.typeName = "google.protobuf.BoolValue";
|
|
434
|
-
BoolValue.fields =
|
|
437
|
+
BoolValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
435
438
|
{ no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
436
439
|
]);
|
|
437
440
|
BoolValue.fieldWrapper = {
|
|
@@ -449,7 +452,7 @@ BoolValue.fieldWrapper = {
|
|
|
449
452
|
*
|
|
450
453
|
* @generated from message google.protobuf.StringValue
|
|
451
454
|
*/
|
|
452
|
-
class StringValue extends
|
|
455
|
+
class StringValue extends message_js_1.Message {
|
|
453
456
|
constructor(data) {
|
|
454
457
|
super();
|
|
455
458
|
/**
|
|
@@ -458,14 +461,14 @@ class StringValue extends index_runtime_js_1.Message {
|
|
|
458
461
|
* @generated from field: string value = 1;
|
|
459
462
|
*/
|
|
460
463
|
this.value = "";
|
|
461
|
-
|
|
464
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
462
465
|
}
|
|
463
466
|
toJson(options) {
|
|
464
|
-
return
|
|
467
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.STRING, this.value, true);
|
|
465
468
|
}
|
|
466
469
|
fromJson(json, options) {
|
|
467
470
|
try {
|
|
468
|
-
this.value =
|
|
471
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.STRING, json);
|
|
469
472
|
}
|
|
470
473
|
catch (e) {
|
|
471
474
|
let m = `cannot decode message google.protobuf.StringValue from JSON"`;
|
|
@@ -486,13 +489,13 @@ class StringValue extends index_runtime_js_1.Message {
|
|
|
486
489
|
return new StringValue().fromJsonString(jsonString, options);
|
|
487
490
|
}
|
|
488
491
|
static equals(a, b) {
|
|
489
|
-
return
|
|
492
|
+
return proto3_js_1.proto3.util.equals(StringValue, a, b);
|
|
490
493
|
}
|
|
491
494
|
}
|
|
492
495
|
exports.StringValue = StringValue;
|
|
493
|
-
StringValue.runtime =
|
|
496
|
+
StringValue.runtime = proto3_js_1.proto3;
|
|
494
497
|
StringValue.typeName = "google.protobuf.StringValue";
|
|
495
|
-
StringValue.fields =
|
|
498
|
+
StringValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
496
499
|
{ no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
497
500
|
]);
|
|
498
501
|
StringValue.fieldWrapper = {
|
|
@@ -510,7 +513,7 @@ StringValue.fieldWrapper = {
|
|
|
510
513
|
*
|
|
511
514
|
* @generated from message google.protobuf.BytesValue
|
|
512
515
|
*/
|
|
513
|
-
class BytesValue extends
|
|
516
|
+
class BytesValue extends message_js_1.Message {
|
|
514
517
|
constructor(data) {
|
|
515
518
|
super();
|
|
516
519
|
/**
|
|
@@ -519,14 +522,14 @@ class BytesValue extends index_runtime_js_1.Message {
|
|
|
519
522
|
* @generated from field: bytes value = 1;
|
|
520
523
|
*/
|
|
521
524
|
this.value = new Uint8Array(0);
|
|
522
|
-
|
|
525
|
+
proto3_js_1.proto3.util.initPartial(data, this);
|
|
523
526
|
}
|
|
524
527
|
toJson(options) {
|
|
525
|
-
return
|
|
528
|
+
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.BYTES, this.value, true);
|
|
526
529
|
}
|
|
527
530
|
fromJson(json, options) {
|
|
528
531
|
try {
|
|
529
|
-
this.value =
|
|
532
|
+
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.BYTES, json);
|
|
530
533
|
}
|
|
531
534
|
catch (e) {
|
|
532
535
|
let m = `cannot decode message google.protobuf.BytesValue from JSON"`;
|
|
@@ -547,13 +550,13 @@ class BytesValue extends index_runtime_js_1.Message {
|
|
|
547
550
|
return new BytesValue().fromJsonString(jsonString, options);
|
|
548
551
|
}
|
|
549
552
|
static equals(a, b) {
|
|
550
|
-
return
|
|
553
|
+
return proto3_js_1.proto3.util.equals(BytesValue, a, b);
|
|
551
554
|
}
|
|
552
555
|
}
|
|
553
556
|
exports.BytesValue = BytesValue;
|
|
554
|
-
BytesValue.runtime =
|
|
557
|
+
BytesValue.runtime = proto3_js_1.proto3;
|
|
555
558
|
BytesValue.typeName = "google.protobuf.BytesValue";
|
|
556
|
-
BytesValue.fields =
|
|
559
|
+
BytesValue.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
557
560
|
{ no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
558
561
|
]);
|
|
559
562
|
BytesValue.fieldWrapper = {
|