@milaboratories/pl-client 2.11.3 → 2.11.4

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 (65) hide show
  1. package/dist/core/transaction.d.ts +2 -1
  2. package/dist/core/transaction.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1377 -1173
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +3 -3
  8. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  9. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  10. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  11. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  12. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
  13. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
  14. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  15. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  16. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  17. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  18. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
  19. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
  20. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +50 -50
  21. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +415 -304
  22. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  23. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +70 -66
  24. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  25. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +4 -4
  26. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +16 -16
  27. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +30 -30
  28. package/dist/proto/google/api/http.d.ts +93 -89
  29. package/dist/proto/google/api/http.d.ts.map +1 -1
  30. package/dist/proto/google/protobuf/any.d.ts +2 -2
  31. package/dist/proto/google/protobuf/descriptor.d.ts +1298 -1151
  32. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  33. package/dist/proto/google/protobuf/duration.d.ts +2 -2
  34. package/dist/proto/google/protobuf/struct.d.ts +10 -8
  35. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  36. package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
  37. package/dist/proto/google/protobuf/wrappers.d.ts +36 -9
  38. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/core/ll_client.test.ts +3 -3
  41. package/src/core/ll_transaction.test.ts +4 -4
  42. package/src/core/transaction.ts +2 -0
  43. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +5 -5
  44. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +23 -24
  45. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +232 -247
  46. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +3 -3
  47. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +13 -13
  48. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +35 -37
  49. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +375 -399
  50. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +11 -11
  51. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +26 -26
  52. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +51 -51
  53. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +687 -418
  54. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +113 -101
  55. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +5 -5
  56. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +17 -17
  57. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +50 -50
  58. package/src/proto/google/api/http.ts +290 -295
  59. package/src/proto/google/protobuf/any.ts +3 -3
  60. package/src/proto/google/protobuf/descriptor.ts +3235 -3123
  61. package/src/proto/google/protobuf/duration.ts +3 -3
  62. package/src/proto/google/protobuf/empty.ts +1 -1
  63. package/src/proto/google/protobuf/struct.ts +13 -11
  64. package/src/proto/google/protobuf/timestamp.ts +3 -3
  65. package/src/proto/google/protobuf/wrappers.ts +48 -14
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
1
+ // @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
3
3
  // tslint:disable
4
4
  //
@@ -16,15 +16,15 @@
16
16
  // See the License for the specific language governing permissions and
17
17
  // limitations under the License.
18
18
  //
19
- import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
20
- import type { IBinaryWriter } from '@protobuf-ts/runtime';
21
- import { WireType } from '@protobuf-ts/runtime';
22
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
23
- import type { IBinaryReader } from '@protobuf-ts/runtime';
24
- import { UnknownFieldHandler } from '@protobuf-ts/runtime';
25
- import type { PartialMessage } from '@protobuf-ts/runtime';
26
- import { reflectionMergePartial } from '@protobuf-ts/runtime';
27
- import { MessageType } from '@protobuf-ts/runtime';
19
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
20
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
21
+ import { WireType } from "@protobuf-ts/runtime";
22
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
23
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
24
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
25
+ import type { PartialMessage } from "@protobuf-ts/runtime";
26
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
27
+ import { MessageType } from "@protobuf-ts/runtime";
28
28
  /**
29
29
  * Defines the HTTP configuration for an API service. It contains a list of
30
30
  * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
@@ -33,15 +33,15 @@ import { MessageType } from '@protobuf-ts/runtime';
33
33
  * @generated from protobuf message google.api.Http
34
34
  */
35
35
  export interface Http {
36
- /**
36
+ /**
37
37
  * A list of HTTP configuration rules that apply to individual API methods.
38
38
  *
39
39
  * **NOTE:** All service configuration rules follow "last one wins" order.
40
40
  *
41
- * @generated from protobuf field: repeated google.api.HttpRule rules = 1;
41
+ * @generated from protobuf field: repeated google.api.HttpRule rules = 1
42
42
  */
43
- rules: HttpRule[];
44
- /**
43
+ rules: HttpRule[];
44
+ /**
45
45
  * When set to true, URL path parameters will be fully URI-decoded except in
46
46
  * cases of single segment matches in reserved expansion, where "%2F" will be
47
47
  * left encoded.
@@ -49,9 +49,9 @@ export interface Http {
49
49
  * The default behavior is to not decode RFC 6570 reserved characters in multi
50
50
  * segment matches.
51
51
  *
52
- * @generated from protobuf field: bool fully_decode_reserved_expansion = 2;
52
+ * @generated from protobuf field: bool fully_decode_reserved_expansion = 2
53
53
  */
54
- fullyDecodeReservedExpansion: boolean;
54
+ fullyDecodeReservedExpansion: boolean;
55
55
  }
