@lansweeper/multitenant-api-grpc 0.4.7 → 0.4.8

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.
@@ -66,11 +66,15 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdReques
66
66
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse', null, global);
67
67
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Site', null, global);
68
68
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteMode', null, global);
69
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.Subscription', null, global);
70
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SubscriptionType', null, global);
69
71
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest', null, global);
70
72
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse', null, global);
71
73
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest', null, global);
72
74
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings', null, global);
73
75
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse', null, global);
76
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest', null, global);
77
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse', null, global);
74
78
  goog.exportSymbol('proto.lansweeper.multitenant.v1.ValidateApplicationPersonalAccessTokenRequest', null, global);
75
79
  goog.exportSymbol('proto.lansweeper.multitenant.v1.ValidateApplicationPersonalAccessTokenResponse', null, global);
76
80
  /**
@@ -1228,6 +1232,69 @@ if (goog.DEBUG && !COMPILED) {
1228
1232
  */
1229
1233
  proto.lansweeper.multitenant.v1.CheckManagerInApplicationResponse.displayName = 'proto.lansweeper.multitenant.v1.CheckManagerInApplicationResponse';
1230
1234
  }
1235
+ /**
1236
+ * Generated by JsPbCodeGenerator.
1237
+ * @param {Array=} opt_data Optional initial data array, typically from a
1238
+ * server response, or constructed directly in Javascript. The array is used
1239
+ * in place and becomes part of the constructed object. It is not cloned.
1240
+ * If no data is provided, the constructed object will be empty, but still
1241
+ * valid.
1242
+ * @extends {jspb.Message}
1243
+ * @constructor
1244
+ */
1245
+ proto.lansweeper.multitenant.v1.Subscription = function(opt_data) {
1246
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1247
+ };
1248
+ goog.inherits(proto.lansweeper.multitenant.v1.Subscription, jspb.Message);
1249
+ if (goog.DEBUG && !COMPILED) {
1250
+ /**
1251
+ * @public
1252
+ * @override
1253
+ */
1254
+ proto.lansweeper.multitenant.v1.Subscription.displayName = 'proto.lansweeper.multitenant.v1.Subscription';
1255
+ }
1256
+ /**
1257
+ * Generated by JsPbCodeGenerator.
1258
+ * @param {Array=} opt_data Optional initial data array, typically from a
1259
+ * server response, or constructed directly in Javascript. The array is used
1260
+ * in place and becomes part of the constructed object. It is not cloned.
1261
+ * If no data is provided, the constructed object will be empty, but still
1262
+ * valid.
1263
+ * @extends {jspb.Message}
1264
+ * @constructor
1265
+ */
1266
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest = function(opt_data) {
1267
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1268
+ };
1269
+ goog.inherits(proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest, jspb.Message);
1270
+ if (goog.DEBUG && !COMPILED) {
1271
+ /**
1272
+ * @public
1273
+ * @override
1274
+ */
1275
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.displayName = 'proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest';
1276
+ }
1277
+ /**
1278
+ * Generated by JsPbCodeGenerator.
1279
+ * @param {Array=} opt_data Optional initial data array, typically from a
1280
+ * server response, or constructed directly in Javascript. The array is used
1281
+ * in place and becomes part of the constructed object. It is not cloned.
1282
+ * If no data is provided, the constructed object will be empty, but still
1283
+ * valid.
1284
+ * @extends {jspb.Message}
1285
+ * @constructor
1286
+ */
1287
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse = function(opt_data) {
1288
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1289
+ };
1290
+ goog.inherits(proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse, jspb.Message);
1291
+ if (goog.DEBUG && !COMPILED) {
1292
+ /**
1293
+ * @public
1294
+ * @override
1295
+ */
1296
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.displayName = 'proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse';
1297
+ }
1231
1298
 
1232
1299
 
1233
1300
 
@@ -11260,32 +11327,665 @@ proto.lansweeper.multitenant.v1.CheckManagerInApplicationResponse.prototype.setI
11260
11327
  };
11261
11328
 
11262
11329
 
11330
+
11331
+
11332
+
11333
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11263
11334
  /**
11264
- * @enum {number}
11335
+ * Creates an object representation of this proto.
11336
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11337
+ * Optional fields that are not set will be set to undefined.
11338
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11339
+ * For the list of reserved names please see:
11340
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11341
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11342
+ * JSPB instance for transitional soy proto support:
11343
+ * http://goto/soy-param-migration
11344
+ * @return {!Object}
11265
11345
  */
