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

export 'adaptiveCard.pb.dart';

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

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

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

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

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

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

  $grpc.ResponseFuture<$49.DeleteAdaptiveCardResult> delete($49.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<$49.GetAdaptiveCardRequest, $49.GetAdaptiveCardResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.GetAdaptiveCardRequest.fromBuffer(value),
        ($49.GetAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.ListAdaptiveCardRequest, $49.ListAdaptiveCardResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.ListAdaptiveCardRequest.fromBuffer(value),
        ($49.ListAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.CreateAdaptiveCardRequest, $49.CreateAdaptiveCardResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.CreateAdaptiveCardRequest.fromBuffer(value),
        ($49.CreateAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.UpdateAdaptiveCardRequest, $49.UpdateAdaptiveCardResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.UpdateAdaptiveCardRequest.fromBuffer(value),
        ($49.UpdateAdaptiveCardResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$49.DeleteAdaptiveCardRequest, $49.DeleteAdaptiveCardResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $49.DeleteAdaptiveCardRequest.fromBuffer(value),
        ($49.DeleteAdaptiveCardResult value) => value.writeToBuffer()));
  }

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

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

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

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

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

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