@aceplus/smartace-api 2.13.0-alpha.2 → 2.13.0-alpha.7

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.
@@ -49,12 +49,8 @@ goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoReply', null, global)
49
49
  goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoRequest', null, global);
50
50
  goog.exportSymbol('proto.Auth.AccountProto.RetrieveRequest', null, global);
51
51
  goog.exportSymbol('proto.Auth.AccountProto.Roles', null, global);
52
- goog.exportSymbol('proto.Auth.AccountProto.Scope', null, global);
53
52
  goog.exportSymbol('proto.Auth.AccountProto.SearchReply', null, global);
54
53
  goog.exportSymbol('proto.Auth.AccountProto.SearchRequest', null, global);
55
- goog.exportSymbol('proto.Auth.AccountProto.SetAccountScopeReply', null, global);
56
- goog.exportSymbol('proto.Auth.AccountProto.SetAccountScopeRequest', null, global);
57
- goog.exportSymbol('proto.Auth.AccountProto.SetSuperAccountScopeRequest', null, global);
58
54
  goog.exportSymbol('proto.Auth.AccountProto.UpdateRequest', null, global);
59
55
  /**
60
56
  * Generated by JsPbCodeGenerator.
@@ -172,7 +168,7 @@ if (goog.DEBUG && !COMPILED) {
172
168
  * @constructor
173
169
  */
174
170
  proto.Auth.AccountProto.SearchRequest = function(opt_data) {
175
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AccountProto.SearchRequest.repeatedFields_, null);
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
172
  };
177
173
  goog.inherits(proto.Auth.AccountProto.SearchRequest, jspb.Message);
