@lansweeper/discovery-sensor-proto 2.79.1 → 2.80.0

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.
@@ -482,35 +482,6 @@ export namespace ActiveDirectoryUser {
482
482
  }
483
483
  }
484
484
 
485
- export class DirectReport extends jspb.Message {
486
-
487
- hasAdUserKey(): boolean;
488
- clearAdUserKey(): void;
489
- getAdUserKey(): google_protobuf_wrappers_pb.StringValue | undefined;
490
- setAdUserKey(value?: google_protobuf_wrappers_pb.StringValue): DirectReport;
491
-
492
- hasDisplayName(): boolean;
493
- clearDisplayName(): void;
494
- getDisplayName(): google_protobuf_wrappers_pb.StringValue | undefined;
495
- setDisplayName(value?: google_protobuf_wrappers_pb.StringValue): DirectReport;
496
-
497
- serializeBinary(): Uint8Array;
498
- toObject(includeInstance?: boolean): DirectReport.AsObject;
499
- static toObject(includeInstance: boolean, msg: DirectReport): DirectReport.AsObject;
500
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
501
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
502
- static serializeBinaryToWriter(message: DirectReport, writer: jspb.BinaryWriter): void;
503
- static deserializeBinary(bytes: Uint8Array): DirectReport;
504
- static deserializeBinaryFromReader(message: DirectReport, reader: jspb.BinaryReader): DirectReport;
505
- }
506
-
507
- export namespace DirectReport {
508
- export type AsObject = {
509
- adUserKey?: google_protobuf_wrappers_pb.StringValue.AsObject,
510
- displayName?: google_protobuf_wrappers_pb.StringValue.AsObject,
511
- }
512
- }
513
-
514
485
  export class ActiveDirectoryGroup extends jspb.Message {
515
486
 
516
487
  hasSamAccountName(): boolean;
@@ -2201,6 +2172,10 @@ export class AzureAdUser extends jspb.Message {
2201
2172
  clearUserPrincipalName(): void;
2202
2173
  getUserPrincipalName(): google_protobuf_wrappers_pb.StringValue | undefined;
2203
2174
  setUserPrincipalName(value?: google_protobuf_wrappers_pb.StringValue): AzureAdUser;
2175
+ clearDirectReportsList(): void;
2176
+ getDirectReportsList(): Array<DirectReport>;
2177
+ setDirectReportsList(value: Array<DirectReport>): AzureAdUser;
2178
+ addDirectReports(value?: DirectReport, index?: number): DirectReport;
2204
2179
 
2205
2180
  serializeBinary(): Uint8Array;
2206
2181
  toObject(includeInstance?: boolean): AzureAdUser.AsObject;
@@ -2255,6 +2230,36 @@ export namespace AzureAdUser {
2255
2230
  surname?: google_protobuf_wrappers_pb.StringValue.AsObject,
2256
2231
  state?: google_protobuf_wrappers_pb.StringValue.AsObject,
2257
2232
  userPrincipalName?: google_protobuf_wrappers_pb.StringValue.AsObject,
2233
+ directReportsList: Array<DirectReport.AsObject>,
2234
+ }
2235
+ }
2236
+
2237
+ export class DirectReport extends jspb.Message {
2238
+
2239
+ hasAdUserKey(): boolean;
2240
+ clearAdUserKey(): void;
2241
+ getAdUserKey(): google_protobuf_wrappers_pb.StringValue | undefined;
2242
+ setAdUserKey(value?: google_protobuf_wrappers_pb.StringValue): DirectReport;
2243
+
2244
+ hasDisplayName(): boolean;
2245
+ clearDisplayName(): void;
2246
+ getDisplayName(): google_protobuf_wrappers_pb.StringValue | undefined;
2247
+ setDisplayName(value?: google_protobuf_wrappers_pb.StringValue): DirectReport;
2248
+
2249
+ serializeBinary(): Uint8Array;
2250
+ toObject(includeInstance?: boolean): DirectReport.AsObject;
2251
+ static toObject(includeInstance: boolean, msg: DirectReport): DirectReport.AsObject;
2252
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2253
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2254
+ static serializeBinaryToWriter(message: DirectReport, writer: jspb.BinaryWriter): void;
2255
+ static deserializeBinary(bytes: Uint8Array): DirectReport;
2256
+ static deserializeBinaryFromReader(message: DirectReport, reader: jspb.BinaryReader): DirectReport;
2257
+ }
2258
+
2259
+ export namespace DirectReport {
2260
+ export type AsObject = {
2261
+ adUserKey?: google_protobuf_wrappers_pb.StringValue.AsObject,
2262
+ displayName?: google_protobuf_wrappers_pb.StringValue.AsObject,
2258
2263
  }
2259
2264
  }
2260
2265
 
@@ -139,27 +139,6 @@ if (goog.DEBUG && !COMPILED) {
139
139
  */
140
140
  proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryUser.displayName = 'proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryUser';
141
141
  }
142
- /**
143
- * Generated by JsPbCodeGenerator.
144
- * @param {Array=} opt_data Optional initial data array, typically from a
145
- * server response, or constructed directly in Javascript. The array is used
146
- * in place and becomes part of the constructed object. It is not cloned.
147
- * If no data is provided, the constructed object will be empty, but still
148
- * valid.
149
- * @extends {jspb.Message}
150
- * @constructor
151
- */
152
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport = function(opt_data) {
153
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
- };
155
- goog.inherits(proto.com.lansweeper.discovery.sensor.api.v1.DirectReport, jspb.Message);
156
- if (goog.DEBUG && !COMPILED) {
157
- /**
158
- * @public
159
- * @override
160
- */
161
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.displayName = 'proto.com.lansweeper.discovery.sensor.api.v1.DirectReport';
162
- }
163
142
  /**
164
143
  * Generated by JsPbCodeGenerator.
165
144
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -486,7 +465,7 @@ if (goog.DEBUG && !COMPILED) {
486
465
  * @constructor
487
466
  */
488
467
  proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser = function(opt_data) {
489
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
468
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.repeatedFields_, null);
490
469
  };
