Latest generation

This commit is contained in:
ci core model
2025-03-18 15:41:49 +00:00
parent 3004d24f38
commit f021bb2b84
186 changed files with 147778 additions and 2 deletions

152
clickhouseMetrics.ts Normal file
View File

@@ -0,0 +1,152 @@
// @generated by protobuf-ts 2.9.5
// @generated from protobuf file "clickhouseMetrics.proto" (package "api", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
/**
* @generated from protobuf message api.Metrics
*/
export interface Metrics {
/**
* @generated from protobuf field: int64 CurrentTime = 1 [json_name = "CurrentTime"];
*/
currentTime: bigint;
/**
* @generated from protobuf field: string OrganisationID = 2 [json_name = "OrganisationID"];
*/
organisationID: string;
/**
* @generated from protobuf field: string ProjectID = 3 [json_name = "ProjectID"];
*/
projectID: string;
/**
* @generated from protobuf field: string EntityService = 4 [json_name = "EntityService"];
*/
entityService: string;
/**
* @generated from protobuf field: string Method = 5 [json_name = "Method"];
*/
method: string;
/**
* @generated from protobuf field: string UserID = 6 [json_name = "UserID"];
*/
userID: string;
/**
* @generated from protobuf field: string UserMail = 7 [json_name = "UserMail"];
*/
userMail: string;
/**
* @generated from protobuf field: string RefID = 8 [json_name = "RefID"];
*/
refID: string;
}
// @generated message type with reflection information, may provide speed optimized methods
class Metrics$Type extends MessageType<Metrics> {
constructor() {
super("api.Metrics", [
{ no: 1, name: "CurrentTime", kind: "scalar", jsonName: "CurrentTime", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 2, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "EntityService", kind: "scalar", jsonName: "EntityService", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "Method", kind: "scalar", jsonName: "Method", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "UserID", kind: "scalar", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "UserMail", kind: "scalar", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "RefID", kind: "scalar", jsonName: "RefID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<Metrics>): Metrics {
const message = globalThis.Object.create((this.messagePrototype!));
message.currentTime = 0n;
message.organisationID = "";
message.projectID = "";
message.entityService = "";
message.method = "";
message.userID = "";
message.userMail = "";
message.refID = "";
if (value !== undefined)
reflectionMergePartial<Metrics>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Metrics): Metrics {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* int64 CurrentTime = 1 [json_name = "CurrentTime"];*/ 1:
message.currentTime = reader.int64().toBigInt();
break;
case /* string OrganisationID = 2 [json_name = "OrganisationID"];*/ 2:
message.organisationID = reader.string();
break;
case /* string ProjectID = 3 [json_name = "ProjectID"];*/ 3:
message.projectID = reader.string();
break;
case /* string EntityService = 4 [json_name = "EntityService"];*/ 4:
message.entityService = reader.string();
break;
case /* string Method = 5 [json_name = "Method"];*/ 5:
message.method = reader.string();
break;
case /* string UserID = 6 [json_name = "UserID"];*/ 6:
message.userID = reader.string();
break;
case /* string UserMail = 7 [json_name = "UserMail"];*/ 7:
message.userMail = reader.string();
break;
case /* string RefID = 8 [json_name = "RefID"];*/ 8:
message.refID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: Metrics, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* int64 CurrentTime = 1 [json_name = "CurrentTime"]; */
if (message.currentTime !== 0n)
writer.tag(1, WireType.Varint).int64(message.currentTime);
/* string OrganisationID = 2 [json_name = "OrganisationID"]; */
if (message.organisationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.organisationID);
/* string ProjectID = 3 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.projectID);
/* string EntityService = 4 [json_name = "EntityService"]; */
if (message.entityService !== "")
writer.tag(4, WireType.LengthDelimited).string(message.entityService);
/* string Method = 5 [json_name = "Method"]; */
if (message.method !== "")
writer.tag(5, WireType.LengthDelimited).string(message.method);
/* string UserID = 6 [json_name = "UserID"]; */
if (message.userID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.userID);
/* string UserMail = 7 [json_name = "UserMail"]; */
if (message.userMail !== "")
writer.tag(7, WireType.LengthDelimited).string(message.userMail);
/* string RefID = 8 [json_name = "RefID"]; */
if (message.refID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.refID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Metrics
*/
export const Metrics = new Metrics$Type();