@lansweeper/multitenant-api-grpc 0.4.22 → 0.4.24

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.
@@ -17,6 +17,8 @@ var global = Function('return this')();
17
17
 
18
18
  goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfileExistsRequest', null, global);
19
19
  goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfileExistsResponse', null, global);
20
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfilesExistRequest', null, global);
21
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfilesExistResponse', null, global);
20
22
  goog.exportSymbol('proto.lansweeper.multitenant.v1.AuthorizedSitesRequest', null, global);
21
23
  goog.exportSymbol('proto.lansweeper.multitenant.v1.AuthorizedSitesResponse', null, global);
22
24
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest', null, global);
@@ -50,6 +52,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest
50
52
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', null, global);
51
53
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
52
54
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
55
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest', null, global);
56
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse', null, global);
53
57
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsRequest', null, global);
54
58
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse', null, global);
55
59
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction', null, global);
@@ -1582,6 +1586,90 @@ if (goog.DEBUG && !COMPILED) {
1582
1586
  */
1583
1587
  proto.lansweeper.multitenant.v1.AllProfileExistsResponse.displayName = 'proto.lansweeper.multitenant.v1.AllProfileExistsResponse';
1584
1588
  }
1589
+ /**
1590
+ * Generated by JsPbCodeGenerator.
1591
+ * @param {Array=} opt_data Optional initial data array, typically from a
1592
+ * server response, or constructed directly in Javascript. The array is used
1593
+ * in place and becomes part of the constructed object. It is not cloned.
1594
+ * If no data is provided, the constructed object will be empty, but still
1595
+ * valid.
1596
+ * @extends {jspb.Message}
1597
+ * @constructor
1598
+ */
1599
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest = function(opt_data) {
1600
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.AllProfilesExistRequest.repeatedFields_, null);
1601
+ };
1602
+ goog.inherits(proto.lansweeper.multitenant.v1.AllProfilesExistRequest, jspb.Message);
1603
+ if (goog.DEBUG && !COMPILED) {
1604
+ /**
1605
+ * @public
1606
+ * @override
1607
+ */
1608
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.displayName = 'proto.lansweeper.multitenant.v1.AllProfilesExistRequest';
1609
+ }
1610
+ /**
1611
+ * Generated by JsPbCodeGenerator.
1612
+ * @param {Array=} opt_data Optional initial data array, typically from a
1613
+ * server response, or constructed directly in Javascript. The array is used
1614
+ * in place and becomes part of the constructed object. It is not cloned.
1615
+ * If no data is provided, the constructed object will be empty, but still
1616
+ * valid.
1617
+ * @extends {jspb.Message}
1618
+ * @constructor
1619
+ */
1620
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse = function(opt_data) {
1621
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1622
+ };
1623
+ goog.inherits(proto.lansweeper.multitenant.v1.AllProfilesExistResponse, jspb.Message);
1624
+ if (goog.DEBUG && !COMPILED) {
1625
+ /**
1626
+ * @public
1627
+ * @override
1628
+ */
1629
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.displayName = 'proto.lansweeper.multitenant.v1.AllProfilesExistResponse';
1630
+ }
1631
+ /**
1632
+ * Generated by JsPbCodeGenerator.
1633
+ * @param {Array=} opt_data Optional initial data array, typically from a
1634
+ * server response, or constructed directly in Javascript. The array is used
1635
+ * in place and becomes part of the constructed object. It is not cloned.
1636
+ * If no data is provided, the constructed object will be empty, but still
1637
+ * valid.
1638
+ * @extends {jspb.Message}
1639
+ * @constructor
1640
+ */
1641
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest = function(opt_data) {
1642
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1643
+ };
1644
+ goog.inherits(proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest, jspb.Message);
1645
+ if (goog.DEBUG && !COMPILED) {
1646
+ /**
1647
+ * @public
1648
+ * @override
1649
+ */
1650
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.displayName = 'proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest';
1651
+ }
1652
+ /**
1653
+ * Generated by JsPbCodeGenerator.
1654
+ * @param {Array=} opt_data Optional initial data array, typically from a
1655
+ * server response, or constructed directly in Javascript. The array is used
1656
+ * in place and becomes part of the constructed object. It is not cloned.
1657
+ * If no data is provided, the constructed object will be empty, but still
1658
+ * valid.
1659
+ * @extends {jspb.Message}
1660
+ * @constructor
1661
+ */
1662
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse = function(opt_data) {
1663
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1664
+ };
1665
+ goog.inherits(proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse, jspb.Message);
1666
+ if (goog.DEBUG && !COMPILED) {
1667
+ /**
1668
+ * @public
1669
+ * @override
1670
+ */
1671
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse';
1672
+ }
1585
1673
 
