@miradorlabs/web-grpc 2.71.0 → 2.72.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.
@@ -73,11 +73,15 @@ goog.exportSymbol('proto.gateway.web.v1.RemoveUserRequest', null, global);
73
73
  goog.exportSymbol('proto.gateway.web.v1.RemoveUserResponse', null, global);
74
74
  goog.exportSymbol('proto.gateway.web.v1.ResendInviteRequest', null, global);
75
75
  goog.exportSymbol('proto.gateway.web.v1.ResendInviteResponse', null, global);
76
+ goog.exportSymbol('proto.gateway.web.v1.RevealServerApiKeyRequest', null, global);
77
+ goog.exportSymbol('proto.gateway.web.v1.RevealServerApiKeyResponse', null, global);
76
78
  goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionRequest', null, global);
77
79
  goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionResponse', null, global);
78
80
  goog.exportSymbol('proto.gateway.web.v1.RevokeInvitationRequest', null, global);
79
81
  goog.exportSymbol('proto.gateway.web.v1.RevokeInvitationResponse', null, global);
80
82
  goog.exportSymbol('proto.gateway.web.v1.ServerApiKey', null, global);
83
+ goog.exportSymbol('proto.gateway.web.v1.ServerApiKeyPermissions', null, global);
84
+ goog.exportSymbol('proto.gateway.web.v1.ServerApiKeySecret', null, global);
81
85
  goog.exportSymbol('proto.gateway.web.v1.ServerApiKeyStatus', null, global);
82
86
  goog.exportSymbol('proto.gateway.web.v1.StreamProjectsStatsRequest', null, global);
83
87
  goog.exportSymbol('proto.gateway.web.v1.UpdateOrganizationRequest', null, global);
@@ -248,6 +252,69 @@ if (goog.DEBUG && !COMPILED) {
248
252
  */
249
253
  proto.gateway.web.v1.CreateProjectResponse.displayName = 'proto.gateway.web.v1.CreateProjectResponse';
250
254
  }
255
+ /**
256
+ * Generated by JsPbCodeGenerator.
257
+ * @param {Array=} opt_data Optional initial data array, typically from a
258
+ * server response, or constructed directly in Javascript. The array is used
259
+ * in place and becomes part of the constructed object. It is not cloned.
260
+ * If no data is provided, the constructed object will be empty, but still
261
+ * valid.
262
+ * @extends {jspb.Message}
263
+ * @constructor
264
+ */
265
+ proto.gateway.web.v1.ServerApiKeySecret = function(opt_data) {
266
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
267
+ };
268
+ goog.inherits(proto.gateway.web.v1.ServerApiKeySecret, jspb.Message);
269
+ if (goog.DEBUG && !COMPILED) {
270
+ /**
271
+ * @public
272
+ * @override
273
+ */
274
+ proto.gateway.web.v1.ServerApiKeySecret.displayName = 'proto.gateway.web.v1.ServerApiKeySecret';
275
+ }
276
+ /**
277
+ * Generated by JsPbCodeGenerator.
278
+ * @param {Array=} opt_data Optional initial data array, typically from a
279
+ * server response, or constructed directly in Javascript. The array is used
280
+ * in place and becomes part of the constructed object. It is not cloned.
281
+ * If no data is provided, the constructed object will be empty, but still
282
+ * valid.
283
+ * @extends {jspb.Message}
284
+ * @constructor
285
+ */
286
+ proto.gateway.web.v1.RevealServerApiKeyRequest = function(opt_data) {
287
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
288
+ };
289
+ goog.inherits(proto.gateway.web.v1.RevealServerApiKeyRequest, jspb.Message);
290
+ if (goog.DEBUG && !COMPILED) {
291
+ /**
292
+ * @public
293
+ * @override
294
+ */
295
+ proto.gateway.web.v1.RevealServerApiKeyRequest.displayName = 'proto.gateway.web.v1.RevealServerApiKeyRequest';
296
+ }
297
+ /**
298
+ * Generated by JsPbCodeGenerator.
299
+ * @param {Array=} opt_data Optional initial data array, typically from a
300
+ * server response, or constructed directly in Javascript. The array is used
301
+ * in place and becomes part of the constructed object. It is not cloned.
302
+ * If no data is provided, the constructed object will be empty, but still
303
+ * valid.
304
+ * @extends {jspb.Message}
305
+ * @constructor
306
+ */
307
+ proto.gateway.web.v1.RevealServerApiKeyResponse = function(opt_data) {
308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
309
+ };
310
+ goog.inherits(proto.gateway.web.v1.RevealServerApiKeyResponse, jspb.Message);
311
+ if (goog.DEBUG && !COMPILED) {
312
+ /**
313
+ * @public
314
+ * @override
315
+ */
316
+ proto.gateway.web.v1.RevealServerApiKeyResponse.displayName = 'proto.gateway.web.v1.RevealServerApiKeyResponse';
317
+ }
251
318
  /**
252
319
  * Generated by JsPbCodeGenerator.
253
320
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -878,6 +945,27 @@ if (goog.DEBUG && !COMPILED) {
878
945
  */
879
946
  proto.gateway.web.v1.DeleteServerApiKeyResponse.displayName = 'proto.gateway.web.v1.DeleteServerApiKeyResponse';
880
947
  }
