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

export 'attachmentType.pb.dart';

@$pb.GrpcServiceName('api.AttachmentTypeService')
class AttachmentTypeServiceClient extends $grpc.Client {
  static final _$create = $grpc.ClientMethod<$14.CreateAttachmentTypeRequest, $14.CreateAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Create',
      ($14.CreateAttachmentTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.CreateAttachmentTypeResponse.fromBuffer(value));
  static final _$get = $grpc.ClientMethod<$14.GetAttachmentTypeRequest, $14.GetAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Get',
      ($14.GetAttachmentTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.GetAttachmentTypeResponse.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$14.ListAttachmentTypeRequest, $14.ListAttachmentTypeResponse>(
      '/api.AttachmentTypeService/List',
      ($14.ListAttachmentTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.ListAttachmentTypeResponse.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$14.UpdateAttachmentTypeRequest, $14.UpdateAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Update',
      ($14.UpdateAttachmentTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.UpdateAttachmentTypeResponse.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$14.DeleteAttachmentTypeRequest, $14.DeleteAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Delete',
      ($14.DeleteAttachmentTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.DeleteAttachmentTypeResponse.fromBuffer(value));
  static final _$deleteAll = $grpc.ClientMethod<$14.DeleteAllAttachmentsTypeRequest, $14.DeleteAllAttachmentsTypeResponse>(
      '/api.AttachmentTypeService/DeleteAll',
      ($14.DeleteAllAttachmentsTypeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $14.DeleteAllAttachmentsTypeResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$14.CreateAttachmentTypeResponse> create($14.CreateAttachmentTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$14.GetAttachmentTypeResponse> get($14.GetAttachmentTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$14.ListAttachmentTypeResponse> list($14.ListAttachmentTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$14.UpdateAttachmentTypeResponse> update($14.UpdateAttachmentTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$14.DeleteAttachmentTypeResponse> delete($14.DeleteAttachmentTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$14.DeleteAllAttachmentsTypeResponse> deleteAll($14.DeleteAllAttachmentsTypeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteAll, request, options: options);
  }
}

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

  AttachmentTypeServiceBase() {
    $addMethod($grpc.ServiceMethod<$14.CreateAttachmentTypeRequest, $14.CreateAttachmentTypeResponse>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.CreateAttachmentTypeRequest.fromBuffer(value),
        ($14.CreateAttachmentTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.GetAttachmentTypeRequest, $14.GetAttachmentTypeResponse>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.GetAttachmentTypeRequest.fromBuffer(value),
        ($14.GetAttachmentTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.ListAttachmentTypeRequest, $14.ListAttachmentTypeResponse>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.ListAttachmentTypeRequest.fromBuffer(value),
        ($14.ListAttachmentTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.UpdateAttachmentTypeRequest, $14.UpdateAttachmentTypeResponse>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.UpdateAttachmentTypeRequest.fromBuffer(value),
        ($14.UpdateAttachmentTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.DeleteAttachmentTypeRequest, $14.DeleteAttachmentTypeResponse>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.DeleteAttachmentTypeRequest.fromBuffer(value),
        ($14.DeleteAttachmentTypeResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.DeleteAllAttachmentsTypeRequest, $14.DeleteAllAttachmentsTypeResponse>(
        'DeleteAll',
        deleteAll_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.DeleteAllAttachmentsTypeRequest.fromBuffer(value),
        ($14.DeleteAllAttachmentsTypeResponse value) => value.writeToBuffer()));
  }

  $async.Future<$14.CreateAttachmentTypeResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$14.CreateAttachmentTypeRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$14.GetAttachmentTypeResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$14.GetAttachmentTypeRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$14.ListAttachmentTypeResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$14.ListAttachmentTypeRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$14.UpdateAttachmentTypeResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$14.UpdateAttachmentTypeRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$14.DeleteAttachmentTypeResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$14.DeleteAttachmentTypeRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$14.DeleteAllAttachmentsTypeResponse> deleteAll_Pre($grpc.ServiceCall $call, $async.Future<$14.DeleteAllAttachmentsTypeRequest> $request) async {
    return deleteAll($call, await $request);
  }

  $async.Future<$14.CreateAttachmentTypeResponse> create($grpc.ServiceCall call, $14.CreateAttachmentTypeRequest request);
  $async.Future<$14.GetAttachmentTypeResponse> get($grpc.ServiceCall call, $14.GetAttachmentTypeRequest request);
  $async.Future<$14.ListAttachmentTypeResponse> list($grpc.ServiceCall call, $14.ListAttachmentTypeRequest request);
  $async.Future<$14.UpdateAttachmentTypeResponse> update($grpc.ServiceCall call, $14.UpdateAttachmentTypeRequest request);
  $async.Future<$14.DeleteAttachmentTypeResponse> delete($grpc.ServiceCall call, $14.DeleteAttachmentTypeRequest request);
  $async.Future<$14.DeleteAllAttachmentsTypeResponse> deleteAll($grpc.ServiceCall call, $14.DeleteAllAttachmentsTypeRequest request);
}
