You've already forked npm-core-sdk
Latest generation
This commit is contained in:
146
api.ts
146
api.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 "api.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -26,15 +26,15 @@ import { ResourceType } from "./shared";
|
||||
*/
|
||||
export interface GetPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1 [json_name = "RscType"];
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1
|
||||
*/
|
||||
RscType: ResourceType;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 2
|
||||
*/
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Service = 3 [json_name = "Service"];
|
||||
* @generated from protobuf field: string Service = 3
|
||||
*/
|
||||
Service: string;
|
||||
}
|
||||
@@ -43,7 +43,7 @@ export interface GetPermissionsRequest {
|
||||
*/
|
||||
export interface GetPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 5 [json_name = "Permissions"];
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
||||
*/
|
||||
Permissions: Permission[];
|
||||
}
|
||||
@@ -52,15 +52,15 @@ export interface GetPermissionsResult {
|
||||
*/
|
||||
export interface GetUIPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1 [json_name = "RscType"];
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1
|
||||
*/
|
||||
RscType: ResourceType;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 2
|
||||
*/
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Service = 3 [json_name = "Service"];
|
||||
* @generated from protobuf field: string Service = 3
|
||||
*/
|
||||
Service: string;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ export interface GetUIPermissionsRequest {
|
||||
*/
|
||||
export interface GetUIPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 1 [json_name = "Permissions"];
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 1
|
||||
*/
|
||||
Permissions: Permission[];
|
||||
}
|
||||
@@ -78,7 +78,7 @@ export interface GetUIPermissionsResult {
|
||||
*/
|
||||
export interface ListUserUIPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 2
|
||||
*/
|
||||
Client: string;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ export interface ListUserUIPermissionsRequest {
|
||||
*/
|
||||
export interface ListUserUIPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"];
|
||||
* @generated from protobuf field: repeated api.UserUIPermissions Permissions = 2
|
||||
*/
|
||||
Permissions: UserUIPermissions[];
|
||||
}
|
||||
@@ -96,27 +96,27 @@ export interface ListUserUIPermissionsResult {
|
||||
*/
|
||||
export interface RegisterPackageRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string PackageName = 1 [json_name = "PackageName"];
|
||||
* @generated from protobuf field: string PackageName = 1
|
||||
*/
|
||||
PackageName: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClientAPI Clients = 2 [json_name = "Clients"];
|
||||
* @generated from protobuf field: repeated api.ClientAPI Clients = 2
|
||||
*/
|
||||
Clients: ClientAPI[];
|
||||
/**
|
||||
* @generated from protobuf field: bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"];
|
||||
* @generated from protobuf field: bool ForceFullScopeCreation = 3
|
||||
*/
|
||||
ForceFullScopeCreation: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Role Roles = 4 [json_name = "Roles"];
|
||||
* @generated from protobuf field: repeated api.Role Roles = 4
|
||||
*/
|
||||
Roles: Role[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"];
|
||||
* @generated from protobuf field: repeated api.ModuleRegistration Workflows = 5
|
||||
*/
|
||||
Workflows: ModuleRegistration[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Module Modules = 6 [json_name = "Modules"];
|
||||
* @generated from protobuf field: repeated api.Module Modules = 6
|
||||
*/
|
||||
Modules: Module[];
|
||||
}
|
||||
@@ -130,15 +130,15 @@ export interface RegisterPackageResult {
|
||||
*/
|
||||
export interface CreateScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ModuleName = 1 [json_name = "ModuleName"];
|
||||
* @generated from protobuf field: string ModuleName = 1
|
||||
*/
|
||||
ModuleName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 2
|
||||
*/
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 3 [json_name = "Scope"];
|
||||
* @generated from protobuf field: api.Scope Scope = 3
|
||||
*/
|
||||
Scope?: Scope;
|
||||
}
|
||||
@@ -152,15 +152,15 @@ export interface CreateScopeResult {
|
||||
*/
|
||||
export interface DeleteScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ModuleName = 1 [json_name = "ModuleName"];
|
||||
* @generated from protobuf field: string ModuleName = 1
|
||||
*/
|
||||
ModuleName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 2
|
||||
*/
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 3 [json_name = "Scope"];
|
||||
* @generated from protobuf field: api.Scope Scope = 3
|
||||
*/
|
||||
Scope?: Scope;
|
||||
}
|
||||
@@ -174,11 +174,11 @@ export interface DeleteScopeResult {
|
||||
*/
|
||||
export interface CleanScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 1 [json_name = "Client"];
|
||||
* @generated from protobuf field: string Client = 1
|
||||
*/
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 2 [json_name = "Scope"];
|
||||
* @generated from protobuf field: api.Scope Scope = 2
|
||||
*/
|
||||
Scope?: Scope;
|
||||
}
|
||||
@@ -210,13 +210,13 @@ class GetPermissionsRequest$Type extends MessageType<GetPermissionsRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResourceType RscType = 1 [json_name = "RscType"];*/ 1:
|
||||
case /* api.ResourceType RscType */ 1:
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
case /* string Client */ 2:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* string Service = 3 [json_name = "Service"];*/ 3:
|
||||
case /* string Service */ 3:
|
||||
message.Service = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -231,13 +231,13 @@ class GetPermissionsRequest$Type extends MessageType<GetPermissionsRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResourceType RscType = 1 [json_name = "RscType"]; */
|
||||
/* api.ResourceType RscType = 1; */
|
||||
if (message.RscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.RscType);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
/* string Client = 2; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* string Service = 3 [json_name = "Service"]; */
|
||||
/* string Service = 3; */
|
||||
if (message.Service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Service);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -269,7 +269,7 @@ class GetPermissionsResult$Type extends MessageType<GetPermissionsResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Permission Permissions = 5 [json_name = "Permissions"];*/ 5:
|
||||
case /* repeated api.Permission Permissions */ 5:
|
||||
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -284,7 +284,7 @@ class GetPermissionsResult$Type extends MessageType<GetPermissionsResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Permission Permissions = 5 [json_name = "Permissions"]; */
|
||||
/* repeated api.Permission Permissions = 5; */
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.Permissions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -320,13 +320,13 @@ class GetUIPermissionsRequest$Type extends MessageType<GetUIPermissionsRequest>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResourceType RscType = 1 [json_name = "RscType"];*/ 1:
|
||||
case /* api.ResourceType RscType */ 1:
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
case /* string Client */ 2:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* string Service = 3 [json_name = "Service"];*/ 3:
|
||||
case /* string Service */ 3:
|
||||
message.Service = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -341,13 +341,13 @@ class GetUIPermissionsRequest$Type extends MessageType<GetUIPermissionsRequest>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetUIPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResourceType RscType = 1 [json_name = "RscType"]; */
|
||||
/* api.ResourceType RscType = 1; */
|
||||
if (message.RscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.RscType);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
/* string Client = 2; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* string Service = 3 [json_name = "Service"]; */
|
||||
/* string Service = 3; */
|
||||
if (message.Service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Service);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -379,7 +379,7 @@ class GetUIPermissionsResult$Type extends MessageType<GetUIPermissionsResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Permission Permissions = 1 [json_name = "Permissions"];*/ 1:
|
||||
case /* repeated api.Permission Permissions */ 1:
|
||||
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -394,7 +394,7 @@ class GetUIPermissionsResult$Type extends MessageType<GetUIPermissionsResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetUIPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Permission Permissions = 1 [json_name = "Permissions"]; */
|
||||
/* repeated api.Permission Permissions = 1; */
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.Permissions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -426,7 +426,7 @@ class ListUserUIPermissionsRequest$Type extends MessageType<ListUserUIPermission
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
case /* string Client */ 2:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -441,7 +441,7 @@ class ListUserUIPermissionsRequest$Type extends MessageType<ListUserUIPermission
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListUserUIPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
/* string Client = 2; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -473,7 +473,7 @@ class ListUserUIPermissionsResult$Type extends MessageType<ListUserUIPermissions
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"];*/ 2:
|
||||
case /* repeated api.UserUIPermissions Permissions */ 2:
|
||||
message.Permissions.push(UserUIPermissions.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -488,7 +488,7 @@ class ListUserUIPermissionsResult$Type extends MessageType<ListUserUIPermissions
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListUserUIPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"]; */
|
||||
/* repeated api.UserUIPermissions Permissions = 2; */
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
UserUIPermissions.internalBinaryWrite(message.Permissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -530,22 +530,22 @@ class RegisterPackageRequest$Type extends MessageType<RegisterPackageRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string PackageName = 1 [json_name = "PackageName"];*/ 1:
|
||||
case /* string PackageName */ 1:
|
||||
message.PackageName = reader.string();
|
||||
break;
|
||||
case /* repeated api.ClientAPI Clients = 2 [json_name = "Clients"];*/ 2:
|
||||
case /* repeated api.ClientAPI Clients */ 2:
|
||||
message.Clients.push(ClientAPI.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"];*/ 3:
|
||||
case /* bool ForceFullScopeCreation */ 3:
|
||||
message.ForceFullScopeCreation = reader.bool();
|
||||
break;
|
||||
case /* repeated api.Role Roles = 4 [json_name = "Roles"];*/ 4:
|
||||
case /* repeated api.Role Roles */ 4:
|
||||
message.Roles.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"];*/ 5:
|
||||
case /* repeated api.ModuleRegistration Workflows */ 5:
|
||||
message.Workflows.push(ModuleRegistration.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Module Modules = 6 [json_name = "Modules"];*/ 6:
|
||||
case /* repeated api.Module Modules */ 6:
|
||||
message.Modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -560,22 +560,22 @@ class RegisterPackageRequest$Type extends MessageType<RegisterPackageRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: RegisterPackageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string PackageName = 1 [json_name = "PackageName"]; */
|
||||
/* string PackageName = 1; */
|
||||
if (message.PackageName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.PackageName);
|
||||
/* repeated api.ClientAPI Clients = 2 [json_name = "Clients"]; */
|
||||
/* repeated api.ClientAPI Clients = 2; */
|
||||
for (let i = 0; i < message.Clients.length; i++)
|
||||
ClientAPI.internalBinaryWrite(message.Clients[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"]; */
|
||||
/* bool ForceFullScopeCreation = 3; */
|
||||
if (message.ForceFullScopeCreation !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.ForceFullScopeCreation);
|
||||
/* repeated api.Role Roles = 4 [json_name = "Roles"]; */
|
||||
/* repeated api.Role Roles = 4; */
|
||||
for (let i = 0; i < message.Roles.length; i++)
|
||||
Role.internalBinaryWrite(message.Roles[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"]; */
|
||||
/* repeated api.ModuleRegistration Workflows = 5; */
|
||||
for (let i = 0; i < message.Workflows.length; i++)
|
||||
ModuleRegistration.internalBinaryWrite(message.Workflows[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Module Modules = 6 [json_name = "Modules"]; */
|
||||
/* repeated api.Module Modules = 6; */
|
||||
for (let i = 0; i < message.Modules.length; i++)
|
||||
Module.internalBinaryWrite(message.Modules[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -648,13 +648,13 @@ class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ModuleName = 1 [json_name = "ModuleName"];*/ 1:
|
||||
case /* string ModuleName */ 1:
|
||||
message.ModuleName = reader.string();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
case /* string Client */ 2:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 3 [json_name = "Scope"];*/ 3:
|
||||
case /* api.Scope Scope */ 3:
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
@@ -669,13 +669,13 @@ class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ModuleName = 1 [json_name = "ModuleName"]; */
|
||||
/* string ModuleName = 1; */
|
||||
if (message.ModuleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ModuleName);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
/* string Client = 2; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 3 [json_name = "Scope"]; */
|
||||
/* api.Scope Scope = 3; */
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -748,13 +748,13 @@ class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ModuleName = 1 [json_name = "ModuleName"];*/ 1:
|
||||
case /* string ModuleName */ 1:
|
||||
message.ModuleName = reader.string();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
case /* string Client */ 2:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 3 [json_name = "Scope"];*/ 3:
|
||||
case /* api.Scope Scope */ 3:
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
@@ -769,13 +769,13 @@ class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ModuleName = 1 [json_name = "ModuleName"]; */
|
||||
/* string ModuleName = 1; */
|
||||
if (message.ModuleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ModuleName);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
/* string Client = 2; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 3 [json_name = "Scope"]; */
|
||||
/* api.Scope Scope = 3; */
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -846,10 +846,10 @@ class CleanScopeRequest$Type extends MessageType<CleanScopeRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Client = 1 [json_name = "Client"];*/ 1:
|
||||
case /* string Client */ 1:
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 2 [json_name = "Scope"];*/ 2:
|
||||
case /* api.Scope Scope */ 2:
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
@@ -864,10 +864,10 @@ class CleanScopeRequest$Type extends MessageType<CleanScopeRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CleanScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Client = 1 [json_name = "Client"]; */
|
||||
/* string Client = 1; */
|
||||
if (message.Client !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 2 [json_name = "Scope"]; */
|
||||
/* api.Scope Scope = 2; */
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user