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

export 'partnerQuery.pb.dart';

@$pb.GrpcServiceName('api.PartnerQuery')
class PartnerQueryClient extends $grpc.Client {
  static final _$getByIds = $grpc.ClientMethod<$46.PartnerByIdQuery, $46.PartnerByIdResult>(
      '/api.PartnerQuery/GetByIds',
      ($46.PartnerByIdQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $46.PartnerByIdResult.fromBuffer(value));
  static final _$find = $grpc.ClientMethod<$46.PartnerByFilterQuery, $46.PartnerByFilterResult>(
      '/api.PartnerQuery/Find',
      ($46.PartnerByFilterQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $46.PartnerByFilterResult.fromBuffer(value));
  static final _$findMatchingFieldValues = $grpc.ClientMethod<$46.PartnerByMatchQuery, $46.PartnerByMatchResult>(
      '/api.PartnerQuery/FindMatchingFieldValues',
      ($46.PartnerByMatchQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $46.PartnerByMatchResult.fromBuffer(value));
  static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
      '/api.PartnerQuery/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.PartnerQuery/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.PartnerQuery/CountLines',
      ($3.CountLinesQuery value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$46.PartnerByIdResult> getByIds($46.PartnerByIdQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getByIds, request, options: options);
  }

  $grpc.ResponseFuture<$46.PartnerByFilterResult> find($46.PartnerByFilterQuery request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$find, request, options: options);
  }

  $grpc.ResponseFuture<$46.PartnerByMatchResult> findMatchingFieldValues($46.PartnerByMatchQuery 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.PartnerQuery')
abstract class PartnerQueryServiceBase extends $grpc.Service {
  $core.String get $name => 'api.PartnerQuery';

  PartnerQueryServiceBase() {
    $addMethod($grpc.ServiceMethod<$46.PartnerByIdQuery, $46.PartnerByIdResult>(
        'GetByIds',
        getByIds_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $46.PartnerByIdQuery.fromBuffer(value),
        ($46.PartnerByIdResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$46.PartnerByFilterQuery, $46.PartnerByFilterResult>(
        'Find',
        find_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $46.PartnerByFilterQuery.fromBuffer(value),
        ($46.PartnerByFilterResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$46.PartnerByMatchQuery, $46.PartnerByMatchResult>(
        'FindMatchingFieldValues',
        findMatchingFieldValues_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $46.PartnerByMatchQuery.fromBuffer(value),
        ($46.PartnerByMatchResult 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<$46.PartnerByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$46.PartnerByIdQuery> $request) async {
    return getByIds($call, await $request);
  }

  $async.Future<$46.PartnerByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$46.PartnerByFilterQuery> $request) async {
    return find($call, await $request);
  }

  $async.Future<$46.PartnerByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$46.PartnerByMatchQuery> $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<$46.PartnerByIdResult> getByIds($grpc.ServiceCall call, $46.PartnerByIdQuery request);
  $async.Future<$46.PartnerByFilterResult> find($grpc.ServiceCall call, $46.PartnerByFilterQuery request);
  $async.Future<$46.PartnerByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $46.PartnerByMatchQuery 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);
}
