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

export 'movementQuery.pb.dart';

@$pb.GrpcServiceName('api.MovementQuery')
class MovementQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$36.MovementByIdQuery, $36.MovementByIdResult>(
      '/api.MovementQuery/GetByIds',
      ($36.MovementByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $36.MovementByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$36.MovementByFilterQuery, $36.MovementByFilterResult>(
      '/api.MovementQuery/Find',
      ($36.MovementByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $36.MovementByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$36.MovementByMatchQuery, $36.MovementByMatchResult>(
      '/api.MovementQuery/FindMatchingFieldValues',
      ($36.MovementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $36.MovementByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
      '/api.MovementQuery/FindMatchingFieldElements',
      ($3.ElementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ElementByMatchResult.fromBuffer(value));
  static final _$getByOperationReference = $grpc.ClientMethod<$36.MovementByOperationReferenceQuery, $36.MovementByOperationReferenceResult>(
      '/api.MovementQuery/GetByOperationReference',
      ($36.MovementByOperationReferenceQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $36.MovementByOperationReferenceResult.fromBuffer(value));
  static final _$getKPIData = $grpc.ClientMethod<$13.GetKPIDataQuery, $13.GetKPIDataResult>(
      '/api.MovementQuery/GetKPIData',
      ($13.GetKPIDataQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.GetKPIDataResult.fromBuffer(value));
  static final _$extract = $grpc.ClientMethod<$3.ExtractQuery, $3.ExtractResult>(
      '/api.MovementQuery/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.MovementQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$36.MovementByIdResult> getByIds($36.MovementByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$36.MovementByFilterResult> find($36.MovementByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$36.MovementByMatchResult> findMatchingFieldValues($36.MovementByMatchQuery 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<$36.MovementByOperationReferenceResult> getByOperationReference($36.MovementByOperationReferenceQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByOperationReference, request, options: options);
  }

  $grpc.ResponseFuture<$13.GetKPIDataResult> getKPIData($13.GetKPIDataQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKPIData, 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.MovementQuery')
abstract class MovementQueryServiceBase extends $grpc.Service {
  $core.String get $name => 'api.MovementQuery';

  MovementQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$36.MovementByIdQuery, $36.MovementByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $36.MovementByIdQuery.fromBuffer(value),
        ($36.MovementByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$36.MovementByFilterQuery, $36.MovementByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $36.MovementByFilterQuery.fromBuffer(value),
        ($36.MovementByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$36.MovementByMatchQuery, $36.MovementByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $36.MovementByMatchQuery.fromBuffer(value),
        ($36.MovementByMatchResult 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<$36.MovementByOperationReferenceQuery, $36.MovementByOperationReferenceResult>(
        'GetByOperationReference',
        getByOperationReference_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $36.MovementByOperationReferenceQuery.fromBuffer(value),
        ($36.MovementByOperationReferenceResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$13.GetKPIDataQuery, $13.GetKPIDataResult>(
        'GetKPIData',
        getKPIData_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $13.GetKPIDataQuery.fromBuffer(value),
        ($13.GetKPIDataResult 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<$36.MovementByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$36.MovementByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$36.MovementByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$36.MovementByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$36.MovementByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$36.MovementByMatchQuery> $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<$36.MovementByOperationReferenceResult> getByOperationReference_Pre($grpc.ServiceCall $call, $async.Future<$36.MovementByOperationReferenceQuery> $request) async {
    return getByOperationReference($call, await $request);
  }

  $async.Future<$13.GetKPIDataResult> getKPIData_Pre($grpc.ServiceCall $call, $async.Future<$13.GetKPIDataQuery> $request) async {
    return getKPIData($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<$36.MovementByIdResult> getByIds($grpc.ServiceCall call, $36.MovementByIdQuery request);
  $async.Future<$36.MovementByFilterResult> find($grpc.ServiceCall call, $36.MovementByFilterQuery request);
  $async.Future<$36.MovementByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $36.MovementByMatchQuery request);
  $async.Future<$3.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $3.ElementByMatchQuery request);
  $async.Future<$36.MovementByOperationReferenceResult> getByOperationReference($grpc.ServiceCall call, $36.MovementByOperationReferenceQuery request);
  $async.Future<$13.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $13.GetKPIDataQuery request);
  $async.Future<$3.ExtractResult> extract($grpc.ServiceCall call, $3.ExtractQuery request);
  $async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
}
