You've already forked npm-core-sdk
3245 lines
164 KiB
TypeScript
3245 lines
164 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "role.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { Paging } from "./base";
|
|
import { RequestProjectHeader } from "./shared";
|
|
import { RequestOrganisationHeader } from "./shared";
|
|
import { RoleTag } from "./shared";
|
|
import { Permission } from "./shared";
|
|
import { ResourceType } from "./shared";
|
|
/**
|
|
* @generated from protobuf message api.Role
|
|
*/
|
|
export interface Role {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string ResourceID = 3
|
|
*/
|
|
ResourceID: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: bool ReadOnly = 7
|
|
*/
|
|
ReadOnly: boolean;
|
|
/**
|
|
* @generated from protobuf field: api.ApplicationType ApplicationType = 8
|
|
*/
|
|
ApplicationType: ApplicationType;
|
|
/**
|
|
* @generated from protobuf field: string CreatedAt = 11
|
|
*/
|
|
CreatedAt: string;
|
|
/**
|
|
* @generated from protobuf field: string CreatedBy = 12
|
|
*/
|
|
CreatedBy: string;
|
|
/**
|
|
* @generated from protobuf field: string Description = 13
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.ExternalPermission ExternalPermissions = 14
|
|
*/
|
|
ExternalPermissions: ExternalPermission[];
|
|
/**
|
|
* @generated from protobuf field: repeated api.RoleTag Tags = 15
|
|
*/
|
|
Tags: RoleTag[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ExternalPermission
|
|
*/
|
|
export interface ExternalPermission {
|
|
/**
|
|
* @generated from protobuf field: string Key = 1
|
|
*/
|
|
Key: string; // The key of the external permission. Can be prefixed by a resource id (e.g. "resourceId#permissionKey") to specify a resource-specific permission. If no resource id is specified, the permission will be applied to all eligible resources.
|
|
/**
|
|
* @generated from protobuf field: repeated string Values = 2
|
|
*/
|
|
Values: string[]; // The values of the external permission.
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreatePlatformRoleRequest
|
|
*/
|
|
export interface CreatePlatformRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: api.ApplicationType ApplicationType = 7
|
|
*/
|
|
ApplicationType: ApplicationType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 8
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreatePlatformRoleResult
|
|
*/
|
|
export interface CreatePlatformRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOrganisationRoleRequest
|
|
*/
|
|
export interface CreateOrganisationRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 7
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOrganisationRoleResult
|
|
*/
|
|
export interface CreateOrganisationRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateProjectRoleRequest
|
|
*/
|
|
export interface CreateProjectRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 7
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateProjectRoleResult
|
|
*/
|
|
export interface CreateProjectRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdatePlatformRoleRequest
|
|
*/
|
|
export interface UpdatePlatformRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: api.ApplicationType ApplicationType = 7
|
|
*/
|
|
ApplicationType: ApplicationType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 8
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdatePlatformRoleResult
|
|
*/
|
|
export interface UpdatePlatformRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationRoleRequest
|
|
*/
|
|
export interface UpdateOrganisationRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 7
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationRoleResult
|
|
*/
|
|
export interface UpdateOrganisationRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateProjectRoleRequest
|
|
*/
|
|
export interface UpdateProjectRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Permission Permissions = 5
|
|
*/
|
|
Permissions: Permission[];
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 6
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: string Description = 7
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateProjectRoleResult
|
|
*/
|
|
export interface UpdateProjectRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetPlatformRoleRequest
|
|
*/
|
|
export interface GetPlatformRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: string Name = 1
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 2
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetPlatformRoleResult
|
|
*/
|
|
export interface GetPlatformRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOrganisationRoleRequest
|
|
*/
|
|
export interface GetOrganisationRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 3
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOrganisationRoleResult
|
|
*/
|
|
export interface GetOrganisationRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectRoleRequest
|
|
*/
|
|
export interface GetProjectRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 3
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectRoleResult
|
|
*/
|
|
export interface GetProjectRoleResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListPlatformRolesRequest
|
|
*/
|
|
export interface ListPlatformRolesRequest {
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 2
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: api.Paging Paging = 3
|
|
*/
|
|
Paging?: Paging;
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 4
|
|
*/
|
|
Type: RoleType;
|
|
/**
|
|
* @generated from protobuf field: api.ApplicationType ApplicationType = 5
|
|
*/
|
|
ApplicationType: ApplicationType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListPlatformRolesResult
|
|
*/
|
|
export interface ListPlatformRolesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Role Results = 1
|
|
*/
|
|
Results: Role[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOrganisationRolesRequest
|
|
*/
|
|
export interface ListOrganisationRolesRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 2
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: api.Paging Paging = 3
|
|
*/
|
|
Paging?: Paging;
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 4
|
|
*/
|
|
Type: RoleType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOrganisationRolesResult
|
|
*/
|
|
export interface ListOrganisationRolesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Role Results = 1
|
|
*/
|
|
Results: Role[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListProjectRolesRequest
|
|
*/
|
|
export interface ListProjectRolesRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 2
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: api.Paging Paging = 3
|
|
*/
|
|
Paging?: Paging;
|
|
/**
|
|
* @generated from protobuf field: api.RoleType Type = 4
|
|
*/
|
|
Type: RoleType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListProjectRolesResult
|
|
*/
|
|
export interface ListProjectRolesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Role Results = 1
|
|
*/
|
|
Results: Role[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PutRoleExternalPermissionsRequest
|
|
*/
|
|
export interface PutRoleExternalPermissionsRequest {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.ExternalPermission ExternalPermissions = 2
|
|
*/
|
|
ExternalPermissions: ExternalPermission[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PutRoleExternalPermissionsResult
|
|
*/
|
|
export interface PutRoleExternalPermissionsResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteRoleExternalPermissionsRequest
|
|
*/
|
|
export interface DeleteRoleExternalPermissionsRequest {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string; // Role ID
|
|
/**
|
|
* @generated from protobuf field: repeated api.ExternalPermission ExternalPermissions = 2
|
|
*/
|
|
ExternalPermissions: ExternalPermission[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteRoleExternalPermissionsResult
|
|
*/
|
|
export interface DeleteRoleExternalPermissionsResult {
|
|
/**
|
|
* @generated from protobuf field: api.Role Result = 1
|
|
*/
|
|
Result?: Role;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllPlatformRolesRequest
|
|
*/
|
|
export interface DeleteAllPlatformRolesRequest {
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllPlatformRolesResult
|
|
*/
|
|
export interface DeleteAllPlatformRolesResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePlatformRoleRequest
|
|
*/
|
|
export interface DeletePlatformRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePlatformRoleResult
|
|
*/
|
|
export interface DeletePlatformRoleResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationRoleRequest
|
|
*/
|
|
export interface DeleteOrganisationRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationRoleResult
|
|
*/
|
|
export interface DeleteOrganisationRoleResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteProjectRoleRequest
|
|
*/
|
|
export interface DeleteProjectRoleRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 4
|
|
*/
|
|
ResourceType: ResourceType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteProjectRoleResult
|
|
*/
|
|
export interface DeleteProjectRoleResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PropagateRolesOnResourceRequest
|
|
*/
|
|
export interface PropagateRolesOnResourceRequest {
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 1
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: string ResourceId = 2
|
|
*/
|
|
ResourceId: string;
|
|
/**
|
|
* @generated from protobuf field: string ParentRscId = 3
|
|
*/
|
|
ParentRscId: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PropagateRolesOnResourceResult
|
|
*/
|
|
export interface PropagateRolesOnResourceResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteRolesOnResourceRequest
|
|
*/
|
|
export interface DeleteRolesOnResourceRequest {
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType ResourceType = 1
|
|
*/
|
|
ResourceType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: string ResourceId = 2
|
|
*/
|
|
ResourceId: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteRolesOnResourceResult
|
|
*/
|
|
export interface DeleteRolesOnResourceResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetRoleResourceTypesRequest
|
|
*/
|
|
export interface GetRoleResourceTypesRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetRoleResourceTypesResult
|
|
*/
|
|
export interface GetRoleResourceTypesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.ResourceType ResourceTypes = 1
|
|
*/
|
|
ResourceTypes: ResourceType[];
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.ApplicationType
|
|
*/
|
|
export enum ApplicationType {
|
|
/**
|
|
* @generated from protobuf enum value: PROPAGATE = 0;
|
|
*/
|
|
PROPAGATE = 0,
|
|
/**
|
|
* @generated from protobuf enum value: ORGANISATION_CLONE = 1;
|
|
*/
|
|
ORGANISATION_CLONE = 1
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.RoleType
|
|
*/
|
|
export enum RoleType {
|
|
/**
|
|
* @generated from protobuf enum value: ROLE_TYPE_UNKNOWN = 0;
|
|
*/
|
|
ROLE_TYPE_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: ROLE_TYPE_PERMISSION = 10;
|
|
*/
|
|
ROLE_TYPE_PERMISSION = 10,
|
|
/**
|
|
* @generated from protobuf enum value: ROLE_TYPE_COMPOSITE = 20;
|
|
*/
|
|
ROLE_TYPE_COMPOSITE = 20
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Role$Type extends MessageType<Role> {
|
|
constructor() {
|
|
super("api.Role", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] },
|
|
{ no: 7, name: "ReadOnly", kind: "scalar", localName: "ReadOnly", jsonName: "ReadOnly", T: 8 /*ScalarType.BOOL*/ },
|
|
{ no: 8, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType] },
|
|
{ no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.kpi": true } },
|
|
{ no: 12, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 13, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 14, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission },
|
|
{ no: 15, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Role>): Role {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.ResourceID = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.ReadOnly = false;
|
|
message.ApplicationType = 0;
|
|
message.CreatedAt = "";
|
|
message.CreatedBy = "";
|
|
message.Description = "";
|
|
message.ExternalPermissions = [];
|
|
message.Tags = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Role>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Role): Role {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string ResourceID */ 3:
|
|
message.ResourceID = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* bool ReadOnly */ 7:
|
|
message.ReadOnly = reader.bool();
|
|
break;
|
|
case /* api.ApplicationType ApplicationType */ 8:
|
|
message.ApplicationType = reader.int32();
|
|
break;
|
|
case /* string CreatedAt */ 11:
|
|
message.CreatedAt = reader.string();
|
|
break;
|
|
case /* string CreatedBy */ 12:
|
|
message.CreatedBy = reader.string();
|
|
break;
|
|
case /* string Description */ 13:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExternalPermission ExternalPermissions */ 14:
|
|
message.ExternalPermissions.push(ExternalPermission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.RoleTag Tags */ 15:
|
|
if (wireType === WireType.LengthDelimited)
|
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
message.Tags.push(reader.int32());
|
|
else
|
|
message.Tags.push(reader.int32());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: Role, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* string ResourceID = 3; */
|
|
if (message.ResourceID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ResourceID);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* bool ReadOnly = 7; */
|
|
if (message.ReadOnly !== false)
|
|
writer.tag(7, WireType.Varint).bool(message.ReadOnly);
|
|
/* api.ApplicationType ApplicationType = 8; */
|
|
if (message.ApplicationType !== 0)
|
|
writer.tag(8, WireType.Varint).int32(message.ApplicationType);
|
|
/* string CreatedAt = 11; */
|
|
if (message.CreatedAt !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.CreatedAt);
|
|
/* string CreatedBy = 12; */
|
|
if (message.CreatedBy !== "")
|
|
writer.tag(12, WireType.LengthDelimited).string(message.CreatedBy);
|
|
/* string Description = 13; */
|
|
if (message.Description !== "")
|
|
writer.tag(13, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExternalPermission ExternalPermissions = 14; */
|
|
for (let i = 0; i < message.ExternalPermissions.length; i++)
|
|
ExternalPermission.internalBinaryWrite(message.ExternalPermissions[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.RoleTag Tags = 15; */
|
|
if (message.Tags.length) {
|
|
writer.tag(15, WireType.LengthDelimited).fork();
|
|
for (let i = 0; i < message.Tags.length; i++)
|
|
writer.int32(message.Tags[i]);
|
|
writer.join();
|
|
}
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.Role
|
|
*/
|
|
export const Role = new Role$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExternalPermission$Type extends MessageType<ExternalPermission> {
|
|
constructor() {
|
|
super("api.ExternalPermission", [
|
|
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ExternalPermission>): ExternalPermission {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Key = "";
|
|
message.Values = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExternalPermission>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExternalPermission): ExternalPermission {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Key */ 1:
|
|
message.Key = reader.string();
|
|
break;
|
|
case /* repeated string Values */ 2:
|
|
message.Values.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ExternalPermission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Key = 1; */
|
|
if (message.Key !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
|
/* repeated string Values = 2; */
|
|
for (let i = 0; i < message.Values.length; i++)
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Values[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ExternalPermission
|
|
*/
|
|
export const ExternalPermission = new ExternalPermission$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleRequest> {
|
|
constructor() {
|
|
super("api.CreatePlatformRoleRequest", [
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreatePlatformRoleRequest>): CreatePlatformRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.ApplicationType = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreatePlatformRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePlatformRoleRequest): CreatePlatformRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* api.ApplicationType ApplicationType */ 7:
|
|
message.ApplicationType = reader.int32();
|
|
break;
|
|
case /* string Description */ 8:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreatePlatformRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* api.ApplicationType ApplicationType = 7; */
|
|
if (message.ApplicationType !== 0)
|
|
writer.tag(7, WireType.Varint).int32(message.ApplicationType);
|
|
/* string Description = 8; */
|
|
if (message.Description !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreatePlatformRoleRequest
|
|
*/
|
|
export const CreatePlatformRoleRequest = new CreatePlatformRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreatePlatformRoleResult$Type extends MessageType<CreatePlatformRoleResult> {
|
|
constructor() {
|
|
super("api.CreatePlatformRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreatePlatformRoleResult>): CreatePlatformRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreatePlatformRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePlatformRoleResult): CreatePlatformRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreatePlatformRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreatePlatformRoleResult
|
|
*/
|
|
export const CreatePlatformRoleResult = new CreatePlatformRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationRoleRequest> {
|
|
constructor() {
|
|
super("api.CreateOrganisationRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOrganisationRoleRequest>): CreateOrganisationRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOrganisationRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrganisationRoleRequest): CreateOrganisationRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* string Description */ 7:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreateOrganisationRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* string Description = 7; */
|
|
if (message.Description !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreateOrganisationRoleRequest
|
|
*/
|
|
export const CreateOrganisationRoleRequest = new CreateOrganisationRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOrganisationRoleResult$Type extends MessageType<CreateOrganisationRoleResult> {
|
|
constructor() {
|
|
super("api.CreateOrganisationRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOrganisationRoleResult>): CreateOrganisationRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOrganisationRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrganisationRoleResult): CreateOrganisationRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreateOrganisationRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreateOrganisationRoleResult
|
|
*/
|
|
export const CreateOrganisationRoleResult = new CreateOrganisationRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest> {
|
|
constructor() {
|
|
super("api.CreateProjectRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateProjectRoleRequest>): CreateProjectRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateProjectRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectRoleRequest): CreateProjectRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* string Description */ 7:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreateProjectRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* string Description = 7; */
|
|
if (message.Description !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreateProjectRoleRequest
|
|
*/
|
|
export const CreateProjectRoleRequest = new CreateProjectRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateProjectRoleResult$Type extends MessageType<CreateProjectRoleResult> {
|
|
constructor() {
|
|
super("api.CreateProjectRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateProjectRoleResult>): CreateProjectRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateProjectRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectRoleResult): CreateProjectRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreateProjectRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreateProjectRoleResult
|
|
*/
|
|
export const CreateProjectRoleResult = new CreateProjectRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleRequest> {
|
|
constructor() {
|
|
super("api.UpdatePlatformRoleRequest", [
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdatePlatformRoleRequest>): UpdatePlatformRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.ApplicationType = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdatePlatformRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePlatformRoleRequest): UpdatePlatformRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* api.ApplicationType ApplicationType */ 7:
|
|
message.ApplicationType = reader.int32();
|
|
break;
|
|
case /* string Description */ 8:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdatePlatformRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* api.ApplicationType ApplicationType = 7; */
|
|
if (message.ApplicationType !== 0)
|
|
writer.tag(7, WireType.Varint).int32(message.ApplicationType);
|
|
/* string Description = 8; */
|
|
if (message.Description !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdatePlatformRoleRequest
|
|
*/
|
|
export const UpdatePlatformRoleRequest = new UpdatePlatformRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdatePlatformRoleResult$Type extends MessageType<UpdatePlatformRoleResult> {
|
|
constructor() {
|
|
super("api.UpdatePlatformRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdatePlatformRoleResult>): UpdatePlatformRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdatePlatformRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePlatformRoleResult): UpdatePlatformRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdatePlatformRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdatePlatformRoleResult
|
|
*/
|
|
export const UpdatePlatformRoleResult = new UpdatePlatformRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationRoleRequest> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationRoleRequest>): UpdateOrganisationRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationRoleRequest): UpdateOrganisationRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* string Description */ 7:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateOrganisationRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* string Description = 7; */
|
|
if (message.Description !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateOrganisationRoleRequest
|
|
*/
|
|
export const UpdateOrganisationRoleRequest = new UpdateOrganisationRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationRoleResult$Type extends MessageType<UpdateOrganisationRoleResult> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationRoleResult>): UpdateOrganisationRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationRoleResult): UpdateOrganisationRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateOrganisationRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateOrganisationRoleResult
|
|
*/
|
|
export const UpdateOrganisationRoleResult = new UpdateOrganisationRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest> {
|
|
constructor() {
|
|
super("api.UpdateProjectRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateProjectRoleRequest>): UpdateProjectRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
message.Permissions = [];
|
|
message.Type = 0;
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateProjectRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectRoleRequest): UpdateProjectRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* repeated api.Permission Permissions */ 5:
|
|
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.RoleType Type */ 6:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* string Description */ 7:
|
|
message.Description = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateProjectRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
/* 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();
|
|
/* api.RoleType Type = 6; */
|
|
if (message.Type !== 0)
|
|
writer.tag(6, WireType.Varint).int32(message.Type);
|
|
/* string Description = 7; */
|
|
if (message.Description !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateProjectRoleRequest
|
|
*/
|
|
export const UpdateProjectRoleRequest = new UpdateProjectRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateProjectRoleResult$Type extends MessageType<UpdateProjectRoleResult> {
|
|
constructor() {
|
|
super("api.UpdateProjectRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateProjectRoleResult>): UpdateProjectRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateProjectRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectRoleResult): UpdateProjectRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateProjectRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateProjectRoleResult
|
|
*/
|
|
export const UpdateProjectRoleResult = new UpdateProjectRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPlatformRoleRequest$Type extends MessageType<GetPlatformRoleRequest> {
|
|
constructor() {
|
|
super("api.GetPlatformRoleRequest", [
|
|
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPlatformRoleRequest>): GetPlatformRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPlatformRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformRoleRequest): GetPlatformRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Name */ 1:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 2:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetPlatformRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Name = 1; */
|
|
if (message.Name !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 2; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetPlatformRoleRequest
|
|
*/
|
|
export const GetPlatformRoleRequest = new GetPlatformRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPlatformRoleResult$Type extends MessageType<GetPlatformRoleResult> {
|
|
constructor() {
|
|
super("api.GetPlatformRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPlatformRoleResult>): GetPlatformRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPlatformRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformRoleResult): GetPlatformRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetPlatformRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetPlatformRoleResult
|
|
*/
|
|
export const GetPlatformRoleResult = new GetPlatformRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOrganisationRoleRequest$Type extends MessageType<GetOrganisationRoleRequest> {
|
|
constructor() {
|
|
super("api.GetOrganisationRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOrganisationRoleRequest>): GetOrganisationRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOrganisationRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOrganisationRoleRequest): GetOrganisationRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 3:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetOrganisationRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 3; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(3, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetOrganisationRoleRequest
|
|
*/
|
|
export const GetOrganisationRoleRequest = new GetOrganisationRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOrganisationRoleResult$Type extends MessageType<GetOrganisationRoleResult> {
|
|
constructor() {
|
|
super("api.GetOrganisationRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOrganisationRoleResult>): GetOrganisationRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOrganisationRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOrganisationRoleResult): GetOrganisationRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetOrganisationRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetOrganisationRoleResult
|
|
*/
|
|
export const GetOrganisationRoleResult = new GetOrganisationRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectRoleRequest$Type extends MessageType<GetProjectRoleRequest> {
|
|
constructor() {
|
|
super("api.GetProjectRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetProjectRoleRequest>): GetProjectRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectRoleRequest): GetProjectRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 3:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 3; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(3, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectRoleRequest
|
|
*/
|
|
export const GetProjectRoleRequest = new GetProjectRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectRoleResult$Type extends MessageType<GetProjectRoleResult> {
|
|
constructor() {
|
|
super("api.GetProjectRoleResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetProjectRoleResult>): GetProjectRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectRoleResult): GetProjectRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectRoleResult
|
|
*/
|
|
export const GetProjectRoleResult = new GetProjectRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListPlatformRolesRequest$Type extends MessageType<ListPlatformRolesRequest> {
|
|
constructor() {
|
|
super("api.ListPlatformRolesRequest", [
|
|
{ no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] },
|
|
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging },
|
|
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] },
|
|
{ no: 5, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListPlatformRolesRequest>): ListPlatformRolesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
message.Type = 0;
|
|
message.ApplicationType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListPlatformRolesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPlatformRolesRequest): ListPlatformRolesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResourceType ResourceType */ 2:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* api.Paging Paging */ 3:
|
|
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
|
|
break;
|
|
case /* api.RoleType Type */ 4:
|
|
message.Type = reader.int32();
|
|
break;
|
|
case /* api.ApplicationType ApplicationType */ 5:
|
|
message.ApplicationType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListPlatformRolesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResourceType ResourceType = 2; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.ResourceType);
|
|
/* api.Paging Paging = 3; */
|
|
if (message.Paging)
|
|
Paging.internalBinaryWrite(message.Paging, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.RoleType Type = 4; */
|
|
if (message.Type !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.Type);
|
|
/* api.ApplicationType ApplicationType = 5; */
|
|
if (message.ApplicationType !== 0)
|
|
writer.tag(5, WireType.Varint).int32(message.ApplicationType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListPlatformRolesRequest
|
|
*/
|
|
export const ListPlatformRolesRequest = new ListPlatformRolesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListPlatformRolesResult$Type extends MessageType<ListPlatformRolesResult> {
|
|
constructor() {
|
|
super("api.ListPlatformRolesResult", [
|
|
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListPlatformRolesResult>): ListPlatformRolesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Results = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListPlatformRolesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPlatformRolesResult): ListPlatformRolesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Role Results */ 1:
|
|
message.Results.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListPlatformRolesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Role Results = 1; */
|
|
for (let i = 0; i < message.Results.length; i++)
|
|
Role.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListPlatformRolesResult
|
|
*/
|
|
export const ListPlatformRolesResult = new ListPlatformRolesResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOrganisationRolesRequest$Type extends MessageType<ListOrganisationRolesRequest> {
|
|
constructor() {
|
|
super("api.ListOrganisationRolesRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] },
|
|
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging },
|
|
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListOrganisationRolesRequest>): ListOrganisationRolesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
message.Type = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOrganisationRolesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOrganisationRolesRequest): ListOrganisationRolesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 2:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* api.Paging Paging */ 3:
|
|
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
|
|
break;
|
|
case /* api.RoleType Type */ 4:
|
|
message.Type = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListOrganisationRolesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.ResourceType ResourceType = 2; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.ResourceType);
|
|
/* api.Paging Paging = 3; */
|
|
if (message.Paging)
|
|
Paging.internalBinaryWrite(message.Paging, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.RoleType Type = 4; */
|
|
if (message.Type !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.Type);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListOrganisationRolesRequest
|
|
*/
|
|
export const ListOrganisationRolesRequest = new ListOrganisationRolesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOrganisationRolesResult$Type extends MessageType<ListOrganisationRolesResult> {
|
|
constructor() {
|
|
super("api.ListOrganisationRolesResult", [
|
|
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListOrganisationRolesResult>): ListOrganisationRolesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Results = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOrganisationRolesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOrganisationRolesResult): ListOrganisationRolesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Role Results */ 1:
|
|
message.Results.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListOrganisationRolesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Role Results = 1; */
|
|
for (let i = 0; i < message.Results.length; i++)
|
|
Role.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListOrganisationRolesResult
|
|
*/
|
|
export const ListOrganisationRolesResult = new ListOrganisationRolesResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListProjectRolesRequest$Type extends MessageType<ListProjectRolesRequest> {
|
|
constructor() {
|
|
super("api.ListProjectRolesRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] },
|
|
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging },
|
|
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListProjectRolesRequest>): ListProjectRolesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
message.Type = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListProjectRolesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectRolesRequest): ListProjectRolesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 2:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* api.Paging Paging */ 3:
|
|
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
|
|
break;
|
|
case /* api.RoleType Type */ 4:
|
|
message.Type = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListProjectRolesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.ResourceType ResourceType = 2; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.ResourceType);
|
|
/* api.Paging Paging = 3; */
|
|
if (message.Paging)
|
|
Paging.internalBinaryWrite(message.Paging, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.RoleType Type = 4; */
|
|
if (message.Type !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.Type);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListProjectRolesRequest
|
|
*/
|
|
export const ListProjectRolesRequest = new ListProjectRolesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListProjectRolesResult$Type extends MessageType<ListProjectRolesResult> {
|
|
constructor() {
|
|
super("api.ListProjectRolesResult", [
|
|
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListProjectRolesResult>): ListProjectRolesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Results = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListProjectRolesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectRolesResult): ListProjectRolesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Role Results */ 1:
|
|
message.Results.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListProjectRolesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Role Results = 1; */
|
|
for (let i = 0; i < message.Results.length; i++)
|
|
Role.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListProjectRolesResult
|
|
*/
|
|
export const ListProjectRolesResult = new ListProjectRolesResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PutRoleExternalPermissionsRequest$Type extends MessageType<PutRoleExternalPermissionsRequest> {
|
|
constructor() {
|
|
super("api.PutRoleExternalPermissionsRequest", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PutRoleExternalPermissionsRequest>): PutRoleExternalPermissionsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.ExternalPermissions = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PutRoleExternalPermissionsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PutRoleExternalPermissionsRequest): PutRoleExternalPermissionsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* repeated api.ExternalPermission ExternalPermissions */ 2:
|
|
message.ExternalPermissions.push(ExternalPermission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PutRoleExternalPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* repeated api.ExternalPermission ExternalPermissions = 2; */
|
|
for (let i = 0; i < message.ExternalPermissions.length; i++)
|
|
ExternalPermission.internalBinaryWrite(message.ExternalPermissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PutRoleExternalPermissionsRequest
|
|
*/
|
|
export const PutRoleExternalPermissionsRequest = new PutRoleExternalPermissionsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PutRoleExternalPermissionsResult$Type extends MessageType<PutRoleExternalPermissionsResult> {
|
|
constructor() {
|
|
super("api.PutRoleExternalPermissionsResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PutRoleExternalPermissionsResult>): PutRoleExternalPermissionsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PutRoleExternalPermissionsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PutRoleExternalPermissionsResult): PutRoleExternalPermissionsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PutRoleExternalPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PutRoleExternalPermissionsResult
|
|
*/
|
|
export const PutRoleExternalPermissionsResult = new PutRoleExternalPermissionsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteRoleExternalPermissionsRequest$Type extends MessageType<DeleteRoleExternalPermissionsRequest> {
|
|
constructor() {
|
|
super("api.DeleteRoleExternalPermissionsRequest", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteRoleExternalPermissionsRequest>): DeleteRoleExternalPermissionsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.ExternalPermissions = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteRoleExternalPermissionsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRoleExternalPermissionsRequest): DeleteRoleExternalPermissionsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* repeated api.ExternalPermission ExternalPermissions */ 2:
|
|
message.ExternalPermissions.push(ExternalPermission.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteRoleExternalPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* repeated api.ExternalPermission ExternalPermissions = 2; */
|
|
for (let i = 0; i < message.ExternalPermissions.length; i++)
|
|
ExternalPermission.internalBinaryWrite(message.ExternalPermissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteRoleExternalPermissionsRequest
|
|
*/
|
|
export const DeleteRoleExternalPermissionsRequest = new DeleteRoleExternalPermissionsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteRoleExternalPermissionsResult$Type extends MessageType<DeleteRoleExternalPermissionsResult> {
|
|
constructor() {
|
|
super("api.DeleteRoleExternalPermissionsResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteRoleExternalPermissionsResult>): DeleteRoleExternalPermissionsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteRoleExternalPermissionsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRoleExternalPermissionsResult): DeleteRoleExternalPermissionsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Role Result */ 1:
|
|
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteRoleExternalPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Role Result = 1; */
|
|
if (message.Result)
|
|
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteRoleExternalPermissionsResult
|
|
*/
|
|
export const DeleteRoleExternalPermissionsResult = new DeleteRoleExternalPermissionsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllPlatformRolesRequest$Type extends MessageType<DeleteAllPlatformRolesRequest> {
|
|
constructor() {
|
|
super("api.DeleteAllPlatformRolesRequest", [
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllPlatformRolesRequest>): DeleteAllPlatformRolesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllPlatformRolesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllPlatformRolesRequest): DeleteAllPlatformRolesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteAllPlatformRolesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllPlatformRolesRequest
|
|
*/
|
|
export const DeleteAllPlatformRolesRequest = new DeleteAllPlatformRolesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllPlatformRolesResult$Type extends MessageType<DeleteAllPlatformRolesResult> {
|
|
constructor() {
|
|
super("api.DeleteAllPlatformRolesResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllPlatformRolesResult>): DeleteAllPlatformRolesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllPlatformRolesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllPlatformRolesResult): DeleteAllPlatformRolesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteAllPlatformRolesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllPlatformRolesResult
|
|
*/
|
|
export const DeleteAllPlatformRolesResult = new DeleteAllPlatformRolesResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePlatformRoleRequest$Type extends MessageType<DeletePlatformRoleRequest> {
|
|
constructor() {
|
|
super("api.DeletePlatformRoleRequest", [
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeletePlatformRoleRequest>): DeletePlatformRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePlatformRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePlatformRoleRequest): DeletePlatformRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeletePlatformRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeletePlatformRoleRequest
|
|
*/
|
|
export const DeletePlatformRoleRequest = new DeletePlatformRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePlatformRoleResult$Type extends MessageType<DeletePlatformRoleResult> {
|
|
constructor() {
|
|
super("api.DeletePlatformRoleResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeletePlatformRoleResult>): DeletePlatformRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePlatformRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePlatformRoleResult): DeletePlatformRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeletePlatformRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeletePlatformRoleResult
|
|
*/
|
|
export const DeletePlatformRoleResult = new DeletePlatformRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationRoleRequest$Type extends MessageType<DeleteOrganisationRoleRequest> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationRoleRequest>): DeleteOrganisationRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationRoleRequest): DeleteOrganisationRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteOrganisationRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOrganisationRoleRequest
|
|
*/
|
|
export const DeleteOrganisationRoleRequest = new DeleteOrganisationRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationRoleResult$Type extends MessageType<DeleteOrganisationRoleResult> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationRoleResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationRoleResult>): DeleteOrganisationRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationRoleResult): DeleteOrganisationRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteOrganisationRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOrganisationRoleResult
|
|
*/
|
|
export const DeleteOrganisationRoleResult = new DeleteOrganisationRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteProjectRoleRequest$Type extends MessageType<DeleteProjectRoleRequest> {
|
|
constructor() {
|
|
super("api.DeleteProjectRoleRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteProjectRoleRequest>): DeleteProjectRoleRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.ResourceType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteProjectRoleRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectRoleRequest): DeleteProjectRoleRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* api.ResourceType ResourceType */ 4:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteProjectRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* api.ResourceType ResourceType = 4; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.ResourceType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteProjectRoleRequest
|
|
*/
|
|
export const DeleteProjectRoleRequest = new DeleteProjectRoleRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteProjectRoleResult$Type extends MessageType<DeleteProjectRoleResult> {
|
|
constructor() {
|
|
super("api.DeleteProjectRoleResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteProjectRoleResult>): DeleteProjectRoleResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteProjectRoleResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectRoleResult): DeleteProjectRoleResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteProjectRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteProjectRoleResult
|
|
*/
|
|
export const DeleteProjectRoleResult = new DeleteProjectRoleResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PropagateRolesOnResourceRequest$Type extends MessageType<PropagateRolesOnResourceRequest> {
|
|
constructor() {
|
|
super("api.PropagateRolesOnResourceRequest", [
|
|
{ no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "ParentRscId", kind: "scalar", localName: "ParentRscId", jsonName: "ParentRscId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PropagateRolesOnResourceRequest>): PropagateRolesOnResourceRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
message.ResourceId = "";
|
|
message.ParentRscId = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PropagateRolesOnResourceRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PropagateRolesOnResourceRequest): PropagateRolesOnResourceRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResourceType ResourceType */ 1:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* string ResourceId */ 2:
|
|
message.ResourceId = reader.string();
|
|
break;
|
|
case /* string ParentRscId */ 3:
|
|
message.ParentRscId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PropagateRolesOnResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResourceType ResourceType = 1; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.ResourceType);
|
|
/* string ResourceId = 2; */
|
|
if (message.ResourceId !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ResourceId);
|
|
/* string ParentRscId = 3; */
|
|
if (message.ParentRscId !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ParentRscId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PropagateRolesOnResourceRequest
|
|
*/
|
|
export const PropagateRolesOnResourceRequest = new PropagateRolesOnResourceRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PropagateRolesOnResourceResult$Type extends MessageType<PropagateRolesOnResourceResult> {
|
|
constructor() {
|
|
super("api.PropagateRolesOnResourceResult", []);
|
|
}
|
|
create(value?: PartialMessage<PropagateRolesOnResourceResult>): PropagateRolesOnResourceResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PropagateRolesOnResourceResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PropagateRolesOnResourceResult): PropagateRolesOnResourceResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PropagateRolesOnResourceResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PropagateRolesOnResourceResult
|
|
*/
|
|
export const PropagateRolesOnResourceResult = new PropagateRolesOnResourceResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteRolesOnResourceRequest$Type extends MessageType<DeleteRolesOnResourceRequest> {
|
|
constructor() {
|
|
super("api.DeleteRolesOnResourceRequest", [
|
|
{ no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteRolesOnResourceRequest>): DeleteRolesOnResourceRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceType = 0;
|
|
message.ResourceId = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteRolesOnResourceRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRolesOnResourceRequest): DeleteRolesOnResourceRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResourceType ResourceType */ 1:
|
|
message.ResourceType = reader.int32();
|
|
break;
|
|
case /* string ResourceId */ 2:
|
|
message.ResourceId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteRolesOnResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResourceType ResourceType = 1; */
|
|
if (message.ResourceType !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.ResourceType);
|
|
/* string ResourceId = 2; */
|
|
if (message.ResourceId !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ResourceId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteRolesOnResourceRequest
|
|
*/
|
|
export const DeleteRolesOnResourceRequest = new DeleteRolesOnResourceRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteRolesOnResourceResult$Type extends MessageType<DeleteRolesOnResourceResult> {
|
|
constructor() {
|
|
super("api.DeleteRolesOnResourceResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteRolesOnResourceResult>): DeleteRolesOnResourceResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteRolesOnResourceResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRolesOnResourceResult): DeleteRolesOnResourceResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteRolesOnResourceResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteRolesOnResourceResult
|
|
*/
|
|
export const DeleteRolesOnResourceResult = new DeleteRolesOnResourceResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetRoleResourceTypesRequest$Type extends MessageType<GetRoleResourceTypesRequest> {
|
|
constructor() {
|
|
super("api.GetRoleResourceTypesRequest", []);
|
|
}
|
|
create(value?: PartialMessage<GetRoleResourceTypesRequest>): GetRoleResourceTypesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetRoleResourceTypesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetRoleResourceTypesRequest): GetRoleResourceTypesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetRoleResourceTypesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetRoleResourceTypesRequest
|
|
*/
|
|
export const GetRoleResourceTypesRequest = new GetRoleResourceTypesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetRoleResourceTypesResult$Type extends MessageType<GetRoleResourceTypesResult> {
|
|
constructor() {
|
|
super("api.GetRoleResourceTypesResult", [
|
|
{ no: 1, name: "ResourceTypes", kind: "enum", localName: "ResourceTypes", jsonName: "ResourceTypes", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ResourceType", ResourceType] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetRoleResourceTypesResult>): GetRoleResourceTypesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ResourceTypes = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetRoleResourceTypesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetRoleResourceTypesResult): GetRoleResourceTypesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.ResourceType ResourceTypes */ 1:
|
|
if (wireType === WireType.LengthDelimited)
|
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
message.ResourceTypes.push(reader.int32());
|
|
else
|
|
message.ResourceTypes.push(reader.int32());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetRoleResourceTypesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.ResourceType ResourceTypes = 1; */
|
|
if (message.ResourceTypes.length) {
|
|
writer.tag(1, WireType.LengthDelimited).fork();
|
|
for (let i = 0; i < message.ResourceTypes.length; i++)
|
|
writer.int32(message.ResourceTypes[i]);
|
|
writer.join();
|
|
}
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetRoleResourceTypesResult
|
|
*/
|
|
export const GetRoleResourceTypesResult = new GetRoleResourceTypesResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.RoleService
|
|
*/
|
|
export const RoleService = new ServiceType("api.RoleService", [
|
|
{ name: "CreatePlatformRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Create Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: CreatePlatformRoleRequest, O: CreatePlatformRoleResult },
|
|
{ name: "CreateOrganisationRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Create Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateOrganisationRoleRequest, O: CreateOrganisationRoleResult },
|
|
{ name: "CreateProjectRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Create Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateProjectRoleRequest, O: CreateProjectRoleResult },
|
|
{ name: "UpdatePlatformRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Update Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdatePlatformRoleRequest, O: UpdatePlatformRoleResult },
|
|
{ name: "UpdateOrganisationRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Update Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateOrganisationRoleRequest, O: UpdateOrganisationRoleResult },
|
|
{ name: "UpdateProjectRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Update Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateProjectRoleRequest, O: UpdateProjectRoleResult },
|
|
{ name: "DeleteAllPlatformRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete all Platform roles" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllPlatformRolesRequest, O: DeleteAllPlatformRolesResult },
|
|
{ name: "DeletePlatformRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePlatformRoleRequest, O: DeletePlatformRoleResult },
|
|
{ name: "DeleteOrganisationRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteOrganisationRoleRequest, O: DeleteOrganisationRoleResult },
|
|
{ name: "DeleteProjectRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteProjectRoleRequest, O: DeleteProjectRoleResult },
|
|
{ name: "GetPlatformRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPlatformRoleRequest, O: GetPlatformRoleResult },
|
|
{ name: "GetOrganisationRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOrganisationRoleRequest, O: GetOrganisationRoleResult },
|
|
{ name: "GetProjectRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectRoleRequest, O: GetProjectRoleResult },
|
|
{ name: "ListPlatformRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListPlatformRolesRequest, O: ListPlatformRolesResult },
|
|
{ name: "ListOrganisationRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListOrganisationRolesRequest, O: ListOrganisationRolesResult },
|
|
{ name: "ListProjectRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListProjectRolesRequest, O: ListProjectRolesResult },
|
|
{ name: "PutRoleExternalPermissions", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Put external permissions on role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: PutRoleExternalPermissionsRequest, O: PutRoleExternalPermissionsResult },
|
|
{ name: "DeleteRoleExternalPermissions", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete external permissions on role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteRoleExternalPermissionsRequest, O: DeleteRoleExternalPermissionsResult },
|
|
{ name: "PropagateRolesOnResource", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Propagate roles on resource" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: PropagateRolesOnResourceRequest, O: PropagateRolesOnResourceResult },
|
|
{ name: "DeleteRolesOnResource", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete roles on resource" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteRolesOnResourceRequest, O: DeleteRolesOnResourceResult },
|
|
{ name: "GetRoleResourceTypes", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get available role resource types" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetRoleResourceTypesRequest, O: GetRoleResourceTypesResult }
|
|
], { "api.k8sService": "authorization-server", "api.roleManager": true, "api.resourceManager": true });
|