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

export 'resource.pb.dart';

@$pb.GrpcServiceName('api.ResourceService')
class ResourceServiceClient extends $grpc.Client {
  static final _$createResource = $grpc.ClientMethod<$49.CreateResourceRequest, $49.CreateResourceResponse>(
      '/api.ResourceService/CreateResource',
      ($49.CreateResourceRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $49.CreateResourceResponse.fromBuffer(value));
  static final _$deleteResource = $grpc.ClientMethod<$49.DeleteResourceRequest, $49.DeleteResourceResponse>(
      '/api.ResourceService/DeleteResource',
      ($49.DeleteResourceRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $49.DeleteResourceResponse.fromBuffer(value));
  static final _$cleanResource = $grpc.ClientMethod<$49.CleanResourceRequest, $49.CleanResourceResult>(
      '/api.ResourceService/CleanResource',
      ($49.CleanResourceRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $49.CleanResourceResult.fromBuffer(value));
  static final _$listResources = $grpc.ClientMethod<$49.ListResourcesRequest, $49.ListResourcesResponse>(
      '/api.ResourceService/ListResources',
      ($49.ListResourcesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $49.ListResourcesResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$49.CreateResourceResponse> createResource($49.CreateResourceRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createResource, request, options: options);
  }

  $grpc.ResponseFuture<$49.DeleteResourceResponse> deleteResource($49.DeleteResourceRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteResource, request, options: options);
  }

  $grpc.ResponseFuture<$49.CleanResourceResult> cleanResource($49.CleanResourceRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$cleanResource, request, options: options);
  }

  $grpc.ResponseFuture<$49.ListResourcesResponse> listResources($49.ListResourcesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listResources, request, options: options);
  }
}

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

  ResourceServiceBase() {
    $addMethod($grpc.ServiceMethod<$49.CreateResourceRequest, $49.CreateResourceResponse>(
        'CreateResource',
        createResource_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.CreateResourceRequest.fromBuffer(value),
        ($49.CreateResourceResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.DeleteResourceRequest, $49.DeleteResourceResponse>(
        'DeleteResource',
        deleteResource_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.DeleteResourceRequest.fromBuffer(value),
        ($49.DeleteResourceResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.CleanResourceRequest, $49.CleanResourceResult>(
        'CleanResource',
        cleanResource_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.CleanResourceRequest.fromBuffer(value),
        ($49.CleanResourceResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.ListResourcesRequest, $49.ListResourcesResponse>(
        'ListResources',
        listResources_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.ListResourcesRequest.fromBuffer(value),
        ($49.ListResourcesResponse value) => value.writeToBuffer()));
  }

  $async.Future<$49.CreateResourceResponse> createResource_Pre($grpc.ServiceCall $call, $async.Future<$49.CreateResourceRequest> $request) async {
    return createResource($call, await $request);
  }

  $async.Future<$49.DeleteResourceResponse> deleteResource_Pre($grpc.ServiceCall $call, $async.Future<$49.DeleteResourceRequest> $request) async {
    return deleteResource($call, await $request);
  }

  $async.Future<$49.CleanResourceResult> cleanResource_Pre($grpc.ServiceCall $call, $async.Future<$49.CleanResourceRequest> $request) async {
    return cleanResource($call, await $request);
  }

  $async.Future<$49.ListResourcesResponse> listResources_Pre($grpc.ServiceCall $call, $async.Future<$49.ListResourcesRequest> $request) async {
    return listResources($call, await $request);
  }

  $async.Future<$49.CreateResourceResponse> createResource($grpc.ServiceCall call, $49.CreateResourceRequest request);
  $async.Future<$49.DeleteResourceResponse> deleteResource($grpc.ServiceCall call, $49.DeleteResourceRequest request);
  $async.Future<$49.CleanResourceResult> cleanResource($grpc.ServiceCall call, $49.CleanResourceRequest request);
  $async.Future<$49.ListResourcesResponse> listResources($grpc.ServiceCall call, $49.ListResourcesRequest request);
}
