@milaboratories/pl-drivers 1.6.4 → 1.6.6

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 (82) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2026 -2480
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
  6. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  7. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
  8. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  9. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +13 -5
  10. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  11. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
  12. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  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/lsapi/protocol.d.ts.map +1 -1
  15. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +4 -4
  16. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  17. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -10
  18. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  19. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
  20. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  21. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
  22. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  23. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
  24. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
  25. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
  26. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
  28. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  29. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
  30. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  31. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
  32. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  33. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
  34. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  35. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
  36. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
  37. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
  38. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  39. package/dist/proto/google/api/http.d.ts +46 -42
  40. package/dist/proto/google/api/http.d.ts.map +1 -1
  41. package/dist/proto/google/protobuf/any.d.ts +172 -0
  42. package/dist/proto/google/protobuf/any.d.ts.map +1 -0
  43. package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
  44. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  45. package/dist/proto/google/protobuf/duration.d.ts +2 -3
  46. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  47. package/dist/proto/google/protobuf/empty.d.ts +27 -0
  48. package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
  49. package/dist/proto/google/protobuf/struct.d.ts +179 -0
  50. package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
  51. package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
  52. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  53. package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
  54. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
  55. package/package.json +5 -5
  56. package/src/clients/download.ts +1 -1
  57. package/src/clients/upload.ts +1 -1
  58. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
  59. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
  60. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
  61. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
  62. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
  63. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
  64. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
  65. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
  66. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
  67. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
  68. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
  69. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
  70. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
  71. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
  72. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
  73. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
  74. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
  75. package/src/proto/google/api/http.ts +336 -492
  76. package/src/proto/google/protobuf/any.ts +326 -0
  77. package/src/proto/google/protobuf/descriptor.ts +4383 -4772
  78. package/src/proto/google/protobuf/duration.ts +122 -169
  79. package/src/proto/google/protobuf/empty.ts +94 -0
  80. package/src/proto/google/protobuf/struct.ts +484 -0
  81. package/src/proto/google/protobuf/timestamp.ts +150 -225
  82. package/src/proto/google/protobuf/wrappers.ts +785 -0
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 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,25 +33,25 @@ import { MessageType } from '@protobuf-ts/runtime';
33
33
  * @generated from protobuf message google.api.Http
34
34
  */
35
35
  export interface Http {
36
- /**
37
- * A list of HTTP configuration rules that apply to individual API methods.
38
- *
39
- * **NOTE:** All service configuration rules follow "last one wins" order.
40
- *
41
- * @generated from protobuf field: repeated google.api.HttpRule rules = 1;
42
- */
43
- rules: HttpRule[];
44
- /**
45
- * When set to true, URL path parameters will be fully URI-decoded except in
46
- * cases of single segment matches in reserved expansion, where "%2F" will be
47
- * left encoded.
48
- *
49
- * The default behavior is to not decode RFC 6570 reserved characters in multi
50
- * segment matches.
51
- *
52
- * @generated from protobuf field: bool fully_decode_reserved_expansion = 2;
53
- */
54
- fullyDecodeReservedExpansion: boolean;
36
+ /**
37
+ * A list of HTTP configuration rules that apply to individual API methods.
38
+ *
39
+ * **NOTE:** All service configuration rules follow "last one wins" order.
40
+ *
41
+ * @generated from protobuf field: repeated google.api.HttpRule rules = 1
42
+ */
43
+ rules: HttpRule[];
44
+ /**
45
+ * When set to true, URL path parameters will be fully URI-decoded except in
46
+ * cases of single segment matches in reserved expansion, where "%2F" will be
47
+ * left encoded.
48
+ *
49
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
50
+ * segment matches.
51
+ *
52
+ * @generated from protobuf field: bool fully_decode_reserved_expansion = 2
53
+ */
54
+ fullyDecodeReservedExpansion: boolean;
55
55
  }
56
56
  /**
57
57
  * # gRPC Transcoding
@@ -327,109 +327,106 @@ export interface Http {
327
327
  * @generated from protobuf message google.api.HttpRule
328
328
  */