948
+ /**
949
+ * Generated by JsPbCodeGenerator.
950
+ * @param {Array=} opt_data Optional initial data array, typically from a
951
+ * server response, or constructed directly in Javascript. The array is used
952
+ * in place and becomes part of the constructed object. It is not cloned.
953
+ * If no data is provided, the constructed object will be empty, but still
954
+ * valid.
955
+ * @extends {jspb.Message}
956
+ * @constructor
957
+ */
958
+ proto.gateway.web.v1.ServerApiKeyPermissions = function(opt_data) {
959
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
960
+ };
961
+ goog.inherits(proto.gateway.web.v1.ServerApiKeyPermissions, jspb.Message);
962
+ if (goog.DEBUG && !COMPILED) {
963
+ /**
964
+ * @public
965
+ * @override
966
+ */
967
+ proto.gateway.web.v1.ServerApiKeyPermissions.displayName = 'proto.gateway.web.v1.ServerApiKeyPermissions';
968
+ }
881
969
  /**
882
970
  * Generated by JsPbCodeGenerator.
883
971
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3175,7 +3263,8 @@ proto.gateway.web.v1.CreateProjectResponse.prototype.toObject = function(opt_inc
3175
3263
  proto.gateway.web.v1.CreateProjectResponse.toObject = function(includeInstance, msg) {
3176
3264
  var f, obj = {
3177
3265
  status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3178
- project: (f = msg.getProject()) && proto.gateway.web.v1.Project.toObject(includeInstance, f)
3266
+ project: (f = msg.getProject()) && proto.gateway.web.v1.Project.toObject(includeInstance, f),
3267
+ ingestionKey: (f = msg.getIngestionKey()) && proto.gateway.web.v1.ServerApiKeySecret.toObject(includeInstance, f)
3179
3268
  };
3180
3269
 
3181
3270
  if (includeInstance) {
@@ -3222,6 +3311,11 @@ proto.gateway.web.v1.CreateProjectResponse.deserializeBinaryFromReader = functio
3222
3311
  reader.readMessage(value,proto.gateway.web.v1.Project.deserializeBinaryFromReader);
3223
3312
  msg.setProject(value);
3224
3313
  break;
3314
+ case 3:
3315
+ var value = new proto.gateway.web.v1.ServerApiKeySecret;
3316
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKeySecret.deserializeBinaryFromReader);
3317
+ msg.setIngestionKey(value);
3318
+ break;
3225
3319
  default:
3226
3320
  reader.skipField();
3227
3321
  break;
@@ -3267,6 +3361,14 @@ proto.gateway.web.v1.CreateProjectResponse.serializeBinaryToWriter = function(me
3267
3361
  proto.gateway.web.v1.Project.serializeBinaryToWriter
3268
3362
  );
3269
3363
  }
3364
+ f = message.getIngestionKey();
3365
+ if (f != null) {
3366
+ writer.writeMessage(
3367
+ 3,
3368
+ f,
3369
+ proto.gateway.web.v1.ServerApiKeySecret.serializeBinaryToWriter
3370
+ );
3371
+ }
3270
3372
  };
3271
3373
 
3272
3374
 
@@ -3339,7 +3441,617 @@ proto.gateway.web.v1.CreateProjectResponse.prototype.clearProject = function() {
3339
3441
  * Returns whether this field is set.
3340
3442
  * @return {boolean}
3341
3443
  */
