@lansweeper/discovery-sensor-proto 2.14.2 → 2.15.2

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.
@@ -114,6 +114,12 @@ export class BasicInfo extends jspb.Message {
114
114
  setDmiDecodePath(value?: google_protobuf_wrappers_pb.StringValue): BasicInfo;
115
115
  getIsHalAvailable(): boolean;
116
116
  setIsHalAvailable(value: boolean): BasicInfo;
117
+ getIsTtyRequired(): boolean;
118
+ setIsTtyRequired(value: boolean): BasicInfo;
119
+ clearCommandInformationList(): void;
120
+ getCommandInformationList(): Array<CommandInformation>;
121
+ setCommandInformationList(value: Array<CommandInformation>): BasicInfo;
122
+ addCommandInformation(value?: CommandInformation, index?: number): CommandInformation;
117
123
 
118
124
  serializeBinary(): Uint8Array;
119
125
  toObject(includeInstance?: boolean): BasicInfo.AsObject;
@@ -131,6 +137,8 @@ export namespace BasicInfo {
131
137
  isSudoAvailable: boolean,
132
138
  dmiDecodePath?: google_protobuf_wrappers_pb.StringValue.AsObject,
133
139
  isHalAvailable: boolean,
140
+ isTtyRequired: boolean,
141
+ commandInformationList: Array<CommandInformation.AsObject>,
134
142
  }
135
143
  }
136
144
 
@@ -193,6 +201,47 @@ export namespace Bios {
193
201
  }
194
202
  }
195
203
 
