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

export 'nats-api.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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