3342
- proto.gateway.web.v1.CreateProjectResponse.prototype.hasProject = function() {
3444
+ proto.gateway.web.v1.CreateProjectResponse.prototype.hasProject = function() {
3445
+ return jspb.Message.getField(this, 2) != null;
3446
+ };
3447
+
3448
+
3449
+ /**
3450
+ * optional ServerApiKeySecret ingestion_key = 3;
3451
+ * @return {?proto.gateway.web.v1.ServerApiKeySecret}
3452
+ */
3453
+ proto.gateway.web.v1.CreateProjectResponse.prototype.getIngestionKey = function() {
3454
+ return /** @type{?proto.gateway.web.v1.ServerApiKeySecret} */ (
3455
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKeySecret, 3));
3456
+ };
3457
+
3458
+
3459
+ /**
3460
+ * @param {?proto.gateway.web.v1.ServerApiKeySecret|undefined} value
3461
+ * @return {!proto.gateway.web.v1.CreateProjectResponse} returns this
3462
+ */
3463
+ proto.gateway.web.v1.CreateProjectResponse.prototype.setIngestionKey = function(value) {
3464
+ return jspb.Message.setWrapperField(this, 3, value);
3465
+ };
3466
+
3467
+
3468
+ /**
3469
+ * Clears the message field making it undefined.
3470
+ * @return {!proto.gateway.web.v1.CreateProjectResponse} returns this
3471
+ */
3472
+ proto.gateway.web.v1.CreateProjectResponse.prototype.clearIngestionKey = function() {
3473
+ return this.setIngestionKey(undefined);
3474
+ };
3475
+
3476
+
3477
+ /**
3478
+ * Returns whether this field is set.
3479
+ * @return {boolean}
3480
+ */
3481
+ proto.gateway.web.v1.CreateProjectResponse.prototype.hasIngestionKey = function() {
3482
+ return jspb.Message.getField(this, 3) != null;
3483
+ };
3484
+
3485
+
3486
+
3487
+
3488
+
3489
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3490
+ /**
3491
+ * Creates an object representation of this proto.
3492
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3493
+ * Optional fields that are not set will be set to undefined.
3494
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3495
+ * For the list of reserved names please see:
3496
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3497
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3498
+ * JSPB instance for transitional soy proto support:
3499
+ * http://goto/soy-param-migration
3500
+ * @return {!Object}
3501
+ */
3502
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.toObject = function(opt_includeInstance) {
3503
+ return proto.gateway.web.v1.ServerApiKeySecret.toObject(opt_includeInstance, this);
3504
+ };
3505
+
3506
+
3507
+ /**
3508
+ * Static version of the {@see toObject} method.
3509
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3510
+ * the JSPB instance for transitional soy proto support:
3511
+ * http://goto/soy-param-migration
3512
+ * @param {!proto.gateway.web.v1.ServerApiKeySecret} msg The msg instance to transform.
3513
+ * @return {!Object}
3514
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3515
+ */
3516
+ proto.gateway.web.v1.ServerApiKeySecret.toObject = function(includeInstance, msg) {
3517
+ var f, obj = {
3518
+ serverApiKey: (f = msg.getServerApiKey()) && proto.gateway.web.v1.ServerApiKey.toObject(includeInstance, f),
3519
+ key: jspb.Message.getFieldWithDefault(msg, 2, "")
3520
+ };
3521
+
3522
+ if (includeInstance) {
3523
+ obj.$jspbMessageInstance = msg;
3524
+ }
3525
+ return obj;
3526
+ };
3527
+ }
3528
+
3529
+
3530
+ /**
3531
+ * Deserializes binary data (in protobuf wire format).
3532
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3533
+ * @return {!proto.gateway.web.v1.ServerApiKeySecret}
3534
+ */
3535
+ proto.gateway.web.v1.ServerApiKeySecret.deserializeBinary = function(bytes) {
3536
+ var reader = new jspb.BinaryReader(bytes);
3537
+ var msg = new proto.gateway.web.v1.ServerApiKeySecret;
3538
+ return proto.gateway.web.v1.ServerApiKeySecret.deserializeBinaryFromReader(msg, reader);
3539
+ };
3540
+
3541
+
3542
+ /**
3543
+ * Deserializes binary data (in protobuf wire format) from the
3544
+ * given reader into the given message object.
3545
+ * @param {!proto.gateway.web.v1.ServerApiKeySecret} msg The message object to deserialize into.
3546
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3547
+ * @return {!proto.gateway.web.v1.ServerApiKeySecret}
3548
+ */
3549
+ proto.gateway.web.v1.ServerApiKeySecret.deserializeBinaryFromReader = function(msg, reader) {
3550
+ while (reader.nextField()) {
3551
+ if (reader.isEndGroup()) {
3552
+ break;
3553
+ }
3554
+ var field = reader.getFieldNumber();
3555
+ switch (field) {
3556
+ case 1:
3557
+ var value = new proto.gateway.web.v1.ServerApiKey;
3558
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKey.deserializeBinaryFromReader);
3559
+ msg.setServerApiKey(value);
3560
+ break;
3561
+ case 2:
3562
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3563
+ msg.setKey(value);
3564
+ break;
3565
+ default:
3566
+ reader.skipField();
3567
+ break;
3568
+ }
3569
+ }
3570
+ return msg;
3571
+ };
3572
+
3573
+
3574
+ /**
3575
+ * Serializes the message to binary data (in protobuf wire format).
3576
+ * @return {!Uint8Array}
3577
+ */
3578
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.serializeBinary = function() {
3579
+ var writer = new jspb.BinaryWriter();
3580
+ proto.gateway.web.v1.ServerApiKeySecret.serializeBinaryToWriter(this, writer);
3581
+ return writer.getResultBuffer();
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * Serializes the given message to binary data (in protobuf wire
3587
+ * format), writing to the given BinaryWriter.
3588
+ * @param {!proto.gateway.web.v1.ServerApiKeySecret} message
3589
+ * @param {!jspb.BinaryWriter} writer
3590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3591
+ */
3592
+ proto.gateway.web.v1.ServerApiKeySecret.serializeBinaryToWriter = function(message, writer) {
3593
+ var f = undefined;
3594
+ f = message.getServerApiKey();
3595
+ if (f != null) {
3596
+ writer.writeMessage(
3597
+ 1,
3598
+ f,
3599
+ proto.gateway.web.v1.ServerApiKey.serializeBinaryToWriter
3600
+ );
3601
+ }
3602
+ f = message.getKey();
3603
+ if (f.length > 0) {
3604
+ writer.writeString(
3605
+ 2,
3606
+ f
3607
+ );
3608
+ }
3609
+ };
3610
+
3611
+
3612
+ /**
3613
+ * optional ServerApiKey server_api_key = 1;
3614
+ * @return {?proto.gateway.web.v1.ServerApiKey}
3615
+ */
3616
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.getServerApiKey = function() {
3617
+ return /** @type{?proto.gateway.web.v1.ServerApiKey} */ (
3618
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKey, 1));
3619
+ };
3620
+
3621
+
3622
+ /**
3623
+ * @param {?proto.gateway.web.v1.ServerApiKey|undefined} value
3624
+ * @return {!proto.gateway.web.v1.ServerApiKeySecret} returns this
3625
+ */
3626
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.setServerApiKey = function(value) {
3627
+ return jspb.Message.setWrapperField(this, 1, value);
3628
+ };
3629
+
3630
+
3631
+ /**
3632
+ * Clears the message field making it undefined.
3633
+ * @return {!proto.gateway.web.v1.ServerApiKeySecret} returns this
3634
+ */
3635
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.clearServerApiKey = function() {
3636
+ return this.setServerApiKey(undefined);
3637
+ };
3638
+
3639
+
3640
+ /**
3641
+ * Returns whether this field is set.
3642
+ * @return {boolean}
3643
+ */
3644
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.hasServerApiKey = function() {
3645
+ return jspb.Message.getField(this, 1) != null;
3646
+ };
3647
+
3648
+
3649
+ /**
3650
+ * optional string key = 2;
3651
+ * @return {string}
3652
+ */
3653
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.getKey = function() {
3654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3655
+ };
3656
+
3657
+
3658
+ /**
3659
+ * @param {string} value
3660
+ * @return {!proto.gateway.web.v1.ServerApiKeySecret} returns this
3661
+ */
3662
+ proto.gateway.web.v1.ServerApiKeySecret.prototype.setKey = function(value) {
3663
+ return jspb.Message.setProto3StringField(this, 2, value);
3664
+ };
3665
+
3666
+
3667
+
3668
+
3669
+
3670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3671
+ /**
3672
+ * Creates an object representation of this proto.
3673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3674
+ * Optional fields that are not set will be set to undefined.
3675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3676
+ * For the list of reserved names please see:
3677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3679
+ * JSPB instance for transitional soy proto support:
3680
+ * http://goto/soy-param-migration
3681
+ * @return {!Object}
3682
+ */
3683
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.toObject = function(opt_includeInstance) {
3684
+ return proto.gateway.web.v1.RevealServerApiKeyRequest.toObject(opt_includeInstance, this);
3685
+ };
3686
+
3687
+
3688
+ /**
3689
+ * Static version of the {@see toObject} method.
3690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3691
+ * the JSPB instance for transitional soy proto support:
3692
+ * http://goto/soy-param-migration
3693
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyRequest} msg The msg instance to transform.
3694
+ * @return {!Object}
3695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3696
+ */
3697
+ proto.gateway.web.v1.RevealServerApiKeyRequest.toObject = function(includeInstance, msg) {
3698
+ var f, obj = {
3699
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3700
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3701
+ id: jspb.Message.getFieldWithDefault(msg, 3, "")
3702
+ };
3703
+
3704
+ if (includeInstance) {
3705
+ obj.$jspbMessageInstance = msg;
3706
+ }
3707
+ return obj;
3708
+ };
3709
+ }
3710
+
3711
+
3712
+ /**
3713
+ * Deserializes binary data (in protobuf wire format).
3714
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3715
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyRequest}
3716
+ */
3717
+ proto.gateway.web.v1.RevealServerApiKeyRequest.deserializeBinary = function(bytes) {
3718
+ var reader = new jspb.BinaryReader(bytes);
3719
+ var msg = new proto.gateway.web.v1.RevealServerApiKeyRequest;
3720
+ return proto.gateway.web.v1.RevealServerApiKeyRequest.deserializeBinaryFromReader(msg, reader);
3721
+ };
3722
+
3723
+
3724
+ /**
3725
+ * Deserializes binary data (in protobuf wire format) from the
3726
+ * given reader into the given message object.
3727
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyRequest} msg The message object to deserialize into.
3728
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3729
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyRequest}
3730
+ */
3731
+ proto.gateway.web.v1.RevealServerApiKeyRequest.deserializeBinaryFromReader = function(msg, reader) {
3732
+ while (reader.nextField()) {
3733
+ if (reader.isEndGroup()) {
3734
+ break;
3735
+ }
3736
+ var field = reader.getFieldNumber();
3737
+ switch (field) {
3738
+ case 1:
3739
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3740
+ msg.setOrganizationId(value);
3741
+ break;
3742
+ case 2:
3743
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3744
+ msg.setProjectId(value);
3745
+ break;
3746
+ case 3:
3747
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3748
+ msg.setId(value);
3749
+ break;
3750
+ default:
3751
+ reader.skipField();
3752
+ break;
3753
+ }
3754
+ }
3755
+ return msg;
3756
+ };
3757
+
3758
+
3759
+ /**
3760
+ * Serializes the message to binary data (in protobuf wire format).
3761
+ * @return {!Uint8Array}
3762
+ */
3763
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.serializeBinary = function() {
3764
+ var writer = new jspb.BinaryWriter();
3765
+ proto.gateway.web.v1.RevealServerApiKeyRequest.serializeBinaryToWriter(this, writer);
3766
+ return writer.getResultBuffer();
3767
+ };
3768
+
3769
+
3770
+ /**
3771
+ * Serializes the given message to binary data (in protobuf wire
3772
+ * format), writing to the given BinaryWriter.
3773
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyRequest} message
3774
+ * @param {!jspb.BinaryWriter} writer
3775
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3776
+ */
3777
+ proto.gateway.web.v1.RevealServerApiKeyRequest.serializeBinaryToWriter = function(message, writer) {
3778
+ var f = undefined;
3779
+ f = message.getOrganizationId();
3780
+ if (f.length > 0) {
3781
+ writer.writeString(
3782
+ 1,
3783
+ f
3784
+ );
3785
+ }
3786
+ f = message.getProjectId();
3787
+ if (f.length > 0) {
3788
+ writer.writeString(
3789
+ 2,
3790
+ f
3791
+ );
3792
+ }
3793
+ f = message.getId();
3794
+ if (f.length > 0) {
3795
+ writer.writeString(
3796
+ 3,
3797
+ f
3798
+ );
3799
+ }
3800
+ };
3801
+
3802
+
3803
+ /**
3804
+ * optional string organization_id = 1;
3805
+ * @return {string}
3806
+ */
3807
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.getOrganizationId = function() {
3808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3809
+ };
3810
+
3811
+
3812
+ /**
3813
+ * @param {string} value
3814
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyRequest} returns this
3815
+ */
3816
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.setOrganizationId = function(value) {
3817
+ return jspb.Message.setProto3StringField(this, 1, value);
3818
+ };
3819
+
3820
+
3821
+ /**
3822
+ * optional string project_id = 2;
3823
+ * @return {string}
3824
+ */
3825
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.getProjectId = function() {
3826
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3827
+ };
3828
+
3829
+
3830
+ /**
3831
+ * @param {string} value
3832
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyRequest} returns this
3833
+ */
3834
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.setProjectId = function(value) {
3835
+ return jspb.Message.setProto3StringField(this, 2, value);
3836
+ };
3837
+
3838
+
3839
+ /**
3840
+ * optional string id = 3;
3841
+ * @return {string}
3842
+ */
3843
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.getId = function() {
3844
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3845
+ };
3846
+
3847
+
3848
+ /**
3849
+ * @param {string} value
3850
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyRequest} returns this
3851
+ */
3852
+ proto.gateway.web.v1.RevealServerApiKeyRequest.prototype.setId = function(value) {
3853
+ return jspb.Message.setProto3StringField(this, 3, value);
3854
+ };
3855
+
3856
+
3857
+
3858
+
3859
+
3860
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3861
+ /**
3862
+ * Creates an object representation of this proto.
3863
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3864
+ * Optional fields that are not set will be set to undefined.
3865
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3866
+ * For the list of reserved names please see:
3867
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3868
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3869
+ * JSPB instance for transitional soy proto support:
3870
+ * http://goto/soy-param-migration
3871
+ * @return {!Object}
3872
+ */
3873
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.toObject = function(opt_includeInstance) {
3874
+ return proto.gateway.web.v1.RevealServerApiKeyResponse.toObject(opt_includeInstance, this);
3875
+ };
3876
+
3877
+
3878
+ /**
3879
+ * Static version of the {@see toObject} method.
3880
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3881
+ * the JSPB instance for transitional soy proto support:
3882
+ * http://goto/soy-param-migration
3883
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyResponse} msg The msg instance to transform.
3884
+ * @return {!Object}
3885
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3886
+ */
3887
+ proto.gateway.web.v1.RevealServerApiKeyResponse.toObject = function(includeInstance, msg) {
3888
+ var f, obj = {
3889
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3890
+ serverKey: (f = msg.getServerKey()) && proto.gateway.web.v1.ServerApiKeySecret.toObject(includeInstance, f)
3891
+ };
3892
+
3893
+ if (includeInstance) {
3894
+ obj.$jspbMessageInstance = msg;
3895
+ }
3896
+ return obj;
3897
+ };
3898
+ }
3899
+
3900
+
3901
+ /**
3902
+ * Deserializes binary data (in protobuf wire format).
3903
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3904
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse}
3905
+ */
3906
+ proto.gateway.web.v1.RevealServerApiKeyResponse.deserializeBinary = function(bytes) {
3907
+ var reader = new jspb.BinaryReader(bytes);
3908
+ var msg = new proto.gateway.web.v1.RevealServerApiKeyResponse;
3909
+ return proto.gateway.web.v1.RevealServerApiKeyResponse.deserializeBinaryFromReader(msg, reader);
3910
+ };
3911
+
3912
+
3913
+ /**
3914
+ * Deserializes binary data (in protobuf wire format) from the
3915
+ * given reader into the given message object.
3916
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyResponse} msg The message object to deserialize into.
3917
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3918
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse}
3919
+ */
3920
+ proto.gateway.web.v1.RevealServerApiKeyResponse.deserializeBinaryFromReader = function(msg, reader) {
3921
+ while (reader.nextField()) {
3922
+ if (reader.isEndGroup()) {
3923
+ break;
3924
+ }
3925
+ var field = reader.getFieldNumber();
3926
+ switch (field) {
3927
+ case 1:
3928
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3929
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3930
+ msg.setStatus(value);
3931
+ break;
3932
+ case 2:
3933
+ var value = new proto.gateway.web.v1.ServerApiKeySecret;
3934
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKeySecret.deserializeBinaryFromReader);
3935
+ msg.setServerKey(value);
3936
+ break;
3937
+ default:
3938
+ reader.skipField();
3939
+ break;
3940
+ }
3941
+ }
3942
+ return msg;
3943
+ };
3944
+
3945
+
3946
+ /**
3947
+ * Serializes the message to binary data (in protobuf wire format).
3948
+ * @return {!Uint8Array}
3949
+ */
3950
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.serializeBinary = function() {
3951
+ var writer = new jspb.BinaryWriter();
3952
+ proto.gateway.web.v1.RevealServerApiKeyResponse.serializeBinaryToWriter(this, writer);
3953
+ return writer.getResultBuffer();
3954
+ };
3955
+
3956
+
3957
+ /**
3958
+ * Serializes the given message to binary data (in protobuf wire
3959
+ * format), writing to the given BinaryWriter.
3960
+ * @param {!proto.gateway.web.v1.RevealServerApiKeyResponse} message
3961
+ * @param {!jspb.BinaryWriter} writer
3962
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3963
+ */
3964
+ proto.gateway.web.v1.RevealServerApiKeyResponse.serializeBinaryToWriter = function(message, writer) {
3965
+ var f = undefined;
3966
+ f = message.getStatus();
3967
+ if (f != null) {
3968
+ writer.writeMessage(
3969
+ 1,
3970
+ f,
3971
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3972
+ );
3973
+ }
3974
+ f = message.getServerKey();
3975
+ if (f != null) {
3976
+ writer.writeMessage(
3977
+ 2,
3978
+ f,
3979
+ proto.gateway.web.v1.ServerApiKeySecret.serializeBinaryToWriter
3980
+ );
3981
+ }
3982
+ };
3983
+
3984
+
3985
+ /**
3986
+ * optional gateway.common.v1.ResponseStatus status = 1;
3987
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3988
+ */
3989
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.getStatus = function() {
3990
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3991
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3992
+ };
3993
+
3994
+
3995
+ /**
3996
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3997
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse} returns this
3998
+ */
3999
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.setStatus = function(value) {
4000
+ return jspb.Message.setWrapperField(this, 1, value);
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * Clears the message field making it undefined.
4006
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse} returns this
4007
+ */
4008
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.clearStatus = function() {
4009
+ return this.setStatus(undefined);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * Returns whether this field is set.
4015
+ * @return {boolean}
4016
+ */
4017
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.hasStatus = function() {
4018
+ return jspb.Message.getField(this, 1) != null;
4019
+ };
4020
+
4021
+
4022
+ /**
4023
+ * optional ServerApiKeySecret server_key = 2;
4024
+ * @return {?proto.gateway.web.v1.ServerApiKeySecret}
4025
+ */
4026
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.getServerKey = function() {
4027
+ return /** @type{?proto.gateway.web.v1.ServerApiKeySecret} */ (
4028
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKeySecret, 2));
4029
+ };
4030
+
4031
+
4032
+ /**
4033
+ * @param {?proto.gateway.web.v1.ServerApiKeySecret|undefined} value
4034
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse} returns this
4035
+ */
4036
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.setServerKey = function(value) {
4037
+ return jspb.Message.setWrapperField(this, 2, value);
4038
+ };
4039
+
4040
+
4041
+ /**
4042
+ * Clears the message field making it undefined.
4043
+ * @return {!proto.gateway.web.v1.RevealServerApiKeyResponse} returns this
4044
+ */
4045
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.clearServerKey = function() {
4046
+ return this.setServerKey(undefined);
4047
+ };
4048
+
4049
+
4050
+ /**
4051
+ * Returns whether this field is set.
4052
+ * @return {boolean}
4053
+ */
4054
+ proto.gateway.web.v1.RevealServerApiKeyResponse.prototype.hasServerKey = function() {
3343
4055
  return jspb.Message.getField(this, 2) != null;
3344
4056
  };
