@lansweeper/data-platform-outbound-grpc 0.1.61 → 0.1.62

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.
@@ -123,6 +123,9 @@ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.SoundCard', null, global)
123
123
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.SpecHardwareInfo', null, global);
124
124
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.Tag', null, global);
125
125
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.TrustedPlatformModule', null, global);
126
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.UserAccount', null, global);
127
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.UserGroup', null, global);
128
+ goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.UserInGroup', null, global);
126
129
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsBios', null, global);
127
130
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsComputerBattery', null, global);
128
131
  goog.exportSymbol('proto.com.lansweeper.dp.outbound.v1.WindowsMappedDrive', null, global);
@@ -532,6 +535,69 @@ if (goog.DEBUG && !COMPILED) {
532
535
  */
533
536
  proto.com.lansweeper.dp.outbound.v1.LastUser.displayName = 'proto.com.lansweeper.dp.outbound.v1.LastUser';
534
537
  }
538
+ /**
539
+ * Generated by JsPbCodeGenerator.
540
+ * @param {Array=} opt_data Optional initial data array, typically from a
541
+ * server response, or constructed directly in Javascript. The array is used
542
+ * in place and becomes part of the constructed object. It is not cloned.
543
+ * If no data is provided, the constructed object will be empty, but still
544
+ * valid.
545
+ * @extends {jspb.Message}
546
+ * @constructor
547
+ */
548
+ proto.com.lansweeper.dp.outbound.v1.UserAccount = function(opt_data) {
549
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
550
+ };
551
+ goog.inherits(proto.com.lansweeper.dp.outbound.v1.UserAccount, jspb.Message);
552
+ if (goog.DEBUG && !COMPILED) {
553
+ /**
554
+ * @public
555
+ * @override
556
+ */
557
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.displayName = 'proto.com.lansweeper.dp.outbound.v1.UserAccount';
558
+ }
559
+ /**
560
+ * Generated by JsPbCodeGenerator.
561
+ * @param {Array=} opt_data Optional initial data array, typically from a
562
+ * server response, or constructed directly in Javascript. The array is used
563
+ * in place and becomes part of the constructed object. It is not cloned.
564
+ * If no data is provided, the constructed object will be empty, but still
565
+ * valid.
566
+ * @extends {jspb.Message}
567
+ * @constructor
568
+ */
569
+ proto.com.lansweeper.dp.outbound.v1.UserGroup = function(opt_data) {
570
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
571
+ };
572
+ goog.inherits(proto.com.lansweeper.dp.outbound.v1.UserGroup, jspb.Message);
573
+ if (goog.DEBUG && !COMPILED) {
574
+ /**
575
+ * @public
576
+ * @override
577
+ */
578
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.displayName = 'proto.com.lansweeper.dp.outbound.v1.UserGroup';
579
+ }
580
+ /**
581
+ * Generated by JsPbCodeGenerator.
582
+ * @param {Array=} opt_data Optional initial data array, typically from a
583
+ * server response, or constructed directly in Javascript. The array is used
584
+ * in place and becomes part of the constructed object. It is not cloned.
585
+ * If no data is provided, the constructed object will be empty, but still
586
+ * valid.
587
+ * @extends {jspb.Message}
588
+ * @constructor
589
+ */
590
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup = function(opt_data) {
591
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
592
+ };
593
+ goog.inherits(proto.com.lansweeper.dp.outbound.v1.UserInGroup, jspb.Message);
594
+ if (goog.DEBUG && !COMPILED) {
595
+ /**
596
+ * @public
597
+ * @override
598
+ */
599
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.displayName = 'proto.com.lansweeper.dp.outbound.v1.UserInGroup';
600
+ }
535
601
  /**
536
602
  * Generated by JsPbCodeGenerator.
537
603
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4321,7 +4387,7 @@ proto.com.lansweeper.dp.outbound.v1.Entity.prototype.hasAsset = function() {
4321
4387
  * @private {!Array<number>}
4322
4388
  * @const
4323
4389
  */
4324
- proto.com.lansweeper.dp.outbound.v1.Asset.repeatedFields_ = [33,14,20,26,13,37,43,15,45,53,24,25,38,40,27,30,28,29,47,48,50,51,52,54,55,57,58,59,60,61,62,63,64,65,66,67,68,34,36,41,44];
4390
+ proto.com.lansweeper.dp.outbound.v1.Asset.repeatedFields_ = [33,14,20,26,13,37,43,15,45,53,24,25,38,40,27,30,28,29,47,48,50,51,52,54,55,57,58,59,60,61,62,63,64,65,66,67,68,34,36,41,44,69,70,71];
4325
4391
 
4326
4392
 
4327
4393
 
@@ -4459,6 +4525,12 @@ proto.com.lansweeper.dp.outbound.v1.Asset.toObject = function(includeInstance, m
4459
4525
  sharedResourceList: jspb.Message.toObjectList(msg.getSharedResourceList(),
4460
4526
  proto.com.lansweeper.dp.outbound.v1.SharedResource.toObject, includeInstance),
4461
4527
  lastUser: (f = msg.getLastUser()) && proto.com.lansweeper.dp.outbound.v1.LastUser.toObject(includeInstance, f),
4528
+ userList: jspb.Message.toObjectList(msg.getUserList(),
4529
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.toObject, includeInstance),
4530
+ userGroupList: jspb.Message.toObjectList(msg.getUserGroupList(),
4531
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.toObject, includeInstance),
4532
+ userInGroupList: jspb.Message.toObjectList(msg.getUserInGroupList(),
4533
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.toObject, includeInstance),
4462
4534
  otModule: (f = msg.getOtModule()) && proto.com.lansweeper.dp.outbound.v1.OtModule.toObject(includeInstance, f),
4463
4535
  cloud: (f = msg.getCloud()) && proto.com.lansweeper.dp.outbound.v1.CloudEntity.toObject(includeInstance, f)
4464
4536
  };
@@ -4814,6 +4886,21 @@ proto.com.lansweeper.dp.outbound.v1.Asset.deserializeBinaryFromReader = function
4814
4886
  reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.LastUser.deserializeBinaryFromReader);
4815
4887
  msg.setLastUser(value);
4816
4888
  break;
4889
+ case 69:
4890
+ var value = new proto.com.lansweeper.dp.outbound.v1.UserAccount;
4891
+ reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.UserAccount.deserializeBinaryFromReader);
4892
+ msg.addUser(value);
4893
+ break;
4894
+ case 70:
4895
+ var value = new proto.com.lansweeper.dp.outbound.v1.UserGroup;
4896
+ reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.UserGroup.deserializeBinaryFromReader);
4897
+ msg.addUserGroup(value);
4898
+ break;
4899
+ case 71:
4900
+ var value = new proto.com.lansweeper.dp.outbound.v1.UserInGroup;
4901
+ reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.UserInGroup.deserializeBinaryFromReader);
4902
+ msg.addUserInGroup(value);
4903
+ break;
4817
4904
  case 16:
4818
4905
  var value = new proto.com.lansweeper.dp.outbound.v1.OtModule;
4819
4906
  reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.OtModule.deserializeBinaryFromReader);
@@ -5362,6 +5449,30 @@ proto.com.lansweeper.dp.outbound.v1.Asset.serializeBinaryToWriter = function(mes
5362
5449
  proto.com.lansweeper.dp.outbound.v1.LastUser.serializeBinaryToWriter
5363
5450
  );
5364
5451
  }
5452
+ f = message.getUserList();
5453
+ if (f.length > 0) {
5454
+ writer.writeRepeatedMessage(
5455
+ 69,
5456
+ f,
5457
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.serializeBinaryToWriter
5458
+ );
5459
+ }
5460
+ f = message.getUserGroupList();
5461
+ if (f.length > 0) {
5462
+ writer.writeRepeatedMessage(
5463
+ 70,
5464
+ f,
5465
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.serializeBinaryToWriter
5466
+ );
5467
+ }
5468
+ f = message.getUserInGroupList();
5469
+ if (f.length > 0) {
5470
+ writer.writeRepeatedMessage(
5471
+ 71,
5472
+ f,
5473
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.serializeBinaryToWriter
5474
+ );
5475
+ }
5365
5476
  f = message.getOtModule();
