//
//  Generated code. Do not modify.
//  source: billing.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:async' as $async;
import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;

import 'billing.pb.dart' as $9;

export 'billing.pb.dart';

@$pb.GrpcServiceName('api.BillingService')
class BillingServiceClient extends $grpc.Client {
  static final _$generate = $grpc.ClientMethod<$9.GenerateRequest, $9.GenerateResult>(
      '/api.BillingService/Generate',
      ($9.GenerateRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $9.GenerateResult.fromBuffer(value));

  BillingServiceClient(super.channel, {super.options, super.interceptors});

  $grpc.ResponseFuture<$9.GenerateResult> generate($9.GenerateRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$generate, request, options: options);
  }
}

@$pb.GrpcServiceName('api.BillingService')
abstract class BillingServiceBase extends $grpc.Service {
  $core.String get $name => 'api.BillingService';

  BillingServiceBase() {
    $addMethod($grpc.ServiceMethod<$9.GenerateRequest, $9.GenerateResult>(
        'Generate',
        generate_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $9.GenerateRequest.fromBuffer(value),
        ($9.GenerateResult value) => value.writeToBuffer()));
  }

  $async.Future<$9.GenerateResult> generate_Pre($grpc.ServiceCall $call, $async.Future<$9.GenerateRequest> $request) async {
    return generate($call, await $request);
  }

  $async.Future<$9.GenerateResult> generate($grpc.ServiceCall call, $9.GenerateRequest request);
}
