@lansweeper/multitenant-api-grpc 0.4.64 → 0.4.65

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.
@@ -81,6 +81,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest'
81
81
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
82
82
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest', null, global);
83
83
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse', null, global);
84
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest', null, global);
85
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse', null, global);
84
86
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData', null, global);
85
87
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsRequest', null, global);
86
88
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsResponse', null, global);
@@ -128,6 +130,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.SendInviteLocalUsersMailReque
128
130
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SendInviteLocalUsersMailResponse', null, global);
129
131
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SetEnabledCustomFieldsFederationRequest', null, global);
130
132
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Site', null, global);
133
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem', null, global);
134
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo', null, global);
131
135
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteMode', null, global);
132
136
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Subscription', null, global);
133
137
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SubscriptionType', null, global);
@@ -2160,6 +2164,90 @@ if (goog.DEBUG && !COMPILED) {
2160
2164
  */
2161
2165
  proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSiteLimitsResponse';
2162
2166
  }
2167
+ /**
2168
+ * Generated by JsPbCodeGenerator.
2169
+ * @param {Array=} opt_data Optional initial data array, typically from a
2170
+ * server response, or constructed directly in Javascript. The array is used
2171
+ * in place and becomes part of the constructed object. It is not cloned.
2172
+ * If no data is provided, the constructed object will be empty, but still
2173
+ * valid.
2174
+ * @extends {jspb.Message}
2175
+ * @constructor
2176
+ */
2177
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest = function(opt_data) {
2178
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2179
+ };
2180
+ goog.inherits(proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest, jspb.Message);
2181
+ if (goog.DEBUG && !COMPILED) {
2182
+ /**
2183
+ * @public
2184
+ * @override
2185
+ */
2186
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.displayName = 'proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest';
2187
+ }
2188
+ /**
2189
+ * Generated by JsPbCodeGenerator.
2190
+ * @param {Array=} opt_data Optional initial data array, typically from a
2191
+ * server response, or constructed directly in Javascript. The array is used
2192
+ * in place and becomes part of the constructed object. It is not cloned.
2193
+ * If no data is provided, the constructed object will be empty, but still
2194
+ * valid.
2195
+ * @extends {jspb.Message}
2196
+ * @constructor
2197
+ */
2198
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem = function(opt_data) {
2199
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2200
+ };
2201
+ goog.inherits(proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem, jspb.Message);
2202
+ if (goog.DEBUG && !COMPILED) {
2203
+ /**
2204
+ * @public
2205
+ * @override
2206
+ */
2207
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.displayName = 'proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem';
2208
+ }
2209
+ /**
2210
+ * Generated by JsPbCodeGenerator.
2211
+ * @param {Array=} opt_data Optional initial data array, typically from a
2212
+ * server response, or constructed directly in Javascript. The array is used
2213
+ * in place and becomes part of the constructed object. It is not cloned.
2214
+ * If no data is provided, the constructed object will be empty, but still
2215
+ * valid.
2216
+ * @extends {jspb.Message}
2217
+ * @constructor
2218
+ */
2219
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo = function(opt_data) {
2220
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2221
+ };
2222
+ goog.inherits(proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo, jspb.Message);
2223
+ if (goog.DEBUG && !COMPILED) {
2224
+ /**
2225
+ * @public
2226
+ * @override
2227
+ */
2228
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.displayName = 'proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo';
2229
+ }
2230
+ /**
2231
+ * Generated by JsPbCodeGenerator.
2232
+ * @param {Array=} opt_data Optional initial data array, typically from a
2233
+ * server response, or constructed directly in Javascript. The array is used
2234
+ * in place and becomes part of the constructed object. It is not cloned.
2235
+ * If no data is provided, the constructed object will be empty, but still
2236
+ * valid.
2237
+ * @extends {jspb.Message}
2238
+ * @constructor
2239
+ */
2240
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse = function(opt_data) {
2241
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.repeatedFields_, null);
2242
+ };
2243
+ goog.inherits(proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse, jspb.Message);
2244
+ if (goog.DEBUG && !COMPILED) {
2245
+ /**
2246
+ * @public
2247
+ * @override
2248
+ */
2249
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse';
2250
+ }
2163
2251
  /**
2164
2252
  * Generated by JsPbCodeGenerator.
2165
2253
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -19962,6 +20050,853 @@ proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.prototype.clearSiteLimitsM
19962
20050
 
19963
20051
 
19964
20052
 
20053
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20054
+ /**
20055
+ * Creates an object representation of this proto.
20056
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20057
+ * Optional fields that are not set will be set to undefined.
20058
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20059
+ * For the list of reserved names please see:
20060
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20061
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20062
+ * JSPB instance for transitional soy proto support:
20063
+ * http://goto/soy-param-migration
20064
+ * @return {!Object}
20065
+ */
20066
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.toObject = function(opt_includeInstance) {
20067
+ return proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.toObject(opt_includeInstance, this);
20068
+ };
20069
+
20070
+
20071
+ /**
20072
+ * Static version of the {@see toObject} method.
20073
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20074
+ * the JSPB instance for transitional soy proto support:
20075
+ * http://goto/soy-param-migration
20076
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} msg The msg instance to transform.
20077
+ * @return {!Object}
20078
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20079
+ */
20080
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.toObject = function(includeInstance, msg) {
20081
+ var f, obj = {
20082
+ offsetId: jspb.Message.getFieldWithDefault(msg, 1, ""),
20083
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
20084
+ };
20085
+
20086
+ if (includeInstance) {
20087
+ obj.$jspbMessageInstance = msg;
20088
+ }
20089
+ return obj;
20090
+ };
20091
+ }
20092
+
20093
+
20094
+ /**
20095
+ * Deserializes binary data (in protobuf wire format).
20096
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20097
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest}
20098
+ */
20099
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.deserializeBinary = function(bytes) {
20100
+ var reader = new jspb.BinaryReader(bytes);
20101
+ var msg = new proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest;
20102
+ return proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.deserializeBinaryFromReader(msg, reader);
20103
+ };
20104
+
20105
+
20106
+ /**
20107
+ * Deserializes binary data (in protobuf wire format) from the
20108
+ * given reader into the given message object.
20109
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} msg The message object to deserialize into.
20110
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20111
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest}
20112
+ */
20113
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
20114
+ while (reader.nextField()) {
20115
+ if (reader.isEndGroup()) {
20116
+ break;
20117
+ }
20118
+ var field = reader.getFieldNumber();
20119
+ switch (field) {
20120
+ case 1:
20121
+ var value = /** @type {string} */ (reader.readString());
20122
+ msg.setOffsetId(value);
20123
+ break;
20124
+ case 2:
20125
+ var value = /** @type {number} */ (reader.readInt32());
20126
+ msg.setLimit(value);
20127
+ break;
20128
+ default:
20129
+ reader.skipField();
20130
+ break;
20131
+ }
20132
+ }
20133
+ return msg;
20134
+ };
20135
+
20136
+
20137
+ /**
20138
+ * Serializes the message to binary data (in protobuf wire format).
20139
+ * @return {!Uint8Array}
20140
+ */
20141
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.serializeBinary = function() {
20142
+ var writer = new jspb.BinaryWriter();
20143
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.serializeBinaryToWriter(this, writer);
20144
+ return writer.getResultBuffer();
20145
+ };
20146
+
20147
+
20148
+ /**
20149
+ * Serializes the given message to binary data (in protobuf wire
20150
+ * format), writing to the given BinaryWriter.
20151
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} message
20152
+ * @param {!jspb.BinaryWriter} writer
20153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20154
+ */
20155
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.serializeBinaryToWriter = function(message, writer) {
20156
+ var f = undefined;
20157
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
20158
+ if (f != null) {
20159
+ writer.writeString(
20160
+ 1,
20161
+ f
20162
+ );
20163
+ }
20164
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
20165
+ if (f != null) {
20166
+ writer.writeInt32(
20167
+ 2,
20168
+ f
20169
+ );
20170
+ }
20171
+ };
20172
+
20173
+
20174
+ /**
20175
+ * optional string offset_id = 1;
20176
+ * @return {string}
20177
+ */
20178
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.getOffsetId = function() {
20179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
20180
+ };
20181
+
20182
+
20183
+ /**
20184
+ * @param {string} value
20185
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} returns this
20186
+ */
20187
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.setOffsetId = function(value) {
20188
+ return jspb.Message.setField(this, 1, value);
20189
+ };
20190
+
20191
+
20192
+ /**
20193
+ * Clears the field making it undefined.
20194
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} returns this
20195
+ */
20196
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.clearOffsetId = function() {
20197
+ return jspb.Message.setField(this, 1, undefined);
20198
+ };
20199
+
20200
+
20201
+ /**
20202
+ * Returns whether this field is set.
20203
+ * @return {boolean}
20204
+ */
20205
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.hasOffsetId = function() {
20206
+ return jspb.Message.getField(this, 1) != null;
20207
+ };
20208
+
20209
+
20210
+ /**
20211
+ * optional int32 limit = 2;
20212
+ * @return {number}
20213
+ */
20214
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.getLimit = function() {
20215
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20216
+ };
20217
+
20218
+
20219
+ /**
20220
+ * @param {number} value
20221
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} returns this
20222
+ */
20223
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.setLimit = function(value) {
20224
+ return jspb.Message.setField(this, 2, value);
20225
+ };
20226
+
20227
+
20228
+ /**
20229
+ * Clears the field making it undefined.
20230
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest} returns this
20231
+ */
20232
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.clearLimit = function() {
20233
+ return jspb.Message.setField(this, 2, undefined);
20234
+ };
20235
+
20236
+
20237
+ /**
20238
+ * Returns whether this field is set.
20239
+ * @return {boolean}
20240
+ */
20241
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsRequest.prototype.hasLimit = function() {
20242
+ return jspb.Message.getField(this, 2) != null;
20243
+ };
20244
+
20245
+
20246
+
20247
+
20248
+
20249
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20250
+ /**
20251
+ * Creates an object representation of this proto.
20252
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20253
+ * Optional fields that are not set will be set to undefined.
20254
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20255
+ * For the list of reserved names please see:
20256
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20257
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20258
+ * JSPB instance for transitional soy proto support:
20259
+ * http://goto/soy-param-migration
20260
+ * @return {!Object}
20261
+ */
20262
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.toObject = function(opt_includeInstance) {
20263
+ return proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.toObject(opt_includeInstance, this);
20264
+ };
20265
+
20266
+
20267
+ /**
20268
+ * Static version of the {@see toObject} method.
20269
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20270
+ * the JSPB instance for transitional soy proto support:
20271
+ * http://goto/soy-param-migration
20272
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} msg The msg instance to transform.
20273
+ * @return {!Object}
20274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20275
+ */
20276
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.toObject = function(includeInstance, msg) {
20277
+ var f, obj = {
20278
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
20279
+ parentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
20280
+ parentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
20281
+ isCustomerAccount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
20282
+ };
20283
+
20284
+ if (includeInstance) {
20285
+ obj.$jspbMessageInstance = msg;
20286
+ }
20287
+ return obj;
20288
+ };
20289
+ }
20290
+
20291
+
20292
+ /**
20293
+ * Deserializes binary data (in protobuf wire format).
20294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20295
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem}
20296
+ */
20297
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinary = function(bytes) {
20298
+ var reader = new jspb.BinaryReader(bytes);
20299
+ var msg = new proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem;
20300
+ return proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinaryFromReader(msg, reader);
20301
+ };
20302
+
20303
+
20304
+ /**
20305
+ * Deserializes binary data (in protobuf wire format) from the
20306
+ * given reader into the given message object.
20307
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} msg The message object to deserialize into.
20308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20309
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem}
20310
+ */
20311
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinaryFromReader = function(msg, reader) {
20312
+ while (reader.nextField()) {
20313
+ if (reader.isEndGroup()) {
20314
+ break;
20315
+ }
20316
+ var field = reader.getFieldNumber();
20317
+ switch (field) {
20318
+ case 1:
20319
+ var value = /** @type {string} */ (reader.readString());
20320
+ msg.setSiteId(value);
20321
+ break;
20322
+ case 2:
20323
+ var value = /** @type {string} */ (reader.readString());
20324
+ msg.setParentType(value);
20325
+ break;
20326
+ case 3:
20327
+ var value = /** @type {string} */ (reader.readString());
20328
+ msg.setParentId(value);
20329
+ break;
20330
+ case 4:
20331
+ var value = /** @type {boolean} */ (reader.readBool());
20332
+ msg.setIsCustomerAccount(value);
20333
+ break;
20334
+ default:
20335
+ reader.skipField();
20336
+ break;
20337
+ }
20338
+ }
20339
+ return msg;
20340
+ };
20341
+
20342
+
20343
+ /**
20344
+ * Serializes the message to binary data (in protobuf wire format).
20345
+ * @return {!Uint8Array}
20346
+ */
20347
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.serializeBinary = function() {
20348
+ var writer = new jspb.BinaryWriter();
20349
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter(this, writer);
20350
+ return writer.getResultBuffer();
20351
+ };
20352
+
20353
+
20354
+ /**
20355
+ * Serializes the given message to binary data (in protobuf wire
20356
+ * format), writing to the given BinaryWriter.
20357
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} message
20358
+ * @param {!jspb.BinaryWriter} writer
20359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20360
+ */
20361
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter = function(message, writer) {
20362
+ var f = undefined;
20363
+ f = message.getSiteId();
20364
+ if (f.length > 0) {
20365
+ writer.writeString(
20366
+ 1,
20367
+ f
20368
+ );
20369
+ }
20370
+ f = message.getParentType();
20371
+ if (f.length > 0) {
20372
+ writer.writeString(
20373
+ 2,
20374
+ f
20375
+ );
20376
+ }
20377
+ f = message.getParentId();
20378
+ if (f.length > 0) {
20379
+ writer.writeString(
20380
+ 3,
20381
+ f
20382
+ );
20383
+ }
20384
+ f = message.getIsCustomerAccount();
20385
+ if (f) {
20386
+ writer.writeBool(
20387
+ 4,
20388
+ f
20389
+ );
20390
+ }
20391
+ };
20392
+
20393
+
20394
+ /**
20395
+ * optional string site_id = 1;
20396
+ * @return {string}
20397
+ */
20398
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getSiteId = function() {
20399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
20400
+ };
20401
+
20402
+
20403
+ /**
20404
+ * @param {string} value
20405
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20406
+ */
20407
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setSiteId = function(value) {
20408
+ return jspb.Message.setProto3StringField(this, 1, value);
20409
+ };
20410
+
20411
+
20412
+ /**
20413
+ * optional string parent_type = 2;
20414
+ * @return {string}
20415
+ */
20416
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getParentType = function() {
20417
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20418
+ };
20419
+
20420
+
20421
+ /**
20422
+ * @param {string} value
20423
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20424
+ */
20425
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setParentType = function(value) {
20426
+ return jspb.Message.setProto3StringField(this, 2, value);
20427
+ };
20428
+
20429
+
20430
+ /**
20431
+ * optional string parent_id = 3;
20432
+ * @return {string}
20433
+ */
20434
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getParentId = function() {
20435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20436
+ };
20437
+
20438
+
20439
+ /**
20440
+ * @param {string} value
20441
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20442
+ */
20443
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setParentId = function(value) {
20444
+ return jspb.Message.setProto3StringField(this, 3, value);
20445
+ };
20446
+
20447
+
20448
+ /**
20449
+ * optional bool is_customer_account = 4;
20450
+ * @return {boolean}
20451
+ */
20452
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getIsCustomerAccount = function() {
20453
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
20454
+ };
20455
+
20456
+
20457
+ /**
20458
+ * @param {boolean} value
20459
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20460
+ */
20461
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setIsCustomerAccount = function(value) {
20462
+ return jspb.Message.setProto3BooleanField(this, 4, value);
20463
+ };
20464
+
20465
+
20466
+
20467
+
20468
+
20469
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20470
+ /**
20471
+ * Creates an object representation of this proto.
20472
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20473
+ * Optional fields that are not set will be set to undefined.
20474
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20475
+ * For the list of reserved names please see:
20476
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20477
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20478
+ * JSPB instance for transitional soy proto support:
20479
+ * http://goto/soy-param-migration
20480
+ * @return {!Object}
20481
+ */
20482
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.toObject = function(opt_includeInstance) {
20483
+ return proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.toObject(opt_includeInstance, this);
20484
+ };
20485
+
20486
+
20487
+ /**
20488
+ * Static version of the {@see toObject} method.
20489
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20490
+ * the JSPB instance for transitional soy proto support:
20491
+ * http://goto/soy-param-migration
20492
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} msg The msg instance to transform.
20493
+ * @return {!Object}
20494
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20495
+ */
20496
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.toObject = function(includeInstance, msg) {
20497
+ var f, obj = {
20498
+ offsetId: jspb.Message.getFieldWithDefault(msg, 1, ""),
20499
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
20500
+ hasNextPage: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
20501
+ };
20502
+
20503
+ if (includeInstance) {
20504
+ obj.$jspbMessageInstance = msg;
20505
+ }
20506
+ return obj;
20507
+ };
20508
+ }
20509
+
20510
+
20511
+ /**
20512
+ * Deserializes binary data (in protobuf wire format).
20513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20514
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo}
20515
+ */
20516
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.deserializeBinary = function(bytes) {
20517
+ var reader = new jspb.BinaryReader(bytes);
20518
+ var msg = new proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo;
20519
+ return proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.deserializeBinaryFromReader(msg, reader);
20520
+ };
20521
+
20522
+
20523
+ /**
20524
+ * Deserializes binary data (in protobuf wire format) from the
20525
+ * given reader into the given message object.
20526
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} msg The message object to deserialize into.
20527
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20528
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo}
20529
+ */
20530
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.deserializeBinaryFromReader = function(msg, reader) {
20531
+ while (reader.nextField()) {
20532
+ if (reader.isEndGroup()) {
20533
+ break;
20534
+ }
20535
+ var field = reader.getFieldNumber();
20536
+ switch (field) {
20537
+ case 1:
20538
+ var value = /** @type {string} */ (reader.readString());
20539
+ msg.setOffsetId(value);
20540
+ break;
20541
+ case 2:
20542
+ var value = /** @type {number} */ (reader.readInt32());
20543
+ msg.setLimit(value);
20544
+ break;
20545
+ case 3:
20546
+ var value = /** @type {boolean} */ (reader.readBool());
20547
+ msg.setHasNextPage(value);
20548
+ break;
20549
+ default:
20550
+ reader.skipField();
20551
+ break;
20552
+ }
20553
+ }
20554
+ return msg;
20555
+ };
20556
+
20557
+
20558
+ /**
20559
+ * Serializes the message to binary data (in protobuf wire format).
20560
+ * @return {!Uint8Array}
20561
+ */
20562
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.serializeBinary = function() {
20563
+ var writer = new jspb.BinaryWriter();
20564
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.serializeBinaryToWriter(this, writer);
20565
+ return writer.getResultBuffer();
20566
+ };
20567
+
20568
+
20569
+ /**
20570
+ * Serializes the given message to binary data (in protobuf wire
20571
+ * format), writing to the given BinaryWriter.
20572
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} message
20573
+ * @param {!jspb.BinaryWriter} writer
20574
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20575
+ */
20576
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.serializeBinaryToWriter = function(message, writer) {
20577
+ var f = undefined;
20578
+ f = message.getOffsetId();
20579
+ if (f.length > 0) {
20580
+ writer.writeString(
20581
+ 1,
20582
+ f
20583
+ );
20584
+ }
20585
+ f = message.getLimit();
20586
+ if (f !== 0) {
20587
+ writer.writeInt32(
20588
+ 2,
20589
+ f
20590
+ );
20591
+ }
20592
+ f = message.getHasNextPage();
20593
+ if (f) {
20594
+ writer.writeBool(
20595
+ 3,
20596
+ f
20597
+ );
20598
+ }
20599
+ };
20600
+
20601
+
20602
+ /**
20603
+ * optional string offset_id = 1;
20604
+ * @return {string}
20605
+ */
20606
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.getOffsetId = function() {
20607
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
20608
+ };
20609
+
20610
+
20611
+ /**
20612
+ * @param {string} value
20613
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} returns this
20614
+ */
20615
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.setOffsetId = function(value) {
20616
+ return jspb.Message.setProto3StringField(this, 1, value);
20617
+ };
20618
+
20619
+
20620
+ /**
20621
+ * optional int32 limit = 2;
20622
+ * @return {number}
20623
+ */
20624
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.getLimit = function() {
20625
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20626
+ };
20627
+
20628
+
20629
+ /**
20630
+ * @param {number} value
20631
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} returns this
20632
+ */
20633
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.setLimit = function(value) {
20634
+ return jspb.Message.setProto3IntField(this, 2, value);
20635
+ };
20636
+
20637
+
20638
+ /**
20639
+ * optional bool has_next_page = 3;
20640
+ * @return {boolean}
20641
+ */
20642
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.getHasNextPage = function() {
20643
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
20644
+ };
20645
+
20646
+
20647
+ /**
20648
+ * @param {boolean} value
20649
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} returns this
20650
+ */
20651
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.prototype.setHasNextPage = function(value) {
20652
+ return jspb.Message.setProto3BooleanField(this, 3, value);
20653
+ };
20654
+
20655
+
20656
+
20657
+ /**
20658
+ * List of repeated fields within this message type.
20659
+ * @private {!Array<number>}
20660
+ * @const
20661
+ */
20662
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.repeatedFields_ = [2];
20663
+
20664
+
20665
+
20666
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20667
+ /**
20668
+ * Creates an object representation of this proto.
20669
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20670
+ * Optional fields that are not set will be set to undefined.
20671
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20672
+ * For the list of reserved names please see:
20673
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20674
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20675
+ * JSPB instance for transitional soy proto support:
20676
+ * http://goto/soy-param-migration
20677
+ * @return {!Object}
20678
+ */
20679
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.toObject = function(opt_includeInstance) {
20680
+ return proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.toObject(opt_includeInstance, this);
20681
+ };
20682
+
20683
+
20684
+ /**
20685
+ * Static version of the {@see toObject} method.
20686
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20687
+ * the JSPB instance for transitional soy proto support:
20688
+ * http://goto/soy-param-migration
20689
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} msg The msg instance to transform.
20690
+ * @return {!Object}
20691
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20692
+ */
20693
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.toObject = function(includeInstance, msg) {
20694
+ var f, obj = {
20695
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0),
20696
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
20697
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.toObject, includeInstance),
20698
+ pageInfo: (f = msg.getPageInfo()) && proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.toObject(includeInstance, f)
20699
+ };
20700
+
20701
+ if (includeInstance) {
20702
+ obj.$jspbMessageInstance = msg;
20703
+ }
20704
+ return obj;
20705
+ };
20706
+ }
20707
+
20708
+
20709
+ /**
20710
+ * Deserializes binary data (in protobuf wire format).
20711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20712
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse}
20713
+ */
20714
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.deserializeBinary = function(bytes) {
20715
+ var reader = new jspb.BinaryReader(bytes);
20716
+ var msg = new proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse;
20717
+ return proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.deserializeBinaryFromReader(msg, reader);
20718
+ };
20719
+
20720
+
20721
+ /**
20722
+ * Deserializes binary data (in protobuf wire format) from the
20723
+ * given reader into the given message object.
20724
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} msg The message object to deserialize into.
20725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20726
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse}
20727
+ */
20728
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
20729
+ while (reader.nextField()) {
20730
+ if (reader.isEndGroup()) {
20731
+ break;
20732
+ }
20733
+ var field = reader.getFieldNumber();
20734
+ switch (field) {
20735
+ case 1:
20736
+ var value = /** @type {number} */ (reader.readInt32());
20737
+ msg.setCount(value);
20738
+ break;
20739
+ case 2:
20740
+ var value = new proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem;
20741
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinaryFromReader);
20742
+ msg.addItems(value);
20743
+ break;
20744
+ case 3:
20745
+ var value = new proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo;
20746
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.deserializeBinaryFromReader);
20747
+ msg.setPageInfo(value);
20748
+ break;
20749
+ default:
20750
+ reader.skipField();
20751
+ break;
20752
+ }
20753
+ }
20754
+ return msg;
20755
+ };
20756
+
20757
+
20758
+ /**
20759
+ * Serializes the message to binary data (in protobuf wire format).
20760
+ * @return {!Uint8Array}
20761
+ */
20762
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.serializeBinary = function() {
20763
+ var writer = new jspb.BinaryWriter();
20764
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.serializeBinaryToWriter(this, writer);
20765
+ return writer.getResultBuffer();
20766
+ };
20767
+
20768
+
20769
+ /**
20770
+ * Serializes the given message to binary data (in protobuf wire
20771
+ * format), writing to the given BinaryWriter.
20772
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} message
20773
+ * @param {!jspb.BinaryWriter} writer
20774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20775
+ */
20776
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.serializeBinaryToWriter = function(message, writer) {
20777
+ var f = undefined;
20778
+ f = message.getCount();
20779
+ if (f !== 0) {
20780
+ writer.writeInt32(
20781
+ 1,
20782
+ f
20783
+ );
20784
+ }
20785
+ f = message.getItemsList();
20786
+ if (f.length > 0) {
20787
+ writer.writeRepeatedMessage(
20788
+ 2,
20789
+ f,
20790
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter
20791
+ );
20792
+ }
20793
+ f = message.getPageInfo();
20794
+ if (f != null) {
20795
+ writer.writeMessage(
20796
+ 3,
20797
+ f,
20798
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo.serializeBinaryToWriter
20799
+ );
20800
+ }
20801
+ };
20802
+
20803
+
20804
+ /**
20805
+ * optional int32 count = 1;
20806
+ * @return {number}
20807
+ */
20808
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.getCount = function() {
20809
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20810
+ };
20811
+
20812
+
20813
+ /**
20814
+ * @param {number} value
20815
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} returns this
20816
+ */
20817
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.setCount = function(value) {
20818
+ return jspb.Message.setProto3IntField(this, 1, value);
20819
+ };
20820
+
20821
+
20822
+ /**
20823
+ * repeated SiteHierarchyIdsItem items = 2;
20824
+ * @return {!Array<!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem>}
20825
+ */
20826
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.getItemsList = function() {
20827
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem>} */ (
20828
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem, 2));
20829
+ };
20830
+
20831
+
20832
+ /**
20833
+ * @param {!Array<!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem>} value
20834
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} returns this
20835
+ */
20836
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.setItemsList = function(value) {
20837
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
20838
+ };
20839
+
20840
+
20841
+ /**
20842
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem=} opt_value
20843
+ * @param {number=} opt_index
20844
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem}
20845
+ */
20846
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.addItems = function(opt_value, opt_index) {
20847
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem, opt_index);
20848
+ };
20849
+
20850
+
20851
+ /**
20852
+ * Clears the list making it empty but non-null.
20853
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} returns this
20854
+ */
20855
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.clearItemsList = function() {
20856
+ return this.setItemsList([]);
20857
+ };
20858
+
20859
+
20860
+ /**
20861
+ * optional SiteHierarchyIdsPageInfo page_info = 3;
20862
+ * @return {?proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo}
20863
+ */
20864
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.getPageInfo = function() {
20865
+ return /** @type{?proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo} */ (
20866
+ jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo, 3));
20867
+ };
20868
+
20869
+
20870
+ /**
20871
+ * @param {?proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo|undefined} value
20872
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} returns this
20873
+ */
20874
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.setPageInfo = function(value) {
20875
+ return jspb.Message.setWrapperField(this, 3, value);
20876
+ };
20877
+
20878
+
20879
+ /**
20880
+ * Clears the message field making it undefined.
20881
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse} returns this
20882
+ */
20883
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.clearPageInfo = function() {
20884
+ return this.setPageInfo(undefined);
20885
+ };
20886
+
20887
+
20888
+ /**
20889
+ * Returns whether this field is set.
20890
+ * @return {boolean}
20891
+ */
20892
+ proto.lansweeper.multitenant.v1.GetSiteHierarchyIdsResponse.prototype.hasPageInfo = function() {
20893
+ return jspb.Message.getField(this, 3) != null;
20894
+ };
20895
+
20896
+
20897
+
20898
+
20899
+
19965
20900
  if (jspb.Message.GENERATE_TO_OBJECT) {
19966
20901
  /**
19967
20902
  * Creates an object representation of this proto.