// This is a generated file - do not edit.
//
// Generated from metadatadef.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 'metadatadef.pb.dart' as $0;

export 'metadatadef.pb.dart';

@$pb.GrpcServiceName('api.MetadataService')
class MetadataServiceClient 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 = [
    '',
  ];

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

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

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

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

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

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

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

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

    // method descriptors

  static final _$createMetadata = $grpc.ClientMethod<$0.CreateMetadataRequest, $0.CreateMetadataResult>(
      '/api.MetadataService/CreateMetadata',
      ($0.CreateMetadataRequest value) => value.writeToBuffer(),
      $0.CreateMetadataResult.fromBuffer);
  static final _$updateMetadata = $grpc.ClientMethod<$0.UpdateMetadataRequest, $0.UpdateMetadataResult>(
      '/api.MetadataService/UpdateMetadata',
      ($0.UpdateMetadataRequest value) => value.writeToBuffer(),
      $0.UpdateMetadataResult.fromBuffer);
  static final _$getMetadatas = $grpc.ClientMethod<$0.GetMetadatasRequest, $0.GetMetadatasResult>(
      '/api.MetadataService/GetMetadatas',
      ($0.GetMetadatasRequest value) => value.writeToBuffer(),
      $0.GetMetadatasResult.fromBuffer);
  static final _$deleteMetadatas = $grpc.ClientMethod<$0.DeleteMetadatasRequest, $0.DeleteMetadatasResult>(
      '/api.MetadataService/DeleteMetadatas',
      ($0.DeleteMetadatasRequest value) => value.writeToBuffer(),
      $0.DeleteMetadatasResult.fromBuffer);
  static final _$getMetadataCount = $grpc.ClientMethod<$0.GetMetadataCountRequest, $0.GetMetadataCountResult>(
      '/api.MetadataService/GetMetadataCount',
      ($0.GetMetadataCountRequest value) => value.writeToBuffer(),
      $0.GetMetadataCountResult.fromBuffer);
  static final _$getTransitiveMetadatas = $grpc.ClientMethod<$0.GetTransitiveMetadatasRequest, $0.GetTransitiveMetadatasResult>(
      '/api.MetadataService/GetTransitiveMetadatas',
      ($0.GetTransitiveMetadatasRequest value) => value.writeToBuffer(),
      $0.GetTransitiveMetadatasResult.fromBuffer);
  static final _$restoreMetadatas = $grpc.ClientMethod<$0.RestoreMetadatasRequest, $0.RestoreMetadatasResult>(
      '/api.MetadataService/RestoreMetadatas',
      ($0.RestoreMetadatasRequest value) => value.writeToBuffer(),
      $0.RestoreMetadatasResult.fromBuffer);
}

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

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

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

  $async.Future<$0.CreateMetadataResult> createMetadata($grpc.ServiceCall call, $0.CreateMetadataRequest request);

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

  $async.Future<$0.UpdateMetadataResult> updateMetadata($grpc.ServiceCall call, $0.UpdateMetadataRequest request);

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

  $async.Future<$0.GetMetadatasResult> getMetadatas($grpc.ServiceCall call, $0.GetMetadatasRequest request);

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

  $async.Future<$0.DeleteMetadatasResult> deleteMetadatas($grpc.ServiceCall call, $0.DeleteMetadatasRequest request);

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

  $async.Future<$0.GetMetadataCountResult> getMetadataCount($grpc.ServiceCall call, $0.GetMetadataCountRequest request);

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

  $async.Future<$0.GetTransitiveMetadatasResult> getTransitiveMetadatas($grpc.ServiceCall call, $0.GetTransitiveMetadatasRequest request);

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

  $async.Future<$0.RestoreMetadatasResult> restoreMetadatas($grpc.ServiceCall call, $0.RestoreMetadatasRequest request);

}
