//
//  Generated code. Do not modify.
//  source: orderQuery.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 'orderQuery.pb.dart' as $42;
import 'shared.pb.dart' as $3;

export 'orderQuery.pb.dart';

@$pb.GrpcServiceName('api.OrderQuery')
class OrderQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$42.OrderByIdQuery, $42.OrderByIdResult>(
      '/api.OrderQuery/GetByIds',
      ($42.OrderByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $42.OrderByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$42.OrderByFilterQuery, $42.OrderByFilterResult>(
      '/api.OrderQuery/Find',
      ($42.OrderByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $42.OrderByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$42.OrderByMatchQuery, $42.OrderByMatchResult>(
      '/api.OrderQuery/FindMatchingFieldValues',
      ($42.OrderByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $42.OrderByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
      '/api.OrderQuery/FindMatchingFieldElements',
      ($3.ElementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ElementByMatchResult.fromBuffer(value));
  static final _$extract = $grpc.ClientMethod<$3.ExtractQuery, $3.ExtractResult>(
      '/api.OrderQuery/Extract',
      ($3.ExtractQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ExtractResult.fromBuffer(value));
  static final _$countLines = $grpc.ClientMethod<$3.CountLinesQuery, $3.CountLinesResult>(
      '/api.OrderQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  $async.Future<$42.OrderByIdResult> getByIds($grpc.ServiceCall call, $42.OrderByIdQuery request);
  $async.Future<$42.OrderByFilterResult> find($grpc.ServiceCall call, $42.OrderByFilterQuery request);
  $async.Future<$42.OrderByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $42.OrderByMatchQuery request);
  $async.Future<$3.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $3.ElementByMatchQuery request);
  $async.Future<$3.ExtractResult> extract($grpc.ServiceCall call, $3.ExtractQuery request);
  $async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
}