1586
1674
 
1587
1675
 
@@ -14836,6 +14924,582 @@ proto.lansweeper.multitenant.v1.AllProfileExistsResponse.prototype.setAll = func
14836
14924
  };
14837
14925
 
14838
14926
 
14927
+
14928
+ /**
14929
+ * List of repeated fields within this message type.
14930
+ * @private {!Array<number>}
14931
+ * @const
14932
+ */
14933
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.repeatedFields_ = [2];
14934
+
14935
+
14936
+
14937
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14938
+ /**
14939
+ * Creates an object representation of this proto.
14940
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14941
+ * Optional fields that are not set will be set to undefined.
14942
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14943
+ * For the list of reserved names please see:
14944
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14945
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14946
+ * JSPB instance for transitional soy proto support:
14947
+ * http://goto/soy-param-migration
14948
+ * @return {!Object}
14949
+ */
14950
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.toObject = function(opt_includeInstance) {
14951
+ return proto.lansweeper.multitenant.v1.AllProfilesExistRequest.toObject(opt_includeInstance, this);
14952
+ };
14953
+
14954
+
14955
+ /**
14956
+ * Static version of the {@see toObject} method.
14957
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14958
+ * the JSPB instance for transitional soy proto support:
14959
+ * http://goto/soy-param-migration
14960
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} msg The msg instance to transform.
14961
+ * @return {!Object}
14962
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14963
+ */
14964
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.toObject = function(includeInstance, msg) {
14965
+ var f, obj = {
14966
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
14967
+ emailsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
14968
+ };
14969
+
14970
+ if (includeInstance) {
14971
+ obj.$jspbMessageInstance = msg;
14972
+ }
14973
+ return obj;
14974
+ };
14975
+ }
14976
+
14977
+
14978
+ /**
14979
+ * Deserializes binary data (in protobuf wire format).
14980
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14981
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest}
14982
+ */
14983
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.deserializeBinary = function(bytes) {
14984
+ var reader = new jspb.BinaryReader(bytes);
14985
+ var msg = new proto.lansweeper.multitenant.v1.AllProfilesExistRequest;
14986
+ return proto.lansweeper.multitenant.v1.AllProfilesExistRequest.deserializeBinaryFromReader(msg, reader);
14987
+ };
14988
+
14989
+
14990
+ /**
14991
+ * Deserializes binary data (in protobuf wire format) from the
14992
+ * given reader into the given message object.
14993
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} msg The message object to deserialize into.
14994
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14995
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest}
14996
+ */
14997
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.deserializeBinaryFromReader = function(msg, reader) {
14998
+ while (reader.nextField()) {
14999
+ if (reader.isEndGroup()) {
15000
+ break;
15001
+ }
15002
+ var field = reader.getFieldNumber();
15003
+ switch (field) {
15004
+ case 1:
15005
+ var value = /** @type {string} */ (reader.readString());
15006
+ msg.setSiteId(value);
15007
+ break;
15008
+ case 2:
15009
+ var value = /** @type {string} */ (reader.readString());
15010
+ msg.addEmails(value);
15011
+ break;
15012
+ default:
15013
+ reader.skipField();
15014
+ break;
15015
+ }
15016
+ }
15017
+ return msg;
15018
+ };
15019
+
15020
+
15021
+ /**
15022
+ * Serializes the message to binary data (in protobuf wire format).
15023
+ * @return {!Uint8Array}
15024
+ */
15025
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.serializeBinary = function() {
15026
+ var writer = new jspb.BinaryWriter();
15027
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.serializeBinaryToWriter(this, writer);
15028
+ return writer.getResultBuffer();
15029
+ };
15030
+
15031
+
15032
+ /**
15033
+ * Serializes the given message to binary data (in protobuf wire
15034
+ * format), writing to the given BinaryWriter.
15035
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} message
15036
+ * @param {!jspb.BinaryWriter} writer
15037
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15038
+ */
15039
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.serializeBinaryToWriter = function(message, writer) {
15040
+ var f = undefined;
15041
+ f = message.getSiteId();
15042
+ if (f.length > 0) {
15043
+ writer.writeString(
15044
+ 1,
15045
+ f
15046
+ );
15047
+ }
15048
+ f = message.getEmailsList();
15049
+ if (f.length > 0) {
15050
+ writer.writeRepeatedString(
15051
+ 2,
15052
+ f
15053
+ );
15054
+ }
15055
+ };
15056
+
15057
+
15058
+ /**
15059
+ * optional string site_id = 1;
15060
+ * @return {string}
15061
+ */
15062
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.getSiteId = function() {
15063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15064
+ };
15065
+
15066
+
15067
+ /**
15068
+ * @param {string} value
15069
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} returns this
15070
+ */
15071
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.setSiteId = function(value) {
15072
+ return jspb.Message.setProto3StringField(this, 1, value);
15073
+ };
15074
+
15075
+
15076
+ /**
15077
+ * repeated string emails = 2;
15078
+ * @return {!Array<string>}
15079
+ */
15080
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.getEmailsList = function() {
15081
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
15082
+ };
15083
+
15084
+
15085
+ /**
15086
+ * @param {!Array<string>} value
15087
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} returns this
15088
+ */
15089
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.setEmailsList = function(value) {
15090
+ return jspb.Message.setField(this, 2, value || []);
15091
+ };
15092
+
15093
+
15094
+ /**
15095
+ * @param {string} value
15096
+ * @param {number=} opt_index
15097
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} returns this
15098
+ */
15099
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.addEmails = function(value, opt_index) {
15100
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
15101
+ };
15102
+
15103
+
15104
+ /**
15105
+ * Clears the list making it empty but non-null.
15106
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistRequest} returns this
15107
+ */
15108
+ proto.lansweeper.multitenant.v1.AllProfilesExistRequest.prototype.clearEmailsList = function() {
15109
+ return this.setEmailsList([]);
15110
+ };
15111
+
15112
+
15113
+
15114
+
15115
+
15116
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15117
+ /**
15118
+ * Creates an object representation of this proto.
15119
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15120
+ * Optional fields that are not set will be set to undefined.
15121
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15122
+ * For the list of reserved names please see:
15123
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15124
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15125
+ * JSPB instance for transitional soy proto support:
15126
+ * http://goto/soy-param-migration
15127
+ * @return {!Object}
15128
+ */
15129
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.prototype.toObject = function(opt_includeInstance) {
15130
+ return proto.lansweeper.multitenant.v1.AllProfilesExistResponse.toObject(opt_includeInstance, this);
15131
+ };
15132
+
15133
+
15134
+ /**
15135
+ * Static version of the {@see toObject} method.
15136
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15137
+ * the JSPB instance for transitional soy proto support:
15138
+ * http://goto/soy-param-migration
15139
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse} msg The msg instance to transform.
15140
+ * @return {!Object}
15141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15142
+ */
15143
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.toObject = function(includeInstance, msg) {
15144
+ var f, obj = {
15145
+ all: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
15146
+ };
15147
+
15148
+ if (includeInstance) {
15149
+ obj.$jspbMessageInstance = msg;
15150
+ }
15151
+ return obj;
15152
+ };
15153
+ }
15154
+
15155
+
15156
+ /**
15157
+ * Deserializes binary data (in protobuf wire format).
15158
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15159
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse}
15160
+ */
15161
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.deserializeBinary = function(bytes) {
15162
+ var reader = new jspb.BinaryReader(bytes);
15163
+ var msg = new proto.lansweeper.multitenant.v1.AllProfilesExistResponse;
15164
+ return proto.lansweeper.multitenant.v1.AllProfilesExistResponse.deserializeBinaryFromReader(msg, reader);
15165
+ };
15166
+
15167
+
15168
+ /**
15169
+ * Deserializes binary data (in protobuf wire format) from the
15170
+ * given reader into the given message object.
15171
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse} msg The message object to deserialize into.
15172
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15173
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse}
15174
+ */
15175
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.deserializeBinaryFromReader = function(msg, reader) {
15176
+ while (reader.nextField()) {
15177
+ if (reader.isEndGroup()) {
15178
+ break;
15179
+ }
15180
+ var field = reader.getFieldNumber();
15181
+ switch (field) {
15182
+ case 1:
15183
+ var value = /** @type {boolean} */ (reader.readBool());
15184
+ msg.setAll(value);
15185
+ break;
15186
+ default:
15187
+ reader.skipField();
15188
+ break;
15189
+ }
15190
+ }
15191
+ return msg;
15192
+ };
15193
+
15194
+
15195
+ /**
15196
+ * Serializes the message to binary data (in protobuf wire format).
15197
+ * @return {!Uint8Array}
15198
+ */
15199
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.prototype.serializeBinary = function() {
15200
+ var writer = new jspb.BinaryWriter();
15201
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.serializeBinaryToWriter(this, writer);
15202
+ return writer.getResultBuffer();
15203
+ };
15204
+
15205
+
15206
+ /**
15207
+ * Serializes the given message to binary data (in protobuf wire
15208
+ * format), writing to the given BinaryWriter.
15209
+ * @param {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse} message
15210
+ * @param {!jspb.BinaryWriter} writer
15211
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15212
+ */
15213
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.serializeBinaryToWriter = function(message, writer) {
15214
+ var f = undefined;
15215
+ f = message.getAll();
15216
+ if (f) {
15217
+ writer.writeBool(
15218
+ 1,
15219
+ f
15220
+ );
15221
+ }
15222
+ };
15223
+
15224
+
15225
+ /**
15226
+ * optional bool all = 1;
15227
+ * @return {boolean}
15228
+ */
15229
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.prototype.getAll = function() {
15230
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
15231
+ };
15232
+
15233
+
15234
+ /**
15235
+ * @param {boolean} value
15236
+ * @return {!proto.lansweeper.multitenant.v1.AllProfilesExistResponse} returns this
15237
+ */
15238
+ proto.lansweeper.multitenant.v1.AllProfilesExistResponse.prototype.setAll = function(value) {
15239
+ return jspb.Message.setProto3BooleanField(this, 1, value);
15240
+ };
15241
+
15242
+
15243
+
15244
+
15245
+
15246
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15247
+ /**
15248
+ * Creates an object representation of this proto.
15249
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15250
+ * Optional fields that are not set will be set to undefined.
15251
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15252
+ * For the list of reserved names please see:
15253
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15254
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15255
+ * JSPB instance for transitional soy proto support:
15256
+ * http://goto/soy-param-migration
15257
+ * @return {!Object}
15258
+ */
15259
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.prototype.toObject = function(opt_includeInstance) {
15260
+ return proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.toObject(opt_includeInstance, this);
15261
+ };
15262
+
15263
+
15264
+ /**
15265
+ * Static version of the {@see toObject} method.
15266
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15267
+ * the JSPB instance for transitional soy proto support:
15268
+ * http://goto/soy-param-migration
15269
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest} msg The msg instance to transform.
15270
+ * @return {!Object}
15271
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15272
+ */
15273
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.toObject = function(includeInstance, msg) {
15274
+ var f, obj = {
15275
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, "")
15276
+ };
15277
+
15278
+ if (includeInstance) {
15279
+ obj.$jspbMessageInstance = msg;
15280
+ }
15281
+ return obj;
15282
+ };
15283
+ }
15284
+
15285
+
15286
+ /**
15287
+ * Deserializes binary data (in protobuf wire format).
15288
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15289
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest}
15290
+ */
15291
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.deserializeBinary = function(bytes) {
15292
+ var reader = new jspb.BinaryReader(bytes);
15293
+ var msg = new proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest;
15294
+ return proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.deserializeBinaryFromReader(msg, reader);
15295
+ };
15296
+
15297
+
15298
+ /**
15299
+ * Deserializes binary data (in protobuf wire format) from the
15300
+ * given reader into the given message object.
15301
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest} msg The message object to deserialize into.
15302
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15303
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest}
15304
+ */
15305
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.deserializeBinaryFromReader = function(msg, reader) {
15306
+ while (reader.nextField()) {
15307
+ if (reader.isEndGroup()) {
15308
+ break;
15309
+ }
15310
+ var field = reader.getFieldNumber();
15311
+ switch (field) {
15312
+ case 1:
15313
+ var value = /** @type {string} */ (reader.readString());
15314
+ msg.setSiteId(value);
15315
+ break;
15316
+ default:
15317
+ reader.skipField();
15318
+ break;
15319
+ }
15320
+ }
15321
+ return msg;
15322
+ };
15323
+
15324
+
15325
+ /**
15326
+ * Serializes the message to binary data (in protobuf wire format).
15327
+ * @return {!Uint8Array}
15328
+ */
15329
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.prototype.serializeBinary = function() {
15330
+ var writer = new jspb.BinaryWriter();
15331
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.serializeBinaryToWriter(this, writer);
15332
+ return writer.getResultBuffer();
15333
+ };
15334
+
15335
+
15336
+ /**
15337
+ * Serializes the given message to binary data (in protobuf wire
15338
+ * format), writing to the given BinaryWriter.
15339
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest} message
15340
+ * @param {!jspb.BinaryWriter} writer
15341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15342
+ */
15343
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.serializeBinaryToWriter = function(message, writer) {
15344
+ var f = undefined;
15345
+ f = message.getSiteId();
15346
+ if (f.length > 0) {
15347
+ writer.writeString(
15348
+ 1,
15349
+ f
15350
+ );
15351
+ }
15352
+ };
15353
+
15354
+
15355
+ /**
15356
+ * optional string site_id = 1;
15357
+ * @return {string}
15358
+ */
15359
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.prototype.getSiteId = function() {
15360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15361
+ };
15362
+
15363
+
15364
+ /**
15365
+ * @param {string} value
15366
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest} returns this
15367
+ */
15368
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest.prototype.setSiteId = function(value) {
15369
+ return jspb.Message.setProto3StringField(this, 1, value);
15370
+ };
15371
+
15372
+
15373
+
15374
+
15375
+
15376
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15377
+ /**
15378
+ * Creates an object representation of this proto.
15379
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15380
+ * Optional fields that are not set will be set to undefined.
15381
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15382
+ * For the list of reserved names please see:
15383
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15384
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15385
+ * JSPB instance for transitional soy proto support:
15386
+ * http://goto/soy-param-migration
15387
+ * @return {!Object}
15388
+ */
15389
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.prototype.toObject = function(opt_includeInstance) {
15390
+ return proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.toObject(opt_includeInstance, this);
15391
+ };
15392
+
15393
+
15394
+ /**
15395
+ * Static version of the {@see toObject} method.
15396
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15397
+ * the JSPB instance for transitional soy proto support:
15398
+ * http://goto/soy-param-migration
15399
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse} msg The msg instance to transform.
15400
+ * @return {!Object}
15401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15402
+ */
15403
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.toObject = function(includeInstance, msg) {
15404
+ var f, obj = {
15405
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0)
15406
+ };
15407
+
15408
+ if (includeInstance) {
15409
+ obj.$jspbMessageInstance = msg;
15410
+ }
15411
+ return obj;
15412
+ };
15413
+ }
15414
+
15415
+
15416
+ /**
15417
+ * Deserializes binary data (in protobuf wire format).
15418
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15419
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse}
15420
+ */
15421
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.deserializeBinary = function(bytes) {
15422
+ var reader = new jspb.BinaryReader(bytes);
15423
+ var msg = new proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse;
15424
+ return proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.deserializeBinaryFromReader(msg, reader);
15425
+ };
15426
+
15427
+
15428
+ /**
15429
+ * Deserializes binary data (in protobuf wire format) from the
15430
+ * given reader into the given message object.
15431
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse} msg The message object to deserialize into.
15432
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15433
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse}
15434
+ */
15435
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.deserializeBinaryFromReader = function(msg, reader) {
15436
+ while (reader.nextField()) {
15437
+ if (reader.isEndGroup()) {
15438
+ break;
15439
+ }
15440
+ var field = reader.getFieldNumber();
15441
+ switch (field) {
15442
+ case 1:
15443
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (reader.readEnum());
15444
+ msg.setType(value);
15445
+ break;
15446
+ default:
15447
+ reader.skipField();
15448
+ break;
15449
+ }
15450
+ }
15451
+ return msg;
15452
+ };
15453
+
15454
+
15455
+ /**
15456
+ * Serializes the message to binary data (in protobuf wire format).
15457
+ * @return {!Uint8Array}
15458
+ */
15459
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.prototype.serializeBinary = function() {
15460
+ var writer = new jspb.BinaryWriter();
15461
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.serializeBinaryToWriter(this, writer);
15462
+ return writer.getResultBuffer();
15463
+ };
15464
+
15465
+
15466
+ /**
15467
+ * Serializes the given message to binary data (in protobuf wire
15468
+ * format), writing to the given BinaryWriter.
15469
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse} message
15470
+ * @param {!jspb.BinaryWriter} writer
15471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15472
+ */
15473
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.serializeBinaryToWriter = function(message, writer) {
15474
+ var f = undefined;
15475
+ f = message.getType();
15476
+ if (f !== 0.0) {
15477
+ writer.writeEnum(
15478
+ 1,
15479
+ f
15480
+ );
15481
+ }
15482
+ };
15483
+
15484
+
15485
+ /**
15486
+ * optional SubscriptionType type = 1;
15487
+ * @return {!proto.lansweeper.multitenant.v1.SubscriptionType}
15488
+ */
15489
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.prototype.getType = function() {
15490
+ return /** @type {!proto.lansweeper.multitenant.v1.SubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15491
+ };
15492
+
15493
+
15494
+ /**
15495
+ * @param {!proto.lansweeper.multitenant.v1.SubscriptionType} value
15496
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse} returns this
15497
+ */
15498
+ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.prototype.setType = function(value) {
15499
+ return jspb.Message.setProto3EnumField(this, 1, value);
15500
+ };
15501
+
15502
+
14839
15503
  /**
14840
15504
  * @enum {number}
14841
15505
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/multitenant-api-grpc",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "description": "Multitenant grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -15,5 +15,5 @@
15
15
  "peerDependencies": {
16
16
  "@grpc/grpc-js": "^1.6.2"
17
17
  },
18
- "gitHead": "887bcba7540511fa6fe88e314cea6fb9833ee53f"
18
+ "gitHead": "d29d2561b2a1edb3592146f448a39ba7e64e48d0"
19
19
  }