@lansweeper/multitenant-api-grpc 0.4.7 → 0.4.9

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,695 @@ 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
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, "")
11368
+ };
11369
+
11370
+ if (includeInstance) {
11371
+ obj.$jspbMessageInstance = msg;
11372
+ }
11373
+ return obj;
11281
11374
  };
11375
+ }
11376
+
11282
11377
 
11283
11378
  /**
11284
- * @enum {number}
11379
+ * Deserializes binary data (in protobuf wire format).
11380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11381
+ * @return {!proto.lansweeper.multitenant.v1.Subscription}
11285
11382
  */
11286
- proto.lansweeper.multitenant.v1.InstallType = {
11287
- IT: 0,
11288
- OT: 1
11383
+ proto.lansweeper.multitenant.v1.Subscription.deserializeBinary = function(bytes) {
11384
+ var reader = new jspb.BinaryReader(bytes);
11385
+ var msg = new proto.lansweeper.multitenant.v1.Subscription;
11386
+ return proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader(msg, reader);
11387
+ };
11388
+
11389
+
11390
+ /**
11391
+ * Deserializes binary data (in protobuf wire format) from the
11392
+ * given reader into the given message object.
11393
+ * @param {!proto.lansweeper.multitenant.v1.Subscription} msg The message object to deserialize into.
11394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11395
+ * @return {!proto.lansweeper.multitenant.v1.Subscription}
11396
+ */
11397
+ proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader = function(msg, reader) {
11398
+ while (reader.nextField()) {
11399
+ if (reader.isEndGroup()) {
11400
+ break;
11401
+ }
11402
+ var field = reader.getFieldNumber();
11403
+ switch (field) {
11404
+ case 1:
11405
+ var value = /** @type {string} */ (reader.readString());
11406
+ msg.setId(value);
11407
+ break;
11408
+ case 2:
11409
+ var value = /** @type {string} */ (reader.readString());
11410
+ msg.setSiteId(value);
11411
+ break;
11412
+ case 3:
11413
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (reader.readEnum());
11414
+ msg.setType(value);
11415
+ break;
11416
+ case 4:
11417
+ var value = /** @type {number} */ (reader.readInt32());
11418
+ msg.setAssetsLimit(value);
11419
+ break;
11420
+ case 5:
11421
+ var value = /** @type {string} */ (reader.readString());
11422
+ msg.setExpirationDate(value);
11423
+ break;
11424
+ case 6:
11425
+ var value = /** @type {string} */ (reader.readString());
11426
+ msg.setCreatedAt(value);
11427
+ break;
11428
+ default:
11429
+ reader.skipField();
11430
+ break;
11431
+ }
11432
+ }
11433
+ return msg;
11434
+ };
11435
+
11436
+
11437
+ /**
11438
+ * Serializes the message to binary data (in protobuf wire format).
11439
+ * @return {!Uint8Array}
11440
+ */
11441
+ proto.lansweeper.multitenant.v1.Subscription.prototype.serializeBinary = function() {
11442
+ var writer = new jspb.BinaryWriter();
11443
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter(this, writer);
11444
+ return writer.getResultBuffer();
11445
+ };
11446
+
11447
+
11448
+ /**
11449
+ * Serializes the given message to binary data (in protobuf wire
11450
+ * format), writing to the given BinaryWriter.
11451
+ * @param {!proto.lansweeper.multitenant.v1.Subscription} message
11452
+ * @param {!jspb.BinaryWriter} writer
11453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11454
+ */
11455
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter = function(message, writer) {
11456
+ var f = undefined;
11457
+ f = message.getId();
11458
+ if (f.length > 0) {
11459
+ writer.writeString(
11460
+ 1,
11461
+ f
11462
+ );
11463
+ }
11464
+ f = message.getSiteId();
11465
+ if (f.length > 0) {
11466
+ writer.writeString(
11467
+ 2,
11468
+ f
11469
+ );
11470
+ }
11471
+ f = message.getType();
11472
+ if (f !== 0.0) {
11473
+ writer.writeEnum(
11474
+ 3,
11475
+ f
11476
+ );
11477
+ }
11478
+ f = message.getAssetsLimit();
11479
+ if (f !== 0) {
11480
+ writer.writeInt32(
11481
+ 4,
11482
+ f
11483
+ );
11484
+ }
11485
+ f = message.getExpirationDate();
11486
+ if (f.length > 0) {
11487
+ writer.writeString(
11488
+ 5,
11489
+ f
11490
+ );
11491
+ }
11492
+ f = message.getCreatedAt();
11493
+ if (f.length > 0) {
11494
+ writer.writeString(
11495
+ 6,
11496
+ f
11497
+ );
11498
+ }
11499
+ };
11500
+
11501
+
11502
+ /**
11503
+ * optional string id = 1;
11504
+ * @return {string}
11505
+ */
11506
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getId = function() {
11507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11508
+ };
11509
+
11510
+
11511
+ /**
11512
+ * @param {string} value
11513
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11514
+ */
11515
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setId = function(value) {
11516
+ return jspb.Message.setProto3StringField(this, 1, value);
11517
+ };
11518
+
11519
+
11520
+ /**
11521
+ * optional string site_id = 2;
11522
+ * @return {string}
11523
+ */
11524
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getSiteId = function() {
11525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11526
+ };
11527
+
11528
+
11529
+ /**
11530
+ * @param {string} value
11531
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11532
+ */
11533
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setSiteId = function(value) {
11534
+ return jspb.Message.setProto3StringField(this, 2, value);
11535
+ };
11536
+
11537
+
11538
+ /**
11539
+ * optional SubscriptionType type = 3;
11540
+ * @return {!proto.lansweeper.multitenant.v1.SubscriptionType}
11541
+ */
11542
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getType = function() {
11543
+ return /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11544
+ };
11545
+
11546
+
11547
+ /**
11548
+ * @param {!proto.lansweeper.multitenant.v1.SubscriptionType} value
11549
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11550
+ */
11551
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setType = function(value) {
11552
+ return jspb.Message.setProto3EnumField(this, 3, value);
11553
+ };
11554
+
11555
+
11556
+ /**
11557
+ * optional int32 assets_limit = 4;
11558
+ * @return {number}
11559
+ */
11560
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getAssetsLimit = function() {
11561
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11562
+ };
11563
+
11564
+
11565
+ /**
11566
+ * @param {number} value
11567
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11568
+ */
11569
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setAssetsLimit = function(value) {
11570
+ return jspb.Message.setProto3IntField(this, 4, value);
11571
+ };
11572
+
11573
+
11574
+ /**
11575
+ * optional string expiration_date = 5;
11576
+ * @return {string}
11577
+ */
11578
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getExpirationDate = function() {
11579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11580
+ };
11581
+
11582
+
11583
+ /**
11584
+ * @param {string} value
11585
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11586
+ */
11587
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setExpirationDate = function(value) {
11588
+ return jspb.Message.setProto3StringField(this, 5, value);
11589
+ };
11590
+
11591
+
11592
+ /**
11593
+ * optional string created_at = 6;
11594
+ * @return {string}
11595
+ */
11596
+ proto.lansweeper.multitenant.v1.Subscription.prototype.getCreatedAt = function() {
11597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11598
+ };
11599
+
11600
+
11601
+ /**
11602
+ * @param {string} value
11603
+ * @return {!proto.lansweeper.multitenant.v1.Subscription} returns this
11604
+ */
11605
+ proto.lansweeper.multitenant.v1.Subscription.prototype.setCreatedAt = function(value) {
11606
+ return jspb.Message.setProto3StringField(this, 6, value);
11607
+ };
11608
+
11609
+
11610
+
11611
+
11612
+
11613
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11614
+ /**
11615
+ * Creates an object representation of this proto.
11616
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11617
+ * Optional fields that are not set will be set to undefined.
11618
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11619
+ * For the list of reserved names please see:
11620
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11621
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11622
+ * JSPB instance for transitional soy proto support:
11623
+ * http://goto/soy-param-migration
11624
+ * @return {!Object}
11625
+ */
11626
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.toObject = function(opt_includeInstance) {
11627
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.toObject(opt_includeInstance, this);
11628
+ };
11629
+
11630
+
11631
+ /**
11632
+ * Static version of the {@see toObject} method.
11633
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11634
+ * the JSPB instance for transitional soy proto support:
11635
+ * http://goto/soy-param-migration
11636
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} msg The msg instance to transform.
11637
+ * @return {!Object}
11638
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11639
+ */
11640
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.toObject = function(includeInstance, msg) {
11641
+ var f, obj = {
11642
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
11643
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
11644
+ assetsLimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
11645
+ expirationDate: jspb.Message.getFieldWithDefault(msg, 4, "")
11646
+ };
11647
+
11648
+ if (includeInstance) {
11649
+ obj.$jspbMessageInstance = msg;
11650
+ }
11651
+ return obj;
11652
+ };
11653
+ }
11654
+
11655
+
11656
+ /**
11657
+ * Deserializes binary data (in protobuf wire format).
11658
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11659
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest}
11660
+ */
11661
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinary = function(bytes) {
11662
+ var reader = new jspb.BinaryReader(bytes);
11663
+ var msg = new proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest;
11664
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinaryFromReader(msg, reader);
11665
+ };
11666
+
11667
+
11668
+ /**
11669
+ * Deserializes binary data (in protobuf wire format) from the
11670
+ * given reader into the given message object.
11671
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} msg The message object to deserialize into.
11672
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11673
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest}
11674
+ */
11675
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.deserializeBinaryFromReader = function(msg, reader) {
11676
+ while (reader.nextField()) {
11677
+ if (reader.isEndGroup()) {
11678
+ break;
11679
+ }
11680
+ var field = reader.getFieldNumber();
11681
+ switch (field) {
11682
+ case 1:
11683
+ var value = /** @type {string} */ (reader.readString());
11684
+ msg.setSiteId(value);
11685
+ break;
11686
+ case 2:
11687
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (reader.readEnum());
11688
+ msg.setType(value);
11689
+ break;
11690
+ case 3:
11691
+ var value = /** @type {number} */ (reader.readInt32());
11692
+ msg.setAssetsLimit(value);
11693
+ break;
11694
+ case 4:
11695
+ var value = /** @type {string} */ (reader.readString());
11696
+ msg.setExpirationDate(value);
11697
+ break;
11698
+ default:
11699
+ reader.skipField();
11700
+ break;
11701
+ }
11702
+ }
11703
+ return msg;
11704
+ };
11705
+
11706
+
11707
+ /**
11708
+ * Serializes the message to binary data (in protobuf wire format).
11709
+ * @return {!Uint8Array}
11710
+ */
11711
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.serializeBinary = function() {
11712
+ var writer = new jspb.BinaryWriter();
11713
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.serializeBinaryToWriter(this, writer);
11714
+ return writer.getResultBuffer();
11715
+ };
11716
+
11717
+
11718
+ /**
11719
+ * Serializes the given message to binary data (in protobuf wire
11720
+ * format), writing to the given BinaryWriter.
11721
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} message
11722
+ * @param {!jspb.BinaryWriter} writer
11723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11724
+ */
11725
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.serializeBinaryToWriter = function(message, writer) {
11726
+ var f = undefined;
11727
+ f = message.getSiteId();
11728
+ if (f.length > 0) {
11729
+ writer.writeString(
11730
+ 1,
11731
+ f
11732
+ );
11733
+ }
11734
+ f = message.getType();
11735
+ if (f !== 0.0) {
11736
+ writer.writeEnum(
11737
+ 2,
11738
+ f
11739
+ );
11740
+ }
11741
+ f = message.getAssetsLimit();
11742
+ if (f !== 0) {
11743
+ writer.writeInt32(
11744
+ 3,
11745
+ f
11746
+ );
11747
+ }
11748
+ f = message.getExpirationDate();
11749
+ if (f.length > 0) {
11750
+ writer.writeString(
11751
+ 4,
11752
+ f
11753
+ );
11754
+ }
11755
+ };
11756
+
11757
+
11758
+ /**
11759
+ * optional string site_id = 1;
11760
+ * @return {string}
11761
+ */
11762
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getSiteId = function() {
11763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11764
+ };
11765
+
11766
+
11767
+ /**
11768
+ * @param {string} value
11769
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11770
+ */
11771
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setSiteId = function(value) {
11772
+ return jspb.Message.setProto3StringField(this, 1, value);
11773
+ };
11774
+
11775
+
11776
+ /**
11777
+ * optional SubscriptionType type = 2;
11778
+ * @return {!proto.lansweeper.multitenant.v1.SubscriptionType}
11779
+ */
11780
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getType = function() {
11781
+ return /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11782
+ };
11783
+
11784
+
11785
+ /**
11786
+ * @param {!proto.lansweeper.multitenant.v1.SubscriptionType} value
11787
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11788
+ */
11789
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setType = function(value) {
11790
+ return jspb.Message.setProto3EnumField(this, 2, value);
11791
+ };
11792
+
11793
+
11794
+ /**
11795
+ * optional int32 assets_limit = 3;
11796
+ * @return {number}
11797
+ */
11798
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getAssetsLimit = function() {
11799
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11800
+ };
11801
+
11802
+
11803
+ /**
11804
+ * @param {number} value
11805
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11806
+ */
11807
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setAssetsLimit = function(value) {
11808
+ return jspb.Message.setProto3IntField(this, 3, value);
11809
+ };
11810
+
11811
+
11812
+ /**
11813
+ * optional string expiration_date = 4;
11814
+ * @return {string}
11815
+ */
11816
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.getExpirationDate = function() {
11817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11818
+ };
11819
+
11820
+
11821
+ /**
11822
+ * @param {string} value
11823
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest} returns this
11824
+ */
11825
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionRequest.prototype.setExpirationDate = function(value) {
11826
+ return jspb.Message.setProto3StringField(this, 4, value);
11827
+ };
11828
+
11829
+
11830
+
11831
+
11832
+
11833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11834
+ /**
11835
+ * Creates an object representation of this proto.
11836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11837
+ * Optional fields that are not set will be set to undefined.
11838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11839
+ * For the list of reserved names please see:
11840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11842
+ * JSPB instance for transitional soy proto support:
11843
+ * http://goto/soy-param-migration
11844
+ * @return {!Object}
11845
+ */
11846
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.toObject = function(opt_includeInstance) {
11847
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.toObject(opt_includeInstance, this);
11848
+ };
11849
+
11850
+
11851
+ /**
11852
+ * Static version of the {@see toObject} method.
11853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11854
+ * the JSPB instance for transitional soy proto support:
11855
+ * http://goto/soy-param-migration
11856
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} msg The msg instance to transform.
11857
+ * @return {!Object}
11858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11859
+ */
11860
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.toObject = function(includeInstance, msg) {
11861
+ var f, obj = {
11862
+ subscription: (f = msg.getSubscription()) && proto.lansweeper.multitenant.v1.Subscription.toObject(includeInstance, f)
11863
+ };
11864
+
11865
+ if (includeInstance) {
11866
+ obj.$jspbMessageInstance = msg;
11867
+ }
11868
+ return obj;
11869
+ };
11870
+ }
11871
+
11872
+
11873
+ /**
11874
+ * Deserializes binary data (in protobuf wire format).
11875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11876
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse}
11877
+ */
11878
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinary = function(bytes) {
11879
+ var reader = new jspb.BinaryReader(bytes);
11880
+ var msg = new proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse;
11881
+ return proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinaryFromReader(msg, reader);
11882
+ };
11883
+
11884
+
11885
+ /**
11886
+ * Deserializes binary data (in protobuf wire format) from the
11887
+ * given reader into the given message object.
11888
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} msg The message object to deserialize into.
11889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11890
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse}
11891
+ */
11892
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.deserializeBinaryFromReader = function(msg, reader) {
11893
+ while (reader.nextField()) {
11894
+ if (reader.isEndGroup()) {
11895
+ break;
11896
+ }
11897
+ var field = reader.getFieldNumber();
11898
+ switch (field) {
11899
+ case 1:
11900
+ var value = new proto.lansweeper.multitenant.v1.Subscription;
11901
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.Subscription.deserializeBinaryFromReader);
11902
+ msg.setSubscription(value);
11903
+ break;
11904
+ default:
11905
+ reader.skipField();
11906
+ break;
11907
+ }
11908
+ }
11909
+ return msg;
11910
+ };
11911
+
11912
+
11913
+ /**
11914
+ * Serializes the message to binary data (in protobuf wire format).
11915
+ * @return {!Uint8Array}
11916
+ */
11917
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.serializeBinary = function() {
11918
+ var writer = new jspb.BinaryWriter();
11919
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.serializeBinaryToWriter(this, writer);
11920
+ return writer.getResultBuffer();
11921
+ };
11922
+
11923
+
11924
+ /**
11925
+ * Serializes the given message to binary data (in protobuf wire
11926
+ * format), writing to the given BinaryWriter.
11927
+ * @param {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} message
11928
+ * @param {!jspb.BinaryWriter} writer
11929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11930
+ */
11931
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.serializeBinaryToWriter = function(message, writer) {
11932
+ var f = undefined;
11933
+ f = message.getSubscription();
11934
+ if (f != null) {
11935
+ writer.writeMessage(
11936
+ 1,
11937
+ f,
11938
+ proto.lansweeper.multitenant.v1.Subscription.serializeBinaryToWriter
11939
+ );
11940
+ }
11941
+ };
11942
+
11943
+
11944
+ /**
11945
+ * optional Subscription subscription = 1;
11946
+ * @return {?proto.lansweeper.multitenant.v1.Subscription}
11947
+ */
11948
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.getSubscription = function() {
11949
+ return /** @type{?proto.lansweeper.multitenant.v1.Subscription} */ (
11950
+ jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.Subscription, 1));
11951
+ };
11952
+
11953
+
11954
+ /**
11955
+ * @param {?proto.lansweeper.multitenant.v1.Subscription|undefined} value
11956
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} returns this
11957
+ */
11958
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.setSubscription = function(value) {
11959
+ return jspb.Message.setWrapperField(this, 1, value);
11960
+ };
11961
+
11962
+
11963
+ /**
11964
+ * Clears the message field making it undefined.
11965
+ * @return {!proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse} returns this
11966
+ */
11967
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.clearSubscription = function() {
11968
+ return this.setSubscription(undefined);
11969
+ };
11970
+
11971
+
11972
+ /**
11973
+ * Returns whether this field is set.
11974
+ * @return {boolean}
11975
+ */
11976
+ proto.lansweeper.multitenant.v1.UpdateSiteSubscriptionResponse.prototype.hasSubscription = function() {
11977
+ return jspb.Message.getField(this, 1) != null;
11978
+ };
11979
+
11980
+
11981
+ /**
11982
+ * @enum {number}
11983
+ */
11984
+ proto.lansweeper.multitenant.v1.SiteMode = {
11985
+ UNESPECIFIED: 0,
11986
+ CLOUD_NATIVE: 1,
11987
+ DEMO: 2,
11988
+ HYBRID: 3,
11989
+ DUAL: 4
11990
+ };
11991
+
11992
+ /**
11993
+ * @enum {number}
11994
+ */
11995
+ proto.lansweeper.multitenant.v1.InstallStateValue = {
11996
+ INSTALL_STATE_VALUE_UNESPECIFIED: 0,
11997
+ INSTALL_STATE_VALUE_SYNC: 1,
11998
+ INSTALL_STATE_VALUE_UNSYNC: 2
11999
+ };
12000
+
12001
+ /**
12002
+ * @enum {number}
12003
+ */
12004
+ proto.lansweeper.multitenant.v1.InstallType = {
12005
+ IT: 0,
12006
+ OT: 1
12007
+ };
12008
+
12009
+ /**
12010
+ * @enum {number}
12011
+ */
12012
+ proto.lansweeper.multitenant.v1.SubscriptionType = {
12013
+ SUBSCRIPTION_TYPE_VALUE_UNESPECIFIED: 0,
12014
+ SUBSCRIPTION_TYPE_VALUE_TRIAL: 1,
12015
+ SUBSCRIPTION_TYPE_VALUE_FREEWARE: 2,
12016
+ SUBSCRIPTION_TYPE_VALUE_STARTER: 3,
12017
+ SUBSCRIPTION_TYPE_VALUE_PRO: 4,
12018
+ SUBSCRIPTION_TYPE_VALUE_ENTERPRISE: 5
11289
12019
  };
11290
12020
 
11291
12021
  goog.object.extend(exports, proto.lansweeper.multitenant.v1);