@milaboratories/pl-client 2.7.13 → 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.
Files changed (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +7 -3
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. 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 "@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";
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
- value: number;
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
- value: number;
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
- value: bigint;
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
- value: bigint;
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
- value: number;
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
- value: number;
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
- value: boolean;
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
- value: string;
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
- value: Uint8Array;
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
- constructor() {
197
- super("google.protobuf.DoubleValue", [
198
- { no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
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
- internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue {
205
- return this.refJsonWriter.scalar(2, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
259
- super("google.protobuf.FloatValue", [
260
- { no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
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
- internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue {
267
- return this.refJsonWriter.scalar(1, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
321
- super("google.protobuf.Int64Value", [
322
- { no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
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
- internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue {
329
- return this.refJsonWriter.scalar(ScalarType.INT64, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
383
- super("google.protobuf.UInt64Value", [
384
- { no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
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
- internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue {
391
- return this.refJsonWriter.scalar(ScalarType.UINT64, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
445
- super("google.protobuf.Int32Value", [
446
- { no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
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
- internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue {
453
- return this.refJsonWriter.scalar(5, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
507
- super("google.protobuf.UInt32Value", [
508
- { no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
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
- internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue {
515
- return this.refJsonWriter.scalar(13, message.value, "value", false, true);
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
- 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
- }
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
- constructor() {
569
- super("google.protobuf.BoolValue", [
570
- { no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
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
- internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue {
577
- return message.value;
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
- 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
- }
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
- constructor() {
631
- super("google.protobuf.StringValue", [
632
- { no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
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
- internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue {
639
- return message.value;
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
- 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
- }
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
- constructor() {
693
- super("google.protobuf.BytesValue", [
694
- { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
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
- internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue {
701
- return this.refJsonWriter.scalar(12, message.value, "value", false, true);
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
- 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
- }
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