You've already forked npm-core-sdk
Latest generation
This commit is contained in:
242
rules.ts
242
rules.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "rules.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -19,39 +19,39 @@ import { EntityType } from "./shared";
|
||||
*/
|
||||
export interface Rule {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
ID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 2 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 2
|
||||
*/
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 3 [json_name = "Entity"];
|
||||
* @generated from protobuf field: api.EntityType Entity = 3
|
||||
*/
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 4 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 4
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Description = 5 [json_name = "Description"];
|
||||
* @generated from protobuf field: string Description = 5
|
||||
*/
|
||||
Description: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Definition = 6 [json_name = "Definition"];
|
||||
* @generated from protobuf field: string Definition = 6
|
||||
*/
|
||||
Definition: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.RuleType RuleType = 7 [json_name = "RuleType"];
|
||||
* @generated from protobuf field: api.RuleType RuleType = 7
|
||||
*/
|
||||
RuleType: RuleType;
|
||||
/**
|
||||
* @generated from protobuf field: string RuleTypeID = 8 [json_name = "RuleTypeID"];
|
||||
* @generated from protobuf field: string RuleTypeID = 8
|
||||
*/
|
||||
RuleTypeID: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool Status = 9 [json_name = "Status"];
|
||||
* @generated from protobuf field: bool Status = 9
|
||||
*/
|
||||
Status: boolean;
|
||||
}
|
||||
@@ -64,35 +64,35 @@ export interface Rule {
|
||||
*/
|
||||
export interface CreateRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 1
|
||||
*/
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 2 [json_name = "Entity"];
|
||||
* @generated from protobuf field: api.EntityType Entity = 2
|
||||
*/
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 3 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 3
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.RuleType RuleType = 4 [json_name = "RuleType"];
|
||||
* @generated from protobuf field: api.RuleType RuleType = 4
|
||||
*/
|
||||
RuleType: RuleType;
|
||||
/**
|
||||
* @generated from protobuf field: string RuleTypeID = 5 [json_name = "RuleTypeID"];
|
||||
* @generated from protobuf field: string RuleTypeID = 5
|
||||
*/
|
||||
RuleTypeID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Description = 6 [json_name = "Description"];
|
||||
* @generated from protobuf field: string Description = 6
|
||||
*/
|
||||
Description: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Definition = 7 [json_name = "Definition"];
|
||||
* @generated from protobuf field: string Definition = 7
|
||||
*/
|
||||
Definition: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Issuer = 8 [json_name = "Issuer"];
|
||||
* @generated from protobuf field: string Issuer = 8
|
||||
*/
|
||||
Issuer: string; // Who created the rule, will be used as the commit's author when pushed to git
|
||||
}
|
||||
@@ -101,7 +101,7 @@ export interface CreateRuleRequest {
|
||||
*/
|
||||
export interface CreateRuleResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Rule Rule = 1 [json_name = "Rule"];
|
||||
* @generated from protobuf field: api.Rule Rule = 1
|
||||
*/
|
||||
Rule?: Rule;
|
||||
}
|
||||
@@ -112,27 +112,27 @@ export interface CreateRuleResponse {
|
||||
*/
|
||||
export interface UpdateRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Description = 3 [json_name = "Description"];
|
||||
* @generated from protobuf field: string Description = 3
|
||||
*/
|
||||
Description: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Definition = 4 [json_name = "Definition"];
|
||||
* @generated from protobuf field: string Definition = 4
|
||||
*/
|
||||
Definition: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 5 [json_name = "Entity"];
|
||||
* @generated from protobuf field: api.EntityType Entity = 5
|
||||
*/
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string Issuer = 6 [json_name = "Issuer"];
|
||||
* @generated from protobuf field: string Issuer = 6
|
||||
*/
|
||||
Issuer: string; // Who updated the rule, will be used as the commit's author when pushed to git
|
||||
}
|
||||
@@ -141,7 +141,7 @@ export interface UpdateRuleRequest {
|
||||
*/
|
||||
export interface UpdateRuleResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Rule Rule = 1 [json_name = "Rule"];
|
||||
* @generated from protobuf field: api.Rule Rule = 1
|
||||
*/
|
||||
Rule?: Rule;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ export interface UpdateRuleResponse {
|
||||
*/
|
||||
export interface GetRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ export interface GetRuleRequest {
|
||||
*/
|
||||
export interface GetRuleResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Rule Rule = 1 [json_name = "Rule"];
|
||||
* @generated from protobuf field: api.Rule Rule = 1
|
||||
*/
|
||||
Rule?: Rule;
|
||||
}
|
||||
@@ -174,19 +174,19 @@ export interface ListRulesRequest {
|
||||
// Filters
|
||||
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 1
|
||||
*/
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.RuleType RuleType = 2 [json_name = "RuleType"];
|
||||
* @generated from protobuf field: api.RuleType RuleType = 2
|
||||
*/
|
||||
RuleType: RuleType;
|
||||
/**
|
||||
* @generated from protobuf field: string RuleTypeID = 3 [json_name = "RuleTypeID"];
|
||||
* @generated from protobuf field: string RuleTypeID = 3
|
||||
*/
|
||||
RuleTypeID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 4 [json_name = "Entity"];
|
||||
* @generated from protobuf field: api.EntityType Entity = 4
|
||||
*/
|
||||
Entity: EntityType;
|
||||
}
|
||||
@@ -195,7 +195,7 @@ export interface ListRulesRequest {
|
||||
*/
|
||||
export interface ListRulesResponse {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Rule Rules = 1 [json_name = "Rules"];
|
||||
* @generated from protobuf field: repeated api.Rule Rules = 1
|
||||
*/
|
||||
Rules: Rule[];
|
||||
}
|
||||
@@ -206,11 +206,11 @@ export interface ListRulesResponse {
|
||||
*/
|
||||
export interface DeleteRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Issuer = 2 [json_name = "Issuer"];
|
||||
* @generated from protobuf field: string Issuer = 2
|
||||
*/
|
||||
Issuer: string; // Who updated the rule, will be used as the commit's author when pushed to git
|
||||
}
|
||||
@@ -226,7 +226,7 @@ export interface DeleteRuleResponse {
|
||||
*/
|
||||
export interface EnableRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
}
|
||||
@@ -235,7 +235,7 @@ export interface EnableRuleRequest {
|
||||
*/
|
||||
export interface EnableRuleResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Rule Rule = 1 [json_name = "Rule"];
|
||||
* @generated from protobuf field: api.Rule Rule = 1
|
||||
*/
|
||||
Rule?: Rule;
|
||||
}
|
||||
@@ -246,7 +246,7 @@ export interface EnableRuleResponse {
|
||||
*/
|
||||
export interface DisableRuleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
}
|
||||
@@ -255,7 +255,7 @@ export interface DisableRuleRequest {
|
||||
*/
|
||||
export interface DisableRuleResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Rule Rule = 1 [json_name = "Rule"];
|
||||
* @generated from protobuf field: api.Rule Rule = 1
|
||||
*/
|
||||
Rule?: Rule;
|
||||
}
|
||||
@@ -266,7 +266,7 @@ export interface DisableRuleResponse {
|
||||
*/
|
||||
export interface GetJSONTreeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RuleID = 1 [json_name = "RuleID"];
|
||||
* @generated from protobuf field: string RuleID = 1
|
||||
*/
|
||||
RuleID: string;
|
||||
}
|
||||
@@ -275,7 +275,7 @@ export interface GetJSONTreeRequest {
|
||||
*/
|
||||
export interface GetJSONTreeResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string JSONTree = 1 [json_name = "JSONTree"];
|
||||
* @generated from protobuf field: string JSONTree = 1
|
||||
*/
|
||||
JSONTree: string;
|
||||
}
|
||||
@@ -335,31 +335,31 @@ class Rule$Type extends MessageType<Rule> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string OrganisationID = 2 [json_name = "OrganisationID"];*/ 2:
|
||||
case /* string OrganisationID */ 2:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity = 3 [json_name = "Entity"];*/ 3:
|
||||
case /* api.EntityType Entity */ 3:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* string Name = 4 [json_name = "Name"];*/ 4:
|
||||
case /* string Name */ 4:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string Description = 5 [json_name = "Description"];*/ 5:
|
||||
case /* string Description */ 5:
|
||||
message.Description = reader.string();
|
||||
break;
|
||||
case /* string Definition = 6 [json_name = "Definition"];*/ 6:
|
||||
case /* string Definition */ 6:
|
||||
message.Definition = reader.string();
|
||||
break;
|
||||
case /* api.RuleType RuleType = 7 [json_name = "RuleType"];*/ 7:
|
||||
case /* api.RuleType RuleType */ 7:
|
||||
message.RuleType = reader.int32();
|
||||
break;
|
||||
case /* string RuleTypeID = 8 [json_name = "RuleTypeID"];*/ 8:
|
||||
case /* string RuleTypeID */ 8:
|
||||
message.RuleTypeID = reader.string();
|
||||
break;
|
||||
case /* bool Status = 9 [json_name = "Status"];*/ 9:
|
||||
case /* bool Status */ 9:
|
||||
message.Status = reader.bool();
|
||||
break;
|
||||
default:
|
||||
@@ -374,31 +374,31 @@ class Rule$Type extends MessageType<Rule> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Rule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string OrganisationID = 2 [json_name = "OrganisationID"]; */
|
||||
/* string OrganisationID = 2; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* api.EntityType Entity = 3 [json_name = "Entity"]; */
|
||||
/* api.EntityType Entity = 3; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Entity);
|
||||
/* string Name = 4 [json_name = "Name"]; */
|
||||
/* string Name = 4; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Name);
|
||||
/* string Description = 5 [json_name = "Description"]; */
|
||||
/* string Description = 5; */
|
||||
if (message.Description !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Description);
|
||||
/* string Definition = 6 [json_name = "Definition"]; */
|
||||
/* string Definition = 6; */
|
||||
if (message.Definition !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Definition);
|
||||
/* api.RuleType RuleType = 7 [json_name = "RuleType"]; */
|
||||
/* api.RuleType RuleType = 7; */
|
||||
if (message.RuleType !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.RuleType);
|
||||
/* string RuleTypeID = 8 [json_name = "RuleTypeID"]; */
|
||||
/* string RuleTypeID = 8; */
|
||||
if (message.RuleTypeID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.RuleTypeID);
|
||||
/* bool Status = 9 [json_name = "Status"]; */
|
||||
/* bool Status = 9; */
|
||||
if (message.Status !== false)
|
||||
writer.tag(9, WireType.Varint).bool(message.Status);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -444,28 +444,28 @@ class CreateRuleRequest$Type extends MessageType<CreateRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity = 2 [json_name = "Entity"];*/ 2:
|
||||
case /* api.EntityType Entity */ 2:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* string Name = 3 [json_name = "Name"];*/ 3:
|
||||
case /* string Name */ 3:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* api.RuleType RuleType = 4 [json_name = "RuleType"];*/ 4:
|
||||
case /* api.RuleType RuleType */ 4:
|
||||
message.RuleType = reader.int32();
|
||||
break;
|
||||
case /* string RuleTypeID = 5 [json_name = "RuleTypeID"];*/ 5:
|
||||
case /* string RuleTypeID */ 5:
|
||||
message.RuleTypeID = reader.string();
|
||||
break;
|
||||
case /* string Description = 6 [json_name = "Description"];*/ 6:
|
||||
case /* string Description */ 6:
|
||||
message.Description = reader.string();
|
||||
break;
|
||||
case /* string Definition = 7 [json_name = "Definition"];*/ 7:
|
||||
case /* string Definition */ 7:
|
||||
message.Definition = reader.string();
|
||||
break;
|
||||
case /* string Issuer = 8 [json_name = "Issuer"];*/ 8:
|
||||
case /* string Issuer */ 8:
|
||||
message.Issuer = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -480,28 +480,28 @@ class CreateRuleRequest$Type extends MessageType<CreateRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* api.EntityType Entity = 2 [json_name = "Entity"]; */
|
||||
/* api.EntityType Entity = 2; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Entity);
|
||||
/* string Name = 3 [json_name = "Name"]; */
|
||||
/* string Name = 3; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.RuleType RuleType = 4 [json_name = "RuleType"]; */
|
||||
/* api.RuleType RuleType = 4; */
|
||||
if (message.RuleType !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.RuleType);
|
||||
/* string RuleTypeID = 5 [json_name = "RuleTypeID"]; */
|
||||
/* string RuleTypeID = 5; */
|
||||
if (message.RuleTypeID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.RuleTypeID);
|
||||
/* string Description = 6 [json_name = "Description"]; */
|
||||
/* string Description = 6; */
|
||||
if (message.Description !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Description);
|
||||
/* string Definition = 7 [json_name = "Definition"]; */
|
||||
/* string Definition = 7; */
|
||||
if (message.Definition !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.Definition);
|
||||
/* string Issuer = 8 [json_name = "Issuer"]; */
|
||||
/* string Issuer = 8; */
|
||||
if (message.Issuer !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Issuer);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -532,7 +532,7 @@ class CreateRuleResponse$Type extends MessageType<CreateRuleResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Rule Rule = 1 [json_name = "Rule"];*/ 1:
|
||||
case /* api.Rule Rule */ 1:
|
||||
message.Rule = Rule.internalBinaryRead(reader, reader.uint32(), options, message.Rule);
|
||||
break;
|
||||
default:
|
||||
@@ -547,7 +547,7 @@ class CreateRuleResponse$Type extends MessageType<CreateRuleResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Rule Rule = 1 [json_name = "Rule"]; */
|
||||
/* api.Rule Rule = 1; */
|
||||
if (message.Rule)
|
||||
Rule.internalBinaryWrite(message.Rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -589,22 +589,22 @@ class UpdateRuleRequest$Type extends MessageType<UpdateRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string Description = 3 [json_name = "Description"];*/ 3:
|
||||
case /* string Description */ 3:
|
||||
message.Description = reader.string();
|
||||
break;
|
||||
case /* string Definition = 4 [json_name = "Definition"];*/ 4:
|
||||
case /* string Definition */ 4:
|
||||
message.Definition = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity = 5 [json_name = "Entity"];*/ 5:
|
||||
case /* api.EntityType Entity */ 5:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* string Issuer = 6 [json_name = "Issuer"];*/ 6:
|
||||
case /* string Issuer */ 6:
|
||||
message.Issuer = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -619,22 +619,22 @@ class UpdateRuleRequest$Type extends MessageType<UpdateRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* string Description = 3 [json_name = "Description"]; */
|
||||
/* string Description = 3; */
|
||||
if (message.Description !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Description);
|
||||
/* string Definition = 4 [json_name = "Definition"]; */
|
||||
/* string Definition = 4; */
|
||||
if (message.Definition !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Definition);
|
||||
/* api.EntityType Entity = 5 [json_name = "Entity"]; */
|
||||
/* api.EntityType Entity = 5; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.Entity);
|
||||
/* string Issuer = 6 [json_name = "Issuer"]; */
|
||||
/* string Issuer = 6; */
|
||||
if (message.Issuer !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Issuer);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -665,7 +665,7 @@ class UpdateRuleResponse$Type extends MessageType<UpdateRuleResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Rule Rule = 1 [json_name = "Rule"];*/ 1:
|
||||
case /* api.Rule Rule */ 1:
|
||||
message.Rule = Rule.internalBinaryRead(reader, reader.uint32(), options, message.Rule);
|
||||
break;
|
||||
default:
|
||||
@@ -680,7 +680,7 @@ class UpdateRuleResponse$Type extends MessageType<UpdateRuleResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Rule Rule = 1 [json_name = "Rule"]; */
|
||||
/* api.Rule Rule = 1; */
|
||||
if (message.Rule)
|
||||
Rule.internalBinaryWrite(message.Rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -712,7 +712,7 @@ class GetRuleRequest$Type extends MessageType<GetRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -727,7 +727,7 @@ class GetRuleRequest$Type extends MessageType<GetRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -758,7 +758,7 @@ class GetRuleResponse$Type extends MessageType<GetRuleResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Rule Rule = 1 [json_name = "Rule"];*/ 1:
|
||||
case /* api.Rule Rule */ 1:
|
||||
message.Rule = Rule.internalBinaryRead(reader, reader.uint32(), options, message.Rule);
|
||||
break;
|
||||
default:
|
||||
@@ -773,7 +773,7 @@ class GetRuleResponse$Type extends MessageType<GetRuleResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Rule Rule = 1 [json_name = "Rule"]; */
|
||||
/* api.Rule Rule = 1; */
|
||||
if (message.Rule)
|
||||
Rule.internalBinaryWrite(message.Rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -811,16 +811,16 @@ class ListRulesRequest$Type extends MessageType<ListRulesRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* api.RuleType RuleType = 2 [json_name = "RuleType"];*/ 2:
|
||||
case /* api.RuleType RuleType */ 2:
|
||||
message.RuleType = reader.int32();
|
||||
break;
|
||||
case /* string RuleTypeID = 3 [json_name = "RuleTypeID"];*/ 3:
|
||||
case /* string RuleTypeID */ 3:
|
||||
message.RuleTypeID = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity = 4 [json_name = "Entity"];*/ 4:
|
||||
case /* api.EntityType Entity */ 4:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
default:
|
||||
@@ -835,16 +835,16 @@ class ListRulesRequest$Type extends MessageType<ListRulesRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListRulesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* api.RuleType RuleType = 2 [json_name = "RuleType"]; */
|
||||
/* api.RuleType RuleType = 2; */
|
||||
if (message.RuleType !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.RuleType);
|
||||
/* string RuleTypeID = 3 [json_name = "RuleTypeID"]; */
|
||||
/* string RuleTypeID = 3; */
|
||||
if (message.RuleTypeID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.RuleTypeID);
|
||||
/* api.EntityType Entity = 4 [json_name = "Entity"]; */
|
||||
/* api.EntityType Entity = 4; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Entity);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -876,7 +876,7 @@ class ListRulesResponse$Type extends MessageType<ListRulesResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Rule Rules = 1 [json_name = "Rules"];*/ 1:
|
||||
case /* repeated api.Rule Rules */ 1:
|
||||
message.Rules.push(Rule.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -891,7 +891,7 @@ class ListRulesResponse$Type extends MessageType<ListRulesResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListRulesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Rule Rules = 1 [json_name = "Rules"]; */
|
||||
/* repeated api.Rule Rules = 1; */
|
||||
for (let i = 0; i < message.Rules.length; i++)
|
||||
Rule.internalBinaryWrite(message.Rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -925,10 +925,10 @@ class DeleteRuleRequest$Type extends MessageType<DeleteRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
case /* string Issuer = 2 [json_name = "Issuer"];*/ 2:
|
||||
case /* string Issuer */ 2:
|
||||
message.Issuer = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -943,10 +943,10 @@ class DeleteRuleRequest$Type extends MessageType<DeleteRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
/* string Issuer = 2 [json_name = "Issuer"]; */
|
||||
/* string Issuer = 2; */
|
||||
if (message.Issuer !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Issuer);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1016,7 +1016,7 @@ class EnableRuleRequest$Type extends MessageType<EnableRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1031,7 +1031,7 @@ class EnableRuleRequest$Type extends MessageType<EnableRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: EnableRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1062,7 +1062,7 @@ class EnableRuleResponse$Type extends MessageType<EnableRuleResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Rule Rule = 1 [json_name = "Rule"];*/ 1:
|
||||
case /* api.Rule Rule */ 1:
|
||||
message.Rule = Rule.internalBinaryRead(reader, reader.uint32(), options, message.Rule);
|
||||
break;
|
||||
default:
|
||||
@@ -1077,7 +1077,7 @@ class EnableRuleResponse$Type extends MessageType<EnableRuleResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: EnableRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Rule Rule = 1 [json_name = "Rule"]; */
|
||||
/* api.Rule Rule = 1; */
|
||||
if (message.Rule)
|
||||
Rule.internalBinaryWrite(message.Rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1109,7 +1109,7 @@ class DisableRuleRequest$Type extends MessageType<DisableRuleRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1124,7 +1124,7 @@ class DisableRuleRequest$Type extends MessageType<DisableRuleRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DisableRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1155,7 +1155,7 @@ class DisableRuleResponse$Type extends MessageType<DisableRuleResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Rule Rule = 1 [json_name = "Rule"];*/ 1:
|
||||
case /* api.Rule Rule */ 1:
|
||||
message.Rule = Rule.internalBinaryRead(reader, reader.uint32(), options, message.Rule);
|
||||
break;
|
||||
default:
|
||||
@@ -1170,7 +1170,7 @@ class DisableRuleResponse$Type extends MessageType<DisableRuleResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DisableRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Rule Rule = 1 [json_name = "Rule"]; */
|
||||
/* api.Rule Rule = 1; */
|
||||
if (message.Rule)
|
||||
Rule.internalBinaryWrite(message.Rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1202,7 +1202,7 @@ class GetJSONTreeRequest$Type extends MessageType<GetJSONTreeRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RuleID = 1 [json_name = "RuleID"];*/ 1:
|
||||
case /* string RuleID */ 1:
|
||||
message.RuleID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1217,7 +1217,7 @@ class GetJSONTreeRequest$Type extends MessageType<GetJSONTreeRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetJSONTreeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RuleID = 1 [json_name = "RuleID"]; */
|
||||
/* string RuleID = 1; */
|
||||
if (message.RuleID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RuleID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1249,7 +1249,7 @@ class GetJSONTreeResponse$Type extends MessageType<GetJSONTreeResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string JSONTree = 1 [json_name = "JSONTree"];*/ 1:
|
||||
case /* string JSONTree */ 1:
|
||||
message.JSONTree = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1264,7 +1264,7 @@ class GetJSONTreeResponse$Type extends MessageType<GetJSONTreeResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetJSONTreeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string JSONTree = 1 [json_name = "JSONTree"]; */
|
||||
/* string JSONTree = 1; */
|
||||
if (message.JSONTree !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.JSONTree);
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user