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

export 'adminConnection.pb.dart';

@$pb.GrpcServiceName('api.AdminConnectionService')
class AdminConnectionServiceClient extends $grpc.Client {
  static final _$registerConnectionManager = $grpc.ClientMethod<$2.RegisterConnectionManagerRequest, $2.RegisterConnectionManagerResult>(
      '/api.AdminConnectionService/RegisterConnectionManager',
      ($2.RegisterConnectionManagerRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $2.RegisterConnectionManagerResult.fromBuffer(value));
  static final _$listConnectionManager = $grpc.ClientMethod<$2.ListConnectionManagerRequest, $2.ListConnectionManagerResult>(
      '/api.AdminConnectionService/ListConnectionManager',
      ($2.ListConnectionManagerRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $2.ListConnectionManagerResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$2.RegisterConnectionManagerResult> registerConnectionManager($2.RegisterConnectionManagerRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$registerConnectionManager, request, options: options);
  }

  $grpc.ResponseFuture<$2.ListConnectionManagerResult> listConnectionManager($2.ListConnectionManagerRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listConnectionManager, request, options: options);
  }
}

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

  AdminConnectionServiceBase() {
    $addMethod($grpc.ServiceMethod<$2.RegisterConnectionManagerRequest, $2.RegisterConnectionManagerResult>(
        'RegisterConnectionManager',
        registerConnectionManager_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.RegisterConnectionManagerRequest.fromBuffer(value),
        ($2.RegisterConnectionManagerResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.ListConnectionManagerRequest, $2.ListConnectionManagerResult>(
        'ListConnectionManager',
        listConnectionManager_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.ListConnectionManagerRequest.fromBuffer(value),
        ($2.ListConnectionManagerResult value) => value.writeToBuffer()));
  }

  $async.Future<$2.RegisterConnectionManagerResult> registerConnectionManager_Pre($grpc.ServiceCall $call, $async.Future<$2.RegisterConnectionManagerRequest> $request) async {
    return registerConnectionManager($call, await $request);
  }

  $async.Future<$2.ListConnectionManagerResult> listConnectionManager_Pre($grpc.ServiceCall $call, $async.Future<$2.ListConnectionManagerRequest> $request) async {
    return listConnectionManager($call, await $request);
  }

  $async.Future<$2.RegisterConnectionManagerResult> registerConnectionManager($grpc.ServiceCall call, $2.RegisterConnectionManagerRequest request);
  $async.Future<$2.ListConnectionManagerResult> listConnectionManager($grpc.ServiceCall call, $2.ListConnectionManagerRequest request);
}
