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

export 'connection.pb.dart';

@$pb.GrpcServiceName('api.ConnectionService')
class ConnectionServiceClient extends $grpc.Client {
  static final _$create = $grpc.ClientMethod<$6.CreateConnectionRequest, $6.CreateConnectionResult>(
      '/api.ConnectionService/Create',
      ($6.CreateConnectionRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.CreateConnectionResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$6.DeleteConnectionRequest, $6.DeleteConnectionResult>(
      '/api.ConnectionService/Delete',
      ($6.DeleteConnectionRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.DeleteConnectionResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$6.ListConnectionsRequest, $6.ListConnectionsResult>(
      '/api.ConnectionService/List',
      ($6.ListConnectionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.ListConnectionsResult.fromBuffer(value));
  static final _$getDetails = $grpc.ClientMethod<$6.GetDetailsConnectionsRequest, $6.GetDetailsConnectionsResult>(
      '/api.ConnectionService/GetDetails',
      ($6.GetDetailsConnectionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.GetDetailsConnectionsResult.fromBuffer(value));
  static final _$getStartDetails = $grpc.ClientMethod<$6.GetStartDetailsConnectionsRequest, $6.GetStartDetailsConnectionsResult>(
      '/api.ConnectionService/GetStartDetails',
      ($6.GetStartDetailsConnectionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.GetStartDetailsConnectionsResult.fromBuffer(value));
  static final _$setRunDetails = $grpc.ClientMethod<$6.SetRunDetailsConnectionsRequest, $6.SetRunDetailsConnectionsResult>(
      '/api.ConnectionService/SetRunDetails',
      ($6.SetRunDetailsConnectionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.SetRunDetailsConnectionsResult.fromBuffer(value));
  static final _$renewConnectionSA = $grpc.ClientMethod<$6.RenewConnectionSARequest, $6.RenewConnectionSAResult>(
      '/api.ConnectionService/RenewConnectionSA',
      ($6.RenewConnectionSARequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.RenewConnectionSAResult.fromBuffer(value));
  static final _$deleteConnectionInDB = $grpc.ClientMethod<$6.DeleteConnectionInDBRequest, $6.DeleteConnectionInDBResult>(
      '/api.ConnectionService/DeleteConnectionInDB',
      ($6.DeleteConnectionInDBRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.DeleteConnectionInDBResult.fromBuffer(value));
  static final _$isConnectionExist = $grpc.ClientMethod<$6.IsConnectionExistRequest, $6.IsConnectionExistResult>(
      '/api.ConnectionService/IsConnectionExist',
      ($6.IsConnectionExistRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.IsConnectionExistResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$6.CreateConnectionResult> create($6.CreateConnectionRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$6.DeleteConnectionResult> delete($6.DeleteConnectionRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$6.ListConnectionsResult> list($6.ListConnectionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$6.GetDetailsConnectionsResult> getDetails($6.GetDetailsConnectionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getDetails, request, options: options);
  }

  $grpc.ResponseFuture<$6.GetStartDetailsConnectionsResult> getStartDetails($6.GetStartDetailsConnectionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getStartDetails, request, options: options);
  }

  $grpc.ResponseFuture<$6.SetRunDetailsConnectionsResult> setRunDetails($6.SetRunDetailsConnectionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setRunDetails, request, options: options);
  }

  $grpc.ResponseFuture<$6.RenewConnectionSAResult> renewConnectionSA($6.RenewConnectionSARequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$renewConnectionSA, request, options: options);
  }

  $grpc.ResponseFuture<$6.DeleteConnectionInDBResult> deleteConnectionInDB($6.DeleteConnectionInDBRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteConnectionInDB, request, options: options);
  }

  $grpc.ResponseFuture<$6.IsConnectionExistResult> isConnectionExist($6.IsConnectionExistRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$isConnectionExist, request, options: options);
  }
}

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

  ConnectionServiceBase() {
    $addMethod($grpc.ServiceMethod<$6.CreateConnectionRequest, $6.CreateConnectionResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.CreateConnectionRequest.fromBuffer(value),
        ($6.CreateConnectionResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.DeleteConnectionRequest, $6.DeleteConnectionResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.DeleteConnectionRequest.fromBuffer(value),
        ($6.DeleteConnectionResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.ListConnectionsRequest, $6.ListConnectionsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.ListConnectionsRequest.fromBuffer(value),
        ($6.ListConnectionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.GetDetailsConnectionsRequest, $6.GetDetailsConnectionsResult>(
        'GetDetails',
        getDetails_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.GetDetailsConnectionsRequest.fromBuffer(value),
        ($6.GetDetailsConnectionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.GetStartDetailsConnectionsRequest, $6.GetStartDetailsConnectionsResult>(
        'GetStartDetails',
        getStartDetails_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.GetStartDetailsConnectionsRequest.fromBuffer(value),
        ($6.GetStartDetailsConnectionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.SetRunDetailsConnectionsRequest, $6.SetRunDetailsConnectionsResult>(
        'SetRunDetails',
        setRunDetails_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.SetRunDetailsConnectionsRequest.fromBuffer(value),
        ($6.SetRunDetailsConnectionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.RenewConnectionSARequest, $6.RenewConnectionSAResult>(
        'RenewConnectionSA',
        renewConnectionSA_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.RenewConnectionSARequest.fromBuffer(value),
        ($6.RenewConnectionSAResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.DeleteConnectionInDBRequest, $6.DeleteConnectionInDBResult>(
        'DeleteConnectionInDB',
        deleteConnectionInDB_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.DeleteConnectionInDBRequest.fromBuffer(value),
        ($6.DeleteConnectionInDBResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.IsConnectionExistRequest, $6.IsConnectionExistResult>(
        'IsConnectionExist',
        isConnectionExist_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.IsConnectionExistRequest.fromBuffer(value),
        ($6.IsConnectionExistResult value) => value.writeToBuffer()));
  }

  $async.Future<$6.CreateConnectionResult> create_Pre($grpc.ServiceCall $call, $async.Future<$6.CreateConnectionRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$6.DeleteConnectionResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$6.DeleteConnectionRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$6.ListConnectionsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$6.ListConnectionsRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$6.GetDetailsConnectionsResult> getDetails_Pre($grpc.ServiceCall $call, $async.Future<$6.GetDetailsConnectionsRequest> $request) async {
    return getDetails($call, await $request);
  }

  $async.Future<$6.GetStartDetailsConnectionsResult> getStartDetails_Pre($grpc.ServiceCall $call, $async.Future<$6.GetStartDetailsConnectionsRequest> $request) async {
    return getStartDetails($call, await $request);
  }

  $async.Future<$6.SetRunDetailsConnectionsResult> setRunDetails_Pre($grpc.ServiceCall $call, $async.Future<$6.SetRunDetailsConnectionsRequest> $request) async {
    return setRunDetails($call, await $request);
  }

  $async.Future<$6.RenewConnectionSAResult> renewConnectionSA_Pre($grpc.ServiceCall $call, $async.Future<$6.RenewConnectionSARequest> $request) async {
    return renewConnectionSA($call, await $request);
  }

  $async.Future<$6.DeleteConnectionInDBResult> deleteConnectionInDB_Pre($grpc.ServiceCall $call, $async.Future<$6.DeleteConnectionInDBRequest> $request) async {
    return deleteConnectionInDB($call, await $request);
  }

  $async.Future<$6.IsConnectionExistResult> isConnectionExist_Pre($grpc.ServiceCall $call, $async.Future<$6.IsConnectionExistRequest> $request) async {
    return isConnectionExist($call, await $request);
  }

  $async.Future<$6.CreateConnectionResult> create($grpc.ServiceCall call, $6.CreateConnectionRequest request);
  $async.Future<$6.DeleteConnectionResult> delete($grpc.ServiceCall call, $6.DeleteConnectionRequest request);
  $async.Future<$6.ListConnectionsResult> list($grpc.ServiceCall call, $6.ListConnectionsRequest request);
  $async.Future<$6.GetDetailsConnectionsResult> getDetails($grpc.ServiceCall call, $6.GetDetailsConnectionsRequest request);
  $async.Future<$6.GetStartDetailsConnectionsResult> getStartDetails($grpc.ServiceCall call, $6.GetStartDetailsConnectionsRequest request);
  $async.Future<$6.SetRunDetailsConnectionsResult> setRunDetails($grpc.ServiceCall call, $6.SetRunDetailsConnectionsRequest request);
  $async.Future<$6.RenewConnectionSAResult> renewConnectionSA($grpc.ServiceCall call, $6.RenewConnectionSARequest request);
  $async.Future<$6.DeleteConnectionInDBResult> deleteConnectionInDB($grpc.ServiceCall call, $6.DeleteConnectionInDBRequest request);
  $async.Future<$6.IsConnectionExistResult> isConnectionExist($grpc.ServiceCall call, $6.IsConnectionExistRequest request);
}
