Latest generation

This commit is contained in:
ci core model
2025-05-26 12:14:28 +00:00
parent 65247e7fe4
commit cc9c6d0b4c
197 changed files with 15132 additions and 15052 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
// @generated from protobuf file "resource.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -17,15 +17,15 @@ import { ResourceType } from "./shared";
*/
export interface Resource {
/**
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
* @generated from protobuf field: string ID = 1
*/
ID: string;
/**
* @generated from protobuf field: api.ResourceType Type = 2 [json_name = "Type"];
* @generated from protobuf field: api.ResourceType Type = 2
*/
Type: ResourceType;
/**
* @generated from protobuf field: string ParentID = 3 [json_name = "ParentID"];
* @generated from protobuf field: string ParentID = 3
*/
ParentID: string;
}
@@ -34,7 +34,7 @@ export interface Resource {
*/
export interface CreateResourceRequest {
/**
* @generated from protobuf field: api.Resource Resource = 1 [json_name = "Resource"];
* @generated from protobuf field: api.Resource Resource = 1
*/
Resource?: Resource;
}
@@ -43,7 +43,7 @@ export interface CreateResourceRequest {
*/
export interface CreateResourceResponse {
/**
* @generated from protobuf field: api.Resource Resource = 1 [json_name = "Resource"];
* @generated from protobuf field: api.Resource Resource = 1
*/
Resource?: Resource;
}
@@ -52,7 +52,7 @@ export interface CreateResourceResponse {
*/
export interface DeleteResourceRequest {
/**
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
* @generated from protobuf field: string ID = 1
*/
ID: string;
}
@@ -66,11 +66,11 @@ export interface DeleteResourceResponse {
*/
export interface ListResourcesRequest {
/**
* @generated from protobuf field: api.ResourceType ResourceType = 1 [json_name = "ResourceType"];
* @generated from protobuf field: api.ResourceType ResourceType = 1
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ParentID = 2 [json_name = "ParentID"];
* @generated from protobuf field: string ParentID = 2
*/
ParentID: string;
}
@@ -79,7 +79,7 @@ export interface ListResourcesRequest {
*/
export interface ListResourcesResponse {
/**
* @generated from protobuf field: repeated api.Resource Resources = 1 [json_name = "Resources"];
* @generated from protobuf field: repeated api.Resource Resources = 1
*/
Resources: Resource[];
}
@@ -88,11 +88,11 @@ export interface ListResourcesResponse {
*/
export interface CleanResourceRequest {
/**
* @generated from protobuf field: api.ResourceType ResourceType = 1 [json_name = "ResourceType"];
* @generated from protobuf field: api.ResourceType ResourceType = 1
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ResourceID = 2 [json_name = "ResourceID"];
* @generated from protobuf field: string ResourceID = 2
*/
ResourceID: string;
}
@@ -124,13 +124,13 @@ class Resource$Type extends MessageType<Resource> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID = 1 [json_name = "ID"];*/ 1:
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* api.ResourceType Type = 2 [json_name = "Type"];*/ 2:
case /* api.ResourceType Type */ 2:
message.Type = reader.int32();
break;
case /* string ParentID = 3 [json_name = "ParentID"];*/ 3:
case /* string ParentID */ 3:
message.ParentID = reader.string();
break;
default:
@@ -145,13 +145,13 @@ class Resource$Type extends MessageType<Resource> {
return message;
}
internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1 [json_name = "ID"]; */
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* api.ResourceType Type = 2 [json_name = "Type"]; */
/* api.ResourceType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
/* string ParentID = 3 [json_name = "ParentID"]; */
/* string ParentID = 3; */
if (message.ParentID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ParentID);
let u = options.writeUnknownFields;
@@ -182,7 +182,7 @@ class CreateResourceRequest$Type extends MessageType<CreateResourceRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Resource Resource = 1 [json_name = "Resource"];*/ 1:
case /* api.Resource Resource */ 1:
message.Resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.Resource);
break;
default:
@@ -197,7 +197,7 @@ class CreateResourceRequest$Type extends MessageType<CreateResourceRequest> {
return message;
}
internalBinaryWrite(message: CreateResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Resource Resource = 1 [json_name = "Resource"]; */
/* api.Resource Resource = 1; */
if (message.Resource)
Resource.internalBinaryWrite(message.Resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -228,7 +228,7 @@ class CreateResourceResponse$Type extends MessageType<CreateResourceResponse> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Resource Resource = 1 [json_name = "Resource"];*/ 1:
case /* api.Resource Resource */ 1:
message.Resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.Resource);
break;
default:
@@ -243,7 +243,7 @@ class CreateResourceResponse$Type extends MessageType<CreateResourceResponse> {
return message;
}
internalBinaryWrite(message: CreateResourceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Resource Resource = 1 [json_name = "Resource"]; */
/* api.Resource Resource = 1; */
if (message.Resource)
Resource.internalBinaryWrite(message.Resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -275,7 +275,7 @@ class DeleteResourceRequest$Type extends MessageType<DeleteResourceRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID = 1 [json_name = "ID"];*/ 1:
case /* string ID */ 1:
message.ID = reader.string();
break;
default:
@@ -290,7 +290,7 @@ class DeleteResourceRequest$Type extends MessageType<DeleteResourceRequest> {
return message;
}
internalBinaryWrite(message: DeleteResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1 [json_name = "ID"]; */
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
@@ -362,10 +362,10 @@ class ListResourcesRequest$Type extends MessageType<ListResourcesRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResourceType ResourceType = 1 [json_name = "ResourceType"];*/ 1:
case /* api.ResourceType ResourceType */ 1:
message.ResourceType = reader.int32();
break;
case /* string ParentID = 2 [json_name = "ParentID"];*/ 2:
case /* string ParentID */ 2:
message.ParentID = reader.string();
break;
default:
@@ -380,10 +380,10 @@ class ListResourcesRequest$Type extends MessageType<ListResourcesRequest> {
return message;
}
internalBinaryWrite(message: ListResourcesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResourceType ResourceType = 1 [json_name = "ResourceType"]; */
/* api.ResourceType ResourceType = 1; */
if (message.ResourceType !== 0)
writer.tag(1, WireType.Varint).int32(message.ResourceType);
/* string ParentID = 2 [json_name = "ParentID"]; */
/* string ParentID = 2; */
if (message.ParentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ParentID);
let u = options.writeUnknownFields;
@@ -415,7 +415,7 @@ class ListResourcesResponse$Type extends MessageType<ListResourcesResponse> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Resource Resources = 1 [json_name = "Resources"];*/ 1:
case /* repeated api.Resource Resources */ 1:
message.Resources.push(Resource.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
@@ -430,7 +430,7 @@ class ListResourcesResponse$Type extends MessageType<ListResourcesResponse> {
return message;
}
internalBinaryWrite(message: ListResourcesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Resource Resources = 1 [json_name = "Resources"]; */
/* repeated api.Resource Resources = 1; */
for (let i = 0; i < message.Resources.length; i++)
Resource.internalBinaryWrite(message.Resources[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -464,10 +464,10 @@ class CleanResourceRequest$Type extends MessageType<CleanResourceRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResourceType ResourceType = 1 [json_name = "ResourceType"];*/ 1:
case /* api.ResourceType ResourceType */ 1:
message.ResourceType = reader.int32();
break;
case /* string ResourceID = 2 [json_name = "ResourceID"];*/ 2:
case /* string ResourceID */ 2:
message.ResourceID = reader.string();
break;
default:
@@ -482,10 +482,10 @@ class CleanResourceRequest$Type extends MessageType<CleanResourceRequest> {
return message;
}
internalBinaryWrite(message: CleanResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResourceType ResourceType = 1 [json_name = "ResourceType"]; */
/* api.ResourceType ResourceType = 1; */
if (message.ResourceType !== 0)
writer.tag(1, WireType.Varint).int32(message.ResourceType);
/* string ResourceID = 2 [json_name = "ResourceID"]; */
/* string ResourceID = 2; */
if (message.ResourceID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ResourceID);
let u = options.writeUnknownFields;