Files
npm-viz-sdk/core/shared.ts
2025-03-18 15:51:18 +00:00

3151 lines
146 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @generated by protobuf-ts 2.9.5
// @generated from protobuf file "core/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";
// Deprecated Header for all requests on project resource
/**
* @generated from protobuf message api.RequestHeader
*/
export interface RequestHeader {
/**
* @generated from protobuf field: string Project = 1 [json_name = "Project"];
*/
project: string; // string Author = 2 [(validate.rules).string.min_len = 1];
// string Sync = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "(Not use yet) Wait the event request to be applied"}];
}
// Header for all requests on project resources
/**
* Header for all requests on project resource
*
* @generated from protobuf message api.RequestProjectHeader
*/
export interface RequestProjectHeader {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
}
// Header for all requests on organisation resources
/**
* Header for all requests on project resource
*
* @generated from protobuf message api.RequestOrganisationHeader
*/
export interface RequestOrganisationHeader {
/**
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
*/
organisationID: string;
}
/**
* Header for all requests on bucket resources
*
* @generated from protobuf message api.RequestBucketHeader
*/
export interface RequestBucketHeader {
/**
* @generated from protobuf field: string BucketID = 1 [json_name = "BucketID"];
*/
bucketID: string;
}
/**
* Header for all requests on partnerApp resources
*
* @generated from protobuf message api.RequestPartnerAppHeader
*/
export interface RequestPartnerAppHeader {
/**
* @generated from protobuf field: string PartnerAppID = 1 [json_name = "PartnerAppID"];
*/
partnerAppID: string;
}
/**
* Header for all response messages
*
* @generated from protobuf message api.ResponseHeader
*/
export interface ResponseHeader {
}
/**
* Header for all query messages
*
* @generated from protobuf message api.QueryHeader
*/
export interface QueryHeader {
/**
* @generated from protobuf field: string Project = 1 [json_name = "Project"];
*/
project: string;
/**
* string Author = 2;
*
* @generated from protobuf field: string PagingState = 3 [json_name = "PagingState"];
*/
pagingState: string;
/**
* @generated from protobuf field: string Limit = 4 [json_name = "Limit"];
*/
limit: string;
/**
* @generated from protobuf field: bool LocalizedLabel = 5 [json_name = "LocalizedLabel"];
*/
localizedLabel: boolean;
}
/**
* Header for all query project messages
*
* @generated from protobuf message api.QueryProjectHeader
*/
export interface QueryProjectHeader {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
/**
* @generated from protobuf field: string PagingState = 3 [json_name = "PagingState"];
*/
pagingState: string;
/**
* @generated from protobuf field: string Limit = 4 [json_name = "Limit"];
*/
limit: string;
/**
* @generated from protobuf field: bool LocalizedLabel = 5 [json_name = "LocalizedLabel"];
*/
localizedLabel: boolean;
}
/**
* @generated from protobuf message api.ResultHeader
*/
export interface ResultHeader {
/**
* @generated from protobuf field: string PagingState = 1 [json_name = "PagingState"];
*/
pagingState: string;
}
/**
* Header for all command messages
*
* @generated from protobuf message api.CommandHeader
*/
export interface CommandHeader {
/**
* @generated from protobuf field: string ActionCommand = 1 [json_name = "ActionCommand"];
*/
actionCommand: string;
/**
* @generated from protobuf field: api.DateTime CommandTS = 2 [json_name = "CommandTS"];
*/
commandTS?: DateTime;
/**
* @generated from protobuf field: string Project = 3 [json_name = "Project"];
*/
project: string;
/**
* @generated from protobuf field: string FromDomain = 4 [json_name = "FromDomain"];
*/
fromDomain: string;
/**
* @generated from protobuf field: string FromObject = 5 [json_name = "FromObject"];
*/
fromObject: string;
/**
* @generated from protobuf field: string FromRule = 6 [json_name = "FromRule"];
*/
fromRule: string;
}
/**
* Header for all event messages
*
* @generated from protobuf message api.EventHeader
*/
export interface EventHeader {
/**
* @generated from protobuf field: string InputEvent = 1 [json_name = "InputEvent"];
*/
inputEvent: string;
/**
* @generated from protobuf field: api.DateTime EventTS = 2 [json_name = "EventTS"];
*/
eventTS?: DateTime;
/**
* @generated from protobuf field: string Project = 3 [json_name = "Project"];
*/
project: string;
/**
* @generated from protobuf field: string Author = 4 [json_name = "Author"];
*/
author: string;
/**
* @generated from protobuf field: string EventID = 5 [json_name = "EventID"];
*/
eventID: string;
}
/**
* 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];
*
* @generated from protobuf field: string RefID = 2 [json_name = "RefID"];
*/
refID: string;
}
/**
* @generated from protobuf message api.GenericObject
*/
export interface GenericObject {
/**
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
*/
lastEventHeader?: EventHeader;
/**
* @generated from protobuf field: api.GenericObjectPayload Payload = 2 [json_name = "Payload"];
*/
payload?: GenericObjectPayload;
}
/**
* @generated from protobuf message api.GenericObjectPayload
*/
export interface GenericObjectPayload {
/**
* @generated from protobuf field: api.EntityID ID = 1 [json_name = "ID"];
*/
iD?: EntityID;
}
/**
* Common structures
*
* @generated from protobuf message api.DateTime
*/
export interface DateTime {
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from protobuf field: string DateTime = 1 [json_name = "DateTime"];
*/
dateTime: string;
/**
* Time zone from where the author emits the event
*
* @generated from protobuf field: string AuthorTimeZone = 2 [json_name = "AuthorTimeZone"];
*/
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 [json_name = "String"];
*/
string: string;
} | {
oneofKind: "int";
/**
* @generated from protobuf field: int64 Int = 2 [json_name = "Int"];
*/
int: bigint;
} | {
oneofKind: "float";
/**
* @generated from protobuf field: float Float = 3 [json_name = "Float"];
*/
float: number;
} | {
oneofKind: "bool";
/**
* @generated from protobuf field: bool Bool = 4 [json_name = "Bool"];
*/
bool: boolean;
} | {
oneofKind: "timestamp";
/**
* @generated from protobuf field: api.DateTime Timestamp = 5 [json_name = "Timestamp"];
*/
timestamp: DateTime;
} | {
oneofKind: undefined;
};
}
/**
* @generated from protobuf message api.QuantityLength
*/
export interface QuantityLength {
/**
* @generated from protobuf field: float Value = 1 [json_name = "Value"];
*/
value: number;
/**
* @generated from protobuf field: api.Length Unit = 2 [json_name = "Unit"];
*/
unit: Length;
}
/**
* @generated from protobuf message api.QuantityVolume
*/
export interface QuantityVolume {
/**
* @generated from protobuf field: float Value = 1 [json_name = "Value"];
*/
value: number;
/**
* @generated from protobuf field: api.Volume Unit = 2 [json_name = "Unit"];
*/
unit: Volume;
}
/**
* @generated from protobuf message api.QuantityWeight
*/
export interface QuantityWeight {
/**
* @generated from protobuf field: float Value = 1 [json_name = "Value"];
*/
value: number;
/**
* @generated from protobuf field: api.Weight Unit = 2 [json_name = "Unit"];
*/
unit: Weight;
}
/**
* @generated from protobuf message api.QuantityArea
*/
export interface QuantityArea {
/**
* @generated from protobuf field: float Value = 1 [json_name = "Value"];
*/
value: number;
/**
* @generated from protobuf field: api.Area Unit = 2 [json_name = "Unit"];
*/
unit: Area;
}
/**
* @generated from protobuf message api.QuantityUnit
*/
export interface QuantityUnit {
/**
* @generated from protobuf field: float Value = 1 [json_name = "Value"];
*/
value: number;
/**
* @generated from protobuf field: api.DimensionLess Unit = 2 [json_name = "Unit"];
*/
unit: DimensionLess;
}
/**
* Domain description
*
* RequestProjectHeader Header = 1;
*
* @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 [json_name = "Header"];
*/
header?: ResponseHeader;
/**
* @generated from protobuf field: api.DomainDescription Payload = 2 [json_name = "Payload"];
*/
payload?: DomainDescription;
}
/**
* @generated from protobuf message api.DomainDescription
*/
export interface DomainDescription {
/**
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
*/
name: string;
/**
* @generated from protobuf field: repeated api.ObjectDescription ObjectDescription = 2 [json_name = "ObjectDescription"];
*/
objectDescription: ObjectDescription[];
}
/**
* @generated from protobuf message api.ObjectDescription
*/
export interface ObjectDescription {
/**
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
*/
name: string;
/**
* @generated from protobuf field: repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"];
*/
apiAction: ObjectAction[];
/**
* @generated from protobuf field: string PayloadJSON = 3 [json_name = "PayloadJSON"];
*/
payloadJSON: string;
/**
* @generated from protobuf field: repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"];
*/
apiInput: ObjectAction[];
/**
* @generated from protobuf field: repeated api.ObjectAction ApiQuery = 5 [json_name = "ApiQuery"];
*/
apiQuery: ObjectAction[];
}
/**
* @generated from protobuf message api.ObjectAction
*/
export interface ObjectAction {
/**
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
*/
name: string;
/**
* @generated from protobuf field: string JsonTemplate = 2 [json_name = "JsonTemplate"];
*/
jsonTemplate: string;
}
/**
* *
* Message to store metadata definition
*
* @generated from protobuf message api.MetadataElement
*/
export interface MetadataElement {
/**
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
*/
key: string;
/**
* @generated from protobuf field: api.ValueType Value = 2 [json_name = "Value"];
*/
value?: ValueType;
}
//
// Simple filter structure for Find query
/**
* Filter on a simple value
*
* @generated from protobuf message api.SimpleFilter
*/
export interface SimpleFilter {
/**
* Filter path
*
* @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"];
*/
attribute: string;
/**
* Use this parameter if only one value
*
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
*/
value: string;
/**
* Use this parameter if more than one value
*
* @generated from protobuf field: repeated string Values = 3 [json_name = "Values"];
*/
values: string[];
/**
* \" EQUAL: 'EQUAL',  DIFF: 'DIFF',  START_BY: 'START_BY',  NOT_START_BY: 'NOT_START_BY',  FINISH_BY: 'FINISH_BY',  NOT_FINISH_BY: 'NOT_FINISH_BY',  CONTAINS: 'CONTAINS',  NOT_CONTAINS: 'NOT_CONTAINS'\"
*
* @generated from protobuf field: string Operator = 4 [json_name = "Operator"];
*/
operator: string;
/**
* metadata's key
*
* @generated from protobuf field: string CombinedID = 5 [json_name = "CombinedID"];
*/
combinedID: string;
}
/**
*
* Combined filter structure for Find query
*
* @generated from protobuf message api.CombinedFilter
*/
export interface CombinedFilter {
/**
* @generated from protobuf field: string Path = 1 [json_name = "Path"];
*/
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 [json_name = "CombinedID"];
*/
combinedID: string;
}
//
// Range filter structure for Find query
/**
* Filter between two values
*
* @generated from protobuf message api.RangeFilter
*/
export interface RangeFilter {
/**
* Filter path
*
* @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"];
*/
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 [json_name = "CombinedID"];
*/
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 [json_name = "BlockFilters"];
*/
blockFilters: BlockFilter[];
}
/**
*
* MatchField structure, for FindMatching query
*
* @generated from protobuf message api.MatchField
*/
export interface MatchField {
/**
* @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"];
*/
attribute: string;
/**
* @generated from protobuf field: string AttributeCombined = 2 [json_name = "AttributeCombined"];
*/
attributeCombined: string;
/**
* @generated from protobuf field: string CombinedID = 3 [json_name = "CombinedID"];
*/
combinedID: string;
}
/**
*
* structure containing error key & value
*
* @generated from protobuf message api.ErrorDetail
*/
export interface ErrorDetail {
/**
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
*/
key: string;
/**
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
*/
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 [json_name = "ErrorCode"];
*/
errorCode: string; // n1error code (xxyyzzzz)
/**
* @generated from protobuf field: string ErrorTrace = 2 [json_name = "ErrorTrace"];
*/
errorTrace: string; // generated error code, for debugging purposes(in logs)
/**
* @generated from protobuf field: repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"];
*/
errorDetails: ErrorDetail[];
/**
* @generated from protobuf field: string ContextType = 4 [json_name = "ContextType"];
*/
contextType: string; // Entity
/**
* @generated from protobuf field: string ContextProcess = 5 [json_name = "ContextProcess"];
*/
contextProcess: string; // Method grpc
/**
* @generated from protobuf field: string ContextPayload = 6 [json_name = "ContextPayload"];
*/
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 [json_name = "Key"];
*/
key: string;
/**
* string Value = 2;
*
* @generated from protobuf field: api.ValueType Value = 3 [json_name = "Value"];
*/
value?: ValueType;
}
/**
* @generated from protobuf message api.LabelStructure
*/
export interface LabelStructure {
/**
* @generated from protobuf field: string Code = 1 [json_name = "Code"];
*/
code: string;
/**
* @generated from protobuf field: string Label = 2 [json_name = "Label"];
*/
label: string;
/**
* @generated from protobuf field: repeated api.ParamElement Params = 3 [json_name = "Params"];
*/
params: ParamElement[]; // map of parameter to be put/replaced in the error label
}
//
// NATS
/**
* @generated from protobuf message api.Credentials
*/
export interface Credentials {
/**
* @generated from protobuf field: string Jwt = 1 [json_name = "Jwt"];
*/
jwt: string;
/**
* @generated from protobuf field: string Seed = 2 [json_name = "Seed"];
*/
seed: 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 [json_name = "Int32"];
*/
int32: number;
}
/**
* @generated from protobuf message api.BoolObject
*/
export interface BoolObject {
/**
* @generated from protobuf field: bool Bool = 1 [json_name = "Bool"];
*/
bool: boolean;
}
/**
* @generated from protobuf message api.StringObject
*/
export interface StringObject {
/**
* @generated from protobuf field: string String = 1 [json_name = "String"];
*/
string: string;
}
/**
* @generated from protobuf message api.StringDateObject
*/
export interface StringDateObject {
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from protobuf field: string DateTime = 10 [json_name = "DateTime"];
*/
dateTime: string;
}
/**
* @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 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", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }
]);
}
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 [json_name = "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 [json_name = "Project"]; */
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 RequestProjectHeader$Type extends MessageType<RequestProjectHeader> {
constructor() {
super("api.RequestProjectHeader", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Header for all requests on project resource", required: ["ProjectID"] } } });
}
create(value?: PartialMessage<RequestProjectHeader>): RequestProjectHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
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 [json_name = "ProjectID"];*/ 1:
message.projectID = 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 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
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", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Header for all requests on project resource", required: ["OrganisationID"] } } });
}
create(value?: PartialMessage<RequestOrganisationHeader>): RequestOrganisationHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.organisationID = "";
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 [json_name = "OrganisationID"];*/ 1:
message.organisationID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: RequestOrganisationHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
if (message.organisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.organisationID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.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", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }
]);
}
create(value?: PartialMessage<RequestBucketHeader>): RequestBucketHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.bucketID = "";
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 [json_name = "BucketID"];*/ 1:
message.bucketID = 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 [json_name = "BucketID"]; */
if (message.bucketID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.bucketID);
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", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }
]);
}
create(value?: PartialMessage<RequestPartnerAppHeader>): RequestPartnerAppHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.partnerAppID = "";
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 [json_name = "PartnerAppID"];*/ 1:
message.partnerAppID = 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 [json_name = "PartnerAppID"]; */
if (message.partnerAppID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.partnerAppID);
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 ResponseHeader$Type extends MessageType<ResponseHeader> {
constructor() {
super("api.ResponseHeader", []);
}
create(value?: PartialMessage<ResponseHeader>): ResponseHeader {
const message = globalThis.Object.create((this.messagePrototype!));
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) {
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 {
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 QueryHeader$Type extends MessageType<QueryHeader> {
constructor() {
super("api.QueryHeader", [
{ no: 1, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } } } },
{ no: 3, name: "PagingState", kind: "scalar", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Limit", kind: "scalar", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "LocalizedLabel", kind: "scalar", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ }
]);
}
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 [json_name = "Project"];*/ 1:
message.project = reader.string();
break;
case /* string PagingState = 3 [json_name = "PagingState"];*/ 3:
message.pagingState = reader.string();
break;
case /* string Limit = 4 [json_name = "Limit"];*/ 4:
message.limit = reader.string();
break;
case /* bool LocalizedLabel = 5 [json_name = "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 [json_name = "Project"]; */
if (message.project !== "")
writer.tag(1, WireType.LengthDelimited).string(message.project);
/* string PagingState = 3 [json_name = "PagingState"]; */
if (message.pagingState !== "")
writer.tag(3, WireType.LengthDelimited).string(message.pagingState);
/* string Limit = 4 [json_name = "Limit"]; */
if (message.limit !== "")
writer.tag(4, WireType.LengthDelimited).string(message.limit);
/* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; */
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 QueryProjectHeader$Type extends MessageType<QueryProjectHeader> {
constructor() {
super("api.QueryProjectHeader", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } },
{ no: 3, name: "PagingState", kind: "scalar", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Limit", kind: "scalar", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "LocalizedLabel", kind: "scalar", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ }
]);
}
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 [json_name = "ProjectID"];*/ 1:
message.projectID = reader.string();
break;
case /* string PagingState = 3 [json_name = "PagingState"];*/ 3:
message.pagingState = reader.string();
break;
case /* string Limit = 4 [json_name = "Limit"];*/ 4:
message.limit = reader.string();
break;
case /* bool LocalizedLabel = 5 [json_name = "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 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
/* string PagingState = 3 [json_name = "PagingState"]; */
if (message.pagingState !== "")
writer.tag(3, WireType.LengthDelimited).string(message.pagingState);
/* string Limit = 4 [json_name = "Limit"]; */
if (message.limit !== "")
writer.tag(4, WireType.LengthDelimited).string(message.limit);
/* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; */
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", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ }
]);
}
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 [json_name = "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 [json_name = "PagingState"]; */
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", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "CommandTS", kind: "message", jsonName: "CommandTS", T: () => DateTime },
{ no: 3, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "FromDomain", kind: "scalar", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "FromObject", kind: "scalar", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "FromRule", kind: "scalar", jsonName: "FromRule", 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 = "";
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 [json_name = "ActionCommand"];*/ 1:
message.actionCommand = reader.string();
break;
case /* api.DateTime CommandTS = 2 [json_name = "CommandTS"];*/ 2:
message.commandTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.commandTS);
break;
case /* string Project = 3 [json_name = "Project"];*/ 3:
message.project = reader.string();
break;
case /* string FromDomain = 4 [json_name = "FromDomain"];*/ 4:
message.fromDomain = reader.string();
break;
case /* string FromObject = 5 [json_name = "FromObject"];*/ 5:
message.fromObject = reader.string();
break;
case /* string FromRule = 6 [json_name = "FromRule"];*/ 6:
message.fromRule = 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 [json_name = "ActionCommand"]; */
if (message.actionCommand !== "")
writer.tag(1, WireType.LengthDelimited).string(message.actionCommand);
/* api.DateTime CommandTS = 2 [json_name = "CommandTS"]; */
if (message.commandTS)
DateTime.internalBinaryWrite(message.commandTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Project = 3 [json_name = "Project"]; */
if (message.project !== "")
writer.tag(3, WireType.LengthDelimited).string(message.project);
/* string FromDomain = 4 [json_name = "FromDomain"]; */
if (message.fromDomain !== "")
writer.tag(4, WireType.LengthDelimited).string(message.fromDomain);
/* string FromObject = 5 [json_name = "FromObject"]; */
if (message.fromObject !== "")
writer.tag(5, WireType.LengthDelimited).string(message.fromObject);
/* string FromRule = 6 [json_name = "FromRule"]; */
if (message.fromRule !== "")
writer.tag(6, WireType.LengthDelimited).string(message.fromRule);
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", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "EventTS", kind: "message", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } } } },
{ no: 4, name: "Author", kind: "scalar", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "EventID", kind: "scalar", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<EventHeader>): EventHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.inputEvent = "";
message.project = "";
message.author = "";
message.eventID = "";
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 [json_name = "InputEvent"];*/ 1:
message.inputEvent = reader.string();
break;
case /* api.DateTime EventTS = 2 [json_name = "EventTS"];*/ 2:
message.eventTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.eventTS);
break;
case /* string Project = 3 [json_name = "Project"];*/ 3:
message.project = reader.string();
break;
case /* string Author = 4 [json_name = "Author"];*/ 4:
message.author = reader.string();
break;
case /* string EventID = 5 [json_name = "EventID"];*/ 5:
message.eventID = 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: EventHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string InputEvent = 1 [json_name = "InputEvent"]; */
if (message.inputEvent !== "")
writer.tag(1, WireType.LengthDelimited).string(message.inputEvent);
/* api.DateTime EventTS = 2 [json_name = "EventTS"]; */
if (message.eventTS)
DateTime.internalBinaryWrite(message.eventTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Project = 3 [json_name = "Project"]; */
if (message.project !== "")
writer.tag(3, WireType.LengthDelimited).string(message.project);
/* string Author = 4 [json_name = "Author"]; */
if (message.author !== "")
writer.tag(4, WireType.LengthDelimited).string(message.author);
/* string EventID = 5 [json_name = "EventID"]; */
if (message.eventID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.eventID);
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", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier" }, "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<EntityID>): EntityID {
const message = globalThis.Object.create((this.messagePrototype!));
message.refID = "";
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 [json_name = "RefID"];*/ 2:
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: EntityID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RefID = 2 [json_name = "RefID"]; */
if (message.refID !== "")
writer.tag(2, 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.EntityID
*/
export const EntityID = new EntityID$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", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "Payload", kind: "message", 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 [json_name = "LastEventHeader"];*/ 1:
message.lastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.lastEventHeader);
break;
case /* api.GenericObjectPayload Payload = 2 [json_name = "Payload"];*/ 2:
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 [json_name = "LastEventHeader"]; */
if (message.lastEventHeader)
EventHeader.internalBinaryWrite(message.lastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.GenericObjectPayload Payload = 2 [json_name = "Payload"]; */
if (message.payload)
GenericObjectPayload.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.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", [
{ no: 1, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID }
]);
}
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) {
case /* api.EntityID ID = 1 [json_name = "ID"];*/ 1:
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
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: GenericObjectPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EntityID ID = 1 [json_name = "ID"]; */
if (message.iD)
EntityID.internalBinaryWrite(message.iD, 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.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", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "2020-11-26T21:32:52+02:00" }, "validate.rules": { string: { dateIso8601: true } }, "api.kpi": true } },
{ no: 2, name: "AuthorTimeZone", kind: "scalar", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event", example: "Europe/Paris" }, "validate.rules": { string: { tzData: true } } } }
]);
}
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 [json_name = "DateTime"];*/ 1:
message.dateTime = reader.string();
break;
case /* string AuthorTimeZone = 2 [json_name = "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 [json_name = "DateTime"]; */
if (message.dateTime !== "")
writer.tag(1, WireType.LengthDelimited).string(message.dateTime);
/* string AuthorTimeZone = 2 [json_name = "AuthorTimeZone"]; */
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", jsonName: "String", oneof: "valueType", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Int", kind: "scalar", jsonName: "Int", oneof: "valueType", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 3, name: "Float", kind: "scalar", jsonName: "Float", oneof: "valueType", T: 2 /*ScalarType.FLOAT*/ },
{ no: 4, name: "Bool", kind: "scalar", jsonName: "Bool", oneof: "valueType", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "Timestamp", kind: "message", jsonName: "Timestamp", oneof: "valueType", T: () => DateTime }
]);
}
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 [json_name = "String"];*/ 1:
message.valueType = {
oneofKind: "string",
string: reader.string()
};
break;
case /* int64 Int = 2 [json_name = "Int"];*/ 2:
message.valueType = {
oneofKind: "int",
int: reader.int64().toBigInt()
};
break;
case /* float Float = 3 [json_name = "Float"];*/ 3:
message.valueType = {
oneofKind: "float",
float: reader.float()
};
break;
case /* bool Bool = 4 [json_name = "Bool"];*/ 4:
message.valueType = {
oneofKind: "bool",
bool: reader.bool()
};
break;
case /* api.DateTime Timestamp = 5 [json_name = "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 [json_name = "String"]; */
if (message.valueType.oneofKind === "string")
writer.tag(1, WireType.LengthDelimited).string(message.valueType.string);
/* int64 Int = 2 [json_name = "Int"]; */
if (message.valueType.oneofKind === "int")
writer.tag(2, WireType.Varint).int64(message.valueType.int);
/* float Float = 3 [json_name = "Float"]; */
if (message.valueType.oneofKind === "float")
writer.tag(3, WireType.Bit32).float(message.valueType.float);
/* bool Bool = 4 [json_name = "Bool"]; */
if (message.valueType.oneofKind === "bool")
writer.tag(4, WireType.Varint).bool(message.valueType.bool);
/* api.DateTime Timestamp = 5 [json_name = "Timestamp"]; */
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 QuantityLength$Type extends MessageType<QuantityLength> {
constructor() {
super("api.QuantityLength", [
{ no: 1, name: "Value", kind: "scalar", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", 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 [json_name = "Value"];*/ 1:
message.value = reader.float();
break;
case /* api.Length Unit = 2 [json_name = "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 [json_name = "Value"]; */
if (message.value !== 0)
writer.tag(1, WireType.Bit32).float(message.value);
/* api.Length Unit = 2 [json_name = "Unit"]; */
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", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpi": true } },
{ no: 2, name: "Unit", kind: "enum", jsonName: "Unit", T: () => ["api.Volume", Volume], options: { "api.kpi": 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 [json_name = "Value"];*/ 1:
message.value = reader.float();
break;
case /* api.Volume Unit = 2 [json_name = "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 [json_name = "Value"]; */
if (message.value !== 0)
writer.tag(1, WireType.Bit32).float(message.value);
/* api.Volume Unit = 2 [json_name = "Unit"]; */
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", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpi": true } },
{ no: 2, name: "Unit", kind: "enum", jsonName: "Unit", T: () => ["api.Weight", Weight], options: { "api.kpi": 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 [json_name = "Value"];*/ 1:
message.value = reader.float();
break;
case /* api.Weight Unit = 2 [json_name = "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 [json_name = "Value"]; */
if (message.value !== 0)
writer.tag(1, WireType.Bit32).float(message.value);
/* api.Weight Unit = 2 [json_name = "Unit"]; */
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", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", 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 [json_name = "Value"];*/ 1:
message.value = reader.float();
break;
case /* api.Area Unit = 2 [json_name = "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 [json_name = "Value"]; */
if (message.value !== 0)
writer.tag(1, WireType.Bit32).float(message.value);
/* api.Area Unit = 2 [json_name = "Unit"]; */
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", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/ },
{ no: 2, name: "Unit", kind: "enum", 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 [json_name = "Value"];*/ 1:
message.value = reader.float();
break;
case /* api.DimensionLess Unit = 2 [json_name = "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 [json_name = "Value"]; */
if (message.value !== 0)
writer.tag(1, WireType.Bit32).float(message.value);
/* api.DimensionLess Unit = 2 [json_name = "Unit"]; */
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", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "Payload", kind: "message", 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 [json_name = "Header"];*/ 1:
message.header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
break;
case /* api.DomainDescription Payload = 2 [json_name = "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 [json_name = "Header"]; */
if (message.header)
ResponseHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.DomainDescription Payload = 2 [json_name = "Payload"]; */
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", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ObjectDescription", kind: "message", jsonName: "ObjectDescription", repeat: 1 /*RepeatType.PACKED*/, 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 [json_name = "Name"];*/ 1:
message.name = reader.string();
break;
case /* repeated api.ObjectDescription ObjectDescription = 2 [json_name = "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 [json_name = "Name"]; */
if (message.name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.name);
/* repeated api.ObjectDescription ObjectDescription = 2 [json_name = "ObjectDescription"]; */
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", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ApiAction", kind: "message", jsonName: "ApiAction", repeat: 1 /*RepeatType.PACKED*/, T: () => ObjectAction },
{ no: 3, name: "PayloadJSON", kind: "scalar", jsonName: "PayloadJSON", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "ApiInput", kind: "message", jsonName: "ApiInput", repeat: 1 /*RepeatType.PACKED*/, T: () => ObjectAction },
{ no: 5, name: "ApiQuery", kind: "message", jsonName: "ApiQuery", repeat: 1 /*RepeatType.PACKED*/, 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 [json_name = "Name"];*/ 1:
message.name = reader.string();
break;
case /* repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"];*/ 2:
message.apiAction.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string PayloadJSON = 3 [json_name = "PayloadJSON"];*/ 3:
message.payloadJSON = reader.string();
break;
case /* repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"];*/ 4:
message.apiInput.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ObjectAction ApiQuery = 5 [json_name = "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 [json_name = "Name"]; */
if (message.name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.name);
/* repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"]; */
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 [json_name = "PayloadJSON"]; */
if (message.payloadJSON !== "")
writer.tag(3, WireType.LengthDelimited).string(message.payloadJSON);
/* repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"]; */
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 [json_name = "ApiQuery"]; */
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", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "JsonTemplate", kind: "scalar", 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 [json_name = "Name"];*/ 1:
message.name = reader.string();
break;
case /* string JsonTemplate = 2 [json_name = "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 [json_name = "Name"]; */
if (message.name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.name);
/* string JsonTemplate = 2 [json_name = "JsonTemplate"]; */
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", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Value", kind: "message", jsonName: "Value", T: () => ValueType }
]);
}
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 [json_name = "Key"];*/ 1:
message.key = reader.string();
break;
case /* api.ValueType Value = 2 [json_name = "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 [json_name = "Key"]; */
if (message.key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.key);
/* api.ValueType Value = 2 [json_name = "Value"]; */
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", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.refID\"" } } },
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" } } },
{ no: 3, name: "Values", kind: "scalar", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" } } },
{ no: 4, name: "Operator", kind: "scalar", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "\" EQUAL: 'EQUAL',\u00A0 DIFF: 'DIFF',\u00A0 START_BY: 'START_BY',\u00A0 NOT_START_BY: 'NOT_START_BY',\u00A0 FINISH_BY: 'FINISH_BY',\u00A0 NOT_FINISH_BY: 'NOT_FINISH_BY',\u00A0 CONTAINS: 'CONTAINS',\u00A0 NOT_CONTAINS: 'NOT_CONTAINS'\"" } } },
{ no: 5, name: "CombinedID", kind: "scalar", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "metadata's key" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Filter on a simple value" } } });
}
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 [json_name = "Attribute"];*/ 1:
message.attribute = reader.string();
break;
case /* string Value = 2 [json_name = "Value"];*/ 2:
message.value = reader.string();
break;
case /* repeated string Values = 3 [json_name = "Values"];*/ 3:
message.values.push(reader.string());
break;
case /* string Operator = 4 [json_name = "Operator"];*/ 4:
message.operator = reader.string();
break;
case /* string CombinedID = 5 [json_name = "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 [json_name = "Attribute"]; */
if (message.attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.attribute);
/* string Value = 2 [json_name = "Value"]; */
if (message.value !== "")
writer.tag(2, WireType.LengthDelimited).string(message.value);
/* repeated string Values = 3 [json_name = "Values"]; */
for (let i = 0; i < message.values.length; i++)
writer.tag(3, WireType.LengthDelimited).string(message.values[i]);
/* string Operator = 4 [json_name = "Operator"]; */
if (message.operator !== "")
writer.tag(4, WireType.LengthDelimited).string(message.operator);
/* string CombinedID = 5 [json_name = "CombinedID"]; */
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", jsonName: "Path", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "simpleFilters", kind: "message", repeat: 1 /*RepeatType.PACKED*/, 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: 1 /*RepeatType.PACKED*/, T: () => RangeFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Range filter structure for Find query" } } },
{ no: 4, name: "CombinedID", kind: "scalar", 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 [json_name = "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 [json_name = "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 [json_name = "Path"]; */
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 [json_name = "CombinedID"]; */
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", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" }, "validate.rules": { string: { maxLen: "300" } } } },
{ no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" }, "validate.rules": { string: { maxLen: "300" } } } },
{ no: 4, name: "CombinedID", kind: "scalar", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" }, "validate.rules": { string: { maxLen: "300" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Filter between two values" } } });
}
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 [json_name = "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 [json_name = "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 [json_name = "Attribute"]; */
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 [json_name = "CombinedID"]; */
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: 1 /*RepeatType.PACKED*/, 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: 1 /*RepeatType.PACKED*/, T: () => RangeFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Range filter structure for Find query" } } },
{ no: 3, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, 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 [json_name = "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 [json_name = "BlockFilters"]; */
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", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "AttributeCombined", kind: "scalar", jsonName: "AttributeCombined", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "CombinedID", kind: "scalar", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ }
]);
}
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 [json_name = "Attribute"];*/ 1:
message.attribute = reader.string();
break;
case /* string AttributeCombined = 2 [json_name = "AttributeCombined"];*/ 2:
message.attributeCombined = reader.string();
break;
case /* string CombinedID = 3 [json_name = "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 [json_name = "Attribute"]; */
if (message.attribute !== "")
writer.tag(1, WireType.LengthDelimited).string(message.attribute);
/* string AttributeCombined = 2 [json_name = "AttributeCombined"]; */
if (message.attributeCombined !== "")
writer.tag(2, WireType.LengthDelimited).string(message.attributeCombined);
/* string CombinedID = 3 [json_name = "CombinedID"]; */
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 ErrorDetail$Type extends MessageType<ErrorDetail> {
constructor() {
super("api.ErrorDetail", [
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Value", kind: "scalar", 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 [json_name = "Key"];*/ 1:
message.key = reader.string();
break;
case /* string Value = 2 [json_name = "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 [json_name = "Key"]; */
if (message.key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.key);
/* string Value = 2 [json_name = "Value"]; */
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", jsonName: "ErrorCode", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ErrorTrace", kind: "scalar", jsonName: "ErrorTrace", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ErrorDetails", kind: "message", jsonName: "ErrorDetails", repeat: 1 /*RepeatType.PACKED*/, T: () => ErrorDetail },
{ no: 4, name: "ContextType", kind: "scalar", jsonName: "ContextType", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "ContextProcess", kind: "scalar", jsonName: "ContextProcess", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "ContextPayload", kind: "scalar", 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 [json_name = "ErrorCode"];*/ 1:
message.errorCode = reader.string();
break;
case /* string ErrorTrace = 2 [json_name = "ErrorTrace"];*/ 2:
message.errorTrace = reader.string();
break;
case /* repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"];*/ 3:
message.errorDetails.push(ErrorDetail.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ContextType = 4 [json_name = "ContextType"];*/ 4:
message.contextType = reader.string();
break;
case /* string ContextProcess = 5 [json_name = "ContextProcess"];*/ 5:
message.contextProcess = reader.string();
break;
case /* string ContextPayload = 6 [json_name = "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 [json_name = "ErrorCode"]; */
if (message.errorCode !== "")
writer.tag(1, WireType.LengthDelimited).string(message.errorCode);
/* string ErrorTrace = 2 [json_name = "ErrorTrace"]; */
if (message.errorTrace !== "")
writer.tag(2, WireType.LengthDelimited).string(message.errorTrace);
/* repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"]; */
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 [json_name = "ContextType"]; */
if (message.contextType !== "")
writer.tag(4, WireType.LengthDelimited).string(message.contextType);
/* string ContextProcess = 5 [json_name = "ContextProcess"]; */
if (message.contextProcess !== "")
writer.tag(5, WireType.LengthDelimited).string(message.contextProcess);
/* string ContextPayload = 6 [json_name = "ContextPayload"]; */
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", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Value", kind: "message", 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 [json_name = "Key"];*/ 1:
message.key = reader.string();
break;
case /* api.ValueType Value = 3 [json_name = "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 [json_name = "Key"]; */
if (message.key !== "")
writer.tag(1, WireType.LengthDelimited).string(message.key);
/* api.ValueType Value = 3 [json_name = "Value"]; */
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", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Label", kind: "scalar", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Params", kind: "message", jsonName: "Params", repeat: 1 /*RepeatType.PACKED*/, T: () => ParamElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" }, "api.aggKey": "Key" } }
]);
}
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 [json_name = "Code"];*/ 1:
message.code = reader.string();
break;
case /* string Label = 2 [json_name = "Label"];*/ 2:
message.label = reader.string();
break;
case /* repeated api.ParamElement Params = 3 [json_name = "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 [json_name = "Code"]; */
if (message.code !== "")
writer.tag(1, WireType.LengthDelimited).string(message.code);
/* string Label = 2 [json_name = "Label"]; */
if (message.label !== "")
writer.tag(2, WireType.LengthDelimited).string(message.label);
/* repeated api.ParamElement Params = 3 [json_name = "Params"]; */
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 Credentials$Type extends MessageType<Credentials> {
constructor() {
super("api.Credentials", [
{ no: 1, name: "Jwt", kind: "scalar", jsonName: "Jwt", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Seed", kind: "scalar", jsonName: "Seed", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<Credentials>): Credentials {
const message = globalThis.Object.create((this.messagePrototype!));
message.jwt = "";
message.seed = "";
if (value !== undefined)
reflectionMergePartial<Credentials>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Credentials): Credentials {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Jwt = 1 [json_name = "Jwt"];*/ 1:
message.jwt = reader.string();
break;
case /* string Seed = 2 [json_name = "Seed"];*/ 2:
message.seed = 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: Credentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Jwt = 1 [json_name = "Jwt"]; */
if (message.jwt !== "")
writer.tag(1, WireType.LengthDelimited).string(message.jwt);
/* string Seed = 2 [json_name = "Seed"]; */
if (message.seed !== "")
writer.tag(2, WireType.LengthDelimited).string(message.seed);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Credentials
*/
export const Credentials = new Credentials$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", 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 [json_name = "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 [json_name = "Int32"]; */
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", 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 [json_name = "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 [json_name = "Bool"]; */
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", 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 [json_name = "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 [json_name = "String"]; */
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", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "2020-11-26T21:32:52+02:00" }, "validate.rules": { string: { dateIso8601: true } } } }
]);
}
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 [json_name = "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 [json_name = "DateTime"]; */
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();