You've already forked npm-core-sdk
Latest generation
This commit is contained in:
45
elastic.ts
45
elastic.ts
@@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ModelDataSetEnum } from "./shared";
|
||||
import { ResourceType } from "./shared";
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateModelMappingsRequest
|
||||
*/
|
||||
@@ -37,10 +36,6 @@ export interface CreateResourceMappingsRequest {
|
||||
* @generated from protobuf field: string RscID = 1
|
||||
*/
|
||||
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.CreateResourceMappingsResult
|
||||
@@ -61,10 +56,6 @@ export interface DeleteResourceMappingsRequest {
|
||||
* @generated from protobuf field: string RscID = 1
|
||||
*/
|
||||
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.DeleteResourceMappingsResult
|
||||
@@ -89,10 +80,6 @@ export interface ClearIndexEntityRequest {
|
||||
* @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
|
||||
@@ -204,14 +191,12 @@ export const UpdateModelMappingsResult = new UpdateModelMappingsResult$Type();
|
||||
class CreateResourceMappingsRequest$Type extends MessageType<CreateResourceMappingsRequest> {
|
||||
constructor() {
|
||||
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"] } } });
|
||||
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateResourceMappingsRequest>): CreateResourceMappingsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.RscID = "";
|
||||
message.RscType = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateResourceMappingsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -224,9 +209,6 @@ class CreateResourceMappingsRequest$Type extends MessageType<CreateResourceMappi
|
||||
case /* string RscID */ 1:
|
||||
message.RscID = reader.string();
|
||||
break;
|
||||
case /* api.ResourceType RscType */ 2:
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -242,9 +224,6 @@ class CreateResourceMappingsRequest$Type extends MessageType<CreateResourceMappi
|
||||
/* 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);
|
||||
@@ -322,14 +301,12 @@ export const CreateResourceMappingsResult = new CreateResourceMappingsResult$Typ
|
||||
class DeleteResourceMappingsRequest$Type extends MessageType<DeleteResourceMappingsRequest> {
|
||||
constructor() {
|
||||
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] } } } }
|
||||
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteResourceMappingsRequest>): DeleteResourceMappingsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.RscID = "";
|
||||
message.RscType = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteResourceMappingsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -342,9 +319,6 @@ class DeleteResourceMappingsRequest$Type extends MessageType<DeleteResourceMappi
|
||||
case /* string RscID */ 1:
|
||||
message.RscID = reader.string();
|
||||
break;
|
||||
case /* api.ResourceType RscType */ 2:
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -360,9 +334,6 @@ class DeleteResourceMappingsRequest$Type extends MessageType<DeleteResourceMappi
|
||||
/* 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);
|
||||
@@ -441,15 +412,13 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
|
||||
constructor() {
|
||||
super("api.ClearIndexEntityRequest", [
|
||||
{ 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] } } } }
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "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.RscID = "";
|
||||
message.Entity = 0;
|
||||
message.RscType = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearIndexEntityRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -465,9 +434,6 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
|
||||
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")
|
||||
@@ -486,9 +452,6 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
|
||||
/* 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);
|
||||
|
||||
Reference in New Issue
Block a user