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

export 'itemQuery.pb.dart';

@$pb.GrpcServiceName('api.ItemQuery')
class ItemQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$39.ItemByIdQuery, $39.ItemByIdResult>(
      '/api.ItemQuery/GetByIds',
      ($39.ItemByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $39.ItemByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$39.ItemByFilterQuery, $39.ItemByFilterResult>(
      '/api.ItemQuery/Find',
      ($39.ItemByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $39.ItemByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$39.ItemByMatchQuery, $39.ItemByMatchResult>(
      '/api.ItemQuery/FindMatchingFieldValues',
      ($39.ItemByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $39.ItemByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$29.ElementByMatchQuery, $29.ElementByMatchResult>(
      '/api.ItemQuery/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.ItemQuery/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.ItemQuery/CountLines',
      ($29.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $29.CountLinesResult.fromBuffer(value));
  static final _$getLVDetailedQuantity = $grpc.ClientMethod<$39.GetLVDetailedQuantityQuery, $39.GetLVDetailedQuantityResult>(
      '/api.ItemQuery/GetLVDetailedQuantity',
      ($39.GetLVDetailedQuantityQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $39.GetLVDetailedQuantityResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$39.ItemByIdResult> getByIds($39.ItemByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$39.ItemByFilterResult> find($39.ItemByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$39.ItemByMatchResult> findMatchingFieldValues($39.ItemByMatchQuery 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);
  }

  $grpc.ResponseFuture<$39.GetLVDetailedQuantityResult> getLVDetailedQuantity($39.GetLVDetailedQuantityQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getLVDetailedQuantity, request, options: options);
  }
}

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

  ItemQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$39.ItemByIdQuery, $39.ItemByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $39.ItemByIdQuery.fromBuffer(value),
        ($39.ItemByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$39.ItemByFilterQuery, $39.ItemByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $39.ItemByFilterQuery.fromBuffer(value),
        ($39.ItemByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$39.ItemByMatchQuery, $39.ItemByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $39.ItemByMatchQuery.fromBuffer(value),
        ($39.ItemByMatchResult 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()));
    $addMethod($grpc.ServiceMethod<$39.GetLVDetailedQuantityQuery, $39.GetLVDetailedQuantityResult>(
        'GetLVDetailedQuantity',
        getLVDetailedQuantity_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $39.GetLVDetailedQuantityQuery.fromBuffer(value),
        ($39.GetLVDetailedQuantityResult value) => value.writeToBuffer()));
  }

  $async.Future<$39.ItemByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$39.ItemByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$39.ItemByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$39.ItemByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$39.ItemByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$39.ItemByMatchQuery> $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<$39.GetLVDetailedQuantityResult> getLVDetailedQuantity_Pre($grpc.ServiceCall $call, $async.Future<$39.GetLVDetailedQuantityQuery> $request) async {
    return getLVDetailedQuantity($call, await $request);
  }

  $async.Future<$39.ItemByIdResult> getByIds($grpc.ServiceCall call, $39.ItemByIdQuery request);
  $async.Future<$39.ItemByFilterResult> find($grpc.ServiceCall call, $39.ItemByFilterQuery request);
  $async.Future<$39.ItemByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $39.ItemByMatchQuery 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);
  $async.Future<$39.GetLVDetailedQuantityResult> getLVDetailedQuantity($grpc.ServiceCall call, $39.GetLVDetailedQuantityQuery request);
}
