Latest generation

This commit is contained in:
ci core model
2025-06-12 13:11:54 +00:00
parent 9414b2cd34
commit ae1bb15115
11 changed files with 2727 additions and 678 deletions

View File

@@ -12,180 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ModelDataSetEnum } from "./shared";
//
// message ReIndexElasticRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string TemporaryIndexPrefix = 3;
// }
//
// message ReIndexElasticResult {
// map<string, string> TaskIDs = 1;
// string TemporaryIndexPrefix = 3;
// }
//
// message DeleteIndexElasticRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string TemporaryIndexPrefix = 2;
// }
//
// message DeleteIndexElasticResult {
// map<string, bool> Completed = 1;
// }
//
// message GetReindexStatusRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// map<string, string> TaskIDs = 2;
// }
//
// message GetReindexStatusResult {
// map<string, bool> Completed = 1;
// }
//
// message GenerateElasticTemplateRequest {
// }
//
// message GenerateElasticTemplateResult {
// map<string, bool> TemplateGeneration = 1;
// }
//
// enum EsIndexStatus {
// ES_INDEX_STATUS_UNKNOWN = 0;
// ES_INDEX_STATUS_CREATED = 1;
// ES_INDEX_STATUS_COMPLETED = 2;
// ES_INDEX_STATUS_RUNNING = 3;
// ES_INDEX_STATUS_FAILED = 4;
// }
//
// message ManagedIndexInfo {
// string Alias = 1;
// string Index = 2;
// string State = 3;
// string Info = 4;
// EsIndexStatus Status = 5;
// }
// message CreateIsmPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message CreateIsmPolicyResult {
// }
// message DeleteIsmPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message DeleteIsmPolicyResult {
// }
// message CreateManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message CreateManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message GetCurrentManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message GetCurrentManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message GetEntityAllManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID", "EntityID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string EntityID = 2
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message GetEntityAllManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message RetryFailedManagedIndexPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Index"]
// }
// };
// string Index = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message RetryFailedManagedIndexPolicyResult {
// }
// message RetryAllFailedManagedIndexPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message RetryAllFailedManagedIndexPolicyResult {
// }
import { ResourceType } from "./shared";
/**
* @generated from protobuf message api.UpdateModelMappingsRequest
*/
@@ -203,18 +30,22 @@ export interface UpdateModelMappingsResult {
};
}
/**
* @generated from protobuf message api.CreateProjectMappingsRequest
* @generated from protobuf message api.CreateResourceMappingsRequest
*/
export interface CreateProjectMappingsRequest {
export interface CreateResourceMappingsRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ResourceType RscType = 2
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.CreateProjectMappingsResult
* @generated from protobuf message api.CreateResourceMappingsResult
*/
export interface CreateProjectMappingsResult {
export interface CreateResourceMappingsResult {
/**
* @generated from protobuf field: map<string, bool> TemplateGeneration = 1
*/
@@ -223,18 +54,22 @@ export interface CreateProjectMappingsResult {
};
}
/**
* @generated from protobuf message api.DeleteProjectMappingsRequest
* @generated from protobuf message api.DeleteResourceMappingsRequest
*/
export interface DeleteProjectMappingsRequest {
export interface DeleteResourceMappingsRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ResourceType RscType = 2
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.DeleteProjectMappingsResult
* @generated from protobuf message api.DeleteResourceMappingsResult
*/
export interface DeleteProjectMappingsResult {
export interface DeleteResourceMappingsResult {
/**
* @generated from protobuf field: map<string, bool> TemplateDeletion = 1
*/
@@ -247,13 +82,17 @@ export interface DeleteProjectMappingsResult {
*/
export interface ClearIndexEntityRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ModelDataSetEnum Entity = 2
*/
Entity: ModelDataSetEnum;
/**
* @generated from protobuf field: api.ResourceType RscType = 3
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.ClearIndexEntityResult
@@ -362,26 +201,31 @@ class UpdateModelMappingsResult$Type extends MessageType<UpdateModelMappingsResu
*/
export const UpdateModelMappingsResult = new UpdateModelMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMappingsRequest> {
class CreateResourceMappingsRequest$Type extends MessageType<CreateResourceMappingsRequest> {
constructor() {
super("api.CreateProjectMappingsRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
super("api.CreateResourceMappingsRequest", [
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } });
}
create(value?: PartialMessage<CreateProjectMappingsRequest>): CreateProjectMappingsRequest {
create(value?: PartialMessage<CreateResourceMappingsRequest>): CreateResourceMappingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<CreateProjectMappingsRequest>(this, message, value);
reflectionMergePartial<CreateResourceMappingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMappingsRequest): CreateProjectMappingsRequest {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateResourceMappingsRequest): CreateResourceMappingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ResourceType RscType */ 2:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -394,10 +238,13 @@ class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMapping
}
return message;
}
internalBinaryWrite(message: CreateProjectMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
internalBinaryWrite(message: CreateResourceMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ResourceType RscType = 2; */
if (message.RscType !== 0)
writer.tag(2, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -405,24 +252,24 @@ class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMapping
}
}
/**
* @generated MessageType for protobuf message api.CreateProjectMappingsRequest
* @generated MessageType for protobuf message api.CreateResourceMappingsRequest
*/
export const CreateProjectMappingsRequest = new CreateProjectMappingsRequest$Type();
export const CreateResourceMappingsRequest = new CreateResourceMappingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappingsResult> {
class CreateResourceMappingsResult$Type extends MessageType<CreateResourceMappingsResult> {
constructor() {
super("api.CreateProjectMappingsResult", [
super("api.CreateResourceMappingsResult", [
{ no: 1, name: "TemplateGeneration", kind: "map", localName: "TemplateGeneration", jsonName: "TemplateGeneration", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 8 /*ScalarType.BOOL*/ } }
]);
}
create(value?: PartialMessage<CreateProjectMappingsResult>): CreateProjectMappingsResult {
create(value?: PartialMessage<CreateResourceMappingsResult>): CreateResourceMappingsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.TemplateGeneration = {};
if (value !== undefined)
reflectionMergePartial<CreateProjectMappingsResult>(this, message, value);
reflectionMergePartial<CreateResourceMappingsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMappingsResult): CreateProjectMappingsResult {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateResourceMappingsResult): CreateResourceMappingsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -441,8 +288,8 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
}
return message;
}
private binaryReadMap1(map: CreateProjectMappingsResult["TemplateGeneration"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateProjectMappingsResult["TemplateGeneration"] | undefined, val: CreateProjectMappingsResult["TemplateGeneration"][any] | undefined;
private binaryReadMap1(map: CreateResourceMappingsResult["TemplateGeneration"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateResourceMappingsResult["TemplateGeneration"] | undefined, val: CreateResourceMappingsResult["TemplateGeneration"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
@@ -452,12 +299,12 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
case 2:
val = reader.bool();
break;
default: throw new globalThis.Error("unknown map entry field for api.CreateProjectMappingsResult.TemplateGeneration");
default: throw new globalThis.Error("unknown map entry field for api.CreateResourceMappingsResult.TemplateGeneration");
}
}
map[key ?? ""] = val ?? false;
}
internalBinaryWrite(message: CreateProjectMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: CreateResourceMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, bool> TemplateGeneration = 1; */
for (let k of globalThis.Object.keys(message.TemplateGeneration))
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).bool(message.TemplateGeneration[k]).join();
@@ -468,30 +315,35 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
}
}
/**
* @generated MessageType for protobuf message api.CreateProjectMappingsResult
* @generated MessageType for protobuf message api.CreateResourceMappingsResult
*/
export const CreateProjectMappingsResult = new CreateProjectMappingsResult$Type();
export const CreateResourceMappingsResult = new CreateResourceMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMappingsRequest> {
class DeleteResourceMappingsRequest$Type extends MessageType<DeleteResourceMappingsRequest> {
constructor() {
super("api.DeleteProjectMappingsRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
super("api.DeleteResourceMappingsRequest", [
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } });
}
create(value?: PartialMessage<DeleteProjectMappingsRequest>): DeleteProjectMappingsRequest {
create(value?: PartialMessage<DeleteResourceMappingsRequest>): DeleteResourceMappingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<DeleteProjectMappingsRequest>(this, message, value);
reflectionMergePartial<DeleteResourceMappingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMappingsRequest): DeleteProjectMappingsRequest {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteResourceMappingsRequest): DeleteResourceMappingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ResourceType RscType */ 2:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -504,10 +356,13 @@ class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMapping
}
return message;
}
internalBinaryWrite(message: DeleteProjectMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
internalBinaryWrite(message: DeleteResourceMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ResourceType RscType = 2; */
if (message.RscType !== 0)
writer.tag(2, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -515,24 +370,24 @@ class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMapping
}
}
/**
* @generated MessageType for protobuf message api.DeleteProjectMappingsRequest
* @generated MessageType for protobuf message api.DeleteResourceMappingsRequest
*/
export const DeleteProjectMappingsRequest = new DeleteProjectMappingsRequest$Type();
export const DeleteResourceMappingsRequest = new DeleteResourceMappingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappingsResult> {
class DeleteResourceMappingsResult$Type extends MessageType<DeleteResourceMappingsResult> {
constructor() {
super("api.DeleteProjectMappingsResult", [
super("api.DeleteResourceMappingsResult", [
{ no: 1, name: "TemplateDeletion", kind: "map", localName: "TemplateDeletion", jsonName: "TemplateDeletion", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 8 /*ScalarType.BOOL*/ } }
]);
}
create(value?: PartialMessage<DeleteProjectMappingsResult>): DeleteProjectMappingsResult {
create(value?: PartialMessage<DeleteResourceMappingsResult>): DeleteResourceMappingsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.TemplateDeletion = {};
if (value !== undefined)
reflectionMergePartial<DeleteProjectMappingsResult>(this, message, value);
reflectionMergePartial<DeleteResourceMappingsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMappingsResult): DeleteProjectMappingsResult {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteResourceMappingsResult): DeleteResourceMappingsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -551,8 +406,8 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
}
return message;
}
private binaryReadMap1(map: DeleteProjectMappingsResult["TemplateDeletion"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof DeleteProjectMappingsResult["TemplateDeletion"] | undefined, val: DeleteProjectMappingsResult["TemplateDeletion"][any] | undefined;
private binaryReadMap1(map: DeleteResourceMappingsResult["TemplateDeletion"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof DeleteResourceMappingsResult["TemplateDeletion"] | undefined, val: DeleteResourceMappingsResult["TemplateDeletion"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
@@ -562,12 +417,12 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
case 2:
val = reader.bool();
break;
default: throw new globalThis.Error("unknown map entry field for api.DeleteProjectMappingsResult.TemplateDeletion");
default: throw new globalThis.Error("unknown map entry field for api.DeleteResourceMappingsResult.TemplateDeletion");
}
}
map[key ?? ""] = val ?? false;
}
internalBinaryWrite(message: DeleteProjectMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: DeleteResourceMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, bool> TemplateDeletion = 1; */
for (let k of globalThis.Object.keys(message.TemplateDeletion))
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).bool(message.TemplateDeletion[k]).join();
@@ -578,21 +433,23 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
}
}
/**
* @generated MessageType for protobuf message api.DeleteProjectMappingsResult
* @generated MessageType for protobuf message api.DeleteResourceMappingsResult
*/
export const DeleteProjectMappingsResult = new DeleteProjectMappingsResult$Type();
export const DeleteResourceMappingsResult = new DeleteResourceMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest> {
constructor() {
super("api.ClearIndexEntityRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }
]);
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Entity"] } } });
}
create(value?: PartialMessage<ClearIndexEntityRequest>): ClearIndexEntityRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.Entity = 0;
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<ClearIndexEntityRequest>(this, message, value);
return message;
@@ -602,12 +459,15 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ModelDataSetEnum Entity */ 2:
message.Entity = reader.int32();
break;
case /* api.ResourceType RscType */ 3:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -620,12 +480,15 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
return message;
}
internalBinaryWrite(message: ClearIndexEntityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ModelDataSetEnum Entity = 2; */
if (message.Entity !== 0)
writer.tag(2, WireType.Varint).int32(message.Entity);
/* api.ResourceType RscType = 3; */
if (message.RscType !== 0)
writer.tag(3, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -678,8 +541,8 @@ export const ClearIndexEntityResult = new ClearIndexEntityResult$Type();
* @generated ServiceType for protobuf service api.ElasticService
*/
export const ElasticService = new ServiceType("api.ElasticService", [
{ name: "UpdateModelMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Generate new model mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateModelMappingsRequest, O: UpdateModelMappingsResult },
{ name: "CreateProjectMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Generate new project mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateProjectMappingsRequest, O: CreateProjectMappingsResult },
{ name: "DeleteProjectMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Delete project mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteProjectMappingsRequest, O: DeleteProjectMappingsResult },
{ name: "ClearIndexEntity", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Clear data for a specific entity" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearIndexEntityRequest, O: ClearIndexEntityResult }
{ name: "UpdateModelMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Generate new model mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateModelMappingsRequest, O: UpdateModelMappingsResult },
{ name: "CreateResourceMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Generate new resource mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateResourceMappingsRequest, O: CreateResourceMappingsResult },
{ name: "DeleteResourceMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Delete resoource mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteResourceMappingsRequest, O: DeleteResourceMappingsResult },
{ name: "ClearIndexEntity", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Clear data for a specific entity" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearIndexEntityRequest, O: ClearIndexEntityResult }
], { "api.k8sService": "project-model-server" });