204
+ export class CommandInformation extends jspb.Message {
205
+
206
+ hasCommand(): boolean;
207
+ clearCommand(): void;
208
+ getCommand(): google_protobuf_wrappers_pb.StringValue | undefined;
209
+ setCommand(value?: google_protobuf_wrappers_pb.StringValue): CommandInformation;
210
+
211
+ hasIsCommandAvailable(): boolean;
212
+ clearIsCommandAvailable(): void;
213
+ getIsCommandAvailable(): google_protobuf_wrappers_pb.BoolValue | undefined;
214
+ setIsCommandAvailable(value?: google_protobuf_wrappers_pb.BoolValue): CommandInformation;
215
+
216
+ hasIsSudoAvailable(): boolean;
217
+ clearIsSudoAvailable(): void;
218
+ getIsSudoAvailable(): google_protobuf_wrappers_pb.BoolValue | undefined;
219
+ setIsSudoAvailable(value?: google_protobuf_wrappers_pb.BoolValue): CommandInformation;
220
+
221
+ hasCommandPath(): boolean;
222
+ clearCommandPath(): void;
223
+ getCommandPath(): google_protobuf_wrappers_pb.StringValue | undefined;
224
+ setCommandPath(value?: google_protobuf_wrappers_pb.StringValue): CommandInformation;
225
+
226
+ serializeBinary(): Uint8Array;
227
+ toObject(includeInstance?: boolean): CommandInformation.AsObject;
228
+ static toObject(includeInstance: boolean, msg: CommandInformation): CommandInformation.AsObject;
229
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
230
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
231
+ static serializeBinaryToWriter(message: CommandInformation, writer: jspb.BinaryWriter): void;
232
+ static deserializeBinary(bytes: Uint8Array): CommandInformation;
233
+ static deserializeBinaryFromReader(message: CommandInformation, reader: jspb.BinaryReader): CommandInformation;
234
+ }
235
+
236
+ export namespace CommandInformation {
237
+ export type AsObject = {
238
+ command?: google_protobuf_wrappers_pb.StringValue.AsObject,
239
+ isCommandAvailable?: google_protobuf_wrappers_pb.BoolValue.AsObject,
240
+ isSudoAvailable?: google_protobuf_wrappers_pb.BoolValue.AsObject,
241
+ commandPath?: google_protobuf_wrappers_pb.StringValue.AsObject,
242
+ }
243
+ }
244
+
196
245
  export class ComputerSystem extends jspb.Message {
197
246
  getUptime(): number;
198
247
  setUptime(value: number): ComputerSystem;
@@ -22,6 +22,7 @@ goog.object.extend(proto, google_protobuf_wrappers_pb);
22
22
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.Baseboard', null, global);
23
23
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo', null, global);
24
24
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.Bios', null, global);
25
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation', null, global);
25
26
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.ComputerSystem', null, global);
26
27
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.FileInfoEntry', null, global);
27
28
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.unix.v1.FileInfos', null, global);
@@ -119,7 +120,7 @@ if (goog.DEBUG && !COMPILED) {
119
120
  * @constructor
120
121
  */
121
122
  proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo = function(opt_data) {
122
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
123
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.repeatedFields_, null);
123
124
  };
124
125
  goog.inherits(proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo, jspb.Message);
125
126
  if (goog.DEBUG && !COMPILED) {
@@ -150,6 +151,27 @@ if (goog.DEBUG && !COMPILED) {
150
151
  */
151
152
  proto.com.lansweeper.discovery.sensor.unix.v1.Bios.displayName = 'proto.com.lansweeper.discovery.sensor.unix.v1.Bios';
152
153
  }
154
+ /**
155
+ * Generated by JsPbCodeGenerator.
156
+ * @param {Array=} opt_data Optional initial data array, typically from a
157
+ * server response, or constructed directly in Javascript. The array is used
158
+ * in place and becomes part of the constructed object. It is not cloned.
159
+ * If no data is provided, the constructed object will be empty, but still
160
+ * valid.
161
+ * @extends {jspb.Message}
162
+ * @constructor
163
+ */
164
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation = function(opt_data) {
165
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
+ };
167
+ goog.inherits(proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation, jspb.Message);
168
+ if (goog.DEBUG && !COMPILED) {
169
+ /**
170
+ * @public
171
+ * @override
172
+ */
173
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.displayName = 'proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation';
174
+ }
153
175
  /**
154
176
  * Generated by JsPbCodeGenerator.
155
177
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1695,6 +1717,13 @@ proto.com.lansweeper.discovery.sensor.unix.v1.Baseboard.prototype.hasType = func
1695
1717
 
1696
1718
 
1697
1719
 
1720
+ /**
1721
+ * List of repeated fields within this message type.
1722
+ * @private {!Array<number>}
1723
+ * @const
1724
+ */
1725
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.repeatedFields_ = [6];
1726
+
1698
1727
 
1699
1728
 
1700
1729
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1729,7 +1758,10 @@ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.toObject = function(incl
1729
1758
  isDmidecodeAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1730
1759
  isSudoAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1731
1760
  dmiDecodePath: (f = msg.getDmiDecodePath()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1732
- isHalAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
1761
+ isHalAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1762
+ isTtyRequired: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
1763
+ commandInformationList: jspb.Message.toObjectList(msg.getCommandInformationList(),
1764
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.toObject, includeInstance)
1733
1765
  };
1734
1766
 
1735
1767
  if (includeInstance) {
@@ -1783,6 +1815,15 @@ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.deserializeBinaryFromRea
1783
1815
  var value = /** @type {boolean} */ (reader.readBool());
1784
1816
  msg.setIsHalAvailable(value);
1785
1817
  break;
1818
+ case 5:
1819
+ var value = /** @type {boolean} */ (reader.readBool());
1820
+ msg.setIsTtyRequired(value);
1821
+ break;
1822
+ case 6:
1823
+ var value = new proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation;
1824
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.deserializeBinaryFromReader);
1825
+ msg.addCommandInformation(value);
1826
+ break;
1786
1827
  default:
1787
1828
  reader.skipField();
1788
1829
  break;
@@ -1841,6 +1882,21 @@ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.serializeBinaryToWriter
1841
1882
  f
1842
1883
  );
1843
1884
  }
1885
+ f = message.getIsTtyRequired();
1886
+ if (f) {
1887
+ writer.writeBool(
1888
+ 5,
1889
+ f
1890
+ );
1891
+ }
1892
+ f = message.getCommandInformationList();
1893
+ if (f.length > 0) {
1894
+ writer.writeRepeatedMessage(
1895
+ 6,
1896
+ f,
1897
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.serializeBinaryToWriter
1898
+ );
1899
+ }
1844
1900
  };
1845
1901
 
1846
1902
 
@@ -1935,6 +1991,62 @@ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.setIsHalAvaila
1935
1991
  };
1936
1992
 
1937
1993
 
1994
+ /**
1995
+ * optional bool is_tty_required = 5;
1996
+ * @return {boolean}
1997
+ */
1998
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.getIsTtyRequired = function() {
1999
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * @param {boolean} value
2005
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo} returns this
2006
+ */
2007
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.setIsTtyRequired = function(value) {
2008
+ return jspb.Message.setProto3BooleanField(this, 5, value);
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * repeated CommandInformation command_information = 6;
2014
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation>}
2015
+ */
2016
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.getCommandInformationList = function() {
2017
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation>} */ (
2018
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation, 6));
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation>} value
2024
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo} returns this
2025
+ */
2026
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.setCommandInformationList = function(value) {
2027
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * @param {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation=} opt_value
2033
+ * @param {number=} opt_index
2034
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation}
2035
+ */
2036
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.addCommandInformation = function(opt_value, opt_index) {
2037
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation, opt_index);
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * Clears the list making it empty but non-null.
2043
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo} returns this
2044
+ */
2045
+ proto.com.lansweeper.discovery.sensor.unix.v1.BasicInfo.prototype.clearCommandInformationList = function() {
2046
+ return this.setCommandInformationList([]);
2047
+ };
2048
+
2049
+
1938
2050
 
