@lansweeper/discovery-cloud-proto 0.0.12 → 0.0.14

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.
@@ -5,8 +5,9 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
- import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
9
8
  import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
9
+ import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
10
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
10
11
 
11
12
  export class CloudEntity extends jspb.Message {
12
13
  getEntityName(): string;
@@ -34,6 +35,19 @@ export class CloudEntity extends jspb.Message {
34
35
  clearPublicCloudProperties(): void;
35
36
  getPublicCloudProperties(): google_protobuf_any_pb.Any | undefined;
36
37
  setPublicCloudProperties(value?: google_protobuf_any_pb.Any): CloudEntity;
38
+ getEnvironmentId(): string;
39
+ setEnvironmentId(value: string): CloudEntity;
40
+ getCloudProvider(): string;
41
+ setCloudProvider(value: string): CloudEntity;
42
+
43
+ hasRegionId(): boolean;
44
+ clearRegionId(): void;
45
+ getRegionId(): string | undefined;
46
+ setRegionId(value: string): CloudEntity;
47
+ clearScanErrorList(): void;
48
+ getScanErrorList(): Array<ScanError>;
49
+ setScanErrorList(value: Array<ScanError>): CloudEntity;
50
+ addScanError(value?: ScanError, index?: number): ScanError;
37
51
 
38
52
  serializeBinary(): Uint8Array;
39
53
  toObject(includeInstance?: boolean): CloudEntity.AsObject;
@@ -55,6 +69,51 @@ export namespace CloudEntity {
55
69
  ipAddress?: string,
56
70
  mac?: string,
57
71
  publicCloudProperties?: google_protobuf_any_pb.Any.AsObject,
72
+ environmentId: string,
73
+ cloudProvider: string,
74
+ regionId?: string,
75
+ scanErrorList: Array<ScanError.AsObject>,
76
+ }
77
+ }
78
+
79
+ export class ScanError extends jspb.Message {
80
+ getSection(): string;
81
+ setSection(value: string): ScanError;
82
+ getError(): string;
83
+ setError(value: string): ScanError;
84
+
85
+ hasSource(): boolean;
86
+ clearSource(): void;
87
+ getSource(): string | undefined;
88
+ setSource(value: string): ScanError;
89
+
90
+ hasTimestamp(): boolean;
91
+ clearTimestamp(): void;
92
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
93
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): ScanError;
94
+
95
+ hasDuration(): boolean;
96
+ clearDuration(): void;
97
+ getDuration(): number | undefined;
98
+ setDuration(value: number): ScanError;
99
+
100
+ serializeBinary(): Uint8Array;
101
+ toObject(includeInstance?: boolean): ScanError.AsObject;
102
+ static toObject(includeInstance: boolean, msg: ScanError): ScanError.AsObject;
103
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
104
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
105
+ static serializeBinaryToWriter(message: ScanError, writer: jspb.BinaryWriter): void;
106
+ static deserializeBinary(bytes: Uint8Array): ScanError;
107
+ static deserializeBinaryFromReader(message: ScanError, reader: jspb.BinaryReader): ScanError;
108
+ }
109
+
110
+ export namespace ScanError {
111
+ export type AsObject = {
112
+ section: string,
113
+ error: string,
114
+ source?: string,
115
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
116
+ duration?: number,
58
117
  }
59
118
  }
60
119
 
@@ -21,10 +21,12 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
- var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
25
- goog.object.extend(proto, google_protobuf_wrappers_pb);
26
24
  var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
27
25
  goog.object.extend(proto, google_protobuf_any_pb);
26
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
27
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
28
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
29
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
28
30
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ADKObject', null, global);
29
31
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.AmazonAPIGateway', null, global);
30
32
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.AmazonAPIGatewayMethods', null, global);
@@ -521,6 +523,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.KubernetesPodCond
521
523
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.KubernetesService', null, global);
522
524
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ResourceBilling', null, global);
523
525
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.Route53RecordSet', null, global);
526
+ goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ScanError', null, global);
524
527
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ScanningIssues', null, global);
525
528
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ServiceAccount', null, global);
526
529
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.SessionHostHealthStatus', null, global);
@@ -537,7 +540,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.TargetProperties'
537
540
  * @constructor
538
541
  */
539
542
  proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity = function(opt_data) {
540
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
543
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.repeatedFields_, null);
541
544
  };
