@lansweeper/discovery-sensor-proto 2.29.0 → 2.30.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.
- package/gen-proto/discovery_sections_other_grpc_pb.js +1 -0
- package/gen-proto/discovery_sections_other_pb.d.ts +31 -0
- package/gen-proto/discovery_sections_other_pb.js +199 -0
- package/gen-proto/discovery_sections_windows_pb.d.ts +31 -5
- package/gen-proto/discovery_sections_windows_pb.js +262 -32
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -1
- package/package.json +2 -2
- package/proto/discovery_sections_api.proto +938 -938
- package/proto/discovery_sections_other.proto +14 -0
- package/proto/discovery_sections_windows.proto +7 -2
- package/proto/import/discovery_common.proto +95 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// package: com.lansweeper.discovery.sensor.other.v1
|
|
2
|
+
// file: discovery_sections_other.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as import_discovery_common_pb from "./import/discovery_common_pb";
|
|
9
|
+
|
|
10
|
+
export class SnmpInfo extends jspb.Message {
|
|
11
|
+
|
|
12
|
+
hasData(): boolean;
|
|
13
|
+
clearData(): void;
|
|
14
|
+
getData(): import_discovery_common_pb.SnmpInfo | undefined;
|
|
15
|
+
setData(value?: import_discovery_common_pb.SnmpInfo): SnmpInfo;
|
|
16
|
+
|
|
17
|
+
serializeBinary(): Uint8Array;
|
|
18
|
+
toObject(includeInstance?: boolean): SnmpInfo.AsObject;
|
|
19
|
+
static toObject(includeInstance: boolean, msg: SnmpInfo): SnmpInfo.AsObject;
|
|
20
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
21
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
22
|
+
static serializeBinaryToWriter(message: SnmpInfo, writer: jspb.BinaryWriter): void;
|
|
23
|
+
static deserializeBinary(bytes: Uint8Array): SnmpInfo;
|
|
24
|
+
static deserializeBinaryFromReader(message: SnmpInfo, reader: jspb.BinaryReader): SnmpInfo;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace SnmpInfo {
|
|
28
|
+
export type AsObject = {
|
|
29
|
+
data?: import_discovery_common_pb.SnmpInfo.AsObject,
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
// source: discovery_sections_other.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
var import_discovery_common_pb = require('./import/discovery_common_pb.js');
|
|
25
|
+
goog.object.extend(proto, import_discovery_common_pb);
|
|
26
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo', null, global);
|
|
27
|
+
/**
|
|
28
|
+
* Generated by JsPbCodeGenerator.
|
|
29
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
30
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
31
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
32
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
33
|
+
* valid.
|
|
34
|
+
* @extends {jspb.Message}
|
|
35
|
+
* @constructor
|
|
36
|
+
*/
|
|
37
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo = function(opt_data) {
|
|
38
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
39
|
+
};
|
|
40
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo, jspb.Message);
|
|
41
|
+
if (goog.DEBUG && !COMPILED) {
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @override
|
|
45
|
+
*/
|
|
46
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.displayName = 'proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52
|
+
/**
|
|
53
|
+
* Creates an object representation of this proto.
|
|
54
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55
|
+
* Optional fields that are not set will be set to undefined.
|
|
56
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57
|
+
* For the list of reserved names please see:
|
|
58
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60
|
+
* JSPB instance for transitional soy proto support:
|
|
61
|
+
* http://goto/soy-param-migration
|
|
62
|
+
* @return {!Object}
|
|
63
|
+
*/
|
|
64
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.toObject = function(opt_includeInstance) {
|
|
65
|
+
return proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.toObject(opt_includeInstance, this);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Static version of the {@see toObject} method.
|
|
71
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
72
|
+
* the JSPB instance for transitional soy proto support:
|
|
73
|
+
* http://goto/soy-param-migration
|
|
74
|
+
* @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} msg The msg instance to transform.
|
|
75
|
+
* @return {!Object}
|
|
76
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77
|
+
*/
|
|
78
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.toObject = function(includeInstance, msg) {
|
|
79
|
+
var f, obj = {
|
|
80
|
+
data: (f = msg.getData()) && import_discovery_common_pb.SnmpInfo.toObject(includeInstance, f)
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
if (includeInstance) {
|
|
84
|
+
obj.$jspbMessageInstance = msg;
|
|
85
|
+
}
|
|
86
|
+
return obj;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Deserializes binary data (in protobuf wire format).
|
|
93
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
94
|
+
* @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo}
|
|
95
|
+
*/
|
|
96
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinary = function(bytes) {
|
|
97
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
98
|
+
var msg = new proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo;
|
|
99
|
+
return proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinaryFromReader(msg, reader);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
105
|
+
* given reader into the given message object.
|
|
106
|
+
* @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} msg The message object to deserialize into.
|
|
107
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
108
|
+
* @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo}
|
|
109
|
+
*/
|
|
110
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
111
|
+
while (reader.nextField()) {
|
|
112
|
+
if (reader.isEndGroup()) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
var field = reader.getFieldNumber();
|
|
116
|
+
switch (field) {
|
|
117
|
+
case 1:
|
|
118
|
+
var value = new import_discovery_common_pb.SnmpInfo;
|
|
119
|
+
reader.readMessage(value,import_discovery_common_pb.SnmpInfo.deserializeBinaryFromReader);
|
|
120
|
+
msg.setData(value);
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
reader.skipField();
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return msg;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
133
|
+
* @return {!Uint8Array}
|
|
134
|
+
*/
|
|
135
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.serializeBinary = function() {
|
|
136
|
+
var writer = new jspb.BinaryWriter();
|
|
137
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.serializeBinaryToWriter(this, writer);
|
|
138
|
+
return writer.getResultBuffer();
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
144
|
+
* format), writing to the given BinaryWriter.
|
|
145
|
+
* @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} message
|
|
146
|
+
* @param {!jspb.BinaryWriter} writer
|
|
147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
148
|
+
*/
|
|
149
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.serializeBinaryToWriter = function(message, writer) {
|
|
150
|
+
var f = undefined;
|
|
151
|
+
f = message.getData();
|
|
152
|
+
if (f != null) {
|
|
153
|
+
writer.writeMessage(
|
|
154
|
+
1,
|
|
155
|
+
f,
|
|
156
|
+
import_discovery_common_pb.SnmpInfo.serializeBinaryToWriter
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* optional com.lansweeper.discovery.sensor.common.v1.SnmpInfo data = 1;
|
|
164
|
+
* @return {?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo}
|
|
165
|
+
*/
|
|
166
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.getData = function() {
|
|
167
|
+
return /** @type{?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo} */ (
|
|
168
|
+
jspb.Message.getWrapperField(this, import_discovery_common_pb.SnmpInfo, 1));
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @param {?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo|undefined} value
|
|
174
|
+
* @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} returns this
|
|
175
|
+
*/
|
|
176
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.setData = function(value) {
|
|
177
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Clears the message field making it undefined.
|
|
183
|
+
* @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} returns this
|
|
184
|
+
*/
|
|
185
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.clearData = function() {
|
|
186
|
+
return this.setData(undefined);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Returns whether this field is set.
|
|
192
|
+
* @return {boolean}
|
|
193
|
+
*/
|
|
194
|
+
proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.hasData = function() {
|
|
195
|
+
return jspb.Message.getField(this, 1) != null;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.other.v1);
|
|
@@ -8478,11 +8478,12 @@ export namespace WindowsFirewallRules {
|
|
|
8478
8478
|
export class FirewallRule extends jspb.Message {
|
|
8479
8479
|
getVersion(): string;
|
|
8480
8480
|
setVersion(value: string): FirewallRule;
|
|
8481
|
-
|
|
8482
|
-
getPropertiesMap(): jspb.Map<string, string>;
|
|
8483
|
-
clearPropertiesMap(): void;
|
|
8484
8481
|
getName(): string;
|
|
8485
8482
|
setName(value: string): FirewallRule;
|
|
8483
|
+
clearPropertiesList(): void;
|
|
8484
|
+
getPropertiesList(): Array<FirewallRuleProperty>;
|
|
8485
|
+
setPropertiesList(value: Array<FirewallRuleProperty>): FirewallRule;
|
|
8486
|
+
addProperties(value?: FirewallRuleProperty, index?: number): FirewallRuleProperty;
|
|
8486
8487
|
|
|
8487
8488
|
serializeBinary(): Uint8Array;
|
|
8488
8489
|
toObject(includeInstance?: boolean): FirewallRule.AsObject;
|
|
@@ -8497,9 +8498,34 @@ export class FirewallRule extends jspb.Message {
|
|
|
8497
8498
|
export namespace FirewallRule {
|
|
8498
8499
|
export type AsObject = {
|
|
8499
8500
|
version: string,
|
|
8500
|
-
|
|
8501
|
-
propertiesMap: Array<[string, string]>,
|
|
8502
8501
|
name: string,
|
|
8502
|
+
propertiesList: Array<FirewallRuleProperty.AsObject>,
|
|
8503
|
+
}
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
export class FirewallRuleProperty extends jspb.Message {
|
|
8507
|
+
getKey(): string;
|
|
8508
|
+
setKey(value: string): FirewallRuleProperty;
|
|
8509
|
+
|
|
8510
|
+
hasValue(): boolean;
|
|
8511
|
+
clearValue(): void;
|
|
8512
|
+
getValue(): google_protobuf_wrappers_pb.StringValue | undefined;
|
|
8513
|
+
setValue(value?: google_protobuf_wrappers_pb.StringValue): FirewallRuleProperty;
|
|
8514
|
+
|
|
8515
|
+
serializeBinary(): Uint8Array;
|
|
8516
|
+
toObject(includeInstance?: boolean): FirewallRuleProperty.AsObject;
|
|
8517
|
+
static toObject(includeInstance: boolean, msg: FirewallRuleProperty): FirewallRuleProperty.AsObject;
|
|
8518
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
8519
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
8520
|
+
static serializeBinaryToWriter(message: FirewallRuleProperty, writer: jspb.BinaryWriter): void;
|
|
8521
|
+
static deserializeBinary(bytes: Uint8Array): FirewallRuleProperty;
|
|
8522
|
+
static deserializeBinaryFromReader(message: FirewallRuleProperty, reader: jspb.BinaryReader): FirewallRuleProperty;
|
|
8523
|
+
}
|
|
8524
|
+
|
|
8525
|
+
export namespace FirewallRuleProperty {
|
|
8526
|
+
export type AsObject = {
|
|
8527
|
+
key: string,
|
|
8528
|
+
value?: google_protobuf_wrappers_pb.StringValue.AsObject,
|
|
8503
8529
|
}
|
|
8504
8530
|
}
|
|
8505
8531
|
|
|
@@ -50,6 +50,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.DisplayContr
|
|
|
50
50
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.EncryptableVolume', null, global);
|
|
51
51
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Feature', null, global);
|
|
52
52
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule', null, global);
|
|
53
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty', null, global);
|
|
53
54
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Floppy', null, global);
|
|
54
55
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Group', null, global);
|
|
55
56
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.HardDisk', null, global);
|
|
@@ -4027,7 +4028,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4027
4028
|
* @constructor
|
|
4028
4029
|
*/
|
|
4029
4030
|
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule = function(opt_data) {
|
|
4030
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
4031
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.repeatedFields_, null);
|
|
4031
4032
|
};
|
|
4032
4033
|
goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule, jspb.Message);
|
|
4033
4034
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -4037,6 +4038,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4037
4038
|
*/
|
|
4038
4039
|
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule';
|
|
4039
4040
|
}
|
|
4041
|
+
/**
|
|
4042
|
+
* Generated by JsPbCodeGenerator.
|
|
4043
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4044
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4045
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4046
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4047
|
+
* valid.
|
|
4048
|
+
* @extends {jspb.Message}
|
|
4049
|
+
* @constructor
|
|
4050
|
+
*/
|
|
4051
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty = function(opt_data) {
|
|
4052
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4053
|
+
};
|
|
4054
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty, jspb.Message);
|
|
4055
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4056
|
+
/**
|
|
4057
|
+
* @public
|
|
4058
|
+
* @override
|
|
4059
|
+
*/
|
|
4060
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty';
|
|
4061
|
+
}
|
|
4040
4062
|
|
|
4041
4063
|
|
|
4042
4064
|
|
|
@@ -70083,6 +70105,13 @@ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.
|
|
|
70083
70105
|
|
|
70084
70106
|
|
|
70085
70107
|
|
|
70108
|
+
/**
|
|
70109
|
+
* List of repeated fields within this message type.
|
|
70110
|
+
* @private {!Array<number>}
|
|
70111
|
+
* @const
|
|
70112
|
+
*/
|
|
70113
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.repeatedFields_ = [3];
|
|
70114
|
+
|
|
70086
70115
|
|
|
70087
70116
|
|
|
70088
70117
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -70115,8 +70144,9 @@ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.toObject
|
|
|
70115
70144
|
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.toObject = function(includeInstance, msg) {
|
|
70116
70145
|
var f, obj = {
|
|
70117
70146
|
version: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
70118
|
-
|
|
70119
|
-
|
|
70147
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
70148
|
+
propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(),
|
|
70149
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.toObject, includeInstance)
|
|
70120
70150
|
};
|
|
70121
70151
|
|
|
70122
70152
|
if (includeInstance) {
|
|
@@ -70158,15 +70188,14 @@ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.deserializeBinaryF
|
|
|
70158
70188
|
msg.setVersion(value);
|
|
70159
70189
|
break;
|
|
70160
70190
|
case 2:
|
|
70161
|
-
var value = msg.getPropertiesMap();
|
|
70162
|
-
reader.readMessage(value, function(message, reader) {
|
|
70163
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
70164
|
-
});
|
|
70165
|
-
break;
|
|
70166
|
-
case 3:
|
|
70167
70191
|
var value = /** @type {string} */ (reader.readString());
|
|
70168
70192
|
msg.setName(value);
|
|
70169
70193
|
break;
|
|
70194
|
+
case 3:
|
|
70195
|
+
var value = new proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty;
|
|
70196
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.deserializeBinaryFromReader);
|
|
70197
|
+
msg.addProperties(value);
|
|
70198
|
+
break;
|
|
70170
70199
|
default:
|
|
70171
70200
|
reader.skipField();
|
|
70172
70201
|
break;
|
|
@@ -70203,17 +70232,21 @@ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.serializeBinaryToW
|
|
|
70203
70232
|
f
|
|
70204
70233
|
);
|
|
70205
70234
|
}
|
|
70206
|
-
f = message.getPropertiesMap(true);
|
|
70207
|
-
if (f && f.getLength() > 0) {
|
|
70208
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
70209
|
-
}
|
|
70210
70235
|
f = message.getName();
|
|
70211
70236
|
if (f.length > 0) {
|
|
70212
70237
|
writer.writeString(
|
|
70213
|
-
|
|
70238
|
+
2,
|
|
70214
70239
|
f
|
|
70215
70240
|
);
|
|
70216
70241
|
}
|
|
70242
|
+
f = message.getPropertiesList();
|
|
70243
|
+
if (f.length > 0) {
|
|
70244
|
+
writer.writeRepeatedMessage(
|
|
70245
|
+
3,
|
|
70246
|
+
f,
|
|
70247
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.serializeBinaryToWriter
|
|
70248
|
+
);
|
|
70249
|
+
}
|
|
70217
70250
|
};
|
|
70218
70251
|
|
|
70219
70252
|
|
|
@@ -70236,42 +70269,239 @@ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.setVersi
|
|
|
70236
70269
|
|
|
70237
70270
|
|
|
70238
70271
|
/**
|
|
70239
|
-
*
|
|
70240
|
-
* @
|
|
70241
|
-
* empty, instead returning `undefined`
|
|
70242
|
-
* @return {!jspb.Map<string,string>}
|
|
70272
|
+
* optional string name = 2;
|
|
70273
|
+
* @return {string}
|
|
70243
70274
|
*/
|
|
70244
|
-
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.
|
|
70245
|
-
return /** @type {
|
|
70246
|
-
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
70247
|
-
null));
|
|
70275
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.getName = function() {
|
|
70276
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
70248
70277
|
};
|
|
70249
70278
|
|
|
70250
70279
|
|
|
70251
70280
|
/**
|
|
70252
|
-
*
|
|
70281
|
+
* @param {string} value
|
|
70253
70282
|
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} returns this
|
|
70254
70283
|
*/
|
|
70255
|
-
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.
|
|
70256
|
-
|
|
70257
|
-
|
|
70284
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.setName = function(value) {
|
|
70285
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
70286
|
+
};
|
|
70258
70287
|
|
|
70259
70288
|
|
|
70260
70289
|
/**
|
|
70261
|
-
*
|
|
70290
|
+
* repeated FirewallRuleProperty properties = 3;
|
|
70291
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty>}
|
|
70292
|
+
*/
|
|
70293
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.getPropertiesList = function() {
|
|
70294
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty>} */ (
|
|
70295
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty, 3));
|
|
70296
|
+
};
|
|
70297
|
+
|
|
70298
|
+
|
|
70299
|
+
/**
|
|
70300
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty>} value
|
|
70301
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} returns this
|
|
70302
|
+
*/
|
|
70303
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.setPropertiesList = function(value) {
|
|
70304
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
70305
|
+
};
|
|
70306
|
+
|
|
70307
|
+
|
|
70308
|
+
/**
|
|
70309
|
+
* @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty=} opt_value
|
|
70310
|
+
* @param {number=} opt_index
|
|
70311
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty}
|
|
70312
|
+
*/
|
|
70313
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.addProperties = function(opt_value, opt_index) {
|
|
70314
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty, opt_index);
|
|
70315
|
+
};
|
|
70316
|
+
|
|
70317
|
+
|
|
70318
|
+
/**
|
|
70319
|
+
* Clears the list making it empty but non-null.
|
|
70320
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} returns this
|
|
70321
|
+
*/
|
|
70322
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.clearPropertiesList = function() {
|
|
70323
|
+
return this.setPropertiesList([]);
|
|
70324
|
+
};
|
|
70325
|
+
|
|
70326
|
+
|
|
70327
|
+
|
|
70328
|
+
|
|
70329
|
+
|
|
70330
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70331
|
+
/**
|
|
70332
|
+
* Creates an object representation of this proto.
|
|
70333
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
70334
|
+
* Optional fields that are not set will be set to undefined.
|
|
70335
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
70336
|
+
* For the list of reserved names please see:
|
|
70337
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
70338
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
70339
|
+
* JSPB instance for transitional soy proto support:
|
|
70340
|
+
* http://goto/soy-param-migration
|
|
70341
|
+
* @return {!Object}
|
|
70342
|
+
*/
|
|
70343
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.toObject = function(opt_includeInstance) {
|
|
70344
|
+
return proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.toObject(opt_includeInstance, this);
|
|
70345
|
+
};
|
|
70346
|
+
|
|
70347
|
+
|
|
70348
|
+
/**
|
|
70349
|
+
* Static version of the {@see toObject} method.
|
|
70350
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70351
|
+
* the JSPB instance for transitional soy proto support:
|
|
70352
|
+
* http://goto/soy-param-migration
|
|
70353
|
+
* @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} msg The msg instance to transform.
|
|
70354
|
+
* @return {!Object}
|
|
70355
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70356
|
+
*/
|
|
70357
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.toObject = function(includeInstance, msg) {
|
|
70358
|
+
var f, obj = {
|
|
70359
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
70360
|
+
value: (f = msg.getValue()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
|
|
70361
|
+
};
|
|
70362
|
+
|
|
70363
|
+
if (includeInstance) {
|
|
70364
|
+
obj.$jspbMessageInstance = msg;
|
|
70365
|
+
}
|
|
70366
|
+
return obj;
|
|
70367
|
+
};
|
|
70368
|
+
}
|
|
70369
|
+
|
|
70370
|
+
|
|
70371
|
+
/**
|
|
70372
|
+
* Deserializes binary data (in protobuf wire format).
|
|
70373
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
70374
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty}
|
|
70375
|
+
*/
|
|
70376
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.deserializeBinary = function(bytes) {
|
|
70377
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
70378
|
+
var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty;
|
|
70379
|
+
return proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.deserializeBinaryFromReader(msg, reader);
|
|
70380
|
+
};
|
|
70381
|
+
|
|
70382
|
+
|
|
70383
|
+
/**
|
|
70384
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
70385
|
+
* given reader into the given message object.
|
|
70386
|
+
* @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} msg The message object to deserialize into.
|
|
70387
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
70388
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty}
|
|
70389
|
+
*/
|
|
70390
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.deserializeBinaryFromReader = function(msg, reader) {
|
|
70391
|
+
while (reader.nextField()) {
|
|
70392
|
+
if (reader.isEndGroup()) {
|
|
70393
|
+
break;
|
|
70394
|
+
}
|
|
70395
|
+
var field = reader.getFieldNumber();
|
|
70396
|
+
switch (field) {
|
|
70397
|
+
case 1:
|
|
70398
|
+
var value = /** @type {string} */ (reader.readString());
|
|
70399
|
+
msg.setKey(value);
|
|
70400
|
+
break;
|
|
70401
|
+
case 2:
|
|
70402
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
70403
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
70404
|
+
msg.setValue(value);
|
|
70405
|
+
break;
|
|
70406
|
+
default:
|
|
70407
|
+
reader.skipField();
|
|
70408
|
+
break;
|
|
70409
|
+
}
|
|
70410
|
+
}
|
|
70411
|
+
return msg;
|
|
70412
|
+
};
|
|
70413
|
+
|
|
70414
|
+
|
|
70415
|
+
/**
|
|
70416
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
70417
|
+
* @return {!Uint8Array}
|
|
70418
|
+
*/
|
|
70419
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.serializeBinary = function() {
|
|
70420
|
+
var writer = new jspb.BinaryWriter();
|
|
70421
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.serializeBinaryToWriter(this, writer);
|
|
70422
|
+
return writer.getResultBuffer();
|
|
70423
|
+
};
|
|
70424
|
+
|
|
70425
|
+
|
|
70426
|
+
/**
|
|
70427
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
70428
|
+
* format), writing to the given BinaryWriter.
|
|
70429
|
+
* @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} message
|
|
70430
|
+
* @param {!jspb.BinaryWriter} writer
|
|
70431
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70432
|
+
*/
|
|
70433
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.serializeBinaryToWriter = function(message, writer) {
|
|
70434
|
+
var f = undefined;
|
|
70435
|
+
f = message.getKey();
|
|
70436
|
+
if (f.length > 0) {
|
|
70437
|
+
writer.writeString(
|
|
70438
|
+
1,
|
|
70439
|
+
f
|
|
70440
|
+
);
|
|
70441
|
+
}
|
|
70442
|
+
f = message.getValue();
|
|
70443
|
+
if (f != null) {
|
|
70444
|
+
writer.writeMessage(
|
|
70445
|
+
2,
|
|
70446
|
+
f,
|
|
70447
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
70448
|
+
);
|
|
70449
|
+
}
|
|
70450
|
+
};
|
|
70451
|
+
|
|
70452
|
+
|
|
70453
|
+
/**
|
|
70454
|
+
* optional string key = 1;
|
|
70262
70455
|
* @return {string}
|
|
70263
70456
|
*/
|
|
70264
|
-
proto.com.lansweeper.discovery.sensor.windows.v1.
|
|
70265
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
70457
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.getKey = function() {
|
|
70458
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
70266
70459
|
};
|
|
70267
70460
|
|
|
70268
70461
|
|
|
70269
70462
|
/**
|
|
70270
70463
|
* @param {string} value
|
|
70271
|
-
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.
|
|
70464
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} returns this
|
|
70272
70465
|
*/
|
|
70273
|
-
proto.com.lansweeper.discovery.sensor.windows.v1.
|
|
70274
|
-
return jspb.Message.setProto3StringField(this,
|
|
70466
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.setKey = function(value) {
|
|
70467
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
70468
|
+
};
|
|
70469
|
+
|
|
70470
|
+
|
|
70471
|
+
/**
|
|
70472
|
+
* optional google.protobuf.StringValue value = 2;
|
|
70473
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
70474
|
+
*/
|
|
70475
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.getValue = function() {
|
|
70476
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
70477
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
|
|
70478
|
+
};
|
|
70479
|
+
|
|
70480
|
+
|
|
70481
|
+
/**
|
|
70482
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
70483
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} returns this
|
|
70484
|
+
*/
|
|
70485
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.setValue = function(value) {
|
|
70486
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
70487
|
+
};
|
|
70488
|
+
|
|
70489
|
+
|
|
70490
|
+
/**
|
|
70491
|
+
* Clears the message field making it undefined.
|
|
70492
|
+
* @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty} returns this
|
|
70493
|
+
*/
|
|
70494
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.clearValue = function() {
|
|
70495
|
+
return this.setValue(undefined);
|
|
70496
|
+
};
|
|
70497
|
+
|
|
70498
|
+
|
|
70499
|
+
/**
|
|
70500
|
+
* Returns whether this field is set.
|
|
70501
|
+
* @return {boolean}
|
|
70502
|
+
*/
|
|
70503
|
+
proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRuleProperty.prototype.hasValue = function() {
|
|
70504
|
+
return jspb.Message.getField(this, 2) != null;
|
|
70275
70505
|
};
|
|
70276
70506
|
|
|
70277
70507
|
|