@miradorlabs/web-grpc 3.18.0 → 3.20.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.
Files changed (34) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1 -1
  10. package/proto/gateway/web/v1/admin_gateway.ts +950 -99
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +138 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +1728 -0
  13. package/proto/gateway/web/v1/ai_gateway.ts +1 -1
  14. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  15. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  16. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  17. package/proto/gateway/web/v1/common.ts +1 -1
  18. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  19. package/proto/gateway/web/v1/github_connector.ts +1 -1
  20. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  21. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  22. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  24. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/policy_gateway.ts +27 -3
  27. package/proto/gateway/web/v1/policy_gateway_pb.js +31 -1
  28. package/proto/gateway/web/v1/reference_gateway.ts +1994 -83
  29. package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +145 -0
  30. package/proto/gateway/web/v1/reference_gateway_pb.js +3777 -43
  31. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  34. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -25,6 +25,14 @@ var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/we
25
25
  goog.object.extend(proto, proto_gateway_web_v1_beta_gateway_pb);
26
26
  var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
27
27
  goog.object.extend(proto, proto_gateway_web_v1_reference_gateway_pb);
28
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIEffortsRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIEffortsResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIModelsRequest', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIModelsResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIProvidersRequest', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIProvidersResponse', null, global);
28
36
  goog.exportSymbol('proto.gateway.web.v1.GenerateInviteCodesRequest', null, global);
29
37
  goog.exportSymbol('proto.gateway.web.v1.GenerateInviteCodesResponse', null, global);
30
38
  goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusRequest', null, global);
@@ -355,6 +363,174 @@ if (goog.DEBUG && !COMPILED) {
355
363
  */
356
364
  proto.gateway.web.v1.UpdateAIBillerResponse.displayName = 'proto.gateway.web.v1.UpdateAIBillerResponse';
357
365
  }
366
+ /**
367
+ * Generated by JsPbCodeGenerator.
368
+ * @param {Array=} opt_data Optional initial data array, typically from a
369
+ * server response, or constructed directly in Javascript. The array is used
370
+ * in place and becomes part of the constructed object. It is not cloned.
371
+ * If no data is provided, the constructed object will be empty, but still
372
+ * valid.
373
+ * @extends {jspb.Message}
374
+ * @constructor
375
+ */
376
+ proto.gateway.web.v1.ConfirmAIProvidersRequest = function(opt_data) {
377
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ConfirmAIProvidersRequest.repeatedFields_, null);
378
+ };
379
+ goog.inherits(proto.gateway.web.v1.ConfirmAIProvidersRequest, jspb.Message);
380
+ if (goog.DEBUG && !COMPILED) {
381
+ /**
382
+ * @public
383
+ * @override
384
+ */
385
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.displayName = 'proto.gateway.web.v1.ConfirmAIProvidersRequest';
386
+ }
387
+ /**
388
+ * Generated by JsPbCodeGenerator.
389
+ * @param {Array=} opt_data Optional initial data array, typically from a
390
+ * server response, or constructed directly in Javascript. The array is used
391
+ * in place and becomes part of the constructed object. It is not cloned.
392
+ * If no data is provided, the constructed object will be empty, but still
393
+ * valid.
394
+ * @extends {jspb.Message}
395
+ * @constructor
396
+ */
397
+ proto.gateway.web.v1.ConfirmAIProvidersResponse = function(opt_data) {
398
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
399
+ };
400
+ goog.inherits(proto.gateway.web.v1.ConfirmAIProvidersResponse, jspb.Message);
401
+ if (goog.DEBUG && !COMPILED) {
402
+ /**
403
+ * @public
404
+ * @override
405
+ */
406
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.displayName = 'proto.gateway.web.v1.ConfirmAIProvidersResponse';
407
+ }
408
+ /**
409
+ * Generated by JsPbCodeGenerator.
410
+ * @param {Array=} opt_data Optional initial data array, typically from a
411
+ * server response, or constructed directly in Javascript. The array is used
412
+ * in place and becomes part of the constructed object. It is not cloned.
413
+ * If no data is provided, the constructed object will be empty, but still
414
+ * valid.
415
+ * @extends {jspb.Message}
416
+ * @constructor
417
+ */
418
+ proto.gateway.web.v1.ConfirmAIModelsRequest = function(opt_data) {
419
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ConfirmAIModelsRequest.repeatedFields_, null);
420
+ };
421
+ goog.inherits(proto.gateway.web.v1.ConfirmAIModelsRequest, jspb.Message);
422
+ if (goog.DEBUG && !COMPILED) {
423
+ /**
424
+ * @public
425
+ * @override
426
+ */
427
+ proto.gateway.web.v1.ConfirmAIModelsRequest.displayName = 'proto.gateway.web.v1.ConfirmAIModelsRequest';
428
+ }
429
+ /**
430
+ * Generated by JsPbCodeGenerator.
431
+ * @param {Array=} opt_data Optional initial data array, typically from a
432
+ * server response, or constructed directly in Javascript. The array is used
433
+ * in place and becomes part of the constructed object. It is not cloned.
434
+ * If no data is provided, the constructed object will be empty, but still
435
+ * valid.
436
+ * @extends {jspb.Message}
437
+ * @constructor
438
+ */
439
+ proto.gateway.web.v1.ConfirmAIModelsResponse = function(opt_data) {
440
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
441
+ };
442
+ goog.inherits(proto.gateway.web.v1.ConfirmAIModelsResponse, jspb.Message);
443
+ if (goog.DEBUG && !COMPILED) {
444
+ /**
445
+ * @public
446
+ * @override
447
+ */
448
+ proto.gateway.web.v1.ConfirmAIModelsResponse.displayName = 'proto.gateway.web.v1.ConfirmAIModelsResponse';
449
+ }
450
+ /**
451
+ * Generated by JsPbCodeGenerator.
452
+ * @param {Array=} opt_data Optional initial data array, typically from a
453
+ * server response, or constructed directly in Javascript. The array is used
454
+ * in place and becomes part of the constructed object. It is not cloned.
455
+ * If no data is provided, the constructed object will be empty, but still
456
+ * valid.
457
+ * @extends {jspb.Message}
458
+ * @constructor
459
+ */
460
+ proto.gateway.web.v1.ConfirmAIEffortsRequest = function(opt_data) {
461
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ConfirmAIEffortsRequest.repeatedFields_, null);
462
+ };
463
+ goog.inherits(proto.gateway.web.v1.ConfirmAIEffortsRequest, jspb.Message);
464
+ if (goog.DEBUG && !COMPILED) {
465
+ /**
466
+ * @public
467
+ * @override
468
+ */
469
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.displayName = 'proto.gateway.web.v1.ConfirmAIEffortsRequest';
470
+ }
471
+ /**
472
+ * Generated by JsPbCodeGenerator.
473
+ * @param {Array=} opt_data Optional initial data array, typically from a
474
+ * server response, or constructed directly in Javascript. The array is used
475
+ * in place and becomes part of the constructed object. It is not cloned.
476
+ * If no data is provided, the constructed object will be empty, but still
477
+ * valid.
478
+ * @extends {jspb.Message}
479
+ * @constructor
480
+ */
481
+ proto.gateway.web.v1.ConfirmAIEffortsResponse = function(opt_data) {
482
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
483
+ };
484
+ goog.inherits(proto.gateway.web.v1.ConfirmAIEffortsResponse, jspb.Message);
485
+ if (goog.DEBUG && !COMPILED) {
486
+ /**
487
+ * @public
488
+ * @override
489
+ */
490
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.displayName = 'proto.gateway.web.v1.ConfirmAIEffortsResponse';
491
+ }
492
+ /**
493
+ * Generated by JsPbCodeGenerator.
494
+ * @param {Array=} opt_data Optional initial data array, typically from a
495
+ * server response, or constructed directly in Javascript. The array is used
496
+ * in place and becomes part of the constructed object. It is not cloned.
497
+ * If no data is provided, the constructed object will be empty, but still
498
+ * valid.
499
+ * @extends {jspb.Message}
500
+ * @constructor
501
+ */
502
+ proto.gateway.web.v1.ConfirmAIBillersRequest = function(opt_data) {
503
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ConfirmAIBillersRequest.repeatedFields_, null);
504
+ };
505
+ goog.inherits(proto.gateway.web.v1.ConfirmAIBillersRequest, jspb.Message);
506
+ if (goog.DEBUG && !COMPILED) {
507
+ /**
508
+ * @public
509
+ * @override
510
+ */
511
+ proto.gateway.web.v1.ConfirmAIBillersRequest.displayName = 'proto.gateway.web.v1.ConfirmAIBillersRequest';
512
+ }
513
+ /**
514
+ * Generated by JsPbCodeGenerator.
515
+ * @param {Array=} opt_data Optional initial data array, typically from a
516
+ * server response, or constructed directly in Javascript. The array is used
517
+ * in place and becomes part of the constructed object. It is not cloned.
518
+ * If no data is provided, the constructed object will be empty, but still
519
+ * valid.
520
+ * @extends {jspb.Message}
521
+ * @constructor
522
+ */
523
+ proto.gateway.web.v1.ConfirmAIBillersResponse = function(opt_data) {
524
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
525
+ };
526
+ goog.inherits(proto.gateway.web.v1.ConfirmAIBillersResponse, jspb.Message);
527
+ if (goog.DEBUG && !COMPILED) {
528
+ /**
529
+ * @public
530
+ * @override
531
+ */
532
+ proto.gateway.web.v1.ConfirmAIBillersResponse.displayName = 'proto.gateway.web.v1.ConfirmAIBillersResponse';
533
+ }
358
534
 
