// This is a generated file - do not edit.
//
// Generated from stockQuery.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

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 $2;
import 'shared.pb.dart' as $1;
import 'stockQuery.pb.dart' as $0;

export 'stockQuery.pb.dart';

///
/// Stock cannot be queried using id because the id is generated and not publicly-known.
/// Stock is only queryable by expressing conditions on Goods 'key' attributes (itemID, LVBranchID, PriorityDate and SegmentationKeys) and the ActorID.
@$pb.GrpcServiceName('api.StockQuery')
class StockQueryClient extends $grpc.Client {
  /// The hostname for this service.
  static const $core.String defaultHost = '';

  /// OAuth scopes needed for the client.
  static const $core.List<$core.String> oauthScopes = [
    '',
  ];

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

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

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

  $grpc.ResponseFuture<$0.StockByMatchResult> findMatchingFieldValues($0.StockByMatchQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$findMatchingFieldValues, request, options: options);
  }

  $grpc.ResponseFuture<$1.ElementByMatchResult> findMatchingFieldElements($1.ElementByMatchQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$findMatchingFieldElements, request, options: options);
  }

  $grpc.ResponseFuture<$2.GetKPIDataResult> getKPIData($2.GetKPIDataQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getKPIData, request, options: options);
  }

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

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

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

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

  $grpc.ResponseFuture<$1.ExtractResult> extract($1.ExtractQuery request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$extract, request, options: options);
  }

    // method descriptors

  static final _$getByIds = $grpc.ClientMethod<$0.StockByIdQuery, $0.StockByIdResult>(
      '/api.StockQuery/GetByIds',
      ($0.StockByIdQuery value) => value.writeToBuffer(),
      $0.StockByIdResult.fromBuffer);
  static final _$find = $grpc.ClientMethod<$0.StockByFilterQuery, $0.StockByFilterResult>(
      '/api.StockQuery/Find',
      ($0.StockByFilterQuery value) => value.writeToBuffer(),
      $0.StockByFilterResult.fromBuffer);
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$0.StockByMatchQuery, $0.StockByMatchResult>(
      '/api.StockQuery/FindMatchingFieldValues',
      ($0.StockByMatchQuery value) => value.writeToBuffer(),
      $0.StockByMatchResult.fromBuffer);
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$1.ElementByMatchQuery, $1.ElementByMatchResult>(
      '/api.StockQuery/FindMatchingFieldElements',
      ($1.ElementByMatchQuery value) => value.writeToBuffer(),
      $1.ElementByMatchResult.fromBuffer);
  static final _$getKPIData = $grpc.ClientMethod<$2.GetKPIDataQuery, $2.GetKPIDataResult>(
      '/api.StockQuery/GetKPIData',
      ($2.GetKPIDataQuery value) => value.writeToBuffer(),
      $2.GetKPIDataResult.fromBuffer);
  static final _$getKPIDataForUser = $grpc.ClientMethod<$2.GetKPIDataForUserQuery, $2.GetKPIDataResult>(
      '/api.StockQuery/GetKPIDataForUser',
      ($2.GetKPIDataForUserQuery value) => value.writeToBuffer(),
      $2.GetKPIDataResult.fromBuffer);
  static final _$extractKPI = $grpc.ClientMethod<$2.ExtractKPIQuery, $2.ExtractKPIResult>(
      '/api.StockQuery/ExtractKPI',
      ($2.ExtractKPIQuery value) => value.writeToBuffer(),
      $2.ExtractKPIResult.fromBuffer);
  static final _$countLines = $grpc.ClientMethod<$1.CountLinesQuery, $1.CountLinesResult>(
      '/api.StockQuery/CountLines',
      ($1.CountLinesQuery value) => value.writeToBuffer(),
      $1.CountLinesResult.fromBuffer);
  static final _$findKPIData = $grpc.ClientMethod<$2.FindKPIDataQuery, $2.FindKPIDataResult>(
      '/api.StockQuery/FindKPIData',
      ($2.FindKPIDataQuery value) => value.writeToBuffer(),
      $2.FindKPIDataResult.fromBuffer);
  static final _$extract = $grpc.ClientMethod<$1.ExtractQuery, $1.ExtractResult>(
      '/api.StockQuery/Extract',
      ($1.ExtractQuery value) => value.writeToBuffer(),
      $1.ExtractResult.fromBuffer);
}

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

  StockQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.StockByIdQuery, $0.StockByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockByIdQuery.fromBuffer(value),
        ($0.StockByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockByFilterQuery, $0.StockByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockByFilterQuery.fromBuffer(value),
        ($0.StockByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockByMatchQuery, $0.StockByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockByMatchQuery.fromBuffer(value),
        ($0.StockByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.ElementByMatchQuery, $1.ElementByMatchResult>(
        'FindMatchingFieldElements',
        findMatchingFieldElements_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.ElementByMatchQuery.fromBuffer(value),
        ($1.ElementByMatchResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.GetKPIDataQuery, $2.GetKPIDataResult>(
        'GetKPIData',
        getKPIData_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.GetKPIDataQuery.fromBuffer(value),
        ($2.GetKPIDataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.GetKPIDataForUserQuery, $2.GetKPIDataResult>(
        'GetKPIDataForUser',
        getKPIDataForUser_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.GetKPIDataForUserQuery.fromBuffer(value),
        ($2.GetKPIDataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.ExtractKPIQuery, $2.ExtractKPIResult>(
        'ExtractKPI',
        extractKPI_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.ExtractKPIQuery.fromBuffer(value),
        ($2.ExtractKPIResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.CountLinesQuery, $1.CountLinesResult>(
        'CountLines',
        countLines_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.CountLinesQuery.fromBuffer(value),
        ($1.CountLinesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.FindKPIDataQuery, $2.FindKPIDataResult>(
        'FindKPIData',
        findKPIData_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.FindKPIDataQuery.fromBuffer(value),
        ($2.FindKPIDataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$1.ExtractQuery, $1.ExtractResult>(
        'Extract',
        extract_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $1.ExtractQuery.fromBuffer(value),
        ($1.ExtractResult value) => value.writeToBuffer()));
  }

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

  $async.Future<$0.StockByIdResult> getByIds($grpc.ServiceCall call, $0.StockByIdQuery request);

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

  $async.Future<$0.StockByFilterResult> find($grpc.ServiceCall call, $0.StockByFilterQuery request);

  $async.Future<$0.StockByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$0.StockByMatchQuery> $request) async {
    return findMatchingFieldValues($call, await $request);
  }

  $async.Future<$0.StockByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $0.StockByMatchQuery request);

  $async.Future<$1.ElementByMatchResult> findMatchingFieldElements_Pre($grpc.ServiceCall $call, $async.Future<$1.ElementByMatchQuery> $request) async {
    return findMatchingFieldElements($call, await $request);
  }

  $async.Future<$1.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $1.ElementByMatchQuery request);

  $async.Future<$2.GetKPIDataResult> getKPIData_Pre($grpc.ServiceCall $call, $async.Future<$2.GetKPIDataQuery> $request) async {
    return getKPIData($call, await $request);
  }

  $async.Future<$2.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $2.GetKPIDataQuery request);

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

  $async.Future<$2.GetKPIDataResult> getKPIDataForUser($grpc.ServiceCall call, $2.GetKPIDataForUserQuery request);

  $async.Future<$2.ExtractKPIResult> extractKPI_Pre($grpc.ServiceCall $call, $async.Future<$2.ExtractKPIQuery> $request) async {
    return extractKPI($call, await $request);
  }

  $async.Future<$2.ExtractKPIResult> extractKPI($grpc.ServiceCall call, $2.ExtractKPIQuery request);

  $async.Future<$1.CountLinesResult> countLines_Pre($grpc.ServiceCall $call, $async.Future<$1.CountLinesQuery> $request) async {
    return countLines($call, await $request);
  }

  $async.Future<$1.CountLinesResult> countLines($grpc.ServiceCall call, $1.CountLinesQuery request);

  $async.Future<$2.FindKPIDataResult> findKPIData_Pre($grpc.ServiceCall $call, $async.Future<$2.FindKPIDataQuery> $request) async {
    return findKPIData($call, await $request);
  }

  $async.Future<$2.FindKPIDataResult> findKPIData($grpc.ServiceCall call, $2.FindKPIDataQuery request);

  $async.Future<$1.ExtractResult> extract_Pre($grpc.ServiceCall $call, $async.Future<$1.ExtractQuery> $request) async {
    return extract($call, await $request);
  }

  $async.Future<$1.ExtractResult> extract($grpc.ServiceCall call, $1.ExtractQuery request);

}
