//
//  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 $54;

export 'billing.pb.dart';

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

  BillingServiceClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

  $grpc.ResponseFuture<$54.GenerateResult> generate($54.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<$54.GenerateRequest, $54.GenerateResult>(
        'Generate',
        generate_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $54.GenerateRequest.fromBuffer(value),
        ($54.GenerateResult value) => value.writeToBuffer()));
  }

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

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