//
//  Generated code. Do not modify.
//  source: go-ape.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 'go-ape.pb.dart' as $22;

export 'go-ape.pb.dart';

@$pb.GrpcServiceName('api.GoAPEService')
class GoAPEServiceClient extends $grpc.Client {
  static final _$generate = $grpc.ClientMethod<$22.GoAPEGenerateRequest, $22.GoAPEGenerateResult>(
      '/api.GoAPEService/Generate',
      ($22.GoAPEGenerateRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $22.GoAPEGenerateResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$22.GoAPEGenerateResult> generate($22.GoAPEGenerateRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$generate, request, options: options);
  }
}

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

  GoAPEServiceBase() {
    $addMethod($grpc.ServiceMethod<$22.GoAPEGenerateRequest, $22.GoAPEGenerateResult>(
        'Generate',
        generate_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $22.GoAPEGenerateRequest.fromBuffer(value),
        ($22.GoAPEGenerateResult value) => value.writeToBuffer()));
  }

  $async.Future<$22.GoAPEGenerateResult> generate_Pre($grpc.ServiceCall $call, $async.Future<$22.GoAPEGenerateRequest> $request) async {
    return generate($call, await $request);
  }

  $async.Future<$22.GoAPEGenerateResult> generate($grpc.ServiceCall call, $22.GoAPEGenerateRequest request);
}
