Files
npm-core-sdk/shared.ts
2026-02-23 16:03:18 +00:00

8929 lines
416 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "shared.proto" (package "api", syntax proto3)
// tslint:disable
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 { DimensionLess } from "./unitOfMeasures";
import { Area } from "./unitOfMeasures";
import { Weight } from "./unitOfMeasures";
import { Volume } from "./unitOfMeasures";
import { Length } from "./unitOfMeasures";
import { Currency } from "./currencyCodes";
/**
* Deprecated Header for all requests on project resource
*
* @generated from protobuf message api.RequestHeader
*/
export interface RequestHeader {
/**
* Identifier of the project
*
* @generated from protobuf field: string Project = 1
*/
Project: string;
}
/**
* @generated from protobuf message api.TimeRange
*/
export interface TimeRange {
/**
* Start time, format hh:mm
*
* @generated from protobuf field: string StartTime = 1
*/
StartTime: string;
/**
* End time, format hh:mm
*
* @generated from protobuf field: string EndTime = 2
*/
EndTime: string;
}
/**
* Header for all requests on project resources
*
* @generated from protobuf message api.RequestProjectHeader
*/
export interface RequestProjectHeader {
/**
* Identifier of the project
*
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* DateTime ActualDate = 2 ;
*
* @generated from protobuf field: string CorrelationID = 3
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 4
*/
TechnicalID: string;
}
/**
* Header for all requests on organisation resources
*
* @generated from protobuf message api.RequestOrganisationHeader
*/
export interface RequestOrganisationHeader {
/**
* Identifier of the organisation
*
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all requests on bucket resources
*
* @generated from protobuf message api.RequestBucketHeader
*/
export interface RequestBucketHeader {
/**
* Identifier of the bucket
*
* @generated from protobuf field: string BucketID = 1
*/
BucketID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all requests on partnerApp resources
*
* @generated from protobuf message api.RequestPartnerAppHeader
*/
export interface RequestPartnerAppHeader {
/**
* Identifier of the partnerApp
*
* @generated from protobuf field: string PartnerAppID = 1
*/
PartnerAppID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all requests on connection resources
*
* @generated from protobuf message api.RequestConnectionHeader
*/
export interface RequestConnectionHeader {
/**
* Identifier of the connection
*
* @generated from protobuf field: string ConnectionID = 1
*/
ConnectionID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all requests on attachment type resources
*
* @generated from protobuf message api.RequestAttachmentTypeHeader
*/
export interface RequestAttachmentTypeHeader {
/**
* Identifier of the attachment type
*
* @generated from protobuf field: string AttachmentTypeID = 1
*/
AttachmentTypeID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all project response messages
*
* @generated from protobuf message api.ResponseHeader
*/
export interface ResponseHeader {
/**
* Identifier of the project
*
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all response messages
*
* @generated from protobuf message api.AttachmentTypeResponseHeader
*/
export interface AttachmentTypeResponseHeader {
/**
* Identifier of the AttachmentType
*
* @generated from protobuf field: string AttachmentTypeID = 1
*/
AttachmentTypeID: string;
/**
* @generated from protobuf field: string CorrelationID = 2
*/
CorrelationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3
*/
TechnicalID: string;
}
/**
* Header for all query messages
*
* @generated from protobuf message api.QueryHeader
*/
export interface QueryHeader {
/**
* @generated from protobuf field: string Project = 1
*/
Project: string;
// string Author = 2;
/**
* @generated from protobuf field: string PagingState = 3
*/
PagingState: string;
/**
* @generated from protobuf field: string Limit = 4
*/
Limit: string;
/**
* @generated from protobuf field: bool LocalizedLabel = 5
*/
LocalizedLabel: boolean;
}
/**
* Header for all query messages
*
* @generated from protobuf message api.QueryBasicHeader
*/
export interface QueryBasicHeader {
/**
* @generated from protobuf field: string PagingState = 1
*/
PagingState: string;
/**
* @generated from protobuf field: string Limit = 2
*/
Limit: string;
/**
* @generated from protobuf field: bool LocalizedLabel = 3
*/
LocalizedLabel: boolean;
}
/**
* Header for all query project messages
*
* @generated from protobuf message api.QueryProjectHeader
*/
export interface QueryProjectHeader {
/**
* Identifier of the project
*
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* Number of elements displayed
*
* @generated from protobuf field: string PagingState = 3
*/
PagingState: string;
/**
* Number of additional elements to display
*
* @generated from protobuf field: string Limit = 4
*/
Limit: string;
/**
* Return the message in the user's language
*
* @generated from protobuf field: bool LocalizedLabel = 5
*/
LocalizedLabel: boolean;
}
/**
* @generated from protobuf message api.ResultHeader
*/
export interface ResultHeader {
/**
* Number of elements displayed
*
* @generated from protobuf field: string PagingState = 1
*/
PagingState: string;
}
/**
* Header for all command messages
*
* @generated from protobuf message api.CommandHeader
*/
export interface CommandHeader {
/**
* @generated from protobuf field: string ActionCommand = 1
*/
ActionCommand: string;
/**
* @generated from protobuf field: api.DateTime CommandTS = 2
*/
CommandTS?: DateTime;
// DateTime ActualDate = 7;
/**
* @generated from protobuf field: string Project = 3
*/
Project: string;
/**
* @generated from protobuf field: string FromDomain = 4
*/
FromDomain: string;
/**
* @generated from protobuf field: string FromObject = 5
*/
FromObject: string;
/**
* @generated from protobuf field: string FromRule = 6
*/
FromRule: string;
/**
* @generated from protobuf field: string FromEvent = 7
*/
FromEvent: string;
/**
* @generated from protobuf field: string FromAuthor = 8
*/
FromAuthor: string;
}
/**
* Header for all event messages
*
* @generated from protobuf message api.EventHeader
*/
export interface EventHeader {
/**
* @generated from protobuf field: string InputEvent = 1
*/
InputEvent: string;
/**
* @generated from protobuf field: api.DateTime EventTS = 2
*/
EventTS?: DateTime;
// DateTime ActualDate = 6; // TODO : add validation rule to make it required : [(validate.rules).message.required = true]
/**
* Contains the ID of the parent project if entity belongs to project rscType
*
* @generated from protobuf field: string Project = 3
*/
Project: string;
/**
* Contains the ID of the parent site if entity belongs to site rscType
*
* @deprecated
* @generated from protobuf field: string Site = 8 [deprecated = true]
*/
Site: string;
/**
* @generated from protobuf field: string Author = 4
*/
Author: string;
/**
* @generated from protobuf field: string EventID = 5
*/
EventID: string;
/**
* @generated from protobuf field: string CreatedBy = 6
*/
CreatedBy: string;
/**
* @generated from protobuf field: uint32 Version = 7
*/
Version: number;
/**
* @generated from protobuf field: bool OversizedPayload = 9
*/
OversizedPayload: boolean;
}
/**
* Generic Object structures
*
* @generated from protobuf message api.EntityID
*/
export interface EntityID {
// string UuID = 1
// [
// (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true, description: "Internal identifier"}, (validate.rules).string.unauthorized = true
// ];
/**
* Your identifier
*
* @generated from protobuf field: string RefID = 2
*/
RefID: string;
/**
* Your effective date. If your event triggers a status change, this date will be used into the status ActualDate
*
* @generated from protobuf field: api.DateTime RefDate = 3
*/
RefDate?: DateTime;
/**
* A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content.
*
* @generated from protobuf field: repeated api.CustomField CustomFields = 4
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.QueryEntityID
*/
export interface QueryEntityID {
/**
* Your identifier
*
* @generated from protobuf field: string RefID = 1
*/
RefID: string;
}
/**
* @generated from protobuf message api.CustomField
*/
export interface CustomField {
/**
* Key of the custom field
*
* @generated from protobuf field: string Key = 1
*/
Key: string;
/**
* Value of the custom field
*
* @generated from protobuf field: string Value = 2
*/
Value: string;
}
/**
* Specific Stock ID struct
*
* @generated from protobuf message api.StockID
*/
export interface StockID {
/**
* Your effective date
*
* @generated from protobuf field: api.DateTime RefDate = 3
*/
RefDate?: DateTime;
/**
* A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content.
*
* @generated from protobuf field: repeated api.CustomField CustomFields = 4
*/
CustomFields: CustomField[];
}
/**
* Specific ID struct when No refid
*
* @generated from protobuf message api.NoID
*/
export interface NoID {
/**
* Your effective date
*
* @generated from protobuf field: api.DateTime RefDate = 3
*/
RefDate?: DateTime;
}
/**
* @generated from protobuf message api.GenericObject
*/
export interface GenericObject {
/**
* @generated from protobuf field: api.EventHeader LastEventHeader = 1
*/
LastEventHeader?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.GenericObjectPayload Payload = 3
*/
Payload?: GenericObjectPayload;
}
/**
* @generated from protobuf message api.GenericObjectPayload
*/
export interface GenericObjectPayload {
}
/**
* Common structures
*
* @generated from protobuf message api.DateTime
*/
export interface DateTime {
/**
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
*
* @generated from protobuf field: string DateTime = 1
*/
DateTime: string;
/**
* Time zone from where the author emits the event in this <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>
*
* @generated from protobuf field: string AuthorTimeZone = 2
*/
AuthorTimeZone: string;
}
/**
* @generated from protobuf message api.ValueType
*/
export interface ValueType {
/**
* @generated from protobuf oneof: ValueType
*/
ValueType: {
oneofKind: "String";
/**
* @generated from protobuf field: string String = 1
*/
String: string;
} | {
oneofKind: "Int";
/**
* @generated from protobuf field: int64 Int = 2
*/
Int: bigint;
} | {
oneofKind: "Float";
/**
* @generated from protobuf field: float Float = 3
*/
Float: number;
} | {
oneofKind: "Bool";
/**
* @generated from protobuf field: bool Bool = 4
*/
Bool: boolean;
} | {
oneofKind: "Timestamp";
/**
* @generated from protobuf field: api.DateTime Timestamp = 5
*/
Timestamp: DateTime;
} | {
oneofKind: undefined;
};
}
/**
* @generated from protobuf message api.Amount
*/
export interface Amount {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* <a href='https://en.wikipedia.org/wiki/ISO_4217'>ISO 4217</a> currency code
*
* @generated from protobuf field: api.Currency Currency = 2
*/
Currency: Currency;
}
/**
* @generated from protobuf message api.QuantityLength
*/
export interface QuantityLength {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* @generated from protobuf field: api.Length Unit = 2
*/
Unit: Length;
}
/**
* @generated from protobuf message api.QuantityVolume
*/
export interface QuantityVolume {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* @generated from protobuf field: api.Volume Unit = 2
*/
Unit: Volume;
}
/**
* @generated from protobuf message api.QuantityWeight
*/
export interface QuantityWeight {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* @generated from protobuf field: api.Weight Unit = 2
*/
Unit: Weight;
}
/**
* @generated from protobuf message api.QuantityArea
*/
export interface QuantityArea {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* @generated from protobuf field: api.Area Unit = 2
*/
Unit: Area;
}
/**
* @generated from protobuf message api.QuantityUnit
*/
export interface QuantityUnit {
/**
* @generated from protobuf field: float Value = 1
*/
Value: number;
/**
* @generated from protobuf field: api.DimensionLess Unit = 2
*/
Unit: DimensionLess;
}
/**
* @generated from protobuf message api.DomainDescriptionRequest
*/
export interface DomainDescriptionRequest {
}
/**
* @generated from protobuf message api.DomainDescriptionResponse
*/
export interface DomainDescriptionResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.DomainDescription Payload = 2
*/
Payload?: DomainDescription;
}
/**
* @generated from protobuf message api.DomainDescription
*/
export interface DomainDescription {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: repeated api.ObjectDescription ObjectDescription = 2
*/
ObjectDescription: ObjectDescription[];
}
/**
* @generated from protobuf message api.ObjectDescription
*/
export interface ObjectDescription {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: repeated api.ObjectAction ApiAction = 2
*/
ApiAction: ObjectAction[];
/**
* @generated from protobuf field: string PayloadJSON = 3
*/
PayloadJSON: string;
/**
* @generated from protobuf field: repeated api.ObjectAction ApiInput = 4
*/
ApiInput: ObjectAction[];
/**
* @generated from protobuf field: repeated api.ObjectAction ApiQuery = 5
*/
ApiQuery: ObjectAction[];
}
/**
* @generated from protobuf message api.ObjectAction
*/
export interface ObjectAction {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: string JsonTemplate = 2
*/
JsonTemplate: string;
}
/**
* *
* Message to store metadata definition
*
* @generated from protobuf message api.MetadataElement
*/
export interface MetadataElement {
/**
* Key of the Metadata and Segmentation of the project
*
* @generated from protobuf field: string Key = 1
*/
Key: string;
/**
* Value of the Metadata and Segmentation of the project
*
* @generated from protobuf field: api.ValueType Value = 2
*/
Value?: ValueType;
}
/**
*
* Simple filter structure for Find query
*
* @generated from protobuf message api.SimpleFilter
*/
export interface SimpleFilter {
/**
* Filter path
*
* @generated from protobuf field: string Attribute = 1
*/
Attribute: string;
/**
* Use this parameter if only one value
*
* @generated from protobuf field: string Value = 2
*/
Value: string;
/**
* Use this parameter if more than one value
*
* @generated from protobuf field: repeated string Values = 3
*/
Values: string[];
/**
* Allowed values : \"\", \"not\"
*
* @generated from protobuf field: string Operator = 4
*/
Operator: string;
/**
* Metadata's key
*
* @generated from protobuf field: string CombinedID = 5
*/
CombinedID: string;
}
/**
*
* Combined filter structure for Find query
*
* @generated from protobuf message api.CombinedFilter
*/
export interface CombinedFilter {
/**
* @generated from protobuf field: string Path = 1
*/
Path: string;
/**
* Simple filter structure for Find query
*
* @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 2
*/
simpleFilters: SimpleFilter[];
/**
* Range filter structure for Find query
*
* @generated from protobuf field: repeated api.RangeFilter rangeFilters = 3
*/
rangeFilters: RangeFilter[];
/**
* @generated from protobuf field: string CombinedID = 4
*/
CombinedID: string;
}
/**
*
* Range filter structure for Find query
*
* @generated from protobuf message api.RangeFilter
*/
export interface RangeFilter {
/**
* Filter path
*
* @generated from protobuf field: string Attribute = 1
*/
Attribute: string;
/**
* Maximum value
*
* @generated from protobuf field: string valueLt = 2
*/
valueLt: string;
/**
* Minimum value
*
* @generated from protobuf field: string valueGt = 3
*/
valueGt: string;
/**
* Metadata's key
*
* @generated from protobuf field: string CombinedID = 4
*/
CombinedID: string;
}
/**
*
* Block filter structure for Find query, each element (SimpleFilter, RangeFilter & BlockFilter) is an "AND" part of the query
*
* @generated from protobuf message api.BlockFilter
*/
export interface BlockFilter {
/**
* Simple filter structure for Find query
*
* @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 1
*/
simpleFilters: SimpleFilter[];
/**
* Range filter structure for Find query
*
* @generated from protobuf field: repeated api.RangeFilter rangeFilters = 2
*/
rangeFilters: RangeFilter[];
/**
* block filter structure for Find query
*
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3
*/
BlockFilters: BlockFilter[];
}
/**
*
* MatchField structure, for FindMatching query
*
* @generated from protobuf message api.MatchField
*/
export interface MatchField {
/**
* Filter path
*
* @generated from protobuf field: string Attribute = 1
*/
Attribute: string;
/**
* Filter path for metadata filter
*
* @generated from protobuf field: string AttributeCombined = 2
*/
AttributeCombined: string;
/**
* Metadata's key
*
* @generated from protobuf field: string CombinedID = 3
*/
CombinedID: string;
}
/**
*
* Standard structure, having an attribute,CombinedID and a list of values
*
* @generated from protobuf message api.MatchFieldResult
*/
export interface MatchFieldResult {
/**
* @generated from protobuf field: string Attribute = 1
*/
Attribute: string;
/**
* @generated from protobuf field: repeated string Values = 2
*/
Values: string[];
/**
* @generated from protobuf field: string CombinedID = 3
*/
CombinedID: string;
}
/**
*
* structure containing error key & value
*
* @generated from protobuf message api.ErrorDetail
*/
export interface ErrorDetail {
/**
* @generated from protobuf field: string Key = 1
*/
Key: string;
/**
* @generated from protobuf field: string Value = 2
*/
Value: string;
}
/**
*
* Error message to be found in all rpc responses
*
* @generated from protobuf message api.Errors
*/
export interface Errors {
/**
* @generated from protobuf field: string ErrorCode = 1
*/
ErrorCode: string; // n1error code (xxyyzzzz)
/**
* @generated from protobuf field: string ErrorTrace = 2
*/
ErrorTrace: string; // generated error code, for debugging purposes(in logs)
/**
* @generated from protobuf field: repeated api.ErrorDetail ErrorDetails = 3
*/
ErrorDetails: ErrorDetail[];
/**
* @generated from protobuf field: string ContextType = 4
*/
ContextType: string; // Entity
/**
* @generated from protobuf field: string ContextProcess = 5
*/
ContextProcess: string; // Method grpc
/**
* @generated from protobuf field: string ContextPayload = 6
*/
ContextPayload: string; // Payload request
}
//
// structure containing error key & value
/**
* @generated from protobuf message api.ParamElement
*/
export interface ParamElement {
/**
* @generated from protobuf field: string Key = 1
*/
Key: string;
// string Value = 2;
/**
* @generated from protobuf field: api.ValueType Value = 3
*/
Value?: ValueType;
}
/**
* @generated from protobuf message api.LabelStructure
*/
export interface LabelStructure {
/**
* Code of the message
*
* @generated from protobuf field: string Code = 1
*/
Code: string;
/**
* Label of the message
*
* @generated from protobuf field: string Label = 2
*/
Label: string;
/**
* Map of parameter to be put/replaced in the error label
* Parameters for label
*
* @generated from protobuf field: repeated api.ParamElement Params = 3
*/
Params: ParamElement[];
}
/**
* CoreEndpoint represents the REST webservices of HARDIS SC NETWORK
*
* @generated from protobuf message api.CoreEndpoint
*/
export interface CoreEndpoint {
/**
* RestEndpoint is the URL to access REST webservices of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access REST services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string RestEndpoint = 1
*/
RestEndpoint: string;
/**
* GrpcInputEndpoint is the URL to access GRPC Input services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcInputEndpoint = 2
*/
GrpcInputEndpoint: string;
/**
* GrpcQueryEndpoint is the URL to access GRPC Query services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcQueryEndpoint = 3
*/
GrpcQueryEndpoint: string;
/**
* GrpcGcsEndpoint is the URL to access GRPC Gcs services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcGcsEndpoint = 4
*/
GrpcGcsEndpoint: string;
/**
* GrpcLoggerEndpoint is the URL to access GRPC Logger services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcLoggerEndpoint = 5
*/
GrpcLoggerEndpoint: string;
/**
* GrpcProjectModelEndpoint is the URL to access GRPC ProjectModel services of Platform which notably manages the metadata.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcProjectModelEndpoint = 6
*/
GrpcProjectModelEndpoint: string;
/**
* GrpcCoreCollabInputEndpoint is the URL to access GRPC Input services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcCoreCollabInputEndpoint = 7
*/
GrpcCoreCollabInputEndpoint: string;
/**
* GrpcCoreCollabQueryEndpoint is the URL to access GRPC Query services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcCoreCollabQueryEndpoint = 8
*/
GrpcCoreCollabQueryEndpoint: string;
/**
* GrpcCoreClaimTypeEndpoint is the URL to access GRPC Query services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcCoreClaimTypeEndpoint = 9
*/
GrpcCoreClaimTypeEndpoint: string;
/**
* GrpcCoreEndpoint is the URL to access GRPC services of Platform.
* It is expected to include protocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcCoreEndpoint = 10
*/
GrpcCoreEndpoint: string;
}
/**
* IntegrationEndpoint represents the different endpoints of the integration Platform
* These services are notably used to manage integration processes / pipelines.
*
* @generated from protobuf message api.IntegrationEndpoint
*/
export interface IntegrationEndpoint {
/**
* RestEndpoint is the URL to access REST webservices of Integration.
* It is expected to include protocol.
* the protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access REST services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string RestEndpoint = 1
*/
RestEndpoint: string;
/**
* GrpcEndpoint is the URL to access GRPC services of Integration
* It is expected to include protocol and a port.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access gRPC services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string GrpcEndpoint = 2
*/
GrpcEndpoint: string;
}
/**
* StorageEndpoint represents the REST webservices of Google Cloud Storage
* These REST services are notably used to upload and retrieve files from the storage.
* In order to authenticate to it, a STS token is required and can be obtained from the CoreEndpoint /api.GcsApi/GetBucketSTS API.
*
* @generated from protobuf message api.StorageEndpoint
*/
export interface StorageEndpoint {
/**
* Endpoint is the URL to access the REST webservices.
* It is expected to include portocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access REST services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string Endpoint = 1
*/
Endpoint: string;
/**
* Bucket is the name of the bucket associated to this partner app.
* It should look like <organisationID>/<projectID>/<partnerAppID>.
*
* @generated from protobuf field: string Bucket = 2
*/
Bucket: string;
}
// NatsCredentials holds the configuration for interacting with Platform's NATS.
/**
* Platform provides a JetStream-enabled account for these credential set.
* The method to authenticate should comply with JWT decentralized auth.
*
* @generated from protobuf message api.NatsCredentials
*/
export interface NatsCredentials {
/**
* EndPoint is the URL to connect to NATS.
* This URL is expected to include protocol and port.
* Protocol is expected to be "nats://".
* Any port value SHOULD be acceptable.
* Missing protocol, address, or port SHOULD raise an error.
* Invalid protocol SHOULD raise an error.
* Errors raised in this protocol SHOULD NOT prevent use of any other protocols.
*
* @generated from protobuf field: string Endpoint = 1
*/
Endpoint: string;
/**
* RootSubject defines a namespace of which all subjects must be prefixed with
* it is expected to be a dot-separated serries of "tokens"
*
* @generated from protobuf field: string RootSubject = 2
*/
RootSubject: string;
/**
* Username is not used, but may help human readers to identify accounts.
*
* @generated from protobuf field: string Username = 3
*/
Username: string;
/**
* @generated from protobuf field: string UserJwt = 4
*/
UserJwt: string; // The JWT part for the authentication. e.g. https://pkg.go.dev/github.com/nats-io/nats.go#UserJWTAndSeed
/**
* @generated from protobuf field: string UserNkeySeed = 5
*/
UserNkeySeed: string; // The seed part for the authentication. e.g. https://pkg.go.dev/github.com/nats-io/nats.go#UserJWTAndSeed
}
/**
* OpenSearchCredentials holds the configuration for interacting with Platform integration's OpenSearch
*
* @generated from protobuf message api.OpenSearchCredentials
*/
export interface OpenSearchCredentials {
/**
* Endpoint is the URL to access the OpenSearch dashboard.
* It is expected to include portocol.
* The protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access REST services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string Endpoint = 1
*/
Endpoint: string;
/**
* Username is the provided username to use for authentication
*
* @generated from protobuf field: string Username = 2
*/
Username: string;
/**
* Password is the provided password to use for authentication
*
* @generated from protobuf field: string Password = 3
*/
Password: string;
/**
* Index is the name of the index the partner app is allowed to use
*
* @generated from protobuf field: string Index = 4
*/
Index: string;
}
/**
* OpenIDCredentials holds the configuration for interacting with Platform's OpenID Connect server
* This is used to authenticate to the CoreEndpoint and IntegrationEndpoint by providing a JWT token.
*
* @generated from protobuf message api.OpenIDCredentials
*/
export interface OpenIDCredentials {
/**
* WellKnownURI is the URL to access the OpenID Connect server's well-known configuration
* It is expected to include protocol.
* the protocol is expected to be "https://".
* Empty protocol MUST raise an error.
* Empty protocol or empty value MUST prevent attempts to access REST services.
* Empty value or protocol SHOULD NOT prevent normal use of other functions.
*
* @generated from protobuf field: string WellKnownURI = 1
*/
WellKnownURI: string;
/**
* ServiceAccountName is the name that identifies the service account.
* It is not used for authentication, but may help human readers to identify accounts.
*
* @generated from protobuf field: string ServiceAccountName = 2
*/
ServiceAccountName: string;
/**
* ServiceAccountPEM is the PEM-encoded private key of the service account that is used for authentication.
*
* @generated from protobuf field: string ServiceAccountPEM = 3
*/
ServiceAccountPEM: string;
}
/**
*
* Basic messages (int, bool, string ,etc ) encapsulation inside a message
* we can use these message to escape default values of basic messages, and have the possibility to put an empty
* ex: not sending a string in a payload is the same as sending an empty string -> solution: use StringObject
*
* @generated from protobuf message api.Int32Object
*/
export interface Int32Object {
/**
* @generated from protobuf field: int32 Int32 = 1
*/
Int32: number;
}
/**
* @generated from protobuf message api.BoolObject
*/
export interface BoolObject {
/**
* @generated from protobuf field: bool Bool = 1
*/
Bool: boolean;
}
/**
* @generated from protobuf message api.StringObject
*/
export interface StringObject {
/**
* @generated from protobuf field: string String = 1
*/
String: string;
}
/**
* @generated from protobuf message api.StringDateObject
*/
export interface StringDateObject {
/**
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
*
* @generated from protobuf field: string DateTime = 10
*/
DateTime: string;
}
/**
* @generated from protobuf message api.WorkflowExecutionResult
*/
export interface WorkflowExecutionResult {
/**
* @generated from protobuf field: string WorkflowId = 1
*/
WorkflowId: string;
/**
* @generated from protobuf field: string RunId = 2
*/
RunId: string;
/**
* @generated from protobuf field: string Domain = 3
*/
Domain: string;
}
/**
* @generated from protobuf message api.ModuleRegistration
*/
export interface ModuleRegistration {
/**
* @generated from protobuf field: api.WorkflowTypeEnum WorkflowTarget = 1
*/
WorkflowTarget: WorkflowTypeEnum;
/**
* @generated from protobuf field: string WorkflowPath = 2
*/
WorkflowPath: string;
/**
* @generated from protobuf field: api.ModuleWorkflowTypeEnum Type = 3
*/
Type: ModuleWorkflowTypeEnum;
/**
* @generated from protobuf field: int32 Timeout = 4
*/
Timeout: number;
}
/**
* @generated from protobuf message api.ModuleDeregistration
*/
export interface ModuleDeregistration {
/**
* @generated from protobuf field: api.WorkflowTypeEnum WorkflowTarget = 1
*/
WorkflowTarget: WorkflowTypeEnum;
/**
* @generated from protobuf field: string WorkflowPath = 2
*/
WorkflowPath: string;
/**
* @generated from protobuf field: api.ModuleWorkflowTypeEnum Type = 3
*/
Type: ModuleWorkflowTypeEnum;
}
/**
* Message defining the structure of a ClaimType.
*
* @generated from protobuf message api.ClaimType
*/
export interface ClaimType {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string; // Unique identifier for the claim type. (formatted as such: "CLAIMTYPE_<ProjectID>_<UUID>")
/**
* @deprecated
* @generated from protobuf field: string ProjectID = 2 [deprecated = true]
*/
ProjectID: string; // Identifier for the project associated with the claim.
/**
* @generated from protobuf field: string Reason = 3
*/
Reason: string; // Reason or description for the claim.
/**
* @generated from protobuf field: string ReasonCode = 4
*/
ReasonCode: string; // Code for the reason of the claim.
/**
* @generated from protobuf field: api.ClaimEntityType EntityType = 5
*/
EntityType: ClaimEntityType; // Type of entity associated with the claim.
/**
* @generated from protobuf field: api.ClaimCriticality DefaultCriticality = 6
*/
DefaultCriticality: ClaimCriticality; // Default criticality level for the claim which is set upon its creation.
/**
* @generated from protobuf field: repeated api.ClaimTransition Transitions = 7
*/
Transitions: ClaimTransition[]; // List of possible transitions between claim statuses.
/**
* @generated from protobuf field: repeated api.ClaimTypeClosure PossibleClosures = 8
*/
PossibleClosures: ClaimTypeClosure[]; // List of possible closures for the claim.
/**
* @generated from protobuf field: repeated string CriticalityAllowedRoles = 9
*/
CriticalityAllowedRoles: string[]; // Roles allowed to set criticality.
/**
* @generated from protobuf field: repeated string ReadAllowedRoles = 10
*/
ReadAllowedRoles: string[]; // Roles allowed to read/view the claim.
/**
* @generated from protobuf field: repeated string WriteAllowedRoles = 11
*/
WriteAllowedRoles: string[]; // Roles allowed to write/edit the claim.
/**
* @generated from protobuf field: repeated string AssignAllowedRoles = 12
*/
AssignAllowedRoles: string[]; // Roles allowed to assign the claim.
/**
* @generated from protobuf field: repeated api.ClaimStatus AllowedStatuses = 13
*/
AllowedStatuses: ClaimStatus[]; // List of allowed statuses for the claim.
/**
* @generated from protobuf field: api.ClaimStatus DefaultStatus = 14
*/
DefaultStatus: ClaimStatus; // Default status for the claim which is set upon its creation.
/**
* @generated from protobuf field: api.ClaimSector Sector = 15
*/
Sector: ClaimSector; // Sector of the claim.
/**
* @generated from protobuf field: repeated string DefaultAssignees = 16
*/
DefaultAssignees: string[]; // Default assignees of the claim.
/**
* @generated from protobuf field: string ResourceID = 17
*/
ResourceID: string; // Identifier for the project associated with the claim.
}
/**
* Message defining the structure of a ClaimTransition.
*
* @generated from protobuf message api.ClaimTransition
*/
export interface ClaimTransition {
/**
* @generated from protobuf field: api.ClaimStatus FromStatus = 1
*/
FromStatus: ClaimStatus; // Starting status of the transition.
/**
* @generated from protobuf field: api.ClaimStatus ToStatus = 2
*/
ToStatus: ClaimStatus; // Ending status of the transition.
/**
* @generated from protobuf field: repeated string AllowedRoles = 3
*/
AllowedRoles: string[]; // Roles allowed to perform this transition.
/**
* @generated from protobuf field: bool ShouldNotify = 4
*/
ShouldNotify: boolean; // Indicates whether notification should be sent to the claim's assignees after this transition.
}
/**
* Message defining the structure of a ClaimTypeClosure for ClaimTypes.
*
* @generated from protobuf message api.ClaimTypeClosure
*/
export interface ClaimTypeClosure {
/**
* @generated from protobuf field: string Responsible = 1
*/
Responsible: string; // Person or entity responsible for the closure.
/**
* @generated from protobuf field: repeated string Causes = 2
*/
Causes: string[]; // List of possible causes associated with the closure for a given responsible. Array is multi-valued for claim types but single-valued for claim instances (only one cause per claim closure).
}
/**
* Message defining the structure of a ClaimClosure for Claim instances.
*
* @generated from protobuf message api.ClaimClosure
*/
export interface ClaimClosure {
/**
* @generated from protobuf field: string Responsible = 1
*/
Responsible: string; // Person or entity responsible for the closure.
/**
* @generated from protobuf field: string Cause = 2
*/
Cause: string; // Cause associated with the closure.
}
/**
* Message defining the claim attached to entity
*
* @generated from protobuf message api.ClaimSummary
*/
export interface ClaimSummary {
/**
* Identifier of the claim type
*
* @generated from protobuf field: string ClaimTypeID = 1
*/
ClaimTypeID: string;
/**
* Code of the claim type
*
* @generated from protobuf field: string ClaimTypeReason = 2
*/
ClaimTypeReason: string;
/**
* @generated from protobuf field: int32 Number = 3
*/
Number: number;
}
/**
* @generated from protobuf message api.AttachmentType
*/
export interface AttachmentType {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string;
/**
* string ProjectID = 2
* [
* (validate.rules).string.min_len = 1
* ];
*
* @generated from protobuf field: string Code = 3
*/
Code: string;
/**
* @generated from protobuf field: api.EntityType Entity = 4
*/
Entity: EntityType;
/**
* @generated from protobuf field: string Label = 5
*/
Label: string;
/**
* @generated from protobuf field: api.SharePolicy SharePolicy = 6
*/
SharePolicy: SharePolicy;
/**
* @generated from protobuf field: api.ResourceType ResourceType = 8
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ResourceID = 7
*/
ResourceID: string;
}
/**
* @generated from protobuf message api.AttachmentSummary
*/
export interface AttachmentSummary {
/**
* @generated from protobuf field: string AttachmentTypeID = 1
*/
AttachmentTypeID: string;
/**
* @generated from protobuf field: string AttachmentTypeCode = 2
*/
AttachmentTypeCode: string;
/**
* @generated from protobuf field: int32 Number = 3
*/
Number: number;
}
/**
* @generated from protobuf message api.TranslationMap
*/
export interface TranslationMap {
/**
* @generated from protobuf field: map<string, string> data = 1
*/
data: {
[key: string]: string;
};
}
/**
* @generated from protobuf message api.ExtractColumnFormat
*/
export interface ExtractColumnFormat {
/**
* @generated from protobuf field: api.ExtractColumnFormat.type Type = 1
*/
Type: ExtractColumnFormat_type;
/**
* @generated from protobuf field: string Format = 2
*/
Format: string;
/**
* @generated from protobuf field: api.DisplayDate DisplayDate = 3
*/
DisplayDate: DisplayDate;
}
/**
* @generated from protobuf enum api.ExtractColumnFormat.type
*/
export enum ExtractColumnFormat_type {
/**
* @generated from protobuf enum value: UNKNOWN = 0;
*/
UNKNOWN = 0,
/**
* @generated from protobuf enum value: DATE = 1;
*/
DATE = 1,
/**
* @generated from protobuf enum value: SUFFIX = 2;
*/
SUFFIX = 2,
/**
* @generated from protobuf enum value: NUMBER = 3;
*/
NUMBER = 3,
/**
* @generated from protobuf enum value: LOCAL_DATE = 4;
*/
LOCAL_DATE = 4
}
/**
* @generated from protobuf message api.ExtractQuery
*/
export interface ExtractQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1
*/
Header?: QueryProjectHeader;
/**
* @generated from protobuf field: string UserId = 2
*/
UserId: string;
/**
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3
*/
BlockFilters: BlockFilter[];
/**
* @generated from protobuf field: repeated string Fields = 4
*/
Fields: string[];
/**
* @generated from protobuf field: string ListSeparator = 5
*/
ListSeparator: string;
/**
* @generated from protobuf field: string DecimalSeparator = 6
*/
DecimalSeparator: string;
/**
* @generated from protobuf field: repeated string ColumnNames = 7
*/
ColumnNames: string[];
/**
* @generated from protobuf field: map<string, api.TranslationMap> ColumnTranslationMaps = 8
*/
ColumnTranslationMaps: {
[key: string]: TranslationMap;
};
/**
* @generated from protobuf field: map<int32, api.ExtractColumnFormat> ColumnFormats = 9
*/
ColumnFormats: {
[key: number]: ExtractColumnFormat;
};
/**
* @generated from protobuf field: string TargetTimeZone = 10
*/
TargetTimeZone: string;
/**
* @generated from protobuf field: string DateFormat = 11
*/
DateFormat: string;
/**
* @generated from protobuf field: string NumberFormat = 12
*/
NumberFormat: string;
/**
* @generated from protobuf field: api.TimeFormat TimeFormat = 13
*/
TimeFormat: TimeFormat;
}
/**
* @generated from protobuf message api.ExtractResult
*/
export interface ExtractResult {
/**
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
*/
WorkflowExecution?: WorkflowExecutionResult;
}
/**
* @generated from protobuf message api.CountLinesQuery
*/
export interface CountLinesQuery {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: int32 Partition = 2
*/
Partition: number;
}
/**
* @generated from protobuf message api.CountLinesResult
*/
export interface CountLinesResult {
/**
* @generated from protobuf field: int32 NbLines = 1
*/
NbLines: number;
}
/**
* @generated from protobuf message api.Scope
*/
export interface Scope {
/**
* @generated from protobuf field: string Service = 1
*/
Service: string; // Service name
/**
* @generated from protobuf field: string Method = 2
*/
Method: string; // Method name
/**
* @generated from protobuf field: api.ResourceType RscType = 3
*/
RscType: ResourceType; // Resource type of the method
/**
* @generated from protobuf field: bool PlatformReserved = 4
*/
PlatformReserved: boolean; // Reserved for platform usage
/**
* @generated from protobuf field: repeated api.Permission TransientPermissions = 5
*/
TransientPermissions: Permission[]; // Transient permissions (for UI scopes)
/**
* @generated from protobuf field: string RscID = 6
*/
RscID: string; // Resource ID of the method (if any).
/**
* @generated from protobuf field: repeated string AppliesOnIDs = 7
*/
AppliesOnIDs: string[]; // This field is used only for roles definition, not scope registration. List of resource IDs on which the role's scope applies. If none is specified, the scope applies on all resources of the given type. It implies that the resource ids are of the same type as the resource type of the scope (or they won't be taken into account).
/**
* @generated from protobuf field: string ModuleID = 8
*/
ModuleID: string; // Module ID which the scope belongs to
/**
* @generated from protobuf field: bool Mandatory = 9
*/
Mandatory: boolean; // If mandatory, the scope will always be added to roles of the same RscType. For instance, a UI role "Project-Viewer" will inherit mandatory "Project" UI scopes.
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 10
*/
Tags: RoleTag[]; // Tags to categorize the scope, used to compute role tags
}
/**
* @generated from protobuf message api.ClientAPI
*/
export interface ClientAPI {
/**
* @generated from protobuf field: string Client = 1
*/
Client: string;
/**
* @generated from protobuf field: repeated api.Scope APIs = 2
*/
APIs: Scope[];
/**
* @generated from protobuf field: string Roles = 3
*/
Roles: string;
}
/**
* @generated from protobuf message api.Permission
*/
export interface Permission {
/**
* @generated from protobuf field: string Client = 1
*/
Client: string;
/**
* @generated from protobuf field: repeated api.Scope Scopes = 2
*/
Scopes: Scope[];
}
/**
* @generated from protobuf message api.UserUIPermissions
*/
export interface UserUIPermissions {
/**
* @generated from protobuf field: api.ResourceType RscType = 1
*/
RscType: ResourceType;
/**
* @generated from protobuf field: string RscID = 2
*/
RscID: string;
/**
* @generated from protobuf field: repeated api.Scope Scopes = 3
*/
Scopes: Scope[];
}
/**
* @generated from protobuf message api.Resource
*/
export interface Resource {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string;
/**
* @generated from protobuf field: api.ResourceType Type = 2
*/
Type: ResourceType;
/**
* @generated from protobuf field: string ParentID = 3
*/
ParentID: string;
}
/**
* @generated from protobuf message api.ElementByMatchQuery
*/
export interface ElementByMatchQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1
*/
Header?: QueryProjectHeader;
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
*
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
*/
BlockFilters: BlockFilter[];
/**
* MatchElementField structure, containing wanted match string, and the fields to get.
*
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
*/
MatchElementField?: MatchElementField;
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 5
*/
UsageContextPath: string;
}
/**
* @generated from protobuf message api.ElementByMatchResult
*/
export interface ElementByMatchResult {
/**
* @generated from protobuf field: repeated api.MatchFieldElementResult MatchResults = 1
*/
MatchResults: MatchFieldElementResult[];
}
/**
* @generated from protobuf message api.MatchElementField
*/
export interface MatchElementField {
/**
* @generated from protobuf field: string Match = 1
*/
Match: string;
/**
* MatchField list structure, for FindMatching query
*
* @generated from protobuf field: repeated api.MatchField MatchFields = 2
*/
MatchFields: MatchField[];
}
/**
*
* Standard structure, having an map of elements (key,value), In case of Metadata/SegmentationKey, we replace the attribute(Path) by the DisplayPath (to keep track of the Metadata/SegmentationKey Name)
*
* @generated from protobuf message api.MatchFieldElementResult
*/
export interface MatchFieldElementResult {
/**
* @generated from protobuf field: map<string, string> MatchingElements = 3
*/
MatchingElements: {
[key: string]: string;
};
}
/**
* @generated from protobuf message api.LabelByLanguage
*/
export interface LabelByLanguage {
/**
* @generated from protobuf field: string Value = 1
*/
Value: string;
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 2
*/
LanguageCodeISO6391: string;
}
/**
*
* Standard structure, for request to upload file
*
* @generated from protobuf message api.FileDataRequest
*/
export interface FileDataRequest {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: bytes Content = 2
*/
Content: Uint8Array;
}
/**
* @generated from protobuf message api.FileDataResponse
*/
export interface FileDataResponse {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: string ContentType = 2
*/
ContentType: string;
/**
* @generated from protobuf field: bytes Content = 3
*/
Content: Uint8Array;
}
/**
* @generated from protobuf message api.Period
*/
export interface Period {
/**
* @generated from protobuf field: int64 Value = 1
*/
Value: bigint;
/**
* @generated from protobuf field: api.PeriodUnit Unit = 2
*/
Unit: PeriodUnit;
}
/**
* @generated from protobuf message api.EntityDefinition
*/
export interface EntityDefinition {
/**
* @generated from protobuf field: api.EntityType Name = 1
*/
Name: EntityType;
/**
* @generated from protobuf field: api.Domain Domain = 2
*/
Domain: Domain;
/**
* @generated from protobuf field: repeated api.ProjectType ProjectTypes = 3
*/
ProjectTypes: ProjectType[];
/**
* @generated from protobuf field: bool HasMetadata = 4
*/
HasMetadata: boolean;
/**
* @generated from protobuf field: bool HasDataRestriction = 5
*/
HasDataRestriction: boolean;
/**
* @generated from protobuf field: bool IsIndexed = 6
*/
IsIndexed: boolean;
/**
* @generated from protobuf field: repeated string KpiGroups = 7
*/
KpiGroups: string[];
/**
* @generated from protobuf field: uint32 ModelVersion = 8
*/
ModelVersion: number;
}
/**
* @generated from protobuf message api.CrossFineQuery
*/
export interface CrossFineQuery {
/**
* @generated from protobuf field: api.QueryBasicHeader Header = 1
*/
Header?: QueryBasicHeader;
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
*
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
*/
BlockFilters: BlockFilter[];
/**
* Number of maximum result
*
* @generated from protobuf field: string LimitFilter = 3
*/
LimitFilter: string;
/**
* @generated from protobuf field: string QueryContext = 4
*/
QueryContext: string;
/**
* @generated from protobuf field: repeated string SearchTagProjects = 5
*/
SearchTagProjects: string[];
/**
* @generated from protobuf field: repeated string SearchTagUsers = 6
*/
SearchTagUsers: string[];
}
/**
* @generated from protobuf message api.CrossFindByMatchQuery
*/
export interface CrossFindByMatchQuery {
/**
* @generated from protobuf field: api.QueryBasicHeader Header = 1
*/
Header?: QueryBasicHeader;
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
*
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
*/
BlockFilters: BlockFilter[];
/**
* MatchField list structure, for FindMatching query
*
* @generated from protobuf field: repeated api.MatchField MatchFields = 3
*/
MatchFields: MatchField[];
/**
* @generated from protobuf field: repeated string SearchTagProjects = 4
*/
SearchTagProjects: string[];
/**
* @generated from protobuf field: repeated string SearchTagUsers = 5
*/
SearchTagUsers: string[];
}
/**
* @generated from protobuf message api.CrossFindElementByMatchQuery
*/
export interface CrossFindElementByMatchQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1
*/
Header?: QueryProjectHeader;
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
*
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
*/
BlockFilters: BlockFilter[];
/**
* MatchElementField structure, containing wanted match string, and the fields to get.
*
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
*/
MatchElementField?: MatchElementField;
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 5
*/
UsageContextPath: string;
/**
* @generated from protobuf field: repeated string SearchTagProjects = 6
*/
SearchTagProjects: string[];
/**
* @generated from protobuf field: repeated string SearchTagUsers = 7
*/
SearchTagUsers: string[];
}
/**
* @generated from protobuf message api.CrossFindByMatchResult
*/
export interface CrossFindByMatchResult {
/**
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 1
*/
MatchResults: MatchFieldResult[];
}
/**
* List all data set in the model
*
* @generated from protobuf enum api.ModelDataSetEnum
*/
export enum ModelDataSetEnum {
/**
* @generated from protobuf enum value: ACTOR = 0;
*/
ACTOR = 0,
/**
* @generated from protobuf enum value: EXECUTIONFLOW = 1;
*/
EXECUTIONFLOW = 1,
/**
* @generated from protobuf enum value: HANDLINGUNIT = 2;
*/
HANDLINGUNIT = 2,
/**
* @generated from protobuf enum value: ITEM = 3;
*/
ITEM = 3,
/**
* @generated from protobuf enum value: METADATA = 4;
*/
METADATA = 4,
/**
* @generated from protobuf enum value: MOVEMENT = 5;
*/
MOVEMENT = 5,
/**
* @generated from protobuf enum value: ORDER = 6;
*/
ORDER = 6,
/**
* @generated from protobuf enum value: PARTNER = 7;
*/
PARTNER = 7,
/**
* @generated from protobuf enum value: STOCK = 8;
*/
STOCK = 8,
/**
* @generated from protobuf enum value: TRACKING = 9;
*/
TRACKING = 9,
/**
* @generated from protobuf enum value: CLAIM = 10;
*/
CLAIM = 10,
/**
* @generated from protobuf enum value: APPOINTMENT = 11;
*/
APPOINTMENT = 11
}
/**
* @generated from protobuf enum api.WeekDay
*/
export enum WeekDay {
/**
* @generated from protobuf enum value: WEEKDAY_UNDEFINED = 0;
*/
WEEKDAY_UNDEFINED = 0,
/**
* @generated from protobuf enum value: WEEKDAY_MONDAY = 1;
*/
WEEKDAY_MONDAY = 1,
/**
* @generated from protobuf enum value: WEEKDAY_TUESDAY = 2;
*/
WEEKDAY_TUESDAY = 2,
/**
* @generated from protobuf enum value: WEEKDAY_WEDNESDAY = 3;
*/
WEEKDAY_WEDNESDAY = 3,
/**
* @generated from protobuf enum value: WEEKDAY_THURSDAY = 4;
*/
WEEKDAY_THURSDAY = 4,
/**
* @generated from protobuf enum value: WEEKDAY_FRIDAY = 5;
*/
WEEKDAY_FRIDAY = 5,
/**
* @generated from protobuf enum value: WEEKDAY_SATURDAY = 6;
*/
WEEKDAY_SATURDAY = 6,
/**
* @generated from protobuf enum value: WEEKDAY_SUNDAY = 7;
*/
WEEKDAY_SUNDAY = 7
}
/**
* @generated from protobuf enum api.SeverityLevel
*/
export enum SeverityLevel {
/**
* @generated from protobuf enum value: SEVERITYLEVEL_UNKNOWN = 0;
*/
SEVERITYLEVEL_UNKNOWN = 0,
/**
* Send info logs to client
*
* @generated from protobuf enum value: INFO = 1;
*/
INFO = 1,
/**
* Send warning logs to client
*
* @generated from protobuf enum value: WARNING = 2;
*/
WARNING = 2,
/**
* Send error logs to client
*
* @generated from protobuf enum value: ERROR = 3;
*/
ERROR = 3,
/**
* Send security logs to client
*
* @generated from protobuf enum value: SECURITY = 4;
*/
SECURITY = 4
}
/**
* @generated from protobuf enum api.ResponseStatus
*/
export enum ResponseStatus {
/**
* @generated from protobuf enum value: RESPONSESTATUS_UNKNOWN = 0;
*/
RESPONSESTATUS_UNKNOWN = 0,
/**
* @generated from protobuf enum value: OK = 1;
*/
OK = 1,
/**
* @generated from protobuf enum value: INTERNAL_ERROR = 2;
*/
INTERNAL_ERROR = 2,
/**
* @generated from protobuf enum value: PAYLOAD_INCORRECT = 3;
*/
PAYLOAD_INCORRECT = 3,
/**
* @generated from protobuf enum value: OBJECT_ID_NOT_FOUND = 4;
*/
OBJECT_ID_NOT_FOUND = 4,
/**
* @generated from protobuf enum value: PROJECT_NOT_FOUND = 5;
*/
PROJECT_NOT_FOUND = 5,
/**
* @generated from protobuf enum value: UNAUTHORIZED = 6;
*/
UNAUTHORIZED = 6,
/**
* @generated from protobuf enum value: TIMEOUT = 7;
*/
TIMEOUT = 7
}
/**
* @generated from protobuf enum api.WorkflowTypeEnum
*/
export enum WorkflowTypeEnum {
/**
* @generated from protobuf enum value: CREATE_PROJECT = 0;
*/
CREATE_PROJECT = 0,
/**
* @generated from protobuf enum value: DELETE_PROJECT = 1;
*/
DELETE_PROJECT = 1,
/**
* @generated from protobuf enum value: DELETE_CORE = 2;
*/
DELETE_CORE = 2,
/**
* @generated from protobuf enum value: DELETE_PARTNER_APP = 3;
*/
DELETE_PARTNER_APP = 3,
/**
* @generated from protobuf enum value: DELETE_CONNECTION = 4;
*/
DELETE_CONNECTION = 4,
/**
* @generated from protobuf enum value: BILLING = 5;
*/
BILLING = 5,
/**
* @generated from protobuf enum value: EXTRACT_DATA = 6;
*/
EXTRACT_DATA = 6,
/**
* STOP_FLINK = 7; deprecated
* START_FLINK = 8; deprecated
* STOP_IDLE_FLINK = 9; deprecated
*
* @generated from protobuf enum value: OPTIMIZE_CLICKHOUSE = 10;
*/
OPTIMIZE_CLICKHOUSE = 10,
/**
* WAKEUP_FLINK = 11; deprecated
*
* @generated from protobuf enum value: CREATE_ORGANISATION = 12;
*/
CREATE_ORGANISATION = 12,
/**
* @generated from protobuf enum value: DELETE_ORGANISATION = 13;
*/
DELETE_ORGANISATION = 13,
/**
* PROVISION_PULSAR_DOMAIN = 14; deprecated
* DEPROVISION_PULSAR_DOMAIN = 15; deprecated
* PROVISION_PULSAR_ORGANISATION = 16; deprecated
* DEPROVISION_PULSAR_ORGANISATION = 17; deprecated
*
* @generated from protobuf enum value: RECOVER_DATA = 18;
*/
RECOVER_DATA = 18,
/**
* @generated from protobuf enum value: DAILY_PROJECTS_OPERATIONS = 19;
*/
DAILY_PROJECTS_OPERATIONS = 19,
/**
* @generated from protobuf enum value: HEALTH_CHECK_WORKFLOWS = 20;
*/
HEALTH_CHECK_WORKFLOWS = 20,
/**
* @generated from protobuf enum value: EXTRACT_KPI_DATA = 21;
*/
EXTRACT_KPI_DATA = 21,
/**
* @generated from protobuf enum value: UPDATE_MATERIALIZED_VIEW = 22;
*/
UPDATE_MATERIALIZED_VIEW = 22,
/**
* @generated from protobuf enum value: PRUNE_DATA = 23;
*/
PRUNE_DATA = 23,
/**
* @generated from protobuf enum value: CHECK_AND_LAUNCH_RECOVER_DATA = 24;
*/
CHECK_AND_LAUNCH_RECOVER_DATA = 24,
/**
* @generated from protobuf enum value: SYNCHRONIZE_RULES_ON_GIT = 25;
*/
SYNCHRONIZE_RULES_ON_GIT = 25,
/**
* @generated from protobuf enum value: ANONYMIZE_DATA = 26;
*/
ANONYMIZE_DATA = 26,
/**
* @generated from protobuf enum value: UPGRADE_MODEL = 27;
*/
UPGRADE_MODEL = 27,
/**
* @generated from protobuf enum value: SWEEP = 28;
*/
SWEEP = 28,
/**
* @generated from protobuf enum value: CREATE_CLICKHOUSE = 29;
*/
CREATE_CLICKHOUSE = 29,
/**
* @generated from protobuf enum value: DELETE_CLICKHOUSE = 30;
*/
DELETE_CLICKHOUSE = 30,
/**
* @generated from protobuf enum value: CLEAN_CASSANDRA = 31;
*/
CLEAN_CASSANDRA = 31,
/**
* @generated from protobuf enum value: SYNCHRONIZE_UMA_STORE = 32;
*/
SYNCHRONIZE_UMA_STORE = 32
}
/**
* @generated from protobuf enum api.ModuleWorkflowTypeEnum
*/
export enum ModuleWorkflowTypeEnum {
/**
* @generated from protobuf enum value: PRE_WORKFLOW = 0;
*/
PRE_WORKFLOW = 0,
/**
* @generated from protobuf enum value: POST_WORKFLOW = 1;
*/
POST_WORKFLOW = 1
}
/**
* @generated from protobuf enum api.WorkflowSemaphore
*/
export enum WorkflowSemaphore {
/**
* @generated from protobuf enum value: WS_DB_OPERATION = 0;
*/
WS_DB_OPERATION = 0,
/**
* @generated from protobuf enum value: WS_PROVISIONING = 1;
*/
WS_PROVISIONING = 1,
/**
* @generated from protobuf enum value: WS_RECOVER_DATA = 2;
*/
WS_RECOVER_DATA = 2,
/**
* @generated from protobuf enum value: WS_SYNCHRONIZE_RULES = 3;
*/
WS_SYNCHRONIZE_RULES = 3,
/**
* @generated from protobuf enum value: WS_CHECK_AND_LAUNCH_RECOVER_DATA = 4;
*/
WS_CHECK_AND_LAUNCH_RECOVER_DATA = 4,
/**
* @generated from protobuf enum value: WS_PROPAGATE_MODEL = 5;
*/
WS_PROPAGATE_MODEL = 5
}
/**
* @generated from protobuf enum api.SharePolicy
*/
export enum SharePolicy {
/**
* @generated from protobuf enum value: SHARE_POLICY_UNKNOWN = 0;
*/
SHARE_POLICY_UNKNOWN = 0,
/**
* @generated from protobuf enum value: SHARE_POLICY_PRIVATE = 10;
*/
SHARE_POLICY_PRIVATE = 10,
/**
* @generated from protobuf enum value: SHARE_POLICY_PUBLIC = 11;
*/
SHARE_POLICY_PUBLIC = 11,
/**
* @generated from protobuf enum value: SHARE_POLICY_1DAY = 20;
*/
SHARE_POLICY_1DAY = 20,
/**
* @generated from protobuf enum value: SHARE_POLICY_2DAYS = 21;
*/
SHARE_POLICY_2DAYS = 21,
/**
* @generated from protobuf enum value: SHARE_POLICY_4DAYS = 22;
*/
SHARE_POLICY_4DAYS = 22,
/**
* @generated from protobuf enum value: SHARE_POLICY_1WEEK = 23;
*/
SHARE_POLICY_1WEEK = 23,
/**
* @generated from protobuf enum value: SHARE_POLICY_2WEEKS = 24;
*/
SHARE_POLICY_2WEEKS = 24,
/**
* @generated from protobuf enum value: SHARE_POLICY_1MONTH = 25;
*/
SHARE_POLICY_1MONTH = 25,
/**
* @generated from protobuf enum value: SHARE_POLICY_3MONTHS = 26;
*/
SHARE_POLICY_3MONTHS = 26,
/**
* @generated from protobuf enum value: SHARE_POLICY_6MONTHS = 27;
*/
SHARE_POLICY_6MONTHS = 27,
/**
* @generated from protobuf enum value: SHARE_POLICY_1YEAR = 28;
*/
SHARE_POLICY_1YEAR = 28
}
/**
* @generated from protobuf enum api.EntityType
*/
export enum EntityType {
/**
* @generated from protobuf enum value: ENTITY_TYPE_UNKNOWN = 0;
*/
ENTITY_TYPE_UNKNOWN = 0,
/**
* Trade
*
* @generated from protobuf enum value: ENTITY_TYPE_ACTOR = 1;
*/
ENTITY_TYPE_ACTOR = 1,
/**
* @generated from protobuf enum value: ENTITY_TYPE_EXECUTIONFLOW = 2;
*/
ENTITY_TYPE_EXECUTIONFLOW = 2,
/**
* @generated from protobuf enum value: ENTITY_TYPE_FAMILY = 3;
*/
ENTITY_TYPE_FAMILY = 3,
/**
* @generated from protobuf enum value: ENTITY_TYPE_HANDLINGUNIT = 4;
*/
ENTITY_TYPE_HANDLINGUNIT = 4,
/**
* @generated from protobuf enum value: ENTITY_TYPE_ITEM = 5;
*/
ENTITY_TYPE_ITEM = 5,
/**
* @generated from protobuf enum value: ENTITY_TYPE_ORDER = 6;
*/
ENTITY_TYPE_ORDER = 6,
/**
* @generated from protobuf enum value: ENTITY_TYPE_PARTNER = 7;
*/
ENTITY_TYPE_PARTNER = 7,
/**
* @generated from protobuf enum value: ENTITY_TYPE_STOCK = 8;
*/
ENTITY_TYPE_STOCK = 8,
/**
* @generated from protobuf enum value: ENTITY_TYPE_TRACKING = 9;
*/
ENTITY_TYPE_TRACKING = 9,
/**
* @generated from protobuf enum value: ENTITY_TYPE_MOVEMENT = 11;
*/
ENTITY_TYPE_MOVEMENT = 11,
/**
* Collab
*
* @generated from protobuf enum value: ENTITY_TYPE_CLAIM = 10;
*/
ENTITY_TYPE_CLAIM = 10,
/**
* @generated from protobuf enum value: ENTITY_TYPE_APPOINTMENT = 12;
*/
ENTITY_TYPE_APPOINTMENT = 12,
/**
* @generated from protobuf enum value: ENTITY_TYPE_NOTIF = 14;
*/
ENTITY_TYPE_NOTIF = 14,
/**
* Core
*
* @generated from protobuf enum value: ENTITY_TYPE_PLATFORMLOG = 13;
*/
ENTITY_TYPE_PLATFORMLOG = 13
}
/**
* @generated from protobuf enum api.ClaimEntityType
*/
export enum ClaimEntityType {
/**
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_UNKNOWN = 0;
*/
CLAIM_ENTITY_TYPE_UNKNOWN = 0,
/**
* Trade
*
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_ACTOR = 1;
*/
CLAIM_ENTITY_TYPE_ACTOR = 1,
/**
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_EXECUTIONFLOW = 2;
*/
CLAIM_ENTITY_TYPE_EXECUTIONFLOW = 2,
/**
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_HANDLINGUNIT = 3;
*/
CLAIM_ENTITY_TYPE_HANDLINGUNIT = 3,
/**
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_ORDER = 4;
*/
CLAIM_ENTITY_TYPE_ORDER = 4,
/**
* CLAIM_ENTITY_TYPE_TRACKING = 5;
*
* @generated from protobuf enum value: CLAIM_ENTITY_TYPE_MOVEMENT = 6;
*/
CLAIM_ENTITY_TYPE_MOVEMENT = 6
}
/**
* @generated from protobuf enum api.ClaimSector
*/
export enum ClaimSector {
/**
* @generated from protobuf enum value: CLAIM_SECTOR_UNKNOWN = 0;
*/
CLAIM_SECTOR_UNKNOWN = 0,
/**
* @generated from protobuf enum value: CLAIM_SECTOR_TRANSPORT = 1;
*/
CLAIM_SECTOR_TRANSPORT = 1,
/**
* @generated from protobuf enum value: CLAIM_SECTOR_WAREHOUSING = 2;
*/
CLAIM_SECTOR_WAREHOUSING = 2,
/**
* @generated from protobuf enum value: CLAIM_SECTOR_DELIVERY = 3;
*/
CLAIM_SECTOR_DELIVERY = 3,
/**
* @generated from protobuf enum value: CLAIM_SECTOR_FINANCIAL = 4;
*/
CLAIM_SECTOR_FINANCIAL = 4,
/**
* @generated from protobuf enum value: CLAIM_SECTOR_MISCELLANEOUS = 5;
*/
CLAIM_SECTOR_MISCELLANEOUS = 5
}
/**
* Enum representing different statuses of a claim.
* Includes a "category" for each status which is used to determine the color of the status in the UI.
* For example : CLAIM_STATUS_START_NEW is in the "START" category and the status is "NEW".
* A status should be "CLAIM_STATUS_<category>_<status>" with category and status being alphanumeric.
*
* @generated from protobuf enum api.ClaimStatus
*/
export enum ClaimStatus {
/**
* @generated from protobuf enum value: CLAIM_STATUS_UNKNOWN = 0;
*/
CLAIM_STATUS_UNKNOWN = 0,
/**
* @generated from protobuf enum value: CLAIM_STATUS_START_NEW = 100;
*/
CLAIM_STATUS_START_NEW = 100,
/**
* @generated from protobuf enum value: CLAIM_STATUS_START_TODO = 101;
*/
CLAIM_STATUS_START_TODO = 101,
/**
* @generated from protobuf enum value: CLAIM_STATUS_INPROGRESS_TREATMENT = 200;
*/
CLAIM_STATUS_INPROGRESS_TREATMENT = 200,
/**
* @generated from protobuf enum value: CLAIM_STATUS_INPROGRESS_RESOLUTION = 201;
*/
CLAIM_STATUS_INPROGRESS_RESOLUTION = 201,
/**
* @generated from protobuf enum value: CLAIM_STATUS_STANDBY_WAITINGFORINFO = 300;
*/
CLAIM_STATUS_STANDBY_WAITINGFORINFO = 300,
/**
* @generated from protobuf enum value: CLAIM_STATUS_STANDBY_PAUSE = 301;
*/
CLAIM_STATUS_STANDBY_PAUSE = 301,
/**
* @generated from protobuf enum value: CLAIM_STATUS_END_CANCELLED = 400;
*/
CLAIM_STATUS_END_CANCELLED = 400,
/**
* @generated from protobuf enum value: CLAIM_STATUS_END_SOLVED = 401;
*/
CLAIM_STATUS_END_SOLVED = 401,
/**
* @generated from protobuf enum value: CLAIM_STATUS_END_CLOSED = 402;
*/
CLAIM_STATUS_END_CLOSED = 402,
/**
* @generated from protobuf enum value: CLAIM_STATUS_END_REJECTED = 403;
*/
CLAIM_STATUS_END_REJECTED = 403,
/**
* @generated from protobuf enum value: CLAIM_STATUS_ANOMALY = 9500;
*/
CLAIM_STATUS_ANOMALY = 9500
}
/**
* Enum representing the criticality levels of a claim.
* The higher the criticality, the more important the claim is.
*
* @generated from protobuf enum api.ClaimCriticality
*/
export enum ClaimCriticality {
/**
* @generated from protobuf enum value: CLAIM_CRITICALITY_UNKNOWN = 0;
*/
CLAIM_CRITICALITY_UNKNOWN = 0,
/**
* @generated from protobuf enum value: CLAIM_CRITICALITY_LOW = 10;
*/
CLAIM_CRITICALITY_LOW = 10,
/**
* @generated from protobuf enum value: CLAIM_CRITICALITY_MEDIUM = 20;
*/
CLAIM_CRITICALITY_MEDIUM = 20,
/**
* @generated from protobuf enum value: CLAIM_CRITICALITY_HIGH = 30;
*/
CLAIM_CRITICALITY_HIGH = 30,
/**
* @generated from protobuf enum value: CLAIM_CRITICALITY_BLOCKING = 40;
*/
CLAIM_CRITICALITY_BLOCKING = 40
}
/**
* @generated from protobuf enum api.TimeFormat
*/
export enum TimeFormat {
/**
* @generated from protobuf enum value: H12 = 0;
*/
H12 = 0,
/**
* @generated from protobuf enum value: H23 = 1;
*/
H23 = 1,
/**
* @generated from protobuf enum value: H24 = 2;
*/
H24 = 2
}
/**
* @generated from protobuf enum api.DisplayDate
*/
export enum DisplayDate {
/**
* @generated from protobuf enum value: DATE = 0;
*/
DATE = 0,
/**
* @generated from protobuf enum value: DATE_TIME = 1;
*/
DATE_TIME = 1,
/**
* @generated from protobuf enum value: TIME = 2;
*/
TIME = 2
}
/**
* @generated from protobuf enum api.EntityAdminPlatform
*/
export enum EntityAdminPlatform {
/**
* @generated from protobuf enum value: PROJECT_PLATFORM = 0;
*/
PROJECT_PLATFORM = 0,
/**
* @generated from protobuf enum value: METRICS = 1;
*/
METRICS = 1,
/**
* @generated from protobuf enum value: WAKEUP_ENTITY = 2;
*/
WAKEUP_ENTITY = 2,
/**
* @generated from protobuf enum value: NOTIFICATION = 3;
*/
NOTIFICATION = 3
}
/**
* @generated from protobuf enum api.RecoverType
*/
export enum RecoverType {
/**
* @generated from protobuf enum value: RECOVER_OPENSEARCH = 0;
*/
RECOVER_OPENSEARCH = 0,
/**
* @generated from protobuf enum value: RECOVER_CLICKHOUSE = 1;
*/
RECOVER_CLICKHOUSE = 1,
/**
* @generated from protobuf enum value: RECOVER_ALL = 2;
*/
RECOVER_ALL = 2
}
/**
* Enum representing the different types of resources which can be created in the platform.
*
* @generated from protobuf enum api.ResourceType
*/
export enum ResourceType {
/**
* @generated from protobuf enum value: RESOURCE_TYPE_UNKNOWN = 0;
*/
RESOURCE_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_PLATFORM = 10;
*/
RESOURCE_TYPE_PLATFORM = 10,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_ORGANISATION = 20;
*/
RESOURCE_TYPE_ORGANISATION = 20,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_PROJECT = 30;
*/
RESOURCE_TYPE_PROJECT = 30,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_PARTNERAPP = 40;
*/
RESOURCE_TYPE_PARTNERAPP = 40,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_CONNECTION = 50;
*/
RESOURCE_TYPE_CONNECTION = 50,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_ATTACHMENTTYPE = 60;
*/
RESOURCE_TYPE_ATTACHMENTTYPE = 60,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70;
*/
RESOURCE_TYPE_CLAIMTYPE = 70
}
/**
* @generated from protobuf enum api.RoleTag
*/
export enum RoleTag {
/**
* @generated from protobuf enum value: ROLE_TAG_UNKNOWN = 0;
*/
ROLE_TAG_UNKNOWN = 0,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_ACTIVITY = 10;
*/
ROLE_TAG_PROJECT_ACTIVITY = 10,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_SITE = 20;
*/
ROLE_TAG_PROJECT_SITE = 20
}
/**
* @generated from protobuf enum api.PeriodUnit
*/
export enum PeriodUnit {
/**
* @generated from protobuf enum value: PERIOD_UNIT_UNDEFINED = 0;
*/
PERIOD_UNIT_UNDEFINED = 0,
/**
* @generated from protobuf enum value: PERIOD_UNIT_WORK_HOUR = 1;
*/
PERIOD_UNIT_WORK_HOUR = 1,
/**
* @generated from protobuf enum value: PERIOD_UNIT_WORK_DAY = 2;
*/
PERIOD_UNIT_WORK_DAY = 2,
/**
* Google Duration class only expresses durations in seconds and nanoseconds
* To get it in calendar days, working days, it is more complex because all year days do not have the same length...
* Some go libraries will be required
*
* @generated from protobuf enum value: PERIOD_UNIT_CALENDAR_DAY = 3;
*/
PERIOD_UNIT_CALENDAR_DAY = 3
}
/**
* @generated from protobuf enum api.Domain
*/
export enum Domain {
/**
* @generated from protobuf enum value: DOMAIN_UNDEFINED = 0;
*/
DOMAIN_UNDEFINED = 0,
/**
* @generated from protobuf enum value: DOMAIN_TRADE = 1;
*/
DOMAIN_TRADE = 1,
/**
* @generated from protobuf enum value: DOMAIN_COLLAB = 2;
*/
DOMAIN_COLLAB = 2,
/**
* @generated from protobuf enum value: DOMAIN_CORE = 3;
*/
DOMAIN_CORE = 3
}
/**
* @generated from protobuf enum api.ProjectType
*/
export enum ProjectType {
/**
* @generated from protobuf enum value: PROJECT_TYPE_UNKNOWN = 0;
*/
PROJECT_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: PROJECT_TYPE_ACTIVITY = 1;
*/
PROJECT_TYPE_ACTIVITY = 1,
/**
* @generated from protobuf enum value: PROJECT_TYPE_SITE = 2;
*/
PROJECT_TYPE_SITE = 2
}
// @generated message type with reflection information, may provide speed optimized methods
class RequestHeader$Type extends MessageType<RequestHeader> {
constructor() {
super("api.RequestHeader", [
{ no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } }
]);
}
create(value?: PartialMessage<RequestHeader>): RequestHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.Project = "";
if (value !== undefined)
reflectionMergePartial<RequestHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestHeader): RequestHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Project */ 1:
message.Project = 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: RequestHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Project = 1; */
if (message.Project !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Project);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestHeader
*/
export const RequestHeader = new RequestHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class TimeRange$Type extends MessageType<TimeRange> {
constructor() {
super("api.TimeRange", [
{ no: 1, name: "StartTime", kind: "scalar", localName: "StartTime", jsonName: "StartTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } },
{ no: 2, name: "EndTime", kind: "scalar", localName: "EndTime", jsonName: "EndTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } }
]);
}
create(value?: PartialMessage<TimeRange>): TimeRange {
const message = globalThis.Object.create((this.messagePrototype!));
message.StartTime = "";
message.EndTime = "";
if (value !== undefined)
reflectionMergePartial<TimeRange>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeRange): TimeRange {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string StartTime */ 1:
message.StartTime = reader.string();
break;
case /* string EndTime */ 2:
message.EndTime = 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: TimeRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string StartTime = 1; */
if (message.StartTime !== "")
writer.tag(1, WireType.LengthDelimited).string(message.StartTime);
/* string EndTime = 2; */
if (message.EndTime !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EndTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.TimeRange
*/
export const TimeRange = new TimeRange$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestProjectHeader$Type extends MessageType<RequestProjectHeader> {
constructor() {
super("api.RequestProjectHeader", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" } } },
{ no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
}
create(value?: PartialMessage<RequestProjectHeader>): RequestProjectHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestProjectHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestProjectHeader): RequestProjectHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string CorrelationID */ 3:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 4:
message.TechnicalID = 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: RequestProjectHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string CorrelationID = 3; */
if (message.CorrelationID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 4; */
if (message.TechnicalID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestProjectHeader
*/
export const RequestProjectHeader = new RequestProjectHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestOrganisationHeader$Type extends MessageType<RequestOrganisationHeader> {
constructor() {
super("api.RequestOrganisationHeader", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } });
}
create(value?: PartialMessage<RequestOrganisationHeader>): RequestOrganisationHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestOrganisationHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestOrganisationHeader): RequestOrganisationHeader {
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 /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: RequestOrganisationHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestOrganisationHeader
*/
export const RequestOrganisationHeader = new RequestOrganisationHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestBucketHeader$Type extends MessageType<RequestBucketHeader> {
constructor() {
super("api.RequestBucketHeader", [
{ no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["BucketID"] } } });
}
create(value?: PartialMessage<RequestBucketHeader>): RequestBucketHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.BucketID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestBucketHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestBucketHeader): RequestBucketHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string BucketID */ 1:
message.BucketID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: RequestBucketHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string BucketID = 1; */
if (message.BucketID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.BucketID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestBucketHeader
*/
export const RequestBucketHeader = new RequestBucketHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestPartnerAppHeader$Type extends MessageType<RequestPartnerAppHeader> {
constructor() {
super("api.RequestPartnerAppHeader", [
{ no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } });
}
create(value?: PartialMessage<RequestPartnerAppHeader>): RequestPartnerAppHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.PartnerAppID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestPartnerAppHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestPartnerAppHeader): RequestPartnerAppHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string PartnerAppID */ 1:
message.PartnerAppID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: RequestPartnerAppHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string PartnerAppID = 1; */
if (message.PartnerAppID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.PartnerAppID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestPartnerAppHeader
*/
export const RequestPartnerAppHeader = new RequestPartnerAppHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestConnectionHeader$Type extends MessageType<RequestConnectionHeader> {
constructor() {
super("api.RequestConnectionHeader", [
{ no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } });
}
create(value?: PartialMessage<RequestConnectionHeader>): RequestConnectionHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectionID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestConnectionHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestConnectionHeader): RequestConnectionHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ConnectionID */ 1:
message.ConnectionID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: RequestConnectionHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ConnectionID = 1; */
if (message.ConnectionID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ConnectionID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestConnectionHeader
*/
export const RequestConnectionHeader = new RequestConnectionHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestAttachmentTypeHeader$Type extends MessageType<RequestAttachmentTypeHeader> {
constructor() {
super("api.RequestAttachmentTypeHeader", [
{ no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
]);
}
create(value?: PartialMessage<RequestAttachmentTypeHeader>): RequestAttachmentTypeHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.AttachmentTypeID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestAttachmentTypeHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestAttachmentTypeHeader): RequestAttachmentTypeHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string AttachmentTypeID */ 1:
message.AttachmentTypeID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: RequestAttachmentTypeHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AttachmentTypeID = 1; */
if (message.AttachmentTypeID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestAttachmentTypeHeader
*/
export const RequestAttachmentTypeHeader = new RequestAttachmentTypeHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResponseHeader$Type extends MessageType<ResponseHeader> {
constructor() {
super("api.ResponseHeader", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
]);
}
create(value?: PartialMessage<ResponseHeader>): ResponseHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<ResponseHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResponseHeader): ResponseHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: ResponseHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResponseHeader
*/
export const ResponseHeader = new ResponseHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AttachmentTypeResponseHeader$Type extends MessageType<AttachmentTypeResponseHeader> {
constructor() {
super("api.AttachmentTypeResponseHeader", [
{ no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the AttachmentType" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
]);
}
create(value?: PartialMessage<AttachmentTypeResponseHeader>): AttachmentTypeResponseHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.AttachmentTypeID = "";
message.CorrelationID = "";
message.TechnicalID = "";
if (value !== undefined)
reflectionMergePartial<AttachmentTypeResponseHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentTypeResponseHeader): AttachmentTypeResponseHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string AttachmentTypeID */ 1:
message.AttachmentTypeID = reader.string();
break;
case /* string CorrelationID */ 2:
message.CorrelationID = reader.string();
break;
case /* string TechnicalID */ 3:
message.TechnicalID = 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: AttachmentTypeResponseHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AttachmentTypeID = 1; */
if (message.AttachmentTypeID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID);
/* string CorrelationID = 2; */
if (message.CorrelationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
/* string TechnicalID = 3; */
if (message.TechnicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AttachmentTypeResponseHeader
*/
export const AttachmentTypeResponseHeader = new AttachmentTypeResponseHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QueryHeader$Type extends MessageType<QueryHeader> {
constructor() {
super("api.QueryHeader", [
{ no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } } } },
{ no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
}
create(value?: PartialMessage<QueryHeader>): QueryHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.Project = "";
message.PagingState = "";
message.Limit = "";
message.LocalizedLabel = false;
if (value !== undefined)
reflectionMergePartial<QueryHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryHeader): QueryHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Project */ 1:
message.Project = reader.string();
break;
case /* string PagingState */ 3:
message.PagingState = reader.string();
break;
case /* string Limit */ 4:
message.Limit = reader.string();
break;
case /* bool LocalizedLabel */ 5:
message.LocalizedLabel = 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: QueryHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Project = 1; */
if (message.Project !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Project);
/* string PagingState = 3; */
if (message.PagingState !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PagingState);
/* string Limit = 4; */
if (message.Limit !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Limit);
/* bool LocalizedLabel = 5; */
if (message.LocalizedLabel !== false)
writer.tag(5, WireType.Varint).bool(message.LocalizedLabel);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QueryHeader
*/
export const QueryHeader = new QueryHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QueryBasicHeader$Type extends MessageType<QueryBasicHeader> {
constructor() {
super("api.QueryBasicHeader", [
{ no: 1, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<QueryBasicHeader>): QueryBasicHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.PagingState = "";
message.Limit = "";
message.LocalizedLabel = false;
if (value !== undefined)
reflectionMergePartial<QueryBasicHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryBasicHeader): QueryBasicHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string PagingState */ 1:
message.PagingState = reader.string();
break;
case /* string Limit */ 2:
message.Limit = reader.string();
break;
case /* bool LocalizedLabel */ 3:
message.LocalizedLabel = 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: QueryBasicHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string PagingState = 1; */
if (message.PagingState !== "")
writer.tag(1, WireType.LengthDelimited).string(message.PagingState);
/* string Limit = 2; */
if (message.Limit !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Limit);
/* bool LocalizedLabel = 3; */
if (message.LocalizedLabel !== false)
writer.tag(3, WireType.Varint).bool(message.LocalizedLabel);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QueryBasicHeader
*/
export const QueryBasicHeader = new QueryBasicHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QueryProjectHeader$Type extends MessageType<QueryProjectHeader> {
constructor() {
super("api.QueryProjectHeader", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } },
{ no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } },
{ no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } },
{ no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
}
create(value?: PartialMessage<QueryProjectHeader>): QueryProjectHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.PagingState = "";
message.Limit = "";
message.LocalizedLabel = false;
if (value !== undefined)
reflectionMergePartial<QueryProjectHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryProjectHeader): QueryProjectHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string PagingState */ 3:
message.PagingState = reader.string();
break;
case /* string Limit */ 4:
message.Limit = reader.string();
break;
case /* bool LocalizedLabel */ 5:
message.LocalizedLabel = 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: QueryProjectHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string PagingState = 3; */
if (message.PagingState !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PagingState);
/* string Limit = 4; */
if (message.Limit !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Limit);
/* bool LocalizedLabel = 5; */
if (message.LocalizedLabel !== false)
writer.tag(5, WireType.Varint).bool(message.LocalizedLabel);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QueryProjectHeader
*/
export const QueryProjectHeader = new QueryProjectHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResultHeader$Type extends MessageType<ResultHeader> {
constructor() {
super("api.ResultHeader", [
{ no: 1, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of elements displayed", example: "\"50\"" } } }
]);
}
create(value?: PartialMessage<ResultHeader>): ResultHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.PagingState = "";
if (value !== undefined)
reflectionMergePartial<ResultHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResultHeader): ResultHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string PagingState */ 1:
message.PagingState = 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: ResultHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string PagingState = 1; */
if (message.PagingState !== "")
writer.tag(1, WireType.LengthDelimited).string(message.PagingState);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResultHeader
*/
export const ResultHeader = new ResultHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CommandHeader$Type extends MessageType<CommandHeader> {
constructor() {
super("api.CommandHeader", [
{ no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime },
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "FromEvent", kind: "scalar", localName: "FromEvent", jsonName: "FromEvent", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "FromAuthor", kind: "scalar", localName: "FromAuthor", jsonName: "FromAuthor", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CommandHeader>): CommandHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActionCommand = "";
message.Project = "";
message.FromDomain = "";
message.FromObject = "";
message.FromRule = "";
message.FromEvent = "";
message.FromAuthor = "";
if (value !== undefined)
reflectionMergePartial<CommandHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CommandHeader): CommandHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ActionCommand */ 1:
message.ActionCommand = reader.string();
break;
case /* api.DateTime CommandTS */ 2:
message.CommandTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CommandTS);
break;
case /* string Project */ 3:
message.Project = reader.string();
break;
case /* string FromDomain */ 4:
message.FromDomain = reader.string();
break;
case /* string FromObject */ 5:
message.FromObject = reader.string();
break;
case /* string FromRule */ 6:
message.FromRule = reader.string();
break;
case /* string FromEvent */ 7:
message.FromEvent = reader.string();
break;
case /* string FromAuthor */ 8:
message.FromAuthor = 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: CommandHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ActionCommand = 1; */
if (message.ActionCommand !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ActionCommand);
/* api.DateTime CommandTS = 2; */
if (message.CommandTS)
DateTime.internalBinaryWrite(message.CommandTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Project = 3; */
if (message.Project !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Project);
/* string FromDomain = 4; */
if (message.FromDomain !== "")
writer.tag(4, WireType.LengthDelimited).string(message.FromDomain);
/* string FromObject = 5; */
if (message.FromObject !== "")
writer.tag(5, WireType.LengthDelimited).string(message.FromObject);
/* string FromRule = 6; */
if (message.FromRule !== "")
writer.tag(6, WireType.LengthDelimited).string(message.FromRule);
/* string FromEvent = 7; */
if (message.FromEvent !== "")
writer.tag(7, WireType.LengthDelimited).string(message.FromEvent);
/* string FromAuthor = 8; */
if (message.FromAuthor !== "")
writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CommandHeader
*/
export const CommandHeader = new CommandHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class EventHeader$Type extends MessageType<EventHeader> {
constructor() {
super("api.EventHeader", [
{ no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
{ no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
{ no: 7, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ },
{ no: 9, name: "OversizedPayload", kind: "scalar", localName: "OversizedPayload", jsonName: "OversizedPayload", T: 8 /*ScalarType.BOOL*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Bool)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["InputEvent", "EventTS", "Project", "Author", "EventID"] } } });
}
create(value?: PartialMessage<EventHeader>): EventHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.InputEvent = "";
message.Project = "";
message.Site = "";
message.Author = "";
message.EventID = "";
message.CreatedBy = "";
message.Version = 0;
message.OversizedPayload = false;
if (value !== undefined)
reflectionMergePartial<EventHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventHeader): EventHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string InputEvent */ 1:
message.InputEvent = reader.string();
break;
case /* api.DateTime EventTS */ 2:
message.EventTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.EventTS);
break;
case /* string Project */ 3:
message.Project = reader.string();
break;
case /* string Site = 8 [deprecated = true] */ 8:
message.Site = reader.string();
break;
case /* string Author */ 4:
message.Author = reader.string();
break;
case /* string EventID */ 5:
message.EventID = reader.string();
break;
case /* string CreatedBy */ 6:
message.CreatedBy = reader.string();
break;
case /* uint32 Version */ 7:
message.Version = reader.uint32();
break;
case /* bool OversizedPayload */ 9:
message.OversizedPayload = 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: EventHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string InputEvent = 1; */
if (message.InputEvent !== "")
writer.tag(1, WireType.LengthDelimited).string(message.InputEvent);
/* api.DateTime EventTS = 2; */
if (message.EventTS)
DateTime.internalBinaryWrite(message.EventTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Project = 3; */
if (message.Project !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Project);
/* string Author = 4; */
if (message.Author !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Author);
/* string EventID = 5; */
if (message.EventID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.EventID);
/* string CreatedBy = 6; */
if (message.CreatedBy !== "")
writer.tag(6, WireType.LengthDelimited).string(message.CreatedBy);
/* uint32 Version = 7; */
if (message.Version !== 0)
writer.tag(7, WireType.Varint).uint32(message.Version);
/* string Site = 8 [deprecated = true]; */
if (message.Site !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Site);
/* bool OversizedPayload = 9; */
if (message.OversizedPayload !== false)
writer.tag(9, WireType.Varint).bool(message.OversizedPayload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.EventHeader
*/
export const EventHeader = new EventHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class EntityID$Type extends MessageType<EntityID> {
constructor() {
super("api.EntityID", [
{ no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } },
{ no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date. If your event triggers a status change, this date will be used into the status ActualDate" } } },
{ no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." }, "api.aggKey": "Key" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RefID"] } } });
}
create(value?: PartialMessage<EntityID>): EntityID {
const message = globalThis.Object.create((this.messagePrototype!));
message.RefID = "";
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<EntityID>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EntityID): EntityID {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RefID */ 2:
message.RefID = reader.string();
break;
case /* api.DateTime RefDate */ 3:
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
break;
case /* repeated api.CustomField CustomFields */ 4:
message.CustomFields.push(CustomField.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: EntityID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RefID = 2; */
if (message.RefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RefID);
/* api.DateTime RefDate = 3; */
if (message.RefDate)
DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CustomField CustomFields = 4; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, 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.EntityID
*/
export const EntityID = new EntityID$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QueryEntityID$Type extends MessageType<QueryEntityID> {
constructor() {
super("api.QueryEntityID", [
{ no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } }
]);
}
create(value?: PartialMessage<QueryEntityID>): QueryEntityID {
const message = globalThis.Object.create((this.messagePrototype!));
message.RefID = "";
if (value !== undefined)
reflectionMergePartial<QueryEntityID>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryEntityID): QueryEntityID {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RefID */ 1:
message.RefID = 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: QueryEntityID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RefID = 1; */
if (message.RefID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RefID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QueryEntityID
*/
export const QueryEntityID = new QueryEntityID$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CustomField$Type extends MessageType<CustomField> {
constructor() {
super("api.CustomField", [
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CustomField>): CustomField {
const message = globalThis.Object.create((this.messagePrototype!));
message.Key = "";
message.Value = "";
if (value !== undefined)
reflectionMergePartial<CustomField>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomField): CustomField {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Key */ 1:
message.Key = reader.string();
break;
case /* string Value */ 2:
message.Value = 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: CustomField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Key = 1; */
if (message.Key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Key);
/* string Value = 2; */
if (message.Value !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Value);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CustomField
*/
export const CustomField = new CustomField$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockID$Type extends MessageType<StockID> {
constructor() {
super("api.StockID", [
{ no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date" } } },
{ no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." }, "api.aggKey": "Key" } }
]);
}
create(value?: PartialMessage<StockID>): StockID {
const message = globalThis.Object.create((this.messagePrototype!));
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<StockID>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockID): StockID {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime RefDate */ 3:
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
break;
case /* repeated api.CustomField CustomFields */ 4:
message.CustomFields.push(CustomField.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: StockID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime RefDate = 3; */
if (message.RefDate)
DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CustomField CustomFields = 4; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, 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.StockID
*/
export const StockID = new StockID$Type();
// @generated message type with reflection information, may provide speed optimized methods
class NoID$Type extends MessageType<NoID> {
constructor() {
super("api.NoID", [
{ no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date" } } }
]);
}
create(value?: PartialMessage<NoID>): NoID {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<NoID>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NoID): NoID {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime RefDate */ 3:
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
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: NoID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime RefDate = 3; */
if (message.RefDate)
DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, 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.NoID
*/
export const NoID = new NoID$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GenericObject$Type extends MessageType<GenericObject> {
constructor() {
super("api.GenericObject", [
{ no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => GenericObjectPayload }
]);
}
create(value?: PartialMessage<GenericObject>): GenericObject {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GenericObject>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenericObject): GenericObject {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader LastEventHeader */ 1:
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.GenericObjectPayload Payload */ 3:
message.Payload = GenericObjectPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: GenericObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader LastEventHeader = 1; */
if (message.LastEventHeader)
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.GenericObjectPayload Payload = 3; */
if (message.Payload)
GenericObjectPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.GenericObject
*/
export const GenericObject = new GenericObject$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GenericObjectPayload$Type extends MessageType<GenericObjectPayload> {
constructor() {
super("api.GenericObjectPayload", []);
}
create(value?: PartialMessage<GenericObjectPayload>): GenericObjectPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GenericObjectPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenericObjectPayload): GenericObjectPayload {
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: GenericObjectPayload, 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.GenericObjectPayload
*/
export const GenericObjectPayload = new GenericObjectPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DateTime$Type extends MessageType<DateTime> {
constructor() {
super("api.DateTime", [
{ no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format", example: "\"2023-01-01T00:00:00Z\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } }
]);
}
create(value?: PartialMessage<DateTime>): DateTime {
const message = globalThis.Object.create((this.messagePrototype!));
message.DateTime = "";
message.AuthorTimeZone = "";
if (value !== undefined)
reflectionMergePartial<DateTime>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DateTime): DateTime {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string DateTime */ 1:
message.DateTime = reader.string();
break;
case /* string AuthorTimeZone */ 2:
message.AuthorTimeZone = 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: DateTime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string DateTime = 1; */
if (message.DateTime !== "")
writer.tag(1, WireType.LengthDelimited).string(message.DateTime);
/* string AuthorTimeZone = 2; */
if (message.AuthorTimeZone !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AuthorTimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DateTime
*/
export const DateTime = new DateTime$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ValueType$Type extends MessageType<ValueType> {
constructor() {
super("api.ValueType", [
{ no: 1, name: "String", kind: "scalar", localName: "String", jsonName: "String", oneof: "ValueType", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Hello World !\"" } } },
{ no: 2, name: "Int", kind: "scalar", localName: "Int", jsonName: "Int", oneof: "ValueType", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "42" } } },
{ no: 3, name: "Float", kind: "scalar", localName: "Float", jsonName: "Float", oneof: "ValueType", T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "3.1415" } } },
{ no: 4, name: "Bool", kind: "scalar", localName: "Bool", jsonName: "Bool", oneof: "ValueType", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"true / false\"" } } },
{ no: 5, name: "Timestamp", kind: "message", localName: "Timestamp", jsonName: "Timestamp", oneof: "ValueType", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }
]);
}
create(value?: PartialMessage<ValueType>): ValueType {
const message = globalThis.Object.create((this.messagePrototype!));
message.ValueType = { oneofKind: undefined };
if (value !== undefined)
reflectionMergePartial<ValueType>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValueType): ValueType {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string String */ 1:
message.ValueType = {
oneofKind: "String",
String: reader.string()
};
break;
case /* int64 Int */ 2:
message.ValueType = {
oneofKind: "Int",
Int: reader.int64().toBigInt()
};
break;
case /* float Float */ 3:
message.ValueType = {
oneofKind: "Float",
Float: reader.float()
};
break;
case /* bool Bool */ 4:
message.ValueType = {
oneofKind: "Bool",
Bool: reader.bool()
};
break;
case /* api.DateTime Timestamp */ 5:
message.ValueType = {
oneofKind: "Timestamp",
Timestamp: DateTime.internalBinaryRead(reader, reader.uint32(), options, (message.ValueType as any).Timestamp)
};
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: ValueType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string String = 1; */
if (message.ValueType.oneofKind === "String")
writer.tag(1, WireType.LengthDelimited).string(message.ValueType.String);
/* int64 Int = 2; */
if (message.ValueType.oneofKind === "Int")
writer.tag(2, WireType.Varint).int64(message.ValueType.Int);
/* float Float = 3; */
if (message.ValueType.oneofKind === "Float")
writer.tag(3, WireType.Bit32).float(message.ValueType.Float);
/* bool Bool = 4; */
if (message.ValueType.oneofKind === "Bool")
writer.tag(4, WireType.Varint).bool(message.ValueType.Bool);
/* api.DateTime Timestamp = 5; */
if (message.ValueType.oneofKind === "Timestamp")
DateTime.internalBinaryWrite(message.ValueType.Timestamp, writer.tag(5, 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.ValueType
*/
export const ValueType = new ValueType$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Amount$Type extends MessageType<Amount> {
constructor() {
super("api.Amount", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
{ no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/ISO_4217'>ISO 4217</a> currency code", example: "[\"EUR\", \"USD\"]" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }
]);
}
create(value?: PartialMessage<Amount>): Amount {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Currency = 0;
if (value !== undefined)
reflectionMergePartial<Amount>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Amount): Amount {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.Currency Currency */ 2:
message.Currency = 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: Amount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.Currency Currency = 2; */
if (message.Currency !== 0)
writer.tag(2, WireType.Varint).int32(message.Currency);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Amount
*/
export const Amount = new Amount$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityLength$Type extends MessageType<QuantityLength> {
constructor() {
super("api.QuantityLength", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Length", Length] }
]);
}
create(value?: PartialMessage<QuantityLength>): QuantityLength {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<QuantityLength>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityLength): QuantityLength {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.Length Unit */ 2:
message.Unit = 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: QuantityLength, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.Length Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityLength
*/
export const QuantityLength = new QuantityLength$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityVolume$Type extends MessageType<QuantityVolume> {
constructor() {
super("api.QuantityVolume", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Volume", Volume], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } }
]);
}
create(value?: PartialMessage<QuantityVolume>): QuantityVolume {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<QuantityVolume>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityVolume): QuantityVolume {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.Volume Unit */ 2:
message.Unit = 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: QuantityVolume, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.Volume Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityVolume
*/
export const QuantityVolume = new QuantityVolume$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityWeight$Type extends MessageType<QuantityWeight> {
constructor() {
super("api.QuantityWeight", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Weight", Weight], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } }
]);
}
create(value?: PartialMessage<QuantityWeight>): QuantityWeight {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<QuantityWeight>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityWeight): QuantityWeight {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.Weight Unit */ 2:
message.Unit = 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: QuantityWeight, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.Weight Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityWeight
*/
export const QuantityWeight = new QuantityWeight$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityArea$Type extends MessageType<QuantityArea> {
constructor() {
super("api.QuantityArea", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Area", Area] }
]);
}
create(value?: PartialMessage<QuantityArea>): QuantityArea {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<QuantityArea>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityArea): QuantityArea {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.Area Unit */ 2:
message.Unit = 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: QuantityArea, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.Area Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityArea
*/
export const QuantityArea = new QuantityArea$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityUnit$Type extends MessageType<QuantityUnit> {
constructor() {
super("api.QuantityUnit", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.DimensionLess", DimensionLess] }
]);
}
create(value?: PartialMessage<QuantityUnit>): QuantityUnit {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<QuantityUnit>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityUnit): QuantityUnit {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* float Value */ 1:
message.Value = reader.float();
break;
case /* api.DimensionLess Unit */ 2:
message.Unit = 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: QuantityUnit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* float Value = 1; */
if (message.Value !== 0)
writer.tag(1, WireType.Bit32).float(message.Value);
/* api.DimensionLess Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityUnit
*/
export const QuantityUnit = new QuantityUnit$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DomainDescriptionRequest$Type extends MessageType<DomainDescriptionRequest> {
constructor() {
super("api.DomainDescriptionRequest", []);
}
create(value?: PartialMessage<DomainDescriptionRequest>): DomainDescriptionRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DomainDescriptionRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DomainDescriptionRequest): DomainDescriptionRequest {
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: DomainDescriptionRequest, 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.DomainDescriptionRequest
*/
export const DomainDescriptionRequest = new DomainDescriptionRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DomainDescriptionResponse$Type extends MessageType<DomainDescriptionResponse> {
constructor() {
super("api.DomainDescriptionResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => DomainDescription }
]);
}
create(value?: PartialMessage<DomainDescriptionResponse>): DomainDescriptionResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DomainDescriptionResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DomainDescriptionResponse): DomainDescriptionResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.DomainDescription Payload */ 2:
message.Payload = DomainDescription.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: DomainDescriptionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.DomainDescription Payload = 2; */
if (message.Payload)
DomainDescription.internalBinaryWrite(message.Payload, 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.DomainDescriptionResponse
*/
export const DomainDescriptionResponse = new DomainDescriptionResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DomainDescription$Type extends MessageType<DomainDescription> {
constructor() {
super("api.DomainDescription", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ObjectDescription", kind: "message", localName: "ObjectDescription", jsonName: "ObjectDescription", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObjectDescription }
]);
}
create(value?: PartialMessage<DomainDescription>): DomainDescription {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.ObjectDescription = [];
if (value !== undefined)
reflectionMergePartial<DomainDescription>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DomainDescription): DomainDescription {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* repeated api.ObjectDescription ObjectDescription */ 2:
message.ObjectDescription.push(ObjectDescription.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: DomainDescription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* repeated api.ObjectDescription ObjectDescription = 2; */
for (let i = 0; i < message.ObjectDescription.length; i++)
ObjectDescription.internalBinaryWrite(message.ObjectDescription[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.DomainDescription
*/
export const DomainDescription = new DomainDescription$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ObjectDescription$Type extends MessageType<ObjectDescription> {
constructor() {
super("api.ObjectDescription", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ApiAction", kind: "message", localName: "ApiAction", jsonName: "ApiAction", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObjectAction },
{ no: 3, name: "PayloadJSON", kind: "scalar", localName: "PayloadJSON", jsonName: "PayloadJSON", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "ApiInput", kind: "message", localName: "ApiInput", jsonName: "ApiInput", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObjectAction },
{ no: 5, name: "ApiQuery", kind: "message", localName: "ApiQuery", jsonName: "ApiQuery", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObjectAction }
]);
}
create(value?: PartialMessage<ObjectDescription>): ObjectDescription {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.ApiAction = [];
message.PayloadJSON = "";
message.ApiInput = [];
message.ApiQuery = [];
if (value !== undefined)
reflectionMergePartial<ObjectDescription>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ObjectDescription): ObjectDescription {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* repeated api.ObjectAction ApiAction */ 2:
message.ApiAction.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string PayloadJSON */ 3:
message.PayloadJSON = reader.string();
break;
case /* repeated api.ObjectAction ApiInput */ 4:
message.ApiInput.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ObjectAction ApiQuery */ 5:
message.ApiQuery.push(ObjectAction.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: ObjectDescription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* repeated api.ObjectAction ApiAction = 2; */
for (let i = 0; i < message.ApiAction.length; i++)
ObjectAction.internalBinaryWrite(message.ApiAction[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string PayloadJSON = 3; */
if (message.PayloadJSON !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PayloadJSON);
/* repeated api.ObjectAction ApiInput = 4; */
for (let i = 0; i < message.ApiInput.length; i++)
ObjectAction.internalBinaryWrite(message.ApiInput[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ObjectAction ApiQuery = 5; */
for (let i = 0; i < message.ApiQuery.length; i++)
ObjectAction.internalBinaryWrite(message.ApiQuery[i], writer.tag(5, 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.ObjectDescription
*/
export const ObjectDescription = new ObjectDescription$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ObjectAction$Type extends MessageType<ObjectAction> {
constructor() {
super("api.ObjectAction", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "JsonTemplate", kind: "scalar", localName: "JsonTemplate", jsonName: "JsonTemplate", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ObjectAction>): ObjectAction {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.JsonTemplate = "";
if (value !== undefined)
reflectionMergePartial<ObjectAction>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ObjectAction): ObjectAction {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* string JsonTemplate */ 2:
message.JsonTemplate = 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: ObjectAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* string JsonTemplate = 2; */
if (message.JsonTemplate !== "")
writer.tag(2, WireType.LengthDelimited).string(message.JsonTemplate);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ObjectAction
*/
export const ObjectAction = new ObjectAction$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MetadataElement$Type extends MessageType<MetadataElement> {
constructor() {
super("api.MetadataElement", [
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key of the Metadata and Segmentation of the project" } } },
{ no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value of the Metadata and Segmentation of the project" } } }
]);
}
create(value?: PartialMessage<MetadataElement>): MetadataElement {
const message = globalThis.Object.create((this.messagePrototype!));
message.Key = "";
if (value !== undefined)
reflectionMergePartial<MetadataElement>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataElement): MetadataElement {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Key */ 1:
message.Key = reader.string();
break;
case /* api.ValueType Value */ 2:
message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value);
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: MetadataElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Key = 1; */
if (message.Key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Key);
/* api.ValueType Value = 2; */
if (message.Value)
ValueType.internalBinaryWrite(message.Value, 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.MetadataElement
*/
export const MetadataElement = new MetadataElement$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SimpleFilter$Type extends MessageType<SimpleFilter> {
constructor() {
super("api.SimpleFilter", [
{ no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } },
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" } } },
{ no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { maxLen: "250" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" } } },
{ no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" } } },
{ no: 5, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } }
]);
}
create(value?: PartialMessage<SimpleFilter>): SimpleFilter {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attribute = "";
message.Value = "";
message.Values = [];
message.Operator = "";
message.CombinedID = "";
if (value !== undefined)
reflectionMergePartial<SimpleFilter>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SimpleFilter): SimpleFilter {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Attribute */ 1:
message.Attribute = reader.string();
break;
case /* string Value */ 2:
message.Value = reader.string();
break;
case /* repeated string Values */ 3:
message.Values.push(reader.string());
break;
case /* string Operator */ 4:
message.Operator = reader.string();
break;
case /* string CombinedID */ 5:
message.CombinedID = 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: SimpleFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Attribute = 1; */
if (message.Attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Attribute);
/* string Value = 2; */
if (message.Value !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Value);
/* repeated string Values = 3; */
for (let i = 0; i < message.Values.length; i++)
writer.tag(3, WireType.LengthDelimited).string(message.Values[i]);
/* string Operator = 4; */
if (message.Operator !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Operator);
/* string CombinedID = 5; */
if (message.CombinedID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.CombinedID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SimpleFilter
*/
export const SimpleFilter = new SimpleFilter$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CombinedFilter$Type extends MessageType<CombinedFilter> {
constructor() {
super("api.CombinedFilter", [
{ no: 1, name: "Path", kind: "scalar", localName: "Path", jsonName: "Path", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "simpleFilters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SimpleFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Simple filter structure for Find query" } } },
{ no: 3, name: "rangeFilters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RangeFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Range filter structure for Find query" } } },
{ no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CombinedFilter>): CombinedFilter {
const message = globalThis.Object.create((this.messagePrototype!));
message.Path = "";
message.simpleFilters = [];
message.rangeFilters = [];
message.CombinedID = "";
if (value !== undefined)
reflectionMergePartial<CombinedFilter>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CombinedFilter): CombinedFilter {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Path */ 1:
message.Path = reader.string();
break;
case /* repeated api.SimpleFilter simpleFilters */ 2:
message.simpleFilters.push(SimpleFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.RangeFilter rangeFilters */ 3:
message.rangeFilters.push(RangeFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CombinedID */ 4:
message.CombinedID = 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: CombinedFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Path = 1; */
if (message.Path !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Path);
/* repeated api.SimpleFilter simpleFilters = 2; */
for (let i = 0; i < message.simpleFilters.length; i++)
SimpleFilter.internalBinaryWrite(message.simpleFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.RangeFilter rangeFilters = 3; */
for (let i = 0; i < message.rangeFilters.length; i++)
RangeFilter.internalBinaryWrite(message.rangeFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string CombinedID = 4; */
if (message.CombinedID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.CombinedID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CombinedFilter
*/
export const CombinedFilter = new CombinedFilter$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RangeFilter$Type extends MessageType<RangeFilter> {
constructor() {
super("api.RangeFilter", [
{ no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } },
{ no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" } } },
{ no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" } } },
{ no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } }
]);
}
create(value?: PartialMessage<RangeFilter>): RangeFilter {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attribute = "";
message.valueLt = "";
message.valueGt = "";
message.CombinedID = "";
if (value !== undefined)
reflectionMergePartial<RangeFilter>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RangeFilter): RangeFilter {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Attribute */ 1:
message.Attribute = reader.string();
break;
case /* string valueLt */ 2:
message.valueLt = reader.string();
break;
case /* string valueGt */ 3:
message.valueGt = reader.string();
break;
case /* string CombinedID */ 4:
message.CombinedID = 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: RangeFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Attribute = 1; */
if (message.Attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Attribute);
/* string valueLt = 2; */
if (message.valueLt !== "")
writer.tag(2, WireType.LengthDelimited).string(message.valueLt);
/* string valueGt = 3; */
if (message.valueGt !== "")
writer.tag(3, WireType.LengthDelimited).string(message.valueGt);
/* string CombinedID = 4; */
if (message.CombinedID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.CombinedID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RangeFilter
*/
export const RangeFilter = new RangeFilter$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BlockFilter$Type extends MessageType<BlockFilter> {
constructor() {
super("api.BlockFilter", [
{ no: 1, name: "simpleFilters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SimpleFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Simple filter structure for Find query" } } },
{ no: 2, name: "rangeFilters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RangeFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Range filter structure for Find query" } } },
{ no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Block filter structure for Find query" } } }
]);
}
create(value?: PartialMessage<BlockFilter>): BlockFilter {
const message = globalThis.Object.create((this.messagePrototype!));
message.simpleFilters = [];
message.rangeFilters = [];
message.BlockFilters = [];
if (value !== undefined)
reflectionMergePartial<BlockFilter>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BlockFilter): BlockFilter {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SimpleFilter simpleFilters */ 1:
message.simpleFilters.push(SimpleFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.RangeFilter rangeFilters */ 2:
message.rangeFilters.push(RangeFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.BlockFilter BlockFilters */ 3:
message.BlockFilters.push(BlockFilter.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: BlockFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SimpleFilter simpleFilters = 1; */
for (let i = 0; i < message.simpleFilters.length; i++)
SimpleFilter.internalBinaryWrite(message.simpleFilters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.RangeFilter rangeFilters = 2; */
for (let i = 0; i < message.rangeFilters.length; i++)
RangeFilter.internalBinaryWrite(message.rangeFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 3; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, 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.BlockFilter
*/
export const BlockFilter = new BlockFilter$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MatchField$Type extends MessageType<MatchField> {
constructor() {
super("api.MatchField", [
{ no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" } } },
{ no: 2, name: "AttributeCombined", kind: "scalar", localName: "AttributeCombined", jsonName: "AttributeCombined", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path for metadata filter" } } },
{ no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } }
]);
}
create(value?: PartialMessage<MatchField>): MatchField {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attribute = "";
message.AttributeCombined = "";
message.CombinedID = "";
if (value !== undefined)
reflectionMergePartial<MatchField>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchField): MatchField {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Attribute */ 1:
message.Attribute = reader.string();
break;
case /* string AttributeCombined */ 2:
message.AttributeCombined = reader.string();
break;
case /* string CombinedID */ 3:
message.CombinedID = 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: MatchField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Attribute = 1; */
if (message.Attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Attribute);
/* string AttributeCombined = 2; */
if (message.AttributeCombined !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AttributeCombined);
/* string CombinedID = 3; */
if (message.CombinedID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CombinedID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.MatchField
*/
export const MatchField = new MatchField$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MatchFieldResult$Type extends MessageType<MatchFieldResult> {
constructor() {
super("api.MatchFieldResult", [
{ no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<MatchFieldResult>): MatchFieldResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attribute = "";
message.Values = [];
message.CombinedID = "";
if (value !== undefined)
reflectionMergePartial<MatchFieldResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchFieldResult): MatchFieldResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Attribute */ 1:
message.Attribute = reader.string();
break;
case /* repeated string Values */ 2:
message.Values.push(reader.string());
break;
case /* string CombinedID */ 3:
message.CombinedID = 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: MatchFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Attribute = 1; */
if (message.Attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Attribute);
/* repeated string Values = 2; */
for (let i = 0; i < message.Values.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.Values[i]);
/* string CombinedID = 3; */
if (message.CombinedID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CombinedID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.MatchFieldResult
*/
export const MatchFieldResult = new MatchFieldResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ErrorDetail$Type extends MessageType<ErrorDetail> {
constructor() {
super("api.ErrorDetail", [
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ErrorDetail>): ErrorDetail {
const message = globalThis.Object.create((this.messagePrototype!));
message.Key = "";
message.Value = "";
if (value !== undefined)
reflectionMergePartial<ErrorDetail>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ErrorDetail): ErrorDetail {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Key */ 1:
message.Key = reader.string();
break;
case /* string Value */ 2:
message.Value = 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: ErrorDetail, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Key = 1; */
if (message.Key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Key);
/* string Value = 2; */
if (message.Value !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Value);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ErrorDetail
*/
export const ErrorDetail = new ErrorDetail$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Errors$Type extends MessageType<Errors> {
constructor() {
super("api.Errors", [
{ no: 1, name: "ErrorCode", kind: "scalar", localName: "ErrorCode", jsonName: "ErrorCode", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ErrorTrace", kind: "scalar", localName: "ErrorTrace", jsonName: "ErrorTrace", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ErrorDetails", kind: "message", localName: "ErrorDetails", jsonName: "ErrorDetails", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ErrorDetail },
{ no: 4, name: "ContextType", kind: "scalar", localName: "ContextType", jsonName: "ContextType", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "ContextProcess", kind: "scalar", localName: "ContextProcess", jsonName: "ContextProcess", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "ContextPayload", kind: "scalar", localName: "ContextPayload", jsonName: "ContextPayload", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<Errors>): Errors {
const message = globalThis.Object.create((this.messagePrototype!));
message.ErrorCode = "";
message.ErrorTrace = "";
message.ErrorDetails = [];
message.ContextType = "";
message.ContextProcess = "";
message.ContextPayload = "";
if (value !== undefined)
reflectionMergePartial<Errors>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Errors): Errors {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ErrorCode */ 1:
message.ErrorCode = reader.string();
break;
case /* string ErrorTrace */ 2:
message.ErrorTrace = reader.string();
break;
case /* repeated api.ErrorDetail ErrorDetails */ 3:
message.ErrorDetails.push(ErrorDetail.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ContextType */ 4:
message.ContextType = reader.string();
break;
case /* string ContextProcess */ 5:
message.ContextProcess = reader.string();
break;
case /* string ContextPayload */ 6:
message.ContextPayload = 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: Errors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ErrorCode = 1; */
if (message.ErrorCode !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ErrorCode);
/* string ErrorTrace = 2; */
if (message.ErrorTrace !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ErrorTrace);
/* repeated api.ErrorDetail ErrorDetails = 3; */
for (let i = 0; i < message.ErrorDetails.length; i++)
ErrorDetail.internalBinaryWrite(message.ErrorDetails[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string ContextType = 4; */
if (message.ContextType !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ContextType);
/* string ContextProcess = 5; */
if (message.ContextProcess !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ContextProcess);
/* string ContextPayload = 6; */
if (message.ContextPayload !== "")
writer.tag(6, WireType.LengthDelimited).string(message.ContextPayload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Errors
*/
export const Errors = new Errors$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ParamElement$Type extends MessageType<ParamElement> {
constructor() {
super("api.ParamElement", [
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType }
]);
}
create(value?: PartialMessage<ParamElement>): ParamElement {
const message = globalThis.Object.create((this.messagePrototype!));
message.Key = "";
if (value !== undefined)
reflectionMergePartial<ParamElement>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParamElement): ParamElement {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Key */ 1:
message.Key = reader.string();
break;
case /* api.ValueType Value */ 3:
message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value);
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: ParamElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Key = 1; */
if (message.Key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Key);
/* api.ValueType Value = 3; */
if (message.Value)
ValueType.internalBinaryWrite(message.Value, writer.tag(3, 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.ParamElement
*/
export const ParamElement = new ParamElement$Type();
// @generated message type with reflection information, may provide speed optimized methods
class LabelStructure$Type extends MessageType<LabelStructure> {
constructor() {
super("api.LabelStructure", [
{ no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" } } },
{ no: 3, name: "Params", kind: "message", localName: "Params", jsonName: "Params", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ParamElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" }, "api.aggKey": "Key" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Code", "Label"] } } });
}
create(value?: PartialMessage<LabelStructure>): LabelStructure {
const message = globalThis.Object.create((this.messagePrototype!));
message.Code = "";
message.Label = "";
message.Params = [];
if (value !== undefined)
reflectionMergePartial<LabelStructure>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LabelStructure): LabelStructure {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Code */ 1:
message.Code = reader.string();
break;
case /* string Label */ 2:
message.Label = reader.string();
break;
case /* repeated api.ParamElement Params */ 3:
message.Params.push(ParamElement.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: LabelStructure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Code = 1; */
if (message.Code !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Code);
/* string Label = 2; */
if (message.Label !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Label);
/* repeated api.ParamElement Params = 3; */
for (let i = 0; i < message.Params.length; i++)
ParamElement.internalBinaryWrite(message.Params[i], writer.tag(3, 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.LabelStructure
*/
export const LabelStructure = new LabelStructure$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CoreEndpoint$Type extends MessageType<CoreEndpoint> {
constructor() {
super("api.CoreEndpoint", [
{ no: 1, name: "RestEndpoint", kind: "scalar", localName: "RestEndpoint", jsonName: "RestEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "GrpcInputEndpoint", kind: "scalar", localName: "GrpcInputEndpoint", jsonName: "GrpcInputEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "GrpcQueryEndpoint", kind: "scalar", localName: "GrpcQueryEndpoint", jsonName: "GrpcQueryEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "GrpcGcsEndpoint", kind: "scalar", localName: "GrpcGcsEndpoint", jsonName: "GrpcGcsEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "GrpcLoggerEndpoint", kind: "scalar", localName: "GrpcLoggerEndpoint", jsonName: "GrpcLoggerEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "GrpcProjectModelEndpoint", kind: "scalar", localName: "GrpcProjectModelEndpoint", jsonName: "GrpcProjectModelEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "GrpcCoreCollabInputEndpoint", kind: "scalar", localName: "GrpcCoreCollabInputEndpoint", jsonName: "GrpcCoreCollabInputEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "GrpcCoreCollabQueryEndpoint", kind: "scalar", localName: "GrpcCoreCollabQueryEndpoint", jsonName: "GrpcCoreCollabQueryEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "GrpcCoreClaimTypeEndpoint", kind: "scalar", localName: "GrpcCoreClaimTypeEndpoint", jsonName: "GrpcCoreClaimTypeEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "GrpcCoreEndpoint", kind: "scalar", localName: "GrpcCoreEndpoint", jsonName: "GrpcCoreEndpoint", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CoreEndpoint>): CoreEndpoint {
const message = globalThis.Object.create((this.messagePrototype!));
message.RestEndpoint = "";
message.GrpcInputEndpoint = "";
message.GrpcQueryEndpoint = "";
message.GrpcGcsEndpoint = "";
message.GrpcLoggerEndpoint = "";
message.GrpcProjectModelEndpoint = "";
message.GrpcCoreCollabInputEndpoint = "";
message.GrpcCoreCollabQueryEndpoint = "";
message.GrpcCoreClaimTypeEndpoint = "";
message.GrpcCoreEndpoint = "";
if (value !== undefined)
reflectionMergePartial<CoreEndpoint>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CoreEndpoint): CoreEndpoint {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RestEndpoint */ 1:
message.RestEndpoint = reader.string();
break;
case /* string GrpcInputEndpoint */ 2:
message.GrpcInputEndpoint = reader.string();
break;
case /* string GrpcQueryEndpoint */ 3:
message.GrpcQueryEndpoint = reader.string();
break;
case /* string GrpcGcsEndpoint */ 4:
message.GrpcGcsEndpoint = reader.string();
break;
case /* string GrpcLoggerEndpoint */ 5:
message.GrpcLoggerEndpoint = reader.string();
break;
case /* string GrpcProjectModelEndpoint */ 6:
message.GrpcProjectModelEndpoint = reader.string();
break;
case /* string GrpcCoreCollabInputEndpoint */ 7:
message.GrpcCoreCollabInputEndpoint = reader.string();
break;
case /* string GrpcCoreCollabQueryEndpoint */ 8:
message.GrpcCoreCollabQueryEndpoint = reader.string();
break;
case /* string GrpcCoreClaimTypeEndpoint */ 9:
message.GrpcCoreClaimTypeEndpoint = reader.string();
break;
case /* string GrpcCoreEndpoint */ 10:
message.GrpcCoreEndpoint = 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: CoreEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RestEndpoint = 1; */
if (message.RestEndpoint !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RestEndpoint);
/* string GrpcInputEndpoint = 2; */
if (message.GrpcInputEndpoint !== "")
writer.tag(2, WireType.LengthDelimited).string(message.GrpcInputEndpoint);
/* string GrpcQueryEndpoint = 3; */
if (message.GrpcQueryEndpoint !== "")
writer.tag(3, WireType.LengthDelimited).string(message.GrpcQueryEndpoint);
/* string GrpcGcsEndpoint = 4; */
if (message.GrpcGcsEndpoint !== "")
writer.tag(4, WireType.LengthDelimited).string(message.GrpcGcsEndpoint);
/* string GrpcLoggerEndpoint = 5; */
if (message.GrpcLoggerEndpoint !== "")
writer.tag(5, WireType.LengthDelimited).string(message.GrpcLoggerEndpoint);
/* string GrpcProjectModelEndpoint = 6; */
if (message.GrpcProjectModelEndpoint !== "")
writer.tag(6, WireType.LengthDelimited).string(message.GrpcProjectModelEndpoint);
/* string GrpcCoreCollabInputEndpoint = 7; */
if (message.GrpcCoreCollabInputEndpoint !== "")
writer.tag(7, WireType.LengthDelimited).string(message.GrpcCoreCollabInputEndpoint);
/* string GrpcCoreCollabQueryEndpoint = 8; */
if (message.GrpcCoreCollabQueryEndpoint !== "")
writer.tag(8, WireType.LengthDelimited).string(message.GrpcCoreCollabQueryEndpoint);
/* string GrpcCoreClaimTypeEndpoint = 9; */
if (message.GrpcCoreClaimTypeEndpoint !== "")
writer.tag(9, WireType.LengthDelimited).string(message.GrpcCoreClaimTypeEndpoint);
/* string GrpcCoreEndpoint = 10; */
if (message.GrpcCoreEndpoint !== "")
writer.tag(10, WireType.LengthDelimited).string(message.GrpcCoreEndpoint);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CoreEndpoint
*/
export const CoreEndpoint = new CoreEndpoint$Type();
// @generated message type with reflection information, may provide speed optimized methods
class IntegrationEndpoint$Type extends MessageType<IntegrationEndpoint> {
constructor() {
super("api.IntegrationEndpoint", [
{ no: 1, name: "RestEndpoint", kind: "scalar", localName: "RestEndpoint", jsonName: "RestEndpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "GrpcEndpoint", kind: "scalar", localName: "GrpcEndpoint", jsonName: "GrpcEndpoint", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<IntegrationEndpoint>): IntegrationEndpoint {
const message = globalThis.Object.create((this.messagePrototype!));
message.RestEndpoint = "";
message.GrpcEndpoint = "";
if (value !== undefined)
reflectionMergePartial<IntegrationEndpoint>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IntegrationEndpoint): IntegrationEndpoint {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RestEndpoint */ 1:
message.RestEndpoint = reader.string();
break;
case /* string GrpcEndpoint */ 2:
message.GrpcEndpoint = 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: IntegrationEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RestEndpoint = 1; */
if (message.RestEndpoint !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RestEndpoint);
/* string GrpcEndpoint = 2; */
if (message.GrpcEndpoint !== "")
writer.tag(2, WireType.LengthDelimited).string(message.GrpcEndpoint);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.IntegrationEndpoint
*/
export const IntegrationEndpoint = new IntegrationEndpoint$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StorageEndpoint$Type extends MessageType<StorageEndpoint> {
constructor() {
super("api.StorageEndpoint", [
{ no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Bucket", kind: "scalar", localName: "Bucket", jsonName: "Bucket", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<StorageEndpoint>): StorageEndpoint {
const message = globalThis.Object.create((this.messagePrototype!));
message.Endpoint = "";
message.Bucket = "";
if (value !== undefined)
reflectionMergePartial<StorageEndpoint>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StorageEndpoint): StorageEndpoint {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Endpoint */ 1:
message.Endpoint = reader.string();
break;
case /* string Bucket */ 2:
message.Bucket = 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: StorageEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Endpoint = 1; */
if (message.Endpoint !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Endpoint);
/* string Bucket = 2; */
if (message.Bucket !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Bucket);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StorageEndpoint
*/
export const StorageEndpoint = new StorageEndpoint$Type();
// @generated message type with reflection information, may provide speed optimized methods
class NatsCredentials$Type extends MessageType<NatsCredentials> {
constructor() {
super("api.NatsCredentials", [
{ no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "RootSubject", kind: "scalar", localName: "RootSubject", jsonName: "RootSubject", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Username", kind: "scalar", localName: "Username", jsonName: "Username", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "UserJwt", kind: "scalar", localName: "UserJwt", jsonName: "UserJwt", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "UserNkeySeed", kind: "scalar", localName: "UserNkeySeed", jsonName: "UserNkeySeed", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<NatsCredentials>): NatsCredentials {
const message = globalThis.Object.create((this.messagePrototype!));
message.Endpoint = "";
message.RootSubject = "";
message.Username = "";
message.UserJwt = "";
message.UserNkeySeed = "";
if (value !== undefined)
reflectionMergePartial<NatsCredentials>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NatsCredentials): NatsCredentials {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Endpoint */ 1:
message.Endpoint = reader.string();
break;
case /* string RootSubject */ 2:
message.RootSubject = reader.string();
break;
case /* string Username */ 3:
message.Username = reader.string();
break;
case /* string UserJwt */ 4:
message.UserJwt = reader.string();
break;
case /* string UserNkeySeed */ 5:
message.UserNkeySeed = 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: NatsCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Endpoint = 1; */
if (message.Endpoint !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Endpoint);
/* string RootSubject = 2; */
if (message.RootSubject !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RootSubject);
/* string Username = 3; */
if (message.Username !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Username);
/* string UserJwt = 4; */
if (message.UserJwt !== "")
writer.tag(4, WireType.LengthDelimited).string(message.UserJwt);
/* string UserNkeySeed = 5; */
if (message.UserNkeySeed !== "")
writer.tag(5, WireType.LengthDelimited).string(message.UserNkeySeed);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.NatsCredentials
*/
export const NatsCredentials = new NatsCredentials$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OpenSearchCredentials$Type extends MessageType<OpenSearchCredentials> {
constructor() {
super("api.OpenSearchCredentials", [
{ no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Username", kind: "scalar", localName: "Username", jsonName: "Username", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Password", kind: "scalar", localName: "Password", jsonName: "Password", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Index", kind: "scalar", localName: "Index", jsonName: "Index", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<OpenSearchCredentials>): OpenSearchCredentials {
const message = globalThis.Object.create((this.messagePrototype!));
message.Endpoint = "";
message.Username = "";
message.Password = "";
message.Index = "";
if (value !== undefined)
reflectionMergePartial<OpenSearchCredentials>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenSearchCredentials): OpenSearchCredentials {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Endpoint */ 1:
message.Endpoint = reader.string();
break;
case /* string Username */ 2:
message.Username = reader.string();
break;
case /* string Password */ 3:
message.Password = reader.string();
break;
case /* string Index */ 4:
message.Index = 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: OpenSearchCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Endpoint = 1; */
if (message.Endpoint !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Endpoint);
/* string Username = 2; */
if (message.Username !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Username);
/* string Password = 3; */
if (message.Password !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Password);
/* string Index = 4; */
if (message.Index !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Index);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OpenSearchCredentials
*/
export const OpenSearchCredentials = new OpenSearchCredentials$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OpenIDCredentials$Type extends MessageType<OpenIDCredentials> {
constructor() {
super("api.OpenIDCredentials", [
{ no: 1, name: "WellKnownURI", kind: "scalar", localName: "WellKnownURI", jsonName: "WellKnownURI", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ServiceAccountName", kind: "scalar", localName: "ServiceAccountName", jsonName: "ServiceAccountName", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ServiceAccountPEM", kind: "scalar", localName: "ServiceAccountPEM", jsonName: "ServiceAccountPEM", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<OpenIDCredentials>): OpenIDCredentials {
const message = globalThis.Object.create((this.messagePrototype!));
message.WellKnownURI = "";
message.ServiceAccountName = "";
message.ServiceAccountPEM = "";
if (value !== undefined)
reflectionMergePartial<OpenIDCredentials>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenIDCredentials): OpenIDCredentials {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string WellKnownURI */ 1:
message.WellKnownURI = reader.string();
break;
case /* string ServiceAccountName */ 2:
message.ServiceAccountName = reader.string();
break;
case /* string ServiceAccountPEM */ 3:
message.ServiceAccountPEM = 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: OpenIDCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string WellKnownURI = 1; */
if (message.WellKnownURI !== "")
writer.tag(1, WireType.LengthDelimited).string(message.WellKnownURI);
/* string ServiceAccountName = 2; */
if (message.ServiceAccountName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ServiceAccountName);
/* string ServiceAccountPEM = 3; */
if (message.ServiceAccountPEM !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ServiceAccountPEM);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OpenIDCredentials
*/
export const OpenIDCredentials = new OpenIDCredentials$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Int32Object$Type extends MessageType<Int32Object> {
constructor() {
super("api.Int32Object", [
{ no: 1, name: "Int32", kind: "scalar", localName: "Int32", jsonName: "Int32", T: 5 /*ScalarType.INT32*/ }
]);
}
create(value?: PartialMessage<Int32Object>): Int32Object {
const message = globalThis.Object.create((this.messagePrototype!));
message.Int32 = 0;
if (value !== undefined)
reflectionMergePartial<Int32Object>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Object): Int32Object {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* int32 Int32 */ 1:
message.Int32 = 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: Int32Object, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* int32 Int32 = 1; */
if (message.Int32 !== 0)
writer.tag(1, WireType.Varint).int32(message.Int32);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Int32Object
*/
export const Int32Object = new Int32Object$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BoolObject$Type extends MessageType<BoolObject> {
constructor() {
super("api.BoolObject", [
{ no: 1, name: "Bool", kind: "scalar", localName: "Bool", jsonName: "Bool", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<BoolObject>): BoolObject {
const message = globalThis.Object.create((this.messagePrototype!));
message.Bool = false;
if (value !== undefined)
reflectionMergePartial<BoolObject>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolObject): BoolObject {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* bool Bool */ 1:
message.Bool = 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: BoolObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* bool Bool = 1; */
if (message.Bool !== false)
writer.tag(1, WireType.Varint).bool(message.Bool);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BoolObject
*/
export const BoolObject = new BoolObject$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StringObject$Type extends MessageType<StringObject> {
constructor() {
super("api.StringObject", [
{ no: 1, name: "String", kind: "scalar", localName: "String", jsonName: "String", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<StringObject>): StringObject {
const message = globalThis.Object.create((this.messagePrototype!));
message.String = "";
if (value !== undefined)
reflectionMergePartial<StringObject>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringObject): StringObject {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string String */ 1:
message.String = 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: StringObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string String = 1; */
if (message.String !== "")
writer.tag(1, WireType.LengthDelimited).string(message.String);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StringObject
*/
export const StringObject = new StringObject$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StringDateObject$Type extends MessageType<StringDateObject> {
constructor() {
super("api.StringDateObject", [
{ no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
]);
}
create(value?: PartialMessage<StringDateObject>): StringDateObject {
const message = globalThis.Object.create((this.messagePrototype!));
message.DateTime = "";
if (value !== undefined)
reflectionMergePartial<StringDateObject>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringDateObject): StringDateObject {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string DateTime */ 10:
message.DateTime = 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: StringDateObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string DateTime = 10; */
if (message.DateTime !== "")
writer.tag(10, WireType.LengthDelimited).string(message.DateTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StringDateObject
*/
export const StringDateObject = new StringDateObject$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WorkflowExecutionResult$Type extends MessageType<WorkflowExecutionResult> {
constructor() {
super("api.WorkflowExecutionResult", [
{ no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<WorkflowExecutionResult>): WorkflowExecutionResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.WorkflowId = "";
message.RunId = "";
message.Domain = "";
if (value !== undefined)
reflectionMergePartial<WorkflowExecutionResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WorkflowExecutionResult): WorkflowExecutionResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string WorkflowId */ 1:
message.WorkflowId = reader.string();
break;
case /* string RunId */ 2:
message.RunId = reader.string();
break;
case /* string Domain */ 3:
message.Domain = 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: WorkflowExecutionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string WorkflowId = 1; */
if (message.WorkflowId !== "")
writer.tag(1, WireType.LengthDelimited).string(message.WorkflowId);
/* string RunId = 2; */
if (message.RunId !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RunId);
/* string Domain = 3; */
if (message.Domain !== "")
writer.tag(3, 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.WorkflowExecutionResult
*/
export const WorkflowExecutionResult = new WorkflowExecutionResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ModuleRegistration$Type extends MessageType<ModuleRegistration> {
constructor() {
super("api.ModuleRegistration", [
{ no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } },
{ no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } },
{ no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } },
{ no: 4, name: "Timeout", kind: "scalar", localName: "Timeout", jsonName: "Timeout", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "max timeout in minutes of the module child workflow, ignored if it exceeds the platform default value." } } }
]);
}
create(value?: PartialMessage<ModuleRegistration>): ModuleRegistration {
const message = globalThis.Object.create((this.messagePrototype!));
message.WorkflowTarget = 0;
message.WorkflowPath = "";
message.Type = 0;
message.Timeout = 0;
if (value !== undefined)
reflectionMergePartial<ModuleRegistration>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleRegistration): ModuleRegistration {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.WorkflowTypeEnum WorkflowTarget */ 1:
message.WorkflowTarget = reader.int32();
break;
case /* string WorkflowPath */ 2:
message.WorkflowPath = reader.string();
break;
case /* api.ModuleWorkflowTypeEnum Type */ 3:
message.Type = reader.int32();
break;
case /* int32 Timeout */ 4:
message.Timeout = 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: ModuleRegistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.WorkflowTypeEnum WorkflowTarget = 1; */
if (message.WorkflowTarget !== 0)
writer.tag(1, WireType.Varint).int32(message.WorkflowTarget);
/* string WorkflowPath = 2; */
if (message.WorkflowPath !== "")
writer.tag(2, WireType.LengthDelimited).string(message.WorkflowPath);
/* api.ModuleWorkflowTypeEnum Type = 3; */
if (message.Type !== 0)
writer.tag(3, WireType.Varint).int32(message.Type);
/* int32 Timeout = 4; */
if (message.Timeout !== 0)
writer.tag(4, WireType.Varint).int32(message.Timeout);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ModuleRegistration
*/
export const ModuleRegistration = new ModuleRegistration$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ModuleDeregistration$Type extends MessageType<ModuleDeregistration> {
constructor() {
super("api.ModuleDeregistration", [
{ no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } },
{ no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } },
{ no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } }
]);
}
create(value?: PartialMessage<ModuleDeregistration>): ModuleDeregistration {
const message = globalThis.Object.create((this.messagePrototype!));
message.WorkflowTarget = 0;
message.WorkflowPath = "";
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<ModuleDeregistration>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleDeregistration): ModuleDeregistration {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.WorkflowTypeEnum WorkflowTarget */ 1:
message.WorkflowTarget = reader.int32();
break;
case /* string WorkflowPath */ 2:
message.WorkflowPath = reader.string();
break;
case /* api.ModuleWorkflowTypeEnum Type */ 3:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ModuleDeregistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.WorkflowTypeEnum WorkflowTarget = 1; */
if (message.WorkflowTarget !== 0)
writer.tag(1, WireType.Varint).int32(message.WorkflowTarget);
/* string WorkflowPath = 2; */
if (message.WorkflowPath !== "")
writer.tag(2, WireType.LengthDelimited).string(message.WorkflowPath);
/* api.ModuleWorkflowTypeEnum Type = 3; */
if (message.Type !== 0)
writer.tag(3, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ModuleDeregistration
*/
export const ModuleDeregistration = new ModuleDeregistration$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimType$Type extends MessageType<ClaimType> {
constructor() {
super("api.ClaimType", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } },
{ no: 5, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition },
{ no: 8, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure },
{ no: 9, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "ReadAllowedRoles", kind: "scalar", localName: "ReadAllowedRoles", jsonName: "ReadAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] },
{ no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector] },
{ no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<ClaimType>): ClaimType {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.ProjectID = "";
message.Reason = "";
message.ReasonCode = "";
message.EntityType = 0;
message.DefaultCriticality = 0;
message.Transitions = [];
message.PossibleClosures = [];
message.CriticalityAllowedRoles = [];
message.ReadAllowedRoles = [];
message.WriteAllowedRoles = [];
message.AssignAllowedRoles = [];
message.AllowedStatuses = [];
message.DefaultStatus = 0;
message.Sector = 0;
message.DefaultAssignees = [];
message.ResourceID = "";
if (value !== undefined)
reflectionMergePartial<ClaimType>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimType): ClaimType {
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 ProjectID = 2 [deprecated = true] */ 2:
message.ProjectID = reader.string();
break;
case /* string Reason */ 3:
message.Reason = reader.string();
break;
case /* string ReasonCode */ 4:
message.ReasonCode = reader.string();
break;
case /* api.ClaimEntityType EntityType */ 5:
message.EntityType = reader.int32();
break;
case /* api.ClaimCriticality DefaultCriticality */ 6:
message.DefaultCriticality = reader.int32();
break;
case /* repeated api.ClaimTransition Transitions */ 7:
message.Transitions.push(ClaimTransition.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ClaimTypeClosure PossibleClosures */ 8:
message.PossibleClosures.push(ClaimTypeClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string CriticalityAllowedRoles */ 9:
message.CriticalityAllowedRoles.push(reader.string());
break;
case /* repeated string ReadAllowedRoles */ 10:
message.ReadAllowedRoles.push(reader.string());
break;
case /* repeated string WriteAllowedRoles */ 11:
message.WriteAllowedRoles.push(reader.string());
break;
case /* repeated string AssignAllowedRoles */ 12:
message.AssignAllowedRoles.push(reader.string());
break;
case /* repeated api.ClaimStatus AllowedStatuses */ 13:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.AllowedStatuses.push(reader.int32());
else
message.AllowedStatuses.push(reader.int32());
break;
case /* api.ClaimStatus DefaultStatus */ 14:
message.DefaultStatus = reader.int32();
break;
case /* api.ClaimSector Sector */ 15:
message.Sector = reader.int32();
break;
case /* repeated string DefaultAssignees */ 16:
message.DefaultAssignees.push(reader.string());
break;
case /* string ResourceID */ 17:
message.ResourceID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ClaimType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string ProjectID = 2 [deprecated = true]; */
if (message.ProjectID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
/* string Reason = 3; */
if (message.Reason !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Reason);
/* string ReasonCode = 4; */
if (message.ReasonCode !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ReasonCode);
/* api.ClaimEntityType EntityType = 5; */
if (message.EntityType !== 0)
writer.tag(5, WireType.Varint).int32(message.EntityType);
/* api.ClaimCriticality DefaultCriticality = 6; */
if (message.DefaultCriticality !== 0)
writer.tag(6, WireType.Varint).int32(message.DefaultCriticality);
/* repeated api.ClaimTransition Transitions = 7; */
for (let i = 0; i < message.Transitions.length; i++)
ClaimTransition.internalBinaryWrite(message.Transitions[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ClaimTypeClosure PossibleClosures = 8; */
for (let i = 0; i < message.PossibleClosures.length; i++)
ClaimTypeClosure.internalBinaryWrite(message.PossibleClosures[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* repeated string CriticalityAllowedRoles = 9; */
for (let i = 0; i < message.CriticalityAllowedRoles.length; i++)
writer.tag(9, WireType.LengthDelimited).string(message.CriticalityAllowedRoles[i]);
/* repeated string ReadAllowedRoles = 10; */
for (let i = 0; i < message.ReadAllowedRoles.length; i++)
writer.tag(10, WireType.LengthDelimited).string(message.ReadAllowedRoles[i]);
/* repeated string WriteAllowedRoles = 11; */
for (let i = 0; i < message.WriteAllowedRoles.length; i++)
writer.tag(11, WireType.LengthDelimited).string(message.WriteAllowedRoles[i]);
/* repeated string AssignAllowedRoles = 12; */
for (let i = 0; i < message.AssignAllowedRoles.length; i++)
writer.tag(12, WireType.LengthDelimited).string(message.AssignAllowedRoles[i]);
/* repeated api.ClaimStatus AllowedStatuses = 13; */
if (message.AllowedStatuses.length) {
writer.tag(13, WireType.LengthDelimited).fork();
for (let i = 0; i < message.AllowedStatuses.length; i++)
writer.int32(message.AllowedStatuses[i]);
writer.join();
}
/* api.ClaimStatus DefaultStatus = 14; */
if (message.DefaultStatus !== 0)
writer.tag(14, WireType.Varint).int32(message.DefaultStatus);
/* api.ClaimSector Sector = 15; */
if (message.Sector !== 0)
writer.tag(15, WireType.Varint).int32(message.Sector);
/* repeated string DefaultAssignees = 16; */
for (let i = 0; i < message.DefaultAssignees.length; i++)
writer.tag(16, WireType.LengthDelimited).string(message.DefaultAssignees[i]);
/* string ResourceID = 17; */
if (message.ResourceID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.ResourceID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimType
*/
export const ClaimType = new ClaimType$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimTransition$Type extends MessageType<ClaimTransition> {
constructor() {
super("api.ClaimTransition", [
{ no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "ShouldNotify", kind: "scalar", localName: "ShouldNotify", jsonName: "ShouldNotify", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<ClaimTransition>): ClaimTransition {
const message = globalThis.Object.create((this.messagePrototype!));
message.FromStatus = 0;
message.ToStatus = 0;
message.AllowedRoles = [];
message.ShouldNotify = false;
if (value !== undefined)
reflectionMergePartial<ClaimTransition>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTransition): ClaimTransition {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ClaimStatus FromStatus */ 1:
message.FromStatus = reader.int32();
break;
case /* api.ClaimStatus ToStatus */ 2:
message.ToStatus = reader.int32();
break;
case /* repeated string AllowedRoles */ 3:
message.AllowedRoles.push(reader.string());
break;
case /* bool ShouldNotify */ 4:
message.ShouldNotify = 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: ClaimTransition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ClaimStatus FromStatus = 1; */
if (message.FromStatus !== 0)
writer.tag(1, WireType.Varint).int32(message.FromStatus);
/* api.ClaimStatus ToStatus = 2; */
if (message.ToStatus !== 0)
writer.tag(2, WireType.Varint).int32(message.ToStatus);
/* repeated string AllowedRoles = 3; */
for (let i = 0; i < message.AllowedRoles.length; i++)
writer.tag(3, WireType.LengthDelimited).string(message.AllowedRoles[i]);
/* bool ShouldNotify = 4; */
if (message.ShouldNotify !== false)
writer.tag(4, WireType.Varint).bool(message.ShouldNotify);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimTransition
*/
export const ClaimTransition = new ClaimTransition$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimTypeClosure$Type extends MessageType<ClaimTypeClosure> {
constructor() {
super("api.ClaimTypeClosure", [
{ no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Causes", kind: "scalar", localName: "Causes", jsonName: "Causes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ClaimTypeClosure>): ClaimTypeClosure {
const message = globalThis.Object.create((this.messagePrototype!));
message.Responsible = "";
message.Causes = [];
if (value !== undefined)
reflectionMergePartial<ClaimTypeClosure>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTypeClosure): ClaimTypeClosure {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Responsible */ 1:
message.Responsible = reader.string();
break;
case /* repeated string Causes */ 2:
message.Causes.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: ClaimTypeClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Responsible = 1; */
if (message.Responsible !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Responsible);
/* repeated string Causes = 2; */
for (let i = 0; i < message.Causes.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.Causes[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.ClaimTypeClosure
*/
export const ClaimTypeClosure = new ClaimTypeClosure$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimClosure$Type extends MessageType<ClaimClosure> {
constructor() {
super("api.ClaimClosure", [
{ no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
{ no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }
]);
}
create(value?: PartialMessage<ClaimClosure>): ClaimClosure {
const message = globalThis.Object.create((this.messagePrototype!));
message.Responsible = "";
message.Cause = "";
if (value !== undefined)
reflectionMergePartial<ClaimClosure>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimClosure): ClaimClosure {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Responsible */ 1:
message.Responsible = reader.string();
break;
case /* string Cause */ 2:
message.Cause = 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: ClaimClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Responsible = 1; */
if (message.Responsible !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Responsible);
/* string Cause = 2; */
if (message.Cause !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Cause);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimClosure
*/
export const ClaimClosure = new ClaimClosure$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimSummary$Type extends MessageType<ClaimSummary> {
constructor() {
super("api.ClaimSummary", [
{ no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "ClaimTypeReason", kind: "scalar", localName: "ClaimTypeReason", jsonName: "ClaimTypeReason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" } } },
{ no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims with this type" } } }
]);
}
create(value?: PartialMessage<ClaimSummary>): ClaimSummary {
const message = globalThis.Object.create((this.messagePrototype!));
message.ClaimTypeID = "";
message.ClaimTypeReason = "";
message.Number = 0;
if (value !== undefined)
reflectionMergePartial<ClaimSummary>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimSummary): ClaimSummary {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ClaimTypeID */ 1:
message.ClaimTypeID = reader.string();
break;
case /* string ClaimTypeReason */ 2:
message.ClaimTypeReason = reader.string();
break;
case /* int32 Number */ 3:
message.Number = 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: ClaimSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ClaimTypeID = 1; */
if (message.ClaimTypeID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ClaimTypeID);
/* string ClaimTypeReason = 2; */
if (message.ClaimTypeReason !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ClaimTypeReason);
/* int32 Number = 3; */
if (message.Number !== 0)
writer.tag(3, WireType.Varint).int32(message.Number);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimSummary
*/
export const ClaimSummary = new ClaimSummary$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AttachmentType$Type extends MessageType<AttachmentType> {
constructor() {
super("api.AttachmentType", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 6, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 8, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<AttachmentType>): AttachmentType {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Code = "";
message.Entity = 0;
message.Label = "";
message.SharePolicy = 0;
message.ResourceType = 0;
message.ResourceID = "";
if (value !== undefined)
reflectionMergePartial<AttachmentType>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentType): AttachmentType {
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 Code */ 3:
message.Code = reader.string();
break;
case /* api.EntityType Entity */ 4:
message.Entity = reader.int32();
break;
case /* string Label */ 5:
message.Label = reader.string();
break;
case /* api.SharePolicy SharePolicy */ 6:
message.SharePolicy = reader.int32();
break;
case /* api.ResourceType ResourceType */ 8:
message.ResourceType = reader.int32();
break;
case /* string ResourceID */ 7:
message.ResourceID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AttachmentType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string Code = 3; */
if (message.Code !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Code);
/* api.EntityType Entity = 4; */
if (message.Entity !== 0)
writer.tag(4, WireType.Varint).int32(message.Entity);
/* string Label = 5; */
if (message.Label !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Label);
/* api.SharePolicy SharePolicy = 6; */
if (message.SharePolicy !== 0)
writer.tag(6, WireType.Varint).int32(message.SharePolicy);
/* string ResourceID = 7; */
if (message.ResourceID !== "")
writer.tag(7, WireType.LengthDelimited).string(message.ResourceID);
/* api.ResourceType ResourceType = 8; */
if (message.ResourceType !== 0)
writer.tag(8, WireType.Varint).int32(message.ResourceType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AttachmentType
*/
export const AttachmentType = new AttachmentType$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AttachmentSummary$Type extends MessageType<AttachmentSummary> {
constructor() {
super("api.AttachmentSummary", [
{ no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments with this type" } } }
]);
}
create(value?: PartialMessage<AttachmentSummary>): AttachmentSummary {
const message = globalThis.Object.create((this.messagePrototype!));
message.AttachmentTypeID = "";
message.AttachmentTypeCode = "";
message.Number = 0;
if (value !== undefined)
reflectionMergePartial<AttachmentSummary>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentSummary): AttachmentSummary {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string AttachmentTypeID */ 1:
message.AttachmentTypeID = reader.string();
break;
case /* string AttachmentTypeCode */ 2:
message.AttachmentTypeCode = reader.string();
break;
case /* int32 Number */ 3:
message.Number = 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: AttachmentSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AttachmentTypeID = 1; */
if (message.AttachmentTypeID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID);
/* string AttachmentTypeCode = 2; */
if (message.AttachmentTypeCode !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AttachmentTypeCode);
/* int32 Number = 3; */
if (message.Number !== 0)
writer.tag(3, WireType.Varint).int32(message.Number);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AttachmentSummary
*/
export const AttachmentSummary = new AttachmentSummary$Type();
// @generated message type with reflection information, may provide speed optimized methods
class TranslationMap$Type extends MessageType<TranslationMap> {
constructor() {
super("api.TranslationMap", [
{ no: 1, name: "data", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
]);
}
create(value?: PartialMessage<TranslationMap>): TranslationMap {
const message = globalThis.Object.create((this.messagePrototype!));
message.data = {};
if (value !== undefined)
reflectionMergePartial<TranslationMap>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TranslationMap): TranslationMap {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* map<string, string> data */ 1:
this.binaryReadMap1(message.data, reader, 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;
}
private binaryReadMap1(map: TranslationMap["data"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof TranslationMap["data"] | undefined, val: TranslationMap["data"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case 1:
key = reader.string();
break;
case 2:
val = reader.string();
break;
default: throw new globalThis.Error("unknown map entry field for api.TranslationMap.data");
}
}
map[key ?? ""] = val ?? "";
}
internalBinaryWrite(message: TranslationMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, string> data = 1; */
for (let k of globalThis.Object.keys(message.data))
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.data[k]).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.TranslationMap
*/
export const TranslationMap = new TranslationMap$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ExtractColumnFormat$Type extends MessageType<ExtractColumnFormat> {
constructor() {
super("api.ExtractColumnFormat", [
{ no: 1, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ExtractColumnFormat.type", ExtractColumnFormat_type] },
{ no: 2, name: "Format", kind: "scalar", localName: "Format", jsonName: "Format", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "DisplayDate", kind: "enum", localName: "DisplayDate", jsonName: "DisplayDate", T: () => ["api.DisplayDate", DisplayDate] }
]);
}
create(value?: PartialMessage<ExtractColumnFormat>): ExtractColumnFormat {
const message = globalThis.Object.create((this.messagePrototype!));
message.Type = 0;
message.Format = "";
message.DisplayDate = 0;
if (value !== undefined)
reflectionMergePartial<ExtractColumnFormat>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractColumnFormat): ExtractColumnFormat {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ExtractColumnFormat.type Type */ 1:
message.Type = reader.int32();
break;
case /* string Format */ 2:
message.Format = reader.string();
break;
case /* api.DisplayDate DisplayDate */ 3:
message.DisplayDate = 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: ExtractColumnFormat, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ExtractColumnFormat.type Type = 1; */
if (message.Type !== 0)
writer.tag(1, WireType.Varint).int32(message.Type);
/* string Format = 2; */
if (message.Format !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Format);
/* api.DisplayDate DisplayDate = 3; */
if (message.DisplayDate !== 0)
writer.tag(3, WireType.Varint).int32(message.DisplayDate);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ExtractColumnFormat
*/
export const ExtractColumnFormat = new ExtractColumnFormat$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ExtractQuery$Type extends MessageType<ExtractQuery> {
constructor() {
super("api.ExtractQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } },
{ no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } },
{ no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
{ no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
{ no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName"] } } });
}
create(value?: PartialMessage<ExtractQuery>): ExtractQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.UserId = "";
message.BlockFilters = [];
message.Fields = [];
message.ListSeparator = "";
message.DecimalSeparator = "";
message.ColumnNames = [];
message.ColumnTranslationMaps = {};
message.ColumnFormats = {};
message.TargetTimeZone = "";
message.DateFormat = "";
message.NumberFormat = "";
message.TimeFormat = 0;
if (value !== undefined)
reflectionMergePartial<ExtractQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractQuery): ExtractQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header */ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string UserId */ 2:
message.UserId = reader.string();
break;
case /* repeated api.BlockFilter BlockFilters */ 3:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Fields */ 4:
message.Fields.push(reader.string());
break;
case /* string ListSeparator */ 5:
message.ListSeparator = reader.string();
break;
case /* string DecimalSeparator */ 6:
message.DecimalSeparator = reader.string();
break;
case /* repeated string ColumnNames */ 7:
message.ColumnNames.push(reader.string());
break;
case /* map<string, api.TranslationMap> ColumnTranslationMaps */ 8:
this.binaryReadMap8(message.ColumnTranslationMaps, reader, options);
break;
case /* map<int32, api.ExtractColumnFormat> ColumnFormats */ 9:
this.binaryReadMap9(message.ColumnFormats, reader, options);
break;
case /* string TargetTimeZone */ 10:
message.TargetTimeZone = reader.string();
break;
case /* string DateFormat */ 11:
message.DateFormat = reader.string();
break;
case /* string NumberFormat */ 12:
message.NumberFormat = reader.string();
break;
case /* api.TimeFormat TimeFormat */ 13:
message.TimeFormat = 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;
}
private binaryReadMap8(map: ExtractQuery["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractQuery["ColumnTranslationMaps"] | undefined, val: ExtractQuery["ColumnTranslationMaps"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case 1:
key = reader.string();
break;
case 2:
val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options);
break;
default: throw new globalThis.Error("unknown map entry field for api.ExtractQuery.ColumnTranslationMaps");
}
}
map[key ?? ""] = val ?? TranslationMap.create();
}
private binaryReadMap9(map: ExtractQuery["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractQuery["ColumnFormats"] | undefined, val: ExtractQuery["ColumnFormats"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case 1:
key = reader.int32();
break;
case 2:
val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options);
break;
default: throw new globalThis.Error("unknown map entry field for api.ExtractQuery.ColumnFormats");
}
}
map[key ?? 0] = val ?? ExtractColumnFormat.create();
}
internalBinaryWrite(message: ExtractQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string UserId = 2; */
if (message.UserId !== "")
writer.tag(2, WireType.LengthDelimited).string(message.UserId);
/* repeated api.BlockFilter BlockFilters = 3; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated string Fields = 4; */
for (let i = 0; i < message.Fields.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.Fields[i]);
/* string ListSeparator = 5; */
if (message.ListSeparator !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ListSeparator);
/* string DecimalSeparator = 6; */
if (message.DecimalSeparator !== "")
writer.tag(6, WireType.LengthDelimited).string(message.DecimalSeparator);
/* repeated string ColumnNames = 7; */
for (let i = 0; i < message.ColumnNames.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.ColumnNames[i]);
/* map<string, api.TranslationMap> ColumnTranslationMaps = 8; */
for (let k of globalThis.Object.keys(message.ColumnTranslationMaps)) {
writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
writer.tag(2, WireType.LengthDelimited).fork();
TranslationMap.internalBinaryWrite(message.ColumnTranslationMaps[k], writer, options);
writer.join().join();
}
/* map<int32, api.ExtractColumnFormat> ColumnFormats = 9; */
for (let k of globalThis.Object.keys(message.ColumnFormats)) {
writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k));
writer.tag(2, WireType.LengthDelimited).fork();
ExtractColumnFormat.internalBinaryWrite(message.ColumnFormats[k as any], writer, options);
writer.join().join();
}
/* string TargetTimeZone = 10; */
if (message.TargetTimeZone !== "")
writer.tag(10, WireType.LengthDelimited).string(message.TargetTimeZone);
/* string DateFormat = 11; */
if (message.DateFormat !== "")
writer.tag(11, WireType.LengthDelimited).string(message.DateFormat);
/* string NumberFormat = 12; */
if (message.NumberFormat !== "")
writer.tag(12, WireType.LengthDelimited).string(message.NumberFormat);
/* api.TimeFormat TimeFormat = 13; */
if (message.TimeFormat !== 0)
writer.tag(13, WireType.Varint).int32(message.TimeFormat);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ExtractQuery
*/
export const ExtractQuery = new ExtractQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ExtractResult$Type extends MessageType<ExtractResult> {
constructor() {
super("api.ExtractResult", [
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
]);
}
create(value?: PartialMessage<ExtractResult>): ExtractResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ExtractResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractResult): ExtractResult {
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: ExtractResult, 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.ExtractResult
*/
export const ExtractResult = new ExtractResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CountLinesQuery$Type extends MessageType<CountLinesQuery> {
constructor() {
super("api.CountLinesQuery", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Partition", kind: "scalar", localName: "Partition", jsonName: "Partition", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
}
create(value?: PartialMessage<CountLinesQuery>): CountLinesQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.Partition = 0;
if (value !== undefined)
reflectionMergePartial<CountLinesQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountLinesQuery): CountLinesQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* int32 Partition */ 2:
message.Partition = 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: CountLinesQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* int32 Partition = 2; */
if (message.Partition !== 0)
writer.tag(2, WireType.Varint).int32(message.Partition);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CountLinesQuery
*/
export const CountLinesQuery = new CountLinesQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CountLinesResult$Type extends MessageType<CountLinesResult> {
constructor() {
super("api.CountLinesResult", [
{ no: 1, name: "NbLines", kind: "scalar", localName: "NbLines", jsonName: "NbLines", T: 5 /*ScalarType.INT32*/ }
]);
}
create(value?: PartialMessage<CountLinesResult>): CountLinesResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.NbLines = 0;
if (value !== undefined)
reflectionMergePartial<CountLinesResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountLinesResult): CountLinesResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* int32 NbLines */ 1:
message.NbLines = 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: CountLinesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* int32 NbLines = 1; */
if (message.NbLines !== 0)
writer.tag(1, WireType.Varint).int32(message.NbLines);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CountLinesResult
*/
export const CountLinesResult = new CountLinesResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Scope$Type extends MessageType<Scope> {
constructor() {
super("api.Scope", [
{ no: 1, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Method", kind: "scalar", localName: "Method", jsonName: "Method", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType] },
{ no: 4, name: "PlatformReserved", kind: "scalar", localName: "PlatformReserved", jsonName: "PlatformReserved", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "TransientPermissions", kind: "message", localName: "TransientPermissions", jsonName: "TransientPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "AppliesOnIDs", kind: "scalar", localName: "AppliesOnIDs", jsonName: "AppliesOnIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ModuleID", kind: "scalar", localName: "ModuleID", jsonName: "ModuleID", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ },
{ no: 10, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Service"] } } });
}
create(value?: PartialMessage<Scope>): Scope {
const message = globalThis.Object.create((this.messagePrototype!));
message.Service = "";
message.Method = "";
message.RscType = 0;
message.PlatformReserved = false;
message.TransientPermissions = [];
message.RscID = "";
message.AppliesOnIDs = [];
message.ModuleID = "";
message.Mandatory = false;
message.Tags = [];
if (value !== undefined)
reflectionMergePartial<Scope>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Scope): Scope {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Service */ 1:
message.Service = reader.string();
break;
case /* string Method */ 2:
message.Method = reader.string();
break;
case /* api.ResourceType RscType */ 3:
message.RscType = reader.int32();
break;
case /* bool PlatformReserved */ 4:
message.PlatformReserved = reader.bool();
break;
case /* repeated api.Permission TransientPermissions */ 5:
message.TransientPermissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string RscID */ 6:
message.RscID = reader.string();
break;
case /* repeated string AppliesOnIDs */ 7:
message.AppliesOnIDs.push(reader.string());
break;
case /* string ModuleID */ 8:
message.ModuleID = reader.string();
break;
case /* bool Mandatory */ 9:
message.Mandatory = reader.bool();
break;
case /* repeated api.RoleTag Tags */ 10:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: Scope, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Service = 1; */
if (message.Service !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Service);
/* string Method = 2; */
if (message.Method !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Method);
/* api.ResourceType RscType = 3; */
if (message.RscType !== 0)
writer.tag(3, WireType.Varint).int32(message.RscType);
/* bool PlatformReserved = 4; */
if (message.PlatformReserved !== false)
writer.tag(4, WireType.Varint).bool(message.PlatformReserved);
/* repeated api.Permission TransientPermissions = 5; */
for (let i = 0; i < message.TransientPermissions.length; i++)
Permission.internalBinaryWrite(message.TransientPermissions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* string RscID = 6; */
if (message.RscID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.RscID);
/* repeated string AppliesOnIDs = 7; */
for (let i = 0; i < message.AppliesOnIDs.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.AppliesOnIDs[i]);
/* string ModuleID = 8; */
if (message.ModuleID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.ModuleID);
/* bool Mandatory = 9; */
if (message.Mandatory !== false)
writer.tag(9, WireType.Varint).bool(message.Mandatory);
/* repeated api.RoleTag Tags = 10; */
if (message.Tags.length) {
writer.tag(10, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Scope
*/
export const Scope = new Scope$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClientAPI$Type extends MessageType<ClientAPI> {
constructor() {
super("api.ClientAPI", [
{ no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "APIs", kind: "message", localName: "APIs", jsonName: "APIs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope },
{ no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ClientAPI>): ClientAPI {
const message = globalThis.Object.create((this.messagePrototype!));
message.Client = "";
message.APIs = [];
message.Roles = "";
if (value !== undefined)
reflectionMergePartial<ClientAPI>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClientAPI): ClientAPI {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Client */ 1:
message.Client = reader.string();
break;
case /* repeated api.Scope APIs */ 2:
message.APIs.push(Scope.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Roles */ 3:
message.Roles = 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: ClientAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Client = 1; */
if (message.Client !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Client);
/* repeated api.Scope APIs = 2; */
for (let i = 0; i < message.APIs.length; i++)
Scope.internalBinaryWrite(message.APIs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Roles = 3; */
if (message.Roles !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Roles);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClientAPI
*/
export const ClientAPI = new ClientAPI$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Permission$Type extends MessageType<Permission> {
constructor() {
super("api.Permission", [
{ no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope, options: { "validate.rules": { repeated: { minItems: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Client", "Scopes"] } } });
}
create(value?: PartialMessage<Permission>): Permission {
const message = globalThis.Object.create((this.messagePrototype!));
message.Client = "";
message.Scopes = [];
if (value !== undefined)
reflectionMergePartial<Permission>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Permission): Permission {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Client */ 1:
message.Client = reader.string();
break;
case /* repeated api.Scope Scopes */ 2:
message.Scopes.push(Scope.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: Permission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Client = 1; */
if (message.Client !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Client);
/* repeated api.Scope Scopes = 2; */
for (let i = 0; i < message.Scopes.length; i++)
Scope.internalBinaryWrite(message.Scopes[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.Permission
*/
export const Permission = new Permission$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UserUIPermissions$Type extends MessageType<UserUIPermissions> {
constructor() {
super("api.UserUIPermissions", [
{ no: 1, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType] },
{ no: 2, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope }
]);
}
create(value?: PartialMessage<UserUIPermissions>): UserUIPermissions {
const message = globalThis.Object.create((this.messagePrototype!));
message.RscType = 0;
message.RscID = "";
message.Scopes = [];
if (value !== undefined)
reflectionMergePartial<UserUIPermissions>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUIPermissions): UserUIPermissions {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResourceType RscType */ 1:
message.RscType = reader.int32();
break;
case /* string RscID */ 2:
message.RscID = reader.string();
break;
case /* repeated api.Scope Scopes */ 3:
message.Scopes.push(Scope.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: UserUIPermissions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResourceType RscType = 1; */
if (message.RscType !== 0)
writer.tag(1, WireType.Varint).int32(message.RscType);
/* string RscID = 2; */
if (message.RscID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RscID);
/* repeated api.Scope Scopes = 3; */
for (let i = 0; i < message.Scopes.length; i++)
Scope.internalBinaryWrite(message.Scopes[i], writer.tag(3, 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.UserUIPermissions
*/
export const UserUIPermissions = new UserUIPermissions$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Resource$Type extends MessageType<Resource> {
constructor() {
super("api.Resource", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "ParentID", kind: "scalar", localName: "ParentID", jsonName: "ParentID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Type"] } } });
}
create(value?: PartialMessage<Resource>): Resource {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Type = 0;
message.ParentID = "";
if (value !== undefined)
reflectionMergePartial<Resource>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
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 /* api.ResourceType Type */ 2:
message.Type = reader.int32();
break;
case /* string ParentID */ 3:
message.ParentID = 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: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* api.ResourceType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
/* string ParentID = 3; */
if (message.ParentID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ParentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Resource
*/
export const Resource = new Resource$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
constructor() {
super("api.ElementByMatchQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
{ no: 4, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } },
{ no: 5, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ElementByMatchQuery>): ElementByMatchQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
if (value !== undefined)
reflectionMergePartial<ElementByMatchQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchQuery): ElementByMatchQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header */ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.BlockFilter BlockFilters */ 2:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.MatchElementField MatchElementField */ 3:
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
break;
case /* api.EntityType UsageContextEntity */ 4:
message.UsageContextEntity = reader.int32();
break;
case /* string UsageContextPath */ 5:
message.UsageContextPath = 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: ElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 2; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.MatchElementField MatchElementField = 3; */
if (message.MatchElementField)
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.EntityType UsageContextEntity = 4; */
if (message.UsageContextEntity !== 0)
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
/* string UsageContextPath = 5; */
if (message.UsageContextPath !== "")
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ElementByMatchQuery
*/
export const ElementByMatchQuery = new ElementByMatchQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ElementByMatchResult$Type extends MessageType<ElementByMatchResult> {
constructor() {
super("api.ElementByMatchResult", [
{ no: 1, name: "MatchResults", kind: "message", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchFieldElementResult }
]);
}
create(value?: PartialMessage<ElementByMatchResult>): ElementByMatchResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.MatchResults = [];
if (value !== undefined)
reflectionMergePartial<ElementByMatchResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchResult): ElementByMatchResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.MatchFieldElementResult MatchResults */ 1:
message.MatchResults.push(MatchFieldElementResult.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: ElementByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.MatchFieldElementResult MatchResults = 1; */
for (let i = 0; i < message.MatchResults.length; i++)
MatchFieldElementResult.internalBinaryWrite(message.MatchResults[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.ElementByMatchResult
*/
export const ElementByMatchResult = new ElementByMatchResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MatchElementField$Type extends MessageType<MatchElementField> {
constructor() {
super("api.MatchElementField", [
{ no: 1, name: "Match", kind: "scalar", localName: "Match", jsonName: "Match", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" } } },
{ no: 2, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }
]);
}
create(value?: PartialMessage<MatchElementField>): MatchElementField {
const message = globalThis.Object.create((this.messagePrototype!));
message.Match = "";
message.MatchFields = [];
if (value !== undefined)
reflectionMergePartial<MatchElementField>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchElementField): MatchElementField {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Match */ 1:
message.Match = reader.string();
break;
case /* repeated api.MatchField MatchFields */ 2:
message.MatchFields.push(MatchField.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: MatchElementField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Match = 1; */
if (message.Match !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Match);
/* repeated api.MatchField MatchFields = 2; */
for (let i = 0; i < message.MatchFields.length; i++)
MatchField.internalBinaryWrite(message.MatchFields[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.MatchElementField
*/
export const MatchElementField = new MatchElementField$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MatchFieldElementResult$Type extends MessageType<MatchFieldElementResult> {
constructor() {
super("api.MatchFieldElementResult", [
{ no: 3, name: "MatchingElements", kind: "map", localName: "MatchingElements", jsonName: "MatchingElements", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
]);
}
create(value?: PartialMessage<MatchFieldElementResult>): MatchFieldElementResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.MatchingElements = {};
if (value !== undefined)
reflectionMergePartial<MatchFieldElementResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchFieldElementResult): MatchFieldElementResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* map<string, string> MatchingElements */ 3:
this.binaryReadMap3(message.MatchingElements, reader, 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;
}
private binaryReadMap3(map: MatchFieldElementResult["MatchingElements"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof MatchFieldElementResult["MatchingElements"] | undefined, val: MatchFieldElementResult["MatchingElements"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case 1:
key = reader.string();
break;
case 2:
val = reader.string();
break;
default: throw new globalThis.Error("unknown map entry field for api.MatchFieldElementResult.MatchingElements");
}
}
map[key ?? ""] = val ?? "";
}
internalBinaryWrite(message: MatchFieldElementResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, string> MatchingElements = 3; */
for (let k of globalThis.Object.keys(message.MatchingElements))
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.MatchingElements[k]).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.MatchFieldElementResult
*/
export const MatchFieldElementResult = new MatchFieldElementResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class LabelByLanguage$Type extends MessageType<LabelByLanguage> {
constructor() {
super("api.LabelByLanguage", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "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\"" } } }
]);
}
create(value?: PartialMessage<LabelByLanguage>): LabelByLanguage {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = "";
message.LanguageCodeISO6391 = "";
if (value !== undefined)
reflectionMergePartial<LabelByLanguage>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LabelByLanguage): LabelByLanguage {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Value */ 1:
message.Value = reader.string();
break;
case /* string LanguageCodeISO6391 */ 2:
message.LanguageCodeISO6391 = 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: LabelByLanguage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Value = 1; */
if (message.Value !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Value);
/* string LanguageCodeISO6391 = 2; */
if (message.LanguageCodeISO6391 !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.LabelByLanguage
*/
export const LabelByLanguage = new LabelByLanguage$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FileDataRequest$Type extends MessageType<FileDataRequest> {
constructor() {
super("api.FileDataRequest", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 12 /*ScalarType.BYTES*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
}
create(value?: PartialMessage<FileDataRequest>): FileDataRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Content = new Uint8Array(0);
if (value !== undefined)
reflectionMergePartial<FileDataRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDataRequest): FileDataRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* bytes Content */ 2:
message.Content = reader.bytes();
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: FileDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* bytes Content = 2; */
if (message.Content.length)
writer.tag(2, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.FileDataRequest
*/
export const FileDataRequest = new FileDataRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FileDataResponse$Type extends MessageType<FileDataResponse> {
constructor() {
super("api.FileDataResponse", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 12 /*ScalarType.BYTES*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
}
create(value?: PartialMessage<FileDataResponse>): FileDataResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.ContentType = "";
message.Content = new Uint8Array(0);
if (value !== undefined)
reflectionMergePartial<FileDataResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDataResponse): FileDataResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* string ContentType */ 2:
message.ContentType = reader.string();
break;
case /* bytes Content */ 3:
message.Content = reader.bytes();
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: FileDataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* string ContentType = 2; */
if (message.ContentType !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ContentType);
/* bytes Content = 3; */
if (message.Content.length)
writer.tag(3, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.FileDataResponse
*/
export const FileDataResponse = new FileDataResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Period$Type extends MessageType<Period> {
constructor() {
super("api.Period", [
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.PeriodUnit", PeriodUnit] }
]);
}
create(value?: PartialMessage<Period>): Period {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = 0n;
message.Unit = 0;
if (value !== undefined)
reflectionMergePartial<Period>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Period): Period {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* int64 Value */ 1:
message.Value = reader.int64().toBigInt();
break;
case /* api.PeriodUnit Unit */ 2:
message.Unit = 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: Period, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* int64 Value = 1; */
if (message.Value !== 0n)
writer.tag(1, WireType.Varint).int64(message.Value);
/* api.PeriodUnit Unit = 2; */
if (message.Unit !== 0)
writer.tag(2, WireType.Varint).int32(message.Unit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Period
*/
export const Period = new Period$Type();
// @generated message type with reflection information, may provide speed optimized methods
class EntityDefinition$Type extends MessageType<EntityDefinition> {
constructor() {
super("api.EntityDefinition", [
{ no: 1, name: "Name", kind: "enum", localName: "Name", jsonName: "Name", T: () => ["api.EntityType", EntityType] },
{ no: 2, name: "Domain", kind: "enum", localName: "Domain", jsonName: "Domain", T: () => ["api.Domain", Domain] },
{ no: 3, name: "ProjectTypes", kind: "enum", localName: "ProjectTypes", jsonName: "ProjectTypes", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ProjectType", ProjectType] },
{ no: 4, name: "HasMetadata", kind: "scalar", localName: "HasMetadata", jsonName: "HasMetadata", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "HasDataRestriction", kind: "scalar", localName: "HasDataRestriction", jsonName: "HasDataRestriction", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "IsIndexed", kind: "scalar", localName: "IsIndexed", jsonName: "IsIndexed", T: 8 /*ScalarType.BOOL*/ },
{ no: 7, name: "KpiGroups", kind: "scalar", localName: "KpiGroups", jsonName: "KpiGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ModelVersion", kind: "scalar", localName: "ModelVersion", jsonName: "ModelVersion", T: 13 /*ScalarType.UINT32*/ }
]);
}
create(value?: PartialMessage<EntityDefinition>): EntityDefinition {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = 0;
message.Domain = 0;
message.ProjectTypes = [];
message.HasMetadata = false;
message.HasDataRestriction = false;
message.IsIndexed = false;
message.KpiGroups = [];
message.ModelVersion = 0;
if (value !== undefined)
reflectionMergePartial<EntityDefinition>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EntityDefinition): EntityDefinition {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EntityType Name */ 1:
message.Name = reader.int32();
break;
case /* api.Domain Domain */ 2:
message.Domain = reader.int32();
break;
case /* repeated api.ProjectType ProjectTypes */ 3:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.ProjectTypes.push(reader.int32());
else
message.ProjectTypes.push(reader.int32());
break;
case /* bool HasMetadata */ 4:
message.HasMetadata = reader.bool();
break;
case /* bool HasDataRestriction */ 5:
message.HasDataRestriction = reader.bool();
break;
case /* bool IsIndexed */ 6:
message.IsIndexed = reader.bool();
break;
case /* repeated string KpiGroups */ 7:
message.KpiGroups.push(reader.string());
break;
case /* uint32 ModelVersion */ 8:
message.ModelVersion = reader.uint32();
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: EntityDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EntityType Name = 1; */
if (message.Name !== 0)
writer.tag(1, WireType.Varint).int32(message.Name);
/* api.Domain Domain = 2; */
if (message.Domain !== 0)
writer.tag(2, WireType.Varint).int32(message.Domain);
/* repeated api.ProjectType ProjectTypes = 3; */
if (message.ProjectTypes.length) {
writer.tag(3, WireType.LengthDelimited).fork();
for (let i = 0; i < message.ProjectTypes.length; i++)
writer.int32(message.ProjectTypes[i]);
writer.join();
}
/* bool HasMetadata = 4; */
if (message.HasMetadata !== false)
writer.tag(4, WireType.Varint).bool(message.HasMetadata);
/* bool HasDataRestriction = 5; */
if (message.HasDataRestriction !== false)
writer.tag(5, WireType.Varint).bool(message.HasDataRestriction);
/* bool IsIndexed = 6; */
if (message.IsIndexed !== false)
writer.tag(6, WireType.Varint).bool(message.IsIndexed);
/* repeated string KpiGroups = 7; */
for (let i = 0; i < message.KpiGroups.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroups[i]);
/* uint32 ModelVersion = 8; */
if (message.ModelVersion !== 0)
writer.tag(8, WireType.Varint).uint32(message.ModelVersion);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.EntityDefinition
*/
export const EntityDefinition = new EntityDefinition$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CrossFineQuery$Type extends MessageType<CrossFineQuery> {
constructor() {
super("api.CrossFineQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 3, name: "LimitFilter", kind: "scalar", localName: "LimitFilter", jsonName: "LimitFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
{ no: 4, name: "QueryContext", kind: "scalar", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
{ no: 6, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<CrossFineQuery>): CrossFineQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.LimitFilter = "";
message.QueryContext = "";
message.SearchTagProjects = [];
message.SearchTagUsers = [];
if (value !== undefined)
reflectionMergePartial<CrossFineQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFineQuery): CrossFineQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryBasicHeader Header */ 1:
message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.BlockFilter BlockFilters */ 2:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string LimitFilter */ 3:
message.LimitFilter = reader.string();
break;
case /* string QueryContext */ 4:
message.QueryContext = reader.string();
break;
case /* repeated string SearchTagProjects */ 5:
message.SearchTagProjects.push(reader.string());
break;
case /* repeated string SearchTagUsers */ 6:
message.SearchTagUsers.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: CrossFineQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryBasicHeader Header = 1; */
if (message.Header)
QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 2; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LimitFilter = 3; */
if (message.LimitFilter !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LimitFilter);
/* string QueryContext = 4; */
if (message.QueryContext !== "")
writer.tag(4, WireType.LengthDelimited).string(message.QueryContext);
/* repeated string SearchTagProjects = 5; */
for (let i = 0; i < message.SearchTagProjects.length; i++)
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
/* repeated string SearchTagUsers = 6; */
for (let i = 0; i < message.SearchTagUsers.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagUsers[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.CrossFineQuery
*/
export const CrossFineQuery = new CrossFineQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CrossFindByMatchQuery$Type extends MessageType<CrossFindByMatchQuery> {
constructor() {
super("api.CrossFindByMatchQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 3, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } },
{ no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
{ no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<CrossFindByMatchQuery>): CrossFindByMatchQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.MatchFields = [];
message.SearchTagProjects = [];
message.SearchTagUsers = [];
if (value !== undefined)
reflectionMergePartial<CrossFindByMatchQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchQuery): CrossFindByMatchQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryBasicHeader Header */ 1:
message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.BlockFilter BlockFilters */ 2:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MatchField MatchFields */ 3:
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string SearchTagProjects */ 4:
message.SearchTagProjects.push(reader.string());
break;
case /* repeated string SearchTagUsers */ 5:
message.SearchTagUsers.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: CrossFindByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryBasicHeader Header = 1; */
if (message.Header)
QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 2; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MatchField MatchFields = 3; */
for (let i = 0; i < message.MatchFields.length; i++)
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated string SearchTagProjects = 4; */
for (let i = 0; i < message.SearchTagProjects.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
/* repeated string SearchTagUsers = 5; */
for (let i = 0; i < message.SearchTagUsers.length; i++)
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagUsers[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.CrossFindByMatchQuery
*/
export const CrossFindByMatchQuery = new CrossFindByMatchQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMatchQuery> {
constructor() {
super("api.CrossFindElementByMatchQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
{ no: 4, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } },
{ no: 5, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } },
{ no: 6, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
{ no: 7, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<CrossFindElementByMatchQuery>): CrossFindElementByMatchQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
message.SearchTagProjects = [];
message.SearchTagUsers = [];
if (value !== undefined)
reflectionMergePartial<CrossFindElementByMatchQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindElementByMatchQuery): CrossFindElementByMatchQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header */ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.BlockFilter BlockFilters */ 2:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.MatchElementField MatchElementField */ 3:
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
break;
case /* api.EntityType UsageContextEntity */ 4:
message.UsageContextEntity = reader.int32();
break;
case /* string UsageContextPath */ 5:
message.UsageContextPath = reader.string();
break;
case /* repeated string SearchTagProjects */ 6:
message.SearchTagProjects.push(reader.string());
break;
case /* repeated string SearchTagUsers */ 7:
message.SearchTagUsers.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: CrossFindElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 2; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.MatchElementField MatchElementField = 3; */
if (message.MatchElementField)
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.EntityType UsageContextEntity = 4; */
if (message.UsageContextEntity !== 0)
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
/* string UsageContextPath = 5; */
if (message.UsageContextPath !== "")
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
/* repeated string SearchTagProjects = 6; */
for (let i = 0; i < message.SearchTagProjects.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
/* repeated string SearchTagUsers = 7; */
for (let i = 0; i < message.SearchTagUsers.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.SearchTagUsers[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.CrossFindElementByMatchQuery
*/
export const CrossFindElementByMatchQuery = new CrossFindElementByMatchQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CrossFindByMatchResult$Type extends MessageType<CrossFindByMatchResult> {
constructor() {
super("api.CrossFindByMatchResult", [
{ no: 1, name: "MatchResults", kind: "message", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchFieldResult }
]);
}
create(value?: PartialMessage<CrossFindByMatchResult>): CrossFindByMatchResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.MatchResults = [];
if (value !== undefined)
reflectionMergePartial<CrossFindByMatchResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchResult): CrossFindByMatchResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.MatchFieldResult MatchResults */ 1:
message.MatchResults.push(MatchFieldResult.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: CrossFindByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.MatchFieldResult MatchResults = 1; */
for (let i = 0; i < message.MatchResults.length; i++)
MatchFieldResult.internalBinaryWrite(message.MatchResults[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.CrossFindByMatchResult
*/
export const CrossFindByMatchResult = new CrossFindByMatchResult$Type();