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

export 'module.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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