@raystack/proton 0.1.0-881c92a4cab2490e6c680462a94660b551b1040f → 0.1.0-8cb19702a3e47d173732860d58084b83d6941865

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 (96) hide show
  1. package/package.json +1 -1
  2. package/raystack/assets/index.ts +29 -29
  3. package/raystack/common/index.ts +1 -1
  4. package/raystack/compass/index.ts +1 -1
  5. package/raystack/entropy/index.ts +2 -2
  6. package/raystack/frontier/index.ts +3 -3
  7. package/raystack/guardian/index.ts +1 -1
  8. package/raystack/predator/index.ts +2 -2
  9. package/raystack/raccoon/index.ts +1 -1
  10. package/raystack/siren/index.ts +1 -1
  11. package/raystack/stencil/index.ts +1 -1
  12. package/google/api/field_behavior.ts +0 -95
  13. package/google/api/http.ts +0 -695
  14. package/google/api/httpbody.ts +0 -159
  15. package/google/protobuf/any.ts +0 -322
  16. package/google/protobuf/descriptor.ts +0 -3475
  17. package/google/protobuf/duration.ts +0 -231
  18. package/google/protobuf/struct.ts +0 -484
  19. package/google/protobuf/timestamp.ts +0 -290
  20. package/google/protobuf/wrappers.ts +0 -752
  21. package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
  22. package/raystack/assets/v1beta1/bucket.ts +0 -362
  23. package/raystack/assets/v1beta1/dashboard.ts +0 -426
  24. package/raystack/assets/v1beta1/event.ts +0 -105
  25. package/raystack/assets/v1beta1/group.ts +0 -223
  26. package/raystack/assets/v1beta1/job.ts +0 -147
  27. package/raystack/assets/v1beta1/lineage.ts +0 -90
  28. package/raystack/assets/v1beta1/ownership.ts +0 -179
  29. package/raystack/assets/v1beta1/preview.ts +0 -87
  30. package/raystack/assets/v1beta1/properties.ts +0 -116
  31. package/raystack/assets/v1beta1/resource.ts +0 -149
  32. package/raystack/assets/v1beta1/schema.ts +0 -421
  33. package/raystack/assets/v1beta1/table.ts +0 -408
  34. package/raystack/assets/v1beta1/timestamp.ts +0 -158
  35. package/raystack/assets/v1beta1/topic.ts +0 -253
  36. package/raystack/assets/v1beta1/user.ts +0 -451
  37. package/raystack/assets/v1beta2/application.ts +0 -125
  38. package/raystack/assets/v1beta2/asset.ts +0 -269
  39. package/raystack/assets/v1beta2/bucket.ts +0 -341
  40. package/raystack/assets/v1beta2/common.ts +0 -392
  41. package/raystack/assets/v1beta2/dashboard.ts +0 -393
  42. package/raystack/assets/v1beta2/experiment.ts +0 -274
  43. package/raystack/assets/v1beta2/feature_table.ts +0 -387
  44. package/raystack/assets/v1beta2/group.ts +0 -178
  45. package/raystack/assets/v1beta2/job.ts +0 -99
  46. package/raystack/assets/v1beta2/metric.ts +0 -163
  47. package/raystack/assets/v1beta2/model.ts +0 -519
  48. package/raystack/assets/v1beta2/table.ts +0 -663
  49. package/raystack/assets/v1beta2/topic.ts +0 -275
  50. package/raystack/assets/v1beta2/user.ts +0 -433
  51. package/raystack/common/v1/service.client.ts +0 -37
  52. package/raystack/common/v1/service.ts +0 -245
  53. package/raystack/compass/v1beta1/service.client.ts +0 -594
  54. package/raystack/compass/v1beta1/service.ts +0 -8169
  55. package/raystack/entropy/v1beta1/module.client.ts +0 -89
  56. package/raystack/entropy/v1beta1/module.ts +0 -692
  57. package/raystack/entropy/v1beta1/resource.client.ts +0 -129
  58. package/raystack/entropy/v1beta1/resource.ts +0 -1817
  59. package/raystack/frontier/v1beta1/admin.client.ts +0 -866
  60. package/raystack/frontier/v1beta1/admin.ts +0 -9117
  61. package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
  62. package/raystack/frontier/v1beta1/frontier.ts +0 -23706
  63. package/raystack/frontier/v1beta1/models.ts +0 -7433
  64. package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
  65. package/raystack/guardian/v1beta1/guardian.ts +0 -9688
  66. package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
  67. package/raystack/optimus/core/v1beta1/backup.ts +0 -708
  68. package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
  69. package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
  70. package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
  71. package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
  72. package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
  73. package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
  74. package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
  75. package/raystack/optimus/core/v1beta1/project.ts +0 -520
  76. package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
  77. package/raystack/optimus/core/v1beta1/replay.ts +0 -881
  78. package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
  79. package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
  80. package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
  81. package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
  82. package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
  83. package/raystack/optimus/core/v1beta1/secret.ts +0 -619
  84. package/raystack/optimus/core/v1beta1/status.ts +0 -113
  85. package/raystack/optimus/integration/v1beta1/event.ts +0 -531
  86. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
  87. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
  88. package/raystack/predator/v1beta1/metrics_log.ts +0 -457
  89. package/raystack/predator/v1beta1/result_log.ts +0 -390
  90. package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
  91. package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
  92. package/raystack/siren/v1beta1/siren.client.ts +0 -479
  93. package/raystack/siren/v1beta1/siren.ts +0 -6507
  94. package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
  95. package/raystack/stencil/v1beta1/stencil.ts +0 -2716
  96. package/validate/validate.ts +0 -4130
