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

export 'executionflowQuery.pb.dart';

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

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

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

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

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

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

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

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

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