329
329
  export interface HttpRule {
330
- /**
331
- * Selects a method to which this rule applies.
332
- *
333
- * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
334
- *
335
- * @generated from protobuf field: string selector = 1;
336
- */
337
- selector: string;
338
- /**
339
- * @generated from protobuf oneof: pattern
340
- */
341
- pattern:
342
- | {
343
- oneofKind: 'get';
344
- /**
330
+ /**
331
+ * Selects a method to which this rule applies.
332
+ *
333
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
334
+ *
335
+ * @generated from protobuf field: string selector = 1
336
+ */
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
+ *
343
+ * @generated from protobuf oneof: pattern
344
+ */
345
+ pattern: {
346
+ oneofKind: "get";
347
+ /**
345
348
  * Maps to HTTP GET. Used for listing and getting information about
346
349
  * resources.
347
350
  *
348
- * @generated from protobuf field: string get = 2;
351
+ * @generated from protobuf field: string get = 2
349
352
  */
350
- get: string;
351
- }
352
- | {
353
- oneofKind: 'put';
354
- /**
353
+ get: string;
354
+ } | {
355
+ oneofKind: "put";
356
+ /**
355
357
  * Maps to HTTP PUT. Used for replacing a resource.
356
358
  *
357
- * @generated from protobuf field: string put = 3;
359
+ * @generated from protobuf field: string put = 3
358
360
  */
359
- put: string;
360
- }
361
- | {
362
- oneofKind: 'post';
363
- /**
361
+ put: string;
362
+ } | {
363
+ oneofKind: "post";
364
+ /**
364
365
  * Maps to HTTP POST. Used for creating a resource or performing an action.
365
366
  *
366
- * @generated from protobuf field: string post = 4;
367
+ * @generated from protobuf field: string post = 4
367
368
  */
368
- post: string;
369
- }
370
- | {
371
- oneofKind: 'delete';
372
- /**
369
+ post: string;
370
+ } | {
371
+ oneofKind: "delete";
372
+ /**
373
373
  * Maps to HTTP DELETE. Used for deleting a resource.
374
374
  *
375
- * @generated from protobuf field: string delete = 5;
375
+ * @generated from protobuf field: string delete = 5
376
376
  */
377
- delete: string;
378
- }
379
- | {
380
- oneofKind: 'patch';
381
- /**
377
+ delete: string;
378
+ } | {
379
+ oneofKind: "patch";
380
+ /**
382
381
  * Maps to HTTP PATCH. Used for updating a resource.
383
382
  *
384
- * @generated from protobuf field: string patch = 6;
383
+ * @generated from protobuf field: string patch = 6
385
384
  */
386
- patch: string;
387
- }
388
- | {
389
- oneofKind: 'custom';
390
- /**
385
+ patch: string;
386
+ } | {
387
+ oneofKind: "custom";
388
+ /**
391
389
  * The custom pattern is used for specifying an HTTP method that is not
392
390
  * included in the `pattern` field, such as HEAD, or "*" to leave the
393
391
  * HTTP method unspecified for this rule. The wild-card rule is useful
394
392
  * for services that provide content to Web (HTML) clients.
395
393
  *
396
- * @generated from protobuf field: google.api.CustomHttpPattern custom = 8;
394
+ * @generated from protobuf field: google.api.CustomHttpPattern custom = 8
397
395
  */
398
- custom: CustomHttpPattern;
399
- }
400
- | {
401
- oneofKind: undefined;
396
+ custom: CustomHttpPattern;
397
+ } | {
398
+ oneofKind: undefined;
402
399
  };
403
- /**
404
- * The name of the request field whose value is mapped to the HTTP request
405
- * body, or `*` for mapping all request fields not captured by the path
406
- * pattern to the HTTP body, or omitted for not having any HTTP request body.
407
- *
408
- * NOTE: the referred field must be present at the top-level of the request
409
- * message type.
410
- *
411
- * @generated from protobuf field: string body = 7;
412
- */
413
- body: string;
414
- /**
415
- * Optional. The name of the response field whose value is mapped to the HTTP
416
- * response body. When omitted, the entire response message will be used
417
- * as the HTTP response body.
418
- *
419
- * NOTE: The referred field must be present at the top-level of the response
420
- * message type.
421
- *
422
- * @generated from protobuf field: string response_body = 12;
423
- */
424
- responseBody: string;
425
- /**
426
- * Additional HTTP bindings for the selector. Nested bindings must
427
- * not contain an `additional_bindings` field themselves (that is,
428
- * the nesting may only be one level deep).
429
- *
430
- * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11;
431
- */
432
- additionalBindings: HttpRule[];
400
+ /**
401
+ * The name of the request field whose value is mapped to the HTTP request
402
+ * body, or `*` for mapping all request fields not captured by the path
403
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
404
+ *
405
+ * NOTE: the referred field must be present at the top-level of the request
406
+ * message type.
407
+ *
408
+ * @generated from protobuf field: string body = 7
409
+ */
410
+ body: string;
411
+ /**
412
+ * Optional. The name of the response field whose value is mapped to the HTTP
413
+ * response body. When omitted, the entire response message will be used
414
+ * as the HTTP response body.
415
+ *
416
+ * NOTE: The referred field must be present at the top-level of the response
417
+ * message type.
418
+ *
419
+ * @generated from protobuf field: string response_body = 12
420
+ */
421
+ responseBody: string;
422
+ /**
423
+ * Additional HTTP bindings for the selector. Nested bindings must
424
+ * not contain an `additional_bindings` field themselves (that is,
425
+ * the nesting may only be one level deep).
426
+ *
427
+ * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11
428
+ */
429
+ additionalBindings: HttpRule[];
433
430
  }
434
431
  /**
435
432
  * A custom pattern is used for defining custom HTTP verb.
@@ -437,110 +434,69 @@ export interface HttpRule {
437
434
  * @generated from protobuf message google.api.CustomHttpPattern
438
435
  */
439
436
  export interface CustomHttpPattern {
440
- /**
441
- * The name of this custom HTTP verb.
442
- *
443
- * @generated from protobuf field: string kind = 1;
444
- */
445
- kind: string;
446
- /**
447
- * The path matched by this custom verb.
448
- *
449
- * @generated from protobuf field: string path = 2;
450
- */
451
- path: string;
437
+ /**
438
+ * The name of this custom HTTP verb.
439
+ *
440
+ * @generated from protobuf field: string kind = 1
441
+ */
442
+ kind: string;
443
+ /**
444
+ * The path matched by this custom verb.
445
+ *
446
+ * @generated from protobuf field: string path = 2
447
+ */
448
+ path: string;
452
449
  }
453
450
  // @generated message type with reflection information, may provide speed optimized methods
454
451
  class Http$Type extends MessageType<Http> {
455
- constructor() {
456
- super('google.api.Http', [
457
- {
458
- no: 1,
459
- name: 'rules',
460
- kind: 'message',
461
- repeat: 1 /* RepeatType.PACKED */,
462
- T: () => HttpRule,
463
- },
464
- {
465
- no: 2,
466
- name: 'fully_decode_reserved_expansion',
467
- kind: 'scalar',
468
- T: 8, /* ScalarType.BOOL */
469
- },
470
- ]);
471
- }
472
-
473
- create(value?: PartialMessage<Http>): Http {
474
- const message = globalThis.Object.create(this.messagePrototype!);
475
- message.rules = [];
476
- message.fullyDecodeReservedExpansion = false;
477
- if (value !== undefined) reflectionMergePartial<Http>(this, message, value);
478
- return message;
479
- }
480
-
481
- internalBinaryRead(
482
- reader: IBinaryReader,
483
- length: number,
484
- options: BinaryReadOptions,
485
- target?: Http,
486
- ): Http {
487
- const message = target ?? this.create(),
488
- end = reader.pos + length;
489
- while (reader.pos < end) {
490
- const [fieldNo, wireType] = reader.tag();
491
- switch (fieldNo) {
492
- case /* repeated google.api.HttpRule rules */ 1:
493
- message.rules.push(
494
- HttpRule.internalBinaryRead(reader, reader.uint32(), options),
495
- );
496
- break;
497
- case /* bool fully_decode_reserved_expansion */ 2:
498
- message.fullyDecodeReservedExpansion = reader.bool();
499
- break;
500
- default:
501
- const u = options.readUnknownField;
502
- if (u === 'throw')
503
- throw new globalThis.Error(
504
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
505
- );
506
- const d = reader.skip(wireType);
507
- if (u !== false)
508
- (u === true ? UnknownFieldHandler.onRead : u)(
509
- this.typeName,
510
- message,
511
- fieldNo,
512
- wireType,
513
- d,
514
- );
515
- }
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;
516
499
  }
517
- return message;
518
- }
519
-
520
- internalBinaryWrite(
521
- message: Http,
522
- writer: IBinaryWriter,
523
- options: BinaryWriteOptions,
524
- ): IBinaryWriter {
525
- /* repeated google.api.HttpRule rules = 1; */
526
- for (let i = 0; i < message.rules.length; i++)
527
- HttpRule.internalBinaryWrite(
528
- message.rules[i],
529
- writer.tag(1, WireType.LengthDelimited).fork(),
530
- options,
531
- ).join();
532
- /* bool fully_decode_reserved_expansion = 2; */
533
- if (message.fullyDecodeReservedExpansion !== false)
534
- writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
535
- const u = options.writeUnknownFields;
536
- if (u !== false)
537
- (u == true ? UnknownFieldHandler.onWrite : u)(
538
- this.typeName,
539
- message,
540
- writer,
541
- );
542
- return writer;
543
- }
544
500
  }
545
501
  /**
546
502
  * @generated MessageType for protobuf message google.api.Http
@@ -548,218 +504,131 @@ class Http$Type extends MessageType<Http> {
548
504
  export const Http = new Http$Type();
549
505
  // @generated message type with reflection information, may provide speed optimized methods
550
506
  class HttpRule$Type extends MessageType<HttpRule> {
551
- constructor() {
552
- super('google.api.HttpRule', [
553
- { no: 1, name: 'selector', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
554
- {
555
- no: 2,
556
- name: 'get',
557
- kind: 'scalar',
558
- oneof: 'pattern',
559
- T: 9, /* ScalarType.STRING */
560
- },
561
- {
562
- no: 3,
563
- name: 'put',
564
- kind: 'scalar',
565
- oneof: 'pattern',
566
- T: 9, /* ScalarType.STRING */
567
- },
568
- {
569
- no: 4,
570
- name: 'post',
571
- kind: 'scalar',
572
- oneof: 'pattern',
573
- T: 9, /* ScalarType.STRING */
574
- },
575
- {
576
- no: 5,
577
- name: 'delete',
578
- kind: 'scalar',
579
- oneof: 'pattern',
580
- T: 9, /* ScalarType.STRING */
581
- },
582
- {
583
- no: 6,
584
- name: 'patch',
585
- kind: 'scalar',
586
- oneof: 'pattern',
587
- T: 9, /* ScalarType.STRING */
588
- },
589
- {
590
- no: 8,
591
- name: 'custom',
592
- kind: 'message',
593
- oneof: 'pattern',
594
- T: () => CustomHttpPattern,
595
- },
596
- { no: 7, name: 'body', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
597
- {
598
- no: 12,
599
- name: 'response_body',
600
- kind: 'scalar',
601
- T: 9, /* ScalarType.STRING */
602
- },
603
- {
604
- no: 11,
605
- name: 'additional_bindings',
606
- kind: 'message',
607
- repeat: 1 /* RepeatType.PACKED */,
608
- T: () => HttpRule,
609
- },
610
- ]);
611
- }
612
-
613
- create(value?: PartialMessage<HttpRule>): HttpRule {
614
- const message = globalThis.Object.create(this.messagePrototype!);
615
- message.selector = '';
616
- message.pattern = { oneofKind: undefined };
617
- message.body = '';
618
- message.responseBody = '';
619
- message.additionalBindings = [];
620
- if (value !== undefined)
621
- reflectionMergePartial<HttpRule>(this, message, value);
622
- return message;
623
- }
624
-
625
- internalBinaryRead(
626
- reader: IBinaryReader,
627
- length: number,
628
- options: BinaryReadOptions,
629
- target?: HttpRule,
630
- ): HttpRule {
631
- const message = target ?? this.create(),
632
- end = reader.pos + length;
633
- while (reader.pos < end) {
634
- const [fieldNo, wireType] = reader.tag();
635
- switch (fieldNo) {
636
- case /* string selector */ 1:
637
- message.selector = reader.string();
638
- break;
639
- case /* string get */ 2:
640
- message.pattern = {
641
- oneofKind: 'get',
642
- get: reader.string(),
643
- };
644
- break;
645
- case /* string put */ 3:
646
- message.pattern = {
647
- oneofKind: 'put',
648
- put: reader.string(),
649
- };
650
- break;
651
- case /* string post */ 4:
652
- message.pattern = {
653
- oneofKind: 'post',
654
- post: reader.string(),
655
- };
656
- break;
657
- case /* string delete */ 5:
658
- message.pattern = {
659
- oneofKind: 'delete',
660
- delete: reader.string(),
661
- };
662
- break;
663
- case /* string patch */ 6:
664
- message.pattern = {
665
- oneofKind: 'patch',
666
- patch: reader.string(),
667
- };
668
- break;
669
- case /* google.api.CustomHttpPattern custom */ 8:
670
- message.pattern = {
671
- oneofKind: 'custom',
672
- custom: CustomHttpPattern.internalBinaryRead(
673
- reader,
674
- reader.uint32(),
675
- options,
676
- (message.pattern as any).custom,
677
- ),
678
- };
679
- break;
680
- case /* string body */ 7:
681
- message.body = reader.string();
682
- break;
683
- case /* string response_body */ 12:
684
- message.responseBody = reader.string();
685
- break;
686
- case /* repeated google.api.HttpRule additional_bindings */ 11:
687
- message.additionalBindings.push(
688
- HttpRule.internalBinaryRead(reader, reader.uint32(), options),
689
- );
690
- break;
691
- default:
692
- const u = options.readUnknownField;
693
- if (u === 'throw')
694
- throw new globalThis.Error(
695
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
696
- );
697
- const d = reader.skip(wireType);
698
- if (u !== false)
699
- (u === true ? UnknownFieldHandler.onRead : u)(
700
- this.typeName,
701
- message,
702
- fieldNo,
703
- wireType,
704
- d,
705
- );
706
- }
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;
707
631
  }
708
- return message;
709
- }
710
-
711
- internalBinaryWrite(
712
- message: HttpRule,
713
- writer: IBinaryWriter,
714
- options: BinaryWriteOptions,
715
- ): IBinaryWriter {
716
- /* string selector = 1; */
717
- if (message.selector !== '')
718
- writer.tag(1, WireType.LengthDelimited).string(message.selector);
719
- /* string get = 2; */
720
- if (message.pattern.oneofKind === 'get')
721
- writer.tag(2, WireType.LengthDelimited).string(message.pattern.get);
722
- /* string put = 3; */
723
- if (message.pattern.oneofKind === 'put')
724
- writer.tag(3, WireType.LengthDelimited).string(message.pattern.put);
725
- /* string post = 4; */
726
- if (message.pattern.oneofKind === 'post')
727
- writer.tag(4, WireType.LengthDelimited).string(message.pattern.post);
728
- /* string delete = 5; */
729
- if (message.pattern.oneofKind === 'delete')
730
- writer.tag(5, WireType.LengthDelimited).string(message.pattern.delete);
731
- /* string patch = 6; */
732
- if (message.pattern.oneofKind === 'patch')
733
- writer.tag(6, WireType.LengthDelimited).string(message.pattern.patch);
734
- /* google.api.CustomHttpPattern custom = 8; */
735
- if (message.pattern.oneofKind === 'custom')
736
- CustomHttpPattern.internalBinaryWrite(
737
- message.pattern.custom,
738
- writer.tag(8, WireType.LengthDelimited).fork(),
739
- options,
740
- ).join();
741
- /* string body = 7; */
742
- if (message.body !== '')
743
- writer.tag(7, WireType.LengthDelimited).string(message.body);
744
- /* string response_body = 12; */
745
- if (message.responseBody !== '')
746
- writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
747
- /* repeated google.api.HttpRule additional_bindings = 11; */
748
- for (let i = 0; i < message.additionalBindings.length; i++)
749
- HttpRule.internalBinaryWrite(
750
- message.additionalBindings[i],
751
- writer.tag(11, WireType.LengthDelimited).fork(),
752
- options,
753
- ).join();
754
- const u = options.writeUnknownFields;
755
- if (u !== false)
756
- (u == true ? UnknownFieldHandler.onWrite : u)(
757
- this.typeName,
758
- message,
759
- writer,
760
- );
761
- return writer;
762
- }
763
632
  }
