// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file go-ape.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";

/**
 * @generated from enum api.GoAPEGenerateType
 */
export enum GoAPEGenerateType {
  /**
   * @generated from enum value: GO_APE_GENERATE_TYPE_TEXT = 0;
   */
  GO_APE_GENERATE_TYPE_TEXT = 0,

  /**
   * @generated from enum value: GO_APE_GENERATE_TYPE_PDF = 1;
   */
  GO_APE_GENERATE_TYPE_PDF = 1,
}
// Retrieve enum metadata with: proto3.getEnumType(GoAPEGenerateType)
proto3.util.setEnumType(GoAPEGenerateType, "api.GoAPEGenerateType", [
  { no: 0, name: "GO_APE_GENERATE_TYPE_TEXT" },
  { no: 1, name: "GO_APE_GENERATE_TYPE_PDF" },
]);

/**
 * @generated from message api.GoAPEGenerateRequest
 */
export class GoAPEGenerateRequest extends Message<GoAPEGenerateRequest> {
  /**
   * @generated from field: string Namespace = 1;
   */
  Namespace = "";

  /**
   * @generated from field: string TemplateName = 2;
   */
  TemplateName = "";

  /**
   * @generated from field: string LanguageCode = 3;
   */
  LanguageCode = "";

  /**
   * @generated from field: string DataJSON = 4;
   */
  DataJSON = "";

  /**
   * @generated from field: api.GoAPEGenerateType OutputFormat = 5;
   */
  OutputFormat = GoAPEGenerateType.GO_APE_GENERATE_TYPE_TEXT;

  constructor(data?: PartialMessage<GoAPEGenerateRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GoAPEGenerateRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "TemplateName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "LanguageCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "DataJSON", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "OutputFormat", kind: "enum", T: proto3.getEnumType(GoAPEGenerateType) },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GoAPEGenerateRequest {
    return new GoAPEGenerateRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GoAPEGenerateRequest {
    return new GoAPEGenerateRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GoAPEGenerateRequest {
    return new GoAPEGenerateRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GoAPEGenerateRequest | PlainMessage<GoAPEGenerateRequest> | undefined, b: GoAPEGenerateRequest | PlainMessage<GoAPEGenerateRequest> | undefined): boolean {
    return proto3.util.equals(GoAPEGenerateRequest, a, b);
  }
}

/**
 * @generated from message api.GoAPEGenerateResult
 */
export class GoAPEGenerateResult extends Message<GoAPEGenerateResult> {
  /**
   * @generated from field: bytes Result = 1;
   */
  Result = new Uint8Array(0);

  constructor(data?: PartialMessage<GoAPEGenerateResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GoAPEGenerateResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Result", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GoAPEGenerateResult {
    return new GoAPEGenerateResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GoAPEGenerateResult {
    return new GoAPEGenerateResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GoAPEGenerateResult {
    return new GoAPEGenerateResult().fromJsonString(jsonString, options);
  }

  static equals(a: GoAPEGenerateResult | PlainMessage<GoAPEGenerateResult> | undefined, b: GoAPEGenerateResult | PlainMessage<GoAPEGenerateResult> | undefined): boolean {
    return proto3.util.equals(GoAPEGenerateResult, a, b);
  }
}

