@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
@@ -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
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.
@@ -51,7 +51,7 @@ export interface Http {
51
51
  *
52
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,61 +327,61 @@ 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
335
  * @generated from protobuf field: string selector = 1;
336
336
  */
337
- selector: string;
338
- /**
337
+ selector: string;
338
+ /**
339
339
  * @generated from protobuf oneof: pattern
340
340
  */
341
- pattern: {
342
- oneofKind: "get";
343
- /**
341
+ pattern: {
342
+ oneofKind: 'get';
343
+ /**
344
344
  * Maps to HTTP GET. Used for listing and getting information about
345
345
  * resources.
346
346
  *
347
347
  * @generated from protobuf field: string get = 2;
348
348
  */
349
- get: string;
350
- } | {
351
- oneofKind: "put";
352
- /**
349
+ get: string;
350
+ } | {
351
+ oneofKind: 'put';
352
+ /**
353
353
  * Maps to HTTP PUT. Used for replacing a resource.
354
354
  *
355
355
  * @generated from protobuf field: string put = 3;
356
356
  */
357
- put: string;
358
- } | {
359
- oneofKind: "post";
360
- /**
357
+ put: string;
358
+ } | {
359
+ oneofKind: 'post';
360
+ /**
361
361
  * Maps to HTTP POST. Used for creating a resource or performing an action.
362
362
  *
363
363
  * @generated from protobuf field: string post = 4;
364
364
  */
365
- post: string;
366
- } | {
367
- oneofKind: "delete";
368
- /**
365
+ post: string;
366
+ } | {
367
+ oneofKind: 'delete';
368
+ /**
369
369
  * Maps to HTTP DELETE. Used for deleting a resource.
370
370
  *
371
371
  * @generated from protobuf field: string delete = 5;
372
372
  */
373
- delete: string;
374
- } | {
375
- oneofKind: "patch";
376
- /**
373
+ delete: string;
374
+ } | {
375
+ oneofKind: 'patch';
376
+ /**
377
377
  * Maps to HTTP PATCH. Used for updating a resource.
378
378
  *
379
379
  * @generated from protobuf field: string patch = 6;
380
380
  */
381
- patch: string;
382
- } | {
383
- oneofKind: "custom";
384
- /**
381
+ patch: string;
382
+ } | {
383
+ oneofKind: 'custom';
384
+ /**
385
385
  * The custom pattern is used for specifying an HTTP method that is not
386
386
  * included in the `pattern` field, such as HEAD, or "*" to leave the
387
387
  * HTTP method unspecified for this rule. The wild-card rule is useful
@@ -389,11 +389,11 @@ export interface HttpRule {
389
389
  *
390
390
  * @generated from protobuf field: google.api.CustomHttpPattern custom = 8;
391
391
  */
392
- custom: CustomHttpPattern;
393
- } | {
394
- oneofKind: undefined;
395
- };
396
- /**
392
+ custom: CustomHttpPattern;
393
+ } | {
394
+ oneofKind: undefined;
395
+ };
396
+ /**
397
397
  * The name of the request field whose value is mapped to the HTTP request
398
398
  * body, or `*` for mapping all request fields not captured by the path
399
399
  * pattern to the HTTP body, or omitted for not having any HTTP request body.
@@ -403,8 +403,8 @@ export interface HttpRule {
403
403
  *
404
404
  * @generated from protobuf field: string body = 7;
405
405
  */
406
- body: string;
407
- /**
406
+ body: string;
407
+ /**
408
408
  * Optional. The name of the response field whose value is mapped to the HTTP
409
409
  * response body. When omitted, the entire response message will be used
410
410
  * as the HTTP response body.
@@ -414,15 +414,15 @@ export interface HttpRule {
414
414
  *
415
415
  * @generated from protobuf field: string response_body = 12;
416
416
  */
417
- responseBody: string;
418
- /**
417
+ responseBody: string;
418
+ /**
419
419
  * Additional HTTP bindings for the selector. Nested bindings must
420
420
  * not contain an `additional_bindings` field themselves (that is,
421
421
  * the nesting may only be one level deep).
422
422
  *
423
423
  * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11;
424
424
  */
425
- additionalBindings: HttpRule[];
425
+ additionalBindings: HttpRule[];
426
426
  }
427
427
  /**
428
428
  * A custom pattern is used for defining custom HTTP verb.
@@ -430,69 +430,72 @@ export interface HttpRule {
430
430
  * @generated from protobuf message google.api.CustomHttpPattern
431
431
  */