491
470
  goog.inherits(proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser, jspb.Message);
492
471
  if (goog.DEBUG && !COMPILED) {
@@ -496,6 +475,27 @@ if (goog.DEBUG && !COMPILED) {
496
475
  */
497
476
  proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.displayName = 'proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser';
498
477
  }
478
+ /**
479
+ * Generated by JsPbCodeGenerator.
480
+ * @param {Array=} opt_data Optional initial data array, typically from a
481
+ * server response, or constructed directly in Javascript. The array is used
482
+ * in place and becomes part of the constructed object. It is not cloned.
483
+ * If no data is provided, the constructed object will be empty, but still
484
+ * valid.
485
+ * @extends {jspb.Message}
486
+ * @constructor
487
+ */
488
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport = function(opt_data) {
489
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
490
+ };
491
+ goog.inherits(proto.com.lansweeper.discovery.sensor.api.v1.DirectReport, jspb.Message);
492
+ if (goog.DEBUG && !COMPILED) {
493
+ /**
494
+ * @public
495
+ * @override
496
+ */
497
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.displayName = 'proto.com.lansweeper.discovery.sensor.api.v1.DirectReport';
498
+ }
499
499
  /**
500
500
  * Generated by JsPbCodeGenerator.
501
501
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4929,208 +4929,6 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryUser.prototype.clear
4929
4929
 
4930
4930
 
4931
4931
 
4932
-
4933
-
4934
- if (jspb.Message.GENERATE_TO_OBJECT) {
4935
- /**
4936
- * Creates an object representation of this proto.
4937
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4938
- * Optional fields that are not set will be set to undefined.
4939
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4940
- * For the list of reserved names please see:
4941
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4942
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4943
- * JSPB instance for transitional soy proto support:
4944
- * http://goto/soy-param-migration
4945
- * @return {!Object}
4946
- */
4947
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.toObject = function(opt_includeInstance) {
4948
- return proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.toObject(opt_includeInstance, this);
4949
- };
4950
-
4951
-
4952
- /**
4953
- * Static version of the {@see toObject} method.
4954
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4955
- * the JSPB instance for transitional soy proto support:
4956
- * http://goto/soy-param-migration
4957
- * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} msg The msg instance to transform.
4958
- * @return {!Object}
4959
- * @suppress {unusedLocalVariables} f is only used for nested messages
4960
- */
4961
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.toObject = function(includeInstance, msg) {
4962
- var f, obj = {
4963
- adUserKey: (f = msg.getAdUserKey()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
4964
- displayName: (f = msg.getDisplayName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
4965
- };
4966
-
4967
- if (includeInstance) {
4968
- obj.$jspbMessageInstance = msg;
4969
- }
4970
- return obj;
4971
- };
4972
- }
4973
-
4974
-
4975
- /**
4976
- * Deserializes binary data (in protobuf wire format).
4977
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4978
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport}
4979
- */
4980
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinary = function(bytes) {
4981
- var reader = new jspb.BinaryReader(bytes);
4982
- var msg = new proto.com.lansweeper.discovery.sensor.api.v1.DirectReport;
4983
- return proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinaryFromReader(msg, reader);
4984
- };
4985
-
4986
-
4987
- /**
4988
- * Deserializes binary data (in protobuf wire format) from the
4989
- * given reader into the given message object.
4990
- * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} msg The message object to deserialize into.
4991
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4992
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport}
4993
- */
4994
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinaryFromReader = function(msg, reader) {
4995
- while (reader.nextField()) {
4996
- if (reader.isEndGroup()) {
4997
- break;
4998
- }
4999
- var field = reader.getFieldNumber();
5000
- switch (field) {
5001
- case 1:
5002
- var value = new google_protobuf_wrappers_pb.StringValue;
5003
- reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
5004
- msg.setAdUserKey(value);
5005
- break;
5006
- case 2:
5007
- var value = new google_protobuf_wrappers_pb.StringValue;
5008
- reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
5009
- msg.setDisplayName(value);
5010
- break;
5011
- default:
5012
- reader.skipField();
5013
- break;
5014
- }
5015
- }
5016
- return msg;
5017
- };
5018
-
5019
-
5020
- /**
5021
- * Serializes the message to binary data (in protobuf wire format).
5022
- * @return {!Uint8Array}
5023
- */
5024
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.serializeBinary = function() {
5025
- var writer = new jspb.BinaryWriter();
5026
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.serializeBinaryToWriter(this, writer);
5027
- return writer.getResultBuffer();
5028
- };
5029
-
5030
-
5031
- /**
5032
- * Serializes the given message to binary data (in protobuf wire
5033
- * format), writing to the given BinaryWriter.
5034
- * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} message
5035
- * @param {!jspb.BinaryWriter} writer
5036
- * @suppress {unusedLocalVariables} f is only used for nested messages
5037
- */
5038
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.serializeBinaryToWriter = function(message, writer) {
5039
- var f = undefined;
5040
- f = message.getAdUserKey();
5041
- if (f != null) {
5042
- writer.writeMessage(
5043
- 1,
5044
- f,
5045
- google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
5046
- );
5047
- }
5048
- f = message.getDisplayName();
5049
- if (f != null) {
5050
- writer.writeMessage(
5051
- 2,
5052
- f,
5053
- google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
5054
- );
5055
- }
5056
- };
5057
-
5058
-
5059
- /**
5060
- * optional google.protobuf.StringValue ad_user_key = 1;
5061
- * @return {?proto.google.protobuf.StringValue}
5062
- */
5063
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.getAdUserKey = function() {
5064
- return /** @type{?proto.google.protobuf.StringValue} */ (
5065
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
5066
- };
5067
-
5068
-
5069
- /**
5070
- * @param {?proto.google.protobuf.StringValue|undefined} value
5071
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
5072
- */
5073
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.setAdUserKey = function(value) {
5074
- return jspb.Message.setWrapperField(this, 1, value);
5075
- };
5076
-
5077
-
5078
- /**
5079
- * Clears the message field making it undefined.
5080
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
5081
- */
5082
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.clearAdUserKey = function() {
5083
- return this.setAdUserKey(undefined);
5084
- };
5085
-
5086
-
5087
- /**
5088
- * Returns whether this field is set.
5089
- * @return {boolean}
5090
- */
5091
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.hasAdUserKey = function() {
5092
- return jspb.Message.getField(this, 1) != null;
5093
- };
5094
-
5095
-
5096
- /**
5097
- * optional google.protobuf.StringValue display_name = 2;
5098
- * @return {?proto.google.protobuf.StringValue}
5099
- */
5100
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.getDisplayName = function() {
5101
- return /** @type{?proto.google.protobuf.StringValue} */ (
5102
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
5103
- };
5104
-
5105
-
5106
- /**
5107
- * @param {?proto.google.protobuf.StringValue|undefined} value
5108
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
5109
- */
5110
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.setDisplayName = function(value) {
5111
- return jspb.Message.setWrapperField(this, 2, value);
5112
- };
5113
-
5114
-
5115
- /**
5116
- * Clears the message field making it undefined.
5117
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
5118
- */
5119
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.clearDisplayName = function() {
5120
- return this.setDisplayName(undefined);
5121
- };
5122
-
5123
-
5124
- /**
5125
- * Returns whether this field is set.
5126
- * @return {boolean}
5127
- */
5128
- proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.hasDisplayName = function() {
5129
- return jspb.Message.getField(this, 2) != null;
5130
- };
5131
-
5132
-
5133
-
5134
4932
  /**
5135
4933
  * List of repeated fields within this message type.
5136
4934
  * @private {!Array<number>}
@@ -17255,6 +17053,13 @@ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdOrganization.prototype.hasSt
17255
17053
 
17256
17054
 
17257
17055
 
17056
+ /**
17057
+ * List of repeated fields within this message type.
17058
+ * @private {!Array<number>}
17059
+ * @const
17060
+ */
17061
+ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.repeatedFields_ = [42];
17062
+
17258
17063
 
17259
17064
 
17260
17065
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -17326,7 +17131,9 @@ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.toObject = function(inc
17326
17131
  streetAddress: (f = msg.getStreetAddress()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17327
17132
  surname: (f = msg.getSurname()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17328
17133
  state: (f = msg.getState()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17329
- userPrincipalName: (f = msg.getUserPrincipalName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
17134
+ userPrincipalName: (f = msg.getUserPrincipalName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17135
+ directReportsList: jspb.Message.toObjectList(msg.getDirectReportsList(),
17136
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.toObject, includeInstance)
17330
17137
  };
17331
17138
 
17332
17139
  if (includeInstance) {
@@ -17566,6 +17373,11 @@ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.deserializeBinaryFromRe
17566
17373
  reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17567
17374
  msg.setUserPrincipalName(value);
17568
17375
  break;
17376
+ case 42:
17377
+ var value = new proto.com.lansweeper.discovery.sensor.api.v1.DirectReport;
17378
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinaryFromReader);
17379
+ msg.addDirectReports(value);
17380
+ break;
17569
17381
  default:
17570
17382
  reader.skipField();
17571
17383
  break;
@@ -17921,6 +17733,14 @@ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.serializeBinaryToWriter
17921
17733
  google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17922
17734
  );
17923
17735
  }
17736
+ f = message.getDirectReportsList();
17737
+ if (f.length > 0) {
17738
+ writer.writeRepeatedMessage(
17739
+ 42,
17740
+ f,
17741
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.serializeBinaryToWriter
17742
+ );
17743
+ }
17924
17744
  };
17925
17745
 
17926
17746
 
@@ -19403,6 +19223,246 @@ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.prototype.hasUserPrinci
19403
19223
  };
19404
19224
 
19405
19225
 
19226
+ /**
19227
+ * repeated DirectReport direct_reports = 42;
19228
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport>}
19229
+ */
19230
+ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.prototype.getDirectReportsList = function() {
19231
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport>} */ (
19232
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.api.v1.DirectReport, 42));
19233
+ };
19234
+
19235
+
19236
+ /**
19237
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport>} value
19238
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser} returns this
19239
+ */
19240
+ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.prototype.setDirectReportsList = function(value) {
19241
+ return jspb.Message.setRepeatedWrapperField(this, 42, value);
19242
+ };
19243
+
19244
+
19245
+ /**
19246
+ * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport=} opt_value
19247
+ * @param {number=} opt_index
19248
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport}
19249
+ */
19250
+ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.prototype.addDirectReports = function(opt_value, opt_index) {
19251
+ return jspb.Message.addToRepeatedWrapperField(this, 42, opt_value, proto.com.lansweeper.discovery.sensor.api.v1.DirectReport, opt_index);
19252
+ };
19253
+
19254
+
19255
+ /**
19256
+ * Clears the list making it empty but non-null.
19257
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser} returns this
19258
+ */
19259
+ proto.com.lansweeper.discovery.sensor.api.v1.AzureAdUser.prototype.clearDirectReportsList = function() {
19260
+ return this.setDirectReportsList([]);
19261
+ };
19262
+
19263
+
19264
+
19265
+
19266
+
19267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19268
+ /**
19269
+ * Creates an object representation of this proto.
19270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19271
+ * Optional fields that are not set will be set to undefined.
19272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19273
+ * For the list of reserved names please see:
19274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19276
+ * JSPB instance for transitional soy proto support:
19277
+ * http://goto/soy-param-migration
19278
+ * @return {!Object}
19279
+ */
19280
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.toObject = function(opt_includeInstance) {
19281
+ return proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.toObject(opt_includeInstance, this);
19282
+ };
19283
+
19284
+
19285
+ /**
19286
+ * Static version of the {@see toObject} method.
19287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19288
+ * the JSPB instance for transitional soy proto support:
19289
+ * http://goto/soy-param-migration
19290
+ * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} msg The msg instance to transform.
19291
+ * @return {!Object}
19292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19293
+ */
19294
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.toObject = function(includeInstance, msg) {
19295
+ var f, obj = {
19296
+ adUserKey: (f = msg.getAdUserKey()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
19297
+ displayName: (f = msg.getDisplayName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
19298
+ };
19299
+
19300
+ if (includeInstance) {
19301
+ obj.$jspbMessageInstance = msg;
19302
+ }
19303
+ return obj;
19304
+ };
19305
+ }
19306
+
19307
+
19308
+ /**
19309
+ * Deserializes binary data (in protobuf wire format).
19310
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19311
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport}
19312
+ */
19313
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinary = function(bytes) {
19314
+ var reader = new jspb.BinaryReader(bytes);
19315
+ var msg = new proto.com.lansweeper.discovery.sensor.api.v1.DirectReport;
19316
+ return proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinaryFromReader(msg, reader);
19317
+ };
19318
+
19319
+
19320
+ /**
19321
+ * Deserializes binary data (in protobuf wire format) from the
19322
+ * given reader into the given message object.
19323
+ * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} msg The message object to deserialize into.
19324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19325
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport}
19326
+ */
19327
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.deserializeBinaryFromReader = function(msg, reader) {
19328
+ while (reader.nextField()) {
19329
+ if (reader.isEndGroup()) {
19330
+ break;
19331
+ }
19332
+ var field = reader.getFieldNumber();
19333
+ switch (field) {
19334
+ case 1:
19335
+ var value = new google_protobuf_wrappers_pb.StringValue;
19336
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
19337
+ msg.setAdUserKey(value);
19338
+ break;
19339
+ case 2:
19340
+ var value = new google_protobuf_wrappers_pb.StringValue;
19341
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
19342
+ msg.setDisplayName(value);
19343
+ break;
19344
+ default:
19345
+ reader.skipField();
19346
+ break;
19347
+ }
19348
+ }
19349
+ return msg;
19350
+ };
19351
+
19352
+
19353
+ /**
19354
+ * Serializes the message to binary data (in protobuf wire format).
19355
+ * @return {!Uint8Array}
19356
+ */
19357
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.serializeBinary = function() {
19358
+ var writer = new jspb.BinaryWriter();
19359
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.serializeBinaryToWriter(this, writer);
19360
+ return writer.getResultBuffer();
19361
+ };
19362
+
19363
+
19364
+ /**
19365
+ * Serializes the given message to binary data (in protobuf wire
19366
+ * format), writing to the given BinaryWriter.
19367
+ * @param {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} message
19368
+ * @param {!jspb.BinaryWriter} writer
19369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19370
+ */
19371
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.serializeBinaryToWriter = function(message, writer) {
19372
+ var f = undefined;
19373
+ f = message.getAdUserKey();
19374
+ if (f != null) {
19375
+ writer.writeMessage(
19376
+ 1,
19377
+ f,
19378
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
19379
+ );
19380
+ }
19381
+ f = message.getDisplayName();
19382
+ if (f != null) {
19383
+ writer.writeMessage(
19384
+ 2,
19385
+ f,
19386
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
19387
+ );
19388
+ }
19389
+ };
19390
+
19391
+
19392
+ /**
19393
+ * optional google.protobuf.StringValue ad_user_key = 1;
19394
+ * @return {?proto.google.protobuf.StringValue}
19395
+ */
19396
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.getAdUserKey = function() {
19397
+ return /** @type{?proto.google.protobuf.StringValue} */ (
19398
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
19399
+ };
19400
+
19401
+
19402
+ /**
19403
+ * @param {?proto.google.protobuf.StringValue|undefined} value
19404
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
19405
+ */
19406
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.setAdUserKey = function(value) {
19407
+ return jspb.Message.setWrapperField(this, 1, value);
19408
+ };
19409
+
19410
+
19411
+ /**
19412
+ * Clears the message field making it undefined.
19413
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
19414
+ */
19415
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.clearAdUserKey = function() {
19416
+ return this.setAdUserKey(undefined);
19417
+ };
19418
+
19419
+
19420
+ /**
19421
+ * Returns whether this field is set.
19422
+ * @return {boolean}
19423
+ */
19424
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.hasAdUserKey = function() {
19425
+ return jspb.Message.getField(this, 1) != null;
19426
+ };
19427
+
19428
+
19429
+ /**
19430
+ * optional google.protobuf.StringValue display_name = 2;
19431
+ * @return {?proto.google.protobuf.StringValue}
19432
+ */
19433
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.getDisplayName = function() {
19434
+ return /** @type{?proto.google.protobuf.StringValue} */ (
19435
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
19436
+ };
19437
+
19438
+
19439
+ /**
19440
+ * @param {?proto.google.protobuf.StringValue|undefined} value
19441
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
19442
+ */
19443
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.setDisplayName = function(value) {
19444
+ return jspb.Message.setWrapperField(this, 2, value);
19445
+ };
19446
+
19447
+
19448
+ /**
19449
+ * Clears the message field making it undefined.
19450
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.DirectReport} returns this
19451
+ */
19452
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.clearDisplayName = function() {
19453
+ return this.setDisplayName(undefined);
19454
+ };
19455
+
19456
+
19457
+ /**
19458
+ * Returns whether this field is set.
19459
+ * @return {boolean}
19460
+ */
19461
+ proto.com.lansweeper.discovery.sensor.api.v1.DirectReport.prototype.hasDisplayName = function() {
19462
+ return jspb.Message.getField(this, 2) != null;
19463
+ };
19464
+
19465
+
19406
19466
 
19407
19467
  /**
19408
19468
  * List of repeated fields within this message type.