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

export 'connector.pb.dart';

@$pb.GrpcServiceName('api.ConnectorService')
class ConnectorServiceClient extends $grpc.Client {
  static final _$create = $grpc.ClientMethod<$17.CreateConnectorRequest, $17.CreateConnectorResult>(
      '/api.ConnectorService/Create',
      ($17.CreateConnectorRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.CreateConnectorResult.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$17.UpdateConnectorRequest, $17.UpdateConnectorResult>(
      '/api.ConnectorService/Update',
      ($17.UpdateConnectorRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.UpdateConnectorResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$17.DeleteConnectorRequest, $17.DeleteConnectorResult>(
      '/api.ConnectorService/Delete',
      ($17.DeleteConnectorRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.DeleteConnectorResult.fromBuffer(value));
  static final _$get = $grpc.ClientMethod<$17.GetConnectorRequest, $17.GetConnectorResult>(
      '/api.ConnectorService/Get',
      ($17.GetConnectorRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.GetConnectorResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$17.ListConnectorsRequest, $17.ListConnectorsResult>(
      '/api.ConnectorService/List',
      ($17.ListConnectorsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.ListConnectorsResult.fromBuffer(value));
  static final _$listAvailable = $grpc.ClientMethod<$17.ListAvailableConnectorsRequest, $17.ListAvailableConnectorsResult>(
      '/api.ConnectorService/ListAvailable',
      ($17.ListAvailableConnectorsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $17.ListAvailableConnectorsResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$17.CreateConnectorResult> create($17.CreateConnectorRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$17.UpdateConnectorResult> update($17.UpdateConnectorRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$17.DeleteConnectorResult> delete($17.DeleteConnectorRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$17.GetConnectorResult> get($17.GetConnectorRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$17.ListConnectorsResult> list($17.ListConnectorsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$17.ListAvailableConnectorsResult> listAvailable($17.ListAvailableConnectorsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listAvailable, request, options: options);
  }
}

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

  ConnectorServiceBase() {
    $addMethod($grpc.ServiceMethod<$17.CreateConnectorRequest, $17.CreateConnectorResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.CreateConnectorRequest.fromBuffer(value),
        ($17.CreateConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$17.UpdateConnectorRequest, $17.UpdateConnectorResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.UpdateConnectorRequest.fromBuffer(value),
        ($17.UpdateConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$17.DeleteConnectorRequest, $17.DeleteConnectorResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.DeleteConnectorRequest.fromBuffer(value),
        ($17.DeleteConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$17.GetConnectorRequest, $17.GetConnectorResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.GetConnectorRequest.fromBuffer(value),
        ($17.GetConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$17.ListConnectorsRequest, $17.ListConnectorsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.ListConnectorsRequest.fromBuffer(value),
        ($17.ListConnectorsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$17.ListAvailableConnectorsRequest, $17.ListAvailableConnectorsResult>(
        'ListAvailable',
        listAvailable_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $17.ListAvailableConnectorsRequest.fromBuffer(value),
        ($17.ListAvailableConnectorsResult value) => value.writeToBuffer()));
  }

  $async.Future<$17.CreateConnectorResult> create_Pre($grpc.ServiceCall $call, $async.Future<$17.CreateConnectorRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$17.UpdateConnectorResult> update_Pre($grpc.ServiceCall $call, $async.Future<$17.UpdateConnectorRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$17.DeleteConnectorResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$17.DeleteConnectorRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$17.GetConnectorResult> get_Pre($grpc.ServiceCall $call, $async.Future<$17.GetConnectorRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$17.ListConnectorsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$17.ListConnectorsRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$17.ListAvailableConnectorsResult> listAvailable_Pre($grpc.ServiceCall $call, $async.Future<$17.ListAvailableConnectorsRequest> $request) async {
    return listAvailable($call, await $request);
  }

  $async.Future<$17.CreateConnectorResult> create($grpc.ServiceCall call, $17.CreateConnectorRequest request);
  $async.Future<$17.UpdateConnectorResult> update($grpc.ServiceCall call, $17.UpdateConnectorRequest request);
  $async.Future<$17.DeleteConnectorResult> delete($grpc.ServiceCall call, $17.DeleteConnectorRequest request);
  $async.Future<$17.GetConnectorResult> get($grpc.ServiceCall call, $17.GetConnectorRequest request);
  $async.Future<$17.ListConnectorsResult> list($grpc.ServiceCall call, $17.ListConnectorsRequest request);
  $async.Future<$17.ListAvailableConnectorsResult> listAvailable($grpc.ServiceCall call, $17.ListAvailableConnectorsRequest request);
}
