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

export 'model.pb.dart';

@$pb.GrpcServiceName('api.ModelService')
class ModelServiceClient extends $grpc.Client {
  static final _$getDataModel = $grpc.ClientMethod<$58.GetDataModelRequest, $58.GetDataModelResult>(
      '/api.ModelService/GetDataModel',
      ($58.GetDataModelRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetDataModelResult.fromBuffer(value));
  static final _$getEntityModel = $grpc.ClientMethod<$58.GetEntityModelRequest, $58.GetEntityModelResult>(
      '/api.ModelService/GetEntityModel',
      ($58.GetEntityModelRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetEntityModelResult.fromBuffer(value));
  static final _$getEntities = $grpc.ClientMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
      '/api.ModelService/GetEntities',
      ($58.GetEntitiesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetEntitiesResult.fromBuffer(value));
  static final _$getEntitiesWithMetadata = $grpc.ClientMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
      '/api.ModelService/GetEntitiesWithMetadata',
      ($58.GetEntitiesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetEntitiesResult.fromBuffer(value));
  static final _$getEntitiesWithDataRestriction = $grpc.ClientMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
      '/api.ModelService/GetEntitiesWithDataRestriction',
      ($58.GetEntitiesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $58.GetEntitiesResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$58.GetDataModelResult> getDataModel($58.GetDataModelRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getDataModel, request, options: options);
  }

  $grpc.ResponseFuture<$58.GetEntityModelResult> getEntityModel($58.GetEntityModelRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getEntityModel, request, options: options);
  }

  $grpc.ResponseFuture<$58.GetEntitiesResult> getEntities($58.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getEntities, request, options: options);
  }

  $grpc.ResponseFuture<$58.GetEntitiesResult> getEntitiesWithMetadata($58.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getEntitiesWithMetadata, request, options: options);
  }

  $grpc.ResponseFuture<$58.GetEntitiesResult> getEntitiesWithDataRestriction($58.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getEntitiesWithDataRestriction, request, options: options);
  }
}

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

  ModelServiceBase() {
    $addMethod($grpc.ServiceMethod<$58.GetDataModelRequest, $58.GetDataModelResult>(
        'GetDataModel',
        getDataModel_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetDataModelRequest.fromBuffer(value),
        ($58.GetDataModelResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.GetEntityModelRequest, $58.GetEntityModelResult>(
        'GetEntityModel',
        getEntityModel_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetEntityModelRequest.fromBuffer(value),
        ($58.GetEntityModelResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
        'GetEntities',
        getEntities_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetEntitiesRequest.fromBuffer(value),
        ($58.GetEntitiesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
        'GetEntitiesWithMetadata',
        getEntitiesWithMetadata_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetEntitiesRequest.fromBuffer(value),
        ($58.GetEntitiesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$58.GetEntitiesRequest, $58.GetEntitiesResult>(
        'GetEntitiesWithDataRestriction',
        getEntitiesWithDataRestriction_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $58.GetEntitiesRequest.fromBuffer(value),
        ($58.GetEntitiesResult value) => value.writeToBuffer()));
  }

  $async.Future<$58.GetDataModelResult> getDataModel_Pre($grpc.ServiceCall $call, $async.Future<$58.GetDataModelRequest> $request) async {
    return getDataModel($call, await $request);
  }

  $async.Future<$58.GetEntityModelResult> getEntityModel_Pre($grpc.ServiceCall $call, $async.Future<$58.GetEntityModelRequest> $request) async {
    return getEntityModel($call, await $request);
  }

  $async.Future<$58.GetEntitiesResult> getEntities_Pre($grpc.ServiceCall $call, $async.Future<$58.GetEntitiesRequest> $request) async {
    return getEntities($call, await $request);
  }

  $async.Future<$58.GetEntitiesResult> getEntitiesWithMetadata_Pre($grpc.ServiceCall $call, $async.Future<$58.GetEntitiesRequest> $request) async {
    return getEntitiesWithMetadata($call, await $request);
  }

  $async.Future<$58.GetEntitiesResult> getEntitiesWithDataRestriction_Pre($grpc.ServiceCall $call, $async.Future<$58.GetEntitiesRequest> $request) async {
    return getEntitiesWithDataRestriction($call, await $request);
  }

  $async.Future<$58.GetDataModelResult> getDataModel($grpc.ServiceCall call, $58.GetDataModelRequest request);
  $async.Future<$58.GetEntityModelResult> getEntityModel($grpc.ServiceCall call, $58.GetEntityModelRequest request);
  $async.Future<$58.GetEntitiesResult> getEntities($grpc.ServiceCall call, $58.GetEntitiesRequest request);
  $async.Future<$58.GetEntitiesResult> getEntitiesWithMetadata($grpc.ServiceCall call, $58.GetEntitiesRequest request);
  $async.Future<$58.GetEntitiesResult> getEntitiesWithDataRestriction($grpc.ServiceCall call, $58.GetEntitiesRequest request);
}
