// This is a generated file - do not edit.
//
// Generated from adminConnection.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 'adminConnection.pb.dart' as $0;

export 'adminConnection.pb.dart';

@$pb.GrpcServiceName('api.AdminConnectionService')
class AdminConnectionServiceClient 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 = [
    '',
  ];

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

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

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

    // method descriptors

  static final _$registerConnectionManager = $grpc.ClientMethod<$0.RegisterConnectionManagerRequest, $0.RegisterConnectionManagerResult>(
      '/api.AdminConnectionService/RegisterConnectionManager',
      ($0.RegisterConnectionManagerRequest value) => value.writeToBuffer(),
      $0.RegisterConnectionManagerResult.fromBuffer);
  static final _$listConnectionManager = $grpc.ClientMethod<$0.ListConnectionManagerRequest, $0.ListConnectionManagerResult>(
      '/api.AdminConnectionService/ListConnectionManager',
      ($0.ListConnectionManagerRequest value) => value.writeToBuffer(),
      $0.ListConnectionManagerResult.fromBuffer);
}

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

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

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

  $async.Future<$0.RegisterConnectionManagerResult> registerConnectionManager($grpc.ServiceCall call, $0.RegisterConnectionManagerRequest request);

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

  $async.Future<$0.ListConnectionManagerResult> listConnectionManager($grpc.ServiceCall call, $0.ListConnectionManagerRequest request);

}
