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

export 'orderQuery.pb.dart';

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

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

  $grpc.ResponseFuture<$0.OrderByIdResult> getByIds($0.OrderByIdQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$0.OrderByFilterResult> find($0.OrderByFilterQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$0.OrderByMatchResult> findMatchingFieldValues($0.OrderByMatchQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$findMatchingFieldValues, request, options: options);
  }

  $grpc.ResponseFuture<$1.ElementByMatchResult> findMatchingFieldElements($1.ElementByMatchQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$findMatchingFieldElements, request, options: options);
  }

  $grpc.ResponseFuture<$1.ExtractResult> extract($1.ExtractQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$extract, request, options: options);
  }

  $grpc.ResponseFuture<$1.CountLinesResult> countLines($1.CountLinesQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$countLines, request, options: options);
  }

    // method descriptors

  static final _$getByIds = $grpc.ClientMethod<$0.OrderByIdQuery, $0.OrderByIdResult>(
      '/api.OrderQuery/GetByIds',
      ($0.OrderByIdQuery value) => value.writeToBuffer(),
      $0.OrderByIdResult.fromBuffer);
  static final _$find = $grpc.ClientMethod<$0.OrderByFilterQuery, $0.OrderByFilterResult>(
      '/api.OrderQuery/Find',
      ($0.OrderByFilterQuery value) => value.writeToBuffer(),
      $0.OrderByFilterResult.fromBuffer);
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$0.OrderByMatchQuery, $0.OrderByMatchResult>(
      '/api.OrderQuery/FindMatchingFieldValues',
      ($0.OrderByMatchQuery value) => value.writeToBuffer(),
      $0.OrderByMatchResult.fromBuffer);
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$1.ElementByMatchQuery, $1.ElementByMatchResult>(
      '/api.OrderQuery/FindMatchingFieldElements',
      ($1.ElementByMatchQuery value) => value.writeToBuffer(),
      $1.ElementByMatchResult.fromBuffer);
  static final _$extract = $grpc.ClientMethod<$1.ExtractQuery, $1.ExtractResult>(
      '/api.OrderQuery/Extract',
      ($1.ExtractQuery value) => value.writeToBuffer(),
      $1.ExtractResult.fromBuffer);
  static final _$countLines = $grpc.ClientMethod<$1.CountLinesQuery, $1.CountLinesResult>(
      '/api.OrderQuery/CountLines',
      ($1.CountLinesQuery value) => value.writeToBuffer(),
      $1.CountLinesResult.fromBuffer);
}

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

  OrderQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.OrderByIdQuery, $0.OrderByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.OrderByIdQuery.fromBuffer(value),
        ($0.OrderByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.OrderByFilterQuery, $0.OrderByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.OrderByFilterQuery.fromBuffer(value),
        ($0.OrderByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.OrderByMatchQuery, $0.OrderByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.OrderByMatchQuery.fromBuffer(value),
        ($0.OrderByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.ElementByMatchQuery, $1.ElementByMatchResult>(
        'FindMatchingFieldElements',
        findMatchingFieldElements_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.ElementByMatchQuery.fromBuffer(value),
        ($1.ElementByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.ExtractQuery, $1.ExtractResult>(
        'Extract',
        extract_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.ExtractQuery.fromBuffer(value),
        ($1.ExtractResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.CountLinesQuery, $1.CountLinesResult>(
        'CountLines',
        countLines_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.CountLinesQuery.fromBuffer(value),
        ($1.CountLinesResult value) => value.writeToBuffer()));
  }

  $async.Future<$0.OrderByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$0.OrderByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$0.OrderByIdResult> getByIds($grpc.ServiceCall call, $0.OrderByIdQuery request);

  $async.Future<$0.OrderByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$0.OrderByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$0.OrderByFilterResult> find($grpc.ServiceCall call, $0.OrderByFilterQuery request);

  $async.Future<$0.OrderByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$0.OrderByMatchQuery> $request) async {
    return findMatchingFieldValues($call, await $request);
  }

  $async.Future<$0.OrderByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $0.OrderByMatchQuery request);

  $async.Future<$1.ElementByMatchResult> findMatchingFieldElements_Pre($grpc.ServiceCall $call, $async.Future<$1.ElementByMatchQuery> $request) async {
    return findMatchingFieldElements($call, await $request);
  }

  $async.Future<$1.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $1.ElementByMatchQuery request);

  $async.Future<$1.ExtractResult> extract_Pre($grpc.ServiceCall $call, $async.Future<$1.ExtractQuery> $request) async {
    return extract($call, await $request);
  }

  $async.Future<$1.ExtractResult> extract($grpc.ServiceCall call, $1.ExtractQuery request);

  $async.Future<$1.CountLinesResult> countLines_Pre($grpc.ServiceCall $call, $async.Future<$1.CountLinesQuery> $request) async {
    return countLines($call, await $request);
  }

  $async.Future<$1.CountLinesResult> countLines($grpc.ServiceCall call, $1.CountLinesQuery request);

}
