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

export 'module.pb.dart';

@$pb.GrpcServiceName('api.ModuleService')
class ModuleServiceClient extends $grpc.Client {
  static final _$list = $grpc.ClientMethod<$34.ListModulesRequest, $34.ListModulesResponse>(
      '/api.ModuleService/List',
      ($34.ListModulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.ListModulesResponse.fromBuffer(value));
  static final _$create = $grpc.ClientMethod<$34.CreateModuleRequest, $34.CreateModuleResponse>(
      '/api.ModuleService/Create',
      ($34.CreateModuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.CreateModuleResponse.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$34.DeleteModuleRequest, $34.DeleteModuleResponse>(
      '/api.ModuleService/Delete',
      ($34.DeleteModuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.DeleteModuleResponse.fromBuffer(value));
  static final _$setOrganisationModules = $grpc.ClientMethod<$34.SetOrganisationModulesRequest, $34.SetOrganisationModulesResponse>(
      '/api.ModuleService/SetOrganisationModules',
      ($34.SetOrganisationModulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.SetOrganisationModulesResponse.fromBuffer(value));
  static final _$setProjectModules = $grpc.ClientMethod<$34.SetProjectModulesRequest, $34.SetProjectModulesResponse>(
      '/api.ModuleService/SetProjectModules',
      ($34.SetProjectModulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.SetProjectModulesResponse.fromBuffer(value));
  static final _$setResourceModules = $grpc.ClientMethod<$34.SetResourceModulesRequest, $34.SetResourceModulesResponse>(
      '/api.ModuleService/SetResourceModules',
      ($34.SetResourceModulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.SetResourceModulesResponse.fromBuffer(value));
  static final _$listResourceModules = $grpc.ClientMethod<$34.ListResourceModulesRequest, $34.ListResourceModulesResponse>(
      '/api.ModuleService/ListResourceModules',
      ($34.ListResourceModulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.ListResourceModulesResponse.fromBuffer(value));
  static final _$isAPIActivated = $grpc.ClientMethod<$34.IsAPIActivatedRequest, $34.IsAPIActivatedResponse>(
      '/api.ModuleService/IsAPIActivated',
      ($34.IsAPIActivatedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $34.IsAPIActivatedResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$34.ListModulesResponse> list($34.ListModulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$34.CreateModuleResponse> create($34.CreateModuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$34.DeleteModuleResponse> delete($34.DeleteModuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$34.SetOrganisationModulesResponse> setOrganisationModules($34.SetOrganisationModulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setOrganisationModules, request, options: options);
  }

  $grpc.ResponseFuture<$34.SetProjectModulesResponse> setProjectModules($34.SetProjectModulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setProjectModules, request, options: options);
  }

  $grpc.ResponseFuture<$34.SetResourceModulesResponse> setResourceModules($34.SetResourceModulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setResourceModules, request, options: options);
  }

  $grpc.ResponseFuture<$34.ListResourceModulesResponse> listResourceModules($34.ListResourceModulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listResourceModules, request, options: options);
  }

  $grpc.ResponseFuture<$34.IsAPIActivatedResponse> isAPIActivated($34.IsAPIActivatedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$isAPIActivated, request, options: options);
  }
}

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

  ModuleServiceBase() {
    $addMethod($grpc.ServiceMethod<$34.ListModulesRequest, $34.ListModulesResponse>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.ListModulesRequest.fromBuffer(value),
        ($34.ListModulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.CreateModuleRequest, $34.CreateModuleResponse>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.CreateModuleRequest.fromBuffer(value),
        ($34.CreateModuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.DeleteModuleRequest, $34.DeleteModuleResponse>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.DeleteModuleRequest.fromBuffer(value),
        ($34.DeleteModuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.SetOrganisationModulesRequest, $34.SetOrganisationModulesResponse>(
        'SetOrganisationModules',
        setOrganisationModules_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.SetOrganisationModulesRequest.fromBuffer(value),
        ($34.SetOrganisationModulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.SetProjectModulesRequest, $34.SetProjectModulesResponse>(
        'SetProjectModules',
        setProjectModules_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.SetProjectModulesRequest.fromBuffer(value),
        ($34.SetProjectModulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.SetResourceModulesRequest, $34.SetResourceModulesResponse>(
        'SetResourceModules',
        setResourceModules_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.SetResourceModulesRequest.fromBuffer(value),
        ($34.SetResourceModulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.ListResourceModulesRequest, $34.ListResourceModulesResponse>(
        'ListResourceModules',
        listResourceModules_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.ListResourceModulesRequest.fromBuffer(value),
        ($34.ListResourceModulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.IsAPIActivatedRequest, $34.IsAPIActivatedResponse>(
        'IsAPIActivated',
        isAPIActivated_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.IsAPIActivatedRequest.fromBuffer(value),
        ($34.IsAPIActivatedResponse value) => value.writeToBuffer()));
  }

  $async.Future<$34.ListModulesResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$34.ListModulesRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$34.CreateModuleResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$34.CreateModuleRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$34.DeleteModuleResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$34.DeleteModuleRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$34.SetOrganisationModulesResponse> setOrganisationModules_Pre($grpc.ServiceCall $call, $async.Future<$34.SetOrganisationModulesRequest> $request) async {
    return setOrganisationModules($call, await $request);
  }

  $async.Future<$34.SetProjectModulesResponse> setProjectModules_Pre($grpc.ServiceCall $call, $async.Future<$34.SetProjectModulesRequest> $request) async {
    return setProjectModules($call, await $request);
  }

  $async.Future<$34.SetResourceModulesResponse> setResourceModules_Pre($grpc.ServiceCall $call, $async.Future<$34.SetResourceModulesRequest> $request) async {
    return setResourceModules($call, await $request);
  }

  $async.Future<$34.ListResourceModulesResponse> listResourceModules_Pre($grpc.ServiceCall $call, $async.Future<$34.ListResourceModulesRequest> $request) async {
    return listResourceModules($call, await $request);
  }

  $async.Future<$34.IsAPIActivatedResponse> isAPIActivated_Pre($grpc.ServiceCall $call, $async.Future<$34.IsAPIActivatedRequest> $request) async {
    return isAPIActivated($call, await $request);
  }

  $async.Future<$34.ListModulesResponse> list($grpc.ServiceCall call, $34.ListModulesRequest request);
  $async.Future<$34.CreateModuleResponse> create($grpc.ServiceCall call, $34.CreateModuleRequest request);
  $async.Future<$34.DeleteModuleResponse> delete($grpc.ServiceCall call, $34.DeleteModuleRequest request);
  $async.Future<$34.SetOrganisationModulesResponse> setOrganisationModules($grpc.ServiceCall call, $34.SetOrganisationModulesRequest request);
  $async.Future<$34.SetProjectModulesResponse> setProjectModules($grpc.ServiceCall call, $34.SetProjectModulesRequest request);
  $async.Future<$34.SetResourceModulesResponse> setResourceModules($grpc.ServiceCall call, $34.SetResourceModulesRequest request);
  $async.Future<$34.ListResourceModulesResponse> listResourceModules($grpc.ServiceCall call, $34.ListResourceModulesRequest request);
  $async.Future<$34.IsAPIActivatedResponse> isAPIActivated($grpc.ServiceCall call, $34.IsAPIActivatedRequest request);
}
