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

export 'stockQuery.pb.dart';

@$pb.GrpcServiceName('api.StockQuery')
class StockQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$55.StockByIdQuery, $55.StockByIdResult>(
      '/api.StockQuery/GetByIds',
      ($55.StockByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.StockByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$55.StockByFilterQuery, $55.StockByFilterResult>(
      '/api.StockQuery/Find',
      ($55.StockByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.StockByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$55.StockByMatchQuery, $55.StockByMatchResult>(
      '/api.StockQuery/FindMatchingFieldValues',
      ($55.StockByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.StockByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
      '/api.StockQuery/FindMatchingFieldElements',
      ($3.ElementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ElementByMatchResult.fromBuffer(value));
  static final _$getKPIData = $grpc.ClientMethod<$13.GetKPIDataQuery, $13.GetKPIDataResult>(
      '/api.StockQuery/GetKPIData',
      ($13.GetKPIDataQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.GetKPIDataResult.fromBuffer(value));
  static final _$getKPIDataForUser = $grpc.ClientMethod<$13.GetKPIDataForUserQuery, $13.GetKPIDataResult>(
      '/api.StockQuery/GetKPIDataForUser',
      ($13.GetKPIDataForUserQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.GetKPIDataResult.fromBuffer(value));
  static final _$extractKPI = $grpc.ClientMethod<$13.ExtractKPIQuery, $13.ExtractKPIResult>(
      '/api.StockQuery/ExtractKPI',
      ($13.ExtractKPIQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.ExtractKPIResult.fromBuffer(value));
  static final _$countLines = $grpc.ClientMethod<$3.CountLinesQuery, $3.CountLinesResult>(
      '/api.StockQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));
  static final _$findKPIData = $grpc.ClientMethod<$13.FindKPIDataQuery, $13.FindKPIDataResult>(
      '/api.StockQuery/FindKPIData',
      ($13.FindKPIDataQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.FindKPIDataResult.fromBuffer(value));

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

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$55.StockByIdResult> getByIds($55.StockByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$55.StockByFilterResult> find($55.StockByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$55.StockByMatchResult> findMatchingFieldValues($55.StockByMatchQuery 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<$13.GetKPIDataResult> getKPIData($13.GetKPIDataQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKPIData, request, options: options);
  }

  $grpc.ResponseFuture<$13.GetKPIDataResult> getKPIDataForUser($13.GetKPIDataForUserQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKPIDataForUser, request, options: options);
  }

  $grpc.ResponseFuture<$13.ExtractKPIResult> extractKPI($13.ExtractKPIQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$extractKPI, request, options: options);
  }

  $grpc.ResponseFuture<$3.CountLinesResult> countLines($3.CountLinesQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$countLines, request, options: options);
  }

  $grpc.ResponseFuture<$13.FindKPIDataResult> findKPIData($13.FindKPIDataQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$findKPIData, request, options: options);
  }
}

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

  StockQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$55.StockByIdQuery, $55.StockByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.StockByIdQuery.fromBuffer(value),
        ($55.StockByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.StockByFilterQuery, $55.StockByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.StockByFilterQuery.fromBuffer(value),
        ($55.StockByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.StockByMatchQuery, $55.StockByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.StockByMatchQuery.fromBuffer(value),
        ($55.StockByMatchResult 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<$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<$13.GetKPIDataForUserQuery, $13.GetKPIDataResult>(
        'GetKPIDataForUser',
        getKPIDataForUser_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $13.GetKPIDataForUserQuery.fromBuffer(value),
        ($13.GetKPIDataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$13.ExtractKPIQuery, $13.ExtractKPIResult>(
        'ExtractKPI',
        extractKPI_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $13.ExtractKPIQuery.fromBuffer(value),
        ($13.ExtractKPIResult 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<$13.FindKPIDataQuery, $13.FindKPIDataResult>(
        'FindKPIData',
        findKPIData_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $13.FindKPIDataQuery.fromBuffer(value),
        ($13.FindKPIDataResult value) => value.writeToBuffer()));
  }

  $async.Future<$55.StockByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$55.StockByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$55.StockByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$55.StockByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$55.StockByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$55.StockByMatchQuery> $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<$13.GetKPIDataResult> getKPIData_Pre($grpc.ServiceCall $call, $async.Future<$13.GetKPIDataQuery> $request) async {
    return getKPIData($call, await $request);
  }

  $async.Future<$13.GetKPIDataResult> getKPIDataForUser_Pre($grpc.ServiceCall $call, $async.Future<$13.GetKPIDataForUserQuery> $request) async {
    return getKPIDataForUser($call, await $request);
  }

  $async.Future<$13.ExtractKPIResult> extractKPI_Pre($grpc.ServiceCall $call, $async.Future<$13.ExtractKPIQuery> $request) async {
    return extractKPI($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<$13.FindKPIDataResult> findKPIData_Pre($grpc.ServiceCall $call, $async.Future<$13.FindKPIDataQuery> $request) async {
    return findKPIData($call, await $request);
  }

  $async.Future<$55.StockByIdResult> getByIds($grpc.ServiceCall call, $55.StockByIdQuery request);
  $async.Future<$55.StockByFilterResult> find($grpc.ServiceCall call, $55.StockByFilterQuery request);
  $async.Future<$55.StockByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $55.StockByMatchQuery request);
  $async.Future<$3.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $3.ElementByMatchQuery request);
  $async.Future<$13.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $13.GetKPIDataQuery request);
  $async.Future<$13.GetKPIDataResult> getKPIDataForUser($grpc.ServiceCall call, $13.GetKPIDataForUserQuery request);
  $async.Future<$13.ExtractKPIResult> extractKPI($grpc.ServiceCall call, $13.ExtractKPIQuery request);
  $async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
  $async.Future<$13.FindKPIDataResult> findKPIData($grpc.ServiceCall call, $13.FindKPIDataQuery request);
}
