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

export 'api.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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