542
545
  goog.inherits(proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity, jspb.Message);
543
546
  if (goog.DEBUG && !COMPILED) {
@@ -547,6 +550,27 @@ if (goog.DEBUG && !COMPILED) {
547
550
  */
548
551
  proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.displayName = 'proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity';
549
552
  }
553
+ /**
554
+ * Generated by JsPbCodeGenerator.
555
+ * @param {Array=} opt_data Optional initial data array, typically from a
556
+ * server response, or constructed directly in Javascript. The array is used
557
+ * in place and becomes part of the constructed object. It is not cloned.
558
+ * If no data is provided, the constructed object will be empty, but still
559
+ * valid.
560
+ * @extends {jspb.Message}
561
+ * @constructor
562
+ */
563
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError = function(opt_data) {
564
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
565
+ };
566
+ goog.inherits(proto.com.lansweeper.discovery.cloud.api.v1.ScanError, jspb.Message);
567
+ if (goog.DEBUG && !COMPILED) {
568
+ /**
569
+ * @public
570
+ * @override
571
+ */
572
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.displayName = 'proto.com.lansweeper.discovery.cloud.api.v1.ScanError';
573
+ }
550
574
  /**
551
575
  * Generated by JsPbCodeGenerator.
552
576
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11048,6 +11072,13 @@ if (goog.DEBUG && !COMPILED) {
11048
11072
  proto.com.lansweeper.discovery.cloud.api.v1.AmazonWorkspaceDirectory.displayName = 'proto.com.lansweeper.discovery.cloud.api.v1.AmazonWorkspaceDirectory';
11049
11073
  }
11050
11074
 
11075
+ /**
11076
+ * List of repeated fields within this message type.
11077
+ * @private {!Array<number>}
11078
+ * @const
11079
+ */
11080
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.repeatedFields_ = [12];
11081
+
11051
11082
 
11052
11083
 
11053
11084
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -11086,7 +11117,12 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.toObject = function(incl
11086
11117
  assetTypeName: jspb.Message.getFieldWithDefault(msg, 5, ""),
11087
11118
  ipAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
11088
11119
  mac: jspb.Message.getFieldWithDefault(msg, 7, ""),
11089
- publicCloudProperties: (f = msg.getPublicCloudProperties()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
11120
+ publicCloudProperties: (f = msg.getPublicCloudProperties()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
11121
+ environmentId: jspb.Message.getFieldWithDefault(msg, 9, ""),
11122
+ cloudProvider: jspb.Message.getFieldWithDefault(msg, 10, ""),
11123
+ regionId: jspb.Message.getFieldWithDefault(msg, 11, ""),
11124
+ scanErrorList: jspb.Message.toObjectList(msg.getScanErrorList(),
11125
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.toObject, includeInstance)
11090
11126
  };
11091
11127
 
11092
11128
  if (includeInstance) {
@@ -11156,6 +11192,23 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.deserializeBinaryFromRea
11156
11192
  reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
11157
11193
  msg.setPublicCloudProperties(value);
11158
11194
  break;
11195
+ case 9:
11196
+ var value = /** @type {string} */ (reader.readString());
11197
+ msg.setEnvironmentId(value);
11198
+ break;
11199
+ case 10:
11200
+ var value = /** @type {string} */ (reader.readString());
11201
+ msg.setCloudProvider(value);
11202
+ break;
11203
+ case 11:
11204
+ var value = /** @type {string} */ (reader.readString());
11205
+ msg.setRegionId(value);
11206
+ break;
11207
+ case 12:
11208
+ var value = new proto.com.lansweeper.discovery.cloud.api.v1.ScanError;
11209
+ reader.readMessage(value,proto.com.lansweeper.discovery.cloud.api.v1.ScanError.deserializeBinaryFromReader);
11210
+ msg.addScanError(value);
11211
+ break;
11159
11212
  default:
11160
11213
  reader.skipField();
11161
11214
  break;
@@ -11242,6 +11295,35 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.serializeBinaryToWriter
11242
11295
  google_protobuf_any_pb.Any.serializeBinaryToWriter
11243
11296
  );
11244
11297
  }
11298
+ f = message.getEnvironmentId();
11299
+ if (f.length > 0) {
11300
+ writer.writeString(
11301
+ 9,
11302
+ f
11303
+ );
11304
+ }
11305
+ f = message.getCloudProvider();
11306
+ if (f.length > 0) {
11307
+ writer.writeString(
11308
+ 10,
11309
+ f
11310
+ );
11311
+ }
11312
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
11313
+ if (f != null) {
11314
+ writer.writeString(
11315
+ 11,
11316
+ f
11317
+ );
11318
+ }
11319
+ f = message.getScanErrorList();
11320
+ if (f.length > 0) {
11321
+ writer.writeRepeatedMessage(
11322
+ 12,
11323
+ f,
11324
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.serializeBinaryToWriter
11325
+ );
11326
+ }
11245
11327
  };
11246
11328
 
11247
11329
 
@@ -11444,6 +11526,423 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.hasPublicCloud
11444
11526
  };
