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

export 'executionflowQuery.pb.dart';

@$pb.GrpcServiceName('api.ExecutionflowQuery')
class ExecutionflowQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$20.ExecutionflowByIdQuery, $20.ExecutionflowByIdResult>(
      '/api.ExecutionflowQuery/GetByIds',
      ($20.ExecutionflowByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.ExecutionflowByIdResult.fromBuffer(value));
  static final _$getKPIData = $grpc.ClientMethod<$13.GetKPIDataQuery, $13.GetKPIDataResult>(
      '/api.ExecutionflowQuery/GetKPIData',
      ($13.GetKPIDataQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $13.GetKPIDataResult.fromBuffer(value));
  static final _$countLines = $grpc.ClientMethod<$3.CountLinesQuery, $3.CountLinesResult>(
      '/api.ExecutionflowQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$20.ExecutionflowByFilterQuery, $20.ExecutionflowByFilterResult>(
      '/api.ExecutionflowQuery/Find',
      ($20.ExecutionflowByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.ExecutionflowByFilterResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$20.ExecutionflowByIdResult> getByIds($20.ExecutionflowByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

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

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

  $grpc.ResponseFuture<$20.ExecutionflowByFilterResult> find($20.ExecutionflowByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }
}

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

  ExecutionflowQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$20.ExecutionflowByIdQuery, $20.ExecutionflowByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.ExecutionflowByIdQuery.fromBuffer(value),
        ($20.ExecutionflowByIdResult 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.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<$20.ExecutionflowByFilterQuery, $20.ExecutionflowByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.ExecutionflowByFilterQuery.fromBuffer(value),
        ($20.ExecutionflowByFilterResult value) => value.writeToBuffer()));
  }

  $async.Future<$20.ExecutionflowByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$20.ExecutionflowByIdQuery> $request) async {
    return getByIds($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.CountLinesResult> countLines_Pre($grpc.ServiceCall $call, $async.Future<$3.CountLinesQuery> $request) async {
    return countLines($call, await $request);
  }

  $async.Future<$20.ExecutionflowByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$20.ExecutionflowByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$20.ExecutionflowByIdResult> getByIds($grpc.ServiceCall call, $20.ExecutionflowByIdQuery request);
  $async.Future<$13.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $13.GetKPIDataQuery request);
  $async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
  $async.Future<$20.ExecutionflowByFilterResult> find($grpc.ServiceCall call, $20.ExecutionflowByFilterQuery request);
}