178
174
  if (goog.DEBUG && !COMPILED) {
@@ -350,90 +346,6 @@ if (goog.DEBUG && !COMPILED) {
350
346
  */
351
347
  proto.Auth.AccountProto.DeleteReply.displayName = 'proto.Auth.AccountProto.DeleteReply';
352
348
  }
353
- /**
354
- * Generated by JsPbCodeGenerator.
355
- * @param {Array=} opt_data Optional initial data array, typically from a
356
- * server response, or constructed directly in Javascript. The array is used
357
- * in place and becomes part of the constructed object. It is not cloned.
358
- * If no data is provided, the constructed object will be empty, but still
359
- * valid.
360
- * @extends {jspb.Message}
361
- * @constructor
362
- */
363
- proto.Auth.AccountProto.Scope = function(opt_data) {
364
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
365
- };
366
- goog.inherits(proto.Auth.AccountProto.Scope, jspb.Message);
367
- if (goog.DEBUG && !COMPILED) {
368
- /**
369
- * @public
370
- * @override
371
- */
372
- proto.Auth.AccountProto.Scope.displayName = 'proto.Auth.AccountProto.Scope';
373
- }
374
- /**
375
- * Generated by JsPbCodeGenerator.
376
- * @param {Array=} opt_data Optional initial data array, typically from a
377
- * server response, or constructed directly in Javascript. The array is used
378
- * in place and becomes part of the constructed object. It is not cloned.
379
- * If no data is provided, the constructed object will be empty, but still
380
- * valid.
381
- * @extends {jspb.Message}
382
- * @constructor
383
- */
384
- proto.Auth.AccountProto.SetSuperAccountScopeRequest = function(opt_data) {
385
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
386
- };
387
- goog.inherits(proto.Auth.AccountProto.SetSuperAccountScopeRequest, jspb.Message);
388
- if (goog.DEBUG && !COMPILED) {
389
- /**
390
- * @public
391
- * @override
392
- */
393
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.displayName = 'proto.Auth.AccountProto.SetSuperAccountScopeRequest';
394
- }
395
- /**
396
- * Generated by JsPbCodeGenerator.
397
- * @param {Array=} opt_data Optional initial data array, typically from a
398
- * server response, or constructed directly in Javascript. The array is used
399
- * in place and becomes part of the constructed object. It is not cloned.
400
- * If no data is provided, the constructed object will be empty, but still
401
- * valid.
402
- * @extends {jspb.Message}
403
- * @constructor
404
- */
405
- proto.Auth.AccountProto.SetAccountScopeRequest = function(opt_data) {
406
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
407
- };
408
- goog.inherits(proto.Auth.AccountProto.SetAccountScopeRequest, jspb.Message);
409
- if (goog.DEBUG && !COMPILED) {
410
- /**
411
- * @public
412
- * @override
413
- */
414
- proto.Auth.AccountProto.SetAccountScopeRequest.displayName = 'proto.Auth.AccountProto.SetAccountScopeRequest';
415
- }
416
- /**
417
- * Generated by JsPbCodeGenerator.
418
- * @param {Array=} opt_data Optional initial data array, typically from a
419
- * server response, or constructed directly in Javascript. The array is used
420
- * in place and becomes part of the constructed object. It is not cloned.
421
- * If no data is provided, the constructed object will be empty, but still
422
- * valid.
423
- * @extends {jspb.Message}
424
- * @constructor
425
- */
426
- proto.Auth.AccountProto.SetAccountScopeReply = function(opt_data) {
427
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
428
- };
429
- goog.inherits(proto.Auth.AccountProto.SetAccountScopeReply, jspb.Message);
430
- if (goog.DEBUG && !COMPILED) {
431
- /**
432
- * @public
433
- * @override
434
- */
435
- proto.Auth.AccountProto.SetAccountScopeReply.displayName = 'proto.Auth.AccountProto.SetAccountScopeReply';
436
- }
437
349
  /**
438
350
  * Generated by JsPbCodeGenerator.
439
351
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1672,13 +1584,6 @@ proto.Auth.AccountProto.SearchReply.prototype.hasPagination = function() {
1672
1584
 
1673
1585
 
1674
1586
 
1675
- /**
1676
- * List of repeated fields within this message type.
1677
- * @private {!Array<number>}
1678
- * @const
1679
- */
1680
- proto.Auth.AccountProto.SearchRequest.repeatedFields_ = [4];
1681
-
1682
1587
 
1683
1588
 
1684
1589
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1712,9 +1617,7 @@ proto.Auth.AccountProto.SearchRequest.toObject = function(includeInstance, msg)
1712
1617
  var f, obj = {
1713
1618
  search: jspb.Message.getFieldWithDefault(msg, 1, ""),
1714
1619
  page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1715
- count: jspb.Message.getFieldWithDefault(msg, 3, 0),
1716
- scopeFiltersList: jspb.Message.toObjectList(msg.getScopeFiltersList(),
1717
- proto.Auth.AccountProto.Scope.toObject, includeInstance)
1620
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1718
1621
  };
1719
1622
 
1720
1623
  if (includeInstance) {
@@ -1763,11 +1666,6 @@ proto.Auth.AccountProto.SearchRequest.deserializeBinaryFromReader = function(msg
1763
1666
  var value = /** @type {number} */ (reader.readInt32());
1764
1667
  msg.setCount(value);
1765
1668
  break;
1766
- case 4:
1767
- var value = new proto.Auth.AccountProto.Scope;
1768
- reader.readMessage(value,proto.Auth.AccountProto.Scope.deserializeBinaryFromReader);
1769
- msg.addScopeFilters(value);
1770
- break;
1771
1669
  default:
1772
1670
  reader.skipField();
1773
1671
  break;
@@ -1818,14 +1716,6 @@ proto.Auth.AccountProto.SearchRequest.serializeBinaryToWriter = function(message
1818
1716
  f
1819
1717
  );
1820
1718
  }
1821
- f = message.getScopeFiltersList();
1822
- if (f.length > 0) {
1823
- writer.writeRepeatedMessage(
1824
- 4,
1825
- f,
1826
- proto.Auth.AccountProto.Scope.serializeBinaryToWriter
1827
- );
1828
- }
1829
1719
  };
1830
1720
 
1831
1721
 
@@ -1883,44 +1773,6 @@ proto.Auth.AccountProto.SearchRequest.prototype.setCount = function(value) {
1883
1773
  };
1884
1774
 
1885
1775
 
1886
- /**
1887
- * repeated Scope scope_filters = 4;
1888
- * @return {!Array<!proto.Auth.AccountProto.Scope>}
1889
- */
1890
- proto.Auth.AccountProto.SearchRequest.prototype.getScopeFiltersList = function() {
1891
- return /** @type{!Array<!proto.Auth.AccountProto.Scope>} */ (
1892
- jspb.Message.getRepeatedWrapperField(this, proto.Auth.AccountProto.Scope, 4));
1893
- };
1894
-
1895
-
1896
- /**
1897
- * @param {!Array<!proto.Auth.AccountProto.Scope>} value
1898
- * @return {!proto.Auth.AccountProto.SearchRequest} returns this
1899
- */
1900
- proto.Auth.AccountProto.SearchRequest.prototype.setScopeFiltersList = function(value) {
1901
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
1902
- };
1903
-
1904
-
1905
- /**
1906
- * @param {!proto.Auth.AccountProto.Scope=} opt_value
1907
- * @param {number=} opt_index
1908
- * @return {!proto.Auth.AccountProto.Scope}
1909
- */
1910
- proto.Auth.AccountProto.SearchRequest.prototype.addScopeFilters = function(opt_value, opt_index) {
1911
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Auth.AccountProto.Scope, opt_index);
1912
- };
1913
-
1914
-
1915
- /**
1916
- * Clears the list making it empty but non-null.
1917
- * @return {!proto.Auth.AccountProto.SearchRequest} returns this
1918
- */
1919
- proto.Auth.AccountProto.SearchRequest.prototype.clearScopeFiltersList = function() {
1920
- return this.setScopeFiltersList([]);
1921
- };
1922
-
1923
-
1924
1776
 