56
56
  /**
57
57
  * # gRPC Transcoding
@@ -327,73 +327,77 @@ export interface Http {
327
327
  * @generated from protobuf message google.api.HttpRule
328
328
  */
329
329
  export interface HttpRule {
330
- /**
330
+ /**
331
331
  * Selects a method to which this rule applies.
332
332
  *
333
333
  * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
334
334
  *
335
- * @generated from protobuf field: string selector = 1;
335
+ * @generated from protobuf field: string selector = 1
336
336
  */
337
- selector: string;
338
- /**
337
+ selector: string;
338
+ /**
339
+ * Determines the URL pattern is matched by this rules. This pattern can be
340
+ * used with any of the {get|put|post|delete|patch} methods. A custom method
341
+ * can be defined using the 'custom' field.
342
+ *
339
343
  * @generated from protobuf oneof: pattern
340
344
  */
341
- pattern: {
342
- oneofKind: 'get';
343
- /**
345
+ pattern: {
346
+ oneofKind: "get";
347
+ /**
344
348
  * Maps to HTTP GET. Used for listing and getting information about
345
349
  * resources.
346
350
  *
347
- * @generated from protobuf field: string get = 2;
351
+ * @generated from protobuf field: string get = 2
348
352
  */
349
- get: string;
350
- } | {
351
- oneofKind: 'put';
352
- /**
353
+ get: string;
354
+ } | {
355
+ oneofKind: "put";
356
+ /**
353
357
  * Maps to HTTP PUT. Used for replacing a resource.
354
358
  *
355
- * @generated from protobuf field: string put = 3;
359
+ * @generated from protobuf field: string put = 3
356
360
  */
357
- put: string;
358
- } | {
359
- oneofKind: 'post';
360
- /**
361
+ put: string;
362
+ } | {
363
+ oneofKind: "post";
364
+ /**
361
365
  * Maps to HTTP POST. Used for creating a resource or performing an action.
362
366
  *
363
- * @generated from protobuf field: string post = 4;
367
+ * @generated from protobuf field: string post = 4
364
368
  */
365
- post: string;
366
- } | {
367
- oneofKind: 'delete';
368
- /**
369
+ post: string;
370
+ } | {
371
+ oneofKind: "delete";
372
+ /**
369
373
  * Maps to HTTP DELETE. Used for deleting a resource.
370
374
  *
371
- * @generated from protobuf field: string delete = 5;
375
+ * @generated from protobuf field: string delete = 5
372
376
  */
373
- delete: string;
374
- } | {
375
- oneofKind: 'patch';
376
- /**
377
+ delete: string;
378
+ } | {
379
+ oneofKind: "patch";
380
+ /**
377
381
  * Maps to HTTP PATCH. Used for updating a resource.
378
382
  *
379
- * @generated from protobuf field: string patch = 6;
383
+ * @generated from protobuf field: string patch = 6
380
384
  */
381
- patch: string;
382
- } | {
383
- oneofKind: 'custom';
384
- /**
385
+ patch: string;
386
+ } | {
387
+ oneofKind: "custom";
388
+ /**
385
389
  * The custom pattern is used for specifying an HTTP method that is not
386
390
  * included in the `pattern` field, such as HEAD, or "*" to leave the
387
391
  * HTTP method unspecified for this rule. The wild-card rule is useful
388
392
  * for services that provide content to Web (HTML) clients.
389
393
  *
390
- * @generated from protobuf field: google.api.CustomHttpPattern custom = 8;
394
+ * @generated from protobuf field: google.api.CustomHttpPattern custom = 8
391
395
  */
392
- custom: CustomHttpPattern;
393
- } | {
394
- oneofKind: undefined;
395
- };
396
- /**
396
+ custom: CustomHttpPattern;
397
+ } | {
398
+ oneofKind: undefined;
399
+ };
400
+ /**
397
401
  * The name of the request field whose value is mapped to the HTTP request
398
402
  * body, or `*` for mapping all request fields not captured by the path
399
403
  * pattern to the HTTP body, or omitted for not having any HTTP request body.
@@ -401,10 +405,10 @@ export interface HttpRule {
401
405
  * NOTE: the referred field must be present at the top-level of the request
402
406
  * message type.
403
407
  *
404
- * @generated from protobuf field: string body = 7;
408
+ * @generated from protobuf field: string body = 7
405
409
  */
406
- body: string;
407
- /**
410
+ body: string;
411
+ /**
408
412
  * Optional. The name of the response field whose value is mapped to the HTTP
409
413
  * response body. When omitted, the entire response message will be used
410
414
  * as the HTTP response body.
@@ -412,17 +416,17 @@ export interface HttpRule {
412
416
  * NOTE: The referred field must be present at the top-level of the response
413
417
  * message type.
414
418
  *
415
- * @generated from protobuf field: string response_body = 12;
419
+ * @generated from protobuf field: string response_body = 12
416
420
  */
417
- responseBody: string;
418
- /**
421
+ responseBody: string;
422
+ /**
419
423
  * Additional HTTP bindings for the selector. Nested bindings must
420
424
  * not contain an `additional_bindings` field themselves (that is,
421
425
  * the nesting may only be one level deep).
422
426
  *
423
- * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11;
427
+ * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11
424
428
  */
425
- additionalBindings: HttpRule[];
429
+ additionalBindings: HttpRule[];
426
430
  }