5366
5477
  if (f != null) {
5367
5478
  writer.writeMessage(
@@ -7787,6 +7898,120 @@ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.hasLastUser = function() {
7787
7898
  };
7788
7899
 
7789
7900
 
7901
+ /**
7902
+ * repeated UserAccount user = 69;
7903
+ * @return {!Array<!proto.com.lansweeper.dp.outbound.v1.UserAccount>}
7904
+ */
7905
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.getUserList = function() {
7906
+ return /** @type{!Array<!proto.com.lansweeper.dp.outbound.v1.UserAccount>} */ (
7907
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.dp.outbound.v1.UserAccount, 69));
7908
+ };
7909
+
7910
+
7911
+ /**
7912
+ * @param {!Array<!proto.com.lansweeper.dp.outbound.v1.UserAccount>} value
7913
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
7914
+ */
7915
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.setUserList = function(value) {
7916
+ return jspb.Message.setRepeatedWrapperField(this, 69, value);
7917
+ };
7918
+
7919
+
7920
+ /**
7921
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserAccount=} opt_value
7922
+ * @param {number=} opt_index
7923
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount}
7924
+ */
7925
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.addUser = function(opt_value, opt_index) {
7926
+ return jspb.Message.addToRepeatedWrapperField(this, 69, opt_value, proto.com.lansweeper.dp.outbound.v1.UserAccount, opt_index);
7927
+ };
7928
+
7929
+
7930
+ /**
7931
+ * Clears the list making it empty but non-null.
7932
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
7933
+ */
7934
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.clearUserList = function() {
7935
+ return this.setUserList([]);
7936
+ };
7937
+
7938
+
7939
+ /**
7940
+ * repeated UserGroup user_group = 70;
7941
+ * @return {!Array<!proto.com.lansweeper.dp.outbound.v1.UserGroup>}
7942
+ */
7943
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.getUserGroupList = function() {
7944
+ return /** @type{!Array<!proto.com.lansweeper.dp.outbound.v1.UserGroup>} */ (
7945
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.dp.outbound.v1.UserGroup, 70));
7946
+ };
7947
+
7948
+
7949
+ /**
7950
+ * @param {!Array<!proto.com.lansweeper.dp.outbound.v1.UserGroup>} value
7951
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
7952
+ */
7953
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.setUserGroupList = function(value) {
7954
+ return jspb.Message.setRepeatedWrapperField(this, 70, value);
7955
+ };
7956
+
7957
+
7958
+ /**
7959
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserGroup=} opt_value
7960
+ * @param {number=} opt_index
7961
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup}
7962
+ */
7963
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.addUserGroup = function(opt_value, opt_index) {
7964
+ return jspb.Message.addToRepeatedWrapperField(this, 70, opt_value, proto.com.lansweeper.dp.outbound.v1.UserGroup, opt_index);
7965
+ };
7966
+
7967
+
7968
+ /**
7969
+ * Clears the list making it empty but non-null.
7970
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
7971
+ */
7972
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.clearUserGroupList = function() {
7973
+ return this.setUserGroupList([]);
7974
+ };
7975
+
7976
+
7977
+ /**
7978
+ * repeated UserInGroup user_in_group = 71;
7979
+ * @return {!Array<!proto.com.lansweeper.dp.outbound.v1.UserInGroup>}
7980
+ */
7981
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.getUserInGroupList = function() {
7982
+ return /** @type{!Array<!proto.com.lansweeper.dp.outbound.v1.UserInGroup>} */ (
7983
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.dp.outbound.v1.UserInGroup, 71));
7984
+ };
7985
+
7986
+
7987
+ /**
7988
+ * @param {!Array<!proto.com.lansweeper.dp.outbound.v1.UserInGroup>} value
7989
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
7990
+ */
7991
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.setUserInGroupList = function(value) {
7992
+ return jspb.Message.setRepeatedWrapperField(this, 71, value);
7993
+ };
7994
+
7995
+
7996
+ /**
7997
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserInGroup=} opt_value
7998
+ * @param {number=} opt_index
7999
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup}
8000
+ */
8001
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.addUserInGroup = function(opt_value, opt_index) {
8002
+ return jspb.Message.addToRepeatedWrapperField(this, 71, opt_value, proto.com.lansweeper.dp.outbound.v1.UserInGroup, opt_index);
8003
+ };
8004
+
8005
+
8006
+ /**
8007
+ * Clears the list making it empty but non-null.
8008
+ * @return {!proto.com.lansweeper.dp.outbound.v1.Asset} returns this
8009
+ */
8010
+ proto.com.lansweeper.dp.outbound.v1.Asset.prototype.clearUserInGroupList = function() {
8011
+ return this.setUserInGroupList([]);
8012
+ };
8013
+
8014
+
7790
8015
  /**
7791
8016
  * optional OtModule ot_module = 16;
7792
8017
  * @return {?proto.com.lansweeper.dp.outbound.v1.OtModule}
@@ -10868,6 +11093,1848 @@ proto.com.lansweeper.dp.outbound.v1.LastUser.prototype.hasSid = function() {
10868
11093
 
10869
11094
 
10870
11095
 
11096
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11097
+ /**
11098
+ * Creates an object representation of this proto.
11099
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11100
+ * Optional fields that are not set will be set to undefined.
11101
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11102
+ * For the list of reserved names please see:
11103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11105
+ * JSPB instance for transitional soy proto support:
11106
+ * http://goto/soy-param-migration
11107
+ * @return {!Object}
11108
+ */
11109
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.toObject = function(opt_includeInstance) {
11110
+ return proto.com.lansweeper.dp.outbound.v1.UserAccount.toObject(opt_includeInstance, this);
11111
+ };
11112
+
11113
+
11114
+ /**
11115
+ * Static version of the {@see toObject} method.
11116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11117
+ * the JSPB instance for transitional soy proto support:
11118
+ * http://goto/soy-param-migration
11119
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserAccount} msg The msg instance to transform.
11120
+ * @return {!Object}
11121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11122
+ */
11123
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.toObject = function(includeInstance, msg) {
11124
+ var f, obj = {
11125
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
11126
+ domain: jspb.Message.getFieldWithDefault(msg, 2, ""),
11127
+ caption: jspb.Message.getFieldWithDefault(msg, 3, ""),
11128
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
11129
+ fullName: jspb.Message.getFieldWithDefault(msg, 5, ""),
11130
+ accountType: (f = msg.getAccountType()) && proto.com.lansweeper.dp.outbound.v1.MappedValue.toObject(includeInstance, f),
11131
+ sid: jspb.Message.getFieldWithDefault(msg, 7, ""),
11132
+ sidType: (f = msg.getSidType()) && proto.com.lansweeper.dp.outbound.v1.MappedValue.toObject(includeInstance, f),
11133
+ localAccount: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
11134
+ disabled: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
11135
+ lockout: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
11136
+ passwordChangeable: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
11137
+ passwordExpires: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
11138
+ passwordRequired: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
11139
+ status: jspb.Message.getFieldWithDefault(msg, 15, ""),
11140
+ userId: jspb.Message.getFieldWithDefault(msg, 16, 0),
11141
+ groupId: jspb.Message.getFieldWithDefault(msg, 17, 0),
11142
+ homeDirectory: jspb.Message.getFieldWithDefault(msg, 18, ""),
11143
+ loginShell: jspb.Message.getFieldWithDefault(msg, 19, "")
11144
+ };
11145
+
11146
+ if (includeInstance) {
11147
+ obj.$jspbMessageInstance = msg;
11148
+ }
11149
+ return obj;
11150
+ };
11151
+ }
11152
+
11153
+
11154
+ /**
11155
+ * Deserializes binary data (in protobuf wire format).
11156
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11157
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount}
11158
+ */
11159
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.deserializeBinary = function(bytes) {
11160
+ var reader = new jspb.BinaryReader(bytes);
11161
+ var msg = new proto.com.lansweeper.dp.outbound.v1.UserAccount;
11162
+ return proto.com.lansweeper.dp.outbound.v1.UserAccount.deserializeBinaryFromReader(msg, reader);
11163
+ };
11164
+
11165
+
11166
+ /**
11167
+ * Deserializes binary data (in protobuf wire format) from the
11168
+ * given reader into the given message object.
11169
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserAccount} msg The message object to deserialize into.
11170
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11171
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount}
11172
+ */
11173
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.deserializeBinaryFromReader = function(msg, reader) {
11174
+ while (reader.nextField()) {
11175
+ if (reader.isEndGroup()) {
11176
+ break;
11177
+ }
11178
+ var field = reader.getFieldNumber();
11179
+ switch (field) {
11180
+ case 1:
11181
+ var value = /** @type {string} */ (reader.readString());
11182
+ msg.setName(value);
11183
+ break;
11184
+ case 2:
11185
+ var value = /** @type {string} */ (reader.readString());
11186
+ msg.setDomain(value);
11187
+ break;
11188
+ case 3:
11189
+ var value = /** @type {string} */ (reader.readString());
11190
+ msg.setCaption(value);
11191
+ break;
11192
+ case 4:
11193
+ var value = /** @type {string} */ (reader.readString());
11194
+ msg.setDescription(value);
11195
+ break;
11196
+ case 5:
11197
+ var value = /** @type {string} */ (reader.readString());
11198
+ msg.setFullName(value);
11199
+ break;
11200
+ case 6:
11201
+ var value = new proto.com.lansweeper.dp.outbound.v1.MappedValue;
11202
+ reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.MappedValue.deserializeBinaryFromReader);
11203
+ msg.setAccountType(value);
11204
+ break;
11205
+ case 7:
11206
+ var value = /** @type {string} */ (reader.readString());
11207
+ msg.setSid(value);
11208
+ break;
11209
+ case 8:
11210
+ var value = new proto.com.lansweeper.dp.outbound.v1.MappedValue;
11211
+ reader.readMessage(value,proto.com.lansweeper.dp.outbound.v1.MappedValue.deserializeBinaryFromReader);
11212
+ msg.setSidType(value);
11213
+ break;
11214
+ case 9:
11215
+ var value = /** @type {boolean} */ (reader.readBool());
11216
+ msg.setLocalAccount(value);
11217
+ break;
11218
+ case 10:
11219
+ var value = /** @type {boolean} */ (reader.readBool());
11220
+ msg.setDisabled(value);
11221
+ break;
11222
+ case 11:
11223
+ var value = /** @type {boolean} */ (reader.readBool());
11224
+ msg.setLockout(value);
11225
+ break;
11226
+ case 12:
11227
+ var value = /** @type {boolean} */ (reader.readBool());
11228
+ msg.setPasswordChangeable(value);
11229
+ break;
11230
+ case 13:
11231
+ var value = /** @type {boolean} */ (reader.readBool());
11232
+ msg.setPasswordExpires(value);
11233
+ break;
11234
+ case 14:
11235
+ var value = /** @type {boolean} */ (reader.readBool());
11236
+ msg.setPasswordRequired(value);
11237
+ break;
11238
+ case 15:
11239
+ var value = /** @type {string} */ (reader.readString());
11240
+ msg.setStatus(value);
11241
+ break;
11242
+ case 16:
11243
+ var value = /** @type {number} */ (reader.readInt32());
11244
+ msg.setUserId(value);
11245
+ break;
11246
+ case 17:
11247
+ var value = /** @type {number} */ (reader.readInt32());
11248
+ msg.setGroupId(value);
11249
+ break;
11250
+ case 18:
11251
+ var value = /** @type {string} */ (reader.readString());
11252
+ msg.setHomeDirectory(value);
11253
+ break;
11254
+ case 19:
11255
+ var value = /** @type {string} */ (reader.readString());
11256
+ msg.setLoginShell(value);
11257
+ break;
11258
+ default:
11259
+ reader.skipField();
11260
+ break;
11261
+ }
11262
+ }
11263
+ return msg;
11264
+ };
11265
+
11266
+
11267
+ /**
11268
+ * Serializes the message to binary data (in protobuf wire format).
11269
+ * @return {!Uint8Array}
11270
+ */
11271
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.serializeBinary = function() {
11272
+ var writer = new jspb.BinaryWriter();
11273
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.serializeBinaryToWriter(this, writer);
11274
+ return writer.getResultBuffer();
11275
+ };
11276
+
11277
+
11278
+ /**
11279
+ * Serializes the given message to binary data (in protobuf wire
11280
+ * format), writing to the given BinaryWriter.
11281
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserAccount} message
11282
+ * @param {!jspb.BinaryWriter} writer
11283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11284
+ */
11285
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.serializeBinaryToWriter = function(message, writer) {
11286
+ var f = undefined;
11287
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
11288
+ if (f != null) {
11289
+ writer.writeString(
11290
+ 1,
11291
+ f
11292
+ );
11293
+ }
11294
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
11295
+ if (f != null) {
11296
+ writer.writeString(
11297
+ 2,
11298
+ f
11299
+ );
11300
+ }
11301
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
11302
+ if (f != null) {
11303
+ writer.writeString(
11304
+ 3,
11305
+ f
11306
+ );
11307
+ }
11308
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
11309
+ if (f != null) {
11310
+ writer.writeString(
11311
+ 4,
11312
+ f
11313
+ );
11314
+ }
11315
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
11316
+ if (f != null) {
11317
+ writer.writeString(
11318
+ 5,
11319
+ f
11320
+ );
11321
+ }
11322
+ f = message.getAccountType();
11323
+ if (f != null) {
11324
+ writer.writeMessage(
11325
+ 6,
11326
+ f,
11327
+ proto.com.lansweeper.dp.outbound.v1.MappedValue.serializeBinaryToWriter
11328
+ );
11329
+ }
11330
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
11331
+ if (f != null) {
11332
+ writer.writeString(
11333
+ 7,
11334
+ f
11335
+ );
11336
+ }
11337
+ f = message.getSidType();
11338
+ if (f != null) {
11339
+ writer.writeMessage(
11340
+ 8,
11341
+ f,
11342
+ proto.com.lansweeper.dp.outbound.v1.MappedValue.serializeBinaryToWriter
11343
+ );
11344
+ }
11345
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 9));
11346
+ if (f != null) {
11347
+ writer.writeBool(
11348
+ 9,
11349
+ f
11350
+ );
11351
+ }
11352
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
11353
+ if (f != null) {
11354
+ writer.writeBool(
11355
+ 10,
11356
+ f
11357
+ );
11358
+ }
11359
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
11360
+ if (f != null) {
11361
+ writer.writeBool(
11362
+ 11,
11363
+ f
11364
+ );
11365
+ }
11366
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
11367
+ if (f != null) {
11368
+ writer.writeBool(
11369
+ 12,
11370
+ f
11371
+ );
11372
+ }
11373
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 13));
11374
+ if (f != null) {
11375
+ writer.writeBool(
11376
+ 13,
11377
+ f
11378
+ );
11379
+ }
11380
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 14));
11381
+ if (f != null) {
11382
+ writer.writeBool(
11383
+ 14,
11384
+ f
11385
+ );
11386
+ }
11387
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
11388
+ if (f != null) {
11389
+ writer.writeString(
11390
+ 15,
11391
+ f
11392
+ );
11393
+ }
11394
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
11395
+ if (f != null) {
11396
+ writer.writeInt32(
11397
+ 16,
11398
+ f
11399
+ );
11400
+ }
11401
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
11402
+ if (f != null) {
11403
+ writer.writeInt32(
11404
+ 17,
11405
+ f
11406
+ );
11407
+ }
11408
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
11409
+ if (f != null) {
11410
+ writer.writeString(
11411
+ 18,
11412
+ f
11413
+ );
11414
+ }
11415
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
11416
+ if (f != null) {
11417
+ writer.writeString(
11418
+ 19,
11419
+ f
11420
+ );
11421
+ }
11422
+ };
11423
+
11424
+
11425
+ /**
11426
+ * optional string name = 1;
11427
+ * @return {string}
11428
+ */
11429
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getName = function() {
11430
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11431
+ };
11432
+
11433
+
11434
+ /**
11435
+ * @param {string} value
11436
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11437
+ */
11438
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setName = function(value) {
11439
+ return jspb.Message.setField(this, 1, value);
11440
+ };
11441
+
11442
+
11443
+ /**
11444
+ * Clears the field making it undefined.
11445
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11446
+ */
11447
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearName = function() {
11448
+ return jspb.Message.setField(this, 1, undefined);
11449
+ };
11450
+
11451
+
11452
+ /**
11453
+ * Returns whether this field is set.
11454
+ * @return {boolean}
11455
+ */
11456
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasName = function() {
11457
+ return jspb.Message.getField(this, 1) != null;
11458
+ };
11459
+
11460
+
11461
+ /**
11462
+ * optional string domain = 2;
11463
+ * @return {string}
11464
+ */
11465
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getDomain = function() {
11466
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11467
+ };
11468
+
11469
+
11470
+ /**
11471
+ * @param {string} value
11472
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11473
+ */
11474
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setDomain = function(value) {
11475
+ return jspb.Message.setField(this, 2, value);
11476
+ };
11477
+
11478
+
11479
+ /**
11480
+ * Clears the field making it undefined.
11481
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11482
+ */
11483
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearDomain = function() {
11484
+ return jspb.Message.setField(this, 2, undefined);
11485
+ };
11486
+
11487
+
11488
+ /**
11489
+ * Returns whether this field is set.
11490
+ * @return {boolean}
11491
+ */
11492
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasDomain = function() {
11493
+ return jspb.Message.getField(this, 2) != null;
11494
+ };
11495
+
11496
+
11497
+ /**
11498
+ * optional string caption = 3;
11499
+ * @return {string}
11500
+ */
11501
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getCaption = function() {
11502
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11503
+ };
11504
+
11505
+
11506
+ /**
11507
+ * @param {string} value
11508
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11509
+ */
11510
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setCaption = function(value) {
11511
+ return jspb.Message.setField(this, 3, value);
11512
+ };
11513
+
11514
+
11515
+ /**
11516
+ * Clears the field making it undefined.
11517
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11518
+ */
11519
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearCaption = function() {
11520
+ return jspb.Message.setField(this, 3, undefined);
11521
+ };
11522
+
11523
+
11524
+ /**
11525
+ * Returns whether this field is set.
11526
+ * @return {boolean}
11527
+ */
11528
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasCaption = function() {
11529
+ return jspb.Message.getField(this, 3) != null;
11530
+ };
11531
+
11532
+
11533
+ /**
11534
+ * optional string description = 4;
11535
+ * @return {string}
11536
+ */
11537
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getDescription = function() {
11538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11539
+ };
11540
+
11541
+
11542
+ /**
11543
+ * @param {string} value
11544
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11545
+ */
11546
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setDescription = function(value) {
11547
+ return jspb.Message.setField(this, 4, value);
11548
+ };
11549
+
11550
+
11551
+ /**
11552
+ * Clears the field making it undefined.
11553
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11554
+ */
11555
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearDescription = function() {
11556
+ return jspb.Message.setField(this, 4, undefined);
11557
+ };
11558
+
11559
+
11560
+ /**
11561
+ * Returns whether this field is set.
11562
+ * @return {boolean}
11563
+ */
11564
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasDescription = function() {
11565
+ return jspb.Message.getField(this, 4) != null;
11566
+ };
11567
+
11568
+
11569
+ /**
11570
+ * optional string full_name = 5;
11571
+ * @return {string}
11572
+ */
11573
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getFullName = function() {
11574
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11575
+ };
11576
+
11577
+
11578
+ /**
11579
+ * @param {string} value
11580
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11581
+ */
11582
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setFullName = function(value) {
11583
+ return jspb.Message.setField(this, 5, value);
11584
+ };
11585
+
11586
+
11587
+ /**
11588
+ * Clears the field making it undefined.
11589
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11590
+ */
11591
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearFullName = function() {
11592
+ return jspb.Message.setField(this, 5, undefined);
11593
+ };
11594
+
11595
+
11596
+ /**
11597
+ * Returns whether this field is set.
11598
+ * @return {boolean}
11599
+ */
11600
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasFullName = function() {
11601
+ return jspb.Message.getField(this, 5) != null;
11602
+ };
11603
+
11604
+
11605
+ /**
11606
+ * optional MappedValue account_type = 6;
11607
+ * @return {?proto.com.lansweeper.dp.outbound.v1.MappedValue}
11608
+ */
11609
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getAccountType = function() {
11610
+ return /** @type{?proto.com.lansweeper.dp.outbound.v1.MappedValue} */ (
11611
+ jspb.Message.getWrapperField(this, proto.com.lansweeper.dp.outbound.v1.MappedValue, 6));
11612
+ };
11613
+
11614
+
11615
+ /**
11616
+ * @param {?proto.com.lansweeper.dp.outbound.v1.MappedValue|undefined} value
11617
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11618
+ */
11619
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setAccountType = function(value) {
11620
+ return jspb.Message.setWrapperField(this, 6, value);
11621
+ };
11622
+
11623
+
11624
+ /**
11625
+ * Clears the message field making it undefined.
11626
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11627
+ */
11628
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearAccountType = function() {
11629
+ return this.setAccountType(undefined);
11630
+ };
11631
+
11632
+
11633
+ /**
11634
+ * Returns whether this field is set.
11635
+ * @return {boolean}
11636
+ */
11637
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasAccountType = function() {
11638
+ return jspb.Message.getField(this, 6) != null;
11639
+ };
11640
+
11641
+
11642
+ /**
11643
+ * optional string sid = 7;
11644
+ * @return {string}
11645
+ */
11646
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getSid = function() {
11647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11648
+ };
11649
+
11650
+
11651
+ /**
11652
+ * @param {string} value
11653
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11654
+ */
11655
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setSid = function(value) {
11656
+ return jspb.Message.setField(this, 7, value);
11657
+ };
11658
+
11659
+
11660
+ /**
11661
+ * Clears the field making it undefined.
11662
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11663
+ */
11664
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearSid = function() {
11665
+ return jspb.Message.setField(this, 7, undefined);
11666
+ };
11667
+
11668
+
11669
+ /**
11670
+ * Returns whether this field is set.
11671
+ * @return {boolean}
11672
+ */
11673
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasSid = function() {
11674
+ return jspb.Message.getField(this, 7) != null;
11675
+ };
11676
+
11677
+
11678
+ /**
11679
+ * optional MappedValue sid_type = 8;
11680
+ * @return {?proto.com.lansweeper.dp.outbound.v1.MappedValue}
11681
+ */
11682
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getSidType = function() {
11683
+ return /** @type{?proto.com.lansweeper.dp.outbound.v1.MappedValue} */ (
11684
+ jspb.Message.getWrapperField(this, proto.com.lansweeper.dp.outbound.v1.MappedValue, 8));
11685
+ };
11686
+
11687
+
11688
+ /**
11689
+ * @param {?proto.com.lansweeper.dp.outbound.v1.MappedValue|undefined} value
11690
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11691
+ */
11692
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setSidType = function(value) {
11693
+ return jspb.Message.setWrapperField(this, 8, value);
11694
+ };
11695
+
11696
+
11697
+ /**
11698
+ * Clears the message field making it undefined.
11699
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11700
+ */
11701
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearSidType = function() {
11702
+ return this.setSidType(undefined);
11703
+ };
11704
+
11705
+
11706
+ /**
11707
+ * Returns whether this field is set.
11708
+ * @return {boolean}
11709
+ */
11710
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasSidType = function() {
11711
+ return jspb.Message.getField(this, 8) != null;
11712
+ };
11713
+
11714
+
11715
+ /**
11716
+ * optional bool local_account = 9;
11717
+ * @return {boolean}
11718
+ */
11719
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getLocalAccount = function() {
11720
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
11721
+ };
11722
+
11723
+
11724
+ /**
11725
+ * @param {boolean} value
11726
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11727
+ */
11728
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setLocalAccount = function(value) {
11729
+ return jspb.Message.setField(this, 9, value);
11730
+ };
11731
+
11732
+
11733
+ /**
11734
+ * Clears the field making it undefined.
11735
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11736
+ */
11737
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearLocalAccount = function() {
11738
+ return jspb.Message.setField(this, 9, undefined);
11739
+ };
11740
+
11741
+
11742
+ /**
11743
+ * Returns whether this field is set.
11744
+ * @return {boolean}
11745
+ */
11746
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasLocalAccount = function() {
11747
+ return jspb.Message.getField(this, 9) != null;
11748
+ };
11749
+
11750
+
11751
+ /**
11752
+ * optional bool disabled = 10;
11753
+ * @return {boolean}
11754
+ */
11755
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getDisabled = function() {
11756
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
11757
+ };
11758
+
11759
+
11760
+ /**
11761
+ * @param {boolean} value
11762
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11763
+ */
11764
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setDisabled = function(value) {
11765
+ return jspb.Message.setField(this, 10, value);
11766
+ };
11767
+
11768
+
11769
+ /**
11770
+ * Clears the field making it undefined.
11771
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11772
+ */
11773
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearDisabled = function() {
11774
+ return jspb.Message.setField(this, 10, undefined);
11775
+ };
11776
+
11777
+
11778
+ /**
11779
+ * Returns whether this field is set.
11780
+ * @return {boolean}
11781
+ */
11782
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasDisabled = function() {
11783
+ return jspb.Message.getField(this, 10) != null;
11784
+ };
11785
+
11786
+
11787
+ /**
11788
+ * optional bool lockout = 11;
11789
+ * @return {boolean}
11790
+ */
11791
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getLockout = function() {
11792
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
11793
+ };
11794
+
11795
+
11796
+ /**
11797
+ * @param {boolean} value
11798
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11799
+ */
11800
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setLockout = function(value) {
11801
+ return jspb.Message.setField(this, 11, value);
11802
+ };
11803
+
11804
+
11805
+ /**
11806
+ * Clears the field making it undefined.
11807
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11808
+ */
11809
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearLockout = function() {
11810
+ return jspb.Message.setField(this, 11, undefined);
11811
+ };
11812
+
11813
+
11814
+ /**
11815
+ * Returns whether this field is set.
11816
+ * @return {boolean}
11817
+ */
11818
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasLockout = function() {
11819
+ return jspb.Message.getField(this, 11) != null;
11820
+ };
11821
+
11822
+
11823
+ /**
11824
+ * optional bool password_changeable = 12;
11825
+ * @return {boolean}
11826
+ */
11827
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getPasswordChangeable = function() {
11828
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
11829
+ };
11830
+
11831
+
11832
+ /**
11833
+ * @param {boolean} value
11834
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11835
+ */
11836
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setPasswordChangeable = function(value) {
11837
+ return jspb.Message.setField(this, 12, value);
11838
+ };
11839
+
11840
+
11841
+ /**
11842
+ * Clears the field making it undefined.
11843
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11844
+ */
11845
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearPasswordChangeable = function() {
11846
+ return jspb.Message.setField(this, 12, undefined);
11847
+ };
11848
+
11849
+
11850
+ /**
11851
+ * Returns whether this field is set.
11852
+ * @return {boolean}
11853
+ */
11854
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasPasswordChangeable = function() {
11855
+ return jspb.Message.getField(this, 12) != null;
11856
+ };
11857
+
11858
+
11859
+ /**
11860
+ * optional bool password_expires = 13;
11861
+ * @return {boolean}
11862
+ */
11863
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getPasswordExpires = function() {
11864
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
11865
+ };
11866
+
11867
+
11868
+ /**
11869
+ * @param {boolean} value
11870
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11871
+ */
11872
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setPasswordExpires = function(value) {
11873
+ return jspb.Message.setField(this, 13, value);
11874
+ };
11875
+
11876
+
11877
+ /**
11878
+ * Clears the field making it undefined.
11879
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11880
+ */
11881
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearPasswordExpires = function() {
11882
+ return jspb.Message.setField(this, 13, undefined);
11883
+ };
11884
+
11885
+
11886
+ /**
11887
+ * Returns whether this field is set.
11888
+ * @return {boolean}
11889
+ */
11890
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasPasswordExpires = function() {
11891
+ return jspb.Message.getField(this, 13) != null;
11892
+ };
11893
+
11894
+
11895
+ /**
11896
+ * optional bool password_required = 14;
11897
+ * @return {boolean}
11898
+ */
11899
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getPasswordRequired = function() {
11900
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
11901
+ };
11902
+
11903
+
11904
+ /**
11905
+ * @param {boolean} value
11906
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11907
+ */
11908
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setPasswordRequired = function(value) {
11909
+ return jspb.Message.setField(this, 14, value);
11910
+ };
11911
+
11912
+
11913
+ /**
11914
+ * Clears the field making it undefined.
11915
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11916
+ */
11917
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearPasswordRequired = function() {
11918
+ return jspb.Message.setField(this, 14, undefined);
11919
+ };
11920
+
11921
+
11922
+ /**
11923
+ * Returns whether this field is set.
11924
+ * @return {boolean}
11925
+ */
11926
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasPasswordRequired = function() {
11927
+ return jspb.Message.getField(this, 14) != null;
11928
+ };
11929
+
11930
+
11931
+ /**
11932
+ * optional string status = 15;
11933
+ * @return {string}
11934
+ */
11935
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getStatus = function() {
11936
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
11937
+ };
11938
+
11939
+
11940
+ /**
11941
+ * @param {string} value
11942
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11943
+ */
11944
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setStatus = function(value) {
11945
+ return jspb.Message.setField(this, 15, value);
11946
+ };
11947
+
11948
+
11949
+ /**
11950
+ * Clears the field making it undefined.
11951
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11952
+ */
11953
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearStatus = function() {
11954
+ return jspb.Message.setField(this, 15, undefined);
11955
+ };
11956
+
11957
+
11958
+ /**
11959
+ * Returns whether this field is set.
11960
+ * @return {boolean}
11961
+ */
11962
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasStatus = function() {
11963
+ return jspb.Message.getField(this, 15) != null;
11964
+ };
11965
+
11966
+
11967
+ /**
11968
+ * optional int32 user_id = 16;
11969
+ * @return {number}
11970
+ */
11971
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getUserId = function() {
11972
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
11973
+ };
11974
+
11975
+
11976
+ /**
11977
+ * @param {number} value
11978
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11979
+ */
11980
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setUserId = function(value) {
11981
+ return jspb.Message.setField(this, 16, value);
11982
+ };
11983
+
11984
+
11985
+ /**
11986
+ * Clears the field making it undefined.
11987
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
11988
+ */
11989
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearUserId = function() {
11990
+ return jspb.Message.setField(this, 16, undefined);
11991
+ };
11992
+
11993
+
11994
+ /**
11995
+ * Returns whether this field is set.
11996
+ * @return {boolean}
11997
+ */
11998
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasUserId = function() {
11999
+ return jspb.Message.getField(this, 16) != null;
12000
+ };
12001
+
12002
+
12003
+ /**
12004
+ * optional int32 group_id = 17;
12005
+ * @return {number}
12006
+ */
12007
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getGroupId = function() {
12008
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
12009
+ };
12010
+
12011
+
12012
+ /**
12013
+ * @param {number} value
12014
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12015
+ */
12016
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setGroupId = function(value) {
12017
+ return jspb.Message.setField(this, 17, value);
12018
+ };
12019
+
12020
+
12021
+ /**
12022
+ * Clears the field making it undefined.
12023
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12024
+ */
12025
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearGroupId = function() {
12026
+ return jspb.Message.setField(this, 17, undefined);
12027
+ };
12028
+
12029
+
12030
+ /**
12031
+ * Returns whether this field is set.
12032
+ * @return {boolean}
12033
+ */
12034
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasGroupId = function() {
12035
+ return jspb.Message.getField(this, 17) != null;
12036
+ };
12037
+
12038
+
12039
+ /**
12040
+ * optional string home_directory = 18;
12041
+ * @return {string}
12042
+ */
12043
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getHomeDirectory = function() {
12044
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
12045
+ };
12046
+
12047
+
12048
+ /**
12049
+ * @param {string} value
12050
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12051
+ */
12052
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setHomeDirectory = function(value) {
12053
+ return jspb.Message.setField(this, 18, value);
12054
+ };
12055
+
12056
+
12057
+ /**
12058
+ * Clears the field making it undefined.
12059
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12060
+ */
12061
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearHomeDirectory = function() {
12062
+ return jspb.Message.setField(this, 18, undefined);
12063
+ };
12064
+
12065
+
12066
+ /**
12067
+ * Returns whether this field is set.
12068
+ * @return {boolean}
12069
+ */
12070
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasHomeDirectory = function() {
12071
+ return jspb.Message.getField(this, 18) != null;
12072
+ };
12073
+
12074
+
12075
+ /**
12076
+ * optional string login_shell = 19;
12077
+ * @return {string}
12078
+ */
12079
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.getLoginShell = function() {
12080
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
12081
+ };
12082
+
12083
+
12084
+ /**
12085
+ * @param {string} value
12086
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12087
+ */
12088
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.setLoginShell = function(value) {
12089
+ return jspb.Message.setField(this, 19, value);
12090
+ };
12091
+
12092
+
12093
+ /**
12094
+ * Clears the field making it undefined.
12095
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserAccount} returns this
12096
+ */
12097
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.clearLoginShell = function() {
12098
+ return jspb.Message.setField(this, 19, undefined);
12099
+ };
12100
+
12101
+
12102
+ /**
12103
+ * Returns whether this field is set.
12104
+ * @return {boolean}
12105
+ */
12106
+ proto.com.lansweeper.dp.outbound.v1.UserAccount.prototype.hasLoginShell = function() {
12107
+ return jspb.Message.getField(this, 19) != null;
12108
+ };
12109
+
12110
+
12111
+
12112
+
12113
+
12114
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12115
+ /**
12116
+ * Creates an object representation of this proto.
12117
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12118
+ * Optional fields that are not set will be set to undefined.
12119
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12120
+ * For the list of reserved names please see:
12121
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12122
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12123
+ * JSPB instance for transitional soy proto support:
12124
+ * http://goto/soy-param-migration
12125
+ * @return {!Object}
12126
+ */
12127
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.toObject = function(opt_includeInstance) {
12128
+ return proto.com.lansweeper.dp.outbound.v1.UserGroup.toObject(opt_includeInstance, this);
12129
+ };
12130
+
12131
+
12132
+ /**
12133
+ * Static version of the {@see toObject} method.
12134
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12135
+ * the JSPB instance for transitional soy proto support:
12136
+ * http://goto/soy-param-migration
12137
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserGroup} msg The msg instance to transform.
12138
+ * @return {!Object}
12139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12140
+ */
12141
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.toObject = function(includeInstance, msg) {
12142
+ var f, obj = {
12143
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
12144
+ caption: jspb.Message.getFieldWithDefault(msg, 2, ""),
12145
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
12146
+ domain: jspb.Message.getFieldWithDefault(msg, 4, ""),
12147
+ sid: jspb.Message.getFieldWithDefault(msg, 5, ""),
12148
+ localAccount: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
12149
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, 0),
12150
+ type: jspb.Message.getFieldWithDefault(msg, 8, "")
12151
+ };
12152
+
12153
+ if (includeInstance) {
12154
+ obj.$jspbMessageInstance = msg;
12155
+ }
12156
+ return obj;
12157
+ };
12158
+ }
12159
+
12160
+
12161
+ /**
12162
+ * Deserializes binary data (in protobuf wire format).
12163
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12164
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup}
12165
+ */
12166
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.deserializeBinary = function(bytes) {
12167
+ var reader = new jspb.BinaryReader(bytes);
12168
+ var msg = new proto.com.lansweeper.dp.outbound.v1.UserGroup;
12169
+ return proto.com.lansweeper.dp.outbound.v1.UserGroup.deserializeBinaryFromReader(msg, reader);
12170
+ };
12171
+
12172
+
12173
+ /**
12174
+ * Deserializes binary data (in protobuf wire format) from the
12175
+ * given reader into the given message object.
12176
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserGroup} msg The message object to deserialize into.
12177
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12178
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup}
12179
+ */
12180
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.deserializeBinaryFromReader = function(msg, reader) {
12181
+ while (reader.nextField()) {
12182
+ if (reader.isEndGroup()) {
12183
+ break;
12184
+ }
12185
+ var field = reader.getFieldNumber();
12186
+ switch (field) {
12187
+ case 1:
12188
+ var value = /** @type {string} */ (reader.readString());
12189
+ msg.setName(value);
12190
+ break;
12191
+ case 2:
12192
+ var value = /** @type {string} */ (reader.readString());
12193
+ msg.setCaption(value);
12194
+ break;
12195
+ case 3:
12196
+ var value = /** @type {string} */ (reader.readString());
12197
+ msg.setDescription(value);
12198
+ break;
12199
+ case 4:
12200
+ var value = /** @type {string} */ (reader.readString());
12201
+ msg.setDomain(value);
12202
+ break;
12203
+ case 5:
12204
+ var value = /** @type {string} */ (reader.readString());
12205
+ msg.setSid(value);
12206
+ break;
12207
+ case 6:
12208
+ var value = /** @type {boolean} */ (reader.readBool());
12209
+ msg.setLocalAccount(value);
12210
+ break;
12211
+ case 7:
12212
+ var value = /** @type {number} */ (reader.readInt32());
12213
+ msg.setGroupId(value);
12214
+ break;
12215
+ case 8:
12216
+ var value = /** @type {string} */ (reader.readString());
12217
+ msg.setType(value);
12218
+ break;
12219
+ default:
12220
+ reader.skipField();
12221
+ break;
12222
+ }
12223
+ }
12224
+ return msg;
12225
+ };
12226
+
12227
+
12228
+ /**
12229
+ * Serializes the message to binary data (in protobuf wire format).
12230
+ * @return {!Uint8Array}
12231
+ */
12232
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.serializeBinary = function() {
12233
+ var writer = new jspb.BinaryWriter();
12234
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.serializeBinaryToWriter(this, writer);
12235
+ return writer.getResultBuffer();
12236
+ };
12237
+
12238
+
12239
+ /**
12240
+ * Serializes the given message to binary data (in protobuf wire
12241
+ * format), writing to the given BinaryWriter.
12242
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserGroup} message
12243
+ * @param {!jspb.BinaryWriter} writer
12244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12245
+ */
12246
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.serializeBinaryToWriter = function(message, writer) {
12247
+ var f = undefined;
12248
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
12249
+ if (f != null) {
12250
+ writer.writeString(
12251
+ 1,
12252
+ f
12253
+ );
12254
+ }
12255
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
12256
+ if (f != null) {
12257
+ writer.writeString(
12258
+ 2,
12259
+ f
12260
+ );
12261
+ }
12262
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
12263
+ if (f != null) {
12264
+ writer.writeString(
12265
+ 3,
12266
+ f
12267
+ );
12268
+ }
12269
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
12270
+ if (f != null) {
12271
+ writer.writeString(
12272
+ 4,
12273
+ f
12274
+ );
12275
+ }
12276
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
12277
+ if (f != null) {
12278
+ writer.writeString(
12279
+ 5,
12280
+ f
12281
+ );
12282
+ }
12283
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
12284
+ if (f != null) {
12285
+ writer.writeBool(
12286
+ 6,
12287
+ f
12288
+ );
12289
+ }
12290
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
12291
+ if (f != null) {
12292
+ writer.writeInt32(
12293
+ 7,
12294
+ f
12295
+ );
12296
+ }
12297
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
12298
+ if (f != null) {
12299
+ writer.writeString(
12300
+ 8,
12301
+ f
12302
+ );
12303
+ }
12304
+ };
12305
+
12306
+
12307
+ /**
12308
+ * optional string name = 1;
12309
+ * @return {string}
12310
+ */
12311
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getName = function() {
12312
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12313
+ };
12314
+
12315
+
12316
+ /**
12317
+ * @param {string} value
12318
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12319
+ */
12320
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setName = function(value) {
12321
+ return jspb.Message.setField(this, 1, value);
12322
+ };
12323
+
12324
+
12325
+ /**
12326
+ * Clears the field making it undefined.
12327
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12328
+ */
12329
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearName = function() {
12330
+ return jspb.Message.setField(this, 1, undefined);
12331
+ };
12332
+
12333
+
12334
+ /**
12335
+ * Returns whether this field is set.
12336
+ * @return {boolean}
12337
+ */
12338
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasName = function() {
12339
+ return jspb.Message.getField(this, 1) != null;
12340
+ };
12341
+
12342
+
12343
+ /**
12344
+ * optional string caption = 2;
12345
+ * @return {string}
12346
+ */
12347
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getCaption = function() {
12348
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12349
+ };
12350
+
12351
+
12352
+ /**
12353
+ * @param {string} value
12354
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12355
+ */
12356
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setCaption = function(value) {
12357
+ return jspb.Message.setField(this, 2, value);
12358
+ };
12359
+
12360
+
12361
+ /**
12362
+ * Clears the field making it undefined.
12363
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12364
+ */
12365
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearCaption = function() {
12366
+ return jspb.Message.setField(this, 2, undefined);
12367
+ };
12368
+
12369
+
12370
+ /**
12371
+ * Returns whether this field is set.
12372
+ * @return {boolean}
12373
+ */
12374
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasCaption = function() {
12375
+ return jspb.Message.getField(this, 2) != null;
12376
+ };
12377
+
12378
+
12379
+ /**
12380
+ * optional string description = 3;
12381
+ * @return {string}
12382
+ */
12383
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getDescription = function() {
12384
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12385
+ };
12386
+
12387
+
12388
+ /**
12389
+ * @param {string} value
12390
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12391
+ */
12392
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setDescription = function(value) {
12393
+ return jspb.Message.setField(this, 3, value);
12394
+ };
12395
+
12396
+
12397
+ /**
12398
+ * Clears the field making it undefined.
12399
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12400
+ */
12401
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearDescription = function() {
12402
+ return jspb.Message.setField(this, 3, undefined);
12403
+ };
12404
+
12405
+
12406
+ /**
12407
+ * Returns whether this field is set.
12408
+ * @return {boolean}
12409
+ */
12410
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasDescription = function() {
12411
+ return jspb.Message.getField(this, 3) != null;
12412
+ };
12413
+
12414
+
12415
+ /**
12416
+ * optional string domain = 4;
12417
+ * @return {string}
12418
+ */
12419
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getDomain = function() {
12420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12421
+ };
12422
+
12423
+
12424
+ /**
12425
+ * @param {string} value
12426
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12427
+ */
12428
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setDomain = function(value) {
12429
+ return jspb.Message.setField(this, 4, value);
12430
+ };
12431
+
12432
+
12433
+ /**
12434
+ * Clears the field making it undefined.
12435
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12436
+ */
12437
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearDomain = function() {
12438
+ return jspb.Message.setField(this, 4, undefined);
12439
+ };
12440
+
12441
+
12442
+ /**
12443
+ * Returns whether this field is set.
12444
+ * @return {boolean}
12445
+ */
12446
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasDomain = function() {
12447
+ return jspb.Message.getField(this, 4) != null;
12448
+ };
12449
+
12450
+
12451
+ /**
12452
+ * optional string sid = 5;
12453
+ * @return {string}
12454
+ */
12455
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getSid = function() {
12456
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12457
+ };
12458
+
12459
+
12460
+ /**
12461
+ * @param {string} value
12462
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12463
+ */
12464
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setSid = function(value) {
12465
+ return jspb.Message.setField(this, 5, value);
12466
+ };
12467
+
12468
+
12469
+ /**
12470
+ * Clears the field making it undefined.
12471
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12472
+ */
12473
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearSid = function() {
12474
+ return jspb.Message.setField(this, 5, undefined);
12475
+ };
12476
+
12477
+
12478
+ /**
12479
+ * Returns whether this field is set.
12480
+ * @return {boolean}
12481
+ */
12482
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasSid = function() {
12483
+ return jspb.Message.getField(this, 5) != null;
12484
+ };
12485
+
12486
+
12487
+ /**
12488
+ * optional bool local_account = 6;
12489
+ * @return {boolean}
12490
+ */
12491
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getLocalAccount = function() {
12492
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
12493
+ };
12494
+
12495
+
12496
+ /**
12497
+ * @param {boolean} value
12498
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12499
+ */
12500
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setLocalAccount = function(value) {
12501
+ return jspb.Message.setField(this, 6, value);
12502
+ };
12503
+
12504
+
12505
+ /**
12506
+ * Clears the field making it undefined.
12507
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12508
+ */
12509
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearLocalAccount = function() {
12510
+ return jspb.Message.setField(this, 6, undefined);
12511
+ };
12512
+
12513
+
12514
+ /**
12515
+ * Returns whether this field is set.
12516
+ * @return {boolean}
12517
+ */
12518
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasLocalAccount = function() {
12519
+ return jspb.Message.getField(this, 6) != null;
12520
+ };
12521
+
12522
+
12523
+ /**
12524
+ * optional int32 group_id = 7;
12525
+ * @return {number}
12526
+ */
12527
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getGroupId = function() {
12528
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
12529
+ };
12530
+
12531
+
12532
+ /**
12533
+ * @param {number} value
12534
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12535
+ */
12536
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setGroupId = function(value) {
12537
+ return jspb.Message.setField(this, 7, value);
12538
+ };
12539
+
12540
+
12541
+ /**
12542
+ * Clears the field making it undefined.
12543
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12544
+ */
12545
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearGroupId = function() {
12546
+ return jspb.Message.setField(this, 7, undefined);
12547
+ };
12548
+
12549
+
12550
+ /**
12551
+ * Returns whether this field is set.
12552
+ * @return {boolean}
12553
+ */
12554
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasGroupId = function() {
12555
+ return jspb.Message.getField(this, 7) != null;
12556
+ };
12557
+
12558
+
12559
+ /**
12560
+ * optional string type = 8;
12561
+ * @return {string}
12562
+ */
12563
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.getType = function() {
12564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
12565
+ };
12566
+
12567
+
12568
+ /**
12569
+ * @param {string} value
12570
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12571
+ */
12572
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.setType = function(value) {
12573
+ return jspb.Message.setField(this, 8, value);
12574
+ };
12575
+
12576
+
12577
+ /**
12578
+ * Clears the field making it undefined.
12579
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserGroup} returns this
12580
+ */
12581
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.clearType = function() {
12582
+ return jspb.Message.setField(this, 8, undefined);
12583
+ };
12584
+
12585
+
12586
+ /**
12587
+ * Returns whether this field is set.
12588
+ * @return {boolean}
12589
+ */
12590
+ proto.com.lansweeper.dp.outbound.v1.UserGroup.prototype.hasType = function() {
12591
+ return jspb.Message.getField(this, 8) != null;
12592
+ };
12593
+
12594
+
12595
+
12596
+
12597
+
12598
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12599
+ /**
12600
+ * Creates an object representation of this proto.
12601
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12602
+ * Optional fields that are not set will be set to undefined.
12603
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12604
+ * For the list of reserved names please see:
12605
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12606
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12607
+ * JSPB instance for transitional soy proto support:
12608
+ * http://goto/soy-param-migration
12609
+ * @return {!Object}
12610
+ */
12611
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.toObject = function(opt_includeInstance) {
12612
+ return proto.com.lansweeper.dp.outbound.v1.UserInGroup.toObject(opt_includeInstance, this);
12613
+ };
12614
+
12615
+
12616
+ /**
12617
+ * Static version of the {@see toObject} method.
12618
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12619
+ * the JSPB instance for transitional soy proto support:
12620
+ * http://goto/soy-param-migration
12621
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} msg The msg instance to transform.
12622
+ * @return {!Object}
12623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12624
+ */
12625
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.toObject = function(includeInstance, msg) {
12626
+ var f, obj = {
12627
+ groupName: jspb.Message.getFieldWithDefault(msg, 1, ""),
12628
+ userName: jspb.Message.getFieldWithDefault(msg, 2, ""),
12629
+ userDomainName: jspb.Message.getFieldWithDefault(msg, 3, ""),
12630
+ accountType: jspb.Message.getFieldWithDefault(msg, 4, ""),
12631
+ isAdminGroup: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
12632
+ };
12633
+
12634
+ if (includeInstance) {
12635
+ obj.$jspbMessageInstance = msg;
12636
+ }
12637
+ return obj;
12638
+ };
12639
+ }
12640
+
12641
+
12642
+ /**
12643
+ * Deserializes binary data (in protobuf wire format).
12644
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12645
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup}
12646
+ */
12647
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.deserializeBinary = function(bytes) {
12648
+ var reader = new jspb.BinaryReader(bytes);
12649
+ var msg = new proto.com.lansweeper.dp.outbound.v1.UserInGroup;
12650
+ return proto.com.lansweeper.dp.outbound.v1.UserInGroup.deserializeBinaryFromReader(msg, reader);
12651
+ };
12652
+
12653
+
12654
+ /**
12655
+ * Deserializes binary data (in protobuf wire format) from the
12656
+ * given reader into the given message object.
12657
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} msg The message object to deserialize into.
12658
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12659
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup}
12660
+ */
12661
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.deserializeBinaryFromReader = function(msg, reader) {
12662
+ while (reader.nextField()) {
12663
+ if (reader.isEndGroup()) {
12664
+ break;
12665
+ }
12666
+ var field = reader.getFieldNumber();
12667
+ switch (field) {
12668
+ case 1:
12669
+ var value = /** @type {string} */ (reader.readString());
12670
+ msg.setGroupName(value);
12671
+ break;
12672
+ case 2:
12673
+ var value = /** @type {string} */ (reader.readString());
12674
+ msg.setUserName(value);
12675
+ break;
12676
+ case 3:
12677
+ var value = /** @type {string} */ (reader.readString());
12678
+ msg.setUserDomainName(value);
12679
+ break;
12680
+ case 4:
12681
+ var value = /** @type {string} */ (reader.readString());
12682
+ msg.setAccountType(value);
12683
+ break;
12684
+ case 5:
12685
+ var value = /** @type {boolean} */ (reader.readBool());
12686
+ msg.setIsAdminGroup(value);
12687
+ break;
12688
+ default:
12689
+ reader.skipField();
12690
+ break;
12691
+ }
12692
+ }
12693
+ return msg;
12694
+ };
12695
+
12696
+
12697
+ /**
12698
+ * Serializes the message to binary data (in protobuf wire format).
12699
+ * @return {!Uint8Array}
12700
+ */
12701
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.serializeBinary = function() {
12702
+ var writer = new jspb.BinaryWriter();
12703
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.serializeBinaryToWriter(this, writer);
12704
+ return writer.getResultBuffer();
12705
+ };
12706
+
12707
+
12708
+ /**
12709
+ * Serializes the given message to binary data (in protobuf wire
12710
+ * format), writing to the given BinaryWriter.
12711
+ * @param {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} message
12712
+ * @param {!jspb.BinaryWriter} writer
12713
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12714
+ */
12715
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.serializeBinaryToWriter = function(message, writer) {
12716
+ var f = undefined;
12717
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
12718
+ if (f != null) {
12719
+ writer.writeString(
12720
+ 1,
12721
+ f
12722
+ );
12723
+ }
12724
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
12725
+ if (f != null) {
12726
+ writer.writeString(
12727
+ 2,
12728
+ f
12729
+ );
12730
+ }
12731
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
12732
+ if (f != null) {
12733
+ writer.writeString(
12734
+ 3,
12735
+ f
12736
+ );
12737
+ }
12738
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
12739
+ if (f != null) {
12740
+ writer.writeString(
12741
+ 4,
12742
+ f
12743
+ );
12744
+ }
12745
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
12746
+ if (f != null) {
12747
+ writer.writeBool(
12748
+ 5,
12749
+ f
12750
+ );
12751
+ }
12752
+ };
12753
+
12754
+
12755
+ /**
12756
+ * optional string group_name = 1;
12757
+ * @return {string}
12758
+ */
12759
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.getGroupName = function() {
12760
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12761
+ };
12762
+
12763
+
12764
+ /**
12765
+ * @param {string} value
12766
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12767
+ */
12768
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.setGroupName = function(value) {
12769
+ return jspb.Message.setField(this, 1, value);
12770
+ };
12771
+
12772
+
12773
+ /**
12774
+ * Clears the field making it undefined.
12775
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12776
+ */
12777
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.clearGroupName = function() {
12778
+ return jspb.Message.setField(this, 1, undefined);
12779
+ };
12780
+
12781
+
12782
+ /**
12783
+ * Returns whether this field is set.
12784
+ * @return {boolean}
12785
+ */
12786
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.hasGroupName = function() {
12787
+ return jspb.Message.getField(this, 1) != null;
12788
+ };
12789
+
12790
+
12791
+ /**
12792
+ * optional string user_name = 2;
12793
+ * @return {string}
12794
+ */
12795
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.getUserName = function() {
12796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12797
+ };
12798
+
12799
+
12800
+ /**
12801
+ * @param {string} value
12802
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12803
+ */
12804
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.setUserName = function(value) {
12805
+ return jspb.Message.setField(this, 2, value);
12806
+ };
12807
+
12808
+
12809
+ /**
12810
+ * Clears the field making it undefined.
12811
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12812
+ */
12813
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.clearUserName = function() {
12814
+ return jspb.Message.setField(this, 2, undefined);
12815
+ };
12816
+
12817
+
12818
+ /**
12819
+ * Returns whether this field is set.
12820
+ * @return {boolean}
12821
+ */
12822
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.hasUserName = function() {
12823
+ return jspb.Message.getField(this, 2) != null;
12824
+ };
12825
+
12826
+
12827
+ /**
12828
+ * optional string user_domain_name = 3;
12829
+ * @return {string}
12830
+ */
12831
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.getUserDomainName = function() {
12832
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12833
+ };
12834
+
12835
+
12836
+ /**
12837
+ * @param {string} value
12838
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12839
+ */
12840
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.setUserDomainName = function(value) {
12841
+ return jspb.Message.setField(this, 3, value);
12842
+ };
12843
+
12844
+
12845
+ /**
12846
+ * Clears the field making it undefined.
12847
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12848
+ */
12849
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.clearUserDomainName = function() {
12850
+ return jspb.Message.setField(this, 3, undefined);
12851
+ };
12852
+
12853
+
12854
+ /**
12855
+ * Returns whether this field is set.
12856
+ * @return {boolean}
12857
+ */
12858
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.hasUserDomainName = function() {
12859
+ return jspb.Message.getField(this, 3) != null;
12860
+ };
12861
+
12862
+
12863
+ /**
12864
+ * optional string account_type = 4;
12865
+ * @return {string}
12866
+ */
12867
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.getAccountType = function() {
12868
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12869
+ };
12870
+
12871
+
12872
+ /**
12873
+ * @param {string} value
12874
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12875
+ */
12876
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.setAccountType = function(value) {
12877
+ return jspb.Message.setField(this, 4, value);
12878
+ };
12879
+
12880
+
12881
+ /**
12882
+ * Clears the field making it undefined.
12883
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12884
+ */
12885
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.clearAccountType = function() {
12886
+ return jspb.Message.setField(this, 4, undefined);
12887
+ };
12888
+
12889
+
12890
+ /**
12891
+ * Returns whether this field is set.
12892
+ * @return {boolean}
12893
+ */
12894
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.hasAccountType = function() {
12895
+ return jspb.Message.getField(this, 4) != null;
12896
+ };
12897
+
12898
+
12899
+ /**
12900
+ * optional bool is_admin_group = 5;
12901
+ * @return {boolean}
12902
+ */
12903
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.getIsAdminGroup = function() {
12904
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
12905
+ };
12906
+
12907
+
12908
+ /**
12909
+ * @param {boolean} value
12910
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12911
+ */
12912
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.setIsAdminGroup = function(value) {
12913
+ return jspb.Message.setField(this, 5, value);
12914
+ };
12915
+
12916
+
12917
+ /**
12918
+ * Clears the field making it undefined.
12919
+ * @return {!proto.com.lansweeper.dp.outbound.v1.UserInGroup} returns this
12920
+ */
12921
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.clearIsAdminGroup = function() {
12922
+ return jspb.Message.setField(this, 5, undefined);
12923
+ };
12924
+
12925
+
12926
+ /**
12927
+ * Returns whether this field is set.
12928
+ * @return {boolean}
12929
+ */
12930
+ proto.com.lansweeper.dp.outbound.v1.UserInGroup.prototype.hasIsAdminGroup = function() {
12931
+ return jspb.Message.getField(this, 5) != null;
12932
+ };
12933
+
12934
+
12935
+
12936
+
12937
+
10871
12938
  if (jspb.Message.GENERATE_TO_OBJECT) {
10872
12939
  /**
10873
12940
  * Creates an object representation of this proto.