Latest generation

This commit is contained in:
ci core model
2025-06-24 13:53:43 +00:00
parent 09464bd00c
commit c734d775b8
5 changed files with 508 additions and 452 deletions

151
shared.ts
View File

@@ -1957,6 +1957,39 @@ export interface LabelByLanguage {
*/
LanguageCodeISO6391: string;
}
/**
*
* Standard structure, for request to upload file
*
* @generated from protobuf message api.FileDataRequest
*/
export interface FileDataRequest {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: bytes Content = 2
*/
Content: Uint8Array;
}
/**
* @generated from protobuf message api.FileDataResponse
*/
export interface FileDataResponse {
/**
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: string ContentType = 2
*/
ContentType: string;
/**
* @generated from protobuf field: bytes Content = 3
*/
Content: Uint8Array;
}
/**
* List all data set in the model
*
@@ -8217,3 +8250,121 @@ class LabelByLanguage$Type extends MessageType<LabelByLanguage> {
* @generated MessageType for protobuf message api.LabelByLanguage
*/
export const LabelByLanguage = new LabelByLanguage$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FileDataRequest$Type extends MessageType<FileDataRequest> {
constructor() {
super("api.FileDataRequest", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 12 /*ScalarType.BYTES*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
}
create(value?: PartialMessage<FileDataRequest>): FileDataRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Content = new Uint8Array(0);
if (value !== undefined)
reflectionMergePartial<FileDataRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDataRequest): FileDataRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* bytes Content */ 2:
message.Content = reader.bytes();
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: FileDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* bytes Content = 2; */
if (message.Content.length)
writer.tag(2, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.FileDataRequest
*/
export const FileDataRequest = new FileDataRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FileDataResponse$Type extends MessageType<FileDataResponse> {
constructor() {
super("api.FileDataResponse", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 12 /*ScalarType.BYTES*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
}
create(value?: PartialMessage<FileDataResponse>): FileDataResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.ContentType = "";
message.Content = new Uint8Array(0);
if (value !== undefined)
reflectionMergePartial<FileDataResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDataResponse): FileDataResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* string ContentType */ 2:
message.ContentType = reader.string();
break;
case /* bytes Content */ 3:
message.Content = reader.bytes();
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: FileDataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* string ContentType = 2; */
if (message.ContentType !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ContentType);
/* bytes Content = 3; */
if (message.Content.length)
writer.tag(3, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.FileDataResponse
*/
export const FileDataResponse = new FileDataResponse$Type();