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

export 'attachmentType.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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