432
432
  export interface CustomHttpPattern {
433
- /**
433
+ /**
434
434
  * The name of this custom HTTP verb.
435
435
  *
436
436
  * @generated from protobuf field: string kind = 1;
437
437
  */
438
- kind: string;
439
- /**
438
+ kind: string;
439
+ /**
440
440
  * The path matched by this custom verb.
441
441
  *
442
442
  * @generated from protobuf field: string path = 2;
443
443
  */
444
- path: string;
444
+ path: string;
445
445
  }
446
446
  // @generated message type with reflection information, may provide speed optimized methods
447
447
  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
- create(value?: PartialMessage<Http>): Http {
455
- const message = globalThis.Object.create((this.messagePrototype!));
456
- message.rules = [];
457
- message.fullyDecodeReservedExpansion = false;
458
- if (value !== undefined)
459
- reflectionMergePartial<Http>(this, message, value);
460
- return message;
461
- }
462
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Http): Http {
463
- let message = target ?? this.create(), end = reader.pos + length;
464
- while (reader.pos < end) {
465
- let [fieldNo, wireType] = reader.tag();
466
- switch (fieldNo) {
467
- case /* repeated google.api.HttpRule rules */ 1:
468
- message.rules.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
469
- break;
470
- case /* bool fully_decode_reserved_expansion */ 2:
471
- message.fullyDecodeReservedExpansion = reader.bool();
472
- break;
473
- default:
474
- let u = options.readUnknownField;
475
- if (u === "throw")
476
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
477
- let d = reader.skip(wireType);
478
- if (u !== false)
479
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
480
- }
481
- }
482
- return message;
483
- }
484
- internalBinaryWrite(message: Http, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
485
- /* repeated google.api.HttpRule rules = 1; */
486
- for (let i = 0; i < message.rules.length; i++)
487
- HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
488
- /* bool fully_decode_reserved_expansion = 2; */
489
- if (message.fullyDecodeReservedExpansion !== false)
490
- writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
491
- let u = options.writeUnknownFields;
492
- if (u !== false)
493
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
494
- return writer;
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
+ }
495
483
  }
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
+ }
496
499
  }
497
500
  /**
498
501
  * @generated MessageType for protobuf message google.api.Http
@@ -500,131 +503,134 @@ class Http$Type extends MessageType<Http> {
500
503
  export const Http = new Http$Type();
501
504
  // @generated message type with reflection information, may provide speed optimized methods
502
505
  class HttpRule$Type extends MessageType<HttpRule> {
503
- constructor() {
504
- super("google.api.HttpRule", [
505
- { no: 1, name: "selector", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
506
- { no: 2, name: "get", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
507
- { no: 3, name: "put", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
508
- { no: 4, name: "post", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
509
- { no: 5, name: "delete", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
510
- { no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
511
- { no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => CustomHttpPattern },
512
- { no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
513
- { no: 12, name: "response_body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
514
- { no: 11, name: "additional_bindings", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule }
515
- ]);
516
- }
517
- create(value?: PartialMessage<HttpRule>): HttpRule {
518
- const message = globalThis.Object.create((this.messagePrototype!));
519
- message.selector = "";
520
- message.pattern = { oneofKind: undefined };
521
- message.body = "";
522
- message.responseBody = "";
523
- message.additionalBindings = [];
524
- if (value !== undefined)
525
- reflectionMergePartial<HttpRule>(this, message, value);
526
- return message;
527
- }
528
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpRule): HttpRule {
529
- let message = target ?? this.create(), end = reader.pos + length;
530
- while (reader.pos < end) {
531
- let [fieldNo, wireType] = reader.tag();
532
- switch (fieldNo) {
533
- case /* string selector */ 1:
534
- message.selector = reader.string();
535
- break;
536
- case /* string get */ 2:
537
- message.pattern = {
538
- oneofKind: "get",
539
- get: reader.string()
540
- };
541
- break;
542
- case /* string put */ 3:
543
- message.pattern = {
544
- oneofKind: "put",
545
- put: reader.string()
546
- };
547
- break;
548
- case /* string post */ 4:
549
- message.pattern = {
550
- oneofKind: "post",
551
- post: reader.string()
552
- };
553
- break;
554
- case /* string delete */ 5:
555
- message.pattern = {
556
- oneofKind: "delete",
557
- delete: reader.string()
558
- };
559
- break;
560
- case /* string patch */ 6:
561
- message.pattern = {
562
- oneofKind: "patch",
563
- patch: reader.string()
564
- };
565
- break;
566
- case /* google.api.CustomHttpPattern custom */ 8:
567
- message.pattern = {
568
- oneofKind: "custom",
569
- custom: CustomHttpPattern.internalBinaryRead(reader, reader.uint32(), options, (message.pattern as any).custom)
570
- };
571
- break;
572
- case /* string body */ 7:
573
- message.body = reader.string();
574
- break;
575
- case /* string response_body */ 12:
576
- message.responseBody = reader.string();
577
- break;
578
- case /* repeated google.api.HttpRule additional_bindings */ 11:
579
- message.additionalBindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
580
- break;
581
- default:
582
- let u = options.readUnknownField;
583
- if (u === "throw")
584
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
585
- let d = reader.skip(wireType);
586
- if (u !== false)
587
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
588
- }
589
- }
590
- return message;
591
- }
592
- internalBinaryWrite(message: HttpRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
593
- /* string selector = 1; */
594
- if (message.selector !== "")
595
- writer.tag(1, WireType.LengthDelimited).string(message.selector);
596
- /* string get = 2; */
597
- if (message.pattern.oneofKind === "get")
598
- writer.tag(2, WireType.LengthDelimited).string(message.pattern.get);
599
- /* string put = 3; */
600
- if (message.pattern.oneofKind === "put")
601
- writer.tag(3, WireType.LengthDelimited).string(message.pattern.put);
602
- /* string post = 4; */
603
- if (message.pattern.oneofKind === "post")
604
- writer.tag(4, WireType.LengthDelimited).string(message.pattern.post);
605
- /* string delete = 5; */
606
- if (message.pattern.oneofKind === "delete")
607
- writer.tag(5, WireType.LengthDelimited).string(message.pattern.delete);
608
- /* string patch = 6; */
609
- if (message.pattern.oneofKind === "patch")
610
- writer.tag(6, WireType.LengthDelimited).string(message.pattern.patch);
611
- /* google.api.CustomHttpPattern custom = 8; */
612
- if (message.pattern.oneofKind === "custom")
613
- CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
614
- /* string body = 7; */
615
- if (message.body !== "")
616
- writer.tag(7, WireType.LengthDelimited).string(message.body);
617
- /* string response_body = 12; */
618
- if (message.responseBody !== "")
619
- writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
620
- /* repeated google.api.HttpRule additional_bindings = 11; */
621
- for (let i = 0; i < message.additionalBindings.length; i++)
622
- HttpRule.internalBinaryWrite(message.additionalBindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
623
- let u = options.writeUnknownFields;
624
- if (u !== false)
625
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
626
- return writer;
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
+ }
627
594
  }
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
+ }
628
634
  }
