// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file billing.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.GenerateBillingFormat
 */
export enum GenerateBillingFormat {
  /**
   * @generated from enum value: BILLING_FORMAT_PDF = 0;
   */
  BILLING_FORMAT_PDF = 0,

  /**
   * @generated from enum value: BILLING_FORMAT_CSV = 1;
   */
  BILLING_FORMAT_CSV = 1,

  /**
   * @generated from enum value: BILLING_FORMAT_JSON = 2;
   */
  BILLING_FORMAT_JSON = 2,
}
// Retrieve enum metadata with: proto3.getEnumType(GenerateBillingFormat)
proto3.util.setEnumType(GenerateBillingFormat, "api.GenerateBillingFormat", [
  { no: 0, name: "BILLING_FORMAT_PDF" },
  { no: 1, name: "BILLING_FORMAT_CSV" },
  { no: 2, name: "BILLING_FORMAT_JSON" },
]);

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

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

  /**
   * UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
   *
   * @generated from field: string FromDate = 3;
   */
  FromDate = "";

  /**
   * UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
   *
   * @generated from field: string ToDate = 4;
   */
  ToDate = "";

  /**
   * @generated from field: api.GenerateBillingFormat OutputFormat = 5;
   */
  OutputFormat = GenerateBillingFormat.BILLING_FORMAT_PDF;

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GenerateRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "Comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "FromDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "ToDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "OutputFormat", kind: "enum", T: proto3.getEnumType(GenerateBillingFormat) },
  ]);

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

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

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

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

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

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

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

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

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

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

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