359
535
 
360
536
 
@@ -3273,4 +3449,1556 @@ proto.gateway.web.v1.UpdateAIBillerResponse.prototype.hasBiller = function() {
3273
3449
  };
3274
3450
 
3275
3451
 
3452
+
3453
+ /**
3454
+ * List of repeated fields within this message type.
3455
+ * @private {!Array<number>}
3456
+ * @const
3457
+ */
3458
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.repeatedFields_ = [1];
3459
+
3460
+
3461
+
3462
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3463
+ /**
3464
+ * Creates an object representation of this proto.
3465
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3466
+ * Optional fields that are not set will be set to undefined.
3467
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3468
+ * For the list of reserved names please see:
3469
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3470
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3471
+ * JSPB instance for transitional soy proto support:
3472
+ * http://goto/soy-param-migration
3473
+ * @return {!Object}
3474
+ */
3475
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.toObject = function(opt_includeInstance) {
3476
+ return proto.gateway.web.v1.ConfirmAIProvidersRequest.toObject(opt_includeInstance, this);
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * Static version of the {@see toObject} method.
3482
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3483
+ * the JSPB instance for transitional soy proto support:
3484
+ * http://goto/soy-param-migration
3485
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersRequest} msg The msg instance to transform.
3486
+ * @return {!Object}
3487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3488
+ */
3489
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.toObject = function(includeInstance, msg) {
3490
+ var f, obj = {
3491
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3492
+ filter: (f = msg.getFilter()) && proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.toObject(includeInstance, f)
3493
+ };
3494
+
3495
+ if (includeInstance) {
3496
+ obj.$jspbMessageInstance = msg;
3497
+ }
3498
+ return obj;
3499
+ };
3500
+ }
3501
+
3502
+
3503
+ /**
3504
+ * Deserializes binary data (in protobuf wire format).
3505
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3506
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest}
3507
+ */
3508
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.deserializeBinary = function(bytes) {
3509
+ var reader = new jspb.BinaryReader(bytes);
3510
+ var msg = new proto.gateway.web.v1.ConfirmAIProvidersRequest;
3511
+ return proto.gateway.web.v1.ConfirmAIProvidersRequest.deserializeBinaryFromReader(msg, reader);
3512
+ };
3513
+
3514
+
3515
+ /**
3516
+ * Deserializes binary data (in protobuf wire format) from the
3517
+ * given reader into the given message object.
3518
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersRequest} msg The message object to deserialize into.
3519
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3520
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest}
3521
+ */
3522
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.deserializeBinaryFromReader = function(msg, reader) {
3523
+ while (reader.nextField()) {
3524
+ if (reader.isEndGroup()) {
3525
+ break;
3526
+ }
3527
+ var field = reader.getFieldNumber();
3528
+ switch (field) {
3529
+ case 1:
3530
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3531
+ msg.addOrganizationIds(value);
3532
+ break;
3533
+ case 2:
3534
+ var value = new proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter;
3535
+ reader.readMessage(value,proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.deserializeBinaryFromReader);
3536
+ msg.setFilter(value);
3537
+ break;
3538
+ default:
3539
+ reader.skipField();
3540
+ break;
3541
+ }
3542
+ }
3543
+ return msg;
3544
+ };
3545
+
3546
+
3547
+ /**
3548
+ * Serializes the message to binary data (in protobuf wire format).
3549
+ * @return {!Uint8Array}
3550
+ */
3551
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.serializeBinary = function() {
3552
+ var writer = new jspb.BinaryWriter();
3553
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.serializeBinaryToWriter(this, writer);
3554
+ return writer.getResultBuffer();
3555
+ };
3556
+
3557
+
3558
+ /**
3559
+ * Serializes the given message to binary data (in protobuf wire
3560
+ * format), writing to the given BinaryWriter.
3561
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersRequest} message
3562
+ * @param {!jspb.BinaryWriter} writer
3563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3564
+ */
3565
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.serializeBinaryToWriter = function(message, writer) {
3566
+ var f = undefined;
3567
+ f = message.getOrganizationIdsList();
3568
+ if (f.length > 0) {
3569
+ writer.writeRepeatedString(
3570
+ 1,
3571
+ f
3572
+ );
3573
+ }
3574
+ f = message.getFilter();
3575
+ if (f != null) {
3576
+ writer.writeMessage(
3577
+ 2,
3578
+ f,
3579
+ proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.serializeBinaryToWriter
3580
+ );
3581
+ }
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * repeated string organization_ids = 1;
3587
+ * @return {!Array<string>}
3588
+ */
3589
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.getOrganizationIdsList = function() {
3590
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3591
+ };
3592
+
3593
+
3594
+ /**
3595
+ * @param {!Array<string>} value
3596
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest} returns this
3597
+ */
3598
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.setOrganizationIdsList = function(value) {
3599
+ return jspb.Message.setField(this, 1, value || []);
3600
+ };
3601
+
3602
+
3603
+ /**
3604
+ * @param {string} value
3605
+ * @param {number=} opt_index
3606
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest} returns this
3607
+ */
3608
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.addOrganizationIds = function(value, opt_index) {
3609
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3610
+ };
3611
+
3612
+
3613
+ /**
3614
+ * Clears the list making it empty but non-null.
3615
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest} returns this
3616
+ */
3617
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.clearOrganizationIdsList = function() {
3618
+ return this.setOrganizationIdsList([]);
3619
+ };
3620
+
3621
+
3622
+ /**
3623
+ * optional AIReferenceGroupFilter filter = 2;
3624
+ * @return {?proto.gateway.web.v1.AIReferenceGroupFilter}
3625
+ */
3626
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.getFilter = function() {
3627
+ return /** @type{?proto.gateway.web.v1.AIReferenceGroupFilter} */ (
3628
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter, 2));
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * @param {?proto.gateway.web.v1.AIReferenceGroupFilter|undefined} value
3634
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest} returns this
3635
+ */
3636
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.setFilter = function(value) {
3637
+ return jspb.Message.setWrapperField(this, 2, value);
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * Clears the message field making it undefined.
3643
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersRequest} returns this
3644
+ */
3645
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.clearFilter = function() {
3646
+ return this.setFilter(undefined);
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * Returns whether this field is set.
3652
+ * @return {boolean}
3653
+ */
3654
+ proto.gateway.web.v1.ConfirmAIProvidersRequest.prototype.hasFilter = function() {
3655
+ return jspb.Message.getField(this, 2) != null;
3656
+ };
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3663
+ /**
3664
+ * Creates an object representation of this proto.
3665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3666
+ * Optional fields that are not set will be set to undefined.
3667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3668
+ * For the list of reserved names please see:
3669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3671
+ * JSPB instance for transitional soy proto support:
3672
+ * http://goto/soy-param-migration
3673
+ * @return {!Object}
3674
+ */
3675
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.toObject = function(opt_includeInstance) {
3676
+ return proto.gateway.web.v1.ConfirmAIProvidersResponse.toObject(opt_includeInstance, this);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Static version of the {@see toObject} method.
3682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3683
+ * the JSPB instance for transitional soy proto support:
3684
+ * http://goto/soy-param-migration
3685
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersResponse} msg The msg instance to transform.
3686
+ * @return {!Object}
3687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3688
+ */
3689
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.toObject = function(includeInstance, msg) {
3690
+ var f, obj = {
3691
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3692
+ confirmedNameCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
3693
+ };
3694
+
3695
+ if (includeInstance) {
3696
+ obj.$jspbMessageInstance = msg;
3697
+ }
3698
+ return obj;
3699
+ };
3700
+ }
3701
+
3702
+
3703
+ /**
3704
+ * Deserializes binary data (in protobuf wire format).
3705
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3706
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersResponse}
3707
+ */
3708
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.deserializeBinary = function(bytes) {
3709
+ var reader = new jspb.BinaryReader(bytes);
3710
+ var msg = new proto.gateway.web.v1.ConfirmAIProvidersResponse;
3711
+ return proto.gateway.web.v1.ConfirmAIProvidersResponse.deserializeBinaryFromReader(msg, reader);
3712
+ };
3713
+
3714
+
3715
+ /**
3716
+ * Deserializes binary data (in protobuf wire format) from the
3717
+ * given reader into the given message object.
3718
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersResponse} msg The message object to deserialize into.
3719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3720
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersResponse}
3721
+ */
3722
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.deserializeBinaryFromReader = function(msg, reader) {
3723
+ while (reader.nextField()) {
3724
+ if (reader.isEndGroup()) {
3725
+ break;
3726
+ }
3727
+ var field = reader.getFieldNumber();
3728
+ switch (field) {
3729
+ case 1:
3730
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3731
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3732
+ msg.setStatus(value);
3733
+ break;
3734
+ case 2:
3735
+ var value = /** @type {number} */ (reader.readInt64());
3736
+ msg.setConfirmedNameCount(value);
3737
+ break;
3738
+ default:
3739
+ reader.skipField();
3740
+ break;
3741
+ }
3742
+ }
3743
+ return msg;
3744
+ };
3745
+
3746
+
3747
+ /**
3748
+ * Serializes the message to binary data (in protobuf wire format).
3749
+ * @return {!Uint8Array}
3750
+ */
3751
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.serializeBinary = function() {
3752
+ var writer = new jspb.BinaryWriter();
3753
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.serializeBinaryToWriter(this, writer);
3754
+ return writer.getResultBuffer();
3755
+ };
3756
+
3757
+
3758
+ /**
3759
+ * Serializes the given message to binary data (in protobuf wire
3760
+ * format), writing to the given BinaryWriter.
3761
+ * @param {!proto.gateway.web.v1.ConfirmAIProvidersResponse} message
3762
+ * @param {!jspb.BinaryWriter} writer
3763
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3764
+ */
3765
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.serializeBinaryToWriter = function(message, writer) {
3766
+ var f = undefined;
3767
+ f = message.getStatus();
3768
+ if (f != null) {
3769
+ writer.writeMessage(
3770
+ 1,
3771
+ f,
3772
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3773
+ );
3774
+ }
3775
+ f = message.getConfirmedNameCount();
3776
+ if (f !== 0) {
3777
+ writer.writeInt64(
3778
+ 2,
3779
+ f
3780
+ );
3781
+ }
3782
+ };
3783
+
3784
+
3785
+ /**
3786
+ * optional gateway.common.v1.ResponseStatus status = 1;
3787
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3788
+ */
3789
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.getStatus = function() {
3790
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3791
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3792
+ };
3793
+
3794
+
3795
+ /**
3796
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3797
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersResponse} returns this
3798
+ */
3799
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.setStatus = function(value) {
3800
+ return jspb.Message.setWrapperField(this, 1, value);
3801
+ };
3802
+
3803
+
3804
+ /**
3805
+ * Clears the message field making it undefined.
3806
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersResponse} returns this
3807
+ */
3808
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.clearStatus = function() {
3809
+ return this.setStatus(undefined);
3810
+ };
3811
+
3812
+
3813
+ /**
3814
+ * Returns whether this field is set.
3815
+ * @return {boolean}
3816
+ */
3817
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.hasStatus = function() {
3818
+ return jspb.Message.getField(this, 1) != null;
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * optional int64 confirmed_name_count = 2;
3824
+ * @return {number}
3825
+ */
3826
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.getConfirmedNameCount = function() {
3827
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3828
+ };
3829
+
3830
+
3831
+ /**
3832
+ * @param {number} value
3833
+ * @return {!proto.gateway.web.v1.ConfirmAIProvidersResponse} returns this
3834
+ */
3835
+ proto.gateway.web.v1.ConfirmAIProvidersResponse.prototype.setConfirmedNameCount = function(value) {
3836
+ return jspb.Message.setProto3IntField(this, 2, value);
3837
+ };
3838
+
3839
+
3840
+
3841
+ /**
3842
+ * List of repeated fields within this message type.
3843
+ * @private {!Array<number>}
3844
+ * @const
3845
+ */
3846
+ proto.gateway.web.v1.ConfirmAIModelsRequest.repeatedFields_ = [1];
3847
+
3848
+
3849
+
3850
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3851
+ /**
3852
+ * Creates an object representation of this proto.
3853
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3854
+ * Optional fields that are not set will be set to undefined.
3855
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3856
+ * For the list of reserved names please see:
3857
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3858
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3859
+ * JSPB instance for transitional soy proto support:
3860
+ * http://goto/soy-param-migration
3861
+ * @return {!Object}
3862
+ */
3863
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.toObject = function(opt_includeInstance) {
3864
+ return proto.gateway.web.v1.ConfirmAIModelsRequest.toObject(opt_includeInstance, this);
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * Static version of the {@see toObject} method.
3870
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3871
+ * the JSPB instance for transitional soy proto support:
3872
+ * http://goto/soy-param-migration
3873
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsRequest} msg The msg instance to transform.
3874
+ * @return {!Object}
3875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3876
+ */
3877
+ proto.gateway.web.v1.ConfirmAIModelsRequest.toObject = function(includeInstance, msg) {
3878
+ var f, obj = {
3879
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3880
+ filter: (f = msg.getFilter()) && proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.toObject(includeInstance, f)
3881
+ };
3882
+
3883
+ if (includeInstance) {
3884
+ obj.$jspbMessageInstance = msg;
3885
+ }
3886
+ return obj;
3887
+ };
3888
+ }
3889
+
3890
+
3891
+ /**
3892
+ * Deserializes binary data (in protobuf wire format).
3893
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3894
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest}
3895
+ */
3896
+ proto.gateway.web.v1.ConfirmAIModelsRequest.deserializeBinary = function(bytes) {
3897
+ var reader = new jspb.BinaryReader(bytes);
3898
+ var msg = new proto.gateway.web.v1.ConfirmAIModelsRequest;
3899
+ return proto.gateway.web.v1.ConfirmAIModelsRequest.deserializeBinaryFromReader(msg, reader);
3900
+ };
3901
+
3902
+
3903
+ /**
3904
+ * Deserializes binary data (in protobuf wire format) from the
3905
+ * given reader into the given message object.
3906
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsRequest} msg The message object to deserialize into.
3907
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3908
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest}
3909
+ */
3910
+ proto.gateway.web.v1.ConfirmAIModelsRequest.deserializeBinaryFromReader = function(msg, reader) {
3911
+ while (reader.nextField()) {
3912
+ if (reader.isEndGroup()) {
3913
+ break;
3914
+ }
3915
+ var field = reader.getFieldNumber();
3916
+ switch (field) {
3917
+ case 1:
3918
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3919
+ msg.addOrganizationIds(value);
3920
+ break;
3921
+ case 2:
3922
+ var value = new proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter;
3923
+ reader.readMessage(value,proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.deserializeBinaryFromReader);
3924
+ msg.setFilter(value);
3925
+ break;
3926
+ default:
3927
+ reader.skipField();
3928
+ break;
3929
+ }
3930
+ }
3931
+ return msg;
3932
+ };
3933
+
3934
+
3935
+ /**
3936
+ * Serializes the message to binary data (in protobuf wire format).
3937
+ * @return {!Uint8Array}
3938
+ */
3939
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.serializeBinary = function() {
3940
+ var writer = new jspb.BinaryWriter();
3941
+ proto.gateway.web.v1.ConfirmAIModelsRequest.serializeBinaryToWriter(this, writer);
3942
+ return writer.getResultBuffer();
3943
+ };
3944
+
3945
+
3946
+ /**
3947
+ * Serializes the given message to binary data (in protobuf wire
3948
+ * format), writing to the given BinaryWriter.
3949
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsRequest} message
3950
+ * @param {!jspb.BinaryWriter} writer
3951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3952
+ */
3953
+ proto.gateway.web.v1.ConfirmAIModelsRequest.serializeBinaryToWriter = function(message, writer) {
3954
+ var f = undefined;
3955
+ f = message.getOrganizationIdsList();
3956
+ if (f.length > 0) {
3957
+ writer.writeRepeatedString(
3958
+ 1,
3959
+ f
3960
+ );
3961
+ }
3962
+ f = message.getFilter();
3963
+ if (f != null) {
3964
+ writer.writeMessage(
3965
+ 2,
3966
+ f,
3967
+ proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.serializeBinaryToWriter
3968
+ );
3969
+ }
3970
+ };
3971
+
3972
+
3973
+ /**
3974
+ * repeated string organization_ids = 1;
3975
+ * @return {!Array<string>}
3976
+ */
3977
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.getOrganizationIdsList = function() {
3978
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3979
+ };
3980
+
3981
+
3982
+ /**
3983
+ * @param {!Array<string>} value
3984
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest} returns this
3985
+ */
3986
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.setOrganizationIdsList = function(value) {
3987
+ return jspb.Message.setField(this, 1, value || []);
3988
+ };
3989
+
3990
+
3991
+ /**
3992
+ * @param {string} value
3993
+ * @param {number=} opt_index
3994
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest} returns this
3995
+ */
3996
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.addOrganizationIds = function(value, opt_index) {
3997
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3998
+ };
3999
+
4000
+
4001
+ /**
4002
+ * Clears the list making it empty but non-null.
4003
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest} returns this
4004
+ */
4005
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.clearOrganizationIdsList = function() {
4006
+ return this.setOrganizationIdsList([]);
4007
+ };
4008
+
4009
+
4010
+ /**
4011
+ * optional AIReferenceGroupFilter filter = 2;
4012
+ * @return {?proto.gateway.web.v1.AIReferenceGroupFilter}
4013
+ */
4014
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.getFilter = function() {
4015
+ return /** @type{?proto.gateway.web.v1.AIReferenceGroupFilter} */ (
4016
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter, 2));
4017
+ };
4018
+
4019
+
4020
+ /**
4021
+ * @param {?proto.gateway.web.v1.AIReferenceGroupFilter|undefined} value
4022
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest} returns this
4023
+ */
4024
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.setFilter = function(value) {
4025
+ return jspb.Message.setWrapperField(this, 2, value);
4026
+ };
4027
+
4028
+
4029
+ /**
4030
+ * Clears the message field making it undefined.
4031
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsRequest} returns this
4032
+ */
4033
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.clearFilter = function() {
4034
+ return this.setFilter(undefined);
4035
+ };
4036
+
4037
+
4038
+ /**
4039
+ * Returns whether this field is set.
4040
+ * @return {boolean}
4041
+ */
4042
+ proto.gateway.web.v1.ConfirmAIModelsRequest.prototype.hasFilter = function() {
4043
+ return jspb.Message.getField(this, 2) != null;
4044
+ };
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4051
+ /**
4052
+ * Creates an object representation of this proto.
4053
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4054
+ * Optional fields that are not set will be set to undefined.
4055
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4056
+ * For the list of reserved names please see:
4057
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4058
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4059
+ * JSPB instance for transitional soy proto support:
4060
+ * http://goto/soy-param-migration
4061
+ * @return {!Object}
4062
+ */
4063
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.toObject = function(opt_includeInstance) {
4064
+ return proto.gateway.web.v1.ConfirmAIModelsResponse.toObject(opt_includeInstance, this);
4065
+ };
4066
+
4067
+
4068
+ /**
4069
+ * Static version of the {@see toObject} method.
4070
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4071
+ * the JSPB instance for transitional soy proto support:
4072
+ * http://goto/soy-param-migration
4073
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsResponse} msg The msg instance to transform.
4074
+ * @return {!Object}
4075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4076
+ */
4077
+ proto.gateway.web.v1.ConfirmAIModelsResponse.toObject = function(includeInstance, msg) {
4078
+ var f, obj = {
4079
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4080
+ confirmedNameCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
4081
+ };
4082
+
4083
+ if (includeInstance) {
4084
+ obj.$jspbMessageInstance = msg;
4085
+ }
4086
+ return obj;
4087
+ };
4088
+ }
4089
+
4090
+
4091
+ /**
4092
+ * Deserializes binary data (in protobuf wire format).
4093
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4094
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsResponse}
4095
+ */
4096
+ proto.gateway.web.v1.ConfirmAIModelsResponse.deserializeBinary = function(bytes) {
4097
+ var reader = new jspb.BinaryReader(bytes);
4098
+ var msg = new proto.gateway.web.v1.ConfirmAIModelsResponse;
4099
+ return proto.gateway.web.v1.ConfirmAIModelsResponse.deserializeBinaryFromReader(msg, reader);
4100
+ };
4101
+
4102
+
4103
+ /**
4104
+ * Deserializes binary data (in protobuf wire format) from the
4105
+ * given reader into the given message object.
4106
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsResponse} msg The message object to deserialize into.
4107
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4108
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsResponse}
4109
+ */
4110
+ proto.gateway.web.v1.ConfirmAIModelsResponse.deserializeBinaryFromReader = function(msg, reader) {
4111
+ while (reader.nextField()) {
4112
+ if (reader.isEndGroup()) {
4113
+ break;
4114
+ }
4115
+ var field = reader.getFieldNumber();
4116
+ switch (field) {
4117
+ case 1:
4118
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4119
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4120
+ msg.setStatus(value);
4121
+ break;
4122
+ case 2:
4123
+ var value = /** @type {number} */ (reader.readInt64());
4124
+ msg.setConfirmedNameCount(value);
4125
+ break;
4126
+ default:
4127
+ reader.skipField();
4128
+ break;
4129
+ }
4130
+ }
4131
+ return msg;
4132
+ };
4133
+
4134
+
4135
+ /**
4136
+ * Serializes the message to binary data (in protobuf wire format).
4137
+ * @return {!Uint8Array}
4138
+ */
4139
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.serializeBinary = function() {
4140
+ var writer = new jspb.BinaryWriter();
4141
+ proto.gateway.web.v1.ConfirmAIModelsResponse.serializeBinaryToWriter(this, writer);
4142
+ return writer.getResultBuffer();
4143
+ };
4144
+
4145
+
4146
+ /**
4147
+ * Serializes the given message to binary data (in protobuf wire
4148
+ * format), writing to the given BinaryWriter.
4149
+ * @param {!proto.gateway.web.v1.ConfirmAIModelsResponse} message
4150
+ * @param {!jspb.BinaryWriter} writer
4151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4152
+ */
4153
+ proto.gateway.web.v1.ConfirmAIModelsResponse.serializeBinaryToWriter = function(message, writer) {
4154
+ var f = undefined;
4155
+ f = message.getStatus();
4156
+ if (f != null) {
4157
+ writer.writeMessage(
4158
+ 1,
4159
+ f,
4160
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4161
+ );
4162
+ }
4163
+ f = message.getConfirmedNameCount();
4164
+ if (f !== 0) {
4165
+ writer.writeInt64(
4166
+ 2,
4167
+ f
4168
+ );
4169
+ }
4170
+ };
4171
+
4172
+
4173
+ /**
4174
+ * optional gateway.common.v1.ResponseStatus status = 1;
4175
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4176
+ */
4177
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.getStatus = function() {
4178
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4179
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4180
+ };
4181
+
4182
+
4183
+ /**
4184
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4185
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsResponse} returns this
4186
+ */
4187
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.setStatus = function(value) {
4188
+ return jspb.Message.setWrapperField(this, 1, value);
4189
+ };
4190
+
4191
+
4192
+ /**
4193
+ * Clears the message field making it undefined.
4194
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsResponse} returns this
4195
+ */
4196
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.clearStatus = function() {
4197
+ return this.setStatus(undefined);
4198
+ };
4199
+
4200
+
4201
+ /**
4202
+ * Returns whether this field is set.
4203
+ * @return {boolean}
4204
+ */
4205
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.hasStatus = function() {
4206
+ return jspb.Message.getField(this, 1) != null;
4207
+ };
4208
+
4209
+
4210
+ /**
4211
+ * optional int64 confirmed_name_count = 2;
4212
+ * @return {number}
4213
+ */
4214
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.getConfirmedNameCount = function() {
4215
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4216
+ };
4217
+
4218
+
4219
+ /**
4220
+ * @param {number} value
4221
+ * @return {!proto.gateway.web.v1.ConfirmAIModelsResponse} returns this
4222
+ */
4223
+ proto.gateway.web.v1.ConfirmAIModelsResponse.prototype.setConfirmedNameCount = function(value) {
4224
+ return jspb.Message.setProto3IntField(this, 2, value);
4225
+ };
4226
+
4227
+
4228
+
4229
+ /**
4230
+ * List of repeated fields within this message type.
4231
+ * @private {!Array<number>}
4232
+ * @const
4233
+ */
4234
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.repeatedFields_ = [1];
4235
+
4236
+
4237
+
4238
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4239
+ /**
4240
+ * Creates an object representation of this proto.
4241
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4242
+ * Optional fields that are not set will be set to undefined.
4243
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4244
+ * For the list of reserved names please see:
4245
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4246
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4247
+ * JSPB instance for transitional soy proto support:
4248
+ * http://goto/soy-param-migration
4249
+ * @return {!Object}
4250
+ */
4251
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.toObject = function(opt_includeInstance) {
4252
+ return proto.gateway.web.v1.ConfirmAIEffortsRequest.toObject(opt_includeInstance, this);
4253
+ };
4254
+
4255
+
4256
+ /**
4257
+ * Static version of the {@see toObject} method.
4258
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4259
+ * the JSPB instance for transitional soy proto support:
4260
+ * http://goto/soy-param-migration
4261
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsRequest} msg The msg instance to transform.
4262
+ * @return {!Object}
4263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4264
+ */
4265
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.toObject = function(includeInstance, msg) {
4266
+ var f, obj = {
4267
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
4268
+ filter: (f = msg.getFilter()) && proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.toObject(includeInstance, f)
4269
+ };
4270
+
4271
+ if (includeInstance) {
4272
+ obj.$jspbMessageInstance = msg;
4273
+ }
4274
+ return obj;
4275
+ };
4276
+ }
4277
+
4278
+
4279
+ /**
4280
+ * Deserializes binary data (in protobuf wire format).
4281
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4282
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest}
4283
+ */
4284
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.deserializeBinary = function(bytes) {
4285
+ var reader = new jspb.BinaryReader(bytes);
4286
+ var msg = new proto.gateway.web.v1.ConfirmAIEffortsRequest;
4287
+ return proto.gateway.web.v1.ConfirmAIEffortsRequest.deserializeBinaryFromReader(msg, reader);
4288
+ };
4289
+
4290
+
4291
+ /**
4292
+ * Deserializes binary data (in protobuf wire format) from the
4293
+ * given reader into the given message object.
4294
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsRequest} msg The message object to deserialize into.
4295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4296
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest}
4297
+ */
4298
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.deserializeBinaryFromReader = function(msg, reader) {
4299
+ while (reader.nextField()) {
4300
+ if (reader.isEndGroup()) {
4301
+ break;
4302
+ }
4303
+ var field = reader.getFieldNumber();
4304
+ switch (field) {
4305
+ case 1:
4306
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4307
+ msg.addOrganizationIds(value);
4308
+ break;
4309
+ case 2:
4310
+ var value = new proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter;
4311
+ reader.readMessage(value,proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.deserializeBinaryFromReader);
4312
+ msg.setFilter(value);
4313
+ break;
4314
+ default:
4315
+ reader.skipField();
4316
+ break;
4317
+ }
4318
+ }
4319
+ return msg;
4320
+ };
4321
+
4322
+
4323
+ /**
4324
+ * Serializes the message to binary data (in protobuf wire format).
4325
+ * @return {!Uint8Array}
4326
+ */
4327
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.serializeBinary = function() {
4328
+ var writer = new jspb.BinaryWriter();
4329
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.serializeBinaryToWriter(this, writer);
4330
+ return writer.getResultBuffer();
4331
+ };
4332
+
4333
+
4334
+ /**
4335
+ * Serializes the given message to binary data (in protobuf wire
4336
+ * format), writing to the given BinaryWriter.
4337
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsRequest} message
4338
+ * @param {!jspb.BinaryWriter} writer
4339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4340
+ */
4341
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.serializeBinaryToWriter = function(message, writer) {
4342
+ var f = undefined;
4343
+ f = message.getOrganizationIdsList();
4344
+ if (f.length > 0) {
4345
+ writer.writeRepeatedString(
4346
+ 1,
4347
+ f
4348
+ );
4349
+ }
4350
+ f = message.getFilter();
4351
+ if (f != null) {
4352
+ writer.writeMessage(
4353
+ 2,
4354
+ f,
4355
+ proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.serializeBinaryToWriter
4356
+ );
4357
+ }
4358
+ };
4359
+
4360
+
4361
+ /**
4362
+ * repeated string organization_ids = 1;
4363
+ * @return {!Array<string>}
4364
+ */
4365
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.getOrganizationIdsList = function() {
4366
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4367
+ };
4368
+
4369
+
4370
+ /**
4371
+ * @param {!Array<string>} value
4372
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest} returns this
4373
+ */
4374
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.setOrganizationIdsList = function(value) {
4375
+ return jspb.Message.setField(this, 1, value || []);
4376
+ };
4377
+
4378
+
4379
+ /**
4380
+ * @param {string} value
4381
+ * @param {number=} opt_index
4382
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest} returns this
4383
+ */
4384
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.addOrganizationIds = function(value, opt_index) {
4385
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4386
+ };
4387
+
4388
+
4389
+ /**
4390
+ * Clears the list making it empty but non-null.
4391
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest} returns this
4392
+ */
4393
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.clearOrganizationIdsList = function() {
4394
+ return this.setOrganizationIdsList([]);
4395
+ };
4396
+
4397
+
4398
+ /**
4399
+ * optional AIReferenceGroupFilter filter = 2;
4400
+ * @return {?proto.gateway.web.v1.AIReferenceGroupFilter}
4401
+ */
4402
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.getFilter = function() {
4403
+ return /** @type{?proto.gateway.web.v1.AIReferenceGroupFilter} */ (
4404
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter, 2));
4405
+ };
4406
+
4407
+
4408
+ /**
4409
+ * @param {?proto.gateway.web.v1.AIReferenceGroupFilter|undefined} value
4410
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest} returns this
4411
+ */
4412
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.setFilter = function(value) {
4413
+ return jspb.Message.setWrapperField(this, 2, value);
4414
+ };
4415
+
4416
+
4417
+ /**
4418
+ * Clears the message field making it undefined.
4419
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsRequest} returns this
4420
+ */
4421
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.clearFilter = function() {
4422
+ return this.setFilter(undefined);
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * Returns whether this field is set.
4428
+ * @return {boolean}
4429
+ */
4430
+ proto.gateway.web.v1.ConfirmAIEffortsRequest.prototype.hasFilter = function() {
4431
+ return jspb.Message.getField(this, 2) != null;
4432
+ };
4433
+
4434
+
4435
+
4436
+
4437
+
4438
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4439
+ /**
4440
+ * Creates an object representation of this proto.
4441
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4442
+ * Optional fields that are not set will be set to undefined.
4443
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4444
+ * For the list of reserved names please see:
4445
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4446
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4447
+ * JSPB instance for transitional soy proto support:
4448
+ * http://goto/soy-param-migration
4449
+ * @return {!Object}
4450
+ */
4451
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.toObject = function(opt_includeInstance) {
4452
+ return proto.gateway.web.v1.ConfirmAIEffortsResponse.toObject(opt_includeInstance, this);
4453
+ };
4454
+
4455
+
4456
+ /**
4457
+ * Static version of the {@see toObject} method.
4458
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4459
+ * the JSPB instance for transitional soy proto support:
4460
+ * http://goto/soy-param-migration
4461
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsResponse} msg The msg instance to transform.
4462
+ * @return {!Object}
4463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4464
+ */
4465
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.toObject = function(includeInstance, msg) {
4466
+ var f, obj = {
4467
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4468
+ confirmedNameCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
4469
+ };
4470
+
4471
+ if (includeInstance) {
4472
+ obj.$jspbMessageInstance = msg;
4473
+ }
4474
+ return obj;
4475
+ };
4476
+ }
4477
+
4478
+
4479
+ /**
4480
+ * Deserializes binary data (in protobuf wire format).
4481
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4482
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsResponse}
4483
+ */
4484
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.deserializeBinary = function(bytes) {
4485
+ var reader = new jspb.BinaryReader(bytes);
4486
+ var msg = new proto.gateway.web.v1.ConfirmAIEffortsResponse;
4487
+ return proto.gateway.web.v1.ConfirmAIEffortsResponse.deserializeBinaryFromReader(msg, reader);
4488
+ };
4489
+
4490
+
4491
+ /**
4492
+ * Deserializes binary data (in protobuf wire format) from the
4493
+ * given reader into the given message object.
4494
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsResponse} msg The message object to deserialize into.
4495
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4496
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsResponse}
4497
+ */
4498
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.deserializeBinaryFromReader = function(msg, reader) {
4499
+ while (reader.nextField()) {
4500
+ if (reader.isEndGroup()) {
4501
+ break;
4502
+ }
4503
+ var field = reader.getFieldNumber();
4504
+ switch (field) {
4505
+ case 1:
4506
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4507
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4508
+ msg.setStatus(value);
4509
+ break;
4510
+ case 2:
4511
+ var value = /** @type {number} */ (reader.readInt64());
4512
+ msg.setConfirmedNameCount(value);
4513
+ break;
4514
+ default:
4515
+ reader.skipField();
4516
+ break;
4517
+ }
4518
+ }
4519
+ return msg;
4520
+ };
4521
+
4522
+
4523
+ /**
4524
+ * Serializes the message to binary data (in protobuf wire format).
4525
+ * @return {!Uint8Array}
4526
+ */
4527
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.serializeBinary = function() {
4528
+ var writer = new jspb.BinaryWriter();
4529
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.serializeBinaryToWriter(this, writer);
4530
+ return writer.getResultBuffer();
4531
+ };
4532
+
4533
+
4534
+ /**
4535
+ * Serializes the given message to binary data (in protobuf wire
4536
+ * format), writing to the given BinaryWriter.
4537
+ * @param {!proto.gateway.web.v1.ConfirmAIEffortsResponse} message
4538
+ * @param {!jspb.BinaryWriter} writer
4539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4540
+ */
4541
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.serializeBinaryToWriter = function(message, writer) {
4542
+ var f = undefined;
4543
+ f = message.getStatus();
4544
+ if (f != null) {
4545
+ writer.writeMessage(
4546
+ 1,
4547
+ f,
4548
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4549
+ );
4550
+ }
4551
+ f = message.getConfirmedNameCount();
4552
+ if (f !== 0) {
4553
+ writer.writeInt64(
4554
+ 2,
4555
+ f
4556
+ );
4557
+ }
4558
+ };
4559
+
4560
+
4561
+ /**
4562
+ * optional gateway.common.v1.ResponseStatus status = 1;
4563
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4564
+ */
4565
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.getStatus = function() {
4566
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4567
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4568
+ };
4569
+
4570
+
4571
+ /**
4572
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4573
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsResponse} returns this
4574
+ */
4575
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.setStatus = function(value) {
4576
+ return jspb.Message.setWrapperField(this, 1, value);
4577
+ };
4578
+
4579
+
4580
+ /**
4581
+ * Clears the message field making it undefined.
4582
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsResponse} returns this
4583
+ */
4584
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.clearStatus = function() {
4585
+ return this.setStatus(undefined);
4586
+ };
4587
+
4588
+
4589
+ /**
4590
+ * Returns whether this field is set.
4591
+ * @return {boolean}
4592
+ */
4593
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.hasStatus = function() {
4594
+ return jspb.Message.getField(this, 1) != null;
4595
+ };
4596
+
4597
+
4598
+ /**
4599
+ * optional int64 confirmed_name_count = 2;
4600
+ * @return {number}
4601
+ */
4602
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.getConfirmedNameCount = function() {
4603
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4604
+ };
4605
+
4606
+
4607
+ /**
4608
+ * @param {number} value
4609
+ * @return {!proto.gateway.web.v1.ConfirmAIEffortsResponse} returns this
4610
+ */
4611
+ proto.gateway.web.v1.ConfirmAIEffortsResponse.prototype.setConfirmedNameCount = function(value) {
4612
+ return jspb.Message.setProto3IntField(this, 2, value);
4613
+ };
4614
+
4615
+
4616
+
4617
+ /**
4618
+ * List of repeated fields within this message type.
4619
+ * @private {!Array<number>}
4620
+ * @const
4621
+ */
4622
+ proto.gateway.web.v1.ConfirmAIBillersRequest.repeatedFields_ = [1];
4623
+
4624
+
4625
+
4626
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4627
+ /**
4628
+ * Creates an object representation of this proto.
4629
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4630
+ * Optional fields that are not set will be set to undefined.
4631
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4632
+ * For the list of reserved names please see:
4633
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4634
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4635
+ * JSPB instance for transitional soy proto support:
4636
+ * http://goto/soy-param-migration
4637
+ * @return {!Object}
4638
+ */
4639
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.toObject = function(opt_includeInstance) {
4640
+ return proto.gateway.web.v1.ConfirmAIBillersRequest.toObject(opt_includeInstance, this);
4641
+ };
4642
+
4643
+
4644
+ /**
4645
+ * Static version of the {@see toObject} method.
4646
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4647
+ * the JSPB instance for transitional soy proto support:
4648
+ * http://goto/soy-param-migration
4649
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersRequest} msg The msg instance to transform.
4650
+ * @return {!Object}
4651
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4652
+ */
4653
+ proto.gateway.web.v1.ConfirmAIBillersRequest.toObject = function(includeInstance, msg) {
4654
+ var f, obj = {
4655
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
4656
+ filter: (f = msg.getFilter()) && proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.toObject(includeInstance, f)
4657
+ };
4658
+
4659
+ if (includeInstance) {
4660
+ obj.$jspbMessageInstance = msg;
4661
+ }
4662
+ return obj;
4663
+ };
4664
+ }
4665
+
4666
+
4667
+ /**
4668
+ * Deserializes binary data (in protobuf wire format).
4669
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4670
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest}
4671
+ */
4672
+ proto.gateway.web.v1.ConfirmAIBillersRequest.deserializeBinary = function(bytes) {
4673
+ var reader = new jspb.BinaryReader(bytes);
4674
+ var msg = new proto.gateway.web.v1.ConfirmAIBillersRequest;
4675
+ return proto.gateway.web.v1.ConfirmAIBillersRequest.deserializeBinaryFromReader(msg, reader);
4676
+ };
4677
+
4678
+
4679
+ /**
4680
+ * Deserializes binary data (in protobuf wire format) from the
4681
+ * given reader into the given message object.
4682
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersRequest} msg The message object to deserialize into.
4683
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4684
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest}
4685
+ */
4686
+ proto.gateway.web.v1.ConfirmAIBillersRequest.deserializeBinaryFromReader = function(msg, reader) {
4687
+ while (reader.nextField()) {
4688
+ if (reader.isEndGroup()) {
4689
+ break;
4690
+ }
4691
+ var field = reader.getFieldNumber();
4692
+ switch (field) {
4693
+ case 1:
4694
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4695
+ msg.addOrganizationIds(value);
4696
+ break;
4697
+ case 2:
4698
+ var value = new proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter;
4699
+ reader.readMessage(value,proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.deserializeBinaryFromReader);
4700
+ msg.setFilter(value);
4701
+ break;
4702
+ default:
4703
+ reader.skipField();
4704
+ break;
4705
+ }
4706
+ }
4707
+ return msg;
4708
+ };
4709
+
4710
+
4711
+ /**
4712
+ * Serializes the message to binary data (in protobuf wire format).
4713
+ * @return {!Uint8Array}
4714
+ */
4715
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.serializeBinary = function() {
4716
+ var writer = new jspb.BinaryWriter();
4717
+ proto.gateway.web.v1.ConfirmAIBillersRequest.serializeBinaryToWriter(this, writer);
4718
+ return writer.getResultBuffer();
4719
+ };
4720
+
4721
+
4722
+ /**
4723
+ * Serializes the given message to binary data (in protobuf wire
4724
+ * format), writing to the given BinaryWriter.
4725
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersRequest} message
4726
+ * @param {!jspb.BinaryWriter} writer
4727
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4728
+ */
4729
+ proto.gateway.web.v1.ConfirmAIBillersRequest.serializeBinaryToWriter = function(message, writer) {
4730
+ var f = undefined;
4731
+ f = message.getOrganizationIdsList();
4732
+ if (f.length > 0) {
4733
+ writer.writeRepeatedString(
4734
+ 1,
4735
+ f
4736
+ );
4737
+ }
4738
+ f = message.getFilter();
4739
+ if (f != null) {
4740
+ writer.writeMessage(
4741
+ 2,
4742
+ f,
4743
+ proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter.serializeBinaryToWriter
4744
+ );
4745
+ }
4746
+ };
4747
+
4748
+
4749
+ /**
4750
+ * repeated string organization_ids = 1;
4751
+ * @return {!Array<string>}
4752
+ */
4753
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.getOrganizationIdsList = function() {
4754
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4755
+ };
4756
+
4757
+
4758
+ /**
4759
+ * @param {!Array<string>} value
4760
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest} returns this
4761
+ */
4762
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.setOrganizationIdsList = function(value) {
4763
+ return jspb.Message.setField(this, 1, value || []);
4764
+ };
4765
+
4766
+
4767
+ /**
4768
+ * @param {string} value
4769
+ * @param {number=} opt_index
4770
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest} returns this
4771
+ */
4772
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.addOrganizationIds = function(value, opt_index) {
4773
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4774
+ };
4775
+
4776
+
4777
+ /**
4778
+ * Clears the list making it empty but non-null.
4779
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest} returns this
4780
+ */
4781
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.clearOrganizationIdsList = function() {
4782
+ return this.setOrganizationIdsList([]);
4783
+ };
4784
+
4785
+
4786
+ /**
4787
+ * optional AIReferenceGroupFilter filter = 2;
4788
+ * @return {?proto.gateway.web.v1.AIReferenceGroupFilter}
4789
+ */
4790
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.getFilter = function() {
4791
+ return /** @type{?proto.gateway.web.v1.AIReferenceGroupFilter} */ (
4792
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_reference_gateway_pb.AIReferenceGroupFilter, 2));
4793
+ };
4794
+
4795
+
4796
+ /**
4797
+ * @param {?proto.gateway.web.v1.AIReferenceGroupFilter|undefined} value
4798
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest} returns this
4799
+ */
4800
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.setFilter = function(value) {
4801
+ return jspb.Message.setWrapperField(this, 2, value);
4802
+ };
4803
+
4804
+
4805
+ /**
4806
+ * Clears the message field making it undefined.
4807
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersRequest} returns this
4808
+ */
4809
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.clearFilter = function() {
4810
+ return this.setFilter(undefined);
4811
+ };
4812
+
4813
+
4814
+ /**
4815
+ * Returns whether this field is set.
4816
+ * @return {boolean}
4817
+ */
4818
+ proto.gateway.web.v1.ConfirmAIBillersRequest.prototype.hasFilter = function() {
4819
+ return jspb.Message.getField(this, 2) != null;
4820
+ };
4821
+
4822
+
4823
+
4824
+
4825
+
4826
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4827
+ /**
4828
+ * Creates an object representation of this proto.
4829
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4830
+ * Optional fields that are not set will be set to undefined.
4831
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4832
+ * For the list of reserved names please see:
4833
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4834
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4835
+ * JSPB instance for transitional soy proto support:
4836
+ * http://goto/soy-param-migration
4837
+ * @return {!Object}
4838
+ */
4839
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.toObject = function(opt_includeInstance) {
4840
+ return proto.gateway.web.v1.ConfirmAIBillersResponse.toObject(opt_includeInstance, this);
4841
+ };
4842
+
4843
+
4844
+ /**
4845
+ * Static version of the {@see toObject} method.
4846
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4847
+ * the JSPB instance for transitional soy proto support:
4848
+ * http://goto/soy-param-migration
4849
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersResponse} msg The msg instance to transform.
4850
+ * @return {!Object}
4851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4852
+ */
4853
+ proto.gateway.web.v1.ConfirmAIBillersResponse.toObject = function(includeInstance, msg) {
4854
+ var f, obj = {
4855
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4856
+ confirmedNameCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
4857
+ };
4858
+
4859
+ if (includeInstance) {
4860
+ obj.$jspbMessageInstance = msg;
4861
+ }
4862
+ return obj;
4863
+ };
4864
+ }
4865
+
4866
+
4867
+ /**
4868
+ * Deserializes binary data (in protobuf wire format).
4869
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4870
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersResponse}
4871
+ */
4872
+ proto.gateway.web.v1.ConfirmAIBillersResponse.deserializeBinary = function(bytes) {
4873
+ var reader = new jspb.BinaryReader(bytes);
4874
+ var msg = new proto.gateway.web.v1.ConfirmAIBillersResponse;
4875
+ return proto.gateway.web.v1.ConfirmAIBillersResponse.deserializeBinaryFromReader(msg, reader);
4876
+ };
4877
+
4878
+
4879
+ /**
4880
+ * Deserializes binary data (in protobuf wire format) from the
4881
+ * given reader into the given message object.
4882
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersResponse} msg The message object to deserialize into.
4883
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4884
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersResponse}
4885
+ */
4886
+ proto.gateway.web.v1.ConfirmAIBillersResponse.deserializeBinaryFromReader = function(msg, reader) {
4887
+ while (reader.nextField()) {
4888
+ if (reader.isEndGroup()) {
4889
+ break;
4890
+ }
4891
+ var field = reader.getFieldNumber();
4892
+ switch (field) {
4893
+ case 1:
4894
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4895
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4896
+ msg.setStatus(value);
4897
+ break;
4898
+ case 2:
4899
+ var value = /** @type {number} */ (reader.readInt64());
4900
+ msg.setConfirmedNameCount(value);
4901
+ break;
4902
+ default:
4903
+ reader.skipField();
4904
+ break;
4905
+ }
4906
+ }
4907
+ return msg;
4908
+ };
4909
+
4910
+
4911
+ /**
4912
+ * Serializes the message to binary data (in protobuf wire format).
4913
+ * @return {!Uint8Array}
4914
+ */
4915
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.serializeBinary = function() {
4916
+ var writer = new jspb.BinaryWriter();
4917
+ proto.gateway.web.v1.ConfirmAIBillersResponse.serializeBinaryToWriter(this, writer);
4918
+ return writer.getResultBuffer();
4919
+ };
4920
+
4921
+
4922
+ /**
4923
+ * Serializes the given message to binary data (in protobuf wire
4924
+ * format), writing to the given BinaryWriter.
4925
+ * @param {!proto.gateway.web.v1.ConfirmAIBillersResponse} message
4926
+ * @param {!jspb.BinaryWriter} writer
4927
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4928
+ */
4929
+ proto.gateway.web.v1.ConfirmAIBillersResponse.serializeBinaryToWriter = function(message, writer) {
4930
+ var f = undefined;
4931
+ f = message.getStatus();
4932
+ if (f != null) {
4933
+ writer.writeMessage(
4934
+ 1,
4935
+ f,
4936
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4937
+ );
4938
+ }
4939
+ f = message.getConfirmedNameCount();
4940
+ if (f !== 0) {
4941
+ writer.writeInt64(
4942
+ 2,
4943
+ f
4944
+ );
4945
+ }
4946
+ };
4947
+
4948
+
4949
+ /**
4950
+ * optional gateway.common.v1.ResponseStatus status = 1;
4951
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4952
+ */
4953
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.getStatus = function() {
4954
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4955
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4956
+ };
4957
+
4958
+
4959
+ /**
4960
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4961
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersResponse} returns this
4962
+ */
4963
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.setStatus = function(value) {
4964
+ return jspb.Message.setWrapperField(this, 1, value);
4965
+ };
4966
+
4967
+
4968
+ /**
4969
+ * Clears the message field making it undefined.
4970
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersResponse} returns this
4971
+ */
4972
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.clearStatus = function() {
4973
+ return this.setStatus(undefined);
4974
+ };
4975
+
4976
+
4977
+ /**
4978
+ * Returns whether this field is set.
4979
+ * @return {boolean}
4980
+ */
4981
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.hasStatus = function() {
4982
+ return jspb.Message.getField(this, 1) != null;
4983
+ };
4984
+
4985
+
4986
+ /**
4987
+ * optional int64 confirmed_name_count = 2;
4988
+ * @return {number}
4989
+ */
4990
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.getConfirmedNameCount = function() {
4991
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4992
+ };
4993
+
4994
+
4995
+ /**
4996
+ * @param {number} value
4997
+ * @return {!proto.gateway.web.v1.ConfirmAIBillersResponse} returns this
4998
+ */
4999
+ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.setConfirmedNameCount = function(value) {
5000
+ return jspb.Message.setProto3IntField(this, 2, value);
5001
+ };
5002
+
5003
+
3276
5004
  goog.object.extend(exports, proto.gateway.web.v1);