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

export 'nats-api.pb.dart';

@$pb.GrpcServiceName('api.NatsService')
class NatsServiceClient extends $grpc.Client {
  static final _$createProjectAccount = $grpc.ClientMethod<$63.CreateProjectAccountRequest, $63.CreateProjectAccountResult>(
      '/api.NatsService/CreateProjectAccount',
      ($63.CreateProjectAccountRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.CreateProjectAccountResult.fromBuffer(value));
  static final _$deleteProjectAccount = $grpc.ClientMethod<$63.DeleteProjectAccountRequest, $63.DeleteProjectAccountResult>(
      '/api.NatsService/DeleteProjectAccount',
      ($63.DeleteProjectAccountRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.DeleteProjectAccountResult.fromBuffer(value));
  static final _$createPartnerAppUser = $grpc.ClientMethod<$63.CreatePartnerAppUserRequest, $63.CreatePartnerAppUserResult>(
      '/api.NatsService/CreatePartnerAppUser',
      ($63.CreatePartnerAppUserRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.CreatePartnerAppUserResult.fromBuffer(value));
  static final _$deletePartnerAppUser = $grpc.ClientMethod<$63.DeletePartnerAppUserRequest, $63.DeletePartnerAppUserResult>(
      '/api.NatsService/DeletePartnerAppUser',
      ($63.DeletePartnerAppUserRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.DeletePartnerAppUserResult.fromBuffer(value));
  static final _$renewProjectAccountCredentials = $grpc.ClientMethod<$63.RenewProjectAccountCredentialsRequest, $63.RenewProjectAccountCredentialsResult>(
      '/api.NatsService/RenewProjectAccountCredentials',
      ($63.RenewProjectAccountCredentialsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.RenewProjectAccountCredentialsResult.fromBuffer(value));
  static final _$renewPartnerAppUserCredentials = $grpc.ClientMethod<$63.RenewPartnerAppUserCredentialsRequest, $63.RenewPartnerAppUserCredentialsResult>(
      '/api.NatsService/RenewPartnerAppUserCredentials',
      ($63.RenewPartnerAppUserCredentialsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.RenewPartnerAppUserCredentialsResult.fromBuffer(value));
  static final _$pushMessage = $grpc.ClientMethod<$63.PushMessageRequest, $63.PushMessageResult>(
      '/api.NatsService/PushMessage',
      ($63.PushMessageRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $63.PushMessageResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$63.CreateProjectAccountResult> createProjectAccount($63.CreateProjectAccountRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createProjectAccount, request, options: options);
  }

  $grpc.ResponseFuture<$63.DeleteProjectAccountResult> deleteProjectAccount($63.DeleteProjectAccountRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteProjectAccount, request, options: options);
  }

  $grpc.ResponseFuture<$63.CreatePartnerAppUserResult> createPartnerAppUser($63.CreatePartnerAppUserRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createPartnerAppUser, request, options: options);
  }

  $grpc.ResponseFuture<$63.DeletePartnerAppUserResult> deletePartnerAppUser($63.DeletePartnerAppUserRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deletePartnerAppUser, request, options: options);
  }

  $grpc.ResponseFuture<$63.RenewProjectAccountCredentialsResult> renewProjectAccountCredentials($63.RenewProjectAccountCredentialsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$renewProjectAccountCredentials, request, options: options);
  }

  $grpc.ResponseFuture<$63.RenewPartnerAppUserCredentialsResult> renewPartnerAppUserCredentials($63.RenewPartnerAppUserCredentialsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$renewPartnerAppUserCredentials, request, options: options);
  }

  $grpc.ResponseFuture<$63.PushMessageResult> pushMessage($63.PushMessageRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$pushMessage, request, options: options);
  }
}

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

