@technova-tech/olive-proto-lib 1.9.1 → 1.9.2
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/bills/bills.js +20 -0
- package/package.json +1 -1
- package/types/bills/bills.d.ts +5 -0
- package/google/protobuf/any.js +0 -113
- package/google/protobuf/struct.js +0 -357
- package/types/google/protobuf/any.d.ts +0 -27
- package/types/google/protobuf/struct.d.ts +0 -175
package/bills/bills.js
CHANGED
|
@@ -1664,6 +1664,9 @@ var com;
|
|
|
1664
1664
|
if ("quantity" in data && data.quantity != undefined) {
|
|
1665
1665
|
this.quantity = data.quantity;
|
|
1666
1666
|
}
|
|
1667
|
+
if ("paymentReference" in data && data.paymentReference != undefined) {
|
|
1668
|
+
this.paymentReference = data.paymentReference;
|
|
1669
|
+
}
|
|
1667
1670
|
}
|
|
1668
1671
|
}
|
|
1669
1672
|
get category() {
|
|
@@ -1714,6 +1717,12 @@ var com;
|
|
|
1714
1717
|
set quantity(value) {
|
|
1715
1718
|
pb_1.Message.setField(this, 8, value);
|
|
1716
1719
|
}
|
|
1720
|
+
get paymentReference() {
|
|
1721
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
1722
|
+
}
|
|
1723
|
+
set paymentReference(value) {
|
|
1724
|
+
pb_1.Message.setField(this, 9, value);
|
|
1725
|
+
}
|
|
1717
1726
|
static fromObject(data) {
|
|
1718
1727
|
const message = new PurchaseBillRequest({});
|
|
1719
1728
|
if (data.category != null) {
|
|
@@ -1740,6 +1749,9 @@ var com;
|
|
|
1740
1749
|
if (data.quantity != null) {
|
|
1741
1750
|
message.quantity = data.quantity;
|
|
1742
1751
|
}
|
|
1752
|
+
if (data.paymentReference != null) {
|
|
1753
|
+
message.paymentReference = data.paymentReference;
|
|
1754
|
+
}
|
|
1743
1755
|
return message;
|
|
1744
1756
|
}
|
|
1745
1757
|
toObject() {
|
|
@@ -1768,6 +1780,9 @@ var com;
|
|
|
1768
1780
|
if (this.quantity != null) {
|
|
1769
1781
|
data.quantity = this.quantity;
|
|
1770
1782
|
}
|
|
1783
|
+
if (this.paymentReference != null) {
|
|
1784
|
+
data.paymentReference = this.paymentReference;
|
|
1785
|
+
}
|
|
1771
1786
|
return data;
|
|
1772
1787
|
}
|
|
1773
1788
|
serialize(w) {
|
|
@@ -1788,6 +1803,8 @@ var com;
|
|
|
1788
1803
|
writer.writeString(7, this.bundleCode);
|
|
1789
1804
|
if (this.quantity != 0)
|
|
1790
1805
|
writer.writeUint32(8, this.quantity);
|
|
1806
|
+
if (this.paymentReference.length)
|
|
1807
|
+
writer.writeString(9, this.paymentReference);
|
|
1791
1808
|
if (!w)
|
|
1792
1809
|
return writer.getResultBuffer();
|
|
1793
1810
|
}
|
|
@@ -1821,6 +1838,9 @@ var com;
|
|
|
1821
1838
|
case 8:
|
|
1822
1839
|
message.quantity = reader.readUint32();
|
|
1823
1840
|
break;
|
|
1841
|
+
case 9:
|
|
1842
|
+
message.paymentReference = reader.readString();
|
|
1843
|
+
break;
|
|
1824
1844
|
default: reader.skipField();
|
|
1825
1845
|
}
|
|
1826
1846
|
}
|
package/package.json
CHANGED
package/types/bills/bills.d.ts
CHANGED
|
@@ -496,6 +496,7 @@ export declare namespace com.pkg.bills {
|
|
|
496
496
|
phone?: string;
|
|
497
497
|
bundleCode?: string;
|
|
498
498
|
quantity?: number;
|
|
499
|
+
paymentReference?: string;
|
|
499
500
|
});
|
|
500
501
|
get category(): string;
|
|
501
502
|
set category(value: string);
|
|
@@ -513,6 +514,8 @@ export declare namespace com.pkg.bills {
|
|
|
513
514
|
set bundleCode(value: string);
|
|
514
515
|
get quantity(): number;
|
|
515
516
|
set quantity(value: number);
|
|
517
|
+
get paymentReference(): string;
|
|
518
|
+
set paymentReference(value: string);
|
|
516
519
|
static fromObject(data: {
|
|
517
520
|
category?: string;
|
|
518
521
|
providerCode?: string;
|
|
@@ -522,6 +525,7 @@ export declare namespace com.pkg.bills {
|
|
|
522
525
|
phone?: string;
|
|
523
526
|
bundleCode?: string;
|
|
524
527
|
quantity?: number;
|
|
528
|
+
paymentReference?: string;
|
|
525
529
|
}): PurchaseBillRequest;
|
|
526
530
|
toObject(): {
|
|
527
531
|
category?: string | undefined;
|
|
@@ -532,6 +536,7 @@ export declare namespace com.pkg.bills {
|
|
|
532
536
|
phone?: string | undefined;
|
|
533
537
|
bundleCode?: string | undefined;
|
|
534
538
|
quantity?: number | undefined;
|
|
539
|
+
paymentReference?: string | undefined;
|
|
535
540
|
};
|
|
536
541
|
serialize(): Uint8Array;
|
|
537
542
|
serialize(w: pb_1.BinaryWriter): void;
|
package/google/protobuf/any.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.google = void 0;
|
|
27
|
-
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
|
-
var google;
|
|
29
|
-
(function (google) {
|
|
30
|
-
var protobuf;
|
|
31
|
-
(function (protobuf) {
|
|
32
|
-
class Any extends pb_1.Message {
|
|
33
|
-
#one_of_decls = [];
|
|
34
|
-
constructor(data) {
|
|
35
|
-
super();
|
|
36
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
37
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
38
|
-
if ("typeUrl" in data && data.typeUrl != undefined) {
|
|
39
|
-
this.typeUrl = data.typeUrl;
|
|
40
|
-
}
|
|
41
|
-
if ("value" in data && data.value != undefined) {
|
|
42
|
-
this.value = data.value;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
get typeUrl() {
|
|
47
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
48
|
-
}
|
|
49
|
-
set typeUrl(value) {
|
|
50
|
-
pb_1.Message.setField(this, 1, value);
|
|
51
|
-
}
|
|
52
|
-
get value() {
|
|
53
|
-
return pb_1.Message.getFieldWithDefault(this, 2, new Uint8Array(0));
|
|
54
|
-
}
|
|
55
|
-
set value(value) {
|
|
56
|
-
pb_1.Message.setField(this, 2, value);
|
|
57
|
-
}
|
|
58
|
-
static fromObject(data) {
|
|
59
|
-
const message = new Any({});
|
|
60
|
-
if (data.typeUrl != null) {
|
|
61
|
-
message.typeUrl = data.typeUrl;
|
|
62
|
-
}
|
|
63
|
-
if (data.value != null) {
|
|
64
|
-
message.value = data.value;
|
|
65
|
-
}
|
|
66
|
-
return message;
|
|
67
|
-
}
|
|
68
|
-
toObject() {
|
|
69
|
-
const data = {};
|
|
70
|
-
if (this.typeUrl != null) {
|
|
71
|
-
data.typeUrl = this.typeUrl;
|
|
72
|
-
}
|
|
73
|
-
if (this.value != null) {
|
|
74
|
-
data.value = this.value;
|
|
75
|
-
}
|
|
76
|
-
return data;
|
|
77
|
-
}
|
|
78
|
-
serialize(w) {
|
|
79
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
80
|
-
if (this.typeUrl.length)
|
|
81
|
-
writer.writeString(1, this.typeUrl);
|
|
82
|
-
if (this.value.length)
|
|
83
|
-
writer.writeBytes(2, this.value);
|
|
84
|
-
if (!w)
|
|
85
|
-
return writer.getResultBuffer();
|
|
86
|
-
}
|
|
87
|
-
static deserialize(bytes) {
|
|
88
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Any();
|
|
89
|
-
while (reader.nextField()) {
|
|
90
|
-
if (reader.isEndGroup())
|
|
91
|
-
break;
|
|
92
|
-
switch (reader.getFieldNumber()) {
|
|
93
|
-
case 1:
|
|
94
|
-
message.typeUrl = reader.readString();
|
|
95
|
-
break;
|
|
96
|
-
case 2:
|
|
97
|
-
message.value = reader.readBytes();
|
|
98
|
-
break;
|
|
99
|
-
default: reader.skipField();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return message;
|
|
103
|
-
}
|
|
104
|
-
serializeBinary() {
|
|
105
|
-
return this.serialize();
|
|
106
|
-
}
|
|
107
|
-
static deserializeBinary(bytes) {
|
|
108
|
-
return Any.deserialize(bytes);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
protobuf.Any = Any;
|
|
112
|
-
})(protobuf = google.protobuf || (google.protobuf = {}));
|
|
113
|
-
})(google || (exports.google = google = {}));
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.google = void 0;
|
|
27
|
-
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
|
-
var google;
|
|
29
|
-
(function (google) {
|
|
30
|
-
var protobuf;
|
|
31
|
-
(function (protobuf) {
|
|
32
|
-
let NullValue;
|
|
33
|
-
(function (NullValue) {
|
|
34
|
-
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
35
|
-
})(NullValue = protobuf.NullValue || (protobuf.NullValue = {}));
|
|
36
|
-
class Struct extends pb_1.Message {
|
|
37
|
-
#one_of_decls = [];
|
|
38
|
-
constructor(data) {
|
|
39
|
-
super();
|
|
40
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
41
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
42
|
-
if ("fields" in data && data.fields != undefined) {
|
|
43
|
-
this.fields = data.fields;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (!this.fields)
|
|
47
|
-
this.fields = new Map();
|
|
48
|
-
}
|
|
49
|
-
get fields() {
|
|
50
|
-
return pb_1.Message.getField(this, 1);
|
|
51
|
-
}
|
|
52
|
-
set fields(value) {
|
|
53
|
-
pb_1.Message.setField(this, 1, value);
|
|
54
|
-
}
|
|
55
|
-
static fromObject(data) {
|
|
56
|
-
const message = new Struct({});
|
|
57
|
-
if (typeof data.fields == "object") {
|
|
58
|
-
message.fields = new Map(Object.entries(data.fields).map(([key, value]) => [key, Value.fromObject(value)]));
|
|
59
|
-
}
|
|
60
|
-
return message;
|
|
61
|
-
}
|
|
62
|
-
toObject() {
|
|
63
|
-
const data = {};
|
|
64
|
-
if (this.fields != null) {
|
|
65
|
-
data.fields = (Object.fromEntries)((Array.from)(this.fields).map(([key, value]) => [key, value.toObject()]));
|
|
66
|
-
}
|
|
67
|
-
return data;
|
|
68
|
-
}
|
|
69
|
-
serialize(w) {
|
|
70
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
71
|
-
for (const [key, value] of this.fields) {
|
|
72
|
-
writer.writeMessage(1, this.fields, () => {
|
|
73
|
-
writer.writeString(1, key);
|
|
74
|
-
writer.writeMessage(2, value, () => value.serialize(writer));
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
if (!w)
|
|
78
|
-
return writer.getResultBuffer();
|
|
79
|
-
}
|
|
80
|
-
static deserialize(bytes) {
|
|
81
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Struct();
|
|
82
|
-
while (reader.nextField()) {
|
|
83
|
-
if (reader.isEndGroup())
|
|
84
|
-
break;
|
|
85
|
-
switch (reader.getFieldNumber()) {
|
|
86
|
-
case 1:
|
|
87
|
-
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.fields, reader, reader.readString, () => {
|
|
88
|
-
let value;
|
|
89
|
-
reader.readMessage(message, () => value = Value.deserialize(reader));
|
|
90
|
-
return value;
|
|
91
|
-
}));
|
|
92
|
-
break;
|
|
93
|
-
default: reader.skipField();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return message;
|
|
97
|
-
}
|
|
98
|
-
serializeBinary() {
|
|
99
|
-
return this.serialize();
|
|
100
|
-
}
|
|
101
|
-
static deserializeBinary(bytes) {
|
|
102
|
-
return Struct.deserialize(bytes);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
protobuf.Struct = Struct;
|
|
106
|
-
class Value extends pb_1.Message {
|
|
107
|
-
#one_of_decls = [[1, 2, 3, 4, 5, 6]];
|
|
108
|
-
constructor(data) {
|
|
109
|
-
super();
|
|
110
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
111
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
112
|
-
if ("nullValue" in data && data.nullValue != undefined) {
|
|
113
|
-
this.nullValue = data.nullValue;
|
|
114
|
-
}
|
|
115
|
-
if ("numberValue" in data && data.numberValue != undefined) {
|
|
116
|
-
this.numberValue = data.numberValue;
|
|
117
|
-
}
|
|
118
|
-
if ("stringValue" in data && data.stringValue != undefined) {
|
|
119
|
-
this.stringValue = data.stringValue;
|
|
120
|
-
}
|
|
121
|
-
if ("boolValue" in data && data.boolValue != undefined) {
|
|
122
|
-
this.boolValue = data.boolValue;
|
|
123
|
-
}
|
|
124
|
-
if ("structValue" in data && data.structValue != undefined) {
|
|
125
|
-
this.structValue = data.structValue;
|
|
126
|
-
}
|
|
127
|
-
if ("listValue" in data && data.listValue != undefined) {
|
|
128
|
-
this.listValue = data.listValue;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
get nullValue() {
|
|
133
|
-
return pb_1.Message.getFieldWithDefault(this, 1, NullValue.NULL_VALUE);
|
|
134
|
-
}
|
|
135
|
-
set nullValue(value) {
|
|
136
|
-
pb_1.Message.setOneofField(this, 1, this.#one_of_decls[0], value);
|
|
137
|
-
}
|
|
138
|
-
get hasNullValue() {
|
|
139
|
-
return pb_1.Message.getField(this, 1) != null;
|
|
140
|
-
}
|
|
141
|
-
get numberValue() {
|
|
142
|
-
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
143
|
-
}
|
|
144
|
-
set numberValue(value) {
|
|
145
|
-
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value);
|
|
146
|
-
}
|
|
147
|
-
get hasNumberValue() {
|
|
148
|
-
return pb_1.Message.getField(this, 2) != null;
|
|
149
|
-
}
|
|
150
|
-
get stringValue() {
|
|
151
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
152
|
-
}
|
|
153
|
-
set stringValue(value) {
|
|
154
|
-
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
|
|
155
|
-
}
|
|
156
|
-
get hasStringValue() {
|
|
157
|
-
return pb_1.Message.getField(this, 3) != null;
|
|
158
|
-
}
|
|
159
|
-
get boolValue() {
|
|
160
|
-
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
161
|
-
}
|
|
162
|
-
set boolValue(value) {
|
|
163
|
-
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);
|
|
164
|
-
}
|
|
165
|
-
get hasBoolValue() {
|
|
166
|
-
return pb_1.Message.getField(this, 4) != null;
|
|
167
|
-
}
|
|
168
|
-
get structValue() {
|
|
169
|
-
return pb_1.Message.getWrapperField(this, Struct, 5);
|
|
170
|
-
}
|
|
171
|
-
set structValue(value) {
|
|
172
|
-
pb_1.Message.setOneofWrapperField(this, 5, this.#one_of_decls[0], value);
|
|
173
|
-
}
|
|
174
|
-
get hasStructValue() {
|
|
175
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
176
|
-
}
|
|
177
|
-
get listValue() {
|
|
178
|
-
return pb_1.Message.getWrapperField(this, ListValue, 6);
|
|
179
|
-
}
|
|
180
|
-
set listValue(value) {
|
|
181
|
-
pb_1.Message.setOneofWrapperField(this, 6, this.#one_of_decls[0], value);
|
|
182
|
-
}
|
|
183
|
-
get hasListValue() {
|
|
184
|
-
return pb_1.Message.getField(this, 6) != null;
|
|
185
|
-
}
|
|
186
|
-
get kind() {
|
|
187
|
-
const cases = {
|
|
188
|
-
0: "none",
|
|
189
|
-
1: "nullValue",
|
|
190
|
-
2: "numberValue",
|
|
191
|
-
3: "stringValue",
|
|
192
|
-
4: "boolValue",
|
|
193
|
-
5: "structValue",
|
|
194
|
-
6: "listValue"
|
|
195
|
-
};
|
|
196
|
-
return cases[pb_1.Message.computeOneofCase(this, [1, 2, 3, 4, 5, 6])];
|
|
197
|
-
}
|
|
198
|
-
static fromObject(data) {
|
|
199
|
-
const message = new Value({});
|
|
200
|
-
if (data.nullValue != null) {
|
|
201
|
-
message.nullValue = data.nullValue;
|
|
202
|
-
}
|
|
203
|
-
if (data.numberValue != null) {
|
|
204
|
-
message.numberValue = data.numberValue;
|
|
205
|
-
}
|
|
206
|
-
if (data.stringValue != null) {
|
|
207
|
-
message.stringValue = data.stringValue;
|
|
208
|
-
}
|
|
209
|
-
if (data.boolValue != null) {
|
|
210
|
-
message.boolValue = data.boolValue;
|
|
211
|
-
}
|
|
212
|
-
if (data.structValue != null) {
|
|
213
|
-
message.structValue = Struct.fromObject(data.structValue);
|
|
214
|
-
}
|
|
215
|
-
if (data.listValue != null) {
|
|
216
|
-
message.listValue = ListValue.fromObject(data.listValue);
|
|
217
|
-
}
|
|
218
|
-
return message;
|
|
219
|
-
}
|
|
220
|
-
toObject() {
|
|
221
|
-
const data = {};
|
|
222
|
-
if (this.nullValue != null) {
|
|
223
|
-
data.nullValue = this.nullValue;
|
|
224
|
-
}
|
|
225
|
-
if (this.numberValue != null) {
|
|
226
|
-
data.numberValue = this.numberValue;
|
|
227
|
-
}
|
|
228
|
-
if (this.stringValue != null) {
|
|
229
|
-
data.stringValue = this.stringValue;
|
|
230
|
-
}
|
|
231
|
-
if (this.boolValue != null) {
|
|
232
|
-
data.boolValue = this.boolValue;
|
|
233
|
-
}
|
|
234
|
-
if (this.structValue != null) {
|
|
235
|
-
data.structValue = this.structValue.toObject();
|
|
236
|
-
}
|
|
237
|
-
if (this.listValue != null) {
|
|
238
|
-
data.listValue = this.listValue.toObject();
|
|
239
|
-
}
|
|
240
|
-
return data;
|
|
241
|
-
}
|
|
242
|
-
serialize(w) {
|
|
243
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
244
|
-
if (this.hasNullValue)
|
|
245
|
-
writer.writeEnum(1, this.nullValue);
|
|
246
|
-
if (this.hasNumberValue)
|
|
247
|
-
writer.writeDouble(2, this.numberValue);
|
|
248
|
-
if (this.hasStringValue)
|
|
249
|
-
writer.writeString(3, this.stringValue);
|
|
250
|
-
if (this.hasBoolValue)
|
|
251
|
-
writer.writeBool(4, this.boolValue);
|
|
252
|
-
if (this.hasStructValue)
|
|
253
|
-
writer.writeMessage(5, this.structValue, () => this.structValue.serialize(writer));
|
|
254
|
-
if (this.hasListValue)
|
|
255
|
-
writer.writeMessage(6, this.listValue, () => this.listValue.serialize(writer));
|
|
256
|
-
if (!w)
|
|
257
|
-
return writer.getResultBuffer();
|
|
258
|
-
}
|
|
259
|
-
static deserialize(bytes) {
|
|
260
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Value();
|
|
261
|
-
while (reader.nextField()) {
|
|
262
|
-
if (reader.isEndGroup())
|
|
263
|
-
break;
|
|
264
|
-
switch (reader.getFieldNumber()) {
|
|
265
|
-
case 1:
|
|
266
|
-
message.nullValue = reader.readEnum();
|
|
267
|
-
break;
|
|
268
|
-
case 2:
|
|
269
|
-
message.numberValue = reader.readDouble();
|
|
270
|
-
break;
|
|
271
|
-
case 3:
|
|
272
|
-
message.stringValue = reader.readString();
|
|
273
|
-
break;
|
|
274
|
-
case 4:
|
|
275
|
-
message.boolValue = reader.readBool();
|
|
276
|
-
break;
|
|
277
|
-
case 5:
|
|
278
|
-
reader.readMessage(message.structValue, () => message.structValue = Struct.deserialize(reader));
|
|
279
|
-
break;
|
|
280
|
-
case 6:
|
|
281
|
-
reader.readMessage(message.listValue, () => message.listValue = ListValue.deserialize(reader));
|
|
282
|
-
break;
|
|
283
|
-
default: reader.skipField();
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return message;
|
|
287
|
-
}
|
|
288
|
-
serializeBinary() {
|
|
289
|
-
return this.serialize();
|
|
290
|
-
}
|
|
291
|
-
static deserializeBinary(bytes) {
|
|
292
|
-
return Value.deserialize(bytes);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
protobuf.Value = Value;
|
|
296
|
-
class ListValue extends pb_1.Message {
|
|
297
|
-
#one_of_decls = [];
|
|
298
|
-
constructor(data) {
|
|
299
|
-
super();
|
|
300
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
301
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
302
|
-
if ("values" in data && data.values != undefined) {
|
|
303
|
-
this.values = data.values;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
get values() {
|
|
308
|
-
return pb_1.Message.getRepeatedWrapperField(this, Value, 1);
|
|
309
|
-
}
|
|
310
|
-
set values(value) {
|
|
311
|
-
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
312
|
-
}
|
|
313
|
-
static fromObject(data) {
|
|
314
|
-
const message = new ListValue({});
|
|
315
|
-
if (data.values != null) {
|
|
316
|
-
message.values = data.values.map(item => Value.fromObject(item));
|
|
317
|
-
}
|
|
318
|
-
return message;
|
|
319
|
-
}
|
|
320
|
-
toObject() {
|
|
321
|
-
const data = {};
|
|
322
|
-
if (this.values != null) {
|
|
323
|
-
data.values = this.values.map((item) => item.toObject());
|
|
324
|
-
}
|
|
325
|
-
return data;
|
|
326
|
-
}
|
|
327
|
-
serialize(w) {
|
|
328
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
329
|
-
if (this.values.length)
|
|
330
|
-
writer.writeRepeatedMessage(1, this.values, (item) => item.serialize(writer));
|
|
331
|
-
if (!w)
|
|
332
|
-
return writer.getResultBuffer();
|
|
333
|
-
}
|
|
334
|
-
static deserialize(bytes) {
|
|
335
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListValue();
|
|
336
|
-
while (reader.nextField()) {
|
|
337
|
-
if (reader.isEndGroup())
|
|
338
|
-
break;
|
|
339
|
-
switch (reader.getFieldNumber()) {
|
|
340
|
-
case 1:
|
|
341
|
-
reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Value.deserialize(reader), Value));
|
|
342
|
-
break;
|
|
343
|
-
default: reader.skipField();
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
return message;
|
|
347
|
-
}
|
|
348
|
-
serializeBinary() {
|
|
349
|
-
return this.serialize();
|
|
350
|
-
}
|
|
351
|
-
static deserializeBinary(bytes) {
|
|
352
|
-
return ListValue.deserialize(bytes);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
protobuf.ListValue = ListValue;
|
|
356
|
-
})(protobuf = google.protobuf || (google.protobuf = {}));
|
|
357
|
-
})(google || (exports.google = google = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as pb_1 from "google-protobuf";
|
|
2
|
-
export declare namespace google.protobuf {
|
|
3
|
-
class Any extends pb_1.Message {
|
|
4
|
-
#private;
|
|
5
|
-
constructor(data?: any[] | {
|
|
6
|
-
typeUrl?: string;
|
|
7
|
-
value?: Uint8Array;
|
|
8
|
-
});
|
|
9
|
-
get typeUrl(): string;
|
|
10
|
-
set typeUrl(value: string);
|
|
11
|
-
get value(): Uint8Array;
|
|
12
|
-
set value(value: Uint8Array);
|
|
13
|
-
static fromObject(data: {
|
|
14
|
-
typeUrl?: string;
|
|
15
|
-
value?: Uint8Array;
|
|
16
|
-
}): Any;
|
|
17
|
-
toObject(): {
|
|
18
|
-
typeUrl?: string | undefined;
|
|
19
|
-
value?: Uint8Array | undefined;
|
|
20
|
-
};
|
|
21
|
-
serialize(): Uint8Array;
|
|
22
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
23
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Any;
|
|
24
|
-
serializeBinary(): Uint8Array;
|
|
25
|
-
static deserializeBinary(bytes: Uint8Array): Any;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import * as pb_1 from "google-protobuf";
|
|
2
|
-
export declare namespace google.protobuf {
|
|
3
|
-
enum NullValue {
|
|
4
|
-
NULL_VALUE = 0
|
|
5
|
-
}
|
|
6
|
-
class Struct extends pb_1.Message {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(data?: any[] | {
|
|
9
|
-
fields?: Map<string, Value>;
|
|
10
|
-
});
|
|
11
|
-
get fields(): Map<string, Value>;
|
|
12
|
-
set fields(value: Map<string, Value>);
|
|
13
|
-
static fromObject(data: {
|
|
14
|
-
fields?: {
|
|
15
|
-
[key: string]: ReturnType<typeof Value.prototype.toObject>;
|
|
16
|
-
};
|
|
17
|
-
}): Struct;
|
|
18
|
-
toObject(): {
|
|
19
|
-
fields?: {
|
|
20
|
-
[key: string]: {
|
|
21
|
-
nullValue?: NullValue | undefined;
|
|
22
|
-
numberValue?: number | undefined;
|
|
23
|
-
stringValue?: string | undefined;
|
|
24
|
-
boolValue?: boolean | undefined;
|
|
25
|
-
structValue?: {
|
|
26
|
-
fields?: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
} | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
listValue?: {
|
|
31
|
-
values?: any[] | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
};
|
|
34
|
-
} | undefined;
|
|
35
|
-
};
|
|
36
|
-
serialize(): Uint8Array;
|
|
37
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
38
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Struct;
|
|
39
|
-
serializeBinary(): Uint8Array;
|
|
40
|
-
static deserializeBinary(bytes: Uint8Array): Struct;
|
|
41
|
-
}
|
|
42
|
-
class Value extends pb_1.Message {
|
|
43
|
-
#private;
|
|
44
|
-
constructor(data?: any[] | ({} & (({
|
|
45
|
-
nullValue?: NullValue;
|
|
46
|
-
numberValue?: never;
|
|
47
|
-
stringValue?: never;
|
|
48
|
-
boolValue?: never;
|
|
49
|
-
structValue?: never;
|
|
50
|
-
listValue?: never;
|
|
51
|
-
} | {
|
|
52
|
-
nullValue?: never;
|
|
53
|
-
numberValue?: number;
|
|
54
|
-
stringValue?: never;
|
|
55
|
-
boolValue?: never;
|
|
56
|
-
structValue?: never;
|
|
57
|
-
listValue?: never;
|
|
58
|
-
} | {
|
|
59
|
-
nullValue?: never;
|
|
60
|
-
numberValue?: never;
|
|
61
|
-
stringValue?: string;
|
|
62
|
-
boolValue?: never;
|
|
63
|
-
structValue?: never;
|
|
64
|
-
listValue?: never;
|
|
65
|
-
} | {
|
|
66
|
-
nullValue?: never;
|
|
67
|
-
numberValue?: never;
|
|
68
|
-
stringValue?: never;
|
|
69
|
-
boolValue?: boolean;
|
|
70
|
-
structValue?: never;
|
|
71
|
-
listValue?: never;
|
|
72
|
-
} | {
|
|
73
|
-
nullValue?: never;
|
|
74
|
-
numberValue?: never;
|
|
75
|
-
stringValue?: never;
|
|
76
|
-
boolValue?: never;
|
|
77
|
-
structValue?: Struct;
|
|
78
|
-
listValue?: never;
|
|
79
|
-
} | {
|
|
80
|
-
nullValue?: never;
|
|
81
|
-
numberValue?: never;
|
|
82
|
-
stringValue?: never;
|
|
83
|
-
boolValue?: never;
|
|
84
|
-
structValue?: never;
|
|
85
|
-
listValue?: ListValue;
|
|
86
|
-
}))));
|
|
87
|
-
get nullValue(): NullValue;
|
|
88
|
-
set nullValue(value: NullValue);
|
|
89
|
-
get hasNullValue(): boolean;
|
|
90
|
-
get numberValue(): number;
|
|
91
|
-
set numberValue(value: number);
|
|
92
|
-
get hasNumberValue(): boolean;
|
|
93
|
-
get stringValue(): string;
|
|
94
|
-
set stringValue(value: string);
|
|
95
|
-
get hasStringValue(): boolean;
|
|
96
|
-
get boolValue(): boolean;
|
|
97
|
-
set boolValue(value: boolean);
|
|
98
|
-
get hasBoolValue(): boolean;
|
|
99
|
-
get structValue(): Struct;
|
|
100
|
-
set structValue(value: Struct);
|
|
101
|
-
get hasStructValue(): boolean;
|
|
102
|
-
get listValue(): ListValue;
|
|
103
|
-
set listValue(value: ListValue);
|
|
104
|
-
get hasListValue(): boolean;
|
|
105
|
-
get kind(): "none" | "nullValue" | "numberValue" | "stringValue" | "boolValue" | "structValue" | "listValue";
|
|
106
|
-
static fromObject(data: {
|
|
107
|
-
nullValue?: NullValue;
|
|
108
|
-
numberValue?: number;
|
|
109
|
-
stringValue?: string;
|
|
110
|
-
boolValue?: boolean;
|
|
111
|
-
structValue?: ReturnType<typeof Struct.prototype.toObject>;
|
|
112
|
-
listValue?: ReturnType<typeof ListValue.prototype.toObject>;
|
|
113
|
-
}): Value;
|
|
114
|
-
toObject(): {
|
|
115
|
-
nullValue?: NullValue | undefined;
|
|
116
|
-
numberValue?: number | undefined;
|
|
117
|
-
stringValue?: string | undefined;
|
|
118
|
-
boolValue?: boolean | undefined;
|
|
119
|
-
structValue?: {
|
|
120
|
-
fields?: {
|
|
121
|
-
[key: string]: {
|
|
122
|
-
nullValue?: NullValue | undefined;
|
|
123
|
-
numberValue?: number | undefined;
|
|
124
|
-
stringValue?: string | undefined;
|
|
125
|
-
boolValue?: boolean | undefined;
|
|
126
|
-
structValue?: any | undefined;
|
|
127
|
-
listValue?: {
|
|
128
|
-
values?: any[] | undefined;
|
|
129
|
-
} | undefined;
|
|
130
|
-
};
|
|
131
|
-
} | undefined;
|
|
132
|
-
} | undefined;
|
|
133
|
-
listValue?: {
|
|
134
|
-
values?: any[] | undefined;
|
|
135
|
-
} | undefined;
|
|
136
|
-
};
|
|
137
|
-
serialize(): Uint8Array;
|
|
138
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
139
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Value;
|
|
140
|
-
serializeBinary(): Uint8Array;
|
|
141
|
-
static deserializeBinary(bytes: Uint8Array): Value;
|
|
142
|
-
}
|
|
143
|
-
class ListValue extends pb_1.Message {
|
|
144
|
-
#private;
|
|
145
|
-
constructor(data?: any[] | {
|
|
146
|
-
values?: Value[];
|
|
147
|
-
});
|
|
148
|
-
get values(): Value[];
|
|
149
|
-
set values(value: Value[]);
|
|
150
|
-
static fromObject(data: {
|
|
151
|
-
values?: ReturnType<typeof Value.prototype.toObject>[];
|
|
152
|
-
}): ListValue;
|
|
153
|
-
toObject(): {
|
|
154
|
-
values?: {
|
|
155
|
-
nullValue?: NullValue | undefined;
|
|
156
|
-
numberValue?: number | undefined;
|
|
157
|
-
stringValue?: string | undefined;
|
|
158
|
-
boolValue?: boolean | undefined;
|
|
159
|
-
structValue?: {
|
|
160
|
-
fields?: {
|
|
161
|
-
[key: string]: any;
|
|
162
|
-
} | undefined;
|
|
163
|
-
} | undefined;
|
|
164
|
-
listValue?: {
|
|
165
|
-
values?: any[] | undefined;
|
|
166
|
-
} | undefined;
|
|
167
|
-
}[] | undefined;
|
|
168
|
-
};
|
|
169
|
-
serialize(): Uint8Array;
|
|
170
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
171
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListValue;
|
|
172
|
-
serializeBinary(): Uint8Array;
|
|
173
|
-
static deserializeBinary(bytes: Uint8Array): ListValue;
|
|
174
|
-
}
|
|
175
|
-
}
|