//
//  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 $34;
import 'shared.pb.dart' as $29;

export 'orderQuery.pb.dart';

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

  OrderQueryClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

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

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

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

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

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

  $grpc.ResponseFuture<$29.CountLinesResult> countLines($29.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<$34.OrderByIdQuery, $34.OrderByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.OrderByIdQuery.fromBuffer(value),
        ($34.OrderByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.OrderByFilterQuery, $34.OrderByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.OrderByFilterQuery.fromBuffer(value),
        ($34.OrderByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$34.OrderByMatchQuery, $34.OrderByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $34.OrderByMatchQuery.fromBuffer(value),
        ($34.OrderByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$29.ElementByMatchQuery, $29.ElementByMatchResult>(
        'FindMatchingFieldElements',
        findMatchingFieldElements_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $29.ElementByMatchQuery.fromBuffer(value),
        ($29.ElementByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$29.ExtractQuery, $29.ExtractResult>(
        'Extract',
        extract_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $29.ExtractQuery.fromBuffer(value),
        ($29.ExtractResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$29.CountLinesQuery, $29.CountLinesResult>(
        'CountLines',
        countLines_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $29.CountLinesQuery.fromBuffer(value),
        ($29.CountLinesResult value) => value.writeToBuffer()));
  }

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

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

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

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

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

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

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