//
//  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 $31;
import 'shared.pb.dart' as $29;
import 'stockQuery.pb.dart' as $32;

export 'stockQuery.pb.dart';

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

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

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

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

  $grpc.ResponseFuture<$32.StockByMatchResult> findMatchingFieldValues($32.StockByMatchQuery 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<$31.GetKPIDataResult> getKPIDataForUser($31.GetKPIDataForUserQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKPIDataForUser, request, options: options);
  }

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

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

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

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

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

  $async.Future<$32.StockByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$32.StockByMatchQuery> $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<$31.GetKPIDataResult> getKPIDataForUser_Pre($grpc.ServiceCall $call, $async.Future<$31.GetKPIDataForUserQuery> $request) async {
    return getKPIDataForUser($call, await $request);
  }

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

  $async.Future<$32.StockByIdResult> getByIds($grpc.ServiceCall call, $32.StockByIdQuery request);
  $async.Future<$32.StockByFilterResult> find($grpc.ServiceCall call, $32.StockByFilterQuery request);
  $async.Future<$32.StockByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $32.StockByMatchQuery 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<$31.GetKPIDataResult> getKPIDataForUser($grpc.ServiceCall call, $31.GetKPIDataForUserQuery request);
  $async.Future<$31.ExtractKPIResult> extractKPI($grpc.ServiceCall call, $31.ExtractKPIQuery request);
  $async.Future<$29.CountLinesResult> countLines($grpc.ServiceCall call, $29.CountLinesQuery request);
  $async.Future<$31.FindKPIDataResult> findKPIData($grpc.ServiceCall call, $31.FindKPIDataQuery request);
}
