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

export 'metadatadef.pb.dart';

@$pb.GrpcServiceName('api.MetadataService')
class MetadataServiceClient extends $grpc.Client {
  static final _$createMetadata = $grpc.ClientMethod<$55.CreateMetadataRequest, $55.CreateMetadataResult>(
      '/api.MetadataService/CreateMetadata',
      ($55.CreateMetadataRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.CreateMetadataResult.fromBuffer(value));
  static final _$updateMetadata = $grpc.ClientMethod<$55.UpdateMetadataRequest, $55.UpdateMetadataResult>(
      '/api.MetadataService/UpdateMetadata',
      ($55.UpdateMetadataRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.UpdateMetadataResult.fromBuffer(value));
  static final _$getMetadatas = $grpc.ClientMethod<$55.GetMetadatasRequest, $55.GetMetadatasResult>(
      '/api.MetadataService/GetMetadatas',
      ($55.GetMetadatasRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.GetMetadatasResult.fromBuffer(value));
  static final _$deleteMetadatas = $grpc.ClientMethod<$55.DeleteMetadatasRequest, $55.DeleteMetadatasResult>(
      '/api.MetadataService/DeleteMetadatas',
      ($55.DeleteMetadatasRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.DeleteMetadatasResult.fromBuffer(value));
  static final _$getMetadataCount = $grpc.ClientMethod<$55.GetMetadataCountRequest, $55.GetMetadataCountResult>(
      '/api.MetadataService/GetMetadataCount',
      ($55.GetMetadataCountRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.GetMetadataCountResult.fromBuffer(value));
  static final _$getTransitiveMetadatas = $grpc.ClientMethod<$55.GetTransitiveMetadatasRequest, $55.GetTransitiveMetadatasResult>(
      '/api.MetadataService/GetTransitiveMetadatas',
      ($55.GetTransitiveMetadatasRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.GetTransitiveMetadatasResult.fromBuffer(value));
  static final _$restoreMetadatas = $grpc.ClientMethod<$55.RestoreMetadatasRequest, $55.RestoreMetadatasResult>(
      '/api.MetadataService/RestoreMetadatas',
      ($55.RestoreMetadatasRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $55.RestoreMetadatasResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$55.CreateMetadataResult> createMetadata($55.CreateMetadataRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createMetadata, request, options: options);
  }

  $grpc.ResponseFuture<$55.UpdateMetadataResult> updateMetadata($55.UpdateMetadataRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$updateMetadata, request, options: options);
  }

  $grpc.ResponseFuture<$55.GetMetadatasResult> getMetadatas($55.GetMetadatasRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getMetadatas, request, options: options);
  }

  $grpc.ResponseFuture<$55.DeleteMetadatasResult> deleteMetadatas($55.DeleteMetadatasRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteMetadatas, request, options: options);
  }

  $grpc.ResponseFuture<$55.GetMetadataCountResult> getMetadataCount($55.GetMetadataCountRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getMetadataCount, request, options: options);
  }

  $grpc.ResponseFuture<$55.GetTransitiveMetadatasResult> getTransitiveMetadatas($55.GetTransitiveMetadatasRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getTransitiveMetadatas, request, options: options);
  }

  $grpc.ResponseFuture<$55.RestoreMetadatasResult> restoreMetadatas($55.RestoreMetadatasRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$restoreMetadatas, request, options: options);
  }
}

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

