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

export 'actorQuery.pb.dart';

@$pb.GrpcServiceName('api.ActorQuery')
class ActorQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$2.ActorByIdQuery, $2.ActorByIdResult>(
      '/api.ActorQuery/GetByIds',
      ($2.ActorByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $2.ActorByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$2.ActorByFilterQuery, $2.ActorByFilterResult>(
      '/api.ActorQuery/Find',
      ($2.ActorByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $2.ActorByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$2.ActorByMatchQuery, $2.ActorByMatchResult>(
      '/api.ActorQuery/FindMatchingFieldValues',
      ($2.ActorByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $2.ActorByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
      '/api.ActorQuery/FindMatchingFieldElements',
      ($3.ElementByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ElementByMatchResult.fromBuffer(value));
  static final _$extract = $grpc.ClientMethod<$3.ExtractQuery, $3.ExtractResult>(
      '/api.ActorQuery/Extract',
      ($3.ExtractQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.ExtractResult.fromBuffer(value));
  static final _$countLines = $grpc.ClientMethod<$3.CountLinesQuery, $3.CountLinesResult>(
      '/api.ActorQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$2.ActorByIdResult> getByIds($2.ActorByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$2.ActorByFilterResult> find($2.ActorByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$2.ActorByMatchResult> findMatchingFieldValues($2.ActorByMatchQuery 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<$3.ExtractResult> extract($3.ExtractQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$extract, request, options: options);
  }

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

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

  ActorQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$2.ActorByIdQuery, $2.ActorByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.ActorByIdQuery.fromBuffer(value),
        ($2.ActorByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.ActorByFilterQuery, $2.ActorByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.ActorByFilterQuery.fromBuffer(value),
        ($2.ActorByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$2.ActorByMatchQuery, $2.ActorByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $2.ActorByMatchQuery.fromBuffer(value),
        ($2.ActorByMatchResult 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<$3.ExtractQuery, $3.ExtractResult>(
        'Extract',
        extract_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $3.ExtractQuery.fromBuffer(value),
        ($3.ExtractResult 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()));
  }

  $async.Future<$2.ActorByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$2.ActorByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$2.ActorByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$2.ActorByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$2.ActorByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$2.ActorByMatchQuery> $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<$3.ExtractResult> extract_Pre($grpc.ServiceCall $call, $async.Future<$3.ExtractQuery> $request) async {
    return extract($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<$2.ActorByIdResult> getByIds($grpc.ServiceCall call, $2.ActorByIdQuery request);
  $async.Future<$2.ActorByFilterResult> find($grpc.ServiceCall call, $2.ActorByFilterQuery request);
  $async.Future<$2.ActorByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $2.ActorByMatchQuery request);
  $async.Future<$3.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $3.ElementByMatchQuery request);
  $async.Future<$3.ExtractResult> extract($grpc.ServiceCall call, $3.ExtractQuery request);
  $async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
}
