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

export 'metadatadef.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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