11445
11527
 
11446
11528
 
11529
+ /**
11530
+ * optional string environment_id = 9;
11531
+ * @return {string}
11532
+ */
11533
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getEnvironmentId = function() {
11534
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
11535
+ };
11536
+
11537
+
11538
+ /**
11539
+ * @param {string} value
11540
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11541
+ */
11542
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setEnvironmentId = function(value) {
11543
+ return jspb.Message.setProto3StringField(this, 9, value);
11544
+ };
11545
+
11546
+
11547
+ /**
11548
+ * optional string cloud_provider = 10;
11549
+ * @return {string}
11550
+ */
11551
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getCloudProvider = function() {
11552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
11553
+ };
11554
+
11555
+
11556
+ /**
11557
+ * @param {string} value
11558
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11559
+ */
11560
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setCloudProvider = function(value) {
11561
+ return jspb.Message.setProto3StringField(this, 10, value);
11562
+ };
11563
+
11564
+
11565
+ /**
11566
+ * optional string region_id = 11;
11567
+ * @return {string}
11568
+ */
11569
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getRegionId = function() {
11570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
11571
+ };
11572
+
11573
+
11574
+ /**
11575
+ * @param {string} value
11576
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11577
+ */
11578
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setRegionId = function(value) {
11579
+ return jspb.Message.setField(this, 11, value);
11580
+ };
11581
+
11582
+
11583
+ /**
11584
+ * Clears the field making it undefined.
11585
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11586
+ */
11587
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.clearRegionId = function() {
11588
+ return jspb.Message.setField(this, 11, undefined);
11589
+ };
11590
+
11591
+
11592
+ /**
11593
+ * Returns whether this field is set.
11594
+ * @return {boolean}
11595
+ */
11596
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.hasRegionId = function() {
11597
+ return jspb.Message.getField(this, 11) != null;
11598
+ };
11599
+
11600
+
11601
+ /**
11602
+ * repeated ScanError scan_error = 12;
11603
+ * @return {!Array<!proto.com.lansweeper.discovery.cloud.api.v1.ScanError>}
11604
+ */
11605
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getScanErrorList = function() {
11606
+ return /** @type{!Array<!proto.com.lansweeper.discovery.cloud.api.v1.ScanError>} */ (
11607
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.cloud.api.v1.ScanError, 12));
11608
+ };
11609
+
11610
+
11611
+ /**
11612
+ * @param {!Array<!proto.com.lansweeper.discovery.cloud.api.v1.ScanError>} value
11613
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11614
+ */
11615
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setScanErrorList = function(value) {
11616
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
11617
+ };
11618
+
11619
+
11620
+ /**
11621
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError=} opt_value
11622
+ * @param {number=} opt_index
11623
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError}
11624
+ */
11625
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.addScanError = function(opt_value, opt_index) {
11626
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.com.lansweeper.discovery.cloud.api.v1.ScanError, opt_index);
11627
+ };
11628
+
11629
+
11630
+ /**
11631
+ * Clears the list making it empty but non-null.
11632
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11633
+ */
11634
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.clearScanErrorList = function() {
11635
+ return this.setScanErrorList([]);
11636
+ };
11637
+
11638
+
11639
+
11640
+
11641
+
11642
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11643
+ /**
11644
+ * Creates an object representation of this proto.
11645
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11646
+ * Optional fields that are not set will be set to undefined.
11647
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11648
+ * For the list of reserved names please see:
11649
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11650
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11651
+ * JSPB instance for transitional soy proto support:
11652
+ * http://goto/soy-param-migration
11653
+ * @return {!Object}
11654
+ */
11655
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.toObject = function(opt_includeInstance) {
11656
+ return proto.com.lansweeper.discovery.cloud.api.v1.ScanError.toObject(opt_includeInstance, this);
11657
+ };
11658
+
11659
+
11660
+ /**
11661
+ * Static version of the {@see toObject} method.
11662
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11663
+ * the JSPB instance for transitional soy proto support:
11664
+ * http://goto/soy-param-migration
11665
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} msg The msg instance to transform.
11666
+ * @return {!Object}
11667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11668
+ */
11669
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.toObject = function(includeInstance, msg) {
11670
+ var f, obj = {
11671
+ section: jspb.Message.getFieldWithDefault(msg, 1, ""),
11672
+ error: jspb.Message.getFieldWithDefault(msg, 2, ""),
11673
+ source: jspb.Message.getFieldWithDefault(msg, 3, ""),
11674
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
11675
+ duration: jspb.Message.getFieldWithDefault(msg, 5, 0)
11676
+ };
11677
+
11678
+ if (includeInstance) {
11679
+ obj.$jspbMessageInstance = msg;
11680
+ }
11681
+ return obj;
11682
+ };
11683
+ }
11684
+
11685
+
11686
+ /**
11687
+ * Deserializes binary data (in protobuf wire format).
11688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11689
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError}
11690
+ */
11691
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.deserializeBinary = function(bytes) {
11692
+ var reader = new jspb.BinaryReader(bytes);
11693
+ var msg = new proto.com.lansweeper.discovery.cloud.api.v1.ScanError;
11694
+ return proto.com.lansweeper.discovery.cloud.api.v1.ScanError.deserializeBinaryFromReader(msg, reader);
11695
+ };
11696
+
11697
+
11698
+ /**
11699
+ * Deserializes binary data (in protobuf wire format) from the
11700
+ * given reader into the given message object.
11701
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} msg The message object to deserialize into.
11702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11703
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError}
11704
+ */
11705
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.deserializeBinaryFromReader = function(msg, reader) {
11706
+ while (reader.nextField()) {
11707
+ if (reader.isEndGroup()) {
11708
+ break;
11709
+ }
11710
+ var field = reader.getFieldNumber();
11711
+ switch (field) {
11712
+ case 1:
11713
+ var value = /** @type {string} */ (reader.readString());
11714
+ msg.setSection(value);
11715
+ break;
11716
+ case 2:
11717
+ var value = /** @type {string} */ (reader.readString());
11718
+ msg.setError(value);
11719
+ break;
11720
+ case 3:
11721
+ var value = /** @type {string} */ (reader.readString());
11722
+ msg.setSource(value);
11723
+ break;
11724
+ case 4:
11725
+ var value = new google_protobuf_timestamp_pb.Timestamp;
11726
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
11727
+ msg.setTimestamp(value);
11728
+ break;
11729
+ case 5:
11730
+ var value = /** @type {number} */ (reader.readInt64());
11731
+ msg.setDuration(value);
11732
+ break;
11733
+ default:
11734
+ reader.skipField();
11735
+ break;
11736
+ }
11737
+ }
11738
+ return msg;
11739
+ };
11740
+
11741
+
11742
+ /**
11743
+ * Serializes the message to binary data (in protobuf wire format).
11744
+ * @return {!Uint8Array}
11745
+ */
11746
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.serializeBinary = function() {
11747
+ var writer = new jspb.BinaryWriter();
11748
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.serializeBinaryToWriter(this, writer);
11749
+ return writer.getResultBuffer();
11750
+ };
11751
+
11752
+
11753
+ /**
11754
+ * Serializes the given message to binary data (in protobuf wire
11755
+ * format), writing to the given BinaryWriter.
11756
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} message
11757
+ * @param {!jspb.BinaryWriter} writer
11758
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11759
+ */
11760
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.serializeBinaryToWriter = function(message, writer) {
11761
+ var f = undefined;
11762
+ f = message.getSection();
11763
+ if (f.length > 0) {
11764
+ writer.writeString(
11765
+ 1,
11766
+ f
11767
+ );
11768
+ }
11769
+ f = message.getError();
11770
+ if (f.length > 0) {
11771
+ writer.writeString(
11772
+ 2,
11773
+ f
11774
+ );
11775
+ }
11776
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
11777
+ if (f != null) {
11778
+ writer.writeString(
11779
+ 3,
11780
+ f
11781
+ );
11782
+ }
11783
+ f = message.getTimestamp();
11784
+ if (f != null) {
11785
+ writer.writeMessage(
11786
+ 4,
11787
+ f,
11788
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11789
+ );
11790
+ }
11791
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
11792
+ if (f != null) {
11793
+ writer.writeInt64(
11794
+ 5,
11795
+ f
11796
+ );
11797
+ }
11798
+ };
11799
+
11800
+
11801
+ /**
11802
+ * optional string section = 1;
11803
+ * @return {string}
11804
+ */
11805
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.getSection = function() {
11806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11807
+ };
11808
+
11809
+
11810
+ /**
11811
+ * @param {string} value
11812
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11813
+ */
11814
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.setSection = function(value) {
11815
+ return jspb.Message.setProto3StringField(this, 1, value);
11816
+ };
11817
+
11818
+
11819
+ /**
11820
+ * optional string error = 2;
11821
+ * @return {string}
11822
+ */
11823
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.getError = function() {
11824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11825
+ };
11826
+
11827
+
11828
+ /**
11829
+ * @param {string} value
11830
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11831
+ */
11832
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.setError = function(value) {
11833
+ return jspb.Message.setProto3StringField(this, 2, value);
11834
+ };
11835
+
11836
+
11837
+ /**
11838
+ * optional string source = 3;
11839
+ * @return {string}
11840
+ */
11841
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.getSource = function() {
11842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11843
+ };
11844
+
11845
+
11846
+ /**
11847
+ * @param {string} value
11848
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11849
+ */
11850
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.setSource = function(value) {
11851
+ return jspb.Message.setField(this, 3, value);
11852
+ };
11853
+
11854
+
11855
+ /**
11856
+ * Clears the field making it undefined.
11857
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11858
+ */
11859
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.clearSource = function() {
11860
+ return jspb.Message.setField(this, 3, undefined);
11861
+ };
11862
+
11863
+
11864
+ /**
11865
+ * Returns whether this field is set.
11866
+ * @return {boolean}
11867
+ */
11868
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.hasSource = function() {
11869
+ return jspb.Message.getField(this, 3) != null;
11870
+ };
11871
+
11872
+
11873
+ /**
11874
+ * optional google.protobuf.Timestamp timestamp = 4;
11875
+ * @return {?proto.google.protobuf.Timestamp}
11876
+ */
11877
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.getTimestamp = function() {
11878
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11879
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
11880
+ };
11881
+
11882
+
11883
+ /**
11884
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11885
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11886
+ */
11887
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.setTimestamp = function(value) {
11888
+ return jspb.Message.setWrapperField(this, 4, value);
11889
+ };
11890
+
11891
+
11892
+ /**
11893
+ * Clears the message field making it undefined.
11894
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11895
+ */
11896
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.clearTimestamp = function() {
11897
+ return this.setTimestamp(undefined);
11898
+ };
11899
+
11900
+
11901
+ /**
11902
+ * Returns whether this field is set.
11903
+ * @return {boolean}
11904
+ */
11905
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.hasTimestamp = function() {
11906
+ return jspb.Message.getField(this, 4) != null;
11907
+ };
11908
+
11909
+
11910
+ /**
11911
+ * optional int64 duration = 5;
11912
+ * @return {number}
11913
+ */
11914
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.getDuration = function() {
11915
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11916
+ };
11917
+
11918
+
11919
+ /**
11920
+ * @param {number} value
11921
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11922
+ */
11923
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.setDuration = function(value) {
11924
+ return jspb.Message.setField(this, 5, value);
11925
+ };
11926
+
11927
+
11928
+ /**
11929
+ * Clears the field making it undefined.
11930
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.ScanError} returns this
11931
+ */
11932
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.clearDuration = function() {
11933
+ return jspb.Message.setField(this, 5, undefined);
11934
+ };
11935
+
11936
+
11937
+ /**
11938
+ * Returns whether this field is set.
11939
+ * @return {boolean}
11940
+ */
11941
+ proto.com.lansweeper.discovery.cloud.api.v1.ScanError.prototype.hasDuration = function() {
11942
+ return jspb.Message.getField(this, 5) != null;
11943
+ };
11944
+
11945
+
11447
11946
 
11448
11947
  /**
11449
11948
  * List of repeated fields within this message type.