1939
2051
 
1940
2052
 
@@ -2395,6 +2507,310 @@ proto.com.lansweeper.discovery.sensor.unix.v1.Bios.prototype.hasReleaseDateUtc =
2395
2507
 
2396
2508
 
2397
2509
 
2510
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2511
+ /**
2512
+ * Creates an object representation of this proto.
2513
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2514
+ * Optional fields that are not set will be set to undefined.
2515
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2516
+ * For the list of reserved names please see:
2517
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2518
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2519
+ * JSPB instance for transitional soy proto support:
2520
+ * http://goto/soy-param-migration
2521
+ * @return {!Object}
2522
+ */
2523
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.toObject = function(opt_includeInstance) {
2524
+ return proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.toObject(opt_includeInstance, this);
2525
+ };
2526
+
2527
+
2528
+ /**
2529
+ * Static version of the {@see toObject} method.
2530
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2531
+ * the JSPB instance for transitional soy proto support:
2532
+ * http://goto/soy-param-migration
2533
+ * @param {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} msg The msg instance to transform.
2534
+ * @return {!Object}
2535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2536
+ */
2537
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.toObject = function(includeInstance, msg) {
2538
+ var f, obj = {
2539
+ command: (f = msg.getCommand()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2540
+ isCommandAvailable: (f = msg.getIsCommandAvailable()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
2541
+ isSudoAvailable: (f = msg.getIsSudoAvailable()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
2542
+ commandPath: (f = msg.getCommandPath()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
2543
+ };
2544
+
2545
+ if (includeInstance) {
2546
+ obj.$jspbMessageInstance = msg;
2547
+ }
2548
+ return obj;
2549
+ };
2550
+ }
2551
+
2552
+
2553
+ /**
2554
+ * Deserializes binary data (in protobuf wire format).
2555
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2556
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation}
2557
+ */
2558
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.deserializeBinary = function(bytes) {
2559
+ var reader = new jspb.BinaryReader(bytes);
2560
+ var msg = new proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation;
2561
+ return proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.deserializeBinaryFromReader(msg, reader);
2562
+ };
2563
+
2564
+
2565
+ /**
2566
+ * Deserializes binary data (in protobuf wire format) from the
2567
+ * given reader into the given message object.
2568
+ * @param {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} msg The message object to deserialize into.
2569
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2570
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation}
2571
+ */
2572
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.deserializeBinaryFromReader = function(msg, reader) {
2573
+ while (reader.nextField()) {
2574
+ if (reader.isEndGroup()) {
2575
+ break;
2576
+ }
2577
+ var field = reader.getFieldNumber();
2578
+ switch (field) {
2579
+ case 1:
2580
+ var value = new google_protobuf_wrappers_pb.StringValue;
2581
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2582
+ msg.setCommand(value);
2583
+ break;
2584
+ case 2:
2585
+ var value = new google_protobuf_wrappers_pb.BoolValue;
2586
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
2587
+ msg.setIsCommandAvailable(value);
2588
+ break;
2589
+ case 3:
2590
+ var value = new google_protobuf_wrappers_pb.BoolValue;
2591
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
2592
+ msg.setIsSudoAvailable(value);
2593
+ break;
2594
+ case 4:
2595
+ var value = new google_protobuf_wrappers_pb.StringValue;
2596
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2597
+ msg.setCommandPath(value);
2598
+ break;
2599
+ default:
2600
+ reader.skipField();
2601
+ break;
2602
+ }
2603
+ }
2604
+ return msg;
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * Serializes the message to binary data (in protobuf wire format).
2610
+ * @return {!Uint8Array}
2611
+ */
2612
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.serializeBinary = function() {
2613
+ var writer = new jspb.BinaryWriter();
2614
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.serializeBinaryToWriter(this, writer);
2615
+ return writer.getResultBuffer();
2616
+ };
2617
+
2618
+
2619
+ /**
2620
+ * Serializes the given message to binary data (in protobuf wire
2621
+ * format), writing to the given BinaryWriter.
2622
+ * @param {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} message
2623
+ * @param {!jspb.BinaryWriter} writer
2624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2625
+ */
2626
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.serializeBinaryToWriter = function(message, writer) {
2627
+ var f = undefined;
2628
+ f = message.getCommand();
2629
+ if (f != null) {
2630
+ writer.writeMessage(
2631
+ 1,
2632
+ f,
2633
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2634
+ );
2635
+ }
2636
+ f = message.getIsCommandAvailable();
2637
+ if (f != null) {
2638
+ writer.writeMessage(
2639
+ 2,
2640
+ f,
2641
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
2642
+ );
2643
+ }
2644
+ f = message.getIsSudoAvailable();
2645
+ if (f != null) {
2646
+ writer.writeMessage(
2647
+ 3,
2648
+ f,
2649
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
2650
+ );
2651
+ }
2652
+ f = message.getCommandPath();
2653
+ if (f != null) {
2654
+ writer.writeMessage(
2655
+ 4,
2656
+ f,
2657
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2658
+ );
2659
+ }
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * optional google.protobuf.StringValue command = 1;
2665
+ * @return {?proto.google.protobuf.StringValue}
2666
+ */
2667
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.getCommand = function() {
2668
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2669
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2675
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2676
+ */
2677
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.setCommand = function(value) {
2678
+ return jspb.Message.setWrapperField(this, 1, value);
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * Clears the message field making it undefined.
2684
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2685
+ */
2686
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.clearCommand = function() {
2687
+ return this.setCommand(undefined);
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * Returns whether this field is set.
2693
+ * @return {boolean}
2694
+ */
2695
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.hasCommand = function() {
2696
+ return jspb.Message.getField(this, 1) != null;
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * optional google.protobuf.BoolValue is_command_available = 2;
2702
+ * @return {?proto.google.protobuf.BoolValue}
2703
+ */
2704
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.getIsCommandAvailable = function() {
2705
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
2706
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 2));
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
2712
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2713
+ */
2714
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.setIsCommandAvailable = function(value) {
2715
+ return jspb.Message.setWrapperField(this, 2, value);
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Clears the message field making it undefined.
2721
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2722
+ */
2723
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.clearIsCommandAvailable = function() {
2724
+ return this.setIsCommandAvailable(undefined);
2725
+ };
2726
+
2727
+
2728
+ /**
2729
+ * Returns whether this field is set.
2730
+ * @return {boolean}
2731
+ */
2732
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.hasIsCommandAvailable = function() {
2733
+ return jspb.Message.getField(this, 2) != null;
2734
+ };
2735
+
2736
+
2737
+ /**
2738
+ * optional google.protobuf.BoolValue is_sudo_available = 3;
2739
+ * @return {?proto.google.protobuf.BoolValue}
2740
+ */
2741
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.getIsSudoAvailable = function() {
2742
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
2743
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 3));
2744
+ };
2745
+
2746
+
2747
+ /**
2748
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
2749
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2750
+ */
2751
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.setIsSudoAvailable = function(value) {
2752
+ return jspb.Message.setWrapperField(this, 3, value);
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * Clears the message field making it undefined.
2758
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2759
+ */
2760
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.clearIsSudoAvailable = function() {
2761
+ return this.setIsSudoAvailable(undefined);
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * Returns whether this field is set.
2767
+ * @return {boolean}
2768
+ */
2769
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.hasIsSudoAvailable = function() {
2770
+ return jspb.Message.getField(this, 3) != null;
2771
+ };
2772
+
2773
+
2774
+ /**
2775
+ * optional google.protobuf.StringValue command_path = 4;
2776
+ * @return {?proto.google.protobuf.StringValue}
2777
+ */
2778
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.getCommandPath = function() {
2779
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2780
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2786
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2787
+ */
2788
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.setCommandPath = function(value) {
2789
+ return jspb.Message.setWrapperField(this, 4, value);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * Clears the message field making it undefined.
2795
+ * @return {!proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation} returns this
2796
+ */
2797
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.clearCommandPath = function() {
2798
+ return this.setCommandPath(undefined);
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Returns whether this field is set.
2804
+ * @return {boolean}
2805
+ */
2806
+ proto.com.lansweeper.discovery.sensor.unix.v1.CommandInformation.prototype.hasCommandPath = function() {
2807
+ return jspb.Message.getField(this, 4) != null;
2808
+ };
2809
+
2810
+
2811
+
2812
+
2813
+
2398
2814
  if (jspb.Message.GENERATE_TO_OBJECT) {
2399
2815
  /**
2400
2816
  * Creates an object representation of this proto.