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

export 'connector.pb.dart';

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

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

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

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

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

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

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

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

    // method descriptors

  static final _$create = $grpc.ClientMethod<$0.CreateConnectorRequest, $0.CreateConnectorResult>(
      '/api.ConnectorService/Create',
      ($0.CreateConnectorRequest value) => value.writeToBuffer(),
      $0.CreateConnectorResult.fromBuffer);
  static final _$update = $grpc.ClientMethod<$0.UpdateConnectorRequest, $0.UpdateConnectorResult>(
      '/api.ConnectorService/Update',
      ($0.UpdateConnectorRequest value) => value.writeToBuffer(),
      $0.UpdateConnectorResult.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeleteConnectorRequest, $0.DeleteConnectorResult>(
      '/api.ConnectorService/Delete',
      ($0.DeleteConnectorRequest value) => value.writeToBuffer(),
      $0.DeleteConnectorResult.fromBuffer);
  static final _$get = $grpc.ClientMethod<$0.GetConnectorRequest, $0.GetConnectorResult>(
      '/api.ConnectorService/Get',
      ($0.GetConnectorRequest value) => value.writeToBuffer(),
      $0.GetConnectorResult.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListConnectorsRequest, $0.ListConnectorsResult>(
      '/api.ConnectorService/List',
      ($0.ListConnectorsRequest value) => value.writeToBuffer(),
      $0.ListConnectorsResult.fromBuffer);
  static final _$listAvailable = $grpc.ClientMethod<$0.ListAvailableConnectorsRequest, $0.ListAvailableConnectorsResult>(
      '/api.ConnectorService/ListAvailable',
      ($0.ListAvailableConnectorsRequest value) => value.writeToBuffer(),
      $0.ListAvailableConnectorsResult.fromBuffer);
}

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

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

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

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

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

  $async.Future<$0.UpdateConnectorResult> update($grpc.ServiceCall call, $0.UpdateConnectorRequest request);

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

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

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

  $async.Future<$0.GetConnectorResult> get($grpc.ServiceCall call, $0.GetConnectorRequest request);

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

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

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

  $async.Future<$0.ListAvailableConnectorsResult> listAvailable($grpc.ServiceCall call, $0.ListAvailableConnectorsRequest request);

}