3345
4057
 
@@ -7553,7 +8265,8 @@ proto.gateway.web.v1.CreateServerApiKeyRequest.toObject = function(includeInstan
7553
8265
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
7554
8266
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
7555
8267
  name: jspb.Message.getFieldWithDefault(msg, 3, ""),
7556
- description: jspb.Message.getFieldWithDefault(msg, 4, "")
8268
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
8269
+ permissions: (f = msg.getPermissions()) && proto.gateway.web.v1.ServerApiKeyPermissions.toObject(includeInstance, f)
7557
8270
  };
7558
8271
 
7559
8272
  if (includeInstance) {
@@ -7606,6 +8319,11 @@ proto.gateway.web.v1.CreateServerApiKeyRequest.deserializeBinaryFromReader = fun
7606
8319
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
7607
8320
  msg.setDescription(value);
7608
8321
  break;
8322
+ case 5:
8323
+ var value = new proto.gateway.web.v1.ServerApiKeyPermissions;
8324
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinaryFromReader);
8325
+ msg.setPermissions(value);
8326
+ break;
7609
8327
  default:
7610
8328
  reader.skipField();
7611
8329
  break;
@@ -7663,6 +8381,14 @@ proto.gateway.web.v1.CreateServerApiKeyRequest.serializeBinaryToWriter = functio
7663
8381
  f