427
431
  /**
428
432
  * A custom pattern is used for defining custom HTTP verb.
@@ -430,72 +434,69 @@ export interface HttpRule {
430
434
  * @generated from protobuf message google.api.CustomHttpPattern
431
435
  */
432
436
  export interface CustomHttpPattern {
433
- /**
437
+ /**
434
438
  * The name of this custom HTTP verb.
435
439
  *
436
- * @generated from protobuf field: string kind = 1;
440
+ * @generated from protobuf field: string kind = 1
437
441
  */
438
- kind: string;
439
- /**
442
+ kind: string;
443
+ /**
440
444
  * The path matched by this custom verb.
441
445
  *
442
- * @generated from protobuf field: string path = 2;
446
+ * @generated from protobuf field: string path = 2
443
447
  */
444
- path: string;
448
+ path: string;
445
449
  }
446
450
  // @generated message type with reflection information, may provide speed optimized methods
447
451
  class Http$Type extends MessageType<Http> {
448
- constructor() {
449
- super('google.api.Http', [
450
- { no: 1, name: 'rules', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => HttpRule },
451
- { no: 2, name: 'fully_decode_reserved_expansion', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
452
- ]);
453
- }
454
-
455
- create(value?: PartialMessage<Http>): Http {
456
- const message = globalThis.Object.create((this.messagePrototype!));
457
- message.rules = [];
458
- message.fullyDecodeReservedExpansion = false;
459
- if (value !== undefined)
460
- reflectionMergePartial<Http>(this, message, value);
461
- return message;
462
- }
463
-
464
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Http): Http {
465
- const message = target ?? this.create(), end = reader.pos + length;
466
- while (reader.pos < end) {
467
- const [fieldNo, wireType] = reader.tag();
468
- switch (fieldNo) {
469
- case /* repeated google.api.HttpRule rules */ 1:
470
- message.rules.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
471
- break;
472
- case /* bool fully_decode_reserved_expansion */ 2:
473
- message.fullyDecodeReservedExpansion = reader.bool();
474
- break;
475
- default:
476
- const u = options.readUnknownField;
477
- if (u === 'throw')
478
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
479
- const d = reader.skip(wireType);
480
- if (u !== false)
481
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
482
- }
452
+ constructor() {
453
+ super("google.api.Http", [
454
+ { no: 1, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HttpRule },
455
+ { no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
456
+ ]);
457
+ }
458
+ create(value?: PartialMessage<Http>): Http {
459
+ const message = globalThis.Object.create((this.messagePrototype!));
460
+ message.rules = [];
461
+ message.fullyDecodeReservedExpansion = false;
462
+ if (value !== undefined)
463
+ reflectionMergePartial<Http>(this, message, value);
464
+ return message;
465
+ }
466
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Http): Http {
467
+ let message = target ?? this.create(), end = reader.pos + length;
468
+ while (reader.pos < end) {
469
+ let [fieldNo, wireType] = reader.tag();
470
+ switch (fieldNo) {
471
+ case /* repeated google.api.HttpRule rules */ 1:
472
+ message.rules.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
473
+ break;
474
+ case /* bool fully_decode_reserved_expansion */ 2:
475
+ message.fullyDecodeReservedExpansion = reader.bool();
476
+ break;
477
+ default:
478
+ let u = options.readUnknownField;
479
+ if (u === "throw")
480
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
481
+ let d = reader.skip(wireType);
482
+ if (u !== false)
483
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
484
+ }
485
+ }
486
+ return message;
487
+ }
488
+ internalBinaryWrite(message: Http, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
489
+ /* repeated google.api.HttpRule rules = 1; */
490
+ for (let i = 0; i < message.rules.length; i++)
491
+ HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
492
+ /* bool fully_decode_reserved_expansion = 2; */
493
+ if (message.fullyDecodeReservedExpansion !== false)
494
+ writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
495
+ let u = options.writeUnknownFields;
496
+ if (u !== false)
497
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
498
+ return writer;
483
499
  }
484
- return message;
485
- }
486
-
487
- internalBinaryWrite(message: Http, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
488
- /* repeated google.api.HttpRule rules = 1; */
489
- for (let i = 0; i < message.rules.length; i++)
490
- HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
491
- /* bool fully_decode_reserved_expansion = 2; */
492
- if (message.fullyDecodeReservedExpansion !== false)
493
- writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
494
- const u = options.writeUnknownFields;
495
- if (u !== false)
496
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
497
- return writer;
498
- }
499
500
  }
500
501
  /**
501
502
  * @generated MessageType for protobuf message google.api.Http
@@ -503,134 +504,131 @@ class Http$Type extends MessageType<Http> {
503
504
  export const Http = new Http$Type();
504
505
  // @generated message type with reflection information, may provide speed optimized methods
505
506
  class HttpRule$Type extends MessageType<HttpRule> {
506
- constructor() {
507
- super('google.api.HttpRule', [
508
- { no: 1, name: 'selector', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
509
- { no: 2, name: 'get', kind: 'scalar', oneof: 'pattern', T: 9 /* ScalarType.STRING */ },
510
- { no: 3, name: 'put', kind: 'scalar', oneof: 'pattern', T: 9 /* ScalarType.STRING */ },
511
- { no: 4, name: 'post', kind: 'scalar', oneof: 'pattern', T: 9 /* ScalarType.STRING */ },
512
- { no: 5, name: 'delete', kind: 'scalar', oneof: 'pattern', T: 9 /* ScalarType.STRING */ },
513
- { no: 6, name: 'patch', kind: 'scalar', oneof: 'pattern', T: 9 /* ScalarType.STRING */ },
514
- { no: 8, name: 'custom', kind: 'message', oneof: 'pattern', T: () => CustomHttpPattern },
515
- { no: 7, name: 'body', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
516
- { no: 12, name: 'response_body', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
517
- { no: 11, name: 'additional_bindings', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => HttpRule },
518
- ]);
519
- }
520
-
521
- create(value?: PartialMessage<HttpRule>): HttpRule {
522
- const message = globalThis.Object.create((this.messagePrototype!));
523
- message.selector = '';
524
- message.pattern = { oneofKind: undefined };
525
- message.body = '';
526
- message.responseBody = '';
527
- message.additionalBindings = [];
528
- if (value !== undefined)
529
- reflectionMergePartial<HttpRule>(this, message, value);
530
- return message;
531
- }
532
-
533
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpRule): HttpRule {
534
- const message = target ?? this.create(), end = reader.pos + length;
535
- while (reader.pos < end) {
536
- const [fieldNo, wireType] = reader.tag();
537
- switch (fieldNo) {
538
- case /* string selector */ 1:
539
- message.selector = reader.string();
540
- break;
541
- case /* string get */ 2:
542
- message.pattern = {
543
- oneofKind: 'get',
544
- get: reader.string(),
545
- };
546
- break;
547
- case /* string put */ 3:
548
- message.pattern = {
549
- oneofKind: 'put',
550
- put: reader.string(),
551
- };
552
- break;
553
- case /* string post */ 4:
554
- message.pattern = {
555
- oneofKind: 'post',
556
- post: reader.string(),
557
- };
558
- break;
559
- case /* string delete */ 5:
560
- message.pattern = {
561
- oneofKind: 'delete',
562
- delete: reader.string(),
563
- };
564
- break;
565
- case /* string patch */ 6:
566
- message.pattern = {
567
- oneofKind: 'patch',
568
- patch: reader.string(),
569
- };
570
- break;
571
- case /* google.api.CustomHttpPattern custom */ 8:
572
- message.pattern = {
573
- oneofKind: 'custom',
574
- custom: CustomHttpPattern.internalBinaryRead(reader, reader.uint32(), options, (message.pattern as any).custom),
575
- };
576
- break;
577
- case /* string body */ 7:
578
- message.body = reader.string();
579
- break;
580
- case /* string response_body */ 12:
581
- message.responseBody = reader.string();
582
- break;
583
- case /* repeated google.api.HttpRule additional_bindings */ 11:
584
- message.additionalBindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
585
- break;
586
- default:
587
- const u = options.readUnknownField;
588
- if (u === 'throw')
589
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
590
- const d = reader.skip(wireType);
591
- if (u !== false)
592
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
593
- }
507
+ constructor() {
508
+ super("google.api.HttpRule", [
509
+ { no: 1, name: "selector", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
510
+ { no: 2, name: "get", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
511
+ { no: 3, name: "put", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
512
+ { no: 4, name: "post", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
513
+ { no: 5, name: "delete", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
514
+ { no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
515
+ { no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => CustomHttpPattern },
516
+ { no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
517
+ { no: 12, name: "response_body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
518
+ { no: 11, name: "additional_bindings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HttpRule }
519
+ ]);
520
+ }
521
+ create(value?: PartialMessage<HttpRule>): HttpRule {
522
+ const message = globalThis.Object.create((this.messagePrototype!));
523
+ message.selector = "";
524
+ message.pattern = { oneofKind: undefined };
525
+ message.body = "";
526
+ message.responseBody = "";
527
+ message.additionalBindings = [];
528
+ if (value !== undefined)
529
+ reflectionMergePartial<HttpRule>(this, message, value);
530
+ return message;
531
+ }
532
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpRule): HttpRule {
533
+ let message = target ?? this.create(), end = reader.pos + length;
534
+ while (reader.pos < end) {
535
+ let [fieldNo, wireType] = reader.tag();
536
+ switch (fieldNo) {
537
+ case /* string selector */ 1:
538
+ message.selector = reader.string();
539
+ break;
540
+ case /* string get */ 2:
541
+ message.pattern = {
542
+ oneofKind: "get",
543
+ get: reader.string()
544
+ };
545
+ break;
546
+ case /* string put */ 3:
547
+ message.pattern = {
548
+ oneofKind: "put",
549
+ put: reader.string()
550
+ };
551
+ break;
552
+ case /* string post */ 4:
553
+ message.pattern = {
554
+ oneofKind: "post",
555
+ post: reader.string()
556
+ };
557
+ break;
558
+ case /* string delete */ 5:
559
+ message.pattern = {
560
+ oneofKind: "delete",
561
+ delete: reader.string()
562
+ };
563
+ break;
564
+ case /* string patch */ 6:
565
+ message.pattern = {
566
+ oneofKind: "patch",
567
+ patch: reader.string()
568
+ };
569
+ break;
570
+ case /* google.api.CustomHttpPattern custom */ 8:
571
+ message.pattern = {
572
+ oneofKind: "custom",
573
+ custom: CustomHttpPattern.internalBinaryRead(reader, reader.uint32(), options, (message.pattern as any).custom)
574
+ };
575
+ break;
576
+ case /* string body */ 7:
577
+ message.body = reader.string();
578
+ break;
579
+ case /* string response_body */ 12:
580
+ message.responseBody = reader.string();
581
+ break;
582
+ case /* repeated google.api.HttpRule additional_bindings */ 11:
583
+ message.additionalBindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
584
+ break;
585
+ default:
586
+ let u = options.readUnknownField;
587
+ if (u === "throw")
588
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
589
+ let d = reader.skip(wireType);
590
+ if (u !== false)
591
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
592
+ }
593
+ }
594
+ return message;
595
+ }
596
+ internalBinaryWrite(message: HttpRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
597
+ /* string selector = 1; */
598
+ if (message.selector !== "")
599
+ writer.tag(1, WireType.LengthDelimited).string(message.selector);
600
+ /* string get = 2; */
601
+ if (message.pattern.oneofKind === "get")
602
+ writer.tag(2, WireType.LengthDelimited).string(message.pattern.get);
603
+ /* string put = 3; */
604
+ if (message.pattern.oneofKind === "put")
605
+ writer.tag(3, WireType.LengthDelimited).string(message.pattern.put);
606
+ /* string post = 4; */
607
+ if (message.pattern.oneofKind === "post")
608
+ writer.tag(4, WireType.LengthDelimited).string(message.pattern.post);
609
+ /* string delete = 5; */
610
+ if (message.pattern.oneofKind === "delete")
611
+ writer.tag(5, WireType.LengthDelimited).string(message.pattern.delete);
612
+ /* string patch = 6; */
613
+ if (message.pattern.oneofKind === "patch")
614
+ writer.tag(6, WireType.LengthDelimited).string(message.pattern.patch);
615
+ /* string body = 7; */
616
+ if (message.body !== "")
617
+ writer.tag(7, WireType.LengthDelimited).string(message.body);
618
+ /* google.api.CustomHttpPattern custom = 8; */
619
+ if (message.pattern.oneofKind === "custom")
620
+ CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
621
+ /* repeated google.api.HttpRule additional_bindings = 11; */
622
+ for (let i = 0; i < message.additionalBindings.length; i++)
623
+ HttpRule.internalBinaryWrite(message.additionalBindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
624
+ /* string response_body = 12; */
625
+ if (message.responseBody !== "")
626
+ writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
627
+ let u = options.writeUnknownFields;
628
+ if (u !== false)
629
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
630
+ return writer;
594
631
  }
595
- return message;
596
- }
597
-
598
- internalBinaryWrite(message: HttpRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
599
- /* string selector = 1; */
600
- if (message.selector !== '')
601
- writer.tag(1, WireType.LengthDelimited).string(message.selector);
602
- /* string get = 2; */
603
- if (message.pattern.oneofKind === 'get')
604
- writer.tag(2, WireType.LengthDelimited).string(message.pattern.get);
605
- /* string put = 3; */
606
- if (message.pattern.oneofKind === 'put')
607
- writer.tag(3, WireType.LengthDelimited).string(message.pattern.put);
608
- /* string post = 4; */
609
- if (message.pattern.oneofKind === 'post')
610
- writer.tag(4, WireType.LengthDelimited).string(message.pattern.post);
611
- /* string delete = 5; */
612
- if (message.pattern.oneofKind === 'delete')
613
- writer.tag(5, WireType.LengthDelimited).string(message.pattern.delete);
614
- /* string patch = 6; */
615
- if (message.pattern.oneofKind === 'patch')
616
- writer.tag(6, WireType.LengthDelimited).string(message.pattern.patch);
617
- /* google.api.CustomHttpPattern custom = 8; */
618
- if (message.pattern.oneofKind === 'custom')
619
- CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
620
- /* string body = 7; */
621
- if (message.body !== '')
622
- writer.tag(7, WireType.LengthDelimited).string(message.body);
623
- /* string response_body = 12; */
624
- if (message.responseBody !== '')
625
- writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
626
- /* repeated google.api.HttpRule additional_bindings = 11; */
627
- for (let i = 0; i < message.additionalBindings.length; i++)
628
- HttpRule.internalBinaryWrite(message.additionalBindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
629
- const u = options.writeUnknownFields;
630
- if (u !== false)
631
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
632
- return writer;
633
- }
634
632
  }
635
633
  /**
636
634
  * @generated MessageType for protobuf message google.api.HttpRule
@@ -638,57 +636,54 @@ class HttpRule$Type extends MessageType<HttpRule> {
638
636
  export const HttpRule = new HttpRule$Type();
639
637
  // @generated message type with reflection information, may provide speed optimized methods
640
638
  class CustomHttpPattern$Type extends MessageType<CustomHttpPattern> {
641
- constructor() {
642
- super('google.api.CustomHttpPattern', [
643
- { no: 1, name: 'kind', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
644
- { no: 2, name: 'path', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
645
- ]);
646
- }
647
-
648
- create(value?: PartialMessage<CustomHttpPattern>): CustomHttpPattern {
649
- const message = globalThis.Object.create((this.messagePrototype!));
650
- message.kind = '';
651
- message.path = '';
652
- if (value !== undefined)
653
- reflectionMergePartial<CustomHttpPattern>(this, message, value);
654
- return message;
655
- }
656
-
657
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomHttpPattern): CustomHttpPattern {
658
- const message = target ?? this.create(), end = reader.pos + length;
659
- while (reader.pos < end) {
660
- const [fieldNo, wireType] = reader.tag();
661
- switch (fieldNo) {
662
- case /* string kind */ 1:
663
- message.kind = reader.string();
664
- break;
665
- case /* string path */ 2:
666
- message.path = reader.string();
667
- break;
668
- default:
669
- const u = options.readUnknownField;
670
- if (u === 'throw')
671
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
672
- const d = reader.skip(wireType);
673
- if (u !== false)
674
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
675
- }
639
+ constructor() {
640
+ super("google.api.CustomHttpPattern", [
641
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
642
+ { no: 2, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
643
+ ]);
644
+ }
645
+ create(value?: PartialMessage<CustomHttpPattern>): CustomHttpPattern {
646
+ const message = globalThis.Object.create((this.messagePrototype!));
647
+ message.kind = "";
648
+ message.path = "";
649
+ if (value !== undefined)
650
+ reflectionMergePartial<CustomHttpPattern>(this, message, value);
651
+ return message;
652
+ }
653
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomHttpPattern): CustomHttpPattern {
654
+ let message = target ?? this.create(), end = reader.pos + length;
655
+ while (reader.pos < end) {
656
+ let [fieldNo, wireType] = reader.tag();
657
+ switch (fieldNo) {
658
+ case /* string kind */ 1:
659
+ message.kind = reader.string();
660
+ break;
661
+ case /* string path */ 2:
662
+ message.path = reader.string();
663
+ break;
664
+ default:
665
+ let u = options.readUnknownField;
666
+ if (u === "throw")
667
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
668
+ let d = reader.skip(wireType);
669
+ if (u !== false)
670
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
671
+ }
672
+ }
673
+ return message;
674
+ }
675
+ internalBinaryWrite(message: CustomHttpPattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
676
+ /* string kind = 1; */
677
+ if (message.kind !== "")
678
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
679
+ /* string path = 2; */
680
+ if (message.path !== "")
681
+ writer.tag(2, WireType.LengthDelimited).string(message.path);
682
+ let u = options.writeUnknownFields;
683
+ if (u !== false)
684
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
685
+ return writer;
676
686
  }
677
- return message;
678
- }
679
-
680
- internalBinaryWrite(message: CustomHttpPattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
681
- /* string kind = 1; */
682
- if (message.kind !== '')
683
- writer.tag(1, WireType.LengthDelimited).string(message.kind);
684
- /* string path = 2; */
685
- if (message.path !== '')
686
- writer.tag(2, WireType.LengthDelimited).string(message.path);
687
- const u = options.writeUnknownFields;
688
- if (u !== false)
689
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
690
- return writer;
691
- }
692
687
  }
693
688
  /**
694
689
  * @generated MessageType for protobuf message google.api.CustomHttpPattern