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

export 'claim-type.pb.dart';

@$pb.GrpcServiceName('api.ClaimTypeService')
class ClaimTypeServiceClient extends $grpc.Client {
  static final _$create = $grpc.ClientMethod<$10.CreateClaimTypeRequest, $10.CreateClaimTypeResponse>(
      '/api.ClaimTypeService/Create',
      ($10.CreateClaimTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.CreateClaimTypeResponse.fromBuffer(value));
  static final _$get = $grpc.ClientMethod<$10.GetClaimTypeRequest, $10.GetClaimTypeResponse>(
      '/api.ClaimTypeService/Get',
      ($10.GetClaimTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.GetClaimTypeResponse.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$10.ListClaimTypeRequest, $10.ListClaimTypeResponse>(
      '/api.ClaimTypeService/List',
      ($10.ListClaimTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.ListClaimTypeResponse.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$10.UpdateClaimTypeRequest, $10.UpdateClaimTypeResponse>(
      '/api.ClaimTypeService/Update',
      ($10.UpdateClaimTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.UpdateClaimTypeResponse.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$10.DeleteClaimTypeRequest, $10.DeleteClaimTypeResponse>(
      '/api.ClaimTypeService/Delete',
      ($10.DeleteClaimTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.DeleteClaimTypeResponse.fromBuffer(value));
  static final _$deleteClaimTypesForProject = $grpc.ClientMethod<$10.DeleteClaimTypesForProjectRequest, $10.DeleteClaimTypesForProjectResponse>(
      '/api.ClaimTypeService/DeleteClaimTypesForProject',
      ($10.DeleteClaimTypesForProjectRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.DeleteClaimTypesForProjectResponse.fromBuffer(value));

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

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

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

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

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

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

  $grpc.ResponseFuture<$10.DeleteClaimTypesForProjectResponse> deleteClaimTypesForProject($10.DeleteClaimTypesForProjectRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteClaimTypesForProject, request, options: options);
  }
}

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

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

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

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

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

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

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

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

  $async.Future<$10.CreateClaimTypeResponse> create($grpc.ServiceCall call, $10.CreateClaimTypeRequest request);
  $async.Future<$10.GetClaimTypeResponse> get($grpc.ServiceCall call, $10.GetClaimTypeRequest request);
  $async.Future<$10.ListClaimTypeResponse> list($grpc.ServiceCall call, $10.ListClaimTypeRequest request);
  $async.Future<$10.UpdateClaimTypeResponse> update($grpc.ServiceCall call, $10.UpdateClaimTypeRequest request);
  $async.Future<$10.DeleteClaimTypeResponse> delete($grpc.ServiceCall call, $10.DeleteClaimTypeRequest request);
  $async.Future<$10.DeleteClaimTypesForProjectResponse> deleteClaimTypesForProject($grpc.ServiceCall call, $10.DeleteClaimTypesForProjectRequest request);
}
