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

export 'api.pb.dart';

@$pb.GrpcServiceName('api.APIService')
class APIServiceClient extends $grpc.Client {
  static final _$getPermissions = $grpc.ClientMethod<$6.GetPermissionsRequest, $6.GetPermissionsResult>(
      '/api.APIService/GetPermissions',
      ($6.GetPermissionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.GetPermissionsResult.fromBuffer(value));
  static final _$getUIPermissions = $grpc.ClientMethod<$6.GetUIPermissionsRequest, $6.GetUIPermissionsResult>(
      '/api.APIService/GetUIPermissions',
      ($6.GetUIPermissionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.GetUIPermissionsResult.fromBuffer(value));
  static final _$listUserUIPermissions = $grpc.ClientMethod<$6.ListUserUIPermissionsRequest, $6.ListUserUIPermissionsResult>(
      '/api.APIService/ListUserUIPermissions',
      ($6.ListUserUIPermissionsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.ListUserUIPermissionsResult.fromBuffer(value));
  static final _$registerPackage = $grpc.ClientMethod<$6.RegisterPackageRequest, $6.RegisterPackageResult>(
      '/api.APIService/RegisterPackage',
      ($6.RegisterPackageRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.RegisterPackageResult.fromBuffer(value));
  static final _$createScope = $grpc.ClientMethod<$6.CreateScopeRequest, $6.CreateScopeResult>(
      '/api.APIService/CreateScope',
      ($6.CreateScopeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.CreateScopeResult.fromBuffer(value));
  static final _$deleteScope = $grpc.ClientMethod<$6.DeleteScopeRequest, $6.DeleteScopeResult>(
      '/api.APIService/DeleteScope',
      ($6.DeleteScopeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.DeleteScopeResult.fromBuffer(value));
  static final _$cleanScope = $grpc.ClientMethod<$6.CleanScopeRequest, $6.CleanScopeResult>(
      '/api.APIService/CleanScope',
      ($6.CleanScopeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $6.CleanScopeResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$6.GetPermissionsResult> getPermissions($6.GetPermissionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getPermissions, request, options: options);
  }

  $grpc.ResponseFuture<$6.GetUIPermissionsResult> getUIPermissions($6.GetUIPermissionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getUIPermissions, request, options: options);
  }

  $grpc.ResponseFuture<$6.ListUserUIPermissionsResult> listUserUIPermissions($6.ListUserUIPermissionsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listUserUIPermissions, request, options: options);
  }

  $grpc.ResponseFuture<$6.RegisterPackageResult> registerPackage($6.RegisterPackageRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$registerPackage, request, options: options);
  }

  $grpc.ResponseFuture<$6.CreateScopeResult> createScope($6.CreateScopeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createScope, request, options: options);
  }

  $grpc.ResponseFuture<$6.DeleteScopeResult> deleteScope($6.DeleteScopeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteScope, request, options: options);
  }

  $grpc.ResponseFuture<$6.CleanScopeResult> cleanScope($6.CleanScopeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$cleanScope, request, options: options);
  }
}

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

  APIServiceBase() {
    $addMethod($grpc.ServiceMethod<$6.GetPermissionsRequest, $6.GetPermissionsResult>(
        'GetPermissions',
        getPermissions_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.GetPermissionsRequest.fromBuffer(value),
        ($6.GetPermissionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.GetUIPermissionsRequest, $6.GetUIPermissionsResult>(
        'GetUIPermissions',
        getUIPermissions_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.GetUIPermissionsRequest.fromBuffer(value),
        ($6.GetUIPermissionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.ListUserUIPermissionsRequest, $6.ListUserUIPermissionsResult>(
        'ListUserUIPermissions',
        listUserUIPermissions_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.ListUserUIPermissionsRequest.fromBuffer(value),
        ($6.ListUserUIPermissionsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.RegisterPackageRequest, $6.RegisterPackageResult>(
        'RegisterPackage',
        registerPackage_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.RegisterPackageRequest.fromBuffer(value),
        ($6.RegisterPackageResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.CreateScopeRequest, $6.CreateScopeResult>(
        'CreateScope',
        createScope_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.CreateScopeRequest.fromBuffer(value),
        ($6.CreateScopeResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.DeleteScopeRequest, $6.DeleteScopeResult>(
        'DeleteScope',
        deleteScope_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.DeleteScopeRequest.fromBuffer(value),
        ($6.DeleteScopeResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$6.CleanScopeRequest, $6.CleanScopeResult>(
        'CleanScope',
        cleanScope_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $6.CleanScopeRequest.fromBuffer(value),
        ($6.CleanScopeResult value) => value.writeToBuffer()));
  }

  $async.Future<$6.GetPermissionsResult> getPermissions_Pre($grpc.ServiceCall $call, $async.Future<$6.GetPermissionsRequest> $request) async {
    return getPermissions($call, await $request);
  }

  $async.Future<$6.GetUIPermissionsResult> getUIPermissions_Pre($grpc.ServiceCall $call, $async.Future<$6.GetUIPermissionsRequest> $request) async {
    return getUIPermissions($call, await $request);
  }

  $async.Future<$6.ListUserUIPermissionsResult> listUserUIPermissions_Pre($grpc.ServiceCall $call, $async.Future<$6.ListUserUIPermissionsRequest> $request) async {
    return listUserUIPermissions($call, await $request);
  }

  $async.Future<$6.RegisterPackageResult> registerPackage_Pre($grpc.ServiceCall $call, $async.Future<$6.RegisterPackageRequest> $request) async {
    return registerPackage($call, await $request);
  }

  $async.Future<$6.CreateScopeResult> createScope_Pre($grpc.ServiceCall $call, $async.Future<$6.CreateScopeRequest> $request) async {
    return createScope($call, await $request);
  }

  $async.Future<$6.DeleteScopeResult> deleteScope_Pre($grpc.ServiceCall $call, $async.Future<$6.DeleteScopeRequest> $request) async {
    return deleteScope($call, await $request);
  }

  $async.Future<$6.CleanScopeResult> cleanScope_Pre($grpc.ServiceCall $call, $async.Future<$6.CleanScopeRequest> $request) async {
    return cleanScope($call, await $request);
  }

  $async.Future<$6.GetPermissionsResult> getPermissions($grpc.ServiceCall call, $6.GetPermissionsRequest request);
  $async.Future<$6.GetUIPermissionsResult> getUIPermissions($grpc.ServiceCall call, $6.GetUIPermissionsRequest request);
  $async.Future<$6.ListUserUIPermissionsResult> listUserUIPermissions($grpc.ServiceCall call, $6.ListUserUIPermissionsRequest request);
  $async.Future<$6.RegisterPackageResult> registerPackage($grpc.ServiceCall call, $6.RegisterPackageRequest request);
  $async.Future<$6.CreateScopeResult> createScope($grpc.ServiceCall call, $6.CreateScopeRequest request);
  $async.Future<$6.DeleteScopeResult> deleteScope($grpc.ServiceCall call, $6.DeleteScopeRequest request);
  $async.Future<$6.CleanScopeResult> cleanScope($grpc.ServiceCall call, $6.CleanScopeRequest request);
}
