Latest generation

This commit is contained in:
ci core model
2026-02-26 15:28:52 +00:00
parent 186eb5803f
commit 185153e725
3 changed files with 116 additions and 2 deletions

103
model.ts
View File

@@ -11,6 +11,7 @@ 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 { EntityDefinition } from "./shared";
import { RequestProjectHeader } from "./shared";
// message MetadataSchema {
// string Id = 1;
@@ -177,6 +178,20 @@ export interface GetEntitiesResult {
*/
Entities: string[];
}
/**
* @generated from protobuf message api.ListEntitiesRequest
*/
export interface ListEntitiesRequest {
}
/**
* @generated from protobuf message api.ListEntitiesResult
*/
export interface ListEntitiesResult {
/**
* @generated from protobuf field: repeated api.EntityDefinition Entities = 1
*/
Entities: EntityDefinition[];
}
// @generated message type with reflection information, may provide speed optimized methods
class DataFilters$Type extends MessageType<DataFilters> {
constructor() {
@@ -752,6 +767,91 @@ class GetEntitiesResult$Type extends MessageType<GetEntitiesResult> {
* @generated MessageType for protobuf message api.GetEntitiesResult
*/
export const GetEntitiesResult = new GetEntitiesResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListEntitiesRequest$Type extends MessageType<ListEntitiesRequest> {
constructor() {
super("api.ListEntitiesRequest", []);
}
create(value?: PartialMessage<ListEntitiesRequest>): ListEntitiesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListEntitiesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntitiesRequest): ListEntitiesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListEntitiesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListEntitiesRequest
*/
export const ListEntitiesRequest = new ListEntitiesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListEntitiesResult$Type extends MessageType<ListEntitiesResult> {
constructor() {
super("api.ListEntitiesResult", [
{ no: 1, name: "Entities", kind: "message", localName: "Entities", jsonName: "Entities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityDefinition }
]);
}
create(value?: PartialMessage<ListEntitiesResult>): ListEntitiesResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Entities = [];
if (value !== undefined)
reflectionMergePartial<ListEntitiesResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntitiesResult): ListEntitiesResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.EntityDefinition Entities */ 1:
message.Entities.push(EntityDefinition.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: ListEntitiesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.EntityDefinition Entities = 1; */
for (let i = 0; i < message.Entities.length; i++)
EntityDefinition.internalBinaryWrite(message.Entities[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListEntitiesResult
*/
export const ListEntitiesResult = new ListEntitiesResult$Type();
/**
* @generated ServiceType for protobuf service api.ModelService
*/
@@ -760,5 +860,6 @@ export const ModelService = new ServiceType("api.ModelService", [
{ name: "GetEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntityModelRequest, O: GetEntityModelResult },
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "GetEntitiesWithMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with metadata" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "ListEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Return a list of definitions of entities" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: ListEntitiesRequest, O: ListEntitiesResult }
], { "api.k8sService": "project-model-server" });