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

export 'attachmentType.pb.dart';

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

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

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

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

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

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

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

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

  $grpc.ResponseFuture<$0.DeleteAttachmentsTypeForResourceResponse> deleteAttachmentsTypeForResource($0.DeleteAttachmentsTypeForResourceRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteAttachmentsTypeForResource, request, options: options);
  }

    // method descriptors

  static final _$create = $grpc.ClientMethod<$0.CreateAttachmentTypeRequest, $0.CreateAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Create',
      ($0.CreateAttachmentTypeRequest value) => value.writeToBuffer(),
      $0.CreateAttachmentTypeResponse.fromBuffer);
  static final _$get = $grpc.ClientMethod<$0.GetAttachmentTypeRequest, $0.GetAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Get',
      ($0.GetAttachmentTypeRequest value) => value.writeToBuffer(),
      $0.GetAttachmentTypeResponse.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListAttachmentTypeRequest, $0.ListAttachmentTypeResponse>(
      '/api.AttachmentTypeService/List',
      ($0.ListAttachmentTypeRequest value) => value.writeToBuffer(),
      $0.ListAttachmentTypeResponse.fromBuffer);
  static final _$update = $grpc.ClientMethod<$0.UpdateAttachmentTypeRequest, $0.UpdateAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Update',
      ($0.UpdateAttachmentTypeRequest value) => value.writeToBuffer(),
      $0.UpdateAttachmentTypeResponse.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeleteAttachmentTypeRequest, $0.DeleteAttachmentTypeResponse>(
      '/api.AttachmentTypeService/Delete',
      ($0.DeleteAttachmentTypeRequest value) => value.writeToBuffer(),
      $0.DeleteAttachmentTypeResponse.fromBuffer);
  static final _$deleteAll = $grpc.ClientMethod<$0.DeleteAllAttachmentsTypeRequest, $0.DeleteAllAttachmentsTypeResponse>(
      '/api.AttachmentTypeService/DeleteAll',
      ($0.DeleteAllAttachmentsTypeRequest value) => value.writeToBuffer(),
      $0.DeleteAllAttachmentsTypeResponse.fromBuffer);
  static final _$deleteAttachmentsTypeForResource = $grpc.ClientMethod<$0.DeleteAttachmentsTypeForResourceRequest, $0.DeleteAttachmentsTypeForResourceResponse>(
      '/api.AttachmentTypeService/DeleteAttachmentsTypeForResource',
      ($0.DeleteAttachmentsTypeForResourceRequest value) => value.writeToBuffer(),
      $0.DeleteAttachmentsTypeForResourceResponse.fromBuffer);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  $async.Future<$0.DeleteAllAttachmentsTypeResponse> deleteAll($grpc.ServiceCall call, $0.DeleteAllAttachmentsTypeRequest request);

  $async.Future<$0.DeleteAttachmentsTypeForResourceResponse> deleteAttachmentsTypeForResource_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteAttachmentsTypeForResourceRequest> $request) async {
    return deleteAttachmentsTypeForResource($call, await $request);
  }

  $async.Future<$0.DeleteAttachmentsTypeForResourceResponse> deleteAttachmentsTypeForResource($grpc.ServiceCall call, $0.DeleteAttachmentsTypeForResourceRequest request);

}
