You've already forked npm-core-sdk
937 lines
52 KiB
TypeScript
937 lines
52 KiB
TypeScript
// @generated by protobuf-ts 2.9.6
|
|
// @generated from protobuf file "logger.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { MatchFieldResult } from "./shared";
|
|
import { MatchField } from "./shared";
|
|
import { ResultHeader } from "./shared";
|
|
import { BlockFilter } from "./shared";
|
|
import { QueryProjectHeader } from "./shared";
|
|
import { ResponseHeader } from "./shared";
|
|
import { RequestProjectHeader } from "./shared";
|
|
import { EntityID } from "./shared";
|
|
import { EventHeader } from "./shared";
|
|
import { LabelStructure } from "./shared";
|
|
import { DateTime } from "./shared";
|
|
import { SeverityLevel } from "./shared";
|
|
// ==========================================
|
|
// Model
|
|
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogPayload
|
|
*/
|
|
export interface PlatformLogPayload {
|
|
/**
|
|
* Log severity level
|
|
*
|
|
* @generated from protobuf field: api.SeverityLevel Severity = 1 [json_name = "Severity"];
|
|
*/
|
|
severity: SeverityLevel;
|
|
/**
|
|
* Where the log occured, for example \"CORE\"
|
|
*
|
|
* @generated from protobuf field: string Namespace = 2 [json_name = "Namespace"];
|
|
*/
|
|
namespace: string;
|
|
/**
|
|
* When the log occured
|
|
*
|
|
* @generated from protobuf field: api.DateTime DateTime = 3 [json_name = "DateTime"];
|
|
*/
|
|
dateTime?: DateTime;
|
|
/**
|
|
* Technical message of the log
|
|
*
|
|
* @generated from protobuf field: api.LabelStructure TechMessage = 4 [json_name = "TechMessage"];
|
|
*/
|
|
techMessage?: LabelStructure;
|
|
/**
|
|
* User message of the log
|
|
*
|
|
* @generated from protobuf field: api.LabelStructure UserMessage = 5 [json_name = "UserMessage"];
|
|
*/
|
|
userMessage?: LabelStructure;
|
|
/**
|
|
* Detailed elements of the log
|
|
*
|
|
* @generated from protobuf field: repeated api.LabelStructure DetailElements = 6 [json_name = "DetailElements"];
|
|
*/
|
|
detailElements: LabelStructure[];
|
|
/**
|
|
* Correlation ID attached to the log
|
|
*
|
|
* @generated from protobuf field: string CorrelationID = 7 [json_name = "CorrelationID"];
|
|
*/
|
|
correlationID: string;
|
|
/**
|
|
* Context payload attached to the log
|
|
*
|
|
* @generated from protobuf field: string ContextPayload = 8 [json_name = "ContextPayload"];
|
|
*/
|
|
contextPayload: string;
|
|
/**
|
|
* Type attached to the log, can be anything such as Item, Actor, Order...
|
|
*
|
|
* @generated from protobuf field: string Type = 9 [json_name = "Type"];
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Task attached to the log, can be anything such as Created, Notified, Find...
|
|
*
|
|
* @generated from protobuf field: string Task = 10 [json_name = "Task"];
|
|
*/
|
|
task: string;
|
|
/**
|
|
* OriginalID attached to the log, can be the ID of an entity related to the log
|
|
*
|
|
* @generated from protobuf field: string OriginalID = 11 [json_name = "OriginalID"];
|
|
*/
|
|
originalID: string;
|
|
/**
|
|
* In case the log is identified as an error, the stack trace ; otherwise can be left empty
|
|
*
|
|
* @generated from protobuf field: string StackTrace = 12 [json_name = "StackTrace"];
|
|
*/
|
|
stackTrace: string;
|
|
/**
|
|
* Tags attached to the log
|
|
*
|
|
* @generated from protobuf field: repeated string Tags = 13 [json_name = "Tags"];
|
|
*/
|
|
tags: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLog
|
|
*/
|
|
export interface PlatformLog {
|
|
/**
|
|
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
|
|
*/
|
|
lastEventHeader?: EventHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
|
*/
|
|
iD?: EntityID;
|
|
/**
|
|
* @generated from protobuf field: api.PlatformLogPayload Payload = 3 [json_name = "Payload"];
|
|
*/
|
|
payload?: PlatformLogPayload;
|
|
}
|
|
// ==========================================
|
|
// Requests
|
|
|
|
// Create
|
|
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogCreateRequest
|
|
*/
|
|
export interface PlatformLogCreateRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
|
*/
|
|
iD?: EntityID;
|
|
/**
|
|
* @generated from protobuf field: api.PlatformLogPayload Payload = 3 [json_name = "Payload"];
|
|
*/
|
|
payload?: PlatformLogPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogCreateResponse
|
|
*/
|
|
export interface PlatformLogCreateResponse {
|
|
/**
|
|
* @generated from protobuf field: api.ResponseHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: ResponseHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
|
*/
|
|
iD?: EntityID;
|
|
}
|
|
/**
|
|
* Find
|
|
*
|
|
* @generated from protobuf message api.PlatformLogFindRequest
|
|
*/
|
|
export interface PlatformLogFindRequest {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: QueryProjectHeader;
|
|
/**
|
|
* Number of maximum result
|
|
*
|
|
* @generated from protobuf field: string limitFilter = 4;
|
|
*/
|
|
limitFilter: string;
|
|
/**
|
|
* @generated from protobuf field: string queryContext = 5;
|
|
*/
|
|
queryContext: string;
|
|
/**
|
|
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
|
*
|
|
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"];
|
|
*/
|
|
blockFilters: BlockFilter[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogFindResult
|
|
*/
|
|
export interface PlatformLogFindResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.PlatformLog Objects = 2 [json_name = "Objects"];
|
|
*/
|
|
objects: PlatformLog[];
|
|
/**
|
|
* @generated from protobuf field: string queryContext = 3;
|
|
*/
|
|
queryContext: string;
|
|
}
|
|
/**
|
|
* GetByIds
|
|
*
|
|
* @generated from protobuf message api.PlatformLogGetByIdsRequest
|
|
*/
|
|
export interface PlatformLogGetByIdsRequest {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: QueryProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.EntityID IDs = 2 [json_name = "IDs"];
|
|
*/
|
|
iDs: EntityID[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogGetByIdsResult
|
|
*/
|
|
export interface PlatformLogGetByIdsResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.PlatformLog Objects = 2 [json_name = "Objects"];
|
|
*/
|
|
objects: PlatformLog[];
|
|
}
|
|
// FindMatchingFieldValues
|
|
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogByMatchRequest
|
|
*/
|
|
export interface PlatformLogByMatchRequest {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: QueryProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"];
|
|
*/
|
|
blockFilters: BlockFilter[];
|
|
/**
|
|
* MatchField list structure, for FindMatching query
|
|
*
|
|
* @generated from protobuf field: repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"];
|
|
*/
|
|
matchFields: MatchField[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogByMatchResult
|
|
*/
|
|
export interface PlatformLogByMatchResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];
|
|
*/
|
|
matchResults: MatchFieldResult[];
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogPayload$Type extends MessageType<PlatformLogPayload> {
|
|
constructor() {
|
|
super("api.PlatformLogPayload", [
|
|
{ no: 1, name: "Severity", kind: "enum", jsonName: "Severity", T: () => ["api.SeverityLevel", SeverityLevel], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Log severity level" } } },
|
|
{ no: 2, name: "Namespace", kind: "scalar", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the log occured, for example \"CORE\"" } } },
|
|
{ no: 3, name: "DateTime", kind: "message", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "When the log occured" } } },
|
|
{ no: 4, name: "TechMessage", kind: "message", jsonName: "TechMessage", T: () => LabelStructure, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Technical message of the log" } } },
|
|
{ no: 5, name: "UserMessage", kind: "message", jsonName: "UserMessage", T: () => LabelStructure, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "User message of the log" } } },
|
|
{ no: 6, name: "DetailElements", kind: "message", jsonName: "DetailElements", repeat: 1 /*RepeatType.PACKED*/, T: () => LabelStructure, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Detailed elements of the log" } } },
|
|
{ no: 7, name: "CorrelationID", kind: "scalar", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Correlation ID attached to the log" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 8, name: "ContextPayload", kind: "scalar", jsonName: "ContextPayload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Context payload attached to the log" } } },
|
|
{ no: 9, name: "Type", kind: "scalar", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the log, can be anything such as Item, Actor, Order..." } } },
|
|
{ no: 10, name: "Task", kind: "scalar", jsonName: "Task", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Task attached to the log, can be anything such as Created, Notified, Find..." } } },
|
|
{ no: 11, name: "OriginalID", kind: "scalar", jsonName: "OriginalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "OriginalID attached to the log, can be the ID of an entity related to the log" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 12, name: "StackTrace", kind: "scalar", jsonName: "StackTrace", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "In case the log is identified as an error, the stack trace ; otherwise can be left empty" } } },
|
|
{ no: 13, name: "Tags", kind: "scalar", jsonName: "Tags", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tags attached to the log" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Severity", "Namespace", "DateTime", "TechMessage", "UserMessage"] } } });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogPayload>): PlatformLogPayload {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.severity = 0;
|
|
message.namespace = "";
|
|
message.detailElements = [];
|
|
message.correlationID = "";
|
|
message.contextPayload = "";
|
|
message.type = "";
|
|
message.task = "";
|
|
message.originalID = "";
|
|
message.stackTrace = "";
|
|
message.tags = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogPayload>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogPayload): PlatformLogPayload {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.SeverityLevel Severity = 1 [json_name = "Severity"];*/ 1:
|
|
message.severity = reader.int32();
|
|
break;
|
|
case /* string Namespace = 2 [json_name = "Namespace"];*/ 2:
|
|
message.namespace = reader.string();
|
|
break;
|
|
case /* api.DateTime DateTime = 3 [json_name = "DateTime"];*/ 3:
|
|
message.dateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.dateTime);
|
|
break;
|
|
case /* api.LabelStructure TechMessage = 4 [json_name = "TechMessage"];*/ 4:
|
|
message.techMessage = LabelStructure.internalBinaryRead(reader, reader.uint32(), options, message.techMessage);
|
|
break;
|
|
case /* api.LabelStructure UserMessage = 5 [json_name = "UserMessage"];*/ 5:
|
|
message.userMessage = LabelStructure.internalBinaryRead(reader, reader.uint32(), options, message.userMessage);
|
|
break;
|
|
case /* repeated api.LabelStructure DetailElements = 6 [json_name = "DetailElements"];*/ 6:
|
|
message.detailElements.push(LabelStructure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string CorrelationID = 7 [json_name = "CorrelationID"];*/ 7:
|
|
message.correlationID = reader.string();
|
|
break;
|
|
case /* string ContextPayload = 8 [json_name = "ContextPayload"];*/ 8:
|
|
message.contextPayload = reader.string();
|
|
break;
|
|
case /* string Type = 9 [json_name = "Type"];*/ 9:
|
|
message.type = reader.string();
|
|
break;
|
|
case /* string Task = 10 [json_name = "Task"];*/ 10:
|
|
message.task = reader.string();
|
|
break;
|
|
case /* string OriginalID = 11 [json_name = "OriginalID"];*/ 11:
|
|
message.originalID = reader.string();
|
|
break;
|
|
case /* string StackTrace = 12 [json_name = "StackTrace"];*/ 12:
|
|
message.stackTrace = reader.string();
|
|
break;
|
|
case /* repeated string Tags = 13 [json_name = "Tags"];*/ 13:
|
|
message.tags.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PlatformLogPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.SeverityLevel Severity = 1 [json_name = "Severity"]; */
|
|
if (message.severity !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.severity);
|
|
/* string Namespace = 2 [json_name = "Namespace"]; */
|
|
if (message.namespace !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.namespace);
|
|
/* api.DateTime DateTime = 3 [json_name = "DateTime"]; */
|
|
if (message.dateTime)
|
|
DateTime.internalBinaryWrite(message.dateTime, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.LabelStructure TechMessage = 4 [json_name = "TechMessage"]; */
|
|
if (message.techMessage)
|
|
LabelStructure.internalBinaryWrite(message.techMessage, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.LabelStructure UserMessage = 5 [json_name = "UserMessage"]; */
|
|
if (message.userMessage)
|
|
LabelStructure.internalBinaryWrite(message.userMessage, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.LabelStructure DetailElements = 6 [json_name = "DetailElements"]; */
|
|
for (let i = 0; i < message.detailElements.length; i++)
|
|
LabelStructure.internalBinaryWrite(message.detailElements[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
/* string CorrelationID = 7 [json_name = "CorrelationID"]; */
|
|
if (message.correlationID !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.correlationID);
|
|
/* string ContextPayload = 8 [json_name = "ContextPayload"]; */
|
|
if (message.contextPayload !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.contextPayload);
|
|
/* string Type = 9 [json_name = "Type"]; */
|
|
if (message.type !== "")
|
|
writer.tag(9, WireType.LengthDelimited).string(message.type);
|
|
/* string Task = 10 [json_name = "Task"]; */
|
|
if (message.task !== "")
|
|
writer.tag(10, WireType.LengthDelimited).string(message.task);
|
|
/* string OriginalID = 11 [json_name = "OriginalID"]; */
|
|
if (message.originalID !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.originalID);
|
|
/* string StackTrace = 12 [json_name = "StackTrace"]; */
|
|
if (message.stackTrace !== "")
|
|
writer.tag(12, WireType.LengthDelimited).string(message.stackTrace);
|
|
/* repeated string Tags = 13 [json_name = "Tags"]; */
|
|
for (let i = 0; i < message.tags.length; i++)
|
|
writer.tag(13, WireType.LengthDelimited).string(message.tags[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PlatformLogPayload
|
|
*/
|
|
export const PlatformLogPayload = new PlatformLogPayload$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLog$Type extends MessageType<PlatformLog> {
|
|
constructor() {
|
|
super("api.PlatformLog", [
|
|
{ no: 1, name: "LastEventHeader", kind: "message", jsonName: "LastEventHeader", T: () => EventHeader },
|
|
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID },
|
|
{ no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => PlatformLogPayload }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PlatformLog>): PlatformLog {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLog>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLog): PlatformLog {
|
|
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.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
|
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
|
|
break;
|
|
case /* api.PlatformLogPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
|
message.payload = PlatformLogPayload.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: PlatformLog, 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.EntityID ID = 2 [json_name = "ID"]; */
|
|
if (message.iD)
|
|
EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.PlatformLogPayload Payload = 3 [json_name = "Payload"]; */
|
|
if (message.payload)
|
|
PlatformLogPayload.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PlatformLog
|
|
*/
|
|
export const PlatformLog = new PlatformLog$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogCreateRequest$Type extends MessageType<PlatformLogCreateRequest> {
|
|
constructor() {
|
|
super("api.PlatformLogCreateRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID },
|
|
{ no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => PlatformLogPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } } });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogCreateRequest>): PlatformLogCreateRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogCreateRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogCreateRequest): PlatformLogCreateRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
|
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
|
|
break;
|
|
case /* api.PlatformLogPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
|
message.payload = PlatformLogPayload.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: PlatformLogCreateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
|
if (message.iD)
|
|
EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.PlatformLogPayload Payload = 3 [json_name = "Payload"]; */
|
|
if (message.payload)
|
|
PlatformLogPayload.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PlatformLogCreateRequest
|
|
*/
|
|
export const PlatformLogCreateRequest = new PlatformLogCreateRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogCreateResponse$Type extends MessageType<PlatformLogCreateResponse> {
|
|
constructor() {
|
|
super("api.PlatformLogCreateResponse", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResponseHeader },
|
|
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PlatformLogCreateResponse>): PlatformLogCreateResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogCreateResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogCreateResponse): PlatformLogCreateResponse {
|
|
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.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
|
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: PlatformLogCreateResponse, 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.EntityID ID = 2 [json_name = "ID"]; */
|
|
if (message.iD)
|
|
EntityID.internalBinaryWrite(message.iD, 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.PlatformLogCreateResponse
|
|
*/
|
|
export const PlatformLogCreateResponse = new PlatformLogCreateResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogFindRequest$Type extends MessageType<PlatformLogFindRequest> {
|
|
constructor() {
|
|
super("api.PlatformLogFindRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
|
|
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, T: () => BlockFilter }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogFindRequest>): PlatformLogFindRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.limitFilter = "";
|
|
message.queryContext = "";
|
|
message.blockFilters = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogFindRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogFindRequest): PlatformLogFindRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string limitFilter */ 4:
|
|
message.limitFilter = reader.string();
|
|
break;
|
|
case /* string queryContext */ 5:
|
|
message.queryContext = reader.string();
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"];*/ 6:
|
|
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: PlatformLogFindRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string limitFilter = 4; */
|
|
if (message.limitFilter !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.limitFilter);
|
|
/* string queryContext = 5; */
|
|
if (message.queryContext !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.queryContext);
|
|
/* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"]; */
|
|
for (let i = 0; i < message.blockFilters.length; i++)
|
|
BlockFilter.internalBinaryWrite(message.blockFilters[i], writer.tag(6, 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.PlatformLogFindRequest
|
|
*/
|
|
export const PlatformLogFindRequest = new PlatformLogFindRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogFindResult$Type extends MessageType<PlatformLogFindResult> {
|
|
constructor() {
|
|
super("api.PlatformLogFindResult", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", jsonName: "Objects", repeat: 1 /*RepeatType.PACKED*/, T: () => PlatformLog },
|
|
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PlatformLogFindResult>): PlatformLogFindResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.objects = [];
|
|
message.queryContext = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogFindResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogFindResult): PlatformLogFindResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.PlatformLog Objects = 2 [json_name = "Objects"];*/ 2:
|
|
message.objects.push(PlatformLog.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string queryContext */ 3:
|
|
message.queryContext = 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: PlatformLogFindResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
ResultHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.PlatformLog Objects = 2 [json_name = "Objects"]; */
|
|
for (let i = 0; i < message.objects.length; i++)
|
|
PlatformLog.internalBinaryWrite(message.objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* string queryContext = 3; */
|
|
if (message.queryContext !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.queryContext);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PlatformLogFindResult
|
|
*/
|
|
export const PlatformLogFindResult = new PlatformLogFindResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogGetByIdsRequest$Type extends MessageType<PlatformLogGetByIdsRequest> {
|
|
constructor() {
|
|
super("api.PlatformLogGetByIdsRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "IDs", kind: "message", jsonName: "IDs", repeat: 1 /*RepeatType.PACKED*/, T: () => EntityID }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogGetByIdsRequest>): PlatformLogGetByIdsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.iDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogGetByIdsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogGetByIdsRequest): PlatformLogGetByIdsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.EntityID IDs = 2 [json_name = "IDs"];*/ 2:
|
|
message.iDs.push(EntityID.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: PlatformLogGetByIdsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.EntityID IDs = 2 [json_name = "IDs"]; */
|
|
for (let i = 0; i < message.iDs.length; i++)
|
|
EntityID.internalBinaryWrite(message.iDs[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.PlatformLogGetByIdsRequest
|
|
*/
|
|
export const PlatformLogGetByIdsRequest = new PlatformLogGetByIdsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogGetByIdsResult$Type extends MessageType<PlatformLogGetByIdsResult> {
|
|
constructor() {
|
|
super("api.PlatformLogGetByIdsResult", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", jsonName: "Objects", repeat: 1 /*RepeatType.PACKED*/, T: () => PlatformLog }
|
|
], { "api.messageType": "Result" });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogGetByIdsResult>): PlatformLogGetByIdsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.objects = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogGetByIdsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogGetByIdsResult): PlatformLogGetByIdsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.PlatformLog Objects = 2 [json_name = "Objects"];*/ 2:
|
|
message.objects.push(PlatformLog.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: PlatformLogGetByIdsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
ResultHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.PlatformLog Objects = 2 [json_name = "Objects"]; */
|
|
for (let i = 0; i < message.objects.length; i++)
|
|
PlatformLog.internalBinaryWrite(message.objects[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.PlatformLogGetByIdsResult
|
|
*/
|
|
export const PlatformLogGetByIdsResult = new PlatformLogGetByIdsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogByMatchRequest$Type extends MessageType<PlatformLogByMatchRequest> {
|
|
constructor() {
|
|
super("api.PlatformLogByMatchRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 5, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, T: () => BlockFilter },
|
|
{ no: 6, name: "MatchFields", kind: "message", jsonName: "MatchFields", repeat: 1 /*RepeatType.PACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<PlatformLogByMatchRequest>): PlatformLogByMatchRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.blockFilters = [];
|
|
message.matchFields = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogByMatchRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogByMatchRequest): PlatformLogByMatchRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"];*/ 5:
|
|
message.blockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"];*/ 6:
|
|
message.matchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PlatformLogByMatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"]; */
|
|
for (let i = 0; i < message.blockFilters.length; i++)
|
|
BlockFilter.internalBinaryWrite(message.blockFilters[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"]; */
|
|
for (let i = 0; i < message.matchFields.length; i++)
|
|
MatchField.internalBinaryWrite(message.matchFields[i], writer.tag(6, 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.PlatformLogByMatchRequest
|
|
*/
|
|
export const PlatformLogByMatchRequest = new PlatformLogByMatchRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PlatformLogByMatchResult$Type extends MessageType<PlatformLogByMatchResult> {
|
|
constructor() {
|
|
super("api.PlatformLogByMatchResult", [
|
|
{ no: 2, name: "MatchResults", kind: "message", jsonName: "MatchResults", repeat: 1 /*RepeatType.PACKED*/, T: () => MatchFieldResult }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PlatformLogByMatchResult>): PlatformLogByMatchResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.matchResults = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PlatformLogByMatchResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformLogByMatchResult): PlatformLogByMatchResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];*/ 2:
|
|
message.matchResults.push(MatchFieldResult.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: PlatformLogByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"]; */
|
|
for (let i = 0; i < message.matchResults.length; i++)
|
|
MatchFieldResult.internalBinaryWrite(message.matchResults[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.PlatformLogByMatchResult
|
|
*/
|
|
export const PlatformLogByMatchResult = new PlatformLogByMatchResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.LoggerService
|
|
*/
|
|
export const LoggerService = new ServiceType("api.LoggerService", [
|
|
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Logger"], description: "Create a PlatformLog" }, "api.rscType": "Project", "api.roles": "Platform.Project-Error,Platform.Project-Input", "google.api.method_visibility": { restriction: "SDK" } }, I: PlatformLogCreateRequest, O: PlatformLogCreateResponse },
|
|
{ name: "GetByIds", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Logger"], description: "Get PlatformLogs from RefIDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PlatformLogGetByIdsRequest, O: PlatformLogGetByIdsResult },
|
|
{ name: "Find", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Logger"], description: "Find PlatformLogs using search criterias" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PlatformLogFindRequest, O: PlatformLogFindResult },
|
|
{ name: "FindMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Logger"], description: "using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PlatformLogByMatchRequest, O: PlatformLogByMatchResult }
|
|
], { "api.k8sService": "logger-server" });
|