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