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

export 'handlingunitQuery.pb.dart';

@$pb.GrpcServiceName('api.HandlingunitQuery')
class HandlingunitQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$38.HandlingunitByIdQuery, $38.HandlingunitByIdResult>(
      '/api.HandlingunitQuery/GetByIds',
      ($38.HandlingunitByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $38.HandlingunitByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$38.HandlingunitByFilterQuery, $38.HandlingunitByFilterResult>(
      '/api.HandlingunitQuery/Find',
      ($38.HandlingunitByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $38.HandlingunitByFilterResult.fromBuffer(value));
  static final _$findTracked = $grpc.ClientMethod<$38.HandlingunitByFilterQuery, $38.HandlingunitByFilterResult>(
      '/api.HandlingunitQuery/FindTracked',
      ($38.HandlingunitByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $38.HandlingunitByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$38.HandlingunitByMatchQuery, $38.HandlingunitByMatchResult>(
      '/api.HandlingunitQuery/FindMatchingFieldValues',
      ($38.HandlingunitByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $38.HandlingunitByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$29.ElementByMatchQuery, $29.ElementByMatchResult>(
      '/api.HandlingunitQuery/FindMatchingFieldElements',
      ($29.ElementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $29.ElementByMatchResult.fromBuffer(value));
  static final _$getKPIData = $grpc.ClientMethod<$31.GetKPIDataQuery, $31.GetKPIDataResult>(
      '/api.HandlingunitQuery/GetKPIData',
      ($31.GetKPIDataQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $31.GetKPIDataResult.fromBuffer(value));
  static final _$extract = $grpc.ClientMethod<$29.ExtractQuery, $29.ExtractResult>(
      '/api.HandlingunitQuery/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.HandlingunitQuery/CountLines',
      ($29.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $29.CountLinesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$38.HandlingunitByIdResult> getByIds($38.HandlingunitByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$38.HandlingunitByFilterResult> find($38.HandlingunitByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$38.HandlingunitByFilterResult> findTracked($38.HandlingunitByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$findTracked, request, options: options);
  }

  $grpc.ResponseFuture<$38.HandlingunitByMatchResult> findMatchingFieldValues($38.HandlingunitByMatchQuery 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<$31.GetKPIDataResult> getKPIData($31.GetKPIDataQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKPIData, 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.HandlingunitQuery')
abstract class HandlingunitQueryServiceBase extends $grpc.Service {
  $core.String get $name => 'api.HandlingunitQuery';

  HandlingunitQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$38.HandlingunitByIdQuery, $38.HandlingunitByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $38.HandlingunitByIdQuery.fromBuffer(value),
        ($38.HandlingunitByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$38.HandlingunitByFilterQuery, $38.HandlingunitByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $38.HandlingunitByFilterQuery.fromBuffer(value),
        ($38.HandlingunitByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$38.HandlingunitByFilterQuery, $38.HandlingunitByFilterResult>(
        'FindTracked',
        findTracked_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $38.HandlingunitByFilterQuery.fromBuffer(value),
        ($38.HandlingunitByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$38.HandlingunitByMatchQuery, $38.HandlingunitByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $38.HandlingunitByMatchQuery.fromBuffer(value),
        ($38.HandlingunitByMatchResult 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<$31.GetKPIDataQuery, $31.GetKPIDataResult>(
        'GetKPIData',
        getKPIData_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $31.GetKPIDataQuery.fromBuffer(value),
        ($31.GetKPIDataResult 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<$38.HandlingunitByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$38.HandlingunitByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$38.HandlingunitByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$38.HandlingunitByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$38.HandlingunitByFilterResult> findTracked_Pre($grpc.ServiceCall $call, $async.Future<$38.HandlingunitByFilterQuery> $request) async {
    return findTracked($call, await $request);
  }

  $async.Future<$38.HandlingunitByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$38.HandlingunitByMatchQuery> $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<$31.GetKPIDataResult> getKPIData_Pre($grpc.ServiceCall $call, $async.Future<$31.GetKPIDataQuery> $request) async {
    return getKPIData($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<$38.HandlingunitByIdResult> getByIds($grpc.ServiceCall call, $38.HandlingunitByIdQuery request);
  $async.Future<$38.HandlingunitByFilterResult> find($grpc.ServiceCall call, $38.HandlingunitByFilterQuery request);
  $async.Future<$38.HandlingunitByFilterResult> findTracked($grpc.ServiceCall call, $38.HandlingunitByFilterQuery request);
  $async.Future<$38.HandlingunitByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $38.HandlingunitByMatchQuery request);
  $async.Future<$29.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $29.ElementByMatchQuery request);
  $async.Future<$31.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $31.GetKPIDataQuery request);
  $async.Future<$29.ExtractResult> extract($grpc.ServiceCall call, $29.ExtractQuery request);
  $async.Future<$29.CountLinesResult> countLines($grpc.ServiceCall call, $29.CountLinesQuery request);
}
