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

export 'claim-type.pb.dart';

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

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

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

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

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

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

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

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$0.DeleteClaimTypesForProjectResponse> deleteClaimTypesForProject($0.DeleteClaimTypesForProjectRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteClaimTypesForProject, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteClaimTypesForResourceResponse> deleteClaimTypesForResource($0.DeleteClaimTypesForResourceRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteClaimTypesForResource, request, options: options);
  }

    // method descriptors

  static final _$create = $grpc.ClientMethod<$0.CreateClaimTypeRequest, $0.CreateClaimTypeResponse>(
      '/api.ClaimTypeService/Create',
      ($0.CreateClaimTypeRequest value) => value.writeToBuffer(),
      $0.CreateClaimTypeResponse.fromBuffer);
  static final _$get = $grpc.ClientMethod<$0.GetClaimTypeRequest, $0.GetClaimTypeResponse>(
      '/api.ClaimTypeService/Get',
      ($0.GetClaimTypeRequest value) => value.writeToBuffer(),
      $0.GetClaimTypeResponse.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListClaimTypeRequest, $0.ListClaimTypeResponse>(
      '/api.ClaimTypeService/List',
      ($0.ListClaimTypeRequest value) => value.writeToBuffer(),
      $0.ListClaimTypeResponse.fromBuffer);
  static final _$update = $grpc.ClientMethod<$0.UpdateClaimTypeRequest, $0.UpdateClaimTypeResponse>(
      '/api.ClaimTypeService/Update',
      ($0.UpdateClaimTypeRequest value) => value.writeToBuffer(),
      $0.UpdateClaimTypeResponse.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeleteClaimTypeRequest, $0.DeleteClaimTypeResponse>(
      '/api.ClaimTypeService/Delete',
      ($0.DeleteClaimTypeRequest value) => value.writeToBuffer(),
      $0.DeleteClaimTypeResponse.fromBuffer);
  static final _$deleteClaimTypesForProject = $grpc.ClientMethod<$0.DeleteClaimTypesForProjectRequest, $0.DeleteClaimTypesForProjectResponse>(
      '/api.ClaimTypeService/DeleteClaimTypesForProject',
      ($0.DeleteClaimTypesForProjectRequest value) => value.writeToBuffer(),
      $0.DeleteClaimTypesForProjectResponse.fromBuffer);
  static final _$deleteClaimTypesForResource = $grpc.ClientMethod<$0.DeleteClaimTypesForResourceRequest, $0.DeleteClaimTypesForResourceResponse>(
      '/api.ClaimTypeService/DeleteClaimTypesForResource',
      ($0.DeleteClaimTypesForResourceRequest value) => value.writeToBuffer(),
      $0.DeleteClaimTypesForResourceResponse.fromBuffer);
}

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

  ClaimTypeServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.CreateClaimTypeRequest, $0.CreateClaimTypeResponse>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateClaimTypeRequest.fromBuffer(value),
        ($0.CreateClaimTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetClaimTypeRequest, $0.GetClaimTypeResponse>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetClaimTypeRequest.fromBuffer(value),
        ($0.GetClaimTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListClaimTypeRequest, $0.ListClaimTypeResponse>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListClaimTypeRequest.fromBuffer(value),
        ($0.ListClaimTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.UpdateClaimTypeRequest, $0.UpdateClaimTypeResponse>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.UpdateClaimTypeRequest.fromBuffer(value),
        ($0.UpdateClaimTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteClaimTypeRequest, $0.DeleteClaimTypeResponse>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteClaimTypeRequest.fromBuffer(value),
        ($0.DeleteClaimTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteClaimTypesForProjectRequest, $0.DeleteClaimTypesForProjectResponse>(
        'DeleteClaimTypesForProject',
        deleteClaimTypesForProject_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteClaimTypesForProjectRequest.fromBuffer(value),
        ($0.DeleteClaimTypesForProjectResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteClaimTypesForResourceRequest, $0.DeleteClaimTypesForResourceResponse>(
        'DeleteClaimTypesForResource',
        deleteClaimTypesForResource_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteClaimTypesForResourceRequest.fromBuffer(value),
        ($0.DeleteClaimTypesForResourceResponse value) => value.writeToBuffer()));
  }

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

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

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

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

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

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

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

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

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

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

  $async.Future<$0.DeleteClaimTypesForProjectResponse> deleteClaimTypesForProject_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteClaimTypesForProjectRequest> $request) async {
    return deleteClaimTypesForProject($call, await $request);
  }

  $async.Future<$0.DeleteClaimTypesForProjectResponse> deleteClaimTypesForProject($grpc.ServiceCall call, $0.DeleteClaimTypesForProjectRequest request);

  $async.Future<$0.DeleteClaimTypesForResourceResponse> deleteClaimTypesForResource_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteClaimTypesForResourceRequest> $request) async {
    return deleteClaimTypesForResource($call, await $request);
  }

  $async.Future<$0.DeleteClaimTypesForResourceResponse> deleteClaimTypesForResource($grpc.ServiceCall call, $0.DeleteClaimTypesForResourceRequest request);

}
