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

export 'metadataInput.pb.dart';

@$pb.GrpcServiceName('api.MetadataInputAPI')
class MetadataInputAPIClient extends $grpc.Client {
  static final _$created = $grpc.ClientMethod<$23.MetadataCreatedRequest, $23.MetadataCreatedResponse>(
      '/api.MetadataInputAPI/Created',
      ($23.MetadataCreatedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $23.MetadataCreatedResponse.fromBuffer(value));
  static final _$deleted = $grpc.ClientMethod<$23.MetadataDeletedRequest, $23.MetadataDeletedResponse>(
      '/api.MetadataInputAPI/Deleted',
      ($23.MetadataDeletedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $23.MetadataDeletedResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$23.MetadataCreatedResponse> created($23.MetadataCreatedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$created, request, options: options);
  }

  $grpc.ResponseFuture<$23.MetadataDeletedResponse> deleted($23.MetadataDeletedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleted, request, options: options);
  }
}

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

  MetadataInputAPIServiceBase() {
    $addMethod($grpc.ServiceMethod<$23.MetadataCreatedRequest, $23.MetadataCreatedResponse>(
        'Created',
        created_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $23.MetadataCreatedRequest.fromBuffer(value),
        ($23.MetadataCreatedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$23.MetadataDeletedRequest, $23.MetadataDeletedResponse>(
        'Deleted',
        deleted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $23.MetadataDeletedRequest.fromBuffer(value),
        ($23.MetadataDeletedResponse value) => value.writeToBuffer()));
  }

  $async.Future<$23.MetadataCreatedResponse> created_Pre($grpc.ServiceCall $call, $async.Future<$23.MetadataCreatedRequest> $request) async {
    return created($call, await $request);
  }

  $async.Future<$23.MetadataDeletedResponse> deleted_Pre($grpc.ServiceCall $call, $async.Future<$23.MetadataDeletedRequest> $request) async {
    return deleted($call, await $request);
  }

  $async.Future<$23.MetadataCreatedResponse> created($grpc.ServiceCall call, $23.MetadataCreatedRequest request);
  $async.Future<$23.MetadataDeletedResponse> deleted($grpc.ServiceCall call, $23.MetadataDeletedRequest request);
}
