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

export 'user-attributes.pb.dart';

@$pb.GrpcServiceName('api.UserAttributesService')
class UserAttributesServiceClient extends $grpc.Client {
  static final _$get = $grpc.ClientMethod<$58.GetUserAttributesRequest, $58.GetUserAttributesResult>(
      '/api.UserAttributesService/Get',
      ($58.GetUserAttributesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetUserAttributesResult.fromBuffer(value));
  static final _$put = $grpc.ClientMethod<$58.PutUserAttributesRequest, $58.PutUserAttributesResult>(
      '/api.UserAttributesService/Put',
      ($58.PutUserAttributesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.PutUserAttributesResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$58.DeleteUserAttributesRequest, $58.DeleteUserAttributesResult>(
      '/api.UserAttributesService/Delete',
      ($58.DeleteUserAttributesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.DeleteUserAttributesResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$58.ListUserAttributesRequest, $58.ListUserAttributesResult>(
      '/api.UserAttributesService/List',
      ($58.ListUserAttributesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.ListUserAttributesResult.fromBuffer(value));
  static final _$deleteForProject = $grpc.ClientMethod<$58.DeleteForProjectUserAttributesRequest, $58.DeleteForProjectUserAttributesResult>(
      '/api.UserAttributesService/DeleteForProject',
      ($58.DeleteForProjectUserAttributesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.DeleteForProjectUserAttributesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$58.GetUserAttributesResult> get($58.GetUserAttributesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$58.PutUserAttributesResult> put($58.PutUserAttributesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$put, request, options: options);
  }

  $grpc.ResponseFuture<$58.DeleteUserAttributesResult> delete($58.DeleteUserAttributesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$58.ListUserAttributesResult> list($58.ListUserAttributesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$58.DeleteForProjectUserAttributesResult> deleteForProject($58.DeleteForProjectUserAttributesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteForProject, request, options: options);
  }
}

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

  UserAttributesServiceBase() {
    $addMethod($grpc.ServiceMethod<$58.GetUserAttributesRequest, $58.GetUserAttributesResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetUserAttributesRequest.fromBuffer(value),
        ($58.GetUserAttributesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.PutUserAttributesRequest, $58.PutUserAttributesResult>(
        'Put',
        put_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.PutUserAttributesRequest.fromBuffer(value),
        ($58.PutUserAttributesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.DeleteUserAttributesRequest, $58.DeleteUserAttributesResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.DeleteUserAttributesRequest.fromBuffer(value),
        ($58.DeleteUserAttributesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.ListUserAttributesRequest, $58.ListUserAttributesResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.ListUserAttributesRequest.fromBuffer(value),
        ($58.ListUserAttributesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.DeleteForProjectUserAttributesRequest, $58.DeleteForProjectUserAttributesResult>(
        'DeleteForProject',
        deleteForProject_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.DeleteForProjectUserAttributesRequest.fromBuffer(value),
        ($58.DeleteForProjectUserAttributesResult value) => value.writeToBuffer()));
  }

  $async.Future<$58.GetUserAttributesResult> get_Pre($grpc.ServiceCall $call, $async.Future<$58.GetUserAttributesRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$58.PutUserAttributesResult> put_Pre($grpc.ServiceCall $call, $async.Future<$58.PutUserAttributesRequest> $request) async {
    return put($call, await $request);
  }

  $async.Future<$58.DeleteUserAttributesResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$58.DeleteUserAttributesRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$58.ListUserAttributesResult> list_Pre($grpc.ServiceCall $call, $async.Future<$58.ListUserAttributesRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$58.DeleteForProjectUserAttributesResult> deleteForProject_Pre($grpc.ServiceCall $call, $async.Future<$58.DeleteForProjectUserAttributesRequest> $request) async {
    return deleteForProject($call, await $request);
  }

  $async.Future<$58.GetUserAttributesResult> get($grpc.ServiceCall call, $58.GetUserAttributesRequest request);
  $async.Future<$58.PutUserAttributesResult> put($grpc.ServiceCall call, $58.PutUserAttributesRequest request);
  $async.Future<$58.DeleteUserAttributesResult> delete($grpc.ServiceCall call, $58.DeleteUserAttributesRequest request);
  $async.Future<$58.ListUserAttributesResult> list($grpc.ServiceCall call, $58.ListUserAttributesRequest request);
  $async.Future<$58.DeleteForProjectUserAttributesResult> deleteForProject($grpc.ServiceCall call, $58.DeleteForProjectUserAttributesRequest request);
}
