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

export 'connector.pb.dart';

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

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

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

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

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

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

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

  $grpc.ResponseFuture<$5.ListAvailableConnectorsResult> listAvailable($5.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<$5.CreateConnectorRequest, $5.CreateConnectorResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.CreateConnectorRequest.fromBuffer(value),
        ($5.CreateConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.UpdateConnectorRequest, $5.UpdateConnectorResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.UpdateConnectorRequest.fromBuffer(value),
        ($5.UpdateConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.DeleteConnectorRequest, $5.DeleteConnectorResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.DeleteConnectorRequest.fromBuffer(value),
        ($5.DeleteConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.GetConnectorRequest, $5.GetConnectorResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.GetConnectorRequest.fromBuffer(value),
        ($5.GetConnectorResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.ListConnectorsRequest, $5.ListConnectorsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.ListConnectorsRequest.fromBuffer(value),
        ($5.ListConnectorsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$5.ListAvailableConnectorsRequest, $5.ListAvailableConnectorsResult>(
        'ListAvailable',
        listAvailable_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $5.ListAvailableConnectorsRequest.fromBuffer(value),
        ($5.ListAvailableConnectorsResult value) => value.writeToBuffer()));
  }

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

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

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

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

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

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

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