//
//  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 $33;

export 'model.pb.dart';

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

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

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

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

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

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

  $grpc.ResponseFuture<$33.GetEntitiesResult> getEntitiesWithDataRestriction($33.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<$33.GetDataModelRequest, $33.GetDataModelResult>(
        'GetDataModel',
        getDataModel_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $33.GetDataModelRequest.fromBuffer(value),
        ($33.GetDataModelResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$33.GetEntityModelRequest, $33.GetEntityModelResult>(
        'GetEntityModel',
        getEntityModel_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $33.GetEntityModelRequest.fromBuffer(value),
        ($33.GetEntityModelResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$33.GetEntitiesRequest, $33.GetEntitiesResult>(
        'GetEntities',
        getEntities_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $33.GetEntitiesRequest.fromBuffer(value),
        ($33.GetEntitiesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$33.GetEntitiesRequest, $33.GetEntitiesResult>(
        'GetEntitiesWithMetadata',
        getEntitiesWithMetadata_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $33.GetEntitiesRequest.fromBuffer(value),
        ($33.GetEntitiesResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$33.GetEntitiesRequest, $33.GetEntitiesResult>(
        'GetEntitiesWithDataRestriction',
        getEntitiesWithDataRestriction_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $33.GetEntitiesRequest.fromBuffer(value),
        ($33.GetEntitiesResult value) => value.writeToBuffer()));
  }

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

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

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

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

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

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