  MetadataServiceBase() {
    $addMethod($grpc.ServiceMethod<$55.CreateMetadataRequest, $55.CreateMetadataResult>(
        'CreateMetadata',
        createMetadata_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.CreateMetadataRequest.fromBuffer(value),
        ($55.CreateMetadataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.UpdateMetadataRequest, $55.UpdateMetadataResult>(
        'UpdateMetadata',
        updateMetadata_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.UpdateMetadataRequest.fromBuffer(value),
        ($55.UpdateMetadataResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.GetMetadatasRequest, $55.GetMetadatasResult>(
        'GetMetadatas',
        getMetadatas_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.GetMetadatasRequest.fromBuffer(value),
        ($55.GetMetadatasResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.DeleteMetadatasRequest, $55.DeleteMetadatasResult>(
        'DeleteMetadatas',
        deleteMetadatas_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.DeleteMetadatasRequest.fromBuffer(value),
        ($55.DeleteMetadatasResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.GetMetadataCountRequest, $55.GetMetadataCountResult>(
        'GetMetadataCount',
        getMetadataCount_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.GetMetadataCountRequest.fromBuffer(value),
        ($55.GetMetadataCountResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.GetTransitiveMetadatasRequest, $55.GetTransitiveMetadatasResult>(
        'GetTransitiveMetadatas',
        getTransitiveMetadatas_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.GetTransitiveMetadatasRequest.fromBuffer(value),
        ($55.GetTransitiveMetadatasResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$55.RestoreMetadatasRequest, $55.RestoreMetadatasResult>(
        'RestoreMetadatas',
        restoreMetadatas_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $55.RestoreMetadatasRequest.fromBuffer(value),
        ($55.RestoreMetadatasResult value) => value.writeToBuffer()));
  }

  $async.Future<$55.CreateMetadataResult> createMetadata_Pre($grpc.ServiceCall $call, $async.Future<$55.CreateMetadataRequest> $request) async {
    return createMetadata($call, await $request);
  }

  $async.Future<$55.UpdateMetadataResult> updateMetadata_Pre($grpc.ServiceCall $call, $async.Future<$55.UpdateMetadataRequest> $request) async {
    return updateMetadata($call, await $request);
  }

  $async.Future<$55.GetMetadatasResult> getMetadatas_Pre($grpc.ServiceCall $call, $async.Future<$55.GetMetadatasRequest> $request) async {
    return getMetadatas($call, await $request);
  }

  $async.Future<$55.DeleteMetadatasResult> deleteMetadatas_Pre($grpc.ServiceCall $call, $async.Future<$55.DeleteMetadatasRequest> $request) async {
    return deleteMetadatas($call, await $request);
  }

  $async.Future<$55.GetMetadataCountResult> getMetadataCount_Pre($grpc.ServiceCall $call, $async.Future<$55.GetMetadataCountRequest> $request) async {
    return getMetadataCount($call, await $request);
  }

  $async.Future<$55.GetTransitiveMetadatasResult> getTransitiveMetadatas_Pre($grpc.ServiceCall $call, $async.Future<$55.GetTransitiveMetadatasRequest> $request) async {
    return getTransitiveMetadatas($call, await $request);
  }

  $async.Future<$55.RestoreMetadatasResult> restoreMetadatas_Pre($grpc.ServiceCall $call, $async.Future<$55.RestoreMetadatasRequest> $request) async {
    return restoreMetadatas($call, await $request);
  }

  $async.Future<$55.CreateMetadataResult> createMetadata($grpc.ServiceCall call, $55.CreateMetadataRequest request);
  $async.Future<$55.UpdateMetadataResult> updateMetadata($grpc.ServiceCall call, $55.UpdateMetadataRequest request);
  $async.Future<$55.GetMetadatasResult> getMetadatas($grpc.ServiceCall call, $55.GetMetadatasRequest request);
  $async.Future<$55.DeleteMetadatasResult> deleteMetadatas($grpc.ServiceCall call, $55.DeleteMetadatasRequest request);
  $async.Future<$55.GetMetadataCountResult> getMetadataCount($grpc.ServiceCall call, $55.GetMetadataCountRequest request);
  $async.Future<$55.GetTransitiveMetadatasResult> getTransitiveMetadatas($grpc.ServiceCall call, $55.GetTransitiveMetadatasRequest request);
  $async.Future<$55.RestoreMetadatasResult> restoreMetadatas($grpc.ServiceCall call, $55.RestoreMetadatasRequest request);
}