7664
8382
  );
7665
8383
  }
8384
+ f = message.getPermissions();
8385
+ if (f != null) {
8386
+ writer.writeMessage(
8387
+ 5,
8388
+ f,
8389
+ proto.gateway.web.v1.ServerApiKeyPermissions.serializeBinaryToWriter
8390
+ );
8391
+ }
7666
8392
  };
7667
8393
 
7668
8394
 
@@ -7738,6 +8464,43 @@ proto.gateway.web.v1.CreateServerApiKeyRequest.prototype.setDescription = functi
7738
8464
  };
7739
8465
 
7740
8466
 
8467
+ /**
8468
+ * optional ServerApiKeyPermissions permissions = 5;
8469
+ * @return {?proto.gateway.web.v1.ServerApiKeyPermissions}
8470
+ */
8471
+ proto.gateway.web.v1.CreateServerApiKeyRequest.prototype.getPermissions = function() {
8472
+ return /** @type{?proto.gateway.web.v1.ServerApiKeyPermissions} */ (
8473
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKeyPermissions, 5));
8474
+ };
8475
+
8476
+
8477
+ /**
8478
+ * @param {?proto.gateway.web.v1.ServerApiKeyPermissions|undefined} value
8479
+ * @return {!proto.gateway.web.v1.CreateServerApiKeyRequest} returns this
8480
+ */
8481
+ proto.gateway.web.v1.CreateServerApiKeyRequest.prototype.setPermissions = function(value) {
8482
+ return jspb.Message.setWrapperField(this, 5, value);
8483
+ };
8484
+
8485
+
8486
+ /**
8487
+ * Clears the message field making it undefined.
8488
+ * @return {!proto.gateway.web.v1.CreateServerApiKeyRequest} returns this
8489
+ */
8490
+ proto.gateway.web.v1.CreateServerApiKeyRequest.prototype.clearPermissions = function() {
8491
+ return this.setPermissions(undefined);
8492
+ };
8493
+
8494
+
8495
+ /**
8496
+ * Returns whether this field is set.
8497
+ * @return {boolean}
8498
+ */
8499
+ proto.gateway.web.v1.CreateServerApiKeyRequest.prototype.hasPermissions = function() {
8500
+ return jspb.Message.getField(this, 5) != null;
8501
+ };
8502
+
8503
+
7741
8504
 
