You've already forked npm-core-sdk
2595 lines
128 KiB
TypeScript
2595 lines
128 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "org.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 { WireType } 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 type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { WorkflowExecutionResult } from "./shared";
|
|
import { RequestOrganisationHeader } from "./shared";
|
|
import { Module } from "./module";
|
|
import { IDP } from "./idp";
|
|
/**
|
|
* @generated from protobuf message api.Organisation
|
|
*/
|
|
export interface Organisation {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.IDP IDPs = 3
|
|
*/
|
|
IDPs: IDP[];
|
|
/**
|
|
* @generated from protobuf field: api.StatusEnum status = 4
|
|
*/
|
|
status: StatusEnum;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Module Modules = 5
|
|
*/
|
|
Modules: Module[];
|
|
/**
|
|
* @generated from protobuf field: string DefaultLanguageISO6391 = 6
|
|
*/
|
|
DefaultLanguageISO6391: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationRequest
|
|
*/
|
|
export interface DeleteOrganisationRequest {
|
|
// RequestOrganisationHeader Header = 2
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOrganisationRequest
|
|
*/
|
|
export interface GetOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 2
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOrganisationRequest
|
|
*/
|
|
export interface CreateOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.Organisation Organisation = 1
|
|
*/
|
|
Organisation?: Organisation;
|
|
/**
|
|
* @generated from protobuf field: string ManagerMail = 2
|
|
*/
|
|
ManagerMail: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationRequest
|
|
*/
|
|
export interface UpdateOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 2
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
// Organisation Organisation = 1
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string Name = 3
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string DefaultLanguageISO6391 = 4
|
|
*/
|
|
DefaultLanguageISO6391: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.SetModulesOrganisationRequest
|
|
*/
|
|
export interface SetModulesOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 1
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Module Modules = 2
|
|
*/
|
|
Modules: Module[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationStatusRequest
|
|
*/
|
|
export interface UpdateOrganisationStatusRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 1
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: api.StatusEnum status = 2
|
|
*/
|
|
status: StatusEnum;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOrganisationRequest
|
|
*/
|
|
export interface ListOrganisationRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOrganisationResult
|
|
*/
|
|
export interface CreateOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: api.Organisation Result = 1
|
|
*/
|
|
Result?: Organisation;
|
|
/**
|
|
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 2
|
|
*/
|
|
WorkflowExecution?: WorkflowExecutionResult;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.SetModulesOrganisationResult
|
|
*/
|
|
export interface SetModulesOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: api.Organisation Result = 1
|
|
*/
|
|
Result?: Organisation;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationResult
|
|
*/
|
|
export interface UpdateOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: api.Organisation Result = 1
|
|
*/
|
|
Result?: Organisation;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOrganisationResult
|
|
*/
|
|
export interface GetOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: api.Organisation Result = 1
|
|
*/
|
|
Result?: Organisation;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOrganisationResult
|
|
*/
|
|
export interface ListOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Organisation Organisations = 1
|
|
*/
|
|
Organisations: Organisation[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationResult
|
|
*/
|
|
export interface DeleteOrganisationResult {
|
|
/**
|
|
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
|
|
*/
|
|
WorkflowExecution?: WorkflowExecutionResult;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOrganisationStatusResult
|
|
*/
|
|
export interface UpdateOrganisationStatusResult {
|
|
/**
|
|
* @generated from protobuf field: api.StatusEnum status = 1
|
|
*/
|
|
status: StatusEnum;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartStreamingJobsRequest
|
|
*/
|
|
export interface StartStreamingJobsRequest {
|
|
// RequestOrganisationHeader Header = 1
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 2
|
|
*/
|
|
OrgID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopStreamingJobsRequest
|
|
*/
|
|
export interface StopStreamingJobsRequest {
|
|
// RequestOrganisationHeader Header = 1
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 2
|
|
*/
|
|
OrgID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartIndividualStreamingJobRequest
|
|
*/
|
|
export interface StartIndividualStreamingJobRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 1
|
|
*/
|
|
OrgID: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 5
|
|
*/
|
|
Domain: string;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string ClassName = 3
|
|
*/
|
|
ClassName: string;
|
|
/**
|
|
* @generated from protobuf field: string Arguments = 4
|
|
*/
|
|
Arguments: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartIndividualStreamingJobResult
|
|
*/
|
|
export interface StartIndividualStreamingJobResult {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopIndividualStreamingJobRequest
|
|
*/
|
|
export interface StopIndividualStreamingJobRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 1
|
|
*/
|
|
OrgID: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 5
|
|
*/
|
|
Domain: string;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string ClassName = 3
|
|
*/
|
|
ClassName: string;
|
|
/**
|
|
* @generated from protobuf field: bool Force = 4
|
|
*/
|
|
Force: boolean;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopIndividualStreamingJobResult
|
|
*/
|
|
export interface StopIndividualStreamingJobResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartStreamingJobsResult
|
|
*/
|
|
export interface StartStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopStreamingJobsResult
|
|
*/
|
|
export interface StopStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopAllStreamingJobsRequest
|
|
*/
|
|
export interface StopAllStreamingJobsRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopAllStreamingJobsResult
|
|
*/
|
|
export interface StopAllStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string IDs = 1
|
|
*/
|
|
IDs: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.RestartAllStreamingJobsRequest
|
|
*/
|
|
export interface RestartAllStreamingJobsRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.RestartAllStreamingJobsResult
|
|
*/
|
|
export interface RestartAllStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string IDs = 1
|
|
*/
|
|
IDs: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartAllStreamingJobsRequest
|
|
*/
|
|
export interface StartAllStreamingJobsRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartAllStreamingJobsResult
|
|
*/
|
|
export interface StartAllStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string IDs = 1
|
|
*/
|
|
IDs: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ForceStopAllStreamingJobsRequest
|
|
*/
|
|
export interface ForceStopAllStreamingJobsRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ForceStopAllStreamingJobsResult
|
|
*/
|
|
export interface ForceStopAllStreamingJobsResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string IDs = 1
|
|
*/
|
|
IDs: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartStreamingMetricsJobRequest
|
|
*/
|
|
export interface StartStreamingMetricsJobRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StartStreamingMetricsJobResult
|
|
*/
|
|
export interface StartStreamingMetricsJobResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopStreamingMetricsJobRequest
|
|
*/
|
|
export interface StopStreamingMetricsJobRequest {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.StopStreamingMetricsJobResult
|
|
*/
|
|
export interface StopStreamingMetricsJobResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CheckStreamingStatusRequest
|
|
*/
|
|
export interface CheckStreamingStatusRequest {
|
|
// RequestOrganisationHeader Header = 3
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 4
|
|
*/
|
|
OrgID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CheckStreamingStatusResult
|
|
*/
|
|
export interface CheckStreamingStatusResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ProvisionGitOrgRequest
|
|
*/
|
|
export interface ProvisionGitOrgRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 1
|
|
*/
|
|
OrgID: string;
|
|
/**
|
|
* @generated from protobuf field: string ManagerMail = 2
|
|
*/
|
|
ManagerMail: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ProvisionGitOrgResult
|
|
*/
|
|
export interface ProvisionGitOrgResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeprovisionGitOrgRequest
|
|
*/
|
|
export interface DeprovisionGitOrgRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrgID = 1
|
|
*/
|
|
OrgID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeprovisionGitOrgResult
|
|
*/
|
|
export interface DeprovisionGitOrgResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationInDBRequest
|
|
*/
|
|
export interface DeleteOrganisationInDBRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 1
|
|
*/
|
|
OrganisationID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOrganisationInDBResult
|
|
*/
|
|
export interface DeleteOrganisationInDBResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.StatusEnum
|
|
*/
|
|
export enum StatusEnum {
|
|
/**
|
|
* @generated from protobuf enum value: STATUS_UNDEFINED = 0;
|
|
*/
|
|
STATUS_UNDEFINED = 0,
|
|
/**
|
|
* @generated from protobuf enum value: CREATED = 1;
|
|
*/
|
|
CREATED = 1,
|
|
/**
|
|
* @generated from protobuf enum value: INITIALIZED = 2;
|
|
*/
|
|
INITIALIZED = 2,
|
|
/**
|
|
* @generated from protobuf enum value: RUNNING = 3;
|
|
*/
|
|
RUNNING = 3,
|
|
/**
|
|
* @generated from protobuf enum value: PAUSE = 4;
|
|
*/
|
|
PAUSE = 4,
|
|
/**
|
|
* @generated from protobuf enum value: ARCHIVED = 5;
|
|
*/
|
|
ARCHIVED = 5,
|
|
/**
|
|
* @generated from protobuf enum value: DELETED = 6;
|
|
*/
|
|
DELETED = 6,
|
|
/**
|
|
* @generated from protobuf enum value: STOPPED = 7;
|
|
*/
|
|
STOPPED = 7,
|
|
/**
|
|
* @generated from protobuf enum value: STARTING = 8;
|
|
*/
|
|
STARTING = 8,
|
|
/**
|
|
* @generated from protobuf enum value: STOPPING = 9;
|
|
*/
|
|
STOPPING = 9,
|
|
/**
|
|
* @generated from protobuf enum value: PARTIALLY_RUNNING = 10;
|
|
*/
|
|
PARTIALLY_RUNNING = 10,
|
|
/**
|
|
* @generated from protobuf enum value: PARTIALLY_STOPPED = 11;
|
|
*/
|
|
PARTIALLY_STOPPED = 11,
|
|
/**
|
|
* @generated from protobuf enum value: PAUSING = 12;
|
|
*/
|
|
PAUSING = 12,
|
|
/**
|
|
* @generated from protobuf enum value: PROVISIONING = 13;
|
|
*/
|
|
PROVISIONING = 13,
|
|
/**
|
|
* @generated from protobuf enum value: DEPROVISIONING = 14;
|
|
*/
|
|
DEPROVISIONING = 14,
|
|
/**
|
|
* @generated from protobuf enum value: IN_ERROR = 15;
|
|
*/
|
|
IN_ERROR = 15
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Organisation$Type extends MessageType<Organisation> {
|
|
constructor() {
|
|
super("api.Organisation", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "IDPs", kind: "message", localName: "IDPs", jsonName: "IDPs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => IDP },
|
|
{ no: 4, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module },
|
|
{ no: 6, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Organisation>): Organisation {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.IDPs = [];
|
|
message.status = 0;
|
|
message.Modules = [];
|
|
message.DefaultLanguageISO6391 = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Organisation>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Organisation): Organisation {
|
|
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 /* repeated api.IDP IDPs */ 3:
|
|
message.IDPs.push(IDP.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* api.StatusEnum status */ 4:
|
|
message.status = reader.int32();
|
|
break;
|
|
case /* repeated api.Module Modules */ 5:
|
|
message.Modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string DefaultLanguageISO6391 */ 6:
|
|
message.DefaultLanguageISO6391 = 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: Organisation, 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);
|
|
/* repeated api.IDP IDPs = 3; */
|
|
for (let i = 0; i < message.IDPs.length; i++)
|
|
IDP.internalBinaryWrite(message.IDPs[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.StatusEnum status = 4; */
|
|
if (message.status !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.status);
|
|
/* repeated api.Module Modules = 5; */
|
|
for (let i = 0; i < message.Modules.length; i++)
|
|
Module.internalBinaryWrite(message.Modules[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* string DefaultLanguageISO6391 = 6; */
|
|
if (message.DefaultLanguageISO6391 !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.DefaultLanguageISO6391);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.Organisation
|
|
*/
|
|
export const Organisation = new Organisation$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationRequest$Type extends MessageType<DeleteOrganisationRequest> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationRequest", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationRequest>): DeleteOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationRequest): DeleteOrganisationRequest {
|
|
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;
|
|
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: DeleteOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOrganisationRequest
|
|
*/
|
|
export const DeleteOrganisationRequest = new DeleteOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOrganisationRequest$Type extends MessageType<GetOrganisationRequest> {
|
|
constructor() {
|
|
super("api.GetOrganisationRequest", [
|
|
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOrganisationRequest>): GetOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOrganisationRequest): GetOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 2:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
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: GetOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 2; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, 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.GetOrganisationRequest
|
|
*/
|
|
export const GetOrganisationRequest = new GetOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOrganisationRequest$Type extends MessageType<CreateOrganisationRequest> {
|
|
constructor() {
|
|
super("api.CreateOrganisationRequest", [
|
|
{ no: 1, name: "Organisation", kind: "message", localName: "Organisation", jsonName: "Organisation", T: () => Organisation, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOrganisationRequest>): CreateOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ManagerMail = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrganisationRequest): CreateOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Organisation Organisation */ 1:
|
|
message.Organisation = Organisation.internalBinaryRead(reader, reader.uint32(), options, message.Organisation);
|
|
break;
|
|
case /* string ManagerMail */ 2:
|
|
message.ManagerMail = 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: CreateOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Organisation Organisation = 1; */
|
|
if (message.Organisation)
|
|
Organisation.internalBinaryWrite(message.Organisation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ManagerMail = 2; */
|
|
if (message.ManagerMail !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ManagerMail);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreateOrganisationRequest
|
|
*/
|
|
export const CreateOrganisationRequest = new CreateOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationRequest$Type extends MessageType<UpdateOrganisationRequest> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationRequest", [
|
|
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } } },
|
|
{ no: 4, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationRequest>): UpdateOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.DefaultLanguageISO6391 = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationRequest): UpdateOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 2:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 3:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string DefaultLanguageISO6391 */ 4:
|
|
message.DefaultLanguageISO6391 = 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: UpdateOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 2; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 3; */
|
|
if (message.Name !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
|
/* string DefaultLanguageISO6391 = 4; */
|
|
if (message.DefaultLanguageISO6391 !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.DefaultLanguageISO6391);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateOrganisationRequest
|
|
*/
|
|
export const UpdateOrganisationRequest = new UpdateOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class SetModulesOrganisationRequest$Type extends MessageType<SetModulesOrganisationRequest> {
|
|
constructor() {
|
|
super("api.SetModulesOrganisationRequest", [
|
|
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } });
|
|
}
|
|
create(value?: PartialMessage<SetModulesOrganisationRequest>): SetModulesOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrganisationID = "";
|
|
message.Modules = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<SetModulesOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetModulesOrganisationRequest): SetModulesOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrganisationID */ 1:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* repeated api.Module Modules */ 2:
|
|
message.Modules.push(Module.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: SetModulesOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrganisationID = 1; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* repeated api.Module Modules = 2; */
|
|
for (let i = 0; i < message.Modules.length; i++)
|
|
Module.internalBinaryWrite(message.Modules[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.SetModulesOrganisationRequest
|
|
*/
|
|
export const SetModulesOrganisationRequest = new SetModulesOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationStatusRequest$Type extends MessageType<UpdateOrganisationStatusRequest> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationStatusRequest", [
|
|
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationStatusRequest>): UpdateOrganisationStatusRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrganisationID = "";
|
|
message.status = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationStatusRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationStatusRequest): UpdateOrganisationStatusRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrganisationID */ 1:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* api.StatusEnum status */ 2:
|
|
message.status = 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: UpdateOrganisationStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrganisationID = 1; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* api.StatusEnum status = 2; */
|
|
if (message.status !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.status);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateOrganisationStatusRequest
|
|
*/
|
|
export const UpdateOrganisationStatusRequest = new UpdateOrganisationStatusRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOrganisationRequest$Type extends MessageType<ListOrganisationRequest> {
|
|
constructor() {
|
|
super("api.ListOrganisationRequest", []);
|
|
}
|
|
create(value?: PartialMessage<ListOrganisationRequest>): ListOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOrganisationRequest): ListOrganisationRequest {
|
|
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: ListOrganisationRequest, 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.ListOrganisationRequest
|
|
*/
|
|
export const ListOrganisationRequest = new ListOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOrganisationResult$Type extends MessageType<CreateOrganisationResult> {
|
|
constructor() {
|
|
super("api.CreateOrganisationResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Organisation },
|
|
{ no: 2, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOrganisationResult>): CreateOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrganisationResult): CreateOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Organisation Result */ 1:
|
|
message.Result = Organisation.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
break;
|
|
case /* api.WorkflowExecutionResult WorkflowExecution */ 2:
|
|
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
|
|
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: CreateOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Organisation Result = 1; */
|
|
if (message.Result)
|
|
Organisation.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.WorkflowExecutionResult WorkflowExecution = 2; */
|
|
if (message.WorkflowExecution)
|
|
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.CreateOrganisationResult
|
|
*/
|
|
export const CreateOrganisationResult = new CreateOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class SetModulesOrganisationResult$Type extends MessageType<SetModulesOrganisationResult> {
|
|
constructor() {
|
|
super("api.SetModulesOrganisationResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Organisation }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<SetModulesOrganisationResult>): SetModulesOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<SetModulesOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetModulesOrganisationResult): SetModulesOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Organisation Result */ 1:
|
|
message.Result = Organisation.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: SetModulesOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Organisation Result = 1; */
|
|
if (message.Result)
|
|
Organisation.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.SetModulesOrganisationResult
|
|
*/
|
|
export const SetModulesOrganisationResult = new SetModulesOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationResult$Type extends MessageType<UpdateOrganisationResult> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Organisation }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationResult>): UpdateOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationResult): UpdateOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Organisation Result */ 1:
|
|
message.Result = Organisation.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: UpdateOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Organisation Result = 1; */
|
|
if (message.Result)
|
|
Organisation.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.UpdateOrganisationResult
|
|
*/
|
|
export const UpdateOrganisationResult = new UpdateOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOrganisationResult$Type extends MessageType<GetOrganisationResult> {
|
|
constructor() {
|
|
super("api.GetOrganisationResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Organisation }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOrganisationResult>): GetOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOrganisationResult): GetOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Organisation Result */ 1:
|
|
message.Result = Organisation.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: GetOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Organisation Result = 1; */
|
|
if (message.Result)
|
|
Organisation.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.GetOrganisationResult
|
|
*/
|
|
export const GetOrganisationResult = new GetOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOrganisationResult$Type extends MessageType<ListOrganisationResult> {
|
|
constructor() {
|
|
super("api.ListOrganisationResult", [
|
|
{ no: 1, name: "Organisations", kind: "message", localName: "Organisations", jsonName: "Organisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Organisation }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListOrganisationResult>): ListOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Organisations = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOrganisationResult): ListOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Organisation Organisations */ 1:
|
|
message.Organisations.push(Organisation.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: ListOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Organisation Organisations = 1; */
|
|
for (let i = 0; i < message.Organisations.length; i++)
|
|
Organisation.internalBinaryWrite(message.Organisations[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.ListOrganisationResult
|
|
*/
|
|
export const ListOrganisationResult = new ListOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationResult$Type extends MessageType<DeleteOrganisationResult> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationResult", [
|
|
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationResult>): DeleteOrganisationResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationResult): DeleteOrganisationResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.WorkflowExecutionResult WorkflowExecution */ 1:
|
|
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
|
|
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: DeleteOrganisationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.WorkflowExecutionResult WorkflowExecution = 1; */
|
|
if (message.WorkflowExecution)
|
|
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.DeleteOrganisationResult
|
|
*/
|
|
export const DeleteOrganisationResult = new DeleteOrganisationResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOrganisationStatusResult$Type extends MessageType<UpdateOrganisationStatusResult> {
|
|
constructor() {
|
|
super("api.UpdateOrganisationStatusResult", [
|
|
{ no: 1, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOrganisationStatusResult>): UpdateOrganisationStatusResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.status = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOrganisationStatusResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOrganisationStatusResult): UpdateOrganisationStatusResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.StatusEnum status */ 1:
|
|
message.status = 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: UpdateOrganisationStatusResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.StatusEnum status = 1; */
|
|
if (message.status !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.status);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdateOrganisationStatusResult
|
|
*/
|
|
export const UpdateOrganisationStatusResult = new UpdateOrganisationStatusResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartStreamingJobsRequest$Type extends MessageType<StartStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.StartStreamingJobsRequest", [
|
|
{ no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StartStreamingJobsRequest>): StartStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartStreamingJobsRequest): StartStreamingJobsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 2:
|
|
message.OrgID = 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: StartStreamingJobsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 2; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.OrgID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StartStreamingJobsRequest
|
|
*/
|
|
export const StartStreamingJobsRequest = new StartStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopStreamingJobsRequest$Type extends MessageType<StopStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.StopStreamingJobsRequest", [
|
|
{ no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StopStreamingJobsRequest>): StopStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopStreamingJobsRequest): StopStreamingJobsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 2:
|
|
message.OrgID = 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: StopStreamingJobsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 2; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.OrgID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StopStreamingJobsRequest
|
|
*/
|
|
export const StopStreamingJobsRequest = new StopStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartIndividualStreamingJobRequest$Type extends MessageType<StartIndividualStreamingJobRequest> {
|
|
constructor() {
|
|
super("api.StartIndividualStreamingJobRequest", [
|
|
{ no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 4, name: "Arguments", kind: "scalar", localName: "Arguments", jsonName: "Arguments", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StartIndividualStreamingJobRequest>): StartIndividualStreamingJobRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
message.Domain = "";
|
|
message.Entity = "";
|
|
message.ClassName = "";
|
|
message.Arguments = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartIndividualStreamingJobRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartIndividualStreamingJobRequest): StartIndividualStreamingJobRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 1:
|
|
message.OrgID = reader.string();
|
|
break;
|
|
case /* string Domain */ 5:
|
|
message.Domain = reader.string();
|
|
break;
|
|
case /* string Entity */ 2:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string ClassName */ 3:
|
|
message.ClassName = reader.string();
|
|
break;
|
|
case /* string Arguments */ 4:
|
|
message.Arguments = 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: StartIndividualStreamingJobRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 1; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrgID);
|
|
/* string Entity = 2; */
|
|
if (message.Entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
/* string ClassName = 3; */
|
|
if (message.ClassName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ClassName);
|
|
/* string Arguments = 4; */
|
|
if (message.Arguments !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Arguments);
|
|
/* string Domain = 5; */
|
|
if (message.Domain !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.Domain);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StartIndividualStreamingJobRequest
|
|
*/
|
|
export const StartIndividualStreamingJobRequest = new StartIndividualStreamingJobRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartIndividualStreamingJobResult$Type extends MessageType<StartIndividualStreamingJobResult> {
|
|
constructor() {
|
|
super("api.StartIndividualStreamingJobResult", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StartIndividualStreamingJobResult>): StartIndividualStreamingJobResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartIndividualStreamingJobResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartIndividualStreamingJobResult): StartIndividualStreamingJobResult {
|
|
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;
|
|
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: StartIndividualStreamingJobResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StartIndividualStreamingJobResult
|
|
*/
|
|
export const StartIndividualStreamingJobResult = new StartIndividualStreamingJobResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopIndividualStreamingJobRequest$Type extends MessageType<StopIndividualStreamingJobRequest> {
|
|
constructor() {
|
|
super("api.StopIndividualStreamingJobRequest", [
|
|
{ no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 4, name: "Force", kind: "scalar", localName: "Force", jsonName: "Force", T: 8 /*ScalarType.BOOL*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StopIndividualStreamingJobRequest>): StopIndividualStreamingJobRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
message.Domain = "";
|
|
message.Entity = "";
|
|
message.ClassName = "";
|
|
message.Force = false;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopIndividualStreamingJobRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopIndividualStreamingJobRequest): StopIndividualStreamingJobRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 1:
|
|
message.OrgID = reader.string();
|
|
break;
|
|
case /* string Domain */ 5:
|
|
message.Domain = reader.string();
|
|
break;
|
|
case /* string Entity */ 2:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string ClassName */ 3:
|
|
message.ClassName = reader.string();
|
|
break;
|
|
case /* bool Force */ 4:
|
|
message.Force = reader.bool();
|
|
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: StopIndividualStreamingJobRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 1; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrgID);
|
|
/* string Entity = 2; */
|
|
if (message.Entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
/* string ClassName = 3; */
|
|
if (message.ClassName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ClassName);
|
|
/* bool Force = 4; */
|
|
if (message.Force !== false)
|
|
writer.tag(4, WireType.Varint).bool(message.Force);
|
|
/* string Domain = 5; */
|
|
if (message.Domain !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.Domain);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StopIndividualStreamingJobRequest
|
|
*/
|
|
export const StopIndividualStreamingJobRequest = new StopIndividualStreamingJobRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopIndividualStreamingJobResult$Type extends MessageType<StopIndividualStreamingJobResult> {
|
|
constructor() {
|
|
super("api.StopIndividualStreamingJobResult", []);
|
|
}
|
|
create(value?: PartialMessage<StopIndividualStreamingJobResult>): StopIndividualStreamingJobResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopIndividualStreamingJobResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopIndividualStreamingJobResult): StopIndividualStreamingJobResult {
|
|
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: StopIndividualStreamingJobResult, 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.StopIndividualStreamingJobResult
|
|
*/
|
|
export const StopIndividualStreamingJobResult = new StopIndividualStreamingJobResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartStreamingJobsResult$Type extends MessageType<StartStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.StartStreamingJobsResult", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StartStreamingJobsResult>): StartStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartStreamingJobsResult): StartStreamingJobsResult {
|
|
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;
|
|
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: StartStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StartStreamingJobsResult
|
|
*/
|
|
export const StartStreamingJobsResult = new StartStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopStreamingJobsResult$Type extends MessageType<StopStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.StopStreamingJobsResult", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StopStreamingJobsResult>): StopStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopStreamingJobsResult): StopStreamingJobsResult {
|
|
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;
|
|
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: StopStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.StopStreamingJobsResult
|
|
*/
|
|
export const StopStreamingJobsResult = new StopStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopAllStreamingJobsRequest$Type extends MessageType<StopAllStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.StopAllStreamingJobsRequest", []);
|
|
}
|
|
create(value?: PartialMessage<StopAllStreamingJobsRequest>): StopAllStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopAllStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopAllStreamingJobsRequest): StopAllStreamingJobsRequest {
|
|
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: StopAllStreamingJobsRequest, 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.StopAllStreamingJobsRequest
|
|
*/
|
|
export const StopAllStreamingJobsRequest = new StopAllStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopAllStreamingJobsResult$Type extends MessageType<StopAllStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.StopAllStreamingJobsResult", [
|
|
{ no: 1, name: "IDs", kind: "scalar", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StopAllStreamingJobsResult>): StopAllStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.IDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopAllStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopAllStreamingJobsResult): StopAllStreamingJobsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string IDs */ 1:
|
|
message.IDs.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: StopAllStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string IDs = 1; */
|
|
for (let i = 0; i < message.IDs.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.IDs[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.StopAllStreamingJobsResult
|
|
*/
|
|
export const StopAllStreamingJobsResult = new StopAllStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RestartAllStreamingJobsRequest$Type extends MessageType<RestartAllStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.RestartAllStreamingJobsRequest", []);
|
|
}
|
|
create(value?: PartialMessage<RestartAllStreamingJobsRequest>): RestartAllStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RestartAllStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestartAllStreamingJobsRequest): RestartAllStreamingJobsRequest {
|
|
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: RestartAllStreamingJobsRequest, 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.RestartAllStreamingJobsRequest
|
|
*/
|
|
export const RestartAllStreamingJobsRequest = new RestartAllStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RestartAllStreamingJobsResult$Type extends MessageType<RestartAllStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.RestartAllStreamingJobsResult", [
|
|
{ no: 1, name: "IDs", kind: "scalar", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<RestartAllStreamingJobsResult>): RestartAllStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.IDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RestartAllStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestartAllStreamingJobsResult): RestartAllStreamingJobsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string IDs */ 1:
|
|
message.IDs.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: RestartAllStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string IDs = 1; */
|
|
for (let i = 0; i < message.IDs.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.IDs[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.RestartAllStreamingJobsResult
|
|
*/
|
|
export const RestartAllStreamingJobsResult = new RestartAllStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartAllStreamingJobsRequest$Type extends MessageType<StartAllStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.StartAllStreamingJobsRequest", []);
|
|
}
|
|
create(value?: PartialMessage<StartAllStreamingJobsRequest>): StartAllStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartAllStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartAllStreamingJobsRequest): StartAllStreamingJobsRequest {
|
|
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: StartAllStreamingJobsRequest, 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.StartAllStreamingJobsRequest
|
|
*/
|
|
export const StartAllStreamingJobsRequest = new StartAllStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartAllStreamingJobsResult$Type extends MessageType<StartAllStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.StartAllStreamingJobsResult", [
|
|
{ no: 1, name: "IDs", kind: "scalar", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<StartAllStreamingJobsResult>): StartAllStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.IDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartAllStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartAllStreamingJobsResult): StartAllStreamingJobsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string IDs */ 1:
|
|
message.IDs.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: StartAllStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string IDs = 1; */
|
|
for (let i = 0; i < message.IDs.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.IDs[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.StartAllStreamingJobsResult
|
|
*/
|
|
export const StartAllStreamingJobsResult = new StartAllStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ForceStopAllStreamingJobsRequest$Type extends MessageType<ForceStopAllStreamingJobsRequest> {
|
|
constructor() {
|
|
super("api.ForceStopAllStreamingJobsRequest", []);
|
|
}
|
|
create(value?: PartialMessage<ForceStopAllStreamingJobsRequest>): ForceStopAllStreamingJobsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ForceStopAllStreamingJobsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceStopAllStreamingJobsRequest): ForceStopAllStreamingJobsRequest {
|
|
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: ForceStopAllStreamingJobsRequest, 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.ForceStopAllStreamingJobsRequest
|
|
*/
|
|
export const ForceStopAllStreamingJobsRequest = new ForceStopAllStreamingJobsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ForceStopAllStreamingJobsResult$Type extends MessageType<ForceStopAllStreamingJobsResult> {
|
|
constructor() {
|
|
super("api.ForceStopAllStreamingJobsResult", [
|
|
{ no: 1, name: "IDs", kind: "scalar", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ForceStopAllStreamingJobsResult>): ForceStopAllStreamingJobsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.IDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ForceStopAllStreamingJobsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceStopAllStreamingJobsResult): ForceStopAllStreamingJobsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string IDs */ 1:
|
|
message.IDs.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: ForceStopAllStreamingJobsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string IDs = 1; */
|
|
for (let i = 0; i < message.IDs.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.IDs[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.ForceStopAllStreamingJobsResult
|
|
*/
|
|
export const ForceStopAllStreamingJobsResult = new ForceStopAllStreamingJobsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartStreamingMetricsJobRequest$Type extends MessageType<StartStreamingMetricsJobRequest> {
|
|
constructor() {
|
|
super("api.StartStreamingMetricsJobRequest", []);
|
|
}
|
|
create(value?: PartialMessage<StartStreamingMetricsJobRequest>): StartStreamingMetricsJobRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartStreamingMetricsJobRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartStreamingMetricsJobRequest): StartStreamingMetricsJobRequest {
|
|
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: StartStreamingMetricsJobRequest, 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.StartStreamingMetricsJobRequest
|
|
*/
|
|
export const StartStreamingMetricsJobRequest = new StartStreamingMetricsJobRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StartStreamingMetricsJobResult$Type extends MessageType<StartStreamingMetricsJobResult> {
|
|
constructor() {
|
|
super("api.StartStreamingMetricsJobResult", []);
|
|
}
|
|
create(value?: PartialMessage<StartStreamingMetricsJobResult>): StartStreamingMetricsJobResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StartStreamingMetricsJobResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartStreamingMetricsJobResult): StartStreamingMetricsJobResult {
|
|
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: StartStreamingMetricsJobResult, 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.StartStreamingMetricsJobResult
|
|
*/
|
|
export const StartStreamingMetricsJobResult = new StartStreamingMetricsJobResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopStreamingMetricsJobRequest$Type extends MessageType<StopStreamingMetricsJobRequest> {
|
|
constructor() {
|
|
super("api.StopStreamingMetricsJobRequest", []);
|
|
}
|
|
create(value?: PartialMessage<StopStreamingMetricsJobRequest>): StopStreamingMetricsJobRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopStreamingMetricsJobRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopStreamingMetricsJobRequest): StopStreamingMetricsJobRequest {
|
|
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: StopStreamingMetricsJobRequest, 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.StopStreamingMetricsJobRequest
|
|
*/
|
|
export const StopStreamingMetricsJobRequest = new StopStreamingMetricsJobRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class StopStreamingMetricsJobResult$Type extends MessageType<StopStreamingMetricsJobResult> {
|
|
constructor() {
|
|
super("api.StopStreamingMetricsJobResult", []);
|
|
}
|
|
create(value?: PartialMessage<StopStreamingMetricsJobResult>): StopStreamingMetricsJobResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<StopStreamingMetricsJobResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StopStreamingMetricsJobResult): StopStreamingMetricsJobResult {
|
|
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: StopStreamingMetricsJobResult, 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.StopStreamingMetricsJobResult
|
|
*/
|
|
export const StopStreamingMetricsJobResult = new StopStreamingMetricsJobResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CheckStreamingStatusRequest$Type extends MessageType<CheckStreamingStatusRequest> {
|
|
constructor() {
|
|
super("api.CheckStreamingStatusRequest", [
|
|
{ no: 4, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CheckStreamingStatusRequest>): CheckStreamingStatusRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CheckStreamingStatusRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckStreamingStatusRequest): CheckStreamingStatusRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 4:
|
|
message.OrgID = 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: CheckStreamingStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 4; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.OrgID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CheckStreamingStatusRequest
|
|
*/
|
|
export const CheckStreamingStatusRequest = new CheckStreamingStatusRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CheckStreamingStatusResult$Type extends MessageType<CheckStreamingStatusResult> {
|
|
constructor() {
|
|
super("api.CheckStreamingStatusResult", []);
|
|
}
|
|
create(value?: PartialMessage<CheckStreamingStatusResult>): CheckStreamingStatusResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CheckStreamingStatusResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckStreamingStatusResult): CheckStreamingStatusResult {
|
|
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: CheckStreamingStatusResult, 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.CheckStreamingStatusResult
|
|
*/
|
|
export const CheckStreamingStatusResult = new CheckStreamingStatusResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ProvisionGitOrgRequest$Type extends MessageType<ProvisionGitOrgRequest> {
|
|
constructor() {
|
|
super("api.ProvisionGitOrgRequest", [
|
|
{ no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ProvisionGitOrgRequest>): ProvisionGitOrgRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
message.ManagerMail = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ProvisionGitOrgRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProvisionGitOrgRequest): ProvisionGitOrgRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 1:
|
|
message.OrgID = reader.string();
|
|
break;
|
|
case /* string ManagerMail */ 2:
|
|
message.ManagerMail = 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: ProvisionGitOrgRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 1; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrgID);
|
|
/* string ManagerMail = 2; */
|
|
if (message.ManagerMail !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ManagerMail);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ProvisionGitOrgRequest
|
|
*/
|
|
export const ProvisionGitOrgRequest = new ProvisionGitOrgRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ProvisionGitOrgResult$Type extends MessageType<ProvisionGitOrgResult> {
|
|
constructor() {
|
|
super("api.ProvisionGitOrgResult", []);
|
|
}
|
|
create(value?: PartialMessage<ProvisionGitOrgResult>): ProvisionGitOrgResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ProvisionGitOrgResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProvisionGitOrgResult): ProvisionGitOrgResult {
|
|
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: ProvisionGitOrgResult, 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.ProvisionGitOrgResult
|
|
*/
|
|
export const ProvisionGitOrgResult = new ProvisionGitOrgResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeprovisionGitOrgRequest$Type extends MessageType<DeprovisionGitOrgRequest> {
|
|
constructor() {
|
|
super("api.DeprovisionGitOrgRequest", [
|
|
{ no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrgID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeprovisionGitOrgRequest>): DeprovisionGitOrgRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrgID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeprovisionGitOrgRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeprovisionGitOrgRequest): DeprovisionGitOrgRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrgID */ 1:
|
|
message.OrgID = 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: DeprovisionGitOrgRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrgID = 1; */
|
|
if (message.OrgID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrgID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeprovisionGitOrgRequest
|
|
*/
|
|
export const DeprovisionGitOrgRequest = new DeprovisionGitOrgRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeprovisionGitOrgResult$Type extends MessageType<DeprovisionGitOrgResult> {
|
|
constructor() {
|
|
super("api.DeprovisionGitOrgResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeprovisionGitOrgResult>): DeprovisionGitOrgResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeprovisionGitOrgResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeprovisionGitOrgResult): DeprovisionGitOrgResult {
|
|
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: DeprovisionGitOrgResult, 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.DeprovisionGitOrgResult
|
|
*/
|
|
export const DeprovisionGitOrgResult = new DeprovisionGitOrgResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationInDBRequest$Type extends MessageType<DeleteOrganisationInDBRequest> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationInDBRequest", [
|
|
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationInDBRequest>): DeleteOrganisationInDBRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrganisationID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationInDBRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationInDBRequest): DeleteOrganisationInDBRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrganisationID */ 1:
|
|
message.OrganisationID = 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: DeleteOrganisationInDBRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrganisationID = 1; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOrganisationInDBRequest
|
|
*/
|
|
export const DeleteOrganisationInDBRequest = new DeleteOrganisationInDBRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOrganisationInDBResult$Type extends MessageType<DeleteOrganisationInDBResult> {
|
|
constructor() {
|
|
super("api.DeleteOrganisationInDBResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteOrganisationInDBResult>): DeleteOrganisationInDBResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOrganisationInDBResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrganisationInDBResult): DeleteOrganisationInDBResult {
|
|
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: DeleteOrganisationInDBResult, 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.DeleteOrganisationInDBResult
|
|
*/
|
|
export const DeleteOrganisationInDBResult = new DeleteOrganisationInDBResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.OrganisationService
|
|
*/
|
|
export const OrganisationService = new ServiceType("api.OrganisationService", [
|
|
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Get" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetOrganisationRequest, O: GetOrganisationResult },
|
|
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Create" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateOrganisationRequest, O: CreateOrganisationResult },
|
|
{ name: "SetModules", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the modules of an organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SetModulesOrganisationRequest, O: SetModulesOrganisationResult },
|
|
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Update" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateOrganisationRequest, O: UpdateOrganisationResult },
|
|
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteOrganisationRequest, O: DeleteOrganisationResult },
|
|
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "List" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListOrganisationRequest, O: ListOrganisationResult },
|
|
{ name: "UpdateStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the new status for the organisation" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Status", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateOrganisationStatusRequest, O: UpdateOrganisationStatusResult },
|
|
{ name: "StartStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start streaming jobs for the organisation and set the status RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartStreamingJobsRequest, O: StartStreamingJobsResult },
|
|
{ name: "StopStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully streaming jobs for the organisation and set the status STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopStreamingJobsRequest, O: StopStreamingJobsResult },
|
|
{ name: "CheckStreamingStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Check status for all jobs for a organisation.\nIf organisation has status RUNNING and some jobs are not started the new organisation status is set to PARTIALLY_RUNNING.\nIf organisation has status STOPPED and some jobs are not stopped the new organisation status is set to PARTIALLY_STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CheckStreamingStatusRequest, O: CheckStreamingStatusResult },
|
|
{ name: "StopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully all jobs for all Organisations with RUNNING status in the platform. For each Organisation set the PAUSE status" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopAllStreamingJobsRequest, O: StopAllStreamingJobsResult },
|
|
{ name: "RestartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Restart all jobs not started for all organisations with RUNNING or PARTIALLY_RUNNING status in the platform. For each organisation set the Organisation status to RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: RestartAllStreamingJobsRequest, O: RestartAllStreamingJobsResult },
|
|
{ name: "StartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start all jobs for all organisations. For each organisation set the Organisation status to RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartAllStreamingJobsRequest, O: StartAllStreamingJobsResult },
|
|
{ name: "ForceStopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop all jobs for all organisations with STOPPED or PARTIALLY_STOPPED status in the platform. For each organisation set the status STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ForceStopAllStreamingJobsRequest, O: ForceStopAllStreamingJobsResult },
|
|
{ name: "StartStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start metrics job for the platform" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartStreamingMetricsJobRequest, O: StartStreamingMetricsJobResult },
|
|
{ name: "StopStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop metrics job for the platform" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopStreamingMetricsJobRequest, O: StopStreamingMetricsJobResult },
|
|
{ name: "StartIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start one streaming job for the organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartIndividualStreamingJobRequest, O: StartIndividualStreamingJobResult },
|
|
{ name: "StopIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop one streaming job for the organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopIndividualStreamingJobRequest, O: StopIndividualStreamingJobResult },
|
|
{ name: "ProvisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Provision a git organisation " }, "api.rscType": "Platform", "api.roles": "Platform.Gitea", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ProvisionGitOrgRequest, O: ProvisionGitOrgResult },
|
|
{ name: "DeprovisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Deprovision a git organisation " }, "api.rscType": "Platform", "api.roles": "Platform.Gitea", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeprovisionGitOrgRequest, O: DeprovisionGitOrgResult },
|
|
{ name: "DeleteOrganisationInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete the organisation in database" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteOrganisationInDBRequest, O: DeleteOrganisationInDBResult }
|
|
], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });
|