@@ -1,752 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
3
- // tslint:disable
4
- //
5
- // Protocol Buffers - Google's data interchange format
6
- // Copyright 2008 Google Inc. All rights reserved.
7
- // https://developers.google.com/protocol-buffers/
8
- //
9
- // Redistribution and use in source and binary forms, with or without
10
- // modification, are permitted provided that the following conditions are
11
- // met:
12
- //
13
- // * Redistributions of source code must retain the above copyright
14
- // notice, this list of conditions and the following disclaimer.
15
- // * Redistributions in binary form must reproduce the above
16
- // copyright notice, this list of conditions and the following disclaimer
17
- // in the documentation and/or other materials provided with the
18
- // distribution.
19
- // * Neither the name of Google Inc. nor the names of its
20
- // contributors may be used to endorse or promote products derived from
21
- // this software without specific prior written permission.
22
- //
23
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
- //
35
- //
36
- // Wrappers for primitive (non-message) types. These types are useful
37
- // for embedding primitives in the `google.protobuf.Any` type and for places
38
- // where we need to distinguish between the absence of a primitive
39
- // typed field and its default value.
40
- //
41
- // These wrappers have no meaningful use within repeated fields as they lack
42
- // the ability to detect presence on individual elements.
43
- // These wrappers have no meaningful use within a map or a oneof since
44
- // individual entries of a map or fields of a oneof can already detect presence.
45
- //
46
- import { ScalarType } from "@protobuf-ts/runtime";
47
- import { LongType } from "@protobuf-ts/runtime";
48
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
49
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
50
- import { WireType } from "@protobuf-ts/runtime";
51
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
52
- import type { IBinaryReader } from "@protobuf-ts/runtime";
53
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
54
- import type { PartialMessage } from "@protobuf-ts/runtime";
55
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
56
- import type { JsonValue } from "@protobuf-ts/runtime";
57
- import type { JsonReadOptions } from "@protobuf-ts/runtime";
58
- import type { JsonWriteOptions } from "@protobuf-ts/runtime";
59
- import { MessageType } from "@protobuf-ts/runtime";
60
- /**
61
- * Wrapper message for `double`.
62
- *
63
- * The JSON representation for `DoubleValue` is JSON number.
64
- *
65
- * @generated from protobuf message google.protobuf.DoubleValue
66
- */
67
- export interface DoubleValue {
68
- /**
69
- * The double value.
70
- *
71
- * @generated from protobuf field: double value = 1
72
- */
73
- value: number;
74
- }
75
- /**
76
- * Wrapper message for `float`.
77
- *
78
- * The JSON representation for `FloatValue` is JSON number.
79
- *
80
- * @generated from protobuf message google.protobuf.FloatValue
81
- */
82
- export interface FloatValue {
83
- /**
84
- * The float value.
85
- *
86
- * @generated from protobuf field: float value = 1
87
- */
88
- value: number;
89
- }
90
- /**
91
- * Wrapper message for `int64`.
92
- *
93
- * The JSON representation for `Int64Value` is JSON string.
94
- *
95
- * @generated from protobuf message google.protobuf.Int64Value
96
- */
97
- export interface Int64Value {
98
- /**
99
- * The int64 value.
100
- *
101
- * @generated from protobuf field: int64 value = 1
102
- */
103
- value: bigint;
104
- }
105
- /**
106
- * Wrapper message for `uint64`.
107
- *
108
- * The JSON representation for `UInt64Value` is JSON string.
109
- *
110
- * @generated from protobuf message google.protobuf.UInt64Value
111
- */
112
- export interface UInt64Value {
113
- /**
114
- * The uint64 value.
115
- *
116
- * @generated from protobuf field: uint64 value = 1
117
- */
118
- value: bigint;
119
- }
120
- /**
121
- * Wrapper message for `int32`.
122
- *
123
- * The JSON representation for `Int32Value` is JSON number.
124
- *
125
- * @generated from protobuf message google.protobuf.Int32Value
126
- */
127
- export interface Int32Value {
128
- /**
129
- * The int32 value.
130
- *
131
- * @generated from protobuf field: int32 value = 1
132
- */
133
- value: number;
134
- }
135
- /**
136
- * Wrapper message for `uint32`.
137
- *
138
- * The JSON representation for `UInt32Value` is JSON number.
139
- *
140
- * @generated from protobuf message google.protobuf.UInt32Value
141
- */
142
- export interface UInt32Value {
143
- /**
144
- * The uint32 value.
145
- *
146
- * @generated from protobuf field: uint32 value = 1
147
- */
148
- value: number;
149
- }
150
- /**
151
- * Wrapper message for `bool`.
152
- *
153
- * The JSON representation for `BoolValue` is JSON `true` and `false`.
154
- *
155
- * @generated from protobuf message google.protobuf.BoolValue
156
- */
157
- export interface BoolValue {
158
- /**
159
- * The bool value.
160
- *
161
- * @generated from protobuf field: bool value = 1
162
- */
163
- value: boolean;
164
- }
165
- /**
166
- * Wrapper message for `string`.
167
- *
168
- * The JSON representation for `StringValue` is JSON string.
169
- *
170
- * @generated from protobuf message google.protobuf.StringValue
171
- */
172
- export interface StringValue {
173
- /**
174
- * The string value.
175
- *
176
- * @generated from protobuf field: string value = 1
177
- */
178
- value: string;
179
- }
180
- /**
181
- * Wrapper message for `bytes`.
182
- *
183
- * The JSON representation for `BytesValue` is JSON string.
184
- *
185
- * @generated from protobuf message google.protobuf.BytesValue
186
- */
187
- export interface BytesValue {
188
- /**
189
- * The bytes value.
190
- *
191
- * @generated from protobuf field: bytes value = 1
192
- */
193
- value: Uint8Array;
194
- }
195
- // @generated message type with reflection information, may provide speed optimized methods
196
- class DoubleValue$Type extends MessageType<DoubleValue> {
197
- constructor() {
198
- super("google.protobuf.DoubleValue", [
199
- { no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
200
- ]);
201
- }
202
- /**
203
- * Encode `DoubleValue` to JSON number.
204
- */
205
- internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue {
206
- return this.refJsonWriter.scalar(2, message.value, "value", false, true);
207
- }
208
- /**
209
- * Decode `DoubleValue` from JSON number.
210
- */
211
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue {
212
- if (!target)
213
- target = this.create();
214
- target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
215
- return target;
216
- }
217
- create(value?: PartialMessage<DoubleValue>): DoubleValue {
218
- const message = globalThis.Object.create((this.messagePrototype!));
219
- message.value = 0;
220
- if (value !== undefined)
221
- reflectionMergePartial<DoubleValue>(this, message, value);
222
- return message;
223
- }
224
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue {
225
- let message = target ?? this.create(), end = reader.pos + length;
226
- while (reader.pos < end) {
227
- let [fieldNo, wireType] = reader.tag();
228
- switch (fieldNo) {
229
- case /* double value */ 1:
230
- message.value = reader.double();
231
- break;
232
- default:
233
- let u = options.readUnknownField;
234
- if (u === "throw")
235
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
236
- let d = reader.skip(wireType);
237
- if (u !== false)
238
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
239
- }
240
- }
241
- return message;
242
- }
243
- internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
244
- /* double value = 1; */
245
- if (message.value !== 0)
246
- writer.tag(1, WireType.Bit64).double(message.value);
247
- let u = options.writeUnknownFields;
248
- if (u !== false)
249
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
250
- return writer;
251
- }
252
- }
253
- /**
254
- * @generated MessageType for protobuf message google.protobuf.DoubleValue
255
- */
256
- export const DoubleValue = new DoubleValue$Type();
257
- // @generated message type with reflection information, may provide speed optimized methods
258
- class FloatValue$Type extends MessageType<FloatValue> {
259
- constructor() {
260
- super("google.protobuf.FloatValue", [
261
- { no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
262
- ]);
263
- }
264
- /**
265
- * Encode `FloatValue` to JSON number.
266
- */
267
- internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue {
268
- return this.refJsonWriter.scalar(1, message.value, "value", false, true);
269
- }
270
- /**
271
- * Decode `FloatValue` from JSON number.
272
- */
273
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue {
274
- if (!target)
275
- target = this.create();
276
- target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
277
- return target;
278
- }
279
- create(value?: PartialMessage<FloatValue>): FloatValue {
280
- const message = globalThis.Object.create((this.messagePrototype!));
281
- message.value = 0;
282
- if (value !== undefined)
283
- reflectionMergePartial<FloatValue>(this, message, value);
284
- return message;
285
- }
286
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue {
287
- let message = target ?? this.create(), end = reader.pos + length;
288
- while (reader.pos < end) {
289
- let [fieldNo, wireType] = reader.tag();
290
- switch (fieldNo) {
291
- case /* float value */ 1:
292
- message.value = reader.float();
293
- break;
294
- default:
295
- let u = options.readUnknownField;
296
- if (u === "throw")
297
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
298
- let d = reader.skip(wireType);
299
- if (u !== false)
300
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
301
- }
302
- }
303
- return message;
304
- }
305
- internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
306
- /* float value = 1; */
307
- if (message.value !== 0)
308
- writer.tag(1, WireType.Bit32).float(message.value);
309
- let u = options.writeUnknownFields;
310
- if (u !== false)
311
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
312
- return writer;
313
- }
314
- }
315
- /**
316
- * @generated MessageType for protobuf message google.protobuf.FloatValue
317
- */
318
- export const FloatValue = new FloatValue$Type();
319
- // @generated message type with reflection information, may provide speed optimized methods
320
- class Int64Value$Type extends MessageType<Int64Value> {
321
- constructor() {
322
- super("google.protobuf.Int64Value", [
323
- { no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
324
- ]);
325
- }
326
- /**
327
- * Encode `Int64Value` to JSON string.
328
- */
329
- internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue {
330
- return this.refJsonWriter.scalar(ScalarType.INT64, message.value, "value", false, true);
331
- }
332
- /**
333
- * Decode `Int64Value` from JSON string.
334
- */
335
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value {
336
- if (!target)
337
- target = this.create();
338
- target.value = this.refJsonReader.scalar(json, ScalarType.INT64, LongType.BIGINT, "value") as any;
339
- return target;
340
- }
341
- create(value?: PartialMessage<Int64Value>): Int64Value {
342
- const message = globalThis.Object.create((this.messagePrototype!));
343
- message.value = 0n;
344
- if (value !== undefined)
345
- reflectionMergePartial<Int64Value>(this, message, value);
346
- return message;
347
- }
348
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value {
349
- let message = target ?? this.create(), end = reader.pos + length;
350
- while (reader.pos < end) {
351
- let [fieldNo, wireType] = reader.tag();
352
- switch (fieldNo) {
353
- case /* int64 value */ 1:
354
- message.value = reader.int64().toBigInt();
355
- break;
356
- default:
357
- let u = options.readUnknownField;
358
- if (u === "throw")
359
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
360
- let d = reader.skip(wireType);
361
- if (u !== false)
362
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
363
- }
364
- }
365
- return message;
366
- }
367
- internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
368
- /* int64 value = 1; */
369
- if (message.value !== 0n)
370
- writer.tag(1, WireType.Varint).int64(message.value);
371
- let u = options.writeUnknownFields;
372
- if (u !== false)
373
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
374
- return writer;
375
- }
376
- }
377
- /**
378
- * @generated MessageType for protobuf message google.protobuf.Int64Value
379
- */
380
- export const Int64Value = new Int64Value$Type();
381
- // @generated message type with reflection information, may provide speed optimized methods
382
- class UInt64Value$Type extends MessageType<UInt64Value> {
383
- constructor() {
384
- super("google.protobuf.UInt64Value", [
385
- { no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
386
- ]);
387
- }
388
- /**
389
- * Encode `UInt64Value` to JSON string.
390
- */
391
- internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue {
392
- return this.refJsonWriter.scalar(ScalarType.UINT64, message.value, "value", false, true);
393
- }
394
- /**
395
- * Decode `UInt64Value` from JSON string.
396
- */
397
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value {
398
- if (!target)
399
- target = this.create();
400
- target.value = this.refJsonReader.scalar(json, ScalarType.UINT64, LongType.BIGINT, "value") as any;
401
- return target;
402
- }
403
- create(value?: PartialMessage<UInt64Value>): UInt64Value {
404
- const message = globalThis.Object.create((this.messagePrototype!));
405
- message.value = 0n;
406
- if (value !== undefined)
407
- reflectionMergePartial<UInt64Value>(this, message, value);
408
- return message;
409
- }
410
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value {
411
- let message = target ?? this.create(), end = reader.pos + length;
412
- while (reader.pos < end) {
413
- let [fieldNo, wireType] = reader.tag();
414
- switch (fieldNo) {
415
- case /* uint64 value */ 1:
416
- message.value = reader.uint64().toBigInt();
417
- break;
418
- default:
419
- let u = options.readUnknownField;
420
- if (u === "throw")
421
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
422
- let d = reader.skip(wireType);
423
- if (u !== false)
424
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
425
- }
426
- }
427
- return message;
428
- }
429
- internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
430
- /* uint64 value = 1; */
431
- if (message.value !== 0n)
432
- writer.tag(1, WireType.Varint).uint64(message.value);
433
- let u = options.writeUnknownFields;
434
- if (u !== false)
435
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
436
- return writer;
437
- }
438
- }
439
- /**
440
- * @generated MessageType for protobuf message google.protobuf.UInt64Value
441
- */
442
- export const UInt64Value = new UInt64Value$Type();
443
- // @generated message type with reflection information, may provide speed optimized methods
444
- class Int32Value$Type extends MessageType<Int32Value> {
445
- constructor() {
446
- super("google.protobuf.Int32Value", [
447
- { no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
448
- ]);
449
- }
450
- /**
451
- * Encode `Int32Value` to JSON string.
452
- */
453
- internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue {
454
- return this.refJsonWriter.scalar(5, message.value, "value", false, true);
455
- }
456
- /**
457
- * Decode `Int32Value` from JSON string.
458
- */
459
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value {
460
- if (!target)
461
- target = this.create();
462
- target.value = this.refJsonReader.scalar(json, 5, undefined, "value") as number;
463
- return target;
464
- }
465
- create(value?: PartialMessage<Int32Value>): Int32Value {
466
- const message = globalThis.Object.create((this.messagePrototype!));
467
- message.value = 0;
468
- if (value !== undefined)
469
- reflectionMergePartial<Int32Value>(this, message, value);
470
- return message;
471
- }
472
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value {
473
- let message = target ?? this.create(), end = reader.pos + length;
474
- while (reader.pos < end) {
475
- let [fieldNo, wireType] = reader.tag();
476
- switch (fieldNo) {
477
- case /* int32 value */ 1:
478
- message.value = reader.int32();
479
- break;
480
- default:
481
- let u = options.readUnknownField;
482
- if (u === "throw")
483
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
484
- let d = reader.skip(wireType);
485
- if (u !== false)
486
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
487
- }
488
- }
489
- return message;
490
- }
491
- internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
492
- /* int32 value = 1; */
493
- if (message.value !== 0)
494
- writer.tag(1, WireType.Varint).int32(message.value);
495
- let u = options.writeUnknownFields;
496
- if (u !== false)
497
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
498
- return writer;
499
- }
500
- }
501
- /**
502
- * @generated MessageType for protobuf message google.protobuf.Int32Value
503
- */
504
- export const Int32Value = new Int32Value$Type();
505
- // @generated message type with reflection information, may provide speed optimized methods
506
- class UInt32Value$Type extends MessageType<UInt32Value> {
507
- constructor() {
508
- super("google.protobuf.UInt32Value", [
509
- { no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
510
- ]);
511
- }
512
- /**
513
- * Encode `UInt32Value` to JSON string.
514
- */
515
- internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue {
516
- return this.refJsonWriter.scalar(13, message.value, "value", false, true);
517
- }
518
- /**
519
- * Decode `UInt32Value` from JSON string.
520
- */
521
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value {
522
- if (!target)
523
- target = this.create();
524
- target.value = this.refJsonReader.scalar(json, 13, undefined, "value") as number;
525
- return target;
526
- }
527
- create(value?: PartialMessage<UInt32Value>): UInt32Value {
528
- const message = globalThis.Object.create((this.messagePrototype!));
529
- message.value = 0;
530
- if (value !== undefined)
531
- reflectionMergePartial<UInt32Value>(this, message, value);
532
- return message;
533
- }
534
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value {
535
- let message = target ?? this.create(), end = reader.pos + length;
536
- while (reader.pos < end) {
537
- let [fieldNo, wireType] = reader.tag();
538
- switch (fieldNo) {
539
- case /* uint32 value */ 1:
540
- message.value = reader.uint32();
541
- break;
542
- default:
543
- let u = options.readUnknownField;
544
- if (u === "throw")
545
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
546
- let d = reader.skip(wireType);
547
- if (u !== false)
548
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
549
- }
550
- }
551
- return message;
552
- }
553
- internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
554
- /* uint32 value = 1; */
555
- if (message.value !== 0)
556
- writer.tag(1, WireType.Varint).uint32(message.value);
557
- let u = options.writeUnknownFields;
558
- if (u !== false)
559
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
560
- return writer;
561
- }
562
- }
563
- /**
564
- * @generated MessageType for protobuf message google.protobuf.UInt32Value
565
- */
566
- export const UInt32Value = new UInt32Value$Type();
567
- // @generated message type with reflection information, may provide speed optimized methods
568
- class BoolValue$Type extends MessageType<BoolValue> {
569
- constructor() {
570
- super("google.protobuf.BoolValue", [
571
- { no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
572
- ]);
573
- }
574
- /**
575
- * Encode `BoolValue` to JSON bool.
576
- */
577
- internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue {
578
- return message.value;
579
- }
580
- /**
581
- * Decode `BoolValue` from JSON bool.
582
- */
583
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue {
584
- if (!target)
585
- target = this.create();
586
- target.value = this.refJsonReader.scalar(json, 8, undefined, "value") as boolean;
587
- return target;
588
- }
589
- create(value?: PartialMessage<BoolValue>): BoolValue {
590
- const message = globalThis.Object.create((this.messagePrototype!));
591
- message.value = false;
592
- if (value !== undefined)
593
- reflectionMergePartial<BoolValue>(this, message, value);
594
- return message;
595
- }
596
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue {
597
- let message = target ?? this.create(), end = reader.pos + length;
598
- while (reader.pos < end) {
599
- let [fieldNo, wireType] = reader.tag();
600
- switch (fieldNo) {
601
- case /* bool value */ 1:
602
- message.value = reader.bool();
603
- break;
604
- default:
605
- let u = options.readUnknownField;
606
- if (u === "throw")
607
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
608
- let d = reader.skip(wireType);
609
- if (u !== false)
610
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
611
- }
612
- }
613
- return message;
614
- }
615
- internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
616
- /* bool value = 1; */
617
- if (message.value !== false)
618
- writer.tag(1, WireType.Varint).bool(message.value);
619
- let u = options.writeUnknownFields;
620
- if (u !== false)
621
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
622
- return writer;
623
- }
624
- }
625
- /**
626
- * @generated MessageType for protobuf message google.protobuf.BoolValue
627
- */
628
- export const BoolValue = new BoolValue$Type();
629
- // @generated message type with reflection information, may provide speed optimized methods
630
- class StringValue$Type extends MessageType<StringValue> {
631
- constructor() {
632
- super("google.protobuf.StringValue", [
633
- { no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
634
- ]);
635
- }
636
- /**
637
- * Encode `StringValue` to JSON string.
638
- */
639
- internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue {
640
- return message.value;
641
- }
642
- /**
643
- * Decode `StringValue` from JSON string.
644
- */
645
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue {
646
- if (!target)
647
- target = this.create();
648
- target.value = this.refJsonReader.scalar(json, 9, undefined, "value") as string;
649
- return target;
650
- }
651
- create(value?: PartialMessage<StringValue>): StringValue {
652
- const message = globalThis.Object.create((this.messagePrototype!));
653
- message.value = "";
654
- if (value !== undefined)
655
- reflectionMergePartial<StringValue>(this, message, value);
656
- return message;
657
- }
658
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue {
659
- let message = target ?? this.create(), end = reader.pos + length;
660
- while (reader.pos < end) {
661
- let [fieldNo, wireType] = reader.tag();
662
- switch (fieldNo) {
663
- case /* string value */ 1:
664
- message.value = reader.string();
665
- break;
666
- default:
667
- let u = options.readUnknownField;
668
- if (u === "throw")
669
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
670
- let d = reader.skip(wireType);
671
- if (u !== false)
672
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
673
- }
674
- }
675
- return message;
676
- }
677
- internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
678
- /* string value = 1; */
679
- if (message.value !== "")
680
- writer.tag(1, WireType.LengthDelimited).string(message.value);
681
- let u = options.writeUnknownFields;
682
- if (u !== false)
683
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
684
- return writer;
685
- }
686
- }
687
- /**
688
- * @generated MessageType for protobuf message google.protobuf.StringValue
689
- */
690
- export const StringValue = new StringValue$Type();
691
- // @generated message type with reflection information, may provide speed optimized methods
692
- class BytesValue$Type extends MessageType<BytesValue> {
693
- constructor() {
694
- super("google.protobuf.BytesValue", [
695
- { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
696
- ]);
697
- }
698
- /**
699
- * Encode `BytesValue` to JSON string.
700
- */
701
- internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue {
702
- return this.refJsonWriter.scalar(12, message.value, "value", false, true);
703
- }
704
- /**
705
- * Decode `BytesValue` from JSON string.
706
- */
707
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue {
708
- if (!target)
709
- target = this.create();
710
- target.value = this.refJsonReader.scalar(json, 12, undefined, "value") as Uint8Array;
711
- return target;
712
- }
713
- create(value?: PartialMessage<BytesValue>): BytesValue {
714
- const message = globalThis.Object.create((this.messagePrototype!));
715
- message.value = new Uint8Array(0);
716
- if (value !== undefined)
717
- reflectionMergePartial<BytesValue>(this, message, value);
718
- return message;
719
- }
720
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue {
721
- let message = target ?? this.create(), end = reader.pos + length;
722
- while (reader.pos < end) {
723
- let [fieldNo, wireType] = reader.tag();
724
- switch (fieldNo) {
725
- case /* bytes value */ 1:
726
- message.value = reader.bytes();
727
- break;
728
- default:
729
- let u = options.readUnknownField;
730
- if (u === "throw")
731
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
732
- let d = reader.skip(wireType);
733
- if (u !== false)
734
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
735
- }
736
- }
737
- return message;
738
- }
739
- internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
740
- /* bytes value = 1; */
741
- if (message.value.length)
742
- writer.tag(1, WireType.LengthDelimited).bytes(message.value);
743
- let u = options.writeUnknownFields;
744
- if (u !== false)
745
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
746
- return writer;
747
- }
748
- }
749
- /**
750
- * @generated MessageType for protobuf message google.protobuf.BytesValue
751
- */
752
- export const BytesValue = new BytesValue$Type();