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

export 'client.pb.dart';

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

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

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

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

    // method descriptors

  static final _$registerPlatformClient = $grpc.ClientMethod<$0.RegisterPlatformClientRequest, $0.RegisterClientResult>(
      '/api.ClientService/RegisterPlatformClient',
      ($0.RegisterPlatformClientRequest value) => value.writeToBuffer(),
      $0.RegisterClientResult.fromBuffer);
  static final _$registerClient = $grpc.ClientMethod<$0.RegisterClientRequest, $0.RegisterClientResult>(
      '/api.ClientService/RegisterClient',
      ($0.RegisterClientRequest value) => value.writeToBuffer(),
      $0.RegisterClientResult.fromBuffer);
}

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

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

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

  $async.Future<$0.RegisterClientResult> registerPlatformClient($grpc.ServiceCall call, $0.RegisterPlatformClientRequest request);

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

  $async.Future<$0.RegisterClientResult> registerClient($grpc.ServiceCall call, $0.RegisterClientRequest request);

}
