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

export 'adminConnection.pb.dart';

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

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

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

  $grpc.ResponseFuture<$5.ListConnectionManagerResult> listConnectionManager($5.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<$5.RegisterConnectionManagerRequest, $5.RegisterConnectionManagerResult>(
        'RegisterConnectionManager',
        registerConnectionManager_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.RegisterConnectionManagerRequest.fromBuffer(value),
        ($5.RegisterConnectionManagerResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.ListConnectionManagerRequest, $5.ListConnectionManagerResult>(
        'ListConnectionManager',
        listConnectionManager_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.ListConnectionManagerRequest.fromBuffer(value),
        ($5.ListConnectionManagerResult value) => value.writeToBuffer()));
  }

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

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

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