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

export 'adaptiveCard.pb.dart';

@$pb.GrpcServiceName('api.AdaptiveCardService')
class AdaptiveCardServiceClient extends $grpc.Client {
  static final _$get = $grpc.ClientMethod<$4.GetAdaptiveCardRequest, $4.GetAdaptiveCardResult>(
      '/api.AdaptiveCardService/Get',
      ($4.GetAdaptiveCardRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $4.GetAdaptiveCardResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$4.ListAdaptiveCardRequest, $4.ListAdaptiveCardResult>(
      '/api.AdaptiveCardService/List',
      ($4.ListAdaptiveCardRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $4.ListAdaptiveCardResult.fromBuffer(value));
  static final _$create = $grpc.ClientMethod<$4.CreateAdaptiveCardRequest, $4.CreateAdaptiveCardResult>(
      '/api.AdaptiveCardService/Create',
      ($4.CreateAdaptiveCardRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $4.CreateAdaptiveCardResult.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$4.UpdateAdaptiveCardRequest, $4.UpdateAdaptiveCardResult>(
      '/api.AdaptiveCardService/Update',
      ($4.UpdateAdaptiveCardRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $4.UpdateAdaptiveCardResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$4.DeleteAdaptiveCardRequest, $4.DeleteAdaptiveCardResult>(
      '/api.AdaptiveCardService/Delete',
      ($4.DeleteAdaptiveCardRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $4.DeleteAdaptiveCardResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$4.GetAdaptiveCardResult> get($4.GetAdaptiveCardRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$4.ListAdaptiveCardResult> list($4.ListAdaptiveCardRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$4.CreateAdaptiveCardResult> create($4.CreateAdaptiveCardRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$4.UpdateAdaptiveCardResult> update($4.UpdateAdaptiveCardRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$4.DeleteAdaptiveCardResult> delete($4.DeleteAdaptiveCardRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }
}

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

  AdaptiveCardServiceBase() {
    $addMethod($grpc.ServiceMethod<$4.GetAdaptiveCardRequest, $4.GetAdaptiveCardResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $4.GetAdaptiveCardRequest.fromBuffer(value),
        ($4.GetAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$4.ListAdaptiveCardRequest, $4.ListAdaptiveCardResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $4.ListAdaptiveCardRequest.fromBuffer(value),
        ($4.ListAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$4.CreateAdaptiveCardRequest, $4.CreateAdaptiveCardResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $4.CreateAdaptiveCardRequest.fromBuffer(value),
        ($4.CreateAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$4.UpdateAdaptiveCardRequest, $4.UpdateAdaptiveCardResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $4.UpdateAdaptiveCardRequest.fromBuffer(value),
        ($4.UpdateAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$4.DeleteAdaptiveCardRequest, $4.DeleteAdaptiveCardResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $4.DeleteAdaptiveCardRequest.fromBuffer(value),
        ($4.DeleteAdaptiveCardResult value) => value.writeToBuffer()));
  }

  $async.Future<$4.GetAdaptiveCardResult> get_Pre($grpc.ServiceCall $call, $async.Future<$4.GetAdaptiveCardRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$4.ListAdaptiveCardResult> list_Pre($grpc.ServiceCall $call, $async.Future<$4.ListAdaptiveCardRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$4.CreateAdaptiveCardResult> create_Pre($grpc.ServiceCall $call, $async.Future<$4.CreateAdaptiveCardRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$4.UpdateAdaptiveCardResult> update_Pre($grpc.ServiceCall $call, $async.Future<$4.UpdateAdaptiveCardRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$4.DeleteAdaptiveCardResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$4.DeleteAdaptiveCardRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$4.GetAdaptiveCardResult> get($grpc.ServiceCall call, $4.GetAdaptiveCardRequest request);
  $async.Future<$4.ListAdaptiveCardResult> list($grpc.ServiceCall call, $4.ListAdaptiveCardRequest request);
  $async.Future<$4.CreateAdaptiveCardResult> create($grpc.ServiceCall call, $4.CreateAdaptiveCardRequest request);
  $async.Future<$4.UpdateAdaptiveCardResult> update($grpc.ServiceCall call, $4.UpdateAdaptiveCardRequest request);
  $async.Future<$4.DeleteAdaptiveCardResult> delete($grpc.ServiceCall call, $4.DeleteAdaptiveCardRequest request);
}
