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

export 'connection.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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