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

export 'client.pb.dart';

@$pb.GrpcServiceName('api.ClientService')
class ClientServiceClient extends $grpc.Client {
  static final _$registerPlatformClient = $grpc.ClientMethod<$18.RegisterPlatformClientRequest, $18.RegisterClientResult>(
      '/api.ClientService/RegisterPlatformClient',
      ($18.RegisterPlatformClientRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $18.RegisterClientResult.fromBuffer(value));
  static final _$registerClient = $grpc.ClientMethod<$18.RegisterClientRequest, $18.RegisterClientResult>(
      '/api.ClientService/RegisterClient',
      ($18.RegisterClientRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $18.RegisterClientResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$18.RegisterClientResult> registerPlatformClient($18.RegisterPlatformClientRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$registerPlatformClient, request, options: options);
  }

  $grpc.ResponseFuture<$18.RegisterClientResult> registerClient($18.RegisterClientRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$registerClient, request, options: options);
  }
}

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

  ClientServiceBase() {
    $addMethod($grpc.ServiceMethod<$18.RegisterPlatformClientRequest, $18.RegisterClientResult>(
        'RegisterPlatformClient',
        registerPlatformClient_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $18.RegisterPlatformClientRequest.fromBuffer(value),
        ($18.RegisterClientResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$18.RegisterClientRequest, $18.RegisterClientResult>(
        'RegisterClient',
        registerClient_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $18.RegisterClientRequest.fromBuffer(value),
        ($18.RegisterClientResult value) => value.writeToBuffer()));
  }

  $async.Future<$18.RegisterClientResult> registerPlatformClient_Pre($grpc.ServiceCall $call, $async.Future<$18.RegisterPlatformClientRequest> $request) async {
    return registerPlatformClient($call, await $request);
  }

  $async.Future<$18.RegisterClientResult> registerClient_Pre($grpc.ServiceCall $call, $async.Future<$18.RegisterClientRequest> $request) async {
    return registerClient($call, await $request);
  }

  $async.Future<$18.RegisterClientResult> registerPlatformClient($grpc.ServiceCall call, $18.RegisterPlatformClientRequest request);
  $async.Future<$18.RegisterClientResult> registerClient($grpc.ServiceCall call, $18.RegisterClientRequest request);
}
