@lansweeper/blocking-rules-grpc 0.0.4 → 0.0.5

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.
@@ -9,6 +9,7 @@ import * as blocking_rules_pb from "./blocking_rules_pb";
9
9
 
10
10
  interface IBlockingRulesServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
11
  getBlockingRules: IBlockingRulesServiceService_IGetBlockingRules;
12
+ getBlockingRulesByInstall: IBlockingRulesServiceService_IGetBlockingRulesByInstall;
12
13
  setBlockingRule: IBlockingRulesServiceService_ISetBlockingRule;
13
14
  deleteBlockingRule: IBlockingRulesServiceService_IDeleteBlockingRule;
14
15
  }
@@ -22,6 +23,15 @@ interface IBlockingRulesServiceService_IGetBlockingRules extends grpc.MethodDefi
22
23
  responseSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesResponse>;
23
24
  responseDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesResponse>;
24
25
  }
26
+ interface IBlockingRulesServiceService_IGetBlockingRulesByInstall extends grpc.MethodDefinition<blocking_rules_pb.GetBlockingRulesByInstallRequest, blocking_rules_pb.GetBlockingRulesByInstallResponse> {
27
+ path: "/lansweeper.blockingrules.v1.BlockingRulesService/GetBlockingRulesByInstall";
28
+ requestStream: false;
29
+ responseStream: false;
30
+ requestSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesByInstallRequest>;
31
+ requestDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesByInstallRequest>;
32
+ responseSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesByInstallResponse>;
33
+ responseDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesByInstallResponse>;
34
+ }
25
35
  interface IBlockingRulesServiceService_ISetBlockingRule extends grpc.MethodDefinition<blocking_rules_pb.SetBlockingRuleRequest, blocking_rules_pb.SetBlockingRuleResponse> {
26
36
  path: "/lansweeper.blockingrules.v1.BlockingRulesService/SetBlockingRule";
27
37
  requestStream: false;
@@ -45,6 +55,7 @@ export const BlockingRulesServiceService: IBlockingRulesServiceService;
45
55
 
46
56
  export interface IBlockingRulesServiceServer extends grpc.UntypedServiceImplementation {
47
57
  getBlockingRules: grpc.handleUnaryCall<blocking_rules_pb.GetBlockingRulesRequest, blocking_rules_pb.GetBlockingRulesResponse>;
58
+ getBlockingRulesByInstall: grpc.handleUnaryCall<blocking_rules_pb.GetBlockingRulesByInstallRequest, blocking_rules_pb.GetBlockingRulesByInstallResponse>;
48
59
  setBlockingRule: grpc.handleUnaryCall<blocking_rules_pb.SetBlockingRuleRequest, blocking_rules_pb.SetBlockingRuleResponse>;
49
60
  deleteBlockingRule: grpc.handleUnaryCall<blocking_rules_pb.DeleteBlockingRuleRequest, blocking_rules_pb.DeleteBlockingRuleResponse>;
50
61
  }
@@ -53,6 +64,9 @@ export interface IBlockingRulesServiceClient {
53
64
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
54
65
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
55
66
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
67
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
68
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
69
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
56
70
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
57
71
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
58
72
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
@@ -66,6 +80,9 @@ export class BlockingRulesServiceClient extends grpc.Client implements IBlocking
66
80
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
67
81
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
68
82
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
83
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
84
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
85
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
69
86
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
70
87
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
71
88
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
@@ -26,6 +26,28 @@ function deserialize_lansweeper_blockingrules_v1_DeleteBlockingRuleResponse(buff
26
26
  return blocking_rules_pb.DeleteBlockingRuleResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest(arg) {
30
+ if (!(arg instanceof blocking_rules_pb.GetBlockingRulesByInstallRequest)) {
31
+ throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest(buffer_arg) {
37
+ return blocking_rules_pb.GetBlockingRulesByInstallRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse(arg) {
41
+ if (!(arg instanceof blocking_rules_pb.GetBlockingRulesByInstallResponse)) {
42
+ throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse(buffer_arg) {
48
+ return blocking_rules_pb.GetBlockingRulesByInstallResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
  function serialize_lansweeper_blockingrules_v1_GetBlockingRulesRequest(arg) {
30
52
  if (!(arg instanceof blocking_rules_pb.GetBlockingRulesRequest)) {
31
53
  throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesRequest');
@@ -83,6 +105,17 @@ var BlockingRulesServiceService = exports.BlockingRulesServiceService = {
83
105
  responseSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesResponse,
84
106
  responseDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesResponse,
85
107
  },
108
+ getBlockingRulesByInstall: {
109
+ path: '/lansweeper.blockingrules.v1.BlockingRulesService/GetBlockingRulesByInstall',
110
+ requestStream: false,
111
+ responseStream: false,
112
+ requestType: blocking_rules_pb.GetBlockingRulesByInstallRequest,
113
+ responseType: blocking_rules_pb.GetBlockingRulesByInstallResponse,
114
+ requestSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest,
115
+ requestDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest,
116
+ responseSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse,
117
+ responseDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse,
118
+ },
86
119
  setBlockingRule: {
87
120
  path: '/lansweeper.blockingrules.v1.BlockingRulesService/SetBlockingRule',
88
121
  requestStream: false,
@@ -52,6 +52,26 @@ export namespace GetBlockingRulesRequest {
52
52
  }
53
53
  }
54
54
 
55
+ export class GetBlockingRulesByInstallRequest extends jspb.Message {
56
+ getInstallKey(): string;
57
+ setInstallKey(value: string): GetBlockingRulesByInstallRequest;
58
+
59
+ serializeBinary(): Uint8Array;
60
+ toObject(includeInstance?: boolean): GetBlockingRulesByInstallRequest.AsObject;
61
+ static toObject(includeInstance: boolean, msg: GetBlockingRulesByInstallRequest): GetBlockingRulesByInstallRequest.AsObject;
62
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
63
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
64
+ static serializeBinaryToWriter(message: GetBlockingRulesByInstallRequest, writer: jspb.BinaryWriter): void;
65
+ static deserializeBinary(bytes: Uint8Array): GetBlockingRulesByInstallRequest;
66
+ static deserializeBinaryFromReader(message: GetBlockingRulesByInstallRequest, reader: jspb.BinaryReader): GetBlockingRulesByInstallRequest;
67
+ }
68
+
69
+ export namespace GetBlockingRulesByInstallRequest {
70
+ export type AsObject = {
71
+ installKey: string,
72
+ }
73
+ }
74
+
55
75
  export class SetBlockingRuleRequest extends jspb.Message {
56
76
  getSiteId(): string;
57
77
  setSiteId(value: string): SetBlockingRuleRequest;
@@ -104,6 +124,28 @@ export namespace DeleteBlockingRuleRequest {
104
124
  }
105
125
  }
106
126
 
127
+ export class GetBlockingRulesByInstallResponse extends jspb.Message {
128
+ clearBlockingRulesList(): void;
129
+ getBlockingRulesList(): Array<BlockingRule>;
130
+ setBlockingRulesList(value: Array<BlockingRule>): GetBlockingRulesByInstallResponse;
131
+ addBlockingRules(value?: BlockingRule, index?: number): BlockingRule;
132
+
133
+ serializeBinary(): Uint8Array;
134
+ toObject(includeInstance?: boolean): GetBlockingRulesByInstallResponse.AsObject;
135
+ static toObject(includeInstance: boolean, msg: GetBlockingRulesByInstallResponse): GetBlockingRulesByInstallResponse.AsObject;
136
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
137
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
138
+ static serializeBinaryToWriter(message: GetBlockingRulesByInstallResponse, writer: jspb.BinaryWriter): void;
139
+ static deserializeBinary(bytes: Uint8Array): GetBlockingRulesByInstallResponse;
140
+ static deserializeBinaryFromReader(message: GetBlockingRulesByInstallResponse, reader: jspb.BinaryReader): GetBlockingRulesByInstallResponse;
141
+ }
142
+
143
+ export namespace GetBlockingRulesByInstallResponse {
144
+ export type AsObject = {
145
+ blockingRulesList: Array<BlockingRule.AsObject>,
146
+ }
147
+ }
148
+
107
149
  export class GetBlockingRulesResponse extends jspb.Message {
108
150
  clearBlockingRulesList(): void;
109
151
  getBlockingRulesList(): Array<BlockingRule>;
@@ -18,6 +18,8 @@ var global = Function('return this')();
18
18
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.BlockingRule', null, global);
19
19
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest', null, global);
20
20
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse', null, global);
21
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest', null, global);
22
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse', null, global);
21
23
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest', null, global);
22
24
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse', null, global);
23
25
  goog.exportSymbol('proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest', null, global);
@@ -64,6 +66,27 @@ if (goog.DEBUG && !COMPILED) {
64
66
  */
65
67
  proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.displayName = 'proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest';
66
68
  }
69
+ /**
70
+ * Generated by JsPbCodeGenerator.
71
+ * @param {Array=} opt_data Optional initial data array, typically from a
72
+ * server response, or constructed directly in Javascript. The array is used
73
+ * in place and becomes part of the constructed object. It is not cloned.
74
+ * If no data is provided, the constructed object will be empty, but still
75
+ * valid.
76
+ * @extends {jspb.Message}
77
+ * @constructor
78
+ */
79
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
81
+ };
82
+ goog.inherits(proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest, jspb.Message);
83
+ if (goog.DEBUG && !COMPILED) {
84
+ /**
85
+ * @public
86
+ * @override
87
+ */
88
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.displayName = 'proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest';
89
+ }
67
90
  /**
68
91
  * Generated by JsPbCodeGenerator.
69
92
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -106,6 +129,27 @@ if (goog.DEBUG && !COMPILED) {
106
129
  */
107
130
  proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.displayName = 'proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest';
108
131
  }
132
+ /**
133
+ * Generated by JsPbCodeGenerator.
134
+ * @param {Array=} opt_data Optional initial data array, typically from a
135
+ * server response, or constructed directly in Javascript. The array is used
136
+ * in place and becomes part of the constructed object. It is not cloned.
137
+ * If no data is provided, the constructed object will be empty, but still
138
+ * valid.
139
+ * @extends {jspb.Message}
140
+ * @constructor
141
+ */
142
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse = function(opt_data) {
143
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.repeatedFields_, null);
144
+ };
145
+ goog.inherits(proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse, jspb.Message);
146
+ if (goog.DEBUG && !COMPILED) {
147
+ /**
148
+ * @public
149
+ * @override
150
+ */
151
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.displayName = 'proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse';
152
+ }
109
153
  /**
110
154
  * Generated by JsPbCodeGenerator.
111
155
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -493,6 +537,136 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.serializeBinaryToWrite
493
537
 
494
538
 
495
539
 
540
+ if (jspb.Message.GENERATE_TO_OBJECT) {
541
+ /**
542
+ * Creates an object representation of this proto.
543
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
544
+ * Optional fields that are not set will be set to undefined.
545
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
546
+ * For the list of reserved names please see:
547
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
548
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
549
+ * JSPB instance for transitional soy proto support:
550
+ * http://goto/soy-param-migration
551
+ * @return {!Object}
552
+ */
553
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.prototype.toObject = function(opt_includeInstance) {
554
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.toObject(opt_includeInstance, this);
555
+ };
556
+
557
+
558
+ /**
559
+ * Static version of the {@see toObject} method.
560
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
561
+ * the JSPB instance for transitional soy proto support:
562
+ * http://goto/soy-param-migration
563
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest} msg The msg instance to transform.
564
+ * @return {!Object}
565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
566
+ */
567
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.toObject = function(includeInstance, msg) {
568
+ var f, obj = {
569
+ installKey: jspb.Message.getFieldWithDefault(msg, 1, "")
570
+ };
571
+
572
+ if (includeInstance) {
573
+ obj.$jspbMessageInstance = msg;
574
+ }
575
+ return obj;
576
+ };
577
+ }
578
+
579
+
580
+ /**
581
+ * Deserializes binary data (in protobuf wire format).
582
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
583
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest}
584
+ */
585
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.deserializeBinary = function(bytes) {
586
+ var reader = new jspb.BinaryReader(bytes);
587
+ var msg = new proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest;
588
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.deserializeBinaryFromReader(msg, reader);
589
+ };
590
+
591
+
592
+ /**
593
+ * Deserializes binary data (in protobuf wire format) from the
594
+ * given reader into the given message object.
595
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest} msg The message object to deserialize into.
596
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
597
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest}
598
+ */
599
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.deserializeBinaryFromReader = function(msg, reader) {
600
+ while (reader.nextField()) {
601
+ if (reader.isEndGroup()) {
602
+ break;
603
+ }
604
+ var field = reader.getFieldNumber();
605
+ switch (field) {
606
+ case 1:
607
+ var value = /** @type {string} */ (reader.readString());
608
+ msg.setInstallKey(value);
609
+ break;
610
+ default:
611
+ reader.skipField();
612
+ break;
613
+ }
614
+ }
615
+ return msg;
616
+ };
617
+
618
+
619
+ /**
620
+ * Serializes the message to binary data (in protobuf wire format).
621
+ * @return {!Uint8Array}
622
+ */
623
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.prototype.serializeBinary = function() {
624
+ var writer = new jspb.BinaryWriter();
625
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.serializeBinaryToWriter(this, writer);
626
+ return writer.getResultBuffer();
627
+ };
628
+
629
+
630
+ /**
631
+ * Serializes the given message to binary data (in protobuf wire
632
+ * format), writing to the given BinaryWriter.
633
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest} message
634
+ * @param {!jspb.BinaryWriter} writer
635
+ * @suppress {unusedLocalVariables} f is only used for nested messages
636
+ */
637
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.serializeBinaryToWriter = function(message, writer) {
638
+ var f = undefined;
639
+ f = message.getInstallKey();
640
+ if (f.length > 0) {
641
+ writer.writeString(
642
+ 1,
643
+ f
644
+ );
645
+ }
646
+ };
647
+
648
+
649
+ /**
650
+ * optional string install_key = 1;
651
+ * @return {string}
652
+ */
653
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.prototype.getInstallKey = function() {
654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
655
+ };
656
+
657
+
658
+ /**
659
+ * @param {string} value
660
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest} returns this
661
+ */
662
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest.prototype.setInstallKey = function(value) {
663
+ return jspb.Message.setProto3StringField(this, 1, value);
664
+ };
665
+
666
+
667
+
668
+
669
+
496
670
  if (jspb.Message.GENERATE_TO_OBJECT) {
497
671
  /**
498
672
  * Creates an object representation of this proto.
@@ -871,6 +1045,166 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setEntity
871
1045
 
872
1046
 
873
1047
 
1048
+ /**
1049
+ * List of repeated fields within this message type.
1050
+ * @private {!Array<number>}
1051
+ * @const
1052
+ */
1053
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.repeatedFields_ = [1];
1054
+
1055
+
1056
+
1057
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1058
+ /**
1059
+ * Creates an object representation of this proto.
1060
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1061
+ * Optional fields that are not set will be set to undefined.
1062
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1063
+ * For the list of reserved names please see:
1064
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1065
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1066
+ * JSPB instance for transitional soy proto support:
1067
+ * http://goto/soy-param-migration
1068
+ * @return {!Object}
1069
+ */
1070
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.toObject = function(opt_includeInstance) {
1071
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.toObject(opt_includeInstance, this);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Static version of the {@see toObject} method.
1077
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1078
+ * the JSPB instance for transitional soy proto support:
1079
+ * http://goto/soy-param-migration
1080
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse} msg The msg instance to transform.
1081
+ * @return {!Object}
1082
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1083
+ */
1084
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.toObject = function(includeInstance, msg) {
1085
+ var f, obj = {
1086
+ blockingRulesList: jspb.Message.toObjectList(msg.getBlockingRulesList(),
1087
+ proto.lansweeper.blockingrules.v1.BlockingRule.toObject, includeInstance)
1088
+ };
1089
+
1090
+ if (includeInstance) {
1091
+ obj.$jspbMessageInstance = msg;
1092
+ }
1093
+ return obj;
1094
+ };
1095
+ }
1096
+
1097
+
1098
+ /**
1099
+ * Deserializes binary data (in protobuf wire format).
1100
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1101
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse}
1102
+ */
1103
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.deserializeBinary = function(bytes) {
1104
+ var reader = new jspb.BinaryReader(bytes);
1105
+ var msg = new proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse;
1106
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.deserializeBinaryFromReader(msg, reader);
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * Deserializes binary data (in protobuf wire format) from the
1112
+ * given reader into the given message object.
1113
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse} msg The message object to deserialize into.
1114
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1115
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse}
1116
+ */
1117
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.deserializeBinaryFromReader = function(msg, reader) {
1118
+ while (reader.nextField()) {
1119
+ if (reader.isEndGroup()) {
1120
+ break;
1121
+ }
1122
+ var field = reader.getFieldNumber();
1123
+ switch (field) {
1124
+ case 1:
1125
+ var value = new proto.lansweeper.blockingrules.v1.BlockingRule;
1126
+ reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader);
1127
+ msg.addBlockingRules(value);
1128
+ break;
1129
+ default:
1130
+ reader.skipField();
1131
+ break;
1132
+ }
1133
+ }
1134
+ return msg;
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * Serializes the message to binary data (in protobuf wire format).
1140
+ * @return {!Uint8Array}
1141
+ */
1142
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.serializeBinary = function() {
1143
+ var writer = new jspb.BinaryWriter();
1144
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.serializeBinaryToWriter(this, writer);
1145
+ return writer.getResultBuffer();
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Serializes the given message to binary data (in protobuf wire
1151
+ * format), writing to the given BinaryWriter.
1152
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse} message
1153
+ * @param {!jspb.BinaryWriter} writer
1154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1155
+ */
1156
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.serializeBinaryToWriter = function(message, writer) {
1157
+ var f = undefined;
1158
+ f = message.getBlockingRulesList();
1159
+ if (f.length > 0) {
1160
+ writer.writeRepeatedMessage(
1161
+ 1,
1162
+ f,
1163
+ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter
1164
+ );
1165
+ }
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * repeated BlockingRule blocking_rules = 1;
1171
+ * @return {!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>}
1172
+ */
1173
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.getBlockingRulesList = function() {
1174
+ return /** @type{!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>} */ (
1175
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRule, 1));
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * @param {!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>} value
1181
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse} returns this
1182
+ */
1183
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.setBlockingRulesList = function(value) {
1184
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRule=} opt_value
1190
+ * @param {number=} opt_index
1191
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule}
1192
+ */
1193
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.addBlockingRules = function(opt_value, opt_index) {
1194
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.blockingrules.v1.BlockingRule, opt_index);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Clears the list making it empty but non-null.
1200
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse} returns this
1201
+ */
1202
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse.prototype.clearBlockingRulesList = function() {
1203
+ return this.setBlockingRulesList([]);
1204
+ };
1205
+
1206
+
1207
+
874
1208
  /**
875
1209
  * List of repeated fields within this message type.
876
1210
  * @private {!Array<number>}
@@ -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":"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":"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":"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":"DeleteBlockingRuleResponse","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":"deleted","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"deleted"}]}],"service":[{"name":"BlockingRulesService","method":[{"name":"GetBlockingRules","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesResponse","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,49,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,36]},{"path":[4,0],"span":[4,0,9,1]},{"path":[4,0,1],"span":[4,8,20]},{"path":[4,0,2,0],"span":[5,2,25]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,20]},{"path":[4,0,2,0,3],"span":[5,23,24]},{"path":[4,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,0,2,2],"span":[7,2,20]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,15]},{"path":[4,0,2,2,3],"span":[7,18,19]},{"path":[4,0,2,3],"span":[8,2,26]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,21]},{"path":[4,0,2,3,3],"span":[8,24,25]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,31]},{"path":[4,2],"span":[15,0,19,1]},{"path":[4,2,1],"span":[15,8,30]},{"path":[4,2,2,0],"span":[16,2,21]},{"path":[4,2,2,0,5],"span":[16,2,8]},{"path":[4,2,2,0,1],"span":[16,9,16]},{"path":[4,2,2,0,3],"span":[16,19,20]},{"path":[4,2,2,1],"span":[17,2,25]},{"path":[4,2,2,1,5],"span":[17,2,8]},{"path":[4,2,2,1,1],"span":[17,9,20]},{"path":[4,2,2,1,3],"span":[17,23,24]},{"path":[4,2,2,2],"span":[18,2,20]},{"path":[4,2,2,2,5],"span":[18,2,8]},{"path":[4,2,2,2,1],"span":[18,9,15]},{"path":[4,2,2,2,3],"span":[18,18,19]},{"path":[4,3],"span":[21,0,25,1]},{"path":[4,3,1],"span":[21,8,33]},{"path":[4,3,2,0],"span":[22,2,21]},{"path":[4,3,2,0,5],"span":[22,2,8]},{"path":[4,3,2,0,1],"span":[22,9,16]},{"path":[4,3,2,0,3],"span":[22,19,20]},{"path":[4,3,2,1],"span":[23,2,25]},{"path":[4,3,2,1,5],"span":[23,2,8]},{"path":[4,3,2,1,1],"span":[23,9,20]},{"path":[4,3,2,1,3],"span":[23,23,24]},{"path":[4,3,2,2],"span":[24,2,20]},{"path":[4,3,2,2,5],"span":[24,2,8]},{"path":[4,3,2,2,1],"span":[24,9,15]},{"path":[4,3,2,2,3],"span":[24,18,19]},{"path":[4,4],"span":[27,0,29,1]},{"path":[4,4,1],"span":[27,8,32]},{"path":[4,4,2,0],"span":[28,2,43]},{"path":[4,4,2,0,4],"span":[28,2,10]},{"path":[4,4,2,0,6],"span":[28,11,23]},{"path":[4,4,2,0,1],"span":[28,24,38]},{"path":[4,4,2,0,3],"span":[28,41,42]},{"path":[4,5],"span":[31,0,36,1]},{"path":[4,5,1],"span":[31,8,31]},{"path":[4,5,2,0],"span":[32,2,25]},{"path":[4,5,2,0,5],"span":[32,2,8]},{"path":[4,5,2,0,1],"span":[32,9,20]},{"path":[4,5,2,0,3],"span":[32,23,24]},{"path":[4,5,2,1],"span":[33,2,21]},{"path":[4,5,2,1,5],"span":[33,2,8]},{"path":[4,5,2,1,1],"span":[33,9,16]},{"path":[4,5,2,1,3],"span":[33,19,20]},{"path":[4,5,2,2],"span":[34,2,20]},{"path":[4,5,2,2,5],"span":[34,2,8]},{"path":[4,5,2,2,1],"span":[34,9,15]},{"path":[4,5,2,2,3],"span":[34,18,19]},{"path":[4,5,2,3],"span":[35,2,26]},{"path":[4,5,2,3,5],"span":[35,2,8]},{"path":[4,5,2,3,1],"span":[35,9,21]},{"path":[4,5,2,3,3],"span":[35,24,25]},{"path":[4,6],"span":[38,0,43,1]},{"path":[4,6,1],"span":[38,8,34]},{"path":[4,6,2,0],"span":[39,2,21]},{"path":[4,6,2,0,5],"span":[39,2,8]},{"path":[4,6,2,0,1],"span":[39,9,16]},{"path":[4,6,2,0,3],"span":[39,19,20]},{"path":[4,6,2,1],"span":[40,2,25]},{"path":[4,6,2,1,5],"span":[40,2,8]},{"path":[4,6,2,1,1],"span":[40,9,20]},{"path":[4,6,2,1,3],"span":[40,23,24]},{"path":[4,6,2,2],"span":[41,2,20]},{"path":[4,6,2,2,5],"span":[41,2,8]},{"path":[4,6,2,2,1],"span":[41,9,15]},{"path":[4,6,2,2,3],"span":[41,18,19]},{"path":[4,6,2,3],"span":[42,2,19]},{"path":[4,6,2,3,5],"span":[42,2,6]},{"path":[4,6,2,3,1],"span":[42,7,14]},{"path":[4,6,2,3,3],"span":[42,17,18]},{"path":[6,0],"span":[45,0,49,1]},{"path":[6,0,1],"span":[45,8,28]},{"path":[6,0,2,0],"span":[46,2,85]},{"path":[6,0,2,0,1],"span":[46,6,22]},{"path":[6,0,2,0,2],"span":[46,23,46]},{"path":[6,0,2,0,3],"span":[46,57,81]},{"path":[6,0,2,1],"span":[47,2,82]},{"path":[6,0,2,1,1],"span":[47,6,21]},{"path":[6,0,2,1,2],"span":[47,22,44]},{"path":[6,0,2,1,3],"span":[47,55,78]},{"path":[6,0,2,2],"span":[48,2,91]},{"path":[6,0,2,2,1],"span":[48,6,24]},{"path":[6,0,2,2,2],"span":[48,25,50]},{"path":[6,0,2,2,3],"span":[48,61,87]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
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":"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":"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":"DeleteBlockingRuleResponse","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":"deleted","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"deleted"}]}],"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,9,1]},{"path":[4,0,1],"span":[4,8,20]},{"path":[4,0,2,0],"span":[5,2,25]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,20]},{"path":[4,0,2,0,3],"span":[5,23,24]},{"path":[4,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,0,2,2],"span":[7,2,20]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,15]},{"path":[4,0,2,2,3],"span":[7,18,19]},{"path":[4,0,2,3],"span":[8,2,26]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,21]},{"path":[4,0,2,3,3],"span":[8,24,25]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,31]},{"path":[4,2],"span":[15,0,17,1]},{"path":[4,2,1],"span":[15,8,40]},{"path":[4,2,2,0],"span":[16,2,25]},{"path":[4,2,2,0,5],"span":[16,2,8]},{"path":[4,2,2,0,1],"span":[16,9,20]},{"path":[4,2,2,0,3],"span":[16,23,24]},{"path":[4,3],"span":[19,0,23,1]},{"path":[4,3,1],"span":[19,8,30]},{"path":[4,3,2,0],"span":[20,2,21]},{"path":[4,3,2,0,5],"span":[20,2,8]},{"path":[4,3,2,0,1],"span":[20,9,16]},{"path":[4,3,2,0,3],"span":[20,19,20]},{"path":[4,3,2,1],"span":[21,2,25]},{"path":[4,3,2,1,5],"span":[21,2,8]},{"path":[4,3,2,1,1],"span":[21,9,20]},{"path":[4,3,2,1,3],"span":[21,23,24]},{"path":[4,3,2,2],"span":[22,2,20]},{"path":[4,3,2,2,5],"span":[22,2,8]},{"path":[4,3,2,2,1],"span":[22,9,15]},{"path":[4,3,2,2,3],"span":[22,18,19]},{"path":[4,4],"span":[25,0,29,1]},{"path":[4,4,1],"span":[25,8,33]},{"path":[4,4,2,0],"span":[26,2,21]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,16]},{"path":[4,4,2,0,3],"span":[26,19,20]},{"path":[4,4,2,1],"span":[27,2,25]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,20]},{"path":[4,4,2,1,3],"span":[27,23,24]},{"path":[4,4,2,2],"span":[28,2,20]},{"path":[4,4,2,2,5],"span":[28,2,8]},{"path":[4,4,2,2,1],"span":[28,9,15]},{"path":[4,4,2,2,3],"span":[28,18,19]},{"path":[4,5],"span":[31,0,33,1]},{"path":[4,5,1],"span":[31,8,41]},{"path":[4,5,2,0],"span":[32,2,43]},{"path":[4,5,2,0,4],"span":[32,2,10]},{"path":[4,5,2,0,6],"span":[32,11,23]},{"path":[4,5,2,0,1],"span":[32,24,38]},{"path":[4,5,2,0,3],"span":[32,41,42]},{"path":[4,6],"span":[35,0,37,1]},{"path":[4,6,1],"span":[35,8,32]},{"path":[4,6,2,0],"span":[36,2,43]},{"path":[4,6,2,0,4],"span":[36,2,10]},{"path":[4,6,2,0,6],"span":[36,11,23]},{"path":[4,6,2,0,1],"span":[36,24,38]},{"path":[4,6,2,0,3],"span":[36,41,42]},{"path":[4,7],"span":[39,0,44,1]},{"path":[4,7,1],"span":[39,8,31]},{"path":[4,7,2,0],"span":[40,2,25]},{"path":[4,7,2,0,5],"span":[40,2,8]},{"path":[4,7,2,0,1],"span":[40,9,20]},{"path":[4,7,2,0,3],"span":[40,23,24]},{"path":[4,7,2,1],"span":[41,2,21]},{"path":[4,7,2,1,5],"span":[41,2,8]},{"path":[4,7,2,1,1],"span":[41,9,16]},{"path":[4,7,2,1,3],"span":[41,19,20]},{"path":[4,7,2,2],"span":[42,2,20]},{"path":[4,7,2,2,5],"span":[42,2,8]},{"path":[4,7,2,2,1],"span":[42,9,15]},{"path":[4,7,2,2,3],"span":[42,18,19]},{"path":[4,7,2,3],"span":[43,2,26]},{"path":[4,7,2,3,5],"span":[43,2,8]},{"path":[4,7,2,3,1],"span":[43,9,21]},{"path":[4,7,2,3,3],"span":[43,24,25]},{"path":[4,8],"span":[46,0,51,1]},{"path":[4,8,1],"span":[46,8,34]},{"path":[4,8,2,0],"span":[47,2,21]},{"path":[4,8,2,0,5],"span":[47,2,8]},{"path":[4,8,2,0,1],"span":[47,9,16]},{"path":[4,8,2,0,3],"span":[47,19,20]},{"path":[4,8,2,1],"span":[48,2,25]},{"path":[4,8,2,1,5],"span":[48,2,8]},{"path":[4,8,2,1,1],"span":[48,9,20]},{"path":[4,8,2,1,3],"span":[48,23,24]},{"path":[4,8,2,2],"span":[49,2,20]},{"path":[4,8,2,2,5],"span":[49,2,8]},{"path":[4,8,2,2,1],"span":[49,9,15]},{"path":[4,8,2,2,3],"span":[49,18,19]},{"path":[4,8,2,3],"span":[50,2,19]},{"path":[4,8,2,3,5],"span":[50,2,6]},{"path":[4,8,2,3,1],"span":[50,7,14]},{"path":[4,8,2,3,3],"span":[50,17,18]},{"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.4",
3
+ "version": "0.0.5",
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": "403ec88ca8cf8f42b50f18dd204ec227cb807576"
19
+ "gitHead": "a3b90640b58c688dac227adecea71bf07193e30e"
20
20
  }
@@ -13,6 +13,10 @@ message GetBlockingRulesRequest {
13
13
 
14
14
  }
15
15
 
16
+ message GetBlockingRulesByInstallRequest {
17
+ string install_key = 1;
18
+ }
19
+
16
20
  message SetBlockingRuleRequest {
17
21
  string site_id = 1;
18
22
  string install_key = 2;
@@ -25,6 +29,10 @@ message DeleteBlockingRuleRequest {
25
29
  string entity = 3;
26
30
  }
27
31
 
32
+ message GetBlockingRulesByInstallResponse {
33
+ repeated BlockingRule blocking_rules = 1;
34
+ }
35
+
28
36
  message GetBlockingRulesResponse {
29
37
  repeated BlockingRule blocking_rules = 1;
30
38
  }
@@ -45,6 +53,7 @@ message DeleteBlockingRuleResponse {
45
53
 
46
54
  service BlockingRulesService {
47
55
  rpc GetBlockingRules(GetBlockingRulesRequest) returns (GetBlockingRulesResponse) {}
56
+ rpc GetBlockingRulesByInstall(GetBlockingRulesByInstallRequest) returns (GetBlockingRulesByInstallResponse) {}
48
57
  rpc SetBlockingRule(SetBlockingRuleRequest) returns (SetBlockingRuleResponse) {}
49
58
  rpc DeleteBlockingRule(DeleteBlockingRuleRequest) returns (DeleteBlockingRuleResponse) {}
50
59
  }