  NatsServiceBase() {
    $addMethod($grpc.ServiceMethod<$63.CreateProjectAccountRequest, $63.CreateProjectAccountResult>(
        'CreateProjectAccount',
        createProjectAccount_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.CreateProjectAccountRequest.fromBuffer(value),
        ($63.CreateProjectAccountResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.DeleteProjectAccountRequest, $63.DeleteProjectAccountResult>(
        'DeleteProjectAccount',
        deleteProjectAccount_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.DeleteProjectAccountRequest.fromBuffer(value),
        ($63.DeleteProjectAccountResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.CreatePartnerAppUserRequest, $63.CreatePartnerAppUserResult>(
        'CreatePartnerAppUser',
        createPartnerAppUser_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.CreatePartnerAppUserRequest.fromBuffer(value),
        ($63.CreatePartnerAppUserResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.DeletePartnerAppUserRequest, $63.DeletePartnerAppUserResult>(
        'DeletePartnerAppUser',
        deletePartnerAppUser_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.DeletePartnerAppUserRequest.fromBuffer(value),
        ($63.DeletePartnerAppUserResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.RenewProjectAccountCredentialsRequest, $63.RenewProjectAccountCredentialsResult>(
        'RenewProjectAccountCredentials',
        renewProjectAccountCredentials_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.RenewProjectAccountCredentialsRequest.fromBuffer(value),
        ($63.RenewProjectAccountCredentialsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.RenewPartnerAppUserCredentialsRequest, $63.RenewPartnerAppUserCredentialsResult>(
        'RenewPartnerAppUserCredentials',
        renewPartnerAppUserCredentials_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.RenewPartnerAppUserCredentialsRequest.fromBuffer(value),
        ($63.RenewPartnerAppUserCredentialsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$63.PushMessageRequest, $63.PushMessageResult>(
        'PushMessage',
        pushMessage_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $63.PushMessageRequest.fromBuffer(value),
        ($63.PushMessageResult value) => value.writeToBuffer()));
  }

  $async.Future<$63.CreateProjectAccountResult> createProjectAccount_Pre($grpc.ServiceCall $call, $async.Future<$63.CreateProjectAccountRequest> $request) async {
    return createProjectAccount($call, await $request);
  }

  $async.Future<$63.DeleteProjectAccountResult> deleteProjectAccount_Pre($grpc.ServiceCall $call, $async.Future<$63.DeleteProjectAccountRequest> $request) async {
    return deleteProjectAccount($call, await $request);
  }

  $async.Future<$63.CreatePartnerAppUserResult> createPartnerAppUser_Pre($grpc.ServiceCall $call, $async.Future<$63.CreatePartnerAppUserRequest> $request) async {
    return createPartnerAppUser($call, await $request);
  }

  $async.Future<$63.DeletePartnerAppUserResult> deletePartnerAppUser_Pre($grpc.ServiceCall $call, $async.Future<$63.DeletePartnerAppUserRequest> $request) async {
    return deletePartnerAppUser($call, await $request);
  }

  $async.Future<$63.RenewProjectAccountCredentialsResult> renewProjectAccountCredentials_Pre($grpc.ServiceCall $call, $async.Future<$63.RenewProjectAccountCredentialsRequest> $request) async {
    return renewProjectAccountCredentials($call, await $request);
  }

  $async.Future<$63.RenewPartnerAppUserCredentialsResult> renewPartnerAppUserCredentials_Pre($grpc.ServiceCall $call, $async.Future<$63.RenewPartnerAppUserCredentialsRequest> $request) async {
    return renewPartnerAppUserCredentials($call, await $request);
  }

  $async.Future<$63.PushMessageResult> pushMessage_Pre($grpc.ServiceCall $call, $async.Future<$63.PushMessageRequest> $request) async {
    return pushMessage($call, await $request);
  }

  $async.Future<$63.CreateProjectAccountResult> createProjectAccount($grpc.ServiceCall call, $63.CreateProjectAccountRequest request);
  $async.Future<$63.DeleteProjectAccountResult> deleteProjectAccount($grpc.ServiceCall call, $63.DeleteProjectAccountRequest request);
  $async.Future<$63.CreatePartnerAppUserResult> createPartnerAppUser($grpc.ServiceCall call, $63.CreatePartnerAppUserRequest request);
  $async.Future<$63.DeletePartnerAppUserResult> deletePartnerAppUser($grpc.ServiceCall call, $63.DeletePartnerAppUserRequest request);
  $async.Future<$63.RenewProjectAccountCredentialsResult> renewProjectAccountCredentials($grpc.ServiceCall call, $63.RenewProjectAccountCredentialsRequest request);
  $async.Future<$63.RenewPartnerAppUserCredentialsResult> renewPartnerAppUserCredentials($grpc.ServiceCall call, $63.RenewPartnerAppUserCredentialsRequest request);
  $async.Future<$63.PushMessageResult> pushMessage($grpc.ServiceCall call, $63.PushMessageRequest request);
}