11266
- proto.lansweeper.multitenant.v1.SiteMode = {
11267
- UNESPECIFIED: 0,
11268
- CLOUD_NATIVE: 1,
11269
- DEMO: 2,
11270
- HYBRID: 3,
11271
- DUAL: 4
11346
+ proto.lansweeper.multitenant.v1.Subscription.prototype.toObject = function(opt_includeInstance) {
11347
+ return proto.lansweeper.multitenant.v1.Subscription.toObject(opt_includeInstance, this);
11272
11348
  };
11273
11349
 
11350
+
11274
11351
  /**
11275
- * @enum {number}
11352
+ * Static version of the {@see toObject} method.
11353
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11354
+ * the JSPB instance for transitional soy proto support:
11355
+ * http://goto/soy-param-migration
11356
+ * @param {!proto.lansweeper.multitenant.v1.Subscription} msg The msg instance to transform.
11357
+ * @return {!Object}
11358
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11276
11359
  */
11277
- proto.lansweeper.multitenant.v1.InstallStateValue = {
11278
- INSTALL_STATE_VALUE_UNESPECIFIED: 0,
11279
- INSTALL_STATE_VALUE_SYNC: 1,
11280
- INSTALL_STATE_VALUE_UNSYNC: 2
11360
+ proto.lansweeper.multitenant.v1.Subscription.toObject = function(includeInstance, msg) {
11361
+ var f, obj = {
11362
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
11363
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
11364
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
11365
+ assetsLimit: jspb.Message.getFieldWithDefault(msg, 4, 0),
11366
+ expirationDate: jspb.Message.getFieldWithDefault(msg, 5, "")
11367
+ };
11368
+
11369
+ if (includeInstance) {
11370
+ obj.$jspbMessageInstance = msg;
11371
+ }
11372
+ return obj;
11281
11373
  };
11374
+ }
11375
+
11282
11376
 
11283
11377
  /**
11284
- * @enum {number}
11378
+ * Deserializes binary data (in protobuf wire format).
11379
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11380
+ * @return {!proto.lansweeper.multitenant.v1.Subscription}
11285
11381
  */
11286
- proto.lansweeper.multitenant.v1.InstallType = {
11287
- IT: 0,
11288
- OT: 1
11382
+ proto.lansweeper.multitenant.v1.Subscription.deserializeBinary = function(bytes) {
11383
+ var reader = new jspb.BinaryReader(bytes);
11384
+ var msg = new proto.lansweeper.multitenant.v1.Subscription;
11385
+ return proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader(msg, reader);
11386
+ };
11387
+
11388
+
11389
+ /**
11390
+ * Deserializes binary data (in protobuf wire format) from the
11391
+ * given reader into the given message object.
11392
+ * @param {!proto.lansweeper.multitenant.v1.Subscription} msg The message object to deserialize into.
11393
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11394
+ * @return {!proto.lansweeper.multitenant.v1.Subscription}
11395
+ */
11396
+ proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader = function(msg, reader) {
11397
+ while (reader.nextField()) {
11398
+ if (reader.isEndGroup()) {
11399
+ break;
11400
+ }
11401
+ var field = reader.getFieldNumber();
11402
+ switch (field) {
11403
+ case 1:
11404
+ var value = /** @type {string} */ (reader.readString());
11405
+ msg.setId(value);
11406
+ break;
11407
+ case 2:
11408
+ var value = /** @type {string} */ (reader.readString());
11409
+ msg.setSiteId(value);
11410
+ break;
11411
+ case 3:
11412
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (reader.readEnum());
11413
+ msg.setType(value);
11414
+ break;
11415
+ case 4:
11416
+ var value = /** @type {number} */ (reader.readInt32());
11417
+ msg.setAssetsLimit(value);
11418
+ break;
11419
+ case 5:
11420
+ var value = /** @type {string} */ (reader.readString());
11421
+ msg.setExpirationDate(value);
11422
+ break;
11423
+ default:
11424
+ reader.skipField();
11425
+ break;
11426
+ }
11427
+ }
11428
+ return msg;
11429
+ };
11430
+
11431
+
11432
+ /**
11433
+ * Serializes the message to binary data (in protobuf wire format).
11434
+ * @return {!Uint8Array}
11435
+ */
11436
+ proto.lansweeper.multitenant.v1.Subscription.prototype.serializeBinary = function() {
11437
+ var writer = new jspb.BinaryWriter();
11438
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter(this, writer);
11439
+ return writer.getResultBuffer();
11440
+ };
11441
+
11442
+
11443
+ /**
11444
+ * Serializes the given message to binary data (in protobuf wire
11445
+ * format), writing to the given BinaryWriter.
11446
+ * @param {!proto.lansweeper.multitenant.v1.Subscription} message
11447
+ * @param {!jspb.BinaryWriter} writer
11448
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11449
+ */
11450
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter = function(message, writer) {
11451
+ var f = undefined;
11452
+ f = message.getId();
11453
+ if (f.length > 0) {
11454
+ writer.writeString(
11455
+ 1,
11456
+ f
11457
+ );
11458
+ }
11459
+ f = message.getSiteId();
11460
+ if (f.length > 0) {
11461
+ writer.writeString(
11462
+ 2,
11463
+ f
11464
+ );
11465
+ }
11466
+ f = message.getType();
11467
+ if (f !== 0.0) {
11468
+ writer.writeEnum(
11469
+ 3,
11470
+ f
11471
+ );
11472
+ }
11473
+ f = message.getAssetsLimit();
11474
+ if (f !== 0) {
11475
+ writer.writeInt32(
11476
+ 4,
11477
+ f
11478
+ );
11479
+ }
11480
+ f = message.getExpirationDate();
11481
+ if (f.length > 0) {
11482
+ writer.writeString(
11483
+ 5,
11484
+ f
11485
+ );
11486
+ }
11487
+ };
11488
+
11489
+
11490
+ /**
11491
+ * optional string id = 1;
11492
+ * @return {string}
11493
+ */
11494
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getId = function() {
11495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11496
+ };
11497
+
11498
+
11499
+ /**
11500
+ * @param {string} value
11501
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11502
+ */
11503
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setId = function(value) {
11504
+ return jspb.Message.setProto3StringField(this, 1, value);
11505
+ };
11506
+
11507
+
11508
+ /**
11509
+ * optional string site_id = 2;
11510
+ * @return {string}
11511
+ */
11512
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getSiteId = function() {
11513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11514
+ };
11515
+
11516
+
11517
+ /**
11518
+ * @param {string} value
11519
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11520
+ */
11521
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setSiteId = function(value) {
11522
+ return jspb.Message.setProto3StringField(this, 2, value);
11523
+ };
11524
+
11525
+
11526
+ /**
11527
+ * optional SubscriptionType type = 3;
11528
+ * @return {!proto.lansweeper.multitenant.v1.SubscriptionType}
11529
+ */
11530
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getType = function() {
11531
+ return /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11532
+ };
11533
+
11534
+
11535
+ /**
11536
+ * @param {!proto.lansweeper.multitenant.v1.SubscriptionType} value
11537
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11538
+ */
11539
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setType = function(value) {
11540
+ return jspb.Message.setProto3EnumField(this, 3, value);
11541
+ };
11542
+
11543
+
11544
+ /**
11545
+ * optional int32 assets_limit = 4;
11546
+ * @return {number}
11547
+ */
11548
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getAssetsLimit = function() {
11549
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11550
+ };
11551
+
11552
+
11553
+ /**
11554
+ * @param {number} value
11555
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11556
+ */
11557
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setAssetsLimit = function(value) {
11558
+ return jspb.Message.setProto3IntField(this, 4, value);
11559
+ };
11560
+
11561
+
11562
+ /**
11563
+ * optional string expiration_date = 5;
11564
+ * @return {string}
11565
+ */
11566
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getExpirationDate = function() {
11567
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11568
+ };
11569
+
11570
+
11571
+ /**
11572
+ * @param {string} value
11573
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11574
+ */
11575
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setExpirationDate = function(value) {
11576
+ return jspb.Message.setProto3StringField(this, 5, value);
11577
+ };
11578
+
11579
+
11580
+
11581
+
11582
+
11583
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11584
+ /**
11585
+ * Creates an object representation of this proto.
11586
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11587
+ * Optional fields that are not set will be set to undefined.
11588
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11589
+ * For the list of reserved names please see:
11590
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11591
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11592
+ * JSPB instance for transitional soy proto support:
11593
+ * http://goto/soy-param-migration
11594
+ * @return {!Object}
11595
+ */
11596
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.toObject = function(opt_includeInstance) {
11597
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.toObject(opt_includeInstance, this);
11598
+ };
11599
+
11600
+
11601
+ /**
11602
+ * Static version of the {@see toObject} method.
11603
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11604
+ * the JSPB instance for transitional soy proto support:
11605
+ * http://goto/soy-param-migration
11606
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} msg The msg instance to transform.
11607
+ * @return {!Object}
11608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11609
+ */
11610
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.toObject = function(includeInstance, msg) {
11611
+ var f, obj = {
11612
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
11613
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
11614
+ assetsLimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
11615
+ expirationDate: jspb.Message.getFieldWithDefault(msg, 4, "")
11616
+ };
11617
+
11618
+ if (includeInstance) {
11619
+ obj.$jspbMessageInstance = msg;
11620
+ }
11621
+ return obj;
11622
+ };
11623
+ }
11624
+
11625
+
11626
+ /**
11627
+ * Deserializes binary data (in protobuf wire format).
11628
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11629
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest}
11630
+ */
11631
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinary = function(bytes) {
11632
+ var reader = new jspb.BinaryReader(bytes);
11633
+ var msg = new proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest;
11634
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinaryFromReader(msg, reader);
11635
+ };
11636
+
11637
+
11638
+ /**
11639
+ * Deserializes binary data (in protobuf wire format) from the
11640
+ * given reader into the given message object.
11641
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} msg The message object to deserialize into.
11642
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11643
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest}
11644
+ */
11645
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinaryFromReader = function(msg, reader) {
11646
+ while (reader.nextField()) {
11647
+ if (reader.isEndGroup()) {
11648
+ break;
11649
+ }
11650
+ var field = reader.getFieldNumber();
11651
+ switch (field) {
11652
+ case 1:
11653
+ var value = /** @type {string} */ (reader.readString());
11654
+ msg.setSiteId(value);
11655
+ break;
11656
+ case 2:
11657
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (reader.readEnum());
11658
+ msg.setType(value);
11659
+ break;
11660
+ case 3:
11661
+ var value = /** @type {number} */ (reader.readInt32());
11662
+ msg.setAssetsLimit(value);
11663
+ break;
11664
+ case 4:
11665
+ var value = /** @type {string} */ (reader.readString());
11666
+ msg.setExpirationDate(value);
11667
+ break;
11668
+ default:
11669
+ reader.skipField();
11670
+ break;
11671
+ }
11672
+ }
11673
+ return msg;
11674
+ };
11675
+
11676
+
11677
+ /**
11678
+ * Serializes the message to binary data (in protobuf wire format).
11679
+ * @return {!Uint8Array}
11680
+ */
11681
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.serializeBinary = function() {
11682
+ var writer = new jspb.BinaryWriter();
11683
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.serializeBinaryToWriter(this, writer);
11684
+ return writer.getResultBuffer();
11685
+ };
11686
+
11687
+
11688
+ /**
11689
+ * Serializes the given message to binary data (in protobuf wire
11690
+ * format), writing to the given BinaryWriter.
11691
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} message
11692
+ * @param {!jspb.BinaryWriter} writer
11693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11694
+ */
11695
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.serializeBinaryToWriter = function(message, writer) {
11696
+ var f = undefined;
11697
+ f = message.getSiteId();
11698
+ if (f.length > 0) {
11699
+ writer.writeString(
11700
+ 1,
11701
+ f
11702
+ );
11703
+ }
11704
+ f = message.getType();
11705
+ if (f !== 0.0) {
11706
+ writer.writeEnum(
11707
+ 2,
11708
+ f
11709
+ );
11710
+ }
11711
+ f = message.getAssetsLimit();
11712
+ if (f !== 0) {
11713
+ writer.writeInt32(
11714
+ 3,
11715
+ f
11716
+ );
11717
+ }
11718
+ f = message.getExpirationDate();
11719
+ if (f.length > 0) {
11720
+ writer.writeString(
11721
+ 4,
11722
+ f
11723
+ );
11724
+ }
11725
+ };
11726
+
11727
+
11728
+ /**
11729
+ * optional string site_id = 1;
11730
+ * @return {string}
11731
+ */
11732
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getSiteId = function() {
11733
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11734
+ };
11735
+
11736
+
11737
+ /**
11738
+ * @param {string} value
11739
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11740
+ */
11741
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setSiteId = function(value) {
11742
+ return jspb.Message.setProto3StringField(this, 1, value);
11743
+ };
11744
+
11745
+
11746
+ /**
11747
+ * optional SubscriptionType type = 2;
11748
+ * @return {!proto.lansweeper.multitenant.v1.SubscriptionType}
11749
+ */
11750
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getType = function() {
11751
+ return /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11752
+ };
11753
+
11754
+
11755
+ /**
11756
+ * @param {!proto.lansweeper.multitenant.v1.SubscriptionType} value
11757
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11758
+ */
11759
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setType = function(value) {
11760
+ return jspb.Message.setProto3EnumField(this, 2, value);
11761
+ };
11762
+
11763
+
11764
+ /**
11765
+ * optional int32 assets_limit = 3;
11766
+ * @return {number}
11767
+ */
11768
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getAssetsLimit = function() {
11769
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11770
+ };
11771
+
11772
+
11773
+ /**
11774
+ * @param {number} value
11775
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11776
+ */
11777
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setAssetsLimit = function(value) {
11778
+ return jspb.Message.setProto3IntField(this, 3, value);
11779
+ };
11780
+
11781
+
11782
+ /**
11783
+ * optional string expiration_date = 4;
11784
+ * @return {string}
11785
+ */
11786
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getExpirationDate = function() {
11787
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11788
+ };
11789
+
11790
+
11791
+ /**
11792
+ * @param {string} value
11793
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11794
+ */
11795
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setExpirationDate = function(value) {
11796
+ return jspb.Message.setProto3StringField(this, 4, value);
11797
+ };
11798
+
11799
+
11800
+
11801
+
11802
+
11803
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11804
+ /**
11805
+ * Creates an object representation of this proto.
11806
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11807
+ * Optional fields that are not set will be set to undefined.
11808
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11809
+ * For the list of reserved names please see:
11810
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11811
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11812
+ * JSPB instance for transitional soy proto support:
11813
+ * http://goto/soy-param-migration
11814
+ * @return {!Object}
11815
+ */
11816
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.toObject = function(opt_includeInstance) {
11817
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.toObject(opt_includeInstance, this);
11818
+ };
11819
+
11820
+
11821
+ /**
11822
+ * Static version of the {@see toObject} method.
11823
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11824
+ * the JSPB instance for transitional soy proto support:
11825
+ * http://goto/soy-param-migration
11826
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} msg The msg instance to transform.
11827
+ * @return {!Object}
11828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11829
+ */
11830
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.toObject = function(includeInstance, msg) {
11831
+ var f, obj = {
11832
+ subscription: (f = msg.getSubscription()) && proto.lansweeper.multitenant.v1.Subscription.toObject(includeInstance, f)
11833
+ };
11834
+
11835
+ if (includeInstance) {
11836
+ obj.$jspbMessageInstance = msg;
11837
+ }
11838
+ return obj;
11839
+ };
11840
+ }
11841
+
11842
+
11843
+ /**
11844
+ * Deserializes binary data (in protobuf wire format).
11845
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11846
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse}
11847
+ */
11848
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinary = function(bytes) {
11849
+ var reader = new jspb.BinaryReader(bytes);
11850
+ var msg = new proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse;
11851
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinaryFromReader(msg, reader);
11852
+ };
11853
+
11854
+
11855
+ /**
11856
+ * Deserializes binary data (in protobuf wire format) from the
11857
+ * given reader into the given message object.
11858
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} msg The message object to deserialize into.
11859
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11860
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse}
11861
+ */
11862
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinaryFromReader = function(msg, reader) {
11863
+ while (reader.nextField()) {
11864
+ if (reader.isEndGroup()) {
11865
+ break;
11866
+ }
11867
+ var field = reader.getFieldNumber();
11868
+ switch (field) {
11869
+ case 1:
11870
+ var value = new proto.lansweeper.multitenant.v1.Subscription;
11871
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader);
11872
+ msg.setSubscription(value);
11873
+ break;
11874
+ default:
11875
+ reader.skipField();
11876
+ break;
11877
+ }
11878
+ }
11879
+ return msg;
11880
+ };
11881
+
11882
+
11883
+ /**
11884
+ * Serializes the message to binary data (in protobuf wire format).
11885
+ * @return {!Uint8Array}
11886
+ */
11887
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.serializeBinary = function() {
11888
+ var writer = new jspb.BinaryWriter();
11889
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.serializeBinaryToWriter(this, writer);
11890
+ return writer.getResultBuffer();
11891
+ };
11892
+
11893
+
11894
+ /**
11895
+ * Serializes the given message to binary data (in protobuf wire
11896
+ * format), writing to the given BinaryWriter.
11897
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} message
11898
+ * @param {!jspb.BinaryWriter} writer
11899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11900
+ */
11901
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.serializeBinaryToWriter = function(message, writer) {
11902
+ var f = undefined;
11903
+ f = message.getSubscription();
11904
+ if (f != null) {
11905
+ writer.writeMessage(
11906
+ 1,
11907
+ f,
11908
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter
11909
+ );
11910
+ }
11911
+ };
11912
+
11913
+
11914
+ /**
11915
+ * optional Subscription subscription = 1;
11916
+ * @return {?proto.lansweeper.multitenant.v1.Subscription}
11917
+ */
11918
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.getSubscription = function() {
11919
+ return /** @type{?proto.lansweeper.multitenant.v1.Subscription} */ (
11920
+ jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.Subscription, 1));
11921
+ };
11922
+
11923
+
11924
+ /**
11925
+ * @param {?proto.lansweeper.multitenant.v1.Subscription|undefined} value
11926
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} returns this
11927
+ */
11928
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.setSubscription = function(value) {
11929
+ return jspb.Message.setWrapperField(this, 1, value);
11930
+ };
11931
+
11932
+
11933
+ /**
11934
+ * Clears the message field making it undefined.
11935
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} returns this
11936
+ */
11937
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.clearSubscription = function() {
11938
+ return this.setSubscription(undefined);
11939
+ };
11940
+
11941
+
11942
+ /**
11943
+ * Returns whether this field is set.
11944
+ * @return {boolean}
11945
+ */
11946
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.hasSubscription = function() {
11947
+ return jspb.Message.getField(this, 1) != null;
11948
+ };
11949
+
11950
+
11951
+ /**
11952
+ * @enum {number}
11953
+ */
11954
+ proto.lansweeper.multitenant.v1.SiteMode = {
11955
+ UNESPECIFIED: 0,
11956
+ CLOUD_NATIVE: 1,
11957
+ DEMO: 2,
11958
+ HYBRID: 3,
11959
+ DUAL: 4
11960
+ };
11961
+
11962
+ /**
11963
+ * @enum {number}
11964
+ */
11965
+ proto.lansweeper.multitenant.v1.InstallStateValue = {
11966
+ INSTALL_STATE_VALUE_UNESPECIFIED: 0,
11967
+ INSTALL_STATE_VALUE_SYNC: 1,
11968
+ INSTALL_STATE_VALUE_UNSYNC: 2
11969
+ };
11970
+
11971
+ /**
11972
+ * @enum {number}
11973
+ */
11974
+ proto.lansweeper.multitenant.v1.InstallType = {
11975
+ IT: 0,
11976
+ OT: 1
11977
+ };
11978
+
11979
+ /**
11980
+ * @enum {number}
11981
+ */
11982
+ proto.lansweeper.multitenant.v1.SubscriptionType = {
11983
+ SUBSCRIPTION_TYPE_VALUE_UNESPECIFIED: 0,
11984
+ SUBSCRIPTION_TYPE_VALUE_TRIAL: 1,
11985
+ SUBSCRIPTION_TYPE_VALUE_FREEWARE: 2,
11986
+ SUBSCRIPTION_TYPE_VALUE_STARTER: 3,
11987
+ SUBSCRIPTION_TYPE_VALUE_PRO: 4,
11988
+ SUBSCRIPTION_TYPE_VALUE_ENTERPRISE: 5
11289
11989
  };
11290
11990
 
11291
11991
  goog.object.extend(exports, proto.lansweeper.multitenant.v1);