// This is a generated file - do not edit.
//
// Generated from model.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

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 $0;

export 'model.pb.dart';

@$pb.GrpcServiceName('api.ModelService')
class ModelServiceClient extends $grpc.Client {
  /// The hostname for this service.
  static const $core.String defaultHost = '';

  /// OAuth scopes needed for the client.
  static const $core.List<$core.String> oauthScopes = [
    '',
  ];

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

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

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

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$0.GetEntitiesResult> getEntities($0.GetEntitiesRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getEntities, request, options: options);
  }

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$0.GetEntitiesResult> getEntitiesWithMetadata($0.GetEntitiesRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getEntitiesWithMetadata, request, options: options);
  }

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$0.GetEntitiesResult> getEntitiesWithDataRestriction($0.GetEntitiesRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getEntitiesWithDataRestriction, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListEntitiesResult> listEntities($0.ListEntitiesRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$listEntities, request, options: options);
  }

    // method descriptors

  static final _$getDataModel = $grpc.ClientMethod<$0.GetDataModelRequest, $0.GetDataModelResult>(
      '/api.ModelService/GetDataModel',
      ($0.GetDataModelRequest value) => value.writeToBuffer(),
      $0.GetDataModelResult.fromBuffer);
  static final _$getEntityModel = $grpc.ClientMethod<$0.GetEntityModelRequest, $0.GetEntityModelResult>(
      '/api.ModelService/GetEntityModel',
      ($0.GetEntityModelRequest value) => value.writeToBuffer(),
      $0.GetEntityModelResult.fromBuffer);
  static final _$getEntities = $grpc.ClientMethod<$0.GetEntitiesRequest, $0.GetEntitiesResult>(
      '/api.ModelService/GetEntities',
      ($0.GetEntitiesRequest value) => value.writeToBuffer(),
      $0.GetEntitiesResult.fromBuffer);
  static final _$getEntitiesWithMetadata = $grpc.ClientMethod<$0.GetEntitiesRequest, $0.GetEntitiesResult>(
      '/api.ModelService/GetEntitiesWithMetadata',
      ($0.GetEntitiesRequest value) => value.writeToBuffer(),
      $0.GetEntitiesResult.fromBuffer);
  static final _$getEntitiesWithDataRestriction = $grpc.ClientMethod<$0.GetEntitiesRequest, $0.GetEntitiesResult>(
      '/api.ModelService/GetEntitiesWithDataRestriction',
      ($0.GetEntitiesRequest value) => value.writeToBuffer(),
      $0.GetEntitiesResult.fromBuffer);
  static final _$listEntities = $grpc.ClientMethod<$0.ListEntitiesRequest, $0.ListEntitiesResult>(
      '/api.ModelService/ListEntities',
      ($0.ListEntitiesRequest value) => value.writeToBuffer(),
      $0.ListEntitiesResult.fromBuffer);
}

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

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

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

  $async.Future<$0.GetDataModelResult> getDataModel($grpc.ServiceCall call, $0.GetDataModelRequest request);

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

  $async.Future<$0.GetEntityModelResult> getEntityModel($grpc.ServiceCall call, $0.GetEntityModelRequest request);

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

  $async.Future<$0.GetEntitiesResult> getEntities($grpc.ServiceCall call, $0.GetEntitiesRequest request);

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

  $async.Future<$0.GetEntitiesResult> getEntitiesWithMetadata($grpc.ServiceCall call, $0.GetEntitiesRequest request);

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

  $async.Future<$0.GetEntitiesResult> getEntitiesWithDataRestriction($grpc.ServiceCall call, $0.GetEntitiesRequest request);

  $async.Future<$0.ListEntitiesResult> listEntities_Pre($grpc.ServiceCall $call, $async.Future<$0.ListEntitiesRequest> $request) async {
    return listEntities($call, await $request);
  }

  $async.Future<$0.ListEntitiesResult> listEntities($grpc.ServiceCall call, $0.ListEntitiesRequest request);

}
