//
//  Generated code. Do not modify.
//  source: kpi.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 'kpi.pb.dart' as $59;

export 'kpi.pb.dart';

@$pb.GrpcServiceName('api.KpiService')
class KpiServiceClient extends $grpc.Client {
  static final _$getKpis = $grpc.ClientMethod<$59.GetKpisRequest, $59.GetKpisResult>(
      '/api.KpiService/GetKpis',
      ($59.GetKpisRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.GetKpisResult.fromBuffer(value));
  static final _$getKpiTableStructure = $grpc.ClientMethod<$59.GetKpiTableStructureRequest, $59.GetKpiTableStructureResult>(
      '/api.KpiService/GetKpiTableStructure',
      ($59.GetKpiTableStructureRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.GetKpiTableStructureResult.fromBuffer(value));
  static final _$updateKpiTableStructure = $grpc.ClientMethod<$59.UpdateKpiTableStructureRequest, $59.UpdateKpiTableStructureResult>(
      '/api.KpiService/UpdateKpiTableStructure',
      ($59.UpdateKpiTableStructureRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.UpdateKpiTableStructureResult.fromBuffer(value));
  static final _$getKpiEntities = $grpc.ClientMethod<$59.GetKpiEntitiesRequest, $59.GetKpiEntitiesResult>(
      '/api.KpiService/GetKpiEntities',
      ($59.GetKpiEntitiesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.GetKpiEntitiesResult.fromBuffer(value));
  static final _$clearKpiEntity = $grpc.ClientMethod<$59.ClearKpiEntityRequest, $59.ClearKpiEntityResult>(
      '/api.KpiService/ClearKpiEntity',
      ($59.ClearKpiEntityRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.ClearKpiEntityResult.fromBuffer(value));
  static final _$createMV = $grpc.ClientMethod<$59.CreateMVRequest, $59.CreateMVResult>(
      '/api.KpiService/CreateMV',
      ($59.CreateMVRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.CreateMVResult.fromBuffer(value));
  static final _$dropMV = $grpc.ClientMethod<$59.DropMVRequest, $59.DropMVResult>(
      '/api.KpiService/DropMV',
      ($59.DropMVRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.DropMVResult.fromBuffer(value));
  static final _$populateMV = $grpc.ClientMethod<$59.PopulateMVRequest, $59.PopulateMVResult>(
      '/api.KpiService/PopulateMV',
      ($59.PopulateMVRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.PopulateMVResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$59.GetKpisResult> getKpis($59.GetKpisRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKpis, request, options: options);
  }

  $grpc.ResponseFuture<$59.GetKpiTableStructureResult> getKpiTableStructure($59.GetKpiTableStructureRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKpiTableStructure, request, options: options);
  }

  $grpc.ResponseFuture<$59.UpdateKpiTableStructureResult> updateKpiTableStructure($59.UpdateKpiTableStructureRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$updateKpiTableStructure, request, options: options);
  }

  $grpc.ResponseFuture<$59.GetKpiEntitiesResult> getKpiEntities($59.GetKpiEntitiesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getKpiEntities, request, options: options);
  }

  $grpc.ResponseFuture<$59.ClearKpiEntityResult> clearKpiEntity($59.ClearKpiEntityRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$clearKpiEntity, request, options: options);
  }

  $grpc.ResponseFuture<$59.CreateMVResult> createMV($59.CreateMVRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createMV, request, options: options);
  }

  $grpc.ResponseFuture<$59.DropMVResult> dropMV($59.DropMVRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$dropMV, request, options: options);
  }

  $grpc.ResponseFuture<$59.PopulateMVResult> populateMV($59.PopulateMVRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$populateMV, request, options: options);
  }
}

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

