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

export 'metadataInput.pb.dart';

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

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

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

  $grpc.ResponseFuture<$31.MetadataDeletedResponse> deleted($31.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<$31.MetadataCreatedRequest, $31.MetadataCreatedResponse>(
        'Created',
        created_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $31.MetadataCreatedRequest.fromBuffer(value),
        ($31.MetadataCreatedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$31.MetadataDeletedRequest, $31.MetadataDeletedResponse>(
        'Deleted',
        deleted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $31.MetadataDeletedRequest.fromBuffer(value),
        ($31.MetadataDeletedResponse value) => value.writeToBuffer()));
  }

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

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

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