@milaboratories/pl-client 2.7.14 → 2.8.0
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/core/client.d.ts +4 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts +12 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4341 -4316
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +790 -773
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +19 -19
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +56 -56
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/core/client.ts +31 -35
- package/src/core/ll_client.ts +48 -23
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +72 -75
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -22
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +276 -291
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +54 -59
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +470 -491
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +238 -263
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11058 -11752
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1115 -1156
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +126 -132
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +201 -204
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +541 -560
- package/src/proto/google/protobuf/any.ts +140 -150
- package/src/proto/google/protobuf/duration.ts +103 -108
- package/src/proto/google/protobuf/empty.ts +39 -42
- package/src/proto/google/protobuf/struct.ts +323 -337
- package/src/proto/google/protobuf/timestamp.ts +124 -132
- package/src/proto/google/protobuf/wrappers.ts +492 -537
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
// These wrappers have no meaningful use within a map or a oneof since
|
|
43
43
|
// individual entries of a map or fields of a oneof can already detect presence.
|
|
44
44
|
//
|
|
45
|
-
import { ScalarType } from
|
|
46
|
-
import { LongType } from
|
|
47
|
-
import type { BinaryWriteOptions } from
|
|
48
|
-
import type { IBinaryWriter } from
|
|
49
|
-
import { WireType } from
|
|
50
|
-
import type { BinaryReadOptions } from
|
|
51
|
-
import type { IBinaryReader } from
|
|
52
|
-
import { UnknownFieldHandler } from
|
|
53
|
-
import type { PartialMessage } from
|
|
54
|
-
import { reflectionMergePartial } from
|
|
55
|
-
import type { JsonValue } from
|
|
56
|
-
import type { JsonReadOptions } from
|
|
57
|
-
import type { JsonWriteOptions } from
|
|
58
|
-
import { MessageType } from
|
|
45
|
+
import { ScalarType } from "@protobuf-ts/runtime";
|
|
46
|
+
import { LongType } from "@protobuf-ts/runtime";
|
|
47
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
48
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
49
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
50
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
51
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
52
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
53
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
54
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
55
|
+
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
56
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
57
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
58
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
59
59
|
/**
|
|
60
60
|
* Wrapper message for `double`.
|
|
61
61
|
*
|
|
@@ -64,12 +64,12 @@ import { MessageType } from '@protobuf-ts/runtime';
|
|
|
64
64
|
* @generated from protobuf message google.protobuf.DoubleValue
|
|
65
65
|
*/
|
|
66
66
|
export interface DoubleValue {
|
|
67
|
-
|
|
67
|
+
/**
|
|
68
68
|
* The double value.
|
|
69
69
|
*
|
|
70
70
|
* @generated from protobuf field: double value = 1;
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
value: number;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Wrapper message for `float`.
|
|
@@ -79,12 +79,12 @@ export interface DoubleValue {
|
|
|
79
79
|
* @generated from protobuf message google.protobuf.FloatValue
|
|
80
80
|
*/
|
|
81
81
|
export interface FloatValue {
|
|
82
|
-
|
|
82
|
+
/**
|
|
83
83
|
* The float value.
|
|
84
84
|
*
|
|
85
85
|
* @generated from protobuf field: float value = 1;
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
value: number;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Wrapper message for `int64`.
|
|
@@ -94,12 +94,12 @@ export interface FloatValue {
|
|
|
94
94
|
* @generated from protobuf message google.protobuf.Int64Value
|
|
95
95
|
*/
|
|
96
96
|
export interface Int64Value {
|
|
97
|
-
|
|
97
|
+
/**
|
|
98
98
|
* The int64 value.
|
|
99
99
|
*
|
|
100
100
|
* @generated from protobuf field: int64 value = 1;
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
value: bigint;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Wrapper message for `uint64`.
|
|
@@ -109,12 +109,12 @@ export interface Int64Value {
|
|
|
109
109
|
* @generated from protobuf message google.protobuf.UInt64Value
|
|
110
110
|
*/
|
|
111
111
|
export interface UInt64Value {
|
|
112
|
-
|
|
112
|
+
/**
|
|
113
113
|
* The uint64 value.
|
|
114
114
|
*
|
|
115
115
|
* @generated from protobuf field: uint64 value = 1;
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
value: bigint;
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* Wrapper message for `int32`.
|
|
@@ -124,12 +124,12 @@ export interface UInt64Value {
|
|
|
124
124
|
* @generated from protobuf message google.protobuf.Int32Value
|
|
125
125
|
*/
|
|
126
126
|
export interface Int32Value {
|
|
127
|
-
|
|
127
|
+
/**
|
|
128
128
|
* The int32 value.
|
|
129
129
|
*
|
|
130
130
|
* @generated from protobuf field: int32 value = 1;
|
|
131
131
|
*/
|
|
132
|
-
|
|
132
|
+
value: number;
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
* Wrapper message for `uint32`.
|
|
@@ -139,12 +139,12 @@ export interface Int32Value {
|
|
|
139
139
|
* @generated from protobuf message google.protobuf.UInt32Value
|
|
140
140
|
*/
|
|
141
141
|
export interface UInt32Value {
|
|
142
|
-
|
|
142
|
+
/**
|
|
143
143
|
* The uint32 value.
|
|
144
144
|
*
|
|
145
145
|
* @generated from protobuf field: uint32 value = 1;
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
value: number;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* Wrapper message for `bool`.
|
|
@@ -154,12 +154,12 @@ export interface UInt32Value {
|
|
|
154
154
|
* @generated from protobuf message google.protobuf.BoolValue
|
|
155
155
|
*/
|
|
156
156
|
export interface BoolValue {
|
|
157
|
-
|
|
157
|
+
/**
|
|
158
158
|
* The bool value.
|
|
159
159
|
*
|
|
160
160
|
* @generated from protobuf field: bool value = 1;
|
|
161
161
|
*/
|
|
162
|
-
|
|
162
|
+
value: boolean;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Wrapper message for `string`.
|
|
@@ -169,12 +169,12 @@ export interface BoolValue {
|
|
|
169
169
|
* @generated from protobuf message google.protobuf.StringValue
|
|
170
170
|
*/
|
|
171
171
|
export interface StringValue {
|
|
172
|
-
|
|
172
|
+
/**
|
|
173
173
|
* The string value.
|
|
174
174
|
*
|
|
175
175
|
* @generated from protobuf field: string value = 1;
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
value: string;
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* Wrapper message for `bytes`.
|
|
@@ -184,75 +184,70 @@ export interface StringValue {
|
|
|
184
184
|
* @generated from protobuf message google.protobuf.BytesValue
|
|
185
185
|
*/
|
|
186
186
|
export interface BytesValue {
|
|
187
|
-
|
|
187
|
+
/**
|
|
188
188
|
* The bytes value.
|
|
189
189
|
*
|
|
190
190
|
* @generated from protobuf field: bytes value = 1;
|
|
191
191
|
*/
|
|
192
|
-
|
|
192
|
+
value: Uint8Array;
|
|
193
193
|
}
|
|
194
194
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
195
195
|
class DoubleValue$Type extends MessageType<DoubleValue> {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
/**
|
|
196
|
+
constructor() {
|
|
197
|
+
super("google.protobuf.DoubleValue", [
|
|
198
|
+
{ no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
199
|
+
]);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
203
202
|
* Encode `DoubleValue` to JSON number.
|
|
204
203
|
*/
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
/**
|
|
204
|
+
internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue {
|
|
205
|
+
return this.refJsonWriter.scalar(2, message.value, "value", false, true);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
210
208
|
* Decode `DoubleValue` from JSON number.
|
|
211
209
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
254
|
-
return writer;
|
|
255
|
-
}
|
|
210
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue {
|
|
211
|
+
if (!target)
|
|
212
|
+
target = this.create();
|
|
213
|
+
target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
|
|
214
|
+
return target;
|
|
215
|
+
}
|
|
216
|
+
create(value?: PartialMessage<DoubleValue>): DoubleValue {
|
|
217
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
218
|
+
message.value = 0;
|
|
219
|
+
if (value !== undefined)
|
|
220
|
+
reflectionMergePartial<DoubleValue>(this, message, value);
|
|
221
|
+
return message;
|
|
222
|
+
}
|
|
223
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue {
|
|
224
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
225
|
+
while (reader.pos < end) {
|
|
226
|
+
let [fieldNo, wireType] = reader.tag();
|
|
227
|
+
switch (fieldNo) {
|
|
228
|
+
case /* double value */ 1:
|
|
229
|
+
message.value = reader.double();
|
|
230
|
+
break;
|
|
231
|
+
default:
|
|
232
|
+
let u = options.readUnknownField;
|
|
233
|
+
if (u === "throw")
|
|
234
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
235
|
+
let d = reader.skip(wireType);
|
|
236
|
+
if (u !== false)
|
|
237
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return message;
|
|
241
|
+
}
|
|
242
|
+
internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
243
|
+
/* double value = 1; */
|
|
244
|
+
if (message.value !== 0)
|
|
245
|
+
writer.tag(1, WireType.Bit64).double(message.value);
|
|
246
|
+
let u = options.writeUnknownFields;
|
|
247
|
+
if (u !== false)
|
|
248
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
249
|
+
return writer;
|
|
250
|
+
}
|
|
256
251
|
}
|
|
257
252
|
/**
|
|
258
253
|
* @generated MessageType for protobuf message google.protobuf.DoubleValue
|
|
@@ -260,66 +255,61 @@ class DoubleValue$Type extends MessageType<DoubleValue> {
|
|
|
260
255
|
export const DoubleValue = new DoubleValue$Type();
|
|
261
256
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
262
257
|
class FloatValue$Type extends MessageType<FloatValue> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
/**
|
|
258
|
+
constructor() {
|
|
259
|
+
super("google.protobuf.FloatValue", [
|
|
260
|
+
{ no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
261
|
+
]);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
270
264
|
* Encode `FloatValue` to JSON number.
|
|
271
265
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
/**
|
|
266
|
+
internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue {
|
|
267
|
+
return this.refJsonWriter.scalar(1, message.value, "value", false, true);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
277
270
|
* Decode `FloatValue` from JSON number.
|
|
278
271
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
321
|
-
return writer;
|
|
322
|
-
}
|
|
272
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue {
|
|
273
|
+
if (!target)
|
|
274
|
+
target = this.create();
|
|
275
|
+
target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
|
|
276
|
+
return target;
|
|
277
|
+
}
|
|
278
|
+
create(value?: PartialMessage<FloatValue>): FloatValue {
|
|
279
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
280
|
+
message.value = 0;
|
|
281
|
+
if (value !== undefined)
|
|
282
|
+
reflectionMergePartial<FloatValue>(this, message, value);
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue {
|
|
286
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
287
|
+
while (reader.pos < end) {
|
|
288
|
+
let [fieldNo, wireType] = reader.tag();
|
|
289
|
+
switch (fieldNo) {
|
|
290
|
+
case /* float value */ 1:
|
|
291
|
+
message.value = reader.float();
|
|
292
|
+
break;
|
|
293
|
+
default:
|
|
294
|
+
let u = options.readUnknownField;
|
|
295
|
+
if (u === "throw")
|
|
296
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
297
|
+
let d = reader.skip(wireType);
|
|
298
|
+
if (u !== false)
|
|
299
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return message;
|
|
303
|
+
}
|
|
304
|
+
internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
305
|
+
/* float value = 1; */
|
|
306
|
+
if (message.value !== 0)
|
|
307
|
+
writer.tag(1, WireType.Bit32).float(message.value);
|
|
308
|
+
let u = options.writeUnknownFields;
|
|
309
|
+
if (u !== false)
|
|
310
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
311
|
+
return writer;
|
|
312
|
+
}
|
|
323
313
|
}
|
|
324
314
|
/**
|
|
325
315
|
* @generated MessageType for protobuf message google.protobuf.FloatValue
|
|
@@ -327,66 +317,61 @@ class FloatValue$Type extends MessageType<FloatValue> {
|
|
|
327
317
|
export const FloatValue = new FloatValue$Type();
|
|
328
318
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
329
319
|
class Int64Value$Type extends MessageType<Int64Value> {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
/**
|
|
320
|
+
constructor() {
|
|
321
|
+
super("google.protobuf.Int64Value", [
|
|
322
|
+
{ no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
323
|
+
]);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
337
326
|
* Encode `Int64Value` to JSON string.
|
|
338
327
|
*/
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
/**
|
|
328
|
+
internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue {
|
|
329
|
+
return this.refJsonWriter.scalar(ScalarType.INT64, message.value, "value", false, true);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
344
332
|
* Decode `Int64Value` from JSON string.
|
|
345
333
|
*/
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
388
|
-
return writer;
|
|
389
|
-
}
|
|
334
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value {
|
|
335
|
+
if (!target)
|
|
336
|
+
target = this.create();
|
|
337
|
+
target.value = this.refJsonReader.scalar(json, ScalarType.INT64, LongType.BIGINT, "value") as any;
|
|
338
|
+
return target;
|
|
339
|
+
}
|
|
340
|
+
create(value?: PartialMessage<Int64Value>): Int64Value {
|
|
341
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
342
|
+
message.value = 0n;
|
|
343
|
+
if (value !== undefined)
|
|
344
|
+
reflectionMergePartial<Int64Value>(this, message, value);
|
|
345
|
+
return message;
|
|
346
|
+
}
|
|
347
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value {
|
|
348
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
let [fieldNo, wireType] = reader.tag();
|
|
351
|
+
switch (fieldNo) {
|
|
352
|
+
case /* int64 value */ 1:
|
|
353
|
+
message.value = reader.int64().toBigInt();
|
|
354
|
+
break;
|
|
355
|
+
default:
|
|
356
|
+
let u = options.readUnknownField;
|
|
357
|
+
if (u === "throw")
|
|
358
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
359
|
+
let d = reader.skip(wireType);
|
|
360
|
+
if (u !== false)
|
|
361
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
367
|
+
/* int64 value = 1; */
|
|
368
|
+
if (message.value !== 0n)
|
|
369
|
+
writer.tag(1, WireType.Varint).int64(message.value);
|
|
370
|
+
let u = options.writeUnknownFields;
|
|
371
|
+
if (u !== false)
|
|
372
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
373
|
+
return writer;
|
|
374
|
+
}
|
|
390
375
|
}
|
|
391
376
|
/**
|
|
392
377
|
* @generated MessageType for protobuf message google.protobuf.Int64Value
|
|
@@ -394,66 +379,61 @@ class Int64Value$Type extends MessageType<Int64Value> {
|
|
|
394
379
|
export const Int64Value = new Int64Value$Type();
|
|
395
380
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
396
381
|
class UInt64Value$Type extends MessageType<UInt64Value> {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
/**
|
|
382
|
+
constructor() {
|
|
383
|
+
super("google.protobuf.UInt64Value", [
|
|
384
|
+
{ no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
385
|
+
]);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
404
388
|
* Encode `UInt64Value` to JSON string.
|
|
405
389
|
*/
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
/**
|
|
390
|
+
internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue {
|
|
391
|
+
return this.refJsonWriter.scalar(ScalarType.UINT64, message.value, "value", false, true);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
411
394
|
* Decode `UInt64Value` from JSON string.
|
|
412
395
|
*/
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
455
|
-
return writer;
|
|
456
|
-
}
|
|
396
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value {
|
|
397
|
+
if (!target)
|
|
398
|
+
target = this.create();
|
|
399
|
+
target.value = this.refJsonReader.scalar(json, ScalarType.UINT64, LongType.BIGINT, "value") as any;
|
|
400
|
+
return target;
|
|
401
|
+
}
|
|
402
|
+
create(value?: PartialMessage<UInt64Value>): UInt64Value {
|
|
403
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
404
|
+
message.value = 0n;
|
|
405
|
+
if (value !== undefined)
|
|
406
|
+
reflectionMergePartial<UInt64Value>(this, message, value);
|
|
407
|
+
return message;
|
|
408
|
+
}
|
|
409
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value {
|
|
410
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
411
|
+
while (reader.pos < end) {
|
|
412
|
+
let [fieldNo, wireType] = reader.tag();
|
|
413
|
+
switch (fieldNo) {
|
|
414
|
+
case /* uint64 value */ 1:
|
|
415
|
+
message.value = reader.uint64().toBigInt();
|
|
416
|
+
break;
|
|
417
|
+
default:
|
|
418
|
+
let u = options.readUnknownField;
|
|
419
|
+
if (u === "throw")
|
|
420
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
421
|
+
let d = reader.skip(wireType);
|
|
422
|
+
if (u !== false)
|
|
423
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
}
|
|
428
|
+
internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
429
|
+
/* uint64 value = 1; */
|
|
430
|
+
if (message.value !== 0n)
|
|
431
|
+
writer.tag(1, WireType.Varint).uint64(message.value);
|
|
432
|
+
let u = options.writeUnknownFields;
|
|
433
|
+
if (u !== false)
|
|
434
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
435
|
+
return writer;
|
|
436
|
+
}
|
|
457
437
|
}
|
|
458
438
|
/**
|
|
459
439
|
* @generated MessageType for protobuf message google.protobuf.UInt64Value
|
|
@@ -461,66 +441,61 @@ class UInt64Value$Type extends MessageType<UInt64Value> {
|
|
|
461
441
|
export const UInt64Value = new UInt64Value$Type();
|
|
462
442
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
463
443
|
class Int32Value$Type extends MessageType<Int32Value> {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
/**
|
|
444
|
+
constructor() {
|
|
445
|
+
super("google.protobuf.Int32Value", [
|
|
446
|
+
{ no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
447
|
+
]);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
471
450
|
* Encode `Int32Value` to JSON string.
|
|
472
451
|
*/
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
/**
|
|
452
|
+
internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue {
|
|
453
|
+
return this.refJsonWriter.scalar(5, message.value, "value", false, true);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
478
456
|
* Decode `Int32Value` from JSON string.
|
|
479
457
|
*/
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
522
|
-
return writer;
|
|
523
|
-
}
|
|
458
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value {
|
|
459
|
+
if (!target)
|
|
460
|
+
target = this.create();
|
|
461
|
+
target.value = this.refJsonReader.scalar(json, 5, undefined, "value") as number;
|
|
462
|
+
return target;
|
|
463
|
+
}
|
|
464
|
+
create(value?: PartialMessage<Int32Value>): Int32Value {
|
|
465
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
466
|
+
message.value = 0;
|
|
467
|
+
if (value !== undefined)
|
|
468
|
+
reflectionMergePartial<Int32Value>(this, message, value);
|
|
469
|
+
return message;
|
|
470
|
+
}
|
|
471
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value {
|
|
472
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
473
|
+
while (reader.pos < end) {
|
|
474
|
+
let [fieldNo, wireType] = reader.tag();
|
|
475
|
+
switch (fieldNo) {
|
|
476
|
+
case /* int32 value */ 1:
|
|
477
|
+
message.value = reader.int32();
|
|
478
|
+
break;
|
|
479
|
+
default:
|
|
480
|
+
let u = options.readUnknownField;
|
|
481
|
+
if (u === "throw")
|
|
482
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
483
|
+
let d = reader.skip(wireType);
|
|
484
|
+
if (u !== false)
|
|
485
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
return message;
|
|
489
|
+
}
|
|
490
|
+
internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
491
|
+
/* int32 value = 1; */
|
|
492
|
+
if (message.value !== 0)
|
|
493
|
+
writer.tag(1, WireType.Varint).int32(message.value);
|
|
494
|
+
let u = options.writeUnknownFields;
|
|
495
|
+
if (u !== false)
|
|
496
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
497
|
+
return writer;
|
|
498
|
+
}
|
|
524
499
|
}
|
|
525
500
|
/**
|
|
526
501
|
* @generated MessageType for protobuf message google.protobuf.Int32Value
|
|
@@ -528,66 +503,61 @@ class Int32Value$Type extends MessageType<Int32Value> {
|
|
|
528
503
|
export const Int32Value = new Int32Value$Type();
|
|
529
504
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
530
505
|
class UInt32Value$Type extends MessageType<UInt32Value> {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
/**
|
|
506
|
+
constructor() {
|
|
507
|
+
super("google.protobuf.UInt32Value", [
|
|
508
|
+
{ no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
509
|
+
]);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
538
512
|
* Encode `UInt32Value` to JSON string.
|
|
539
513
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
/**
|
|
514
|
+
internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue {
|
|
515
|
+
return this.refJsonWriter.scalar(13, message.value, "value", false, true);
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
545
518
|
* Decode `UInt32Value` from JSON string.
|
|
546
519
|
*/
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
589
|
-
return writer;
|
|
590
|
-
}
|
|
520
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value {
|
|
521
|
+
if (!target)
|
|
522
|
+
target = this.create();
|
|
523
|
+
target.value = this.refJsonReader.scalar(json, 13, undefined, "value") as number;
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
create(value?: PartialMessage<UInt32Value>): UInt32Value {
|
|
527
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
528
|
+
message.value = 0;
|
|
529
|
+
if (value !== undefined)
|
|
530
|
+
reflectionMergePartial<UInt32Value>(this, message, value);
|
|
531
|
+
return message;
|
|
532
|
+
}
|
|
533
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value {
|
|
534
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
535
|
+
while (reader.pos < end) {
|
|
536
|
+
let [fieldNo, wireType] = reader.tag();
|
|
537
|
+
switch (fieldNo) {
|
|
538
|
+
case /* uint32 value */ 1:
|
|
539
|
+
message.value = reader.uint32();
|
|
540
|
+
break;
|
|
541
|
+
default:
|
|
542
|
+
let u = options.readUnknownField;
|
|
543
|
+
if (u === "throw")
|
|
544
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
545
|
+
let d = reader.skip(wireType);
|
|
546
|
+
if (u !== false)
|
|
547
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return message;
|
|
551
|
+
}
|
|
552
|
+
internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
553
|
+
/* uint32 value = 1; */
|
|
554
|
+
if (message.value !== 0)
|
|
555
|
+
writer.tag(1, WireType.Varint).uint32(message.value);
|
|
556
|
+
let u = options.writeUnknownFields;
|
|
557
|
+
if (u !== false)
|
|
558
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
559
|
+
return writer;
|
|
560
|
+
}
|
|
591
561
|
}
|
|
592
562
|
/**
|
|
593
563
|
* @generated MessageType for protobuf message google.protobuf.UInt32Value
|
|
@@ -595,66 +565,61 @@ class UInt32Value$Type extends MessageType<UInt32Value> {
|
|
|
595
565
|
export const UInt32Value = new UInt32Value$Type();
|
|
596
566
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
597
567
|
class BoolValue$Type extends MessageType<BoolValue> {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
/**
|
|
568
|
+
constructor() {
|
|
569
|
+
super("google.protobuf.BoolValue", [
|
|
570
|
+
{ no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
571
|
+
]);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
605
574
|
* Encode `BoolValue` to JSON bool.
|
|
606
575
|
*/
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
/**
|
|
576
|
+
internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue {
|
|
577
|
+
return message.value;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
612
580
|
* Decode `BoolValue` from JSON bool.
|
|
613
581
|
*/
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
656
|
-
return writer;
|
|
657
|
-
}
|
|
582
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue {
|
|
583
|
+
if (!target)
|
|
584
|
+
target = this.create();
|
|
585
|
+
target.value = this.refJsonReader.scalar(json, 8, undefined, "value") as boolean;
|
|
586
|
+
return target;
|
|
587
|
+
}
|
|
588
|
+
create(value?: PartialMessage<BoolValue>): BoolValue {
|
|
589
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
590
|
+
message.value = false;
|
|
591
|
+
if (value !== undefined)
|
|
592
|
+
reflectionMergePartial<BoolValue>(this, message, value);
|
|
593
|
+
return message;
|
|
594
|
+
}
|
|
595
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue {
|
|
596
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
597
|
+
while (reader.pos < end) {
|
|
598
|
+
let [fieldNo, wireType] = reader.tag();
|
|
599
|
+
switch (fieldNo) {
|
|
600
|
+
case /* bool value */ 1:
|
|
601
|
+
message.value = reader.bool();
|
|
602
|
+
break;
|
|
603
|
+
default:
|
|
604
|
+
let u = options.readUnknownField;
|
|
605
|
+
if (u === "throw")
|
|
606
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
607
|
+
let d = reader.skip(wireType);
|
|
608
|
+
if (u !== false)
|
|
609
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
return message;
|
|
613
|
+
}
|
|
614
|
+
internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
615
|
+
/* bool value = 1; */
|
|
616
|
+
if (message.value !== false)
|
|
617
|
+
writer.tag(1, WireType.Varint).bool(message.value);
|
|
618
|
+
let u = options.writeUnknownFields;
|
|
619
|
+
if (u !== false)
|
|
620
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
621
|
+
return writer;
|
|
622
|
+
}
|
|
658
623
|
}
|
|
659
624
|
/**
|
|
660
625
|
* @generated MessageType for protobuf message google.protobuf.BoolValue
|
|
@@ -662,66 +627,61 @@ class BoolValue$Type extends MessageType<BoolValue> {
|
|
|
662
627
|
export const BoolValue = new BoolValue$Type();
|
|
663
628
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
664
629
|
class StringValue$Type extends MessageType<StringValue> {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
/**
|
|
630
|
+
constructor() {
|
|
631
|
+
super("google.protobuf.StringValue", [
|
|
632
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
633
|
+
]);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
672
636
|
* Encode `StringValue` to JSON string.
|
|
673
637
|
*/
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
/**
|
|
638
|
+
internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue {
|
|
639
|
+
return message.value;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
679
642
|
* Decode `StringValue` from JSON string.
|
|
680
643
|
*/
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
723
|
-
return writer;
|
|
724
|
-
}
|
|
644
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue {
|
|
645
|
+
if (!target)
|
|
646
|
+
target = this.create();
|
|
647
|
+
target.value = this.refJsonReader.scalar(json, 9, undefined, "value") as string;
|
|
648
|
+
return target;
|
|
649
|
+
}
|
|
650
|
+
create(value?: PartialMessage<StringValue>): StringValue {
|
|
651
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
652
|
+
message.value = "";
|
|
653
|
+
if (value !== undefined)
|
|
654
|
+
reflectionMergePartial<StringValue>(this, message, value);
|
|
655
|
+
return message;
|
|
656
|
+
}
|
|
657
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue {
|
|
658
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
659
|
+
while (reader.pos < end) {
|
|
660
|
+
let [fieldNo, wireType] = reader.tag();
|
|
661
|
+
switch (fieldNo) {
|
|
662
|
+
case /* string value */ 1:
|
|
663
|
+
message.value = reader.string();
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
let u = options.readUnknownField;
|
|
667
|
+
if (u === "throw")
|
|
668
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
669
|
+
let d = reader.skip(wireType);
|
|
670
|
+
if (u !== false)
|
|
671
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return message;
|
|
675
|
+
}
|
|
676
|
+
internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
677
|
+
/* string value = 1; */
|
|
678
|
+
if (message.value !== "")
|
|
679
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
680
|
+
let u = options.writeUnknownFields;
|
|
681
|
+
if (u !== false)
|
|
682
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
683
|
+
return writer;
|
|
684
|
+
}
|
|
725
685
|
}
|
|
726
686
|
/**
|
|
727
687
|
* @generated MessageType for protobuf message google.protobuf.StringValue
|
|
@@ -729,66 +689,61 @@ class StringValue$Type extends MessageType<StringValue> {
|
|
|
729
689
|
export const StringValue = new StringValue$Type();
|
|
730
690
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
731
691
|
class BytesValue$Type extends MessageType<BytesValue> {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
/**
|
|
692
|
+
constructor() {
|
|
693
|
+
super("google.protobuf.BytesValue", [
|
|
694
|
+
{ no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
695
|
+
]);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
739
698
|
* Encode `BytesValue` to JSON string.
|
|
740
699
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
/**
|
|
700
|
+
internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue {
|
|
701
|
+
return this.refJsonWriter.scalar(12, message.value, "value", false, true);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
746
704
|
* Decode `BytesValue` from JSON string.
|
|
747
705
|
*/
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
790
|
-
return writer;
|
|
791
|
-
}
|
|
706
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue {
|
|
707
|
+
if (!target)
|
|
708
|
+
target = this.create();
|
|
709
|
+
target.value = this.refJsonReader.scalar(json, 12, undefined, "value") as Uint8Array;
|
|
710
|
+
return target;
|
|
711
|
+
}
|
|
712
|
+
create(value?: PartialMessage<BytesValue>): BytesValue {
|
|
713
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
714
|
+
message.value = new Uint8Array(0);
|
|
715
|
+
if (value !== undefined)
|
|
716
|
+
reflectionMergePartial<BytesValue>(this, message, value);
|
|
717
|
+
return message;
|
|
718
|
+
}
|
|
719
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue {
|
|
720
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
721
|
+
while (reader.pos < end) {
|
|
722
|
+
let [fieldNo, wireType] = reader.tag();
|
|
723
|
+
switch (fieldNo) {
|
|
724
|
+
case /* bytes value */ 1:
|
|
725
|
+
message.value = reader.bytes();
|
|
726
|
+
break;
|
|
727
|
+
default:
|
|
728
|
+
let u = options.readUnknownField;
|
|
729
|
+
if (u === "throw")
|
|
730
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
731
|
+
let d = reader.skip(wireType);
|
|
732
|
+
if (u !== false)
|
|
733
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return message;
|
|
737
|
+
}
|
|
738
|
+
internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
739
|
+
/* bytes value = 1; */
|
|
740
|
+
if (message.value.length)
|
|
741
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.value);
|
|
742
|
+
let u = options.writeUnknownFields;
|
|
743
|
+
if (u !== false)
|
|
744
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
745
|
+
return writer;
|
|
746
|
+
}
|
|
792
747
|
}
|
|
793
748
|
/**
|
|
794
749
|
* @generated MessageType for protobuf message google.protobuf.BytesValue
|