You've already forked npm-core-sdk
Latest generation
This commit is contained in:
122
opensearch.ts
122
opensearch.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "opensearch.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -18,7 +18,7 @@ export interface CreateOpenSearchUserRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string PartnerAppID = 1 [json_name = "PartnerAppID"];
|
||||
*/
|
||||
partnerAppID: string;
|
||||
PartnerAppID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateOpenSearchUserResponse
|
||||
@@ -27,15 +27,15 @@ export interface CreateOpenSearchUserResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string Username = 1 [json_name = "Username"];
|
||||
*/
|
||||
username: string;
|
||||
Username: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Password = 2 [json_name = "Password"];
|
||||
*/
|
||||
password: string;
|
||||
Password: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Index = 3 [json_name = "Index"];
|
||||
*/
|
||||
index: string;
|
||||
Index: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteOpenSearchUserRequest
|
||||
@@ -44,7 +44,7 @@ export interface DeleteOpenSearchUserRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string PartnerAppID = 1 [json_name = "PartnerAppID"];
|
||||
*/
|
||||
partnerAppID: string;
|
||||
PartnerAppID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteOpenSearchUserResponse
|
||||
@@ -58,15 +58,15 @@ export interface CreateOpenSearchTenantRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: string DashboardJSON = 2 [json_name = "DashboardJSON"];
|
||||
*/
|
||||
dashboardJSON: string;
|
||||
DashboardJSON: string;
|
||||
/**
|
||||
* @generated from protobuf field: string MappingsJSON = 3 [json_name = "MappingsJSON"];
|
||||
*/
|
||||
mappingsJSON: string;
|
||||
MappingsJSON: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateOpenSearchTenantResponse
|
||||
@@ -80,7 +80,7 @@ export interface CreateOpenSearchProjectRoleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateOpenSearchProjectRoleResponse
|
||||
@@ -94,7 +94,7 @@ export interface DeleteOpenSearchProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteOpenSearchProjectResponse
|
||||
@@ -105,12 +105,12 @@ export interface DeleteOpenSearchProjectResponse {
|
||||
class CreateOpenSearchUserRequest$Type extends MessageType<CreateOpenSearchUserRequest> {
|
||||
constructor() {
|
||||
super("api.CreateOpenSearchUserRequest", [
|
||||
{ no: 1, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } }
|
||||
{ no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateOpenSearchUserRequest>): CreateOpenSearchUserRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.partnerAppID = "";
|
||||
message.PartnerAppID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateOpenSearchUserRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -121,7 +121,7 @@ class CreateOpenSearchUserRequest$Type extends MessageType<CreateOpenSearchUserR
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string PartnerAppID = 1 [json_name = "PartnerAppID"];*/ 1:
|
||||
message.partnerAppID = reader.string();
|
||||
message.PartnerAppID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -136,8 +136,8 @@ class CreateOpenSearchUserRequest$Type extends MessageType<CreateOpenSearchUserR
|
||||
}
|
||||
internalBinaryWrite(message: CreateOpenSearchUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string PartnerAppID = 1 [json_name = "PartnerAppID"]; */
|
||||
if (message.partnerAppID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.partnerAppID);
|
||||
if (message.PartnerAppID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.PartnerAppID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -152,16 +152,16 @@ export const CreateOpenSearchUserRequest = new CreateOpenSearchUserRequest$Type(
|
||||
class CreateOpenSearchUserResponse$Type extends MessageType<CreateOpenSearchUserResponse> {
|
||||
constructor() {
|
||||
super("api.CreateOpenSearchUserResponse", [
|
||||
{ no: 1, name: "Username", kind: "scalar", jsonName: "Username", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The internal user's username dedicated for the given PartnerAppID. It is expected to be the same as the PartnerAppID." } } },
|
||||
{ no: 2, name: "Password", kind: "scalar", jsonName: "Password", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The internal user's password dedicated for the given PartnerAppID." } } },
|
||||
{ no: 3, name: "Index", kind: "scalar", jsonName: "Index", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The index on which the user will have access. It is related to the given PartnerAppID, for example for 'mypartnerapp' the expected index will be 'mypartnerapp_' meaning the user has access to 'mypartnerapp_*'." } } }
|
||||
{ no: 1, name: "Username", kind: "scalar", localName: "Username", jsonName: "Username", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The internal user's username dedicated for the given PartnerAppID. It is expected to be the same as the PartnerAppID." } } },
|
||||
{ no: 2, name: "Password", kind: "scalar", localName: "Password", jsonName: "Password", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The internal user's password dedicated for the given PartnerAppID." } } },
|
||||
{ no: 3, name: "Index", kind: "scalar", localName: "Index", jsonName: "Index", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The index on which the user will have access. It is related to the given PartnerAppID, for example for 'mypartnerapp' the expected index will be 'mypartnerapp_' meaning the user has access to 'mypartnerapp_*'." } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CreateOpenSearchUserResponse>): CreateOpenSearchUserResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.username = "";
|
||||
message.password = "";
|
||||
message.index = "";
|
||||
message.Username = "";
|
||||
message.Password = "";
|
||||
message.Index = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateOpenSearchUserResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -172,13 +172,13 @@ class CreateOpenSearchUserResponse$Type extends MessageType<CreateOpenSearchUser
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Username = 1 [json_name = "Username"];*/ 1:
|
||||
message.username = reader.string();
|
||||
message.Username = reader.string();
|
||||
break;
|
||||
case /* string Password = 2 [json_name = "Password"];*/ 2:
|
||||
message.password = reader.string();
|
||||
message.Password = reader.string();
|
||||
break;
|
||||
case /* string Index = 3 [json_name = "Index"];*/ 3:
|
||||
message.index = reader.string();
|
||||
message.Index = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -193,14 +193,14 @@ class CreateOpenSearchUserResponse$Type extends MessageType<CreateOpenSearchUser
|
||||
}
|
||||
internalBinaryWrite(message: CreateOpenSearchUserResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Username = 1 [json_name = "Username"]; */
|
||||
if (message.username !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.username);
|
||||
if (message.Username !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Username);
|
||||
/* string Password = 2 [json_name = "Password"]; */
|
||||
if (message.password !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.password);
|
||||
if (message.Password !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Password);
|
||||
/* string Index = 3 [json_name = "Index"]; */
|
||||
if (message.index !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.index);
|
||||
if (message.Index !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Index);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -215,12 +215,12 @@ export const CreateOpenSearchUserResponse = new CreateOpenSearchUserResponse$Typ
|
||||
class DeleteOpenSearchUserRequest$Type extends MessageType<DeleteOpenSearchUserRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteOpenSearchUserRequest", [
|
||||
{ no: 1, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } }
|
||||
{ no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteOpenSearchUserRequest>): DeleteOpenSearchUserRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.partnerAppID = "";
|
||||
message.PartnerAppID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteOpenSearchUserRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -231,7 +231,7 @@ class DeleteOpenSearchUserRequest$Type extends MessageType<DeleteOpenSearchUserR
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string PartnerAppID = 1 [json_name = "PartnerAppID"];*/ 1:
|
||||
message.partnerAppID = reader.string();
|
||||
message.PartnerAppID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -246,8 +246,8 @@ class DeleteOpenSearchUserRequest$Type extends MessageType<DeleteOpenSearchUserR
|
||||
}
|
||||
internalBinaryWrite(message: DeleteOpenSearchUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string PartnerAppID = 1 [json_name = "PartnerAppID"]; */
|
||||
if (message.partnerAppID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.partnerAppID);
|
||||
if (message.PartnerAppID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.PartnerAppID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -300,16 +300,16 @@ export const DeleteOpenSearchUserResponse = new DeleteOpenSearchUserResponse$Typ
|
||||
class CreateOpenSearchTenantRequest$Type extends MessageType<CreateOpenSearchTenantRequest> {
|
||||
constructor() {
|
||||
super("api.CreateOpenSearchTenantRequest", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tenant's name. This will be used as the index template name. For example if the name is 'mytenant', the index template will be 'mytenant_template' with an index pattern as '*_mytenant' (if mappings are provided)." } } },
|
||||
{ no: 2, name: "DashboardJSON", kind: "scalar", jsonName: "DashboardJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Exported dashboard JSON from Opensearch that will be created under the given tenant. If not provided, no dashboard will be created." } } },
|
||||
{ no: 3, name: "MappingsJSON", kind: "scalar", jsonName: "MappingsJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mappings used for the tenant's index template. If not provided, no index template will be created. See https://opensearch.org/docs/latest/opensearch/mappings/ for correct mappings format." } } }
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tenant's name. This will be used as the index template name. For example if the name is 'mytenant', the index template will be 'mytenant_template' with an index pattern as '*_mytenant' (if mappings are provided)." } } },
|
||||
{ no: 2, name: "DashboardJSON", kind: "scalar", localName: "DashboardJSON", jsonName: "DashboardJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Exported dashboard JSON from Opensearch that will be created under the given tenant. If not provided, no dashboard will be created." } } },
|
||||
{ no: 3, name: "MappingsJSON", kind: "scalar", localName: "MappingsJSON", jsonName: "MappingsJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mappings used for the tenant's index template. If not provided, no index template will be created. See https://opensearch.org/docs/latest/opensearch/mappings/ for correct mappings format." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateOpenSearchTenantRequest>): CreateOpenSearchTenantRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.dashboardJSON = "";
|
||||
message.mappingsJSON = "";
|
||||
message.Name = "";
|
||||
message.DashboardJSON = "";
|
||||
message.MappingsJSON = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateOpenSearchTenantRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -320,13 +320,13 @@ class CreateOpenSearchTenantRequest$Type extends MessageType<CreateOpenSearchTen
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string DashboardJSON = 2 [json_name = "DashboardJSON"];*/ 2:
|
||||
message.dashboardJSON = reader.string();
|
||||
message.DashboardJSON = reader.string();
|
||||
break;
|
||||
case /* string MappingsJSON = 3 [json_name = "MappingsJSON"];*/ 3:
|
||||
message.mappingsJSON = reader.string();
|
||||
message.MappingsJSON = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -341,14 +341,14 @@ class CreateOpenSearchTenantRequest$Type extends MessageType<CreateOpenSearchTen
|
||||
}
|
||||
internalBinaryWrite(message: CreateOpenSearchTenantRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* string DashboardJSON = 2 [json_name = "DashboardJSON"]; */
|
||||
if (message.dashboardJSON !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.dashboardJSON);
|
||||
if (message.DashboardJSON !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardJSON);
|
||||
/* string MappingsJSON = 3 [json_name = "MappingsJSON"]; */
|
||||
if (message.mappingsJSON !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.mappingsJSON);
|
||||
if (message.MappingsJSON !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.MappingsJSON);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -401,12 +401,12 @@ export const CreateOpenSearchTenantResponse = new CreateOpenSearchTenantResponse
|
||||
class CreateOpenSearchProjectRoleRequest$Type extends MessageType<CreateOpenSearchProjectRoleRequest> {
|
||||
constructor() {
|
||||
super("api.CreateOpenSearchProjectRoleRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be created." } } }
|
||||
{ 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_field": { description: "ProjectID for which the role will be created." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateOpenSearchProjectRoleRequest>): CreateOpenSearchProjectRoleRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateOpenSearchProjectRoleRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -417,7 +417,7 @@ class CreateOpenSearchProjectRoleRequest$Type extends MessageType<CreateOpenSear
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -432,8 +432,8 @@ class CreateOpenSearchProjectRoleRequest$Type extends MessageType<CreateOpenSear
|
||||
}
|
||||
internalBinaryWrite(message: CreateOpenSearchProjectRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -486,12 +486,12 @@ export const CreateOpenSearchProjectRoleResponse = new CreateOpenSearchProjectRo
|
||||
class DeleteOpenSearchProjectRequest$Type extends MessageType<DeleteOpenSearchProjectRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteOpenSearchProjectRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be deleted." } } }
|
||||
{ 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_field": { description: "ProjectID for which the role will be deleted." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteOpenSearchProjectRequest>): DeleteOpenSearchProjectRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteOpenSearchProjectRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -502,7 +502,7 @@ class DeleteOpenSearchProjectRequest$Type extends MessageType<DeleteOpenSearchPr
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -517,8 +517,8 @@ class DeleteOpenSearchProjectRequest$Type extends MessageType<DeleteOpenSearchPr
|
||||
}
|
||||
internalBinaryWrite(message: DeleteOpenSearchProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user