  KpiServiceBase() {
    $addMethod($grpc.ServiceMethod<$59.GetKpisRequest, $59.GetKpisResult>(
        'GetKpis',
        getKpis_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.GetKpisRequest.fromBuffer(value),
        ($59.GetKpisResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.GetKpiTableStructureRequest, $59.GetKpiTableStructureResult>(
        'GetKpiTableStructure',
        getKpiTableStructure_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.GetKpiTableStructureRequest.fromBuffer(value),
        ($59.GetKpiTableStructureResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.UpdateKpiTableStructureRequest, $59.UpdateKpiTableStructureResult>(
        'UpdateKpiTableStructure',
        updateKpiTableStructure_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.UpdateKpiTableStructureRequest.fromBuffer(value),
        ($59.UpdateKpiTableStructureResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.GetKpiEntitiesRequest, $59.GetKpiEntitiesResult>(
        'GetKpiEntities',
        getKpiEntities_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.GetKpiEntitiesRequest.fromBuffer(value),
        ($59.GetKpiEntitiesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.ClearKpiEntityRequest, $59.ClearKpiEntityResult>(
        'ClearKpiEntity',
        clearKpiEntity_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.ClearKpiEntityRequest.fromBuffer(value),
        ($59.ClearKpiEntityResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.CreateMVRequest, $59.CreateMVResult>(
        'CreateMV',
        createMV_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.CreateMVRequest.fromBuffer(value),
        ($59.CreateMVResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.DropMVRequest, $59.DropMVResult>(
        'DropMV',
        dropMV_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.DropMVRequest.fromBuffer(value),
        ($59.DropMVResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.PopulateMVRequest, $59.PopulateMVResult>(
        'PopulateMV',
        populateMV_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.PopulateMVRequest.fromBuffer(value),
        ($59.PopulateMVResult value) => value.writeToBuffer()));
  }

  $async.Future<$59.GetKpisResult> getKpis_Pre($grpc.ServiceCall $call, $async.Future<$59.GetKpisRequest> $request) async {
    return getKpis($call, await $request);
  }

  $async.Future<$59.GetKpiTableStructureResult> getKpiTableStructure_Pre($grpc.ServiceCall $call, $async.Future<$59.GetKpiTableStructureRequest> $request) async {
    return getKpiTableStructure($call, await $request);
  }

  $async.Future<$59.UpdateKpiTableStructureResult> updateKpiTableStructure_Pre($grpc.ServiceCall $call, $async.Future<$59.UpdateKpiTableStructureRequest> $request) async {
    return updateKpiTableStructure($call, await $request);
  }

  $async.Future<$59.GetKpiEntitiesResult> getKpiEntities_Pre($grpc.ServiceCall $call, $async.Future<$59.GetKpiEntitiesRequest> $request) async {
    return getKpiEntities($call, await $request);
  }

  $async.Future<$59.ClearKpiEntityResult> clearKpiEntity_Pre($grpc.ServiceCall $call, $async.Future<$59.ClearKpiEntityRequest> $request) async {
    return clearKpiEntity($call, await $request);
  }

  $async.Future<$59.CreateMVResult> createMV_Pre($grpc.ServiceCall $call, $async.Future<$59.CreateMVRequest> $request) async {
    return createMV($call, await $request);
  }

  $async.Future<$59.DropMVResult> dropMV_Pre($grpc.ServiceCall $call, $async.Future<$59.DropMVRequest> $request) async {
    return dropMV($call, await $request);
  }

  $async.Future<$59.PopulateMVResult> populateMV_Pre($grpc.ServiceCall $call, $async.Future<$59.PopulateMVRequest> $request) async {
    return populateMV($call, await $request);
  }

  $async.Future<$59.GetKpisResult> getKpis($grpc.ServiceCall call, $59.GetKpisRequest request);
  $async.Future<$59.GetKpiTableStructureResult> getKpiTableStructure($grpc.ServiceCall call, $59.GetKpiTableStructureRequest request);
  $async.Future<$59.UpdateKpiTableStructureResult> updateKpiTableStructure($grpc.ServiceCall call, $59.UpdateKpiTableStructureRequest request);
  $async.Future<$59.GetKpiEntitiesResult> getKpiEntities($grpc.ServiceCall call, $59.GetKpiEntitiesRequest request);
  $async.Future<$59.ClearKpiEntityResult> clearKpiEntity($grpc.ServiceCall call, $59.ClearKpiEntityRequest request);
  $async.Future<$59.CreateMVResult> createMV($grpc.ServiceCall call, $59.CreateMVRequest request);
  $async.Future<$59.DropMVResult> dropMV($grpc.ServiceCall call, $59.DropMVRequest request);
  $async.Future<$59.PopulateMVResult> populateMV($grpc.ServiceCall call, $59.PopulateMVRequest request);
}