1925
1777
 
1926
1778
 
@@ -3325,688 +3177,6 @@ proto.Auth.AccountProto.DeleteReply.serializeBinaryToWriter = function(message,
3325
3177
 
3326
3178
 
3327
3179
 
3328
- if (jspb.Message.GENERATE_TO_OBJECT) {
3329
- /**
3330
- * Creates an object representation of this proto.
3331
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3332
- * Optional fields that are not set will be set to undefined.
3333
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3334
- * For the list of reserved names please see:
3335
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3336
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3337
- * JSPB instance for transitional soy proto support:
3338
- * http://goto/soy-param-migration
3339
- * @return {!Object}
3340
- */
3341
- proto.Auth.AccountProto.Scope.prototype.toObject = function(opt_includeInstance) {
3342
- return proto.Auth.AccountProto.Scope.toObject(opt_includeInstance, this);
3343
- };
3344
-
3345
-
3346
- /**
3347
- * Static version of the {@see toObject} method.
3348
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3349
- * the JSPB instance for transitional soy proto support:
3350
- * http://goto/soy-param-migration
3351
- * @param {!proto.Auth.AccountProto.Scope} msg The msg instance to transform.
3352
- * @return {!Object}
3353
- * @suppress {unusedLocalVariables} f is only used for nested messages
3354
- */
3355
- proto.Auth.AccountProto.Scope.toObject = function(includeInstance, msg) {
3356
- var f, obj = {
3357
- scopeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
3358
- scopeValue: jspb.Message.getFieldWithDefault(msg, 2, "")
3359
- };
3360
-
3361
- if (includeInstance) {
3362
- obj.$jspbMessageInstance = msg;
3363
- }
3364
- return obj;
3365
- };
3366
- }
3367
-
3368
-
3369
- /**
3370
- * Deserializes binary data (in protobuf wire format).
3371
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3372
- * @return {!proto.Auth.AccountProto.Scope}
3373
- */
3374
- proto.Auth.AccountProto.Scope.deserializeBinary = function(bytes) {
3375
- var reader = new jspb.BinaryReader(bytes);
3376
- var msg = new proto.Auth.AccountProto.Scope;
3377
- return proto.Auth.AccountProto.Scope.deserializeBinaryFromReader(msg, reader);
3378
- };
3379
-
3380
-
3381
- /**
3382
- * Deserializes binary data (in protobuf wire format) from the
3383
- * given reader into the given message object.
3384
- * @param {!proto.Auth.AccountProto.Scope} msg The message object to deserialize into.
3385
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3386
- * @return {!proto.Auth.AccountProto.Scope}
3387
- */
3388
- proto.Auth.AccountProto.Scope.deserializeBinaryFromReader = function(msg, reader) {
3389
- while (reader.nextField()) {
3390
- if (reader.isEndGroup()) {
3391
- break;
3392
- }
3393
- var field = reader.getFieldNumber();
3394
- switch (field) {
3395
- case 1:
3396
- var value = /** @type {string} */ (reader.readString());
3397
- msg.setScopeName(value);
3398
- break;
3399
- case 2:
3400
- var value = /** @type {string} */ (reader.readString());
3401
- msg.setScopeValue(value);
3402
- break;
3403
- default:
3404
- reader.skipField();
3405
- break;
3406
- }
3407
- }
3408
- return msg;
3409
- };
3410
-
3411
-
3412
- /**
3413
- * Serializes the message to binary data (in protobuf wire format).
3414
- * @return {!Uint8Array}
3415
- */
3416
- proto.Auth.AccountProto.Scope.prototype.serializeBinary = function() {
3417
- var writer = new jspb.BinaryWriter();
3418
- proto.Auth.AccountProto.Scope.serializeBinaryToWriter(this, writer);
3419
- return writer.getResultBuffer();
3420
- };
3421
-
3422
-
3423
- /**
3424
- * Serializes the given message to binary data (in protobuf wire
3425
- * format), writing to the given BinaryWriter.
3426
- * @param {!proto.Auth.AccountProto.Scope} message
3427
- * @param {!jspb.BinaryWriter} writer
3428
- * @suppress {unusedLocalVariables} f is only used for nested messages
3429
- */
3430
- proto.Auth.AccountProto.Scope.serializeBinaryToWriter = function(message, writer) {
3431
- var f = undefined;
3432
- f = message.getScopeName();
3433
- if (f.length > 0) {
3434
- writer.writeString(
3435
- 1,
3436
- f
3437
- );
3438
- }
3439
- f = message.getScopeValue();
3440
- if (f.length > 0) {
3441
- writer.writeString(
3442
- 2,
3443
- f
3444
- );
3445
- }
3446
- };
3447
-
3448
-
3449
- /**
3450
- * optional string scope_name = 1;
3451
- * @return {string}
3452
- */
3453
- proto.Auth.AccountProto.Scope.prototype.getScopeName = function() {
3454
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3455
- };
3456
-
3457
-
3458
- /**
3459
- * @param {string} value
3460
- * @return {!proto.Auth.AccountProto.Scope} returns this
3461
- */
3462
- proto.Auth.AccountProto.Scope.prototype.setScopeName = function(value) {
3463
- return jspb.Message.setProto3StringField(this, 1, value);
3464
- };
3465
-
3466
-
3467
- /**
3468
- * optional string scope_value = 2;
3469
- * @return {string}
3470
- */
3471
- proto.Auth.AccountProto.Scope.prototype.getScopeValue = function() {
3472
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3473
- };
3474
-
3475
-
3476
- /**
3477
- * @param {string} value
3478
- * @return {!proto.Auth.AccountProto.Scope} returns this
3479
- */
3480
- proto.Auth.AccountProto.Scope.prototype.setScopeValue = function(value) {
3481
- return jspb.Message.setProto3StringField(this, 2, value);
3482
- };
3483
-
3484
-
3485
-
3486
-
3487
-
3488
- if (jspb.Message.GENERATE_TO_OBJECT) {
3489
- /**
3490
- * Creates an object representation of this proto.
3491
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3492
- * Optional fields that are not set will be set to undefined.
3493
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3494
- * For the list of reserved names please see:
3495
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3496
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3497
- * JSPB instance for transitional soy proto support:
3498
- * http://goto/soy-param-migration
3499
- * @return {!Object}
3500
- */
3501
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.toObject = function(opt_includeInstance) {
3502
- return proto.Auth.AccountProto.SetSuperAccountScopeRequest.toObject(opt_includeInstance, this);
3503
- };
3504
-
3505
-
3506
- /**
3507
- * Static version of the {@see toObject} method.
3508
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3509
- * the JSPB instance for transitional soy proto support:
3510
- * http://goto/soy-param-migration
3511
- * @param {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} msg The msg instance to transform.
3512
- * @return {!Object}
3513
- * @suppress {unusedLocalVariables} f is only used for nested messages
3514
- */
3515
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.toObject = function(includeInstance, msg) {
3516
- var f, obj = {
3517
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3518
- scope: (f = msg.getScope()) && proto.Auth.AccountProto.Scope.toObject(includeInstance, f),
3519
- clusterName: jspb.Message.getFieldWithDefault(msg, 3, "")
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.ByteSource} bytes The bytes to deserialize.
3533
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest}
3534
- */
3535
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.deserializeBinary = function(bytes) {
3536
- var reader = new jspb.BinaryReader(bytes);
3537
- var msg = new proto.Auth.AccountProto.SetSuperAccountScopeRequest;
3538
- return proto.Auth.AccountProto.SetSuperAccountScopeRequest.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.Auth.AccountProto.SetSuperAccountScopeRequest} msg The message object to deserialize into.
3546
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3547
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest}
3548
- */
3549
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.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 = /** @type {number} */ (reader.readInt64());
3558
- msg.setId(value);
3559
- break;
3560
- case 2:
3561
- var value = new proto.Auth.AccountProto.Scope;
3562
- reader.readMessage(value,proto.Auth.AccountProto.Scope.deserializeBinaryFromReader);
3563
- msg.setScope(value);
3564
- break;
3565
- case 3:
3566
- var value = /** @type {string} */ (reader.readString());
3567
- msg.setClusterName(value);
3568
- break;
3569
- default:
3570
- reader.skipField();
3571
- break;
3572
- }
3573
- }
3574
- return msg;
3575
- };
3576
-
3577
-
3578
- /**
3579
- * Serializes the message to binary data (in protobuf wire format).
3580
- * @return {!Uint8Array}
3581
- */
3582
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.serializeBinary = function() {
3583
- var writer = new jspb.BinaryWriter();
3584
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.serializeBinaryToWriter(this, writer);
3585
- return writer.getResultBuffer();
3586
- };
3587
-
3588
-
3589
- /**
3590
- * Serializes the given message to binary data (in protobuf wire
3591
- * format), writing to the given BinaryWriter.
3592
- * @param {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} message
3593
- * @param {!jspb.BinaryWriter} writer
3594
- * @suppress {unusedLocalVariables} f is only used for nested messages
3595
- */
3596
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.serializeBinaryToWriter = function(message, writer) {
3597
- var f = undefined;
3598
- f = message.getId();
3599
- if (f !== 0) {
3600
- writer.writeInt64(
3601
- 1,
3602
- f
3603
- );
3604
- }
3605
- f = message.getScope();
3606
- if (f != null) {
3607
- writer.writeMessage(
3608
- 2,
3609
- f,
3610
- proto.Auth.AccountProto.Scope.serializeBinaryToWriter
3611
- );
3612
- }
3613
- f = message.getClusterName();
3614
- if (f.length > 0) {
3615
- writer.writeString(
3616
- 3,
3617
- f
3618
- );
3619
- }
3620
- };
3621
-
3622
-
3623
- /**
3624
- * optional int64 id = 1;
3625
- * @return {number}
3626
- */
3627
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getId = function() {
3628
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3629
- };
3630
-
3631
-
3632
- /**
3633
- * @param {number} value
3634
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3635
- */
3636
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setId = function(value) {
3637
- return jspb.Message.setProto3IntField(this, 1, value);
3638
- };
3639
-
3640
-
3641
- /**
3642
- * optional Scope scope = 2;
3643
- * @return {?proto.Auth.AccountProto.Scope}
3644
- */
3645
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getScope = function() {
3646
- return /** @type{?proto.Auth.AccountProto.Scope} */ (
3647
- jspb.Message.getWrapperField(this, proto.Auth.AccountProto.Scope, 2));
3648
- };
3649
-
3650
-
3651
- /**
3652
- * @param {?proto.Auth.AccountProto.Scope|undefined} value
3653
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3654
- */
3655
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setScope = function(value) {
3656
- return jspb.Message.setWrapperField(this, 2, value);
3657
- };
3658
-
3659
-
3660
- /**
3661
- * Clears the message field making it undefined.
3662
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3663
- */
3664
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.clearScope = function() {
3665
- return this.setScope(undefined);
3666
- };
3667
-
3668
-
3669
- /**
3670
- * Returns whether this field is set.
3671
- * @return {boolean}
3672
- */
3673
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.hasScope = function() {
3674
- return jspb.Message.getField(this, 2) != null;
3675
- };
3676
-
3677
-
3678
- /**
3679
- * optional string cluster_name = 3;
3680
- * @return {string}
3681
- */
3682
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getClusterName = function() {
3683
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3684
- };
3685
-
3686
-
3687
- /**
3688
- * @param {string} value
3689
- * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3690
- */
3691
- proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setClusterName = function(value) {
3692
- return jspb.Message.setProto3StringField(this, 3, value);
3693
- };
3694
-
3695
-
3696
-
3697
-
3698
-
3699
- if (jspb.Message.GENERATE_TO_OBJECT) {
3700
- /**
3701
- * Creates an object representation of this proto.
3702
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3703
- * Optional fields that are not set will be set to undefined.
3704
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3705
- * For the list of reserved names please see:
3706
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3707
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3708
- * JSPB instance for transitional soy proto support:
3709
- * http://goto/soy-param-migration
3710
- * @return {!Object}
3711
- */
3712
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.toObject = function(opt_includeInstance) {
3713
- return proto.Auth.AccountProto.SetAccountScopeRequest.toObject(opt_includeInstance, this);
3714
- };
3715
-
3716
-
3717
- /**
3718
- * Static version of the {@see toObject} method.
3719
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3720
- * the JSPB instance for transitional soy proto support:
3721
- * http://goto/soy-param-migration
3722
- * @param {!proto.Auth.AccountProto.SetAccountScopeRequest} msg The msg instance to transform.
3723
- * @return {!Object}
3724
- * @suppress {unusedLocalVariables} f is only used for nested messages
3725
- */
3726
- proto.Auth.AccountProto.SetAccountScopeRequest.toObject = function(includeInstance, msg) {
3727
- var f, obj = {
3728
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3729
- scope: (f = msg.getScope()) && proto.Auth.AccountProto.Scope.toObject(includeInstance, f)
3730
- };
3731
-
3732
- if (includeInstance) {
3733
- obj.$jspbMessageInstance = msg;
3734
- }
3735
- return obj;
3736
- };
3737
- }
3738
-
3739
-
3740
- /**
3741
- * Deserializes binary data (in protobuf wire format).
3742
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3743
- * @return {!proto.Auth.AccountProto.SetAccountScopeRequest}
3744
- */
3745
- proto.Auth.AccountProto.SetAccountScopeRequest.deserializeBinary = function(bytes) {
3746
- var reader = new jspb.BinaryReader(bytes);
3747
- var msg = new proto.Auth.AccountProto.SetAccountScopeRequest;
3748
- return proto.Auth.AccountProto.SetAccountScopeRequest.deserializeBinaryFromReader(msg, reader);
3749
- };
3750
-
3751
-
3752
- /**
3753
- * Deserializes binary data (in protobuf wire format) from the
3754
- * given reader into the given message object.
3755
- * @param {!proto.Auth.AccountProto.SetAccountScopeRequest} msg The message object to deserialize into.
3756
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3757
- * @return {!proto.Auth.AccountProto.SetAccountScopeRequest}
3758
- */
3759
- proto.Auth.AccountProto.SetAccountScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
3760
- while (reader.nextField()) {
3761
- if (reader.isEndGroup()) {
3762
- break;
3763
- }
3764
- var field = reader.getFieldNumber();
3765
- switch (field) {
3766
- case 1:
3767
- var value = /** @type {number} */ (reader.readInt64());
3768
- msg.setId(value);
3769
- break;
3770
- case 2:
3771
- var value = new proto.Auth.AccountProto.Scope;
3772
- reader.readMessage(value,proto.Auth.AccountProto.Scope.deserializeBinaryFromReader);
3773
- msg.setScope(value);
3774
- break;
3775
- default:
3776
- reader.skipField();
3777
- break;
3778
- }
3779
- }
3780
- return msg;
3781
- };
3782
-
3783
-
3784
- /**
3785
- * Serializes the message to binary data (in protobuf wire format).
3786
- * @return {!Uint8Array}
3787
- */
3788
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.serializeBinary = function() {
3789
- var writer = new jspb.BinaryWriter();
3790
- proto.Auth.AccountProto.SetAccountScopeRequest.serializeBinaryToWriter(this, writer);
3791
- return writer.getResultBuffer();
3792
- };
3793
-
3794
-
3795
- /**
3796
- * Serializes the given message to binary data (in protobuf wire
3797
- * format), writing to the given BinaryWriter.
3798
- * @param {!proto.Auth.AccountProto.SetAccountScopeRequest} message
3799
- * @param {!jspb.BinaryWriter} writer
3800
- * @suppress {unusedLocalVariables} f is only used for nested messages
3801
- */
3802
- proto.Auth.AccountProto.SetAccountScopeRequest.serializeBinaryToWriter = function(message, writer) {
3803
- var f = undefined;
3804
- f = message.getId();
3805
- if (f !== 0) {
3806
- writer.writeInt64(
3807
- 1,
3808
- f
3809
- );
3810
- }
3811
- f = message.getScope();
3812
- if (f != null) {
3813
- writer.writeMessage(
3814
- 2,
3815
- f,
3816
- proto.Auth.AccountProto.Scope.serializeBinaryToWriter
3817
- );
3818
- }
3819
- };
3820
-
3821
-
3822
- /**
3823
- * optional int64 id = 1;
3824
- * @return {number}
3825
- */
3826
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.getId = function() {
3827
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3828
- };
3829
-
3830
-
3831
- /**
3832
- * @param {number} value
3833
- * @return {!proto.Auth.AccountProto.SetAccountScopeRequest} returns this
3834
- */
3835
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.setId = function(value) {
3836
- return jspb.Message.setProto3IntField(this, 1, value);
3837
- };
3838
-
3839
-
3840
- /**
3841
- * optional Scope scope = 2;
3842
- * @return {?proto.Auth.AccountProto.Scope}
3843
- */
3844
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.getScope = function() {
3845
- return /** @type{?proto.Auth.AccountProto.Scope} */ (
3846
- jspb.Message.getWrapperField(this, proto.Auth.AccountProto.Scope, 2));
3847
- };
3848
-
3849
-
3850
- /**
3851
- * @param {?proto.Auth.AccountProto.Scope|undefined} value
3852
- * @return {!proto.Auth.AccountProto.SetAccountScopeRequest} returns this
3853
- */
3854
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.setScope = function(value) {
3855
- return jspb.Message.setWrapperField(this, 2, value);
3856
- };
3857
-
3858
-
3859
- /**
3860
- * Clears the message field making it undefined.
3861
- * @return {!proto.Auth.AccountProto.SetAccountScopeRequest} returns this
3862
- */
3863
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.clearScope = function() {
3864
- return this.setScope(undefined);
3865
- };
3866
-
3867
-
3868
- /**
3869
- * Returns whether this field is set.
3870
- * @return {boolean}
3871
- */
3872
- proto.Auth.AccountProto.SetAccountScopeRequest.prototype.hasScope = function() {
3873
- return jspb.Message.getField(this, 2) != null;
3874
- };
3875
-
3876
-
3877
-
3878
-
3879
-
3880
- if (jspb.Message.GENERATE_TO_OBJECT) {
3881
- /**
3882
- * Creates an object representation of this proto.
3883
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3884
- * Optional fields that are not set will be set to undefined.
3885
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3886
- * For the list of reserved names please see:
3887
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3888
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3889
- * JSPB instance for transitional soy proto support:
3890
- * http://goto/soy-param-migration
3891
- * @return {!Object}
3892
- */
3893
- proto.Auth.AccountProto.SetAccountScopeReply.prototype.toObject = function(opt_includeInstance) {
3894
- return proto.Auth.AccountProto.SetAccountScopeReply.toObject(opt_includeInstance, this);
3895
- };
3896
-
3897
-
3898
- /**
3899
- * Static version of the {@see toObject} method.
3900
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3901
- * the JSPB instance for transitional soy proto support:
3902
- * http://goto/soy-param-migration
3903
- * @param {!proto.Auth.AccountProto.SetAccountScopeReply} msg The msg instance to transform.
3904
- * @return {!Object}
3905
- * @suppress {unusedLocalVariables} f is only used for nested messages
3906
- */
3907
- proto.Auth.AccountProto.SetAccountScopeReply.toObject = function(includeInstance, msg) {
3908
- var f, obj = {
3909
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3910
- };
3911
-
3912
- if (includeInstance) {
3913
- obj.$jspbMessageInstance = msg;
3914
- }
3915
- return obj;
3916
- };
3917
- }
3918
-
3919
-
3920
- /**
3921
- * Deserializes binary data (in protobuf wire format).
3922
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3923
- * @return {!proto.Auth.AccountProto.SetAccountScopeReply}
3924
- */
3925
- proto.Auth.AccountProto.SetAccountScopeReply.deserializeBinary = function(bytes) {
3926
- var reader = new jspb.BinaryReader(bytes);
3927
- var msg = new proto.Auth.AccountProto.SetAccountScopeReply;
3928
- return proto.Auth.AccountProto.SetAccountScopeReply.deserializeBinaryFromReader(msg, reader);
3929
- };
3930
-
3931
-
3932
- /**
3933
- * Deserializes binary data (in protobuf wire format) from the
3934
- * given reader into the given message object.
3935
- * @param {!proto.Auth.AccountProto.SetAccountScopeReply} msg The message object to deserialize into.
3936
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3937
- * @return {!proto.Auth.AccountProto.SetAccountScopeReply}
3938
- */
3939
- proto.Auth.AccountProto.SetAccountScopeReply.deserializeBinaryFromReader = function(msg, reader) {
3940
- while (reader.nextField()) {
3941
- if (reader.isEndGroup()) {
3942
- break;
3943
- }
3944
- var field = reader.getFieldNumber();
3945
- switch (field) {
3946
- case 1:
3947
- var value = /** @type {number} */ (reader.readInt64());
3948
- msg.setId(value);
3949
- break;
3950
- default:
3951
- reader.skipField();
3952
- break;
3953
- }
3954
- }
3955
- return msg;
3956
- };
3957
-
3958
-
3959
- /**
3960
- * Serializes the message to binary data (in protobuf wire format).
3961
- * @return {!Uint8Array}
3962
- */
3963
- proto.Auth.AccountProto.SetAccountScopeReply.prototype.serializeBinary = function() {
3964
- var writer = new jspb.BinaryWriter();
3965
- proto.Auth.AccountProto.SetAccountScopeReply.serializeBinaryToWriter(this, writer);
3966
- return writer.getResultBuffer();
3967
- };
3968
-
3969
-
3970
- /**
3971
- * Serializes the given message to binary data (in protobuf wire
3972
- * format), writing to the given BinaryWriter.
3973
- * @param {!proto.Auth.AccountProto.SetAccountScopeReply} message
3974
- * @param {!jspb.BinaryWriter} writer
3975
- * @suppress {unusedLocalVariables} f is only used for nested messages
3976
- */
3977
- proto.Auth.AccountProto.SetAccountScopeReply.serializeBinaryToWriter = function(message, writer) {
3978
- var f = undefined;
3979
- f = message.getId();
3980
- if (f !== 0) {
3981
- writer.writeInt64(
3982
- 1,
3983
- f
3984
- );
3985
- }
3986
- };
3987
-
3988
-
3989
- /**
3990
- * optional int64 id = 1;
3991
- * @return {number}
3992
- */
3993
- proto.Auth.AccountProto.SetAccountScopeReply.prototype.getId = function() {
3994
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3995
- };
3996
-
3997
-
3998
- /**
3999
- * @param {number} value
4000
- * @return {!proto.Auth.AccountProto.SetAccountScopeReply} returns this
4001
- */
4002
- proto.Auth.AccountProto.SetAccountScopeReply.prototype.setId = function(value) {
4003
- return jspb.Message.setProto3IntField(this, 1, value);
4004
- };
4005
-
4006
-
4007
-
4008
-
4009
-
4010
3180
  if (jspb.Message.GENERATE_TO_OBJECT) {
4011
3181
  /**
4012
3182
  * Creates an object representation of this proto.