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

export 'connection.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

    // method descriptors

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

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

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

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

  $async.Future<$0.CreateConnectionResult> create($grpc.ServiceCall call, $0.CreateConnectionRequest request);

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

  $async.Future<$0.DeleteConnectionResult> delete($grpc.ServiceCall call, $0.DeleteConnectionRequest request);

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

  $async.Future<$0.ListConnectionsResult> list($grpc.ServiceCall call, $0.ListConnectionsRequest request);

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

  $async.Future<$0.GetDetailsConnectionsResult> getDetails($grpc.ServiceCall call, $0.GetDetailsConnectionsRequest request);

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

  $async.Future<$0.GetStartDetailsConnectionsResult> getStartDetails($grpc.ServiceCall call, $0.GetStartDetailsConnectionsRequest request);

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

  $async.Future<$0.SetRunDetailsConnectionsResult> setRunDetails($grpc.ServiceCall call, $0.SetRunDetailsConnectionsRequest request);

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

  $async.Future<$0.RenewConnectionSAResult> renewConnectionSA($grpc.ServiceCall call, $0.RenewConnectionSARequest request);

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

  $async.Future<$0.DeleteConnectionInDBResult> deleteConnectionInDB($grpc.ServiceCall call, $0.DeleteConnectionInDBRequest request);

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

  $async.Future<$0.IsConnectionExistResult> isConnectionExist($grpc.ServiceCall call, $0.IsConnectionExistRequest request);

}