7742
8505
 
7743
8506
 
@@ -8945,7 +9708,8 @@ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.toO
8945
9708
  */
8946
9709
  proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.toObject = function(includeInstance, msg) {
8947
9710
  var f, obj = {
8948
- name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
9711
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
9712
+ permissions: (f = msg.getPermissions()) && proto.gateway.web.v1.ServerApiKeyPermissions.toObject(includeInstance, f)
8949
9713
  };
8950
9714
 
8951
9715
  if (includeInstance) {
@@ -8986,6 +9750,11 @@ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.deserializeBi
8986
9750
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
8987
9751
  msg.setName(value);
8988
9752
  break;
9753
+ case 2:
9754
+ var value = new proto.gateway.web.v1.ServerApiKeyPermissions;
9755
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinaryFromReader);
9756
+ msg.setPermissions(value);
9757
+ break;
8989
9758
  default:
8990
9759
  reader.skipField();
8991
9760
  break;
@@ -9022,6 +9791,14 @@ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.serializeBina
9022
9791
  f
9023
9792
  );
9024
9793
  }
9794
+ f = message.getPermissions();
9795
+ if (f != null) {
9796
+ writer.writeMessage(
9797
+ 2,
9798
+ f,
9799
+ proto.gateway.web.v1.ServerApiKeyPermissions.serializeBinaryToWriter
9800
+ );
9801
+ }
9025
9802
  };
9026
9803
 
9027
9804
 
@@ -9061,6 +9838,43 @@ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.has
9061
9838
  };
9062
9839
 
9063
9840
 
