// This is a generated file - do not edit.
//
// Generated from billing.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

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 $0;

export 'billing.pb.dart';

@$pb.GrpcServiceName('api.BillingService')
class BillingServiceClient extends $grpc.Client {
  /// The hostname for this service.
  static const $core.String defaultHost = '';

  /// OAuth scopes needed for the client.
  static const $core.List<$core.String> oauthScopes = [
    '',
  ];

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

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

    // method descriptors

  static final _$generate = $grpc.ClientMethod<$0.GenerateRequest, $0.GenerateResult>(
      '/api.BillingService/Generate',
      ($0.GenerateRequest value) => value.writeToBuffer(),
      $0.GenerateResult.fromBuffer);
}

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

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

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

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

}