764
633
  /**
765
634
  * @generated MessageType for protobuf message google.api.HttpRule
@@ -767,79 +636,54 @@ class HttpRule$Type extends MessageType<HttpRule> {
767
636
  export const HttpRule = new HttpRule$Type();
768
637
  // @generated message type with reflection information, may provide speed optimized methods
769
638
  class CustomHttpPattern$Type extends MessageType<CustomHttpPattern> {
770
- constructor() {
771
- super('google.api.CustomHttpPattern', [
772
- { no: 1, name: 'kind', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
773
- { no: 2, name: 'path', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
774
- ]);
775
- }
776
-
777
- create(value?: PartialMessage<CustomHttpPattern>): CustomHttpPattern {
778
- const message = globalThis.Object.create(this.messagePrototype!);
779
- message.kind = '';
780
- message.path = '';
781
- if (value !== undefined)
782
- reflectionMergePartial<CustomHttpPattern>(this, message, value);
783
- return message;
784
- }
785
-
786
- internalBinaryRead(
787
- reader: IBinaryReader,
788
- length: number,
789
- options: BinaryReadOptions,
790
- target?: CustomHttpPattern,
791
- ): CustomHttpPattern {
792
- const message = target ?? this.create(),
793
- end = reader.pos + length;
794
- while (reader.pos < end) {
795
- const [fieldNo, wireType] = reader.tag();
796
- switch (fieldNo) {
797
- case /* string kind */ 1:
798
- message.kind = reader.string();
799
- break;
800
- case /* string path */ 2:
801
- message.path = reader.string();
802
- break;
803
- default:
804
- const u = options.readUnknownField;
805
- if (u === 'throw')
806
- throw new globalThis.Error(
807
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
808
- );
809
- const d = reader.skip(wireType);
810
- if (u !== false)
811
- (u === true ? UnknownFieldHandler.onRead : u)(
812
- this.typeName,
813
- message,
814
- fieldNo,
815
- wireType,
816
- d,
817
- );
818
- }
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;
819
686
  }
820
- return message;
821
- }
822
-
823
- internalBinaryWrite(
824
- message: CustomHttpPattern,
825
- writer: IBinaryWriter,
826
- options: BinaryWriteOptions,
827
- ): IBinaryWriter {
828
- /* string kind = 1; */
829
- if (message.kind !== '')
830
- writer.tag(1, WireType.LengthDelimited).string(message.kind);
831
- /* string path = 2; */
832
- if (message.path !== '')
833
- writer.tag(2, WireType.LengthDelimited).string(message.path);
834
- const u = options.writeUnknownFields;
835
- if (u !== false)
836
- (u == true ? UnknownFieldHandler.onWrite : u)(
837
- this.typeName,
838
- message,
839
- writer,
840
- );
841
- return writer;
842
- }
843
687
  }
844
688
  /**
845
689
  * @generated MessageType for protobuf message google.api.CustomHttpPattern