@lansweeper/blocking-rules-grpc 0.0.3 → 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.
- package/gen-proto/blocking_rules_grpc_pb.d.ts +17 -0
- package/gen-proto/blocking_rules_grpc_pb.js +33 -0
- package/gen-proto/blocking_rules_pb.d.ts +54 -5
- package/gen-proto/blocking_rules_pb.js +428 -34
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/blocking_rules.proto +13 -1
|
@@ -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>;
|
|
@@ -127,10 +169,14 @@ export namespace GetBlockingRulesResponse {
|
|
|
127
169
|
}
|
|
128
170
|
|
|
129
171
|
export class SetBlockingRuleResponse extends jspb.Message {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
172
|
+
getInstallKey(): string;
|
|
173
|
+
setInstallKey(value: string): SetBlockingRuleResponse;
|
|
174
|
+
getSiteId(): string;
|
|
175
|
+
setSiteId(value: string): SetBlockingRuleResponse;
|
|
176
|
+
getEntity(): string;
|
|
177
|
+
setEntity(value: string): SetBlockingRuleResponse;
|
|
178
|
+
getCreatedDate(): string;
|
|
179
|
+
setCreatedDate(value: string): SetBlockingRuleResponse;
|
|
134
180
|
|
|
135
181
|
serializeBinary(): Uint8Array;
|
|
136
182
|
toObject(includeInstance?: boolean): SetBlockingRuleResponse.AsObject;
|
|
@@ -144,7 +190,10 @@ export class SetBlockingRuleResponse extends jspb.Message {
|
|
|
144
190
|
|
|
145
191
|
export namespace SetBlockingRuleResponse {
|
|
146
192
|
export type AsObject = {
|
|
147
|
-
|
|
193
|
+
installKey: string,
|
|
194
|
+
siteId: string,
|
|
195
|
+
entity: string,
|
|
196
|
+
createdDate: string,
|
|
148
197
|
}
|
|
149
198
|
}
|
|
150
199
|
|
|
@@ -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
|
|
@@ -138,7 +182,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
138
182
|
* @constructor
|
|
139
183
|
*/
|
|
140
184
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse = function(opt_data) {
|
|
141
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
185
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
142
186
|
};
|
|
143
187
|
goog.inherits(proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse, jspb.Message);
|
|
144
188
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -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>}
|
|
@@ -1031,13 +1365,6 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.clearBlocki
|
|
|
1031
1365
|
|
|
1032
1366
|
|
|
1033
1367
|
|
|
1034
|
-
/**
|
|
1035
|
-
* List of repeated fields within this message type.
|
|
1036
|
-
* @private {!Array<number>}
|
|
1037
|
-
* @const
|
|
1038
|
-
*/
|
|
1039
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.repeatedFields_ = [1];
|
|
1040
|
-
|
|
1041
1368
|
|
|
1042
1369
|
|
|
1043
1370
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1069,8 +1396,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.toObject = f
|
|
|
1069
1396
|
*/
|
|
1070
1397
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
1071
1398
|
var f, obj = {
|
|
1072
|
-
|
|
1073
|
-
|
|
1399
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1400
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1401
|
+
entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1402
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1074
1403
|
};
|
|
1075
1404
|
|
|
1076
1405
|
if (includeInstance) {
|
|
@@ -1108,9 +1437,20 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromR
|
|
|
1108
1437
|
var field = reader.getFieldNumber();
|
|
1109
1438
|
switch (field) {
|
|
1110
1439
|
case 1:
|
|
1111
|
-
var value =
|
|
1112
|
-
|
|
1113
|
-
|
|
1440
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1441
|
+
msg.setInstallKey(value);
|
|
1442
|
+
break;
|
|
1443
|
+
case 2:
|
|
1444
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1445
|
+
msg.setSiteId(value);
|
|
1446
|
+
break;
|
|
1447
|
+
case 3:
|
|
1448
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1449
|
+
msg.setEntity(value);
|
|
1450
|
+
break;
|
|
1451
|
+
case 4:
|
|
1452
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1453
|
+
msg.setCreatedDate(value);
|
|
1114
1454
|
break;
|
|
1115
1455
|
default:
|
|
1116
1456
|
reader.skipField();
|
|
@@ -1141,52 +1481,106 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.serializeBin
|
|
|
1141
1481
|
*/
|
|
1142
1482
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1143
1483
|
var f = undefined;
|
|
1144
|
-
f = message.
|
|
1484
|
+
f = message.getInstallKey();
|
|
1145
1485
|
if (f.length > 0) {
|
|
1146
|
-
writer.
|
|
1486
|
+
writer.writeString(
|
|
1147
1487
|
1,
|
|
1148
|
-
f
|
|
1149
|
-
|
|
1488
|
+
f
|
|
1489
|
+
);
|
|
1490
|
+
}
|
|
1491
|
+
f = message.getSiteId();
|
|
1492
|
+
if (f.length > 0) {
|
|
1493
|
+
writer.writeString(
|
|
1494
|
+
2,
|
|
1495
|
+
f
|
|
1496
|
+
);
|
|
1497
|
+
}
|
|
1498
|
+
f = message.getEntity();
|
|
1499
|
+
if (f.length > 0) {
|
|
1500
|
+
writer.writeString(
|
|
1501
|
+
3,
|
|
1502
|
+
f
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
f = message.getCreatedDate();
|
|
1506
|
+
if (f.length > 0) {
|
|
1507
|
+
writer.writeString(
|
|
1508
|
+
4,
|
|
1509
|
+
f
|
|
1150
1510
|
);
|
|
1151
1511
|
}
|
|
1152
1512
|
};
|
|
1153
1513
|
|
|
1154
1514
|
|
|
1155
1515
|
/**
|
|
1156
|
-
*
|
|
1157
|
-
* @return {
|
|
1516
|
+
* optional string install_key = 1;
|
|
1517
|
+
* @return {string}
|
|
1158
1518
|
*/
|
|
1159
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1160
|
-
return /** @type{
|
|
1161
|
-
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRule, 1));
|
|
1519
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getInstallKey = function() {
|
|
1520
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1162
1521
|
};
|
|
1163
1522
|
|
|
1164
1523
|
|
|
1165
1524
|
/**
|
|
1166
|
-
* @param {
|
|
1525
|
+
* @param {string} value
|
|
1167
1526
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1168
|
-
*/
|
|
1169
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1170
|
-
return jspb.Message.
|
|
1527
|
+
*/
|
|
1528
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setInstallKey = function(value) {
|
|
1529
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1171
1530
|
};
|
|
1172
1531
|
|
|
1173
1532
|
|
|
1174
1533
|
/**
|
|
1175
|
-
*
|
|
1176
|
-
* @
|
|
1177
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule}
|
|
1534
|
+
* optional string site_id = 2;
|
|
1535
|
+
* @return {string}
|
|
1178
1536
|
*/
|
|
1179
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1180
|
-
return jspb.Message.
|
|
1537
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getSiteId = function() {
|
|
1538
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1181
1539
|
};
|
|
1182
1540
|
|
|
1183
1541
|
|
|
1184
1542
|
/**
|
|
1185
|
-
*
|
|
1543
|
+
* @param {string} value
|
|
1186
1544
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1187
1545
|
*/
|
|
1188
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1189
|
-
return
|
|
1546
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setSiteId = function(value) {
|
|
1547
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* optional string entity = 3;
|
|
1553
|
+
* @return {string}
|
|
1554
|
+
*/
|
|
1555
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity = function() {
|
|
1556
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* @param {string} value
|
|
1562
|
+
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1563
|
+
*/
|
|
1564
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setEntity = function(value) {
|
|
1565
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* optional string created_date = 4;
|
|
1571
|
+
* @return {string}
|
|
1572
|
+
*/
|
|
1573
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDate = function() {
|
|
1574
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* @param {string} value
|
|
1580
|
+
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1581
|
+
*/
|
|
1582
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setCreatedDate = function(value) {
|
|
1583
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1190
1584
|
};
|
|
1191
1585
|
|
|
1192
1586
|
|
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":"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":"
|
|
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.
|
|
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": "
|
|
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,12 +29,19 @@ 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
|
}
|
|
31
39
|
|
|
32
40
|
message SetBlockingRuleResponse {
|
|
33
|
-
|
|
41
|
+
string install_key = 1;
|
|
42
|
+
string site_id = 2;
|
|
43
|
+
string entity = 3;
|
|
44
|
+
string created_date = 4;
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
message DeleteBlockingRuleResponse {
|
|
@@ -42,6 +53,7 @@ message DeleteBlockingRuleResponse {
|
|
|
42
53
|
|
|
43
54
|
service BlockingRulesService {
|
|
44
55
|
rpc GetBlockingRules(GetBlockingRulesRequest) returns (GetBlockingRulesResponse) {}
|
|
56
|
+
rpc GetBlockingRulesByInstall(GetBlockingRulesByInstallRequest) returns (GetBlockingRulesByInstallResponse) {}
|
|
45
57
|
rpc SetBlockingRule(SetBlockingRuleRequest) returns (SetBlockingRuleResponse) {}
|
|
46
58
|
rpc DeleteBlockingRule(DeleteBlockingRuleRequest) returns (DeleteBlockingRuleResponse) {}
|
|
47
59
|
}
|