@lansweeper/blocking-rules-grpc 0.0.5 → 0.0.6
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 -21
- package/gen-proto/blocking_rules_pb.js +288 -161
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/blocking_rules.proto +10 -7
|
@@ -6,6 +6,37 @@
|
|
|
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;
|
|
@@ -15,6 +46,8 @@ export class BlockingRule extends jspb.Message {
|
|
|
15
46
|
setEntity(value: string): BlockingRule;
|
|
16
47
|
getCreatedDate(): string;
|
|
17
48
|
setCreatedDate(value: string): BlockingRule;
|
|
49
|
+
getId(): string;
|
|
50
|
+
setId(value: string): BlockingRule;
|
|
18
51
|
|
|
19
52
|
serializeBinary(): Uint8Array;
|
|
20
53
|
toObject(includeInstance?: boolean): BlockingRule.AsObject;
|
|
@@ -32,6 +65,7 @@ export namespace BlockingRule {
|
|
|
32
65
|
siteId: string,
|
|
33
66
|
entity: string,
|
|
34
67
|
createdDate: string,
|
|
68
|
+
id: string,
|
|
35
69
|
}
|
|
36
70
|
}
|
|
37
71
|
|
|
@@ -99,12 +133,8 @@ export namespace SetBlockingRuleRequest {
|
|
|
99
133
|
}
|
|
100
134
|
|
|
101
135
|
export class DeleteBlockingRuleRequest extends jspb.Message {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
getInstallKey(): string;
|
|
105
|
-
setInstallKey(value: string): DeleteBlockingRuleRequest;
|
|
106
|
-
getEntity(): string;
|
|
107
|
-
setEntity(value: string): DeleteBlockingRuleRequest;
|
|
136
|
+
getId(): string;
|
|
137
|
+
setId(value: string): DeleteBlockingRuleRequest;
|
|
108
138
|
|
|
109
139
|
serializeBinary(): Uint8Array;
|
|
110
140
|
toObject(includeInstance?: boolean): DeleteBlockingRuleRequest.AsObject;
|
|
@@ -118,9 +148,7 @@ export class DeleteBlockingRuleRequest extends jspb.Message {
|
|
|
118
148
|
|
|
119
149
|
export namespace DeleteBlockingRuleRequest {
|
|
120
150
|
export type AsObject = {
|
|
121
|
-
|
|
122
|
-
installKey: string,
|
|
123
|
-
entity: string,
|
|
151
|
+
id: string,
|
|
124
152
|
}
|
|
125
153
|
}
|
|
126
154
|
|
|
@@ -177,6 +205,8 @@ export class SetBlockingRuleResponse extends jspb.Message {
|
|
|
177
205
|
setEntity(value: string): SetBlockingRuleResponse;
|
|
178
206
|
getCreatedDate(): string;
|
|
179
207
|
setCreatedDate(value: string): SetBlockingRuleResponse;
|
|
208
|
+
getId(): string;
|
|
209
|
+
setId(value: string): SetBlockingRuleResponse;
|
|
180
210
|
|
|
181
211
|
serializeBinary(): Uint8Array;
|
|
182
212
|
toObject(includeInstance?: boolean): SetBlockingRuleResponse.AsObject;
|
|
@@ -194,18 +224,16 @@ export namespace SetBlockingRuleResponse {
|
|
|
194
224
|
siteId: string,
|
|
195
225
|
entity: string,
|
|
196
226
|
createdDate: string,
|
|
227
|
+
id: string,
|
|
197
228
|
}
|
|
198
229
|
}
|
|
199
230
|
|
|
200
231
|
export class DeleteBlockingRuleResponse extends jspb.Message {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
setEntity(value: string): DeleteBlockingRuleResponse;
|
|
207
|
-
getDeleted(): boolean;
|
|
208
|
-
setDeleted(value: boolean): DeleteBlockingRuleResponse;
|
|
232
|
+
|
|
233
|
+
hasId(): boolean;
|
|
234
|
+
clearId(): void;
|
|
235
|
+
getId(): NullableString | undefined;
|
|
236
|
+
setId(value?: NullableString): DeleteBlockingRuleResponse;
|
|
209
237
|
|
|
210
238
|
serializeBinary(): Uint8Array;
|
|
211
239
|
toObject(includeInstance?: boolean): DeleteBlockingRuleResponse.AsObject;
|
|
@@ -219,9 +247,6 @@ export class DeleteBlockingRuleResponse extends jspb.Message {
|
|
|
219
247
|
|
|
220
248
|
export namespace DeleteBlockingRuleResponse {
|
|
221
249
|
export type AsObject = {
|
|
222
|
-
|
|
223
|
-
installKey: string,
|
|
224
|
-
entity: string,
|
|
225
|
-
deleted: boolean,
|
|
250
|
+
id?: NullableString.AsObject,
|
|
226
251
|
}
|
|
227
252
|
}
|
|
@@ -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) {
|
|
@@ -248,7 +444,8 @@ proto.lansweeper.blockingrules.v1.BlockingRule.toObject = function(includeInstan
|
|
|
248
444
|
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
249
445
|
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
250
446
|
entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
251
|
-
createdDate: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
447
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
448
|
+
id: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
252
449
|
};
|
|
253
450
|
|
|
254
451
|
if (includeInstance) {
|
|
@@ -301,6 +498,10 @@ proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader = fun
|
|
|
301
498
|
var value = /** @type {string} */ (reader.readString());
|
|
302
499
|
msg.setCreatedDate(value);
|
|
303
500
|
break;
|
|
501
|
+
case 5:
|
|
502
|
+
var value = /** @type {string} */ (reader.readString());
|
|
503
|
+
msg.setId(value);
|
|
504
|
+
break;
|
|
304
505
|
default:
|
|
305
506
|
reader.skipField();
|
|
306
507
|
break;
|
|
@@ -358,6 +559,13 @@ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter = functio
|
|
|
358
559
|
f
|
|
359
560
|
);
|
|
360
561
|
}
|
|
562
|
+
f = message.getId();
|
|
563
|
+
if (f.length > 0) {
|
|
564
|
+
writer.writeString(
|
|
565
|
+
5,
|
|
566
|
+
f
|
|
567
|
+
);
|
|
568
|
+
}
|
|
361
569
|
};
|
|
362
570
|
|
|
363
571
|
|
|
@@ -433,6 +641,24 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setCreatedDate = functi
|
|
|
433
641
|
};
|
|
434
642
|
|
|
435
643
|
|
|
644
|
+
/**
|
|
645
|
+
* optional string id = 5;
|
|
646
|
+
* @return {string}
|
|
647
|
+
*/
|
|
648
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getId = function() {
|
|
649
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @param {string} value
|
|
655
|
+
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
|
|
656
|
+
*/
|
|
657
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setId = function(value) {
|
|
658
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
|
|
436
662
|
|
|
437
663
|
|
|
438
664
|
|
|
@@ -886,9 +1112,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.toObject =
|
|
|
886
1112
|
*/
|
|
887
1113
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.toObject = function(includeInstance, msg) {
|
|
888
1114
|
var f, obj = {
|
|
889
|
-
|
|
890
|
-
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
891
|
-
entity: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1115
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
892
1116
|
};
|
|
893
1117
|
|
|
894
1118
|
if (includeInstance) {
|
|
@@ -927,15 +1151,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.deserializeBinaryFro
|
|
|
927
1151
|
switch (field) {
|
|
928
1152
|
case 1:
|
|
929
1153
|
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);
|
|
1154
|
+
msg.setId(value);
|
|
939
1155
|
break;
|
|
940
1156
|
default:
|
|
941
1157
|
reader.skipField();
|
|
@@ -966,35 +1182,21 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.serializeB
|
|
|
966
1182
|
*/
|
|
967
1183
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
968
1184
|
var f = undefined;
|
|
969
|
-
f = message.
|
|
1185
|
+
f = message.getId();
|
|
970
1186
|
if (f.length > 0) {
|
|
971
1187
|
writer.writeString(
|
|
972
1188
|
1,
|
|
973
1189
|
f
|
|
974
1190
|
);
|
|
975
1191
|
}
|
|
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
1192
|
};
|
|
991
1193
|
|
|
992
1194
|
|
|
993
1195
|
/**
|
|
994
|
-
* optional string
|
|
1196
|
+
* optional string id = 1;
|
|
995
1197
|
* @return {string}
|
|
996
1198
|
*/
|
|
997
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.
|
|
1199
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getId = function() {
|
|
998
1200
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
999
1201
|
};
|
|
1000
1202
|
|
|
@@ -1003,47 +1205,11 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getSiteId
|
|
|
1003
1205
|
* @param {string} value
|
|
1004
1206
|
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
|
|
1005
1207
|
*/
|
|
1006
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.
|
|
1208
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setId = function(value) {
|
|
1007
1209
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1008
1210
|
};
|
|
1009
1211
|
|
|
1010
1212
|
|
|
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
1213
|
|
|
1048
1214
|
/**
|
|
1049
1215
|
* List of repeated fields within this message type.
|
|
@@ -1399,7 +1565,8 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(in
|
|
|
1399
1565
|
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1400
1566
|
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1401
1567
|
entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1402
|
-
createdDate: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1568
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1569
|
+
id: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1403
1570
|
};
|
|
1404
1571
|
|
|
1405
1572
|
if (includeInstance) {
|
|
@@ -1452,6 +1619,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromR
|
|
|
1452
1619
|
var value = /** @type {string} */ (reader.readString());
|
|
1453
1620
|
msg.setCreatedDate(value);
|
|
1454
1621
|
break;
|
|
1622
|
+
case 5:
|
|
1623
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1624
|
+
msg.setId(value);
|
|
1625
|
+
break;
|
|
1455
1626
|
default:
|
|
1456
1627
|
reader.skipField();
|
|
1457
1628
|
break;
|
|
@@ -1509,6 +1680,13 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWrite
|
|
|
1509
1680
|
f
|
|
1510
1681
|
);
|
|
1511
1682
|
}
|
|
1683
|
+
f = message.getId();
|
|
1684
|
+
if (f.length > 0) {
|
|
1685
|
+
writer.writeString(
|
|
1686
|
+
5,
|
|
1687
|
+
f
|
|
1688
|
+
);
|
|
1689
|
+
}
|
|
1512
1690
|
};
|
|
1513
1691
|
|
|
1514
1692
|
|
|
@@ -1584,6 +1762,24 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setCreatedDa
|
|
|
1584
1762
|
};
|
|
1585
1763
|
|
|
1586
1764
|
|
|
1765
|
+
/**
|
|
1766
|
+
* optional string id = 5;
|
|
1767
|
+
* @return {string}
|
|
1768
|
+
*/
|
|
1769
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getId = function() {
|
|
1770
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1771
|
+
};
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* @param {string} value
|
|
1776
|
+
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1777
|
+
*/
|
|
1778
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setId = function(value) {
|
|
1779
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
|
+
|
|
1587
1783
|
|
|
1588
1784
|
|
|
1589
1785
|
|
|
@@ -1616,10 +1812,7 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.toObject
|
|
|
1616
1812
|
*/
|
|
1617
1813
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
1618
1814
|
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)
|
|
1815
|
+
id: (f = msg.getId()) && proto.lansweeper.blockingrules.v1.NullableString.toObject(includeInstance, f)
|
|
1623
1816
|
};
|
|
1624
1817
|
|
|
1625
1818
|
if (includeInstance) {
|
|
@@ -1657,20 +1850,9 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.deserializeBinaryFr
|
|
|
1657
1850
|
var field = reader.getFieldNumber();
|
|
1658
1851
|
switch (field) {
|
|
1659
1852
|
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);
|
|
1853
|
+
var value = new proto.lansweeper.blockingrules.v1.NullableString;
|
|
1854
|
+
reader.readMessage(value,proto.lansweeper.blockingrules.v1.NullableString.deserializeBinaryFromReader);
|
|
1855
|
+
msg.setId(value);
|
|
1674
1856
|
break;
|
|
1675
1857
|
default:
|
|
1676
1858
|
reader.skipField();
|
|
@@ -1701,106 +1883,51 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.serialize
|
|
|
1701
1883
|
*/
|
|
1702
1884
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1703
1885
|
var f = undefined;
|
|
1704
|
-
f = message.
|
|
1705
|
-
if (f
|
|
1706
|
-
writer.
|
|
1886
|
+
f = message.getId();
|
|
1887
|
+
if (f != null) {
|
|
1888
|
+
writer.writeMessage(
|
|
1707
1889
|
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
|
|
1890
|
+
f,
|
|
1891
|
+
proto.lansweeper.blockingrules.v1.NullableString.serializeBinaryToWriter
|
|
1730
1892
|
);
|
|
1731
1893
|
}
|
|
1732
1894
|
};
|
|
1733
1895
|
|
|
1734
1896
|
|
|
1735
1897
|
/**
|
|
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}
|
|
1898
|
+
* optional NullableString id = 1;
|
|
1899
|
+
* @return {?proto.lansweeper.blockingrules.v1.NullableString}
|
|
1756
1900
|
*/
|
|
1757
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1758
|
-
return /** @type
|
|
1901
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getId = function() {
|
|
1902
|
+
return /** @type{?proto.lansweeper.blockingrules.v1.NullableString} */ (
|
|
1903
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.blockingrules.v1.NullableString, 1));
|
|
1759
1904
|
};
|
|
1760
1905
|
|
|
1761
1906
|
|
|
1762
1907
|
/**
|
|
1763
|
-
* @param {
|
|
1908
|
+
* @param {?proto.lansweeper.blockingrules.v1.NullableString|undefined} value
|
|
1764
1909
|
* @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, ""));
|
|
1910
|
+
*/
|
|
1911
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setId = function(value) {
|
|
1912
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1777
1913
|
};
|
|
1778
1914
|
|
|
1779
1915
|
|
|
1780
1916
|
/**
|
|
1781
|
-
*
|
|
1917
|
+
* Clears the message field making it undefined.
|
|
1782
1918
|
* @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
|
|
1783
1919
|
*/
|
|
1784
|
-
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.
|
|
1785
|
-
return
|
|
1920
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.clearId = function() {
|
|
1921
|
+
return this.setId(undefined);
|
|
1786
1922
|
};
|
|
1787
1923
|
|
|
1788
1924
|
|
|
1789
1925
|
/**
|
|
1790
|
-
*
|
|
1926
|
+
* Returns whether this field is set.
|
|
1791
1927
|
* @return {boolean}
|
|
1792
1928
|
*/
|
|
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);
|
|
1929
|
+
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.hasId = function() {
|
|
1930
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1804
1931
|
};
|
|
1805
1932
|
|
|
1806
1933
|
|
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"name":"BlockingRule","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"}]},{"name":"GetBlockingRulesRequest"},{"name":"GetBlockingRulesByInstallRequest","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"SetBlockingRuleRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"}]},{"name":"DeleteBlockingRuleRequest","field":[{"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":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":5,"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":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":3,"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":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":5,"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,61,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,16,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,21]},{"path":[4,1,2,1,5],"span":[12,2,8]},{"path":[4,1,2,1,1],"span":[12,9,16]},{"path":[4,1,2,1,3],"span":[12,19,20]},{"path":[4,1,2,2],"span":[13,2,20]},{"path":[4,1,2,2,5],"span":[13,2,8]},{"path":[4,1,2,2,1],"span":[13,9,15]},{"path":[4,1,2,2,3],"span":[13,18,19]},{"path":[4,1,2,3],"span":[14,2,26]},{"path":[4,1,2,3,5],"span":[14,2,8]},{"path":[4,1,2,3,1],"span":[14,9,21]},{"path":[4,1,2,3,3],"span":[14,24,25]},{"path":[4,1,2,4],"span":[15,2,16]},{"path":[4,1,2,4,5],"span":[15,2,8]},{"path":[4,1,2,4,1],"span":[15,9,11]},{"path":[4,1,2,4,3],"span":[15,14,15]},{"path":[4,2],"span":[18,0,20,1]},{"path":[4,2,1],"span":[18,8,31]},{"path":[4,3],"span":[22,0,24,1]},{"path":[4,3,1],"span":[22,8,40]},{"path":[4,3,2,0],"span":[23,2,25]},{"path":[4,3,2,0,5],"span":[23,2,8]},{"path":[4,3,2,0,1],"span":[23,9,20]},{"path":[4,3,2,0,3],"span":[23,23,24]},{"path":[4,4],"span":[26,0,30,1]},{"path":[4,4,1],"span":[26,8,30]},{"path":[4,4,2,0],"span":[27,2,21]},{"path":[4,4,2,0,5],"span":[27,2,8]},{"path":[4,4,2,0,1],"span":[27,9,16]},{"path":[4,4,2,0,3],"span":[27,19,20]},{"path":[4,4,2,1],"span":[28,2,25]},{"path":[4,4,2,1,5],"span":[28,2,8]},{"path":[4,4,2,1,1],"span":[28,9,20]},{"path":[4,4,2,1,3],"span":[28,23,24]},{"path":[4,4,2,2],"span":[29,2,20]},{"path":[4,4,2,2,5],"span":[29,2,8]},{"path":[4,4,2,2,1],"span":[29,9,15]},{"path":[4,4,2,2,3],"span":[29,18,19]},{"path":[4,5],"span":[32,0,34,1]},{"path":[4,5,1],"span":[32,8,33]},{"path":[4,5,2,0],"span":[33,2,16]},{"path":[4,5,2,0,5],"span":[33,2,8]},{"path":[4,5,2,0,1],"span":[33,9,11]},{"path":[4,5,2,0,3],"span":[33,14,15]},{"path":[4,6],"span":[36,0,38,1]},{"path":[4,6,1],"span":[36,8,41]},{"path":[4,6,2,0],"span":[37,2,43]},{"path":[4,6,2,0,4],"span":[37,2,10]},{"path":[4,6,2,0,6],"span":[37,11,23]},{"path":[4,6,2,0,1],"span":[37,24,38]},{"path":[4,6,2,0,3],"span":[37,41,42]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,32]},{"path":[4,7,2,0],"span":[41,2,43]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,23]},{"path":[4,7,2,0,1],"span":[41,24,38]},{"path":[4,7,2,0,3],"span":[41,41,42]},{"path":[4,8],"span":[44,0,50,1]},{"path":[4,8,1],"span":[44,8,31]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,21]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,16]},{"path":[4,8,2,1,3],"span":[46,19,20]},{"path":[4,8,2,2],"span":[47,2,20]},{"path":[4,8,2,2,5],"span":[47,2,8]},{"path":[4,8,2,2,1],"span":[47,9,15]},{"path":[4,8,2,2,3],"span":[47,18,19]},{"path":[4,8,2,3],"span":[48,2,26]},{"path":[4,8,2,3,5],"span":[48,2,8]},{"path":[4,8,2,3,1],"span":[48,9,21]},{"path":[4,8,2,3,3],"span":[48,24,25]},{"path":[4,8,2,4],"span":[49,2,16]},{"path":[4,8,2,4,5],"span":[49,2,8]},{"path":[4,8,2,4,1],"span":[49,9,11]},{"path":[4,8,2,4,3],"span":[49,14,15]},{"path":[4,9],"span":[52,0,54,1]},{"path":[4,9,1],"span":[52,8,34]},{"path":[4,9,2,0],"span":[53,8,30]},{"path":[4,9,2,0,6],"span":[53,8,22]},{"path":[4,9,2,0,1],"span":[53,23,25]},{"path":[4,9,2,0,3],"span":[53,28,29]},{"path":[6,0],"span":[56,0,61,1]},{"path":[6,0,1],"span":[56,8,28]},{"path":[6,0,2,0],"span":[57,2,85]},{"path":[6,0,2,0,1],"span":[57,6,22]},{"path":[6,0,2,0,2],"span":[57,23,46]},{"path":[6,0,2,0,3],"span":[57,57,81]},{"path":[6,0,2,1],"span":[58,2,112]},{"path":[6,0,2,1,1],"span":[58,6,31]},{"path":[6,0,2,1,2],"span":[58,32,64]},{"path":[6,0,2,1,3],"span":[58,75,108]},{"path":[6,0,2,2],"span":[59,2,82]},{"path":[6,0,2,2,1],"span":[59,6,21]},{"path":[6,0,2,2,2],"span":[59,22,44]},{"path":[6,0,2,2,3],"span":[59,55,78]},{"path":[6,0,2,3],"span":[60,2,91]},{"path":[6,0,2,3,1],"span":[60,6,24]},{"path":[6,0,2,3,2],"span":[60,25,50]},{"path":[6,0,2,3,3],"span":[60,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.6",
|
|
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": "c36b9e4a55177683c7421f6928f306581e8ad7fb"
|
|
20
20
|
}
|
|
@@ -2,11 +2,18 @@ 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
13
|
string site_id = 2;
|
|
8
14
|
string entity = 3;
|
|
9
15
|
string created_date = 4;
|
|
16
|
+
string id = 5;
|
|
10
17
|
}
|
|
11
18
|
|
|
12
19
|
message GetBlockingRulesRequest {
|
|
@@ -24,9 +31,7 @@ message SetBlockingRuleRequest {
|
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
message DeleteBlockingRuleRequest {
|
|
27
|
-
string
|
|
28
|
-
string install_key = 2;
|
|
29
|
-
string entity = 3;
|
|
34
|
+
string id = 1;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
message GetBlockingRulesByInstallResponse {
|
|
@@ -42,13 +47,11 @@ message SetBlockingRuleResponse {
|
|
|
42
47
|
string site_id = 2;
|
|
43
48
|
string entity = 3;
|
|
44
49
|
string created_date = 4;
|
|
50
|
+
string id = 5;
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
message DeleteBlockingRuleResponse {
|
|
48
|
-
|
|
49
|
-
string install_key = 2;
|
|
50
|
-
string entity = 3;
|
|
51
|
-
bool deleted = 4;
|
|
54
|
+
NullableString id = 1;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
service BlockingRulesService {
|