@lansweeper/blocking-rules-grpc 0.0.5 → 0.0.7
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/blocking_rules_pb.d.ts +46 -30
- package/gen-proto/blocking_rules_pb.js +273 -236
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/blocking_rules.proto +16 -16
|
@@ -6,15 +6,46 @@
|
|
|
6
6
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
8
|
|
|
9
|
+
export class NullableString extends jspb.Message {
|
|
10
|
+
|
|
11
|
+
hasData(): boolean;
|
|
12
|
+
clearData(): void;
|
|
13
|
+
getData(): string;
|
|
14
|
+
setData(value: string): NullableString;
|
|
15
|
+
|
|
16
|
+
getKindCase(): NullableString.KindCase;
|
|
17
|
+
|
|
18
|
+
serializeBinary(): Uint8Array;
|
|
19
|
+
toObject(includeInstance?: boolean): NullableString.AsObject;
|
|
20
|
+
static toObject(includeInstance: boolean, msg: NullableString): NullableString.AsObject;
|
|
21
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
22
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
23
|
+
static serializeBinaryToWriter(message: NullableString, writer: jspb.BinaryWriter): void;
|
|
24
|
+
static deserializeBinary(bytes: Uint8Array): NullableString;
|
|
25
|
+
static deserializeBinaryFromReader(message: NullableString, reader: jspb.BinaryReader): NullableString;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace NullableString {
|
|
29
|
+
export type AsObject = {
|
|
30
|
+
data: string,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum KindCase {
|
|
34
|
+
KIND_NOT_SET = 0,
|
|
35
|
+
DATA = 1,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
9
40
|
export class BlockingRule extends jspb.Message {
|
|
10
41
|
getInstallKey(): string;
|
|
11
42
|
setInstallKey(value: string): BlockingRule;
|
|
12
|
-
getSiteId(): string;
|
|
13
|
-
setSiteId(value: string): BlockingRule;
|
|
14
43
|
getEntity(): string;
|
|
15
44
|
setEntity(value: string): BlockingRule;
|
|
16
45
|
getCreatedDate(): string;
|
|
17
46
|
setCreatedDate(value: string): BlockingRule;
|
|
47
|
+
getId(): string;
|
|
48
|
+
setId(value: string): BlockingRule;
|
|
18
49
|
|
|
19
50
|
serializeBinary(): Uint8Array;
|
|
20
51
|
toObject(includeInstance?: boolean): BlockingRule.AsObject;
|
|
@@ -29,9 +60,9 @@ export class BlockingRule extends jspb.Message {
|
|
|
29
60
|
export namespace BlockingRule {
|
|
30
61
|
export type AsObject = {
|
|
31
62
|
installKey: string,
|
|
32
|
-
siteId: string,
|
|
33
63
|
entity: string,
|
|
34
64
|
createdDate: string,
|
|
65
|
+
id: string,
|
|
35
66
|
}
|
|
36
67
|
}
|
|
37
68
|
|
|
@@ -73,8 +104,6 @@ export namespace GetBlockingRulesByInstallRequest {
|
|
|
73
104
|
}
|
|
74
105
|
|
|
75
106
|
export class SetBlockingRuleRequest extends jspb.Message {
|
|
76
|
-
getSiteId(): string;
|
|
77
|
-
setSiteId(value: string): SetBlockingRuleRequest;
|
|
78
107
|
getInstallKey(): string;
|
|
79
108
|
setInstallKey(value: string): SetBlockingRuleRequest;
|
|
80
109
|
getEntity(): string;
|
|
@@ -92,19 +121,14 @@ export class SetBlockingRuleRequest extends jspb.Message {
|
|
|
92
121
|
|
|
93
122
|
export namespace SetBlockingRuleRequest {
|
|
94
123
|
export type AsObject = {
|
|
95
|
-
siteId: string,
|
|
96
124
|
installKey: string,
|
|
97
125
|
entity: string,
|
|
98
126
|
}
|
|
99
127
|
}
|
|
100
128
|
|
|
101
129
|
export class DeleteBlockingRuleRequest extends jspb.Message {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
getInstallKey(): string;
|
|
105
|
-
setInstallKey(value: string): DeleteBlockingRuleRequest;
|
|
106
|
-
getEntity(): string;
|
|
107
|
-
setEntity(value: string): DeleteBlockingRuleRequest;
|
|
130
|
+
getId(): string;
|
|
131
|
+
setId(value: string): DeleteBlockingRuleRequest;
|
|
108
132
|
|
|
109
133
|
serializeBinary(): Uint8Array;
|
|
110
134
|
toObject(includeInstance?: boolean): DeleteBlockingRuleRequest.AsObject;
|
|
@@ -118,9 +142,7 @@ export class DeleteBlockingRuleRequest extends jspb.Message {
|
|
|
118
142
|
|
|
119
143
|
export namespace DeleteBlockingRuleRequest {
|
|
120
144
|
export type AsObject = {
|
|
121
|
-
|
|
122
|
-
installKey: string,
|
|
123
|
-
entity: string,
|
|
145
|
+
id: string,
|
|
124
146
|
}
|
|
125
147
|
}
|
|
126
148
|
|
|
@@ -171,12 +193,12 @@ export namespace GetBlockingRulesResponse {
|
|
|
171
193
|
export class SetBlockingRuleResponse extends jspb.Message {
|
|
172
194
|
getInstallKey(): string;
|
|
173
195
|
setInstallKey(value: string): SetBlockingRuleResponse;
|
|
174
|
-
getSiteId(): string;
|
|
175
|
-
setSiteId(value: string): SetBlockingRuleResponse;
|
|
176
196
|
getEntity(): string;
|
|
177
197
|
setEntity(value: string): SetBlockingRuleResponse;
|
|
178
198
|
getCreatedDate(): string;
|
|
179
199
|
setCreatedDate(value: string): SetBlockingRuleResponse;
|
|
200
|
+
getId(): string;
|
|
201
|
+
setId(value: string): SetBlockingRuleResponse;
|
|
180
202
|
|
|
181
203
|
serializeBinary(): Uint8Array;
|
|
182
204
|
toObject(includeInstance?: boolean): SetBlockingRuleResponse.AsObject;
|
|
@@ -191,21 +213,18 @@ export class SetBlockingRuleResponse extends jspb.Message {
|
|
|
191
213
|
export namespace SetBlockingRuleResponse {
|
|
192
214
|
export type AsObject = {
|
|
193
215
|
installKey: string,
|
|
194
|
-
siteId: string,
|
|
195
216
|
entity: string,
|
|
196
217
|
createdDate: string,
|
|
218
|
+
id: string,
|
|
197
219
|
}
|
|
198
220
|
}
|
|
199
221
|
|
|
200
222
|
export class DeleteBlockingRuleResponse extends jspb.Message {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
setEntity(value: string): DeleteBlockingRuleResponse;
|
|
207
|
-
getDeleted(): boolean;
|
|
208
|
-
setDeleted(value: boolean): DeleteBlockingRuleResponse;
|
|
223
|
+
|
|
224
|
+
hasId(): boolean;
|
|
225
|
+
clearId(): void;
|
|
226
|
+
getId(): NullableString | undefined;
|
|
227
|
+
setId(value?: NullableString): DeleteBlockingRuleResponse;
|
|
209
228
|
|
|
210
229
|
serializeBinary(): Uint8Array;
|
|
211
230
|
toObject(includeInstance?: boolean): DeleteBlockingRuleResponse.AsObject;
|
|
@@ -219,9 +238,6 @@ export class DeleteBlockingRuleResponse extends jspb.Message {
|
|
|
219
238
|
|
|
220
239
|
export namespace DeleteBlockingRuleResponse {
|
|
221
240
|
export type AsObject = {
|
|
222
|
-
|
|
223
|
-
installKey: string,
|
|
224
|
-
entity: string,
|
|
225
|
-
deleted: boolean,
|
|
241
|
+
id?: NullableString.AsObject,
|
|
226
242
|
}
|
|
227
243
|
}
|
|
@@ -22,8 +22,31 @@ goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRe
|
|
|
22
22
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse', null, global);
|
|
23
23
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest', null, global);
|
|
24
24
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse', null, global);
|
|
25
|
+
goog.exportSymbol('proto.lansweeper.blockingrules.v1.NullableString', null, global);
|
|
26
|
+
goog.exportSymbol('proto.lansweeper.blockingrules.v1.NullableString.KindCase', null, global);
|
|
25
27
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest', null, global);
|
|
26
28
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse', null, global);
|
|
29
|
+
/**
|
|
30
|
+
* Generated by JsPbCodeGenerator.
|
|
31
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
32
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
33
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
34
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
35
|
+
* valid.
|
|
36
|
+
* @extends {jspb.Message}
|
|
37
|
+
* @constructor
|
|
38
|
+
*/
|
|
39
|
+
proto.lansweeper.blockingrules.v1.NullableString = function(opt_data) {
|
|
40
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.blockingrules.v1.NullableString.oneofGroups_);
|
|
41
|
+
};
|
|
42
|
+
goog.inherits(proto.lansweeper.blockingrules.v1.NullableString, jspb.Message);
|
|
43
|
+
if (goog.DEBUG && !COMPILED) {
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* @override
|
|
47
|
+
*/
|
|
48
|
+
proto.lansweeper.blockingrules.v1.NullableString.displayName = 'proto.lansweeper.blockingrules.v1.NullableString';
|
|
49
|
+
}
|
|
27
50
|
/**
|
|
28
51
|
* Generated by JsPbCodeGenerator.
|
|
29
52
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -214,6 +237,179 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
214
237
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.displayName = 'proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse';
|
|
215
238
|
}
|
|
216
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
242
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
243
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
244
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
245
|
+
* @private {!Array<!Array<number>>}
|
|
246
|
+
* @const
|
|
247
|
+
*/
|
|
248
|
+
proto.lansweeper.blockingrules.v1.NullableString.oneofGroups_ = [[1]];
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @enum {number}
|
|
252
|
+
*/
|
|
253
|
+
proto.lansweeper.blockingrules.v1.NullableString.KindCase = {
|
|
254
|
+
KIND_NOT_SET: 0,
|
|
255
|
+
DATA: 1
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @return {proto.lansweeper.blockingrules.v1.NullableString.KindCase}
|
|
260
|
+
*/
|
|
261
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.getKindCase = function() {
|
|
262
|
+
return /** @type {proto.lansweeper.blockingrules.v1.NullableString.KindCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.blockingrules.v1.NullableString.oneofGroups_[0]));
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
268
|
+
/**
|
|
269
|
+
* Creates an object representation of this proto.
|
|
270
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
271
|
+
* Optional fields that are not set will be set to undefined.
|
|
272
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
273
|
+
* For the list of reserved names please see:
|
|
274
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
275
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
276
|
+
* JSPB instance for transitional soy proto support:
|
|
277
|
+
* http://goto/soy-param-migration
|
|
278
|
+
* @return {!Object}
|
|
279
|
+
*/
|
|
280
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.toObject = function(opt_includeInstance) {
|
|
281
|
+
return proto.lansweeper.blockingrules.v1.NullableString.toObject(opt_includeInstance, this);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Static version of the {@see toObject} method.
|
|
287
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
288
|
+
* the JSPB instance for transitional soy proto support:
|
|
289
|
+
* http://goto/soy-param-migration
|
|
290
|
+
* @param {!proto.lansweeper.blockingrules.v1.NullableString} msg The msg instance to transform.
|
|
291
|
+
* @return {!Object}
|
|
292
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
293
|
+
*/
|
|
294
|
+
proto.lansweeper.blockingrules.v1.NullableString.toObject = function(includeInstance, msg) {
|
|
295
|
+
var f, obj = {
|
|
296
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
if (includeInstance) {
|
|
300
|
+
obj.$jspbMessageInstance = msg;
|
|
301
|
+
}
|
|
302
|
+
return obj;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Deserializes binary data (in protobuf wire format).
|
|
309
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
310
|
+
* @return {!proto.lansweeper.blockingrules.v1.NullableString}
|
|
311
|
+
*/
|
|
312
|
+
proto.lansweeper.blockingrules.v1.NullableString.deserializeBinary = function(bytes) {
|
|
313
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
314
|
+
var msg = new proto.lansweeper.blockingrules.v1.NullableString;
|
|
315
|
+
return proto.lansweeper.blockingrules.v1.NullableString.deserializeBinaryFromReader(msg, reader);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
321
|
+
* given reader into the given message object.
|
|
322
|
+
* @param {!proto.lansweeper.blockingrules.v1.NullableString} msg The message object to deserialize into.
|
|
323
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
324
|
+
* @return {!proto.lansweeper.blockingrules.v1.NullableString}
|
|
325
|
+
*/
|
|
326
|
+
proto.lansweeper.blockingrules.v1.NullableString.deserializeBinaryFromReader = function(msg, reader) {
|
|
327
|
+
while (reader.nextField()) {
|
|
328
|
+
if (reader.isEndGroup()) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
var field = reader.getFieldNumber();
|
|
332
|
+
switch (field) {
|
|
333
|
+
case 1:
|
|
334
|
+
var value = /** @type {string} */ (reader.readString());
|
|
335
|
+
msg.setData(value);
|
|
336
|
+
break;
|
|
337
|
+
default:
|
|
338
|
+
reader.skipField();
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return msg;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
348
|
+
* @return {!Uint8Array}
|
|
349
|
+
*/
|
|
350
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.serializeBinary = function() {
|
|
351
|
+
var writer = new jspb.BinaryWriter();
|
|
352
|
+
proto.lansweeper.blockingrules.v1.NullableString.serializeBinaryToWriter(this, writer);
|
|
353
|
+
return writer.getResultBuffer();
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
359
|
+
* format), writing to the given BinaryWriter.
|
|
360
|
+
* @param {!proto.lansweeper.blockingrules.v1.NullableString} message
|
|
361
|
+
* @param {!jspb.BinaryWriter} writer
|
|
362
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
363
|
+
*/
|
|
364
|
+
proto.lansweeper.blockingrules.v1.NullableString.serializeBinaryToWriter = function(message, writer) {
|
|
365
|
+
var f = undefined;
|
|
366
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
367
|
+
if (f != null) {
|
|
368
|
+
writer.writeString(
|
|
369
|
+
1,
|
|
370
|
+
f
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* optional string data = 1;
|
|
378
|
+
* @return {string}
|
|
379
|
+
*/
|
|
380
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.getData = function() {
|
|
381
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @param {string} value
|
|
387
|
+
* @return {!proto.lansweeper.blockingrules.v1.NullableString} returns this
|
|
388
|
+
*/
|
|
389
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.setData = function(value) {
|
|
390
|
+
return jspb.Message.setOneofField(this, 1, proto.lansweeper.blockingrules.v1.NullableString.oneofGroups_[0], value);
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Clears the field making it undefined.
|
|
396
|
+
* @return {!proto.lansweeper.blockingrules.v1.NullableString} returns this
|
|
397
|
+
*/
|
|
398
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.clearData = function() {
|
|
399
|
+
return jspb.Message.setOneofField(this, 1, proto.lansweeper.blockingrules.v1.NullableString.oneofGroups_[0], undefined);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Returns whether this field is set.
|
|
405
|
+
* @return {boolean}
|
|
406
|
+
*/
|
|
407
|
+
proto.lansweeper.blockingrules.v1.NullableString.prototype.hasData = function() {
|
|
408
|
+
return jspb.Message.getField(this, 1) != null;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
217
413
|
|
|
218
414
|
|
|
219
415
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -246,9 +442,9 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.toObject = function(opt
|
|
|
246
442
|
proto.lansweeper.blockingrules.v1.BlockingRule.toObject = function(includeInstance, msg) {
|
|
247
443
|
var f, obj = {
|
|
248
444
|
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
445
|
+
entity: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
446
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
447
|
+
id: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
252
448
|
};
|
|
253
449
|
|
|
254
450
|
if (includeInstance) {
|
|
@@ -291,15 +487,15 @@ proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader = fun
|
|
|
291
487
|
break;
|
|
292
488
|
case 2:
|
|
293
489
|
var value = /** @type {string} */ (reader.readString());
|
|
294
|
-
msg.
|
|
490
|
+
msg.setEntity(value);
|
|
295
491
|
break;
|
|
296
492
|
case 3:
|
|
297
493
|
var value = /** @type {string} */ (reader.readString());
|
|
298
|
-
msg.
|
|
494
|
+
msg.setCreatedDate(value);
|
|
299
495
|
break;
|
|
300
496
|
case 4:
|
|
301
497
|
var value = /** @type {string} */ (reader.readString());
|
|
302
|
-
msg.
|
|
498
|
+
msg.setId(value);
|
|
303
499
|
break;
|
|
304
500
|
default:
|
|
305
501
|
reader.skipField();
|
|
@@ -337,21 +533,21 @@ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter = functio
|
|
|
337
533
|
f
|
|
338
534
|
);
|
|
339
535
|
}
|
|
340
|
-
f = message.
|
|
536
|
+
f = message.getEntity();
|
|
341
537
|
if (f.length > 0) {
|
|
342
538
|
writer.writeString(
|
|
343
539
|
2,
|
|
344
540
|
f
|
|
345
541
|
);
|
|
346
542
|
}
|
|
347
|
-
f = message.
|
|
543
|
+
f = message.getCreatedDate();
|
|
348
544
|
if (f.length > 0) {
|
|
349
545
|
writer.writeString(
|
|
350
546
|
3,
|
|
351
547
|
f
|
|
352
548
|
);
|
|
353
549
|
}
|
|
354
|
-
f = message.
|
|
550
|
+
f = message.getId();
|
|
355
551
|
if (f.length > 0) {
|
|
356
552
|
writer.writeString(
|
|
357
553
|
4,
|
|
@@ -380,10 +576,10 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setInstallKey = functio
|
|
|
380
576
|
|
|
381
577
|
|
|
382
578
|
/**
|
|
383
|
-
* optional string
|
|
579
|
+
* optional string entity = 2;
|
|
384
580
|
* @return {string}
|
|
385
581
|
*/
|
|
386
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
582
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getEntity = function() {
|
|
387
583
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
388
584
|
};
|
|
389
585
|
|
|
@@ -392,16 +588,16 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getSiteId = function()
|
|
|
392
588
|
* @param {string} value
|
|
393
589
|
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
|
|
394
590
|
*/
|
|
395
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
591
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setEntity = function(value) {
|
|
396
592
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
397
593
|
};
|
|
398
594
|
|
|
399
595
|
|
|
400
596
|
/**
|
|
401
|
-
* optional string
|
|
597
|
+
* optional string created_date = 3;
|
|
402
598
|
* @return {string}
|
|
403
599
|
*/
|
|
404
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
600
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getCreatedDate = function() {
|
|
405
601
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
406
602
|
};
|
|
407
603
|
|
|
@@ -410,16 +606,16 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getEntity = function()
|
|
|
410
606
|
* @param {string} value
|
|
411
607
|
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
|
|
412
608
|
*/
|
|
413
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
609
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setCreatedDate = function(value) {
|
|
414
610
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
415
611
|
};
|
|
416
612
|
|
|
417
613
|
|
|
418
614
|
/**
|
|
419
|
-
* optional string
|
|
615
|
+
* optional string id = 4;
|
|
420
616
|
* @return {string}
|
|
421
617
|
*/
|
|
422
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
618
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getId = function() {
|
|
423
619
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
424
620
|
};
|
|
425
621
|
|
|
@@ -428,7 +624,7 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getCreatedDate = functi
|
|
|
428
624
|
* @param {string} value
|
|
429
625
|
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
|
|
430
626
|
*/
|
|
431
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.
|
|
627
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setId = function(value) {
|
|
432
628
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
433
629
|
};
|
|
434
630
|
|
|
@@ -696,9 +892,8 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.toObject = fu
|
|
|
696
892
|
*/
|
|
697
893
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.toObject = function(includeInstance, msg) {
|
|
698
894
|
var f, obj = {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
entity: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
895
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
896
|
+
entity: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
702
897
|
};
|
|
703
898
|
|
|
704
899
|
if (includeInstance) {
|
|
@@ -736,14 +931,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.deserializeBinaryFromRe
|
|
|
736
931
|
var field = reader.getFieldNumber();
|
|
737
932
|
switch (field) {
|
|
738
933
|
case 1:
|
|
739
|
-
var value = /** @type {string} */ (reader.readString());
|
|
740
|
-
msg.setSiteId(value);
|
|
741
|
-
break;
|
|
742
|
-
case 2:
|
|
743
934
|
var value = /** @type {string} */ (reader.readString());
|
|
744
935
|
msg.setInstallKey(value);
|
|
745
936
|
break;
|
|
746
|
-
case
|
|
937
|
+
case 2:
|
|
747
938
|
var value = /** @type {string} */ (reader.readString());
|
|
748
939
|
msg.setEntity(value);
|
|
749
940
|
break;
|
|
@@ -776,24 +967,17 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.serializeBina
|
|
|
776
967
|
*/
|
|
777
968
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
778
969
|
var f = undefined;
|
|
779
|
-
f = message.getSiteId();
|
|
780
|
-
if (f.length > 0) {
|
|
781
|
-
writer.writeString(
|
|
782
|
-
1,
|
|
783
|
-
f
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
970
|
f = message.getInstallKey();
|
|
787
971
|
if (f.length > 0) {
|
|
788
972
|
writer.writeString(
|
|
789
|
-
|
|
973
|
+
1,
|
|
790
974
|
f
|
|
791
975
|
);
|
|
792
976
|
}
|
|
793
977
|
f = message.getEntity();
|
|
794
978
|
if (f.length > 0) {
|
|
795
979
|
writer.writeString(
|
|
796
|
-
|
|
980
|
+
2,
|
|
797
981
|
f
|
|
798
982
|
);
|
|
799
983
|
}
|
|
@@ -801,29 +985,11 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter
|
|
|
801
985
|
|
|
802
986
|
|
|
803
987
|
/**
|
|
804
|
-
* optional string
|
|
805
|
-
* @return {string}
|
|
806
|
-
*/
|
|
807
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getSiteId = function() {
|
|
808
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* @param {string} value
|
|
814
|
-
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
|
|
815
|
-
*/
|
|
816
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setSiteId = function(value) {
|
|
817
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* optional string install_key = 2;
|
|
988
|
+
* optional string install_key = 1;
|
|
823
989
|
* @return {string}
|
|
824
990
|
*/
|
|
825
991
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getInstallKey = function() {
|
|
826
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
992
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
827
993
|
};
|
|
828
994
|
|
|
829
995
|
|
|
@@ -832,16 +998,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getInstallKey
|
|
|
832
998
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
|
|
833
999
|
*/
|
|
834
1000
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setInstallKey = function(value) {
|
|
835
|
-
return jspb.Message.setProto3StringField(this,
|
|
1001
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
836
1002
|
};
|
|
837
1003
|
|
|
838
1004
|
|
|
839
1005
|
/**
|
|
840
|
-
* optional string entity =
|
|
1006
|
+
* optional string entity = 2;
|
|
841
1007
|
* @return {string}
|
|
842
1008
|
*/
|
|
843
1009
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getEntity = function() {
|
|
844
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1010
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
845
1011
|
};
|
|
846
1012
|
|
|
847
1013
|
|
|
@@ -850,7 +1016,7 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getEntity = f
|
|
|
850
1016
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
|
|
851
1017
|
*/
|
|
852
1018
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setEntity = function(value) {
|
|
853
|
-
return jspb.Message.setProto3StringField(this,
|
|
1019
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
854
1020
|
};
|
|
855
1021
|
|
|
856
1022
|
|
|
@@ -886,9 +1052,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.toObject =
|
|
|
886
1052
|
*/
|
|
887
1053
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.toObject = function(includeInstance, msg) {
|
|
888
1054
|
var f, obj = {
|
|
889
|
-
|
|
890
|
-
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
891
|
-
entity: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1055
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
892
1056
|
};
|
|
893
1057
|
|
|
894
1058
|
if (includeInstance) {
|
|
@@ -927,15 +1091,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.deserializeBinaryFro
|
|
|
927
1091
|
switch (field) {
|
|
928
1092
|
case 1:
|
|
929
1093
|
var value = /** @type {string} */ (reader.readString());
|
|
930
|
-
msg.
|
|
931
|
-
break;
|
|
932
|
-
case 2:
|
|
933
|
-
var value = /** @type {string} */ (reader.readString());
|
|
934
|
-
msg.setInstallKey(value);
|
|
935
|
-
break;
|
|
936
|
-
case 3:
|
|
937
|
-
var value = /** @type {string} */ (reader.readString());
|
|
938
|
-
msg.setEntity(value);
|
|
1094
|
+
msg.setId(value);
|
|
939
1095
|
break;
|
|
940
1096
|
default:
|
|
941
1097
|
reader.skipField();
|
|
@@ -966,35 +1122,21 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.serializeB
|
|
|
966
1122
|
*/
|
|
967
1123
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
968
1124
|
var f = undefined;
|
|
969
|
-
f = message.
|
|
1125
|
+
f = message.getId();
|
|
970
1126
|
if (f.length > 0) {
|
|
971
1127
|
writer.writeString(
|
|
972
1128
|
1,
|
|
973
1129
|
f
|
|
974
1130
|
);
|
|
975
1131
|
}
|
|
976
|
-
f = message.getInstallKey();
|
|
977
|
-
if (f.length > 0) {
|
|
978
|
-
writer.writeString(
|
|
979
|
-
2,
|
|
980
|
-
f
|
|
981
|
-
);
|
|
982
|
-
}
|
|
983
|
-
f = message.getEntity();
|
|
984
|
-
if (f.length > 0) {
|
|
985
|
-
writer.writeString(
|
|
986
|
-
3,
|
|
987
|
-
f
|
|
988
|
-
);
|
|
989
|
-
}
|
|
990
1132
|
};
|
|
991
1133
|
|
|
992
1134
|
|
|
993
1135
|
/**
|
|
994
|
-
* optional string
|
|
1136
|
+
* optional string id = 1;
|
|
995
1137
|
* @return {string}
|
|
996
1138
|
*/
|
|
997
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.
|
|
1139
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getId = function() {
|
|
998
1140
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
999
1141
|
};
|
|
1000
1142
|
|
|
@@ -1003,47 +1145,11 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getSiteId
|
|
|
1003
1145
|
* @param {string} value
|
|
1004
1146
|
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
|
|
1005
1147
|
*/
|
|
1006
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.
|
|
1148
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setId = function(value) {
|
|
1007
1149
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1008
1150
|
};
|
|
1009
1151
|
|
|
1010
1152
|
|
|
1011
|
-
/**
|
|
1012
|
-
* optional string install_key = 2;
|
|
1013
|
-
* @return {string}
|
|
1014
|
-
*/
|
|
1015
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getInstallKey = function() {
|
|
1016
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1017
|
-
};
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* @param {string} value
|
|
1022
|
-
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
|
|
1023
|
-
*/
|
|
1024
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setInstallKey = function(value) {
|
|
1025
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* optional string entity = 3;
|
|
1031
|
-
* @return {string}
|
|
1032
|
-
*/
|
|
1033
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getEntity = function() {
|
|
1034
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* @param {string} value
|
|
1040
|
-
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
|
|
1041
|
-
*/
|
|
1042
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setEntity = function(value) {
|
|
1043
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
1153
|
|
|
1048
1154
|
/**
|
|
1049
1155
|
* List of repeated fields within this message type.
|
|
@@ -1397,9 +1503,9 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.toObject = f
|
|
|
1397
1503
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
1398
1504
|
var f, obj = {
|
|
1399
1505
|
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1506
|
+
entity: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1507
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1508
|
+
id: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1403
1509
|
};
|
|
1404
1510
|
|
|
1405
1511
|
if (includeInstance) {
|
|
@@ -1442,15 +1548,15 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromR
|
|
|
1442
1548
|
break;
|
|
1443
1549
|
case 2:
|
|
1444
1550
|
var value = /** @type {string} */ (reader.readString());
|
|
1445
|
-
msg.
|
|
1551
|
+
msg.setEntity(value);
|
|
1446
1552
|
break;
|
|
1447
1553
|
case 3:
|
|
1448
1554
|
var value = /** @type {string} */ (reader.readString());
|
|
1449
|
-
msg.
|
|
1555
|
+
msg.setCreatedDate(value);
|
|
1450
1556
|
break;
|
|
1451
1557
|
case 4:
|
|
1452
1558
|
var value = /** @type {string} */ (reader.readString());
|
|
1453
|
-
msg.
|
|
1559
|
+
msg.setId(value);
|
|
1454
1560
|
break;
|
|
1455
1561
|
default:
|
|
1456
1562
|
reader.skipField();
|
|
@@ -1488,21 +1594,21 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWrite
|
|
|
1488
1594
|
f
|
|
1489
1595
|
);
|
|
1490
1596
|
}
|
|
1491
|
-
f = message.
|
|
1597
|
+
f = message.getEntity();
|
|
1492
1598
|
if (f.length > 0) {
|
|
1493
1599
|
writer.writeString(
|
|
1494
1600
|
2,
|
|
1495
1601
|
f
|
|
1496
1602
|
);
|
|
1497
1603
|
}
|
|
1498
|
-
f = message.
|
|
1604
|
+
f = message.getCreatedDate();
|
|
1499
1605
|
if (f.length > 0) {
|
|
1500
1606
|
writer.writeString(
|
|
1501
1607
|
3,
|
|
1502
1608
|
f
|
|
1503
1609
|
);
|
|
1504
1610
|
}
|
|
1505
|
-
f = message.
|
|
1611
|
+
f = message.getId();
|
|
1506
1612
|
if (f.length > 0) {
|
|
1507
1613
|
writer.writeString(
|
|
1508
1614
|
4,
|
|
@@ -1531,10 +1637,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setInstallKe
|
|
|
1531
1637
|
|
|
1532
1638
|
|
|
1533
1639
|
/**
|
|
1534
|
-
* optional string
|
|
1640
|
+
* optional string entity = 2;
|
|
1535
1641
|
* @return {string}
|
|
1536
1642
|
*/
|
|
1537
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1643
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity = function() {
|
|
1538
1644
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1539
1645
|
};
|
|
1540
1646
|
|
|
@@ -1543,16 +1649,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getSiteId =
|
|
|
1543
1649
|
* @param {string} value
|
|
1544
1650
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1545
1651
|
*/
|
|
1546
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1652
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setEntity = function(value) {
|
|
1547
1653
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1548
1654
|
};
|
|
1549
1655
|
|
|
1550
1656
|
|
|
1551
1657
|
/**
|
|
1552
|
-
* optional string
|
|
1658
|
+
* optional string created_date = 3;
|
|
1553
1659
|
* @return {string}
|
|
1554
1660
|
*/
|
|
1555
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1661
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDate = function() {
|
|
1556
1662
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1557
1663
|
};
|
|
1558
1664
|
|
|
@@ -1561,16 +1667,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity =
|
|
|
1561
1667
|
* @param {string} value
|
|
1562
1668
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1563
1669
|
*/
|
|
1564
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1670
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setCreatedDate = function(value) {
|
|
1565
1671
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1566
1672
|
};
|
|
1567
1673
|
|
|
1568
1674
|
|
|
1569
1675
|
/**
|
|
1570
|
-
* optional string
|
|
1676
|
+
* optional string id = 4;
|
|
1571
1677
|
* @return {string}
|
|
1572
1678
|
*/
|
|
1573
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1679
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getId = function() {
|
|
1574
1680
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1575
1681
|
};
|
|
1576
1682
|
|
|
@@ -1579,7 +1685,7 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDa
|
|
|
1579
1685
|
* @param {string} value
|
|
1580
1686
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1581
1687
|
*/
|
|
1582
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1688
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setId = function(value) {
|
|
1583
1689
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1584
1690
|
};
|
|
1585
1691
|
|
|
@@ -1616,10 +1722,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.toObject
|
|
|
1616
1722
|
*/
|
|
1617
1723
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
1618
1724
|
var f, obj = {
|
|
1619
|
-
|
|
1620
|
-
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1621
|
-
entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1622
|
-
deleted: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
1725
|
+
id: (f = msg.getId()) && proto.lansweeper.blockingrules.v1.NullableString.toObject(includeInstance, f)
|
|
1623
1726
|
};
|
|
1624
1727
|
|
|
1625
1728
|
if (includeInstance) {
|
|
@@ -1657,20 +1760,9 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.deserializeBinaryFr
|
|
|
1657
1760
|
var field = reader.getFieldNumber();
|
|
1658
1761
|
switch (field) {
|
|
1659
1762
|
case 1:
|
|
1660
|
-
var value =
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
case 2:
|
|
1664
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1665
|
-
msg.setInstallKey(value);
|
|
1666
|
-
break;
|
|
1667
|
-
case 3:
|
|
1668
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1669
|
-
msg.setEntity(value);
|
|
1670
|
-
break;
|
|
1671
|
-
case 4:
|
|
1672
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1673
|
-
msg.setDeleted(value);
|
|
1763
|
+
var value = new proto.lansweeper.blockingrules.v1.NullableString;
|
|
1764
|
+
reader.readMessage(value,proto.lansweeper.blockingrules.v1.NullableString.deserializeBinaryFromReader);
|
|
1765
|
+
msg.setId(value);
|
|
1674
1766
|
break;
|
|
1675
1767
|
default:
|
|
1676
1768
|
reader.skipField();
|
|
@@ -1701,106 +1793,51 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.serialize
|
|
|
1701
1793
|
*/
|
|
1702
1794
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1703
1795
|
var f = undefined;
|
|
1704
|
-
f = message.
|
|
1705
|
-
if (f
|
|
1706
|
-
writer.
|
|
1796
|
+
f = message.getId();
|
|
1797
|
+
if (f != null) {
|
|
1798
|
+
writer.writeMessage(
|
|
1707
1799
|
1,
|
|
1708
|
-
f
|
|
1709
|
-
|
|
1710
|
-
}
|
|
1711
|
-
f = message.getInstallKey();
|
|
1712
|
-
if (f.length > 0) {
|
|
1713
|
-
writer.writeString(
|
|
1714
|
-
2,
|
|
1715
|
-
f
|
|
1716
|
-
);
|
|
1717
|
-
}
|
|
1718
|
-
f = message.getEntity();
|
|
1719
|
-
if (f.length > 0) {
|
|
1720
|
-
writer.writeString(
|
|
1721
|
-
3,
|
|
1722
|
-
f
|
|
1723
|
-
);
|
|
1724
|
-
}
|
|
1725
|
-
f = message.getDeleted();
|
|
1726
|
-
if (f) {
|
|
1727
|
-
writer.writeBool(
|
|
1728
|
-
4,
|
|
1729
|
-
f
|
|
1800
|
+
f,
|
|
1801
|
+
proto.lansweeper.blockingrules.v1.NullableString.serializeBinaryToWriter
|
|
1730
1802
|
);
|
|
1731
1803
|
}
|
|
1732
1804
|
};
|
|
1733
1805
|
|
|
1734
1806
|
|
|
1735
1807
|
/**
|
|
1736
|
-
* optional
|
|
1737
|
-
* @return {
|
|
1738
|
-
*/
|
|
1739
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getSiteId = function() {
|
|
1740
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1741
|
-
};
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
/**
|
|
1745
|
-
* @param {string} value
|
|
1746
|
-
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
|
|
1747
|
-
*/
|
|
1748
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setSiteId = function(value) {
|
|
1749
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1750
|
-
};
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* optional string install_key = 2;
|
|
1755
|
-
* @return {string}
|
|
1808
|
+
* optional NullableString id = 1;
|
|
1809
|
+
* @return {?proto.lansweeper.blockingrules.v1.NullableString}
|
|
1756
1810
|
*/
|
|
1757
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1758
|
-
return /** @type
|
|
1811
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getId = function() {
|
|
1812
|
+
return /** @type{?proto.lansweeper.blockingrules.v1.NullableString} */ (
|
|
1813
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.blockingrules.v1.NullableString, 1));
|
|
1759
1814
|
};
|
|
1760
1815
|
|
|
1761
1816
|
|
|
1762
1817
|
/**
|
|
1763
|
-
* @param {
|
|
1818
|
+
* @param {?proto.lansweeper.blockingrules.v1.NullableString|undefined} value
|
|
1764
1819
|
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
|
|
1765
|
-
|
|
1766
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1767
|
-
return jspb.Message.
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
/**
|
|
1772
|
-
* optional string entity = 3;
|
|
1773
|
-
* @return {string}
|
|
1774
|
-
*/
|
|
1775
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getEntity = function() {
|
|
1776
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1820
|
+
*/
|
|
1821
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setId = function(value) {
|
|
1822
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1777
1823
|
};
|
|
1778
1824
|
|
|
1779
1825
|
|
|
1780
1826
|
/**
|
|
1781
|
-
*
|
|
1827
|
+
* Clears the message field making it undefined.
|
|
1782
1828
|
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
|
|
1783
1829
|
*/
|
|
1784
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1785
|
-
return
|
|
1830
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.clearId = function() {
|
|
1831
|
+
return this.setId(undefined);
|
|
1786
1832
|
};
|
|
1787
1833
|
|
|
1788
1834
|
|
|
1789
1835
|
/**
|
|
1790
|
-
*
|
|
1836
|
+
* Returns whether this field is set.
|
|
1791
1837
|
* @return {boolean}
|
|
1792
1838
|
*/
|
|
1793
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1794
|
-
return
|
|
1795
|
-
};
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* @param {boolean} value
|
|
1800
|
-
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
|
|
1801
|
-
*/
|
|
1802
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setDeleted = function(value) {
|
|
1803
|
-
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
1839
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.hasId = function() {
|
|
1840
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1804
1841
|
};
|
|
1805
1842
|
|
|
1806
1843
|
|
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"name":"
|
|
1
|
+
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"name":"NullableString","field":[{"name":"data","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","oneofIndex":0,"jsonName":"data"}],"oneofDecl":[{"name":"kind"}]},{"name":"BlockingRule","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"GetBlockingRulesRequest"},{"name":"GetBlockingRulesByInstallRequest","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"SetBlockingRuleRequest","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"}]},{"name":"DeleteBlockingRuleRequest","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"GetBlockingRulesByInstallResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRule","jsonName":"blockingRules"}]},{"name":"GetBlockingRulesResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRule","jsonName":"blockingRules"}]},{"name":"SetBlockingRuleResponse","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"DeleteBlockingRuleResponse","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.NullableString","jsonName":"id"}]}],"service":[{"name":"BlockingRulesService","method":[{"name":"GetBlockingRules","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesResponse","options":{}},{"name":"GetBlockingRulesByInstall","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse","options":{}},{"name":"SetBlockingRule","inputType":".lansweeper.blockingrules.v1.SetBlockingRuleRequest","outputType":".lansweeper.blockingrules.v1.SetBlockingRuleResponse","options":{}},{"name":"DeleteBlockingRule","inputType":".lansweeper.blockingrules.v1.DeleteBlockingRuleRequest","outputType":".lansweeper.blockingrules.v1.DeleteBlockingRuleResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,58,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,36]},{"path":[4,0],"span":[4,0,8,1]},{"path":[4,0,1],"span":[4,8,22]},{"path":[4,0,8,0],"span":[5,2,7,3]},{"path":[4,0,8,0,1],"span":[5,8,12]},{"path":[4,0,2,0],"span":[6,4,20]},{"path":[4,0,2,0,5],"span":[6,4,10]},{"path":[4,0,2,0,1],"span":[6,11,15]},{"path":[4,0,2,0,3],"span":[6,18,19]},{"path":[4,1],"span":[10,0,15,1]},{"path":[4,1,1],"span":[10,8,20]},{"path":[4,1,2,0],"span":[11,2,25]},{"path":[4,1,2,0,5],"span":[11,2,8]},{"path":[4,1,2,0,1],"span":[11,9,20]},{"path":[4,1,2,0,3],"span":[11,23,24]},{"path":[4,1,2,1],"span":[12,2,20]},{"path":[4,1,2,1,5],"span":[12,2,8]},{"path":[4,1,2,1,1],"span":[12,9,15]},{"path":[4,1,2,1,3],"span":[12,18,19]},{"path":[4,1,2,2],"span":[13,2,26]},{"path":[4,1,2,2,5],"span":[13,2,8]},{"path":[4,1,2,2,1],"span":[13,9,21]},{"path":[4,1,2,2,3],"span":[13,24,25]},{"path":[4,1,2,3],"span":[14,2,16]},{"path":[4,1,2,3,5],"span":[14,2,8]},{"path":[4,1,2,3,1],"span":[14,9,11]},{"path":[4,1,2,3,3],"span":[14,14,15]},{"path":[4,2],"span":[17,0,19,1]},{"path":[4,2,1],"span":[17,8,31]},{"path":[4,3],"span":[21,0,23,1]},{"path":[4,3,1],"span":[21,8,40]},{"path":[4,3,2,0],"span":[22,2,25]},{"path":[4,3,2,0,5],"span":[22,2,8]},{"path":[4,3,2,0,1],"span":[22,9,20]},{"path":[4,3,2,0,3],"span":[22,23,24]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,30]},{"path":[4,4,2,0],"span":[26,2,25]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,20]},{"path":[4,4,2,0,3],"span":[26,23,24]},{"path":[4,4,2,1],"span":[27,2,20]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,15]},{"path":[4,4,2,1,3],"span":[27,18,19]},{"path":[4,5],"span":[30,0,32,1]},{"path":[4,5,1],"span":[30,8,33]},{"path":[4,5,2,0],"span":[31,2,16]},{"path":[4,5,2,0,5],"span":[31,2,8]},{"path":[4,5,2,0,1],"span":[31,9,11]},{"path":[4,5,2,0,3],"span":[31,14,15]},{"path":[4,6],"span":[34,0,36,1]},{"path":[4,6,1],"span":[34,8,41]},{"path":[4,6,2,0],"span":[35,2,43]},{"path":[4,6,2,0,4],"span":[35,2,10]},{"path":[4,6,2,0,6],"span":[35,11,23]},{"path":[4,6,2,0,1],"span":[35,24,38]},{"path":[4,6,2,0,3],"span":[35,41,42]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,32]},{"path":[4,7,2,0],"span":[39,2,43]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,23]},{"path":[4,7,2,0,1],"span":[39,24,38]},{"path":[4,7,2,0,3],"span":[39,41,42]},{"path":[4,8],"span":[42,0,47,1]},{"path":[4,8,1],"span":[42,8,31]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,20]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,15]},{"path":[4,8,2,1,3],"span":[44,18,19]},{"path":[4,8,2,2],"span":[45,2,26]},{"path":[4,8,2,2,5],"span":[45,2,8]},{"path":[4,8,2,2,1],"span":[45,9,21]},{"path":[4,8,2,2,3],"span":[45,24,25]},{"path":[4,8,2,3],"span":[46,2,16]},{"path":[4,8,2,3,5],"span":[46,2,8]},{"path":[4,8,2,3,1],"span":[46,9,11]},{"path":[4,8,2,3,3],"span":[46,14,15]},{"path":[4,9],"span":[49,0,51,1]},{"path":[4,9,1],"span":[49,8,34]},{"path":[4,9,2,0],"span":[50,8,30]},{"path":[4,9,2,0,6],"span":[50,8,22]},{"path":[4,9,2,0,1],"span":[50,23,25]},{"path":[4,9,2,0,3],"span":[50,28,29]},{"path":[6,0],"span":[53,0,58,1]},{"path":[6,0,1],"span":[53,8,28]},{"path":[6,0,2,0],"span":[54,2,85]},{"path":[6,0,2,0,1],"span":[54,6,22]},{"path":[6,0,2,0,2],"span":[54,23,46]},{"path":[6,0,2,0,3],"span":[54,57,81]},{"path":[6,0,2,1],"span":[55,2,112]},{"path":[6,0,2,1,1],"span":[55,6,31]},{"path":[6,0,2,1,2],"span":[55,32,64]},{"path":[6,0,2,1,3],"span":[55,75,108]},{"path":[6,0,2,2],"span":[56,2,82]},{"path":[6,0,2,2,1],"span":[56,6,21]},{"path":[6,0,2,2,2],"span":[56,22,44]},{"path":[6,0,2,2,3],"span":[56,55,78]},{"path":[6,0,2,3],"span":[57,2,91]},{"path":[6,0,2,3,1],"span":[57,6,24]},{"path":[6,0,2,3,2],"span":[57,25,50]},{"path":[6,0,2,3,3],"span":[57,61,87]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/blocking-rules-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "blocking rules grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/google-protobuf": "^3.15.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "3ca4dbc98964f78b09024d0f398cf19c27256756"
|
|
20
20
|
}
|
|
@@ -2,11 +2,17 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package lansweeper.blockingrules.v1;
|
|
4
4
|
|
|
5
|
+
message NullableString {
|
|
6
|
+
oneof kind {
|
|
7
|
+
string data = 1;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
message BlockingRule {
|
|
6
12
|
string install_key = 1;
|
|
7
|
-
string
|
|
8
|
-
string
|
|
9
|
-
string
|
|
13
|
+
string entity = 2;
|
|
14
|
+
string created_date = 3;
|
|
15
|
+
string id = 4;
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
message GetBlockingRulesRequest {
|
|
@@ -18,15 +24,12 @@ message GetBlockingRulesByInstallRequest {
|
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
message SetBlockingRuleRequest {
|
|
21
|
-
string
|
|
22
|
-
string
|
|
23
|
-
string entity = 3;
|
|
27
|
+
string install_key = 1;
|
|
28
|
+
string entity = 2;
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
message DeleteBlockingRuleRequest {
|
|
27
|
-
string
|
|
28
|
-
string install_key = 2;
|
|
29
|
-
string entity = 3;
|
|
32
|
+
string id = 1;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
message GetBlockingRulesByInstallResponse {
|
|
@@ -39,16 +42,13 @@ message GetBlockingRulesResponse {
|
|
|
39
42
|
|
|
40
43
|
message SetBlockingRuleResponse {
|
|
41
44
|
string install_key = 1;
|
|
42
|
-
string
|
|
43
|
-
string
|
|
44
|
-
string
|
|
45
|
+
string entity = 2;
|
|
46
|
+
string created_date = 3;
|
|
47
|
+
string id = 4;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
message DeleteBlockingRuleResponse {
|
|
48
|
-
|
|
49
|
-
string install_key = 2;
|
|
50
|
-
string entity = 3;
|
|
51
|
-
bool deleted = 4;
|
|
51
|
+
NullableString id = 1;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
service BlockingRulesService {
|