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

export 'partnerApp.pb.dart';

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

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

  $grpc.ResponseFuture<$0.CreatePartnerAppResult> create($0.CreatePartnerAppRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$0.UpdatePartnerAppResult> update($0.UpdatePartnerAppRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeletePartnerAppResult> delete($0.DeletePartnerAppRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetPartnerAppResult> get($0.GetPartnerAppRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListPartnerAppsResult> list($0.ListPartnerAppsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeletePartnerAppInDBResult> deletePartnerAppInDB($0.DeletePartnerAppInDBRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deletePartnerAppInDB, request, options: options);
  }

  $grpc.ResponseFuture<$0.RenewPartnerAppResult> renew($0.RenewPartnerAppRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$renew, request, options: options);
  }

    // method descriptors

  static final _$create = $grpc.ClientMethod<$0.CreatePartnerAppRequest, $0.CreatePartnerAppResult>(
      '/api.PartnerAppService/Create',
      ($0.CreatePartnerAppRequest value) => value.writeToBuffer(),
      $0.CreatePartnerAppResult.fromBuffer);
  static final _$update = $grpc.ClientMethod<$0.UpdatePartnerAppRequest, $0.UpdatePartnerAppResult>(
      '/api.PartnerAppService/Update',
      ($0.UpdatePartnerAppRequest value) => value.writeToBuffer(),
      $0.UpdatePartnerAppResult.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeletePartnerAppRequest, $0.DeletePartnerAppResult>(
      '/api.PartnerAppService/Delete',
      ($0.DeletePartnerAppRequest value) => value.writeToBuffer(),
      $0.DeletePartnerAppResult.fromBuffer);
  static final _$get = $grpc.ClientMethod<$0.GetPartnerAppRequest, $0.GetPartnerAppResult>(
      '/api.PartnerAppService/Get',
      ($0.GetPartnerAppRequest value) => value.writeToBuffer(),
      $0.GetPartnerAppResult.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListPartnerAppsRequest, $0.ListPartnerAppsResult>(
      '/api.PartnerAppService/List',
      ($0.ListPartnerAppsRequest value) => value.writeToBuffer(),
      $0.ListPartnerAppsResult.fromBuffer);
  static final _$deletePartnerAppInDB = $grpc.ClientMethod<$0.DeletePartnerAppInDBRequest, $0.DeletePartnerAppInDBResult>(
      '/api.PartnerAppService/DeletePartnerAppInDB',
      ($0.DeletePartnerAppInDBRequest value) => value.writeToBuffer(),
      $0.DeletePartnerAppInDBResult.fromBuffer);
  static final _$renew = $grpc.ClientMethod<$0.RenewPartnerAppRequest, $0.RenewPartnerAppResult>(
      '/api.PartnerAppService/Renew',
      ($0.RenewPartnerAppRequest value) => value.writeToBuffer(),
      $0.RenewPartnerAppResult.fromBuffer);
}

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

  PartnerAppServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.CreatePartnerAppRequest, $0.CreatePartnerAppResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreatePartnerAppRequest.fromBuffer(value),
        ($0.CreatePartnerAppResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.UpdatePartnerAppRequest, $0.UpdatePartnerAppResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.UpdatePartnerAppRequest.fromBuffer(value),
        ($0.UpdatePartnerAppResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeletePartnerAppRequest, $0.DeletePartnerAppResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeletePartnerAppRequest.fromBuffer(value),
        ($0.DeletePartnerAppResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetPartnerAppRequest, $0.GetPartnerAppResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetPartnerAppRequest.fromBuffer(value),
        ($0.GetPartnerAppResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListPartnerAppsRequest, $0.ListPartnerAppsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListPartnerAppsRequest.fromBuffer(value),
        ($0.ListPartnerAppsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeletePartnerAppInDBRequest, $0.DeletePartnerAppInDBResult>(
        'DeletePartnerAppInDB',
        deletePartnerAppInDB_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeletePartnerAppInDBRequest.fromBuffer(value),
        ($0.DeletePartnerAppInDBResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.RenewPartnerAppRequest, $0.RenewPartnerAppResult>(
        'Renew',
        renew_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.RenewPartnerAppRequest.fromBuffer(value),
        ($0.RenewPartnerAppResult value) => value.writeToBuffer()));
  }

  $async.Future<$0.CreatePartnerAppResult> create_Pre($grpc.ServiceCall $call, $async.Future<$0.CreatePartnerAppRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$0.CreatePartnerAppResult> create($grpc.ServiceCall call, $0.CreatePartnerAppRequest request);

  $async.Future<$0.UpdatePartnerAppResult> update_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdatePartnerAppRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$0.UpdatePartnerAppResult> update($grpc.ServiceCall call, $0.UpdatePartnerAppRequest request);

  $async.Future<$0.DeletePartnerAppResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$0.DeletePartnerAppRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$0.DeletePartnerAppResult> delete($grpc.ServiceCall call, $0.DeletePartnerAppRequest request);

  $async.Future<$0.GetPartnerAppResult> get_Pre($grpc.ServiceCall $call, $async.Future<$0.GetPartnerAppRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$0.GetPartnerAppResult> get($grpc.ServiceCall call, $0.GetPartnerAppRequest request);

  $async.Future<$0.ListPartnerAppsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$0.ListPartnerAppsRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$0.ListPartnerAppsResult> list($grpc.ServiceCall call, $0.ListPartnerAppsRequest request);

  $async.Future<$0.DeletePartnerAppInDBResult> deletePartnerAppInDB_Pre($grpc.ServiceCall $call, $async.Future<$0.DeletePartnerAppInDBRequest> $request) async {
    return deletePartnerAppInDB($call, await $request);
  }

  $async.Future<$0.DeletePartnerAppInDBResult> deletePartnerAppInDB($grpc.ServiceCall call, $0.DeletePartnerAppInDBRequest request);

  $async.Future<$0.RenewPartnerAppResult> renew_Pre($grpc.ServiceCall $call, $async.Future<$0.RenewPartnerAppRequest> $request) async {
    return renew($call, await $request);
  }

  $async.Future<$0.RenewPartnerAppResult> renew($grpc.ServiceCall call, $0.RenewPartnerAppRequest request);

}
