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

export 'itemQuery.pb.dart';

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

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

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

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

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

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

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

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

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

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