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

export 'translations.pb.dart';

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

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

  $grpc.ResponseFuture<$0.GetTranslationsResult> get($0.GetTranslationsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$0.PutTranslationsResult> put($0.PutTranslationsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$put, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteTranslationsResult> delete($0.DeleteTranslationsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListTranslationsResult> list($0.ListTranslationsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteAllTranslationsResult> deleteAll($0.DeleteAllTranslationsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteAll, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetLanguagesResult> getLanguages($0.GetLanguagesRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getLanguages, request, options: options);
  }

    // method descriptors

  static final _$get = $grpc.ClientMethod<$0.GetTranslationsRequest, $0.GetTranslationsResult>(
      '/api.TranslationsService/Get',
      ($0.GetTranslationsRequest value) => value.writeToBuffer(),
      $0.GetTranslationsResult.fromBuffer);
  static final _$put = $grpc.ClientMethod<$0.PutTranslationsRequest, $0.PutTranslationsResult>(
      '/api.TranslationsService/Put',
      ($0.PutTranslationsRequest value) => value.writeToBuffer(),
      $0.PutTranslationsResult.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeleteTranslationsRequest, $0.DeleteTranslationsResult>(
      '/api.TranslationsService/Delete',
      ($0.DeleteTranslationsRequest value) => value.writeToBuffer(),
      $0.DeleteTranslationsResult.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListTranslationsRequest, $0.ListTranslationsResult>(
      '/api.TranslationsService/List',
      ($0.ListTranslationsRequest value) => value.writeToBuffer(),
      $0.ListTranslationsResult.fromBuffer);
  static final _$deleteAll = $grpc.ClientMethod<$0.DeleteAllTranslationsRequest, $0.DeleteAllTranslationsResult>(
      '/api.TranslationsService/DeleteAll',
      ($0.DeleteAllTranslationsRequest value) => value.writeToBuffer(),
      $0.DeleteAllTranslationsResult.fromBuffer);
  static final _$getLanguages = $grpc.ClientMethod<$0.GetLanguagesRequest, $0.GetLanguagesResult>(
      '/api.TranslationsService/GetLanguages',
      ($0.GetLanguagesRequest value) => value.writeToBuffer(),
      $0.GetLanguagesResult.fromBuffer);
}

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

  TranslationsServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.GetTranslationsRequest, $0.GetTranslationsResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetTranslationsRequest.fromBuffer(value),
        ($0.GetTranslationsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PutTranslationsRequest, $0.PutTranslationsResult>(
        'Put',
        put_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PutTranslationsRequest.fromBuffer(value),
        ($0.PutTranslationsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteTranslationsRequest, $0.DeleteTranslationsResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteTranslationsRequest.fromBuffer(value),
        ($0.DeleteTranslationsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListTranslationsRequest, $0.ListTranslationsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListTranslationsRequest.fromBuffer(value),
        ($0.ListTranslationsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteAllTranslationsRequest, $0.DeleteAllTranslationsResult>(
        'DeleteAll',
        deleteAll_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteAllTranslationsRequest.fromBuffer(value),
        ($0.DeleteAllTranslationsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetLanguagesRequest, $0.GetLanguagesResult>(
        'GetLanguages',
        getLanguages_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetLanguagesRequest.fromBuffer(value),
        ($0.GetLanguagesResult value) => value.writeToBuffer()));
  }

  $async.Future<$0.GetTranslationsResult> get_Pre($grpc.ServiceCall $call, $async.Future<$0.GetTranslationsRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$0.GetTranslationsResult> get($grpc.ServiceCall call, $0.GetTranslationsRequest request);

  $async.Future<$0.PutTranslationsResult> put_Pre($grpc.ServiceCall $call, $async.Future<$0.PutTranslationsRequest> $request) async {
    return put($call, await $request);
  }

  $async.Future<$0.PutTranslationsResult> put($grpc.ServiceCall call, $0.PutTranslationsRequest request);

  $async.Future<$0.DeleteTranslationsResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteTranslationsRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$0.DeleteTranslationsResult> delete($grpc.ServiceCall call, $0.DeleteTranslationsRequest request);

  $async.Future<$0.ListTranslationsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$0.ListTranslationsRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$0.ListTranslationsResult> list($grpc.ServiceCall call, $0.ListTranslationsRequest request);

  $async.Future<$0.DeleteAllTranslationsResult> deleteAll_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteAllTranslationsRequest> $request) async {
    return deleteAll($call, await $request);
  }

  $async.Future<$0.DeleteAllTranslationsResult> deleteAll($grpc.ServiceCall call, $0.DeleteAllTranslationsRequest request);

  $async.Future<$0.GetLanguagesResult> getLanguages_Pre($grpc.ServiceCall $call, $async.Future<$0.GetLanguagesRequest> $request) async {
    return getLanguages($call, await $request);
  }

  $async.Future<$0.GetLanguagesResult> getLanguages($grpc.ServiceCall call, $0.GetLanguagesRequest request);

}
