@lansweeper/blocking-rules-grpc 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen-proto/blocking_rules_pb.d.ts +16 -32
- package/gen-proto/blocking_rules_pb.js +106 -219
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/blocking_rules.proto +5 -6
|
@@ -104,34 +104,11 @@ export namespace DeleteBlockingRuleRequest {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export class BlockingRuleResponse extends jspb.Message {
|
|
108
|
-
|
|
109
|
-
hasBlockingRule(): boolean;
|
|
110
|
-
clearBlockingRule(): void;
|
|
111
|
-
getBlockingRule(): BlockingRule | undefined;
|
|
112
|
-
setBlockingRule(value?: BlockingRule): BlockingRuleResponse;
|
|
113
|
-
|
|
114
|
-
serializeBinary(): Uint8Array;
|
|
115
|
-
toObject(includeInstance?: boolean): BlockingRuleResponse.AsObject;
|
|
116
|
-
static toObject(includeInstance: boolean, msg: BlockingRuleResponse): BlockingRuleResponse.AsObject;
|
|
117
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
118
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
119
|
-
static serializeBinaryToWriter(message: BlockingRuleResponse, writer: jspb.BinaryWriter): void;
|
|
120
|
-
static deserializeBinary(bytes: Uint8Array): BlockingRuleResponse;
|
|
121
|
-
static deserializeBinaryFromReader(message: BlockingRuleResponse, reader: jspb.BinaryReader): BlockingRuleResponse;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export namespace BlockingRuleResponse {
|
|
125
|
-
export type AsObject = {
|
|
126
|
-
blockingRule?: BlockingRule.AsObject,
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
107
|
export class GetBlockingRulesResponse extends jspb.Message {
|
|
131
108
|
clearBlockingRulesList(): void;
|
|
132
|
-
getBlockingRulesList(): Array<
|
|
133
|
-
setBlockingRulesList(value: Array<
|
|
134
|
-
addBlockingRules(value?:
|
|
109
|
+
getBlockingRulesList(): Array<BlockingRule>;
|
|
110
|
+
setBlockingRulesList(value: Array<BlockingRule>): GetBlockingRulesResponse;
|
|
111
|
+
addBlockingRules(value?: BlockingRule, index?: number): BlockingRule;
|
|
135
112
|
|
|
136
113
|
serializeBinary(): Uint8Array;
|
|
137
114
|
toObject(includeInstance?: boolean): GetBlockingRulesResponse.AsObject;
|
|
@@ -145,15 +122,19 @@ export class GetBlockingRulesResponse extends jspb.Message {
|
|
|
145
122
|
|
|
146
123
|
export namespace GetBlockingRulesResponse {
|
|
147
124
|
export type AsObject = {
|
|
148
|
-
blockingRulesList: Array<
|
|
125
|
+
blockingRulesList: Array<BlockingRule.AsObject>,
|
|
149
126
|
}
|
|
150
127
|
}
|
|
151
128
|
|
|
152
129
|
export class SetBlockingRuleResponse extends jspb.Message {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
130
|
+
getInstallKey(): string;
|
|
131
|
+
setInstallKey(value: string): SetBlockingRuleResponse;
|
|
132
|
+
getSiteId(): string;
|
|
133
|
+
setSiteId(value: string): SetBlockingRuleResponse;
|
|
134
|
+
getEntity(): string;
|
|
135
|
+
setEntity(value: string): SetBlockingRuleResponse;
|
|
136
|
+
getCreatedDate(): string;
|
|
137
|
+
setCreatedDate(value: string): SetBlockingRuleResponse;
|
|
157
138
|
|
|
158
139
|
serializeBinary(): Uint8Array;
|
|
159
140
|
toObject(includeInstance?: boolean): SetBlockingRuleResponse.AsObject;
|
|
@@ -167,7 +148,10 @@ export class SetBlockingRuleResponse extends jspb.Message {
|
|
|
167
148
|
|
|
168
149
|
export namespace SetBlockingRuleResponse {
|
|
169
150
|
export type AsObject = {
|
|
170
|
-
|
|
151
|
+
installKey: string,
|
|
152
|
+
siteId: string,
|
|
153
|
+
entity: string,
|
|
154
|
+
createdDate: string,
|
|
171
155
|
}
|
|
172
156
|
}
|
|
173
157
|
|
|
@@ -16,7 +16,6 @@ var goog = jspb;
|
|
|
16
16
|
var global = Function('return this')();
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.BlockingRule', null, global);
|
|
19
|
-
goog.exportSymbol('proto.lansweeper.blockingrules.v1.BlockingRuleResponse', null, global);
|
|
20
19
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest', null, global);
|
|
21
20
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse', null, global);
|
|
22
21
|
goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest', null, global);
|
|
@@ -107,27 +106,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
107
106
|
*/
|
|
108
107
|
proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.displayName = 'proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest';
|
|
109
108
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Generated by JsPbCodeGenerator.
|
|
112
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
113
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
114
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
115
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
116
|
-
* valid.
|
|
117
|
-
* @extends {jspb.Message}
|
|
118
|
-
* @constructor
|
|
119
|
-
*/
|
|
120
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse = function(opt_data) {
|
|
121
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
122
|
-
};
|
|
123
|
-
goog.inherits(proto.lansweeper.blockingrules.v1.BlockingRuleResponse, jspb.Message);
|
|
124
|
-
if (goog.DEBUG && !COMPILED) {
|
|
125
|
-
/**
|
|
126
|
-
* @public
|
|
127
|
-
* @override
|
|
128
|
-
*/
|
|
129
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.displayName = 'proto.lansweeper.blockingrules.v1.BlockingRuleResponse';
|
|
130
|
-
}
|
|
131
109
|
/**
|
|
132
110
|
* Generated by JsPbCodeGenerator.
|
|
133
111
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -160,7 +138,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
160
138
|
* @constructor
|
|
161
139
|
*/
|
|
162
140
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse = function(opt_data) {
|
|
163
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
141
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
164
142
|
};
|
|
165
143
|
goog.inherits(proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse, jspb.Message);
|
|
166
144
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -893,157 +871,6 @@ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setEntity
|
|
|
893
871
|
|
|
894
872
|
|
|
895
873
|
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
899
|
-
/**
|
|
900
|
-
* Creates an object representation of this proto.
|
|
901
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
902
|
-
* Optional fields that are not set will be set to undefined.
|
|
903
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
904
|
-
* For the list of reserved names please see:
|
|
905
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
906
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
907
|
-
* JSPB instance for transitional soy proto support:
|
|
908
|
-
* http://goto/soy-param-migration
|
|
909
|
-
* @return {!Object}
|
|
910
|
-
*/
|
|
911
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.toObject = function(opt_includeInstance) {
|
|
912
|
-
return proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject(opt_includeInstance, this);
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* Static version of the {@see toObject} method.
|
|
918
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
919
|
-
* the JSPB instance for transitional soy proto support:
|
|
920
|
-
* http://goto/soy-param-migration
|
|
921
|
-
* @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} msg The msg instance to transform.
|
|
922
|
-
* @return {!Object}
|
|
923
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
924
|
-
*/
|
|
925
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
926
|
-
var f, obj = {
|
|
927
|
-
blockingRule: (f = msg.getBlockingRule()) && proto.lansweeper.blockingrules.v1.BlockingRule.toObject(includeInstance, f)
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
if (includeInstance) {
|
|
931
|
-
obj.$jspbMessageInstance = msg;
|
|
932
|
-
}
|
|
933
|
-
return obj;
|
|
934
|
-
};
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Deserializes binary data (in protobuf wire format).
|
|
940
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
941
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
|
|
942
|
-
*/
|
|
943
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinary = function(bytes) {
|
|
944
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
945
|
-
var msg = new proto.lansweeper.blockingrules.v1.BlockingRuleResponse;
|
|
946
|
-
return proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader(msg, reader);
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
952
|
-
* given reader into the given message object.
|
|
953
|
-
* @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} msg The message object to deserialize into.
|
|
954
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
955
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
|
|
956
|
-
*/
|
|
957
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
958
|
-
while (reader.nextField()) {
|
|
959
|
-
if (reader.isEndGroup()) {
|
|
960
|
-
break;
|
|
961
|
-
}
|
|
962
|
-
var field = reader.getFieldNumber();
|
|
963
|
-
switch (field) {
|
|
964
|
-
case 1:
|
|
965
|
-
var value = new proto.lansweeper.blockingrules.v1.BlockingRule;
|
|
966
|
-
reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader);
|
|
967
|
-
msg.setBlockingRule(value);
|
|
968
|
-
break;
|
|
969
|
-
default:
|
|
970
|
-
reader.skipField();
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
return msg;
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
/**
|
|
979
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
980
|
-
* @return {!Uint8Array}
|
|
981
|
-
*/
|
|
982
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.serializeBinary = function() {
|
|
983
|
-
var writer = new jspb.BinaryWriter();
|
|
984
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter(this, writer);
|
|
985
|
-
return writer.getResultBuffer();
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
991
|
-
* format), writing to the given BinaryWriter.
|
|
992
|
-
* @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} message
|
|
993
|
-
* @param {!jspb.BinaryWriter} writer
|
|
994
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
995
|
-
*/
|
|
996
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
997
|
-
var f = undefined;
|
|
998
|
-
f = message.getBlockingRule();
|
|
999
|
-
if (f != null) {
|
|
1000
|
-
writer.writeMessage(
|
|
1001
|
-
1,
|
|
1002
|
-
f,
|
|
1003
|
-
proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter
|
|
1004
|
-
);
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* optional BlockingRule blocking_rule = 1;
|
|
1011
|
-
* @return {?proto.lansweeper.blockingrules.v1.BlockingRule}
|
|
1012
|
-
*/
|
|
1013
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.getBlockingRule = function() {
|
|
1014
|
-
return /** @type{?proto.lansweeper.blockingrules.v1.BlockingRule} */ (
|
|
1015
|
-
jspb.Message.getWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRule, 1));
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* @param {?proto.lansweeper.blockingrules.v1.BlockingRule|undefined} value
|
|
1021
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} returns this
|
|
1022
|
-
*/
|
|
1023
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.setBlockingRule = function(value) {
|
|
1024
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1025
|
-
};
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* Clears the message field making it undefined.
|
|
1030
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} returns this
|
|
1031
|
-
*/
|
|
1032
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.clearBlockingRule = function() {
|
|
1033
|
-
return this.setBlockingRule(undefined);
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Returns whether this field is set.
|
|
1039
|
-
* @return {boolean}
|
|
1040
|
-
*/
|
|
1041
|
-
proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.hasBlockingRule = function() {
|
|
1042
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1043
|
-
};
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
874
|
/**
|
|
1048
875
|
* List of repeated fields within this message type.
|
|
1049
876
|
* @private {!Array<number>}
|
|
@@ -1083,7 +910,7 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.toObject =
|
|
|
1083
910
|
proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.toObject = function(includeInstance, msg) {
|
|
1084
911
|
var f, obj = {
|
|
1085
912
|
blockingRulesList: jspb.Message.toObjectList(msg.getBlockingRulesList(),
|
|
1086
|
-
proto.lansweeper.blockingrules.v1.
|
|
913
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.toObject, includeInstance)
|
|
1087
914
|
};
|
|
1088
915
|
|
|
1089
916
|
if (includeInstance) {
|
|
@@ -1121,8 +948,8 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.deserializeBinaryFrom
|
|
|
1121
948
|
var field = reader.getFieldNumber();
|
|
1122
949
|
switch (field) {
|
|
1123
950
|
case 1:
|
|
1124
|
-
var value = new proto.lansweeper.blockingrules.v1.
|
|
1125
|
-
reader.readMessage(value,proto.lansweeper.blockingrules.v1.
|
|
951
|
+
var value = new proto.lansweeper.blockingrules.v1.BlockingRule;
|
|
952
|
+
reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader);
|
|
1126
953
|
msg.addBlockingRules(value);
|
|
1127
954
|
break;
|
|
1128
955
|
default:
|
|
@@ -1159,24 +986,24 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.serializeBinaryToWrit
|
|
|
1159
986
|
writer.writeRepeatedMessage(
|
|
1160
987
|
1,
|
|
1161
988
|
f,
|
|
1162
|
-
proto.lansweeper.blockingrules.v1.
|
|
989
|
+
proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter
|
|
1163
990
|
);
|
|
1164
991
|
}
|
|
1165
992
|
};
|
|
1166
993
|
|
|
1167
994
|
|
|
1168
995
|
/**
|
|
1169
|
-
* repeated
|
|
1170
|
-
* @return {!Array<!proto.lansweeper.blockingrules.v1.
|
|
996
|
+
* repeated BlockingRule blocking_rules = 1;
|
|
997
|
+
* @return {!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>}
|
|
1171
998
|
*/
|
|
1172
999
|
proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.getBlockingRulesList = function() {
|
|
1173
|
-
return /** @type{!Array<!proto.lansweeper.blockingrules.v1.
|
|
1174
|
-
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.
|
|
1000
|
+
return /** @type{!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>} */ (
|
|
1001
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRule, 1));
|
|
1175
1002
|
};
|
|
1176
1003
|
|
|
1177
1004
|
|
|
1178
1005
|
/**
|
|
1179
|
-
* @param {!Array<!proto.lansweeper.blockingrules.v1.
|
|
1006
|
+
* @param {!Array<!proto.lansweeper.blockingrules.v1.BlockingRule>} value
|
|
1180
1007
|
* @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} returns this
|
|
1181
1008
|
*/
|
|
1182
1009
|
proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.setBlockingRulesList = function(value) {
|
|
@@ -1185,12 +1012,12 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.setBlocking
|
|
|
1185
1012
|
|
|
1186
1013
|
|
|
1187
1014
|
/**
|
|
1188
|
-
* @param {!proto.lansweeper.blockingrules.v1.
|
|
1015
|
+
* @param {!proto.lansweeper.blockingrules.v1.BlockingRule=} opt_value
|
|
1189
1016
|
* @param {number=} opt_index
|
|
1190
|
-
* @return {!proto.lansweeper.blockingrules.v1.
|
|
1017
|
+
* @return {!proto.lansweeper.blockingrules.v1.BlockingRule}
|
|
1191
1018
|
*/
|
|
1192
1019
|
proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.addBlockingRules = function(opt_value, opt_index) {
|
|
1193
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.blockingrules.v1.
|
|
1020
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.blockingrules.v1.BlockingRule, opt_index);
|
|
1194
1021
|
};
|
|
1195
1022
|
|
|
1196
1023
|
|
|
@@ -1204,13 +1031,6 @@ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.clearBlocki
|
|
|
1204
1031
|
|
|
1205
1032
|
|
|
1206
1033
|
|
|
1207
|
-
/**
|
|
1208
|
-
* List of repeated fields within this message type.
|
|
1209
|
-
* @private {!Array<number>}
|
|
1210
|
-
* @const
|
|
1211
|
-
*/
|
|
1212
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.repeatedFields_ = [1];
|
|
1213
|
-
|
|
1214
1034
|
|
|
1215
1035
|
|
|
1216
1036
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1242,8 +1062,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.toObject = f
|
|
|
1242
1062
|
*/
|
|
1243
1063
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(includeInstance, msg) {
|
|
1244
1064
|
var f, obj = {
|
|
1245
|
-
|
|
1246
|
-
|
|
1065
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1066
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1067
|
+
entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1068
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1247
1069
|
};
|
|
1248
1070
|
|
|
1249
1071
|
if (includeInstance) {
|
|
@@ -1281,9 +1103,20 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromR
|
|
|
1281
1103
|
var field = reader.getFieldNumber();
|
|
1282
1104
|
switch (field) {
|
|
1283
1105
|
case 1:
|
|
1284
|
-
var value =
|
|
1285
|
-
|
|
1286
|
-
|
|
1106
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1107
|
+
msg.setInstallKey(value);
|
|
1108
|
+
break;
|
|
1109
|
+
case 2:
|
|
1110
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1111
|
+
msg.setSiteId(value);
|
|
1112
|
+
break;
|
|
1113
|
+
case 3:
|
|
1114
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1115
|
+
msg.setEntity(value);
|
|
1116
|
+
break;
|
|
1117
|
+
case 4:
|
|
1118
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1119
|
+
msg.setCreatedDate(value);
|
|
1287
1120
|
break;
|
|
1288
1121
|
default:
|
|
1289
1122
|
reader.skipField();
|
|
@@ -1314,52 +1147,106 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.serializeBin
|
|
|
1314
1147
|
*/
|
|
1315
1148
|
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1316
1149
|
var f = undefined;
|
|
1317
|
-
f = message.
|
|
1150
|
+
f = message.getInstallKey();
|
|
1318
1151
|
if (f.length > 0) {
|
|
1319
|
-
writer.
|
|
1152
|
+
writer.writeString(
|
|
1320
1153
|
1,
|
|
1321
|
-
f
|
|
1322
|
-
|
|
1154
|
+
f
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
f = message.getSiteId();
|
|
1158
|
+
if (f.length > 0) {
|
|
1159
|
+
writer.writeString(
|
|
1160
|
+
2,
|
|
1161
|
+
f
|
|
1162
|
+
);
|
|
1163
|
+
}
|
|
1164
|
+
f = message.getEntity();
|
|
1165
|
+
if (f.length > 0) {
|
|
1166
|
+
writer.writeString(
|
|
1167
|
+
3,
|
|
1168
|
+
f
|
|
1169
|
+
);
|
|
1170
|
+
}
|
|
1171
|
+
f = message.getCreatedDate();
|
|
1172
|
+
if (f.length > 0) {
|
|
1173
|
+
writer.writeString(
|
|
1174
|
+
4,
|
|
1175
|
+
f
|
|
1323
1176
|
);
|
|
1324
1177
|
}
|
|
1325
1178
|
};
|
|
1326
1179
|
|
|
1327
1180
|
|
|
1328
1181
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
* @return {
|
|
1182
|
+
* optional string install_key = 1;
|
|
1183
|
+
* @return {string}
|
|
1331
1184
|
*/
|
|
1332
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1333
|
-
return /** @type{
|
|
1334
|
-
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRuleResponse, 1));
|
|
1185
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getInstallKey = function() {
|
|
1186
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1335
1187
|
};
|
|
1336
1188
|
|
|
1337
1189
|
|
|
1338
1190
|
/**
|
|
1339
|
-
* @param {
|
|
1191
|
+
* @param {string} value
|
|
1340
1192
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1341
|
-
*/
|
|
1342
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1343
|
-
return jspb.Message.
|
|
1193
|
+
*/
|
|
1194
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setInstallKey = function(value) {
|
|
1195
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1344
1196
|
};
|
|
1345
1197
|
|
|
1346
1198
|
|
|
1347
1199
|
/**
|
|
1348
|
-
*
|
|
1349
|
-
* @
|
|
1350
|
-
* @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
|
|
1200
|
+
* optional string site_id = 2;
|
|
1201
|
+
* @return {string}
|
|
1351
1202
|
*/
|
|
1352
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1353
|
-
return jspb.Message.
|
|
1203
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getSiteId = function() {
|
|
1204
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1354
1205
|
};
|
|
1355
1206
|
|
|
1356
1207
|
|
|
1357
1208
|
/**
|
|
1358
|
-
*
|
|
1209
|
+
* @param {string} value
|
|
1359
1210
|
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1360
1211
|
*/
|
|
1361
|
-
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.
|
|
1362
|
-
return
|
|
1212
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setSiteId = function(value) {
|
|
1213
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* optional string entity = 3;
|
|
1219
|
+
* @return {string}
|
|
1220
|
+
*/
|
|
1221
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity = function() {
|
|
1222
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* @param {string} value
|
|
1228
|
+
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1229
|
+
*/
|
|
1230
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setEntity = function(value) {
|
|
1231
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* optional string created_date = 4;
|
|
1237
|
+
* @return {string}
|
|
1238
|
+
*/
|
|
1239
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDate = function() {
|
|
1240
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* @param {string} value
|
|
1246
|
+
* @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
|
|
1247
|
+
*/
|
|
1248
|
+
proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setCreatedDate = function(value) {
|
|
1249
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1363
1250
|
};
|
|
1364
1251
|
|
|
1365
1252
|
|
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":"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}}]}
|
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.4",
|
|
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": "403ec88ca8cf8f42b50f18dd204ec227cb807576"
|
|
20
20
|
}
|
|
@@ -25,16 +25,15 @@ message DeleteBlockingRuleRequest {
|
|
|
25
25
|
string entity = 3;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
message BlockingRuleResponse {
|
|
29
|
-
BlockingRule blocking_rule = 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
28
|
message GetBlockingRulesResponse {
|
|
33
|
-
repeated
|
|
29
|
+
repeated BlockingRule blocking_rules = 1;
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
message SetBlockingRuleResponse {
|
|
37
|
-
|
|
33
|
+
string install_key = 1;
|
|
34
|
+
string site_id = 2;
|
|
35
|
+
string entity = 3;
|
|
36
|
+
string created_date = 4;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
message DeleteBlockingRuleResponse {
|