@milaboratories/pl-client 2.7.13 → 2.8.0
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.
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/client.d.ts +5 -2
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts +12 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/state_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2361 -2342
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +17 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +89 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/util/util.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/core/auth.ts +3 -3
- package/src/core/cache.ts +1 -1
- package/src/core/client.ts +63 -59
- package/src/core/config.ts +21 -21
- package/src/core/default_client.ts +15 -14
- package/src/core/driver.ts +4 -4
- package/src/core/errors.ts +3 -3
- package/src/core/final.ts +7 -4
- package/src/core/ll_client.ts +72 -43
- package/src/core/ll_transaction.ts +17 -17
- package/src/core/stat.ts +2 -2
- package/src/core/transaction.ts +93 -95
- package/src/core/type_conversion.ts +11 -8
- package/src/core/types.ts +25 -26
- package/src/core/unauth_client.ts +6 -6
- package/src/helpers/pl.ts +8 -7
- package/src/helpers/poll.ts +25 -21
- package/src/helpers/state_helpers.ts +2 -1
- package/src/helpers/tx_helpers.ts +4 -3
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +27 -2
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +1 -1
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +1 -1
- package/src/proto/google/api/http.ts +280 -271
- package/src/proto/google/protobuf/any.ts +1 -1
- package/src/proto/google/protobuf/descriptor.ts +2952 -2853
- package/src/proto/google/protobuf/duration.ts +1 -1
- package/src/proto/google/protobuf/empty.ts +1 -1
- package/src/proto/google/protobuf/struct.ts +1 -1
- package/src/proto/google/protobuf/timestamp.ts +2 -2
- package/src/proto/google/protobuf/wrappers.ts +1 -1
- package/src/test/test_config.ts +21 -19
- 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
|
|
20
|
-
import type { IBinaryWriter } from
|
|
21
|
-
import { WireType } from
|
|
22
|
-
import type { BinaryReadOptions } from
|
|
23
|
-
import type { IBinaryReader } from
|
|
24
|
-
import { UnknownFieldHandler } from
|
|
25
|
-
import type { PartialMessage } from
|
|
26
|
-
import { reflectionMergePartial } from
|
|
27
|
-
import { MessageType } from
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
338
|
-
|
|
337
|
+
selector: string;
|
|
338
|
+
/**
|
|
339
339
|
* @generated from protobuf oneof: pattern
|
|
340
340
|
*/
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
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
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
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
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
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
|