629
635
  /**
630
636
  * @generated MessageType for protobuf message google.api.HttpRule
@@ -632,54 +638,57 @@ class HttpRule$Type extends MessageType<HttpRule> {
632
638
  export const HttpRule = new HttpRule$Type();
633
639
  // @generated message type with reflection information, may provide speed optimized methods
634
640
  class CustomHttpPattern$Type extends MessageType<CustomHttpPattern> {
635
- constructor() {
636
- super("google.api.CustomHttpPattern", [
637
- { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
638
- { no: 2, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
639
- ]);
640
- }
641
- create(value?: PartialMessage<CustomHttpPattern>): CustomHttpPattern {
642
- const message = globalThis.Object.create((this.messagePrototype!));
643
- message.kind = "";
644
- message.path = "";
645
- if (value !== undefined)
646
- reflectionMergePartial<CustomHttpPattern>(this, message, value);
647
- return message;
648
- }
649
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomHttpPattern): CustomHttpPattern {
650
- let message = target ?? this.create(), end = reader.pos + length;
651
- while (reader.pos < end) {
652
- let [fieldNo, wireType] = reader.tag();
653
- switch (fieldNo) {
654
- case /* string kind */ 1:
655
- message.kind = reader.string();
656
- break;
657
- case /* string path */ 2:
658
- message.path = reader.string();
659
- break;
660
- default:
661
- let u = options.readUnknownField;
662
- if (u === "throw")
663
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
664
- let d = reader.skip(wireType);
665
- if (u !== false)
666
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
667
- }
668
- }
669
- return message;
670
- }
671
- internalBinaryWrite(message: CustomHttpPattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
672
- /* string kind = 1; */
673
- if (message.kind !== "")
674
- writer.tag(1, WireType.LengthDelimited).string(message.kind);
675
- /* string path = 2; */
676
- if (message.path !== "")
677
- writer.tag(2, WireType.LengthDelimited).string(message.path);
678
- let u = options.writeUnknownFields;
679
- if (u !== false)
680
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
681
- return writer;
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
+ }
682
676
  }
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
+ }
683
692
  }
684
693
  /**
685
694
  * @generated MessageType for protobuf message google.api.CustomHttpPattern