9841
+ /**
9842
+ * optional ServerApiKeyPermissions permissions = 2;
9843
+ * @return {?proto.gateway.web.v1.ServerApiKeyPermissions}
9844
+ */
9845
+ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.getPermissions = function() {
9846
+ return /** @type{?proto.gateway.web.v1.ServerApiKeyPermissions} */ (
9847
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKeyPermissions, 2));
9848
+ };
9849
+
9850
+
9851
+ /**
9852
+ * @param {?proto.gateway.web.v1.ServerApiKeyPermissions|undefined} value
9853
+ * @return {!proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates} returns this
9854
+ */
9855
+ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.setPermissions = function(value) {
9856
+ return jspb.Message.setWrapperField(this, 2, value);
9857
+ };
9858
+
9859
+
9860
+ /**
9861
+ * Clears the message field making it undefined.
9862
+ * @return {!proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates} returns this
9863
+ */
9864
+ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.clearPermissions = function() {
9865
+ return this.setPermissions(undefined);
9866
+ };
9867
+
9868
+
9869
+ /**
9870
+ * Returns whether this field is set.
9871
+ * @return {boolean}
9872
+ */
9873
+ proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates.prototype.hasPermissions = function() {
9874
+ return jspb.Message.getField(this, 2) != null;
9875
+ };
9876
+
9877
+
9064
9878
  /**
9065
9879
  * optional string organization_id = 1;
9066
9880
  * @return {string}
@@ -9698,6 +10512,196 @@ proto.gateway.web.v1.DeleteServerApiKeyResponse.prototype.hasStatus = function()
9698
10512
 
9699
10513
 
9700
10514
 
10515
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10516
+ /**
10517
+ * Creates an object representation of this proto.
10518
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10519
+ * Optional fields that are not set will be set to undefined.
10520
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10521
+ * For the list of reserved names please see:
10522
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10523
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10524
+ * JSPB instance for transitional soy proto support:
10525
+ * http://goto/soy-param-migration
10526
+ * @return {!Object}
10527
+ */
10528
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.toObject = function(opt_includeInstance) {
10529
+ return proto.gateway.web.v1.ServerApiKeyPermissions.toObject(opt_includeInstance, this);
10530
+ };
10531
+
10532
+
10533
+ /**
10534
+ * Static version of the {@see toObject} method.
10535
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10536
+ * the JSPB instance for transitional soy proto support:
10537
+ * http://goto/soy-param-migration
10538
+ * @param {!proto.gateway.web.v1.ServerApiKeyPermissions} msg The msg instance to transform.
10539
+ * @return {!Object}
10540
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10541
+ */
10542
+ proto.gateway.web.v1.ServerApiKeyPermissions.toObject = function(includeInstance, msg) {
10543
+ var f, obj = {
10544
+ read: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
10545
+ write: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
10546
+ ingest: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
10547
+ };
10548
+
10549
+ if (includeInstance) {
10550
+ obj.$jspbMessageInstance = msg;
10551
+ }
10552
+ return obj;
10553
+ };
10554
+ }
10555
+
10556
+
10557
+ /**
10558
+ * Deserializes binary data (in protobuf wire format).
10559
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
10560
+ * @return {!proto.gateway.web.v1.ServerApiKeyPermissions}
10561
+ */
10562
+ proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinary = function(bytes) {
10563
+ var reader = new jspb.BinaryReader(bytes);
10564
+ var msg = new proto.gateway.web.v1.ServerApiKeyPermissions;
10565
+ return proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinaryFromReader(msg, reader);
10566
+ };
10567
+
10568
+
10569
+ /**
10570
+ * Deserializes binary data (in protobuf wire format) from the
10571
+ * given reader into the given message object.
10572
+ * @param {!proto.gateway.web.v1.ServerApiKeyPermissions} msg The message object to deserialize into.
10573
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10574
+ * @return {!proto.gateway.web.v1.ServerApiKeyPermissions}
10575
+ */
10576
+ proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinaryFromReader = function(msg, reader) {
10577
+ while (reader.nextField()) {
10578
+ if (reader.isEndGroup()) {
10579
+ break;
10580
+ }
10581
+ var field = reader.getFieldNumber();
10582
+ switch (field) {
10583
+ case 1:
10584
+ var value = /** @type {boolean} */ (reader.readBool());
10585
+ msg.setRead(value);
10586
+ break;
10587
+ case 2:
10588
+ var value = /** @type {boolean} */ (reader.readBool());
10589
+ msg.setWrite(value);
10590
+ break;
10591
+ case 3:
10592
+ var value = /** @type {boolean} */ (reader.readBool());
10593
+ msg.setIngest(value);
10594
+ break;
10595
+ default:
10596
+ reader.skipField();
10597
+ break;
10598
+ }
10599
+ }
10600
+ return msg;
10601
+ };
10602
+
10603
+
10604
+ /**
10605
+ * Serializes the message to binary data (in protobuf wire format).
10606
+ * @return {!Uint8Array}
10607
+ */
10608
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.serializeBinary = function() {
10609
+ var writer = new jspb.BinaryWriter();
10610
+ proto.gateway.web.v1.ServerApiKeyPermissions.serializeBinaryToWriter(this, writer);
10611
+ return writer.getResultBuffer();
10612
+ };
10613
+
10614
+
10615
+ /**
10616
+ * Serializes the given message to binary data (in protobuf wire
10617
+ * format), writing to the given BinaryWriter.
10618
+ * @param {!proto.gateway.web.v1.ServerApiKeyPermissions} message
10619
+ * @param {!jspb.BinaryWriter} writer
10620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10621
+ */
10622
+ proto.gateway.web.v1.ServerApiKeyPermissions.serializeBinaryToWriter = function(message, writer) {
10623
+ var f = undefined;
10624
+ f = message.getRead();
10625
+ if (f) {
10626
+ writer.writeBool(
10627
+ 1,
10628
+ f
10629
+ );
10630
+ }
10631
+ f = message.getWrite();
10632
+ if (f) {
10633
+ writer.writeBool(
10634
+ 2,
10635
+ f
10636
+ );
10637
+ }
10638
+ f = message.getIngest();
10639
+ if (f) {
10640
+ writer.writeBool(
10641
+ 3,
10642
+ f
10643
+ );
10644
+ }
10645
+ };
10646
+
10647
+
10648
+ /**
10649
+ * optional bool read = 1;
10650
+ * @return {boolean}
10651
+ */
10652
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.getRead = function() {
10653
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
10654
+ };
10655
+
10656
+
10657
+ /**
10658
+ * @param {boolean} value
10659
+ * @return {!proto.gateway.web.v1.ServerApiKeyPermissions} returns this
10660
+ */
10661
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.setRead = function(value) {
10662
+ return jspb.Message.setProto3BooleanField(this, 1, value);
10663
+ };
10664
+
10665
+
10666
+ /**
10667
+ * optional bool write = 2;
10668
+ * @return {boolean}
10669
+ */
10670
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.getWrite = function() {
10671
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
10672
+ };
10673
+
10674
+
10675
+ /**
10676
+ * @param {boolean} value
10677
+ * @return {!proto.gateway.web.v1.ServerApiKeyPermissions} returns this
10678
+ */
10679
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.setWrite = function(value) {
10680
+ return jspb.Message.setProto3BooleanField(this, 2, value);
10681
+ };
10682
+
10683
+
10684
+ /**
10685
+ * optional bool ingest = 3;
10686
+ * @return {boolean}
10687
+ */
10688
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.getIngest = function() {
10689
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
10690
+ };
10691
+
10692
+
10693
+ /**
10694
+ * @param {boolean} value
10695
+ * @return {!proto.gateway.web.v1.ServerApiKeyPermissions} returns this
10696
+ */
10697
+ proto.gateway.web.v1.ServerApiKeyPermissions.prototype.setIngest = function(value) {
10698
+ return jspb.Message.setProto3BooleanField(this, 3, value);
10699
+ };
10700
+
10701
+
10702
+
10703
+
10704
+
9701
10705
  if (jspb.Message.GENERATE_TO_OBJECT) {
9702
10706
  /**
9703
10707
  * Creates an object representation of this proto.
@@ -9736,7 +10740,8 @@ status: jspb.Message.getFieldWithDefault(msg, 6, 0),
9736
10740
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9737
10741
  updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9738
10742
  createdBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
9739
- lastUsedAt: (f = msg.getLastUsedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
10743
+ lastUsedAt: (f = msg.getLastUsedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
10744
+ permissions: (f = msg.getPermissions()) && proto.gateway.web.v1.ServerApiKeyPermissions.toObject(includeInstance, f)
9740
10745
  };
9741
10746
 
9742
10747
  if (includeInstance) {
@@ -9816,6 +10821,11 @@ proto.gateway.web.v1.ServerApiKey.deserializeBinaryFromReader = function(msg, re
9816
10821
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
9817
10822
  msg.setLastUsedAt(value);
9818
10823
  break;
10824
+ case 11:
10825
+ var value = new proto.gateway.web.v1.ServerApiKeyPermissions;
10826
+ reader.readMessage(value,proto.gateway.web.v1.ServerApiKeyPermissions.deserializeBinaryFromReader);
10827
+ msg.setPermissions(value);
10828
+ break;
9819
10829
  default:
9820
10830
  reader.skipField();
9821
10831
  break;
@@ -9918,6 +10928,14 @@ proto.gateway.web.v1.ServerApiKey.serializeBinaryToWriter = function(message, wr
9918
10928
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
9919
10929
  );
9920
10930
  }
10931
+ f = message.getPermissions();
10932
+ if (f != null) {
10933
+ writer.writeMessage(
10934
+ 11,
10935
+ f,
10936
+ proto.gateway.web.v1.ServerApiKeyPermissions.serializeBinaryToWriter
10937
+ );
10938
+ }
9921
10939
  };
9922
10940
 
9923
10941
 
@@ -10158,6 +11176,43 @@ proto.gateway.web.v1.ServerApiKey.prototype.hasLastUsedAt = function() {
10158
11176
  };
10159
11177
 
10160
11178
 
11179
+ /**
11180
+ * optional ServerApiKeyPermissions permissions = 11;
11181
+ * @return {?proto.gateway.web.v1.ServerApiKeyPermissions}
11182
+ */
11183
+ proto.gateway.web.v1.ServerApiKey.prototype.getPermissions = function() {
11184
+ return /** @type{?proto.gateway.web.v1.ServerApiKeyPermissions} */ (
11185
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ServerApiKeyPermissions, 11));
11186
+ };
11187
+
11188
+
11189
+ /**
11190
+ * @param {?proto.gateway.web.v1.ServerApiKeyPermissions|undefined} value
11191
+ * @return {!proto.gateway.web.v1.ServerApiKey} returns this
11192
+ */
11193
+ proto.gateway.web.v1.ServerApiKey.prototype.setPermissions = function(value) {
11194
+ return jspb.Message.setWrapperField(this, 11, value);
11195
+ };
11196
+
11197
+
11198
+ /**
11199
+ * Clears the message field making it undefined.
11200
+ * @return {!proto.gateway.web.v1.ServerApiKey} returns this
11201
+ */
11202
+ proto.gateway.web.v1.ServerApiKey.prototype.clearPermissions = function() {
11203
+ return this.setPermissions(undefined);
11204
+ };
11205
+
11206
+
11207
+ /**
11208
+ * Returns whether this field is set.
11209
+ * @return {boolean}
11210
+ */
11211
+ proto.gateway.web.v1.ServerApiKey.prototype.hasPermissions = function() {
11212
+ return jspb.Message.getField(this, 11) != null;
11213
+ };
11214
+
11215
+
10161
11216
 
10162
11217
 
10163
11218