You've already forked npm-core-sdk
Latest generation
This commit is contained in:
74
go-ape.ts
74
go-ape.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 "go-ape.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -18,23 +18,23 @@ export interface GoAPEGenerateRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Namespace = 1 [json_name = "Namespace"];
|
||||
*/
|
||||
namespace: string;
|
||||
Namespace: string;
|
||||
/**
|
||||
* @generated from protobuf field: string TemplateName = 2 [json_name = "TemplateName"];
|
||||
*/
|
||||
templateName: string;
|
||||
TemplateName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCode = 3 [json_name = "LanguageCode"];
|
||||
*/
|
||||
languageCode: string;
|
||||
LanguageCode: string;
|
||||
/**
|
||||
* @generated from protobuf field: string DataJSON = 4 [json_name = "DataJSON"];
|
||||
*/
|
||||
dataJSON: string;
|
||||
DataJSON: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.GoAPEGenerateType OutputFormat = 5 [json_name = "OutputFormat"];
|
||||
*/
|
||||
outputFormat: GoAPEGenerateType;
|
||||
OutputFormat: GoAPEGenerateType;
|
||||
}
|
||||
// =====================
|
||||
// ===== Responses =====
|
||||
@@ -47,7 +47,7 @@ export interface GoAPEGenerateResult {
|
||||
/**
|
||||
* @generated from protobuf field: bytes Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
result: Uint8Array;
|
||||
Result: Uint8Array;
|
||||
}
|
||||
// =====================
|
||||
// ===== Requests ======
|
||||
@@ -70,20 +70,20 @@ export enum GoAPEGenerateType {
|
||||
class GoAPEGenerateRequest$Type extends MessageType<GoAPEGenerateRequest> {
|
||||
constructor() {
|
||||
super("api.GoAPEGenerateRequest", [
|
||||
{ no: 1, name: "Namespace", kind: "scalar", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Namespace" } } },
|
||||
{ no: 2, name: "TemplateName", kind: "scalar", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template name" } } },
|
||||
{ no: 3, name: "LanguageCode", kind: "scalar", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
|
||||
{ no: 4, name: "DataJSON", kind: "scalar", jsonName: "DataJSON", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "JSON data to be passed to the template" } } },
|
||||
{ no: 5, name: "OutputFormat", kind: "enum", jsonName: "OutputFormat", T: () => ["api.GoAPEGenerateType", GoAPEGenerateType], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Output format" } } }
|
||||
{ no: 1, name: "Namespace", kind: "scalar", localName: "Namespace", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Namespace" } } },
|
||||
{ no: 2, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template name" } } },
|
||||
{ no: 3, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
|
||||
{ no: 4, name: "DataJSON", kind: "scalar", localName: "DataJSON", jsonName: "DataJSON", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "JSON data to be passed to the template" } } },
|
||||
{ no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GoAPEGenerateType", GoAPEGenerateType], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Output format" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TemplateName", "DataJSON", "OutputFormat"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GoAPEGenerateRequest>): GoAPEGenerateRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.namespace = "";
|
||||
message.templateName = "";
|
||||
message.languageCode = "";
|
||||
message.dataJSON = "";
|
||||
message.outputFormat = 0;
|
||||
message.Namespace = "";
|
||||
message.TemplateName = "";
|
||||
message.LanguageCode = "";
|
||||
message.DataJSON = "";
|
||||
message.OutputFormat = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GoAPEGenerateRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -94,19 +94,19 @@ class GoAPEGenerateRequest$Type extends MessageType<GoAPEGenerateRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Namespace = 1 [json_name = "Namespace"];*/ 1:
|
||||
message.namespace = reader.string();
|
||||
message.Namespace = reader.string();
|
||||
break;
|
||||
case /* string TemplateName = 2 [json_name = "TemplateName"];*/ 2:
|
||||
message.templateName = reader.string();
|
||||
message.TemplateName = reader.string();
|
||||
break;
|
||||
case /* string LanguageCode = 3 [json_name = "LanguageCode"];*/ 3:
|
||||
message.languageCode = reader.string();
|
||||
message.LanguageCode = reader.string();
|
||||
break;
|
||||
case /* string DataJSON = 4 [json_name = "DataJSON"];*/ 4:
|
||||
message.dataJSON = reader.string();
|
||||
message.DataJSON = reader.string();
|
||||
break;
|
||||
case /* api.GoAPEGenerateType OutputFormat = 5 [json_name = "OutputFormat"];*/ 5:
|
||||
message.outputFormat = reader.int32();
|
||||
message.OutputFormat = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -121,20 +121,20 @@ class GoAPEGenerateRequest$Type extends MessageType<GoAPEGenerateRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: GoAPEGenerateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Namespace = 1 [json_name = "Namespace"]; */
|
||||
if (message.namespace !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.namespace);
|
||||
if (message.Namespace !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Namespace);
|
||||
/* string TemplateName = 2 [json_name = "TemplateName"]; */
|
||||
if (message.templateName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.templateName);
|
||||
if (message.TemplateName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.TemplateName);
|
||||
/* string LanguageCode = 3 [json_name = "LanguageCode"]; */
|
||||
if (message.languageCode !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.languageCode);
|
||||
if (message.LanguageCode !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.LanguageCode);
|
||||
/* string DataJSON = 4 [json_name = "DataJSON"]; */
|
||||
if (message.dataJSON !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.dataJSON);
|
||||
if (message.DataJSON !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.DataJSON);
|
||||
/* api.GoAPEGenerateType OutputFormat = 5 [json_name = "OutputFormat"]; */
|
||||
if (message.outputFormat !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.outputFormat);
|
||||
if (message.OutputFormat !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.OutputFormat);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -149,12 +149,12 @@ export const GoAPEGenerateRequest = new GoAPEGenerateRequest$Type();
|
||||
class GoAPEGenerateResult$Type extends MessageType<GoAPEGenerateResult> {
|
||||
constructor() {
|
||||
super("api.GoAPEGenerateResult", [
|
||||
{ no: 1, name: "Result", kind: "scalar", jsonName: "Result", T: 12 /*ScalarType.BYTES*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Result" } } }
|
||||
{ no: 1, name: "Result", kind: "scalar", localName: "Result", jsonName: "Result", T: 12 /*ScalarType.BYTES*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Result" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GoAPEGenerateResult>): GoAPEGenerateResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.result = new Uint8Array(0);
|
||||
message.Result = new Uint8Array(0);
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GoAPEGenerateResult>(this, message, value);
|
||||
return message;
|
||||
@@ -165,7 +165,7 @@ class GoAPEGenerateResult$Type extends MessageType<GoAPEGenerateResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bytes Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = reader.bytes();
|
||||
message.Result = reader.bytes();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -180,8 +180,8 @@ class GoAPEGenerateResult$Type extends MessageType<GoAPEGenerateResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GoAPEGenerateResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* bytes Result = 1 [json_name = "Result"]; */
|
||||
if (message.result.length)
|
||||
writer.tag(1, WireType.LengthDelimited).bytes(message.result);
|
||||
if (message.Result.length)
|
||||
writer.tag(1, WireType.LengthDelimited).bytes(message.Result);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user