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

export 'client.pb.dart';

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

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

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

  $grpc.ResponseFuture<$14.RegisterClientResult> registerClient($14.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<$14.RegisterPlatformClientRequest, $14.RegisterClientResult>(
        'RegisterPlatformClient',
        registerPlatformClient_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.RegisterPlatformClientRequest.fromBuffer(value),
        ($14.RegisterClientResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$14.RegisterClientRequest, $14.RegisterClientResult>(
        'RegisterClient',
        registerClient_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $14.RegisterClientRequest.fromBuffer(value),
        ($14.RegisterClientResult value) => value.writeToBuffer()));
  }

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

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

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