You've already forked npm-core-sdk
937 lines
50 KiB
TypeScript
937 lines
50 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @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
|
|
*/
|
|
Severity: SeverityLevel;
|
|
/**
|
|
* Where the log occured, for example \"CORE\"
|
|
*
|
|
* @generated from protobuf field: string Namespace = 2
|
|
*/
|
|
Namespace: string;
|
|
/**
|
|
* When the log occured
|
|
*
|
|
* @generated from protobuf field: api.DateTime DateTime = 3
|
|
*/
|
|
DateTime?: DateTime;
|
|
/**
|
|
* Technical message of the log
|
|
*
|
|
* @generated from protobuf field: api.LabelStructure TechMessage = 4
|
|
*/
|
|
TechMessage?: LabelStructure;
|
|
/**
|
|
* User message of the log
|
|
*
|
|
* @generated from protobuf field: api.LabelStructure UserMessage = 5
|
|
*/
|
|
UserMessage?: LabelStructure;
|
|
/**
|
|
* Detailed elements of the log
|
|
*
|
|
* @generated from protobuf field: repeated api.LabelStructure DetailElements = 6
|
|
*/
|
|
DetailElements: LabelStructure[];
|
|
/**
|
|
* Correlation ID attached to the log
|
|
*
|
|
* @generated from protobuf field: string CorrelationID = 7
|
|
*/
|
|
CorrelationID: string;
|
|
/**
|
|
* Context payload attached to the log
|
|
*
|
|
* @generated from protobuf field: string ContextPayload = 8
|
|
*/
|
|
ContextPayload: string;
|
|
/**
|
|
* Type attached to the log, can be anything such as Item, Actor, Order...
|
|
*
|
|
* @generated from protobuf field: string Type = 9
|
|
*/
|
|
Type: string;
|
|
/**
|
|
* Task attached to the log, can be anything such as Created, Notified, Find...
|
|
*
|
|
* @generated from protobuf field: string Task = 10
|
|
*/
|
|
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
|
|
*/
|
|
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
|
|
*/
|
|
StackTrace: string;
|
|
/**
|
|
* Tags attached to the log
|
|
*
|
|
* @generated from protobuf field: repeated string Tags = 13
|
|
*/
|
|
Tags: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLog
|
|
*/
|
|
export interface PlatformLog {
|
|
/**
|
|
* @generated from protobuf field: api.EventHeader LastEventHeader = 1
|
|
*/
|
|
LastEventHeader?: EventHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2
|
|
*/
|
|
ID?: EntityID;
|
|
/**
|
|
* @generated from protobuf field: api.PlatformLogPayload Payload = 3
|
|
*/
|
|
Payload?: PlatformLogPayload;
|
|
}
|
|
// ==========================================
|
|
// Requests
|
|
|
|
// Create
|
|
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogCreateRequest
|
|
*/
|
|
export interface PlatformLogCreateRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2
|
|
*/
|
|
ID?: EntityID;
|
|
/**
|
|
* @generated from protobuf field: api.PlatformLogPayload Payload = 3
|
|
*/
|
|
Payload?: PlatformLogPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogCreateResponse
|
|
*/
|
|
export interface PlatformLogCreateResponse {
|
|
/**
|
|
* @generated from protobuf field: api.ResponseHeader Header = 1
|
|
*/
|
|
Header?: ResponseHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2
|
|
*/
|
|
ID?: EntityID;
|
|
}
|
|
/**
|
|
* Find
|
|
*
|
|
* @generated from protobuf message api.PlatformLogFindRequest
|
|
*/
|
|
export interface PlatformLogFindRequest {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
|
*/
|
|
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
|
|
*
|
|
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 6
|
|
*/
|
|
BlockFilters: BlockFilter[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogFindResult
|
|
*/
|
|
export interface PlatformLogFindResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1
|
|
*/
|
|
Header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.PlatformLog Objects = 2
|
|
*/
|
|
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
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.EntityID IDs = 2
|
|
*/
|
|
IDs: EntityID[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogGetByIdsResult
|
|
*/
|
|
export interface PlatformLogGetByIdsResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1
|
|
*/
|
|
Header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.PlatformLog Objects = 2
|
|
*/
|
|
Objects: PlatformLog[];
|
|
}
|
|
// FindMatchingFieldValues
|
|
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogByMatchRequest
|
|
*/
|
|
export interface PlatformLogByMatchRequest {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 5
|
|
*/
|
|
BlockFilters: BlockFilter[];
|
|
/**
|
|
* MatchField list structure, for FindMatching query
|
|
*
|
|
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
|
*/
|
|
MatchFields: MatchField[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.PlatformLogByMatchResult
|
|
*/
|
|
export interface PlatformLogByMatchResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2
|
|
*/
|
|
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", localName: "Severity", 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", localName: "Namespace", 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", localName: "DateTime", 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", localName: "TechMessage", 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", localName: "UserMessage", 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", localName: "DetailElements", jsonName: "DetailElements", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelStructure, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Detailed elements of the log" } } },
|
|
{ no: 7, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", 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", localName: "ContextPayload", 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", localName: "Type", 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", localName: "Task", 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", localName: "OriginalID", 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", localName: "StackTrace", 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", localName: "Tags", 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:
|
|
message.Severity = reader.int32();
|
|
break;
|
|
case /* string Namespace */ 2:
|
|
message.Namespace = reader.string();
|
|
break;
|
|
case /* api.DateTime DateTime */ 3:
|
|
message.DateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.DateTime);
|
|
break;
|
|
case /* api.LabelStructure TechMessage */ 4:
|
|
message.TechMessage = LabelStructure.internalBinaryRead(reader, reader.uint32(), options, message.TechMessage);
|
|
break;
|
|
case /* api.LabelStructure UserMessage */ 5:
|
|
message.UserMessage = LabelStructure.internalBinaryRead(reader, reader.uint32(), options, message.UserMessage);
|
|
break;
|
|
case /* repeated api.LabelStructure DetailElements */ 6:
|
|
message.DetailElements.push(LabelStructure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string CorrelationID */ 7:
|
|
message.CorrelationID = reader.string();
|
|
break;
|
|
case /* string ContextPayload */ 8:
|
|
message.ContextPayload = reader.string();
|
|
break;
|
|
case /* string Type */ 9:
|
|
message.Type = reader.string();
|
|
break;
|
|
case /* string Task */ 10:
|
|
message.Task = reader.string();
|
|
break;
|
|
case /* string OriginalID */ 11:
|
|
message.OriginalID = reader.string();
|
|
break;
|
|
case /* string StackTrace */ 12:
|
|
message.StackTrace = reader.string();
|
|
break;
|
|
case /* repeated string 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; */
|
|
if (message.Severity !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.Severity);
|
|
/* string Namespace = 2; */
|
|
if (message.Namespace !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Namespace);
|
|
/* api.DateTime DateTime = 3; */
|
|
if (message.DateTime)
|
|
DateTime.internalBinaryWrite(message.DateTime, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.LabelStructure TechMessage = 4; */
|
|
if (message.TechMessage)
|
|
LabelStructure.internalBinaryWrite(message.TechMessage, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.LabelStructure UserMessage = 5; */
|
|
if (message.UserMessage)
|
|
LabelStructure.internalBinaryWrite(message.UserMessage, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.LabelStructure DetailElements = 6; */
|
|
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; */
|
|
if (message.CorrelationID !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.CorrelationID);
|
|
/* string ContextPayload = 8; */
|
|
if (message.ContextPayload !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.ContextPayload);
|
|
/* string Type = 9; */
|
|
if (message.Type !== "")
|
|
writer.tag(9, WireType.LengthDelimited).string(message.Type);
|
|
/* string Task = 10; */
|
|
if (message.Task !== "")
|
|
writer.tag(10, WireType.LengthDelimited).string(message.Task);
|
|
/* string OriginalID = 11; */
|
|
if (message.OriginalID !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.OriginalID);
|
|
/* string StackTrace = 12; */
|
|
if (message.StackTrace !== "")
|
|
writer.tag(12, WireType.LengthDelimited).string(message.StackTrace);
|
|
/* repeated string Tags = 13; */
|
|
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", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader },
|
|
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
|
|
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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:
|
|
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
|
|
break;
|
|
case /* api.EntityID ID */ 2:
|
|
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
|
break;
|
|
case /* api.PlatformLogPayload 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; */
|
|
if (message.LastEventHeader)
|
|
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.EntityID ID = 2; */
|
|
if (message.ID)
|
|
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.PlatformLogPayload Payload = 3; */
|
|
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", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
|
|
{ no: 3, name: "Payload", kind: "message", localName: "Payload", 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:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.EntityID ID */ 2:
|
|
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
|
break;
|
|
case /* api.PlatformLogPayload 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; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.EntityID ID = 2; */
|
|
if (message.ID)
|
|
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.PlatformLogPayload Payload = 3; */
|
|
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", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
|
{ no: 2, name: "ID", kind: "message", localName: "ID", 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:
|
|
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.EntityID 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; */
|
|
if (message.Header)
|
|
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.EntityID ID = 2; */
|
|
if (message.ID)
|
|
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
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", localName: "Header", 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", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, 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:
|
|
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:
|
|
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; */
|
|
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; */
|
|
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", localName: "Header", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, 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:
|
|
message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* repeated api.PlatformLog 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; */
|
|
if (message.Header)
|
|
ResultHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.PlatformLog Objects = 2; */
|
|
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", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, 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:
|
|
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* repeated api.EntityID 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; */
|
|
if (message.Header)
|
|
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.EntityID IDs = 2; */
|
|
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", localName: "Header", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, 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:
|
|
message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* repeated api.PlatformLog 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; */
|
|
if (message.Header)
|
|
ResultHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.PlatformLog Objects = 2; */
|
|
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", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
|
{ no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }
|
|
], { "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:
|
|
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters */ 5:
|
|
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.MatchField 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; */
|
|
if (message.Header)
|
|
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.BlockFilter BlockFilters = 5; */
|
|
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; */
|
|
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", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, 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:
|
|
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; */
|
|
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" });
|