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

export 'api.pb.dart';

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

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

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

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

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

  $grpc.ResponseFuture<$0.ListUserRPTsResponse> listUserRPTs($0.ListUserRPTsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$listUserRPTs, request, options: options);
  }

  $grpc.ResponseFuture<$0.SynchronizeUserRPTsResponse> synchronizeUserRPTs($0.SynchronizeUserRPTsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$synchronizeUserRPTs, request, options: options);
  }

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

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

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

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

    // method descriptors

  static final _$getPermissions = $grpc.ClientMethod<$0.GetPermissionsRequest, $0.GetPermissionsResult>(
      '/api.APIService/GetPermissions',
      ($0.GetPermissionsRequest value) => value.writeToBuffer(),
      $0.GetPermissionsResult.fromBuffer);
  static final _$getUIPermissions = $grpc.ClientMethod<$0.GetUIPermissionsRequest, $0.GetUIPermissionsResult>(
      '/api.APIService/GetUIPermissions',
      ($0.GetUIPermissionsRequest value) => value.writeToBuffer(),
      $0.GetUIPermissionsResult.fromBuffer);
  static final _$listUserUIPermissions = $grpc.ClientMethod<$0.ListUserUIPermissionsRequest, $0.ListUserUIPermissionsResult>(
      '/api.APIService/ListUserUIPermissions',
      ($0.ListUserUIPermissionsRequest value) => value.writeToBuffer(),
      $0.ListUserUIPermissionsResult.fromBuffer);
  static final _$listUserRPTs = $grpc.ClientMethod<$0.ListUserRPTsRequest, $0.ListUserRPTsResponse>(
      '/api.APIService/ListUserRPTs',
      ($0.ListUserRPTsRequest value) => value.writeToBuffer(),
      $0.ListUserRPTsResponse.fromBuffer);
  static final _$synchronizeUserRPTs = $grpc.ClientMethod<$0.SynchronizeUserRPTsRequest, $0.SynchronizeUserRPTsResponse>(
      '/api.APIService/SynchronizeUserRPTs',
      ($0.SynchronizeUserRPTsRequest value) => value.writeToBuffer(),
      $0.SynchronizeUserRPTsResponse.fromBuffer);
  static final _$registerPackage = $grpc.ClientMethod<$0.RegisterPackageRequest, $0.RegisterPackageResult>(
      '/api.APIService/RegisterPackage',
      ($0.RegisterPackageRequest value) => value.writeToBuffer(),
      $0.RegisterPackageResult.fromBuffer);
  static final _$createScope = $grpc.ClientMethod<$0.CreateScopeRequest, $0.CreateScopeResult>(
      '/api.APIService/CreateScope',
      ($0.CreateScopeRequest value) => value.writeToBuffer(),
      $0.CreateScopeResult.fromBuffer);
  static final _$deleteScope = $grpc.ClientMethod<$0.DeleteScopeRequest, $0.DeleteScopeResult>(
      '/api.APIService/DeleteScope',
      ($0.DeleteScopeRequest value) => value.writeToBuffer(),
      $0.DeleteScopeResult.fromBuffer);
  static final _$cleanScope = $grpc.ClientMethod<$0.CleanScopeRequest, $0.CleanScopeResult>(
      '/api.APIService/CleanScope',
      ($0.CleanScopeRequest value) => value.writeToBuffer(),
      $0.CleanScopeResult.fromBuffer);
}

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

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

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

  $async.Future<$0.GetPermissionsResult> getPermissions($grpc.ServiceCall call, $0.GetPermissionsRequest request);

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

  $async.Future<$0.GetUIPermissionsResult> getUIPermissions($grpc.ServiceCall call, $0.GetUIPermissionsRequest request);

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

  $async.Future<$0.ListUserUIPermissionsResult> listUserUIPermissions($grpc.ServiceCall call, $0.ListUserUIPermissionsRequest request);

  $async.Future<$0.ListUserRPTsResponse> listUserRPTs_Pre($grpc.ServiceCall $call, $async.Future<$0.ListUserRPTsRequest> $request) async {
    return listUserRPTs($call, await $request);
  }

  $async.Future<$0.ListUserRPTsResponse> listUserRPTs($grpc.ServiceCall call, $0.ListUserRPTsRequest request);

  $async.Future<$0.SynchronizeUserRPTsResponse> synchronizeUserRPTs_Pre($grpc.ServiceCall $call, $async.Future<$0.SynchronizeUserRPTsRequest> $request) async {
    return synchronizeUserRPTs($call, await $request);
  }

  $async.Future<$0.SynchronizeUserRPTsResponse> synchronizeUserRPTs($grpc.ServiceCall call, $0.SynchronizeUserRPTsRequest request);

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

  $async.Future<$0.RegisterPackageResult> registerPackage($grpc.ServiceCall call, $0.RegisterPackageRequest request);

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

  $async.Future<$0.CreateScopeResult> createScope($grpc.ServiceCall call, $0.CreateScopeRequest request);

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

  $async.Future<$0.DeleteScopeResult> deleteScope($grpc.ServiceCall call, $0.DeleteScopeRequest request);

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

  $async.Future<$0.CleanScopeResult> cleanScope($grpc.ServiceCall call, $0.CleanScopeRequest request);

}
