74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from mail.proto.
 | |
| 
 | |
| // @dart = 3.3
 | |
| 
 | |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references
 | |
| // ignore_for_file: constant_identifier_names
 | |
| // ignore_for_file: curly_braces_in_flow_control_structures
 | |
| // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
 | |
| // ignore_for_file: non_constant_identifier_names
 | |
| 
 | |
| 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 'mail.pb.dart' as $0;
 | |
| 
 | |
| export 'mail.pb.dart';
 | |
| 
 | |
| /// Mail method
 | |
| @$pb.GrpcServiceName('sender.Mail')
 | |
| class MailClient extends $grpc.Client {
 | |
|   /// The hostname for this service.
 | |
|   static const $core.String defaultHost = '';
 | |
| 
 | |
|   /// OAuth scopes needed for the client.
 | |
|   static const $core.List<$core.String> oauthScopes = [
 | |
|     '',
 | |
|   ];
 | |
| 
 | |
|   MailClient(super.channel, {super.options, super.interceptors});
 | |
| 
 | |
|   $grpc.ResponseFuture<$0.SendMailReply> send(
 | |
|     $0.SendMailRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$send, request, options: options);
 | |
|   }
 | |
| 
 | |
|   // method descriptors
 | |
| 
 | |
|   static final _$send =
 | |
|       $grpc.ClientMethod<$0.SendMailRequest, $0.SendMailReply>(
 | |
|           '/sender.Mail/Send',
 | |
|           ($0.SendMailRequest value) => value.writeToBuffer(),
 | |
|           $0.SendMailReply.fromBuffer);
 | |
| }
 | |
| 
 | |
| @$pb.GrpcServiceName('sender.Mail')
 | |
| abstract class MailServiceBase extends $grpc.Service {
 | |
|   $core.String get $name => 'sender.Mail';
 | |
| 
 | |
|   MailServiceBase() {
 | |
|     $addMethod($grpc.ServiceMethod<$0.SendMailRequest, $0.SendMailReply>(
 | |
|         'Send',
 | |
|         send_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $0.SendMailRequest.fromBuffer(value),
 | |
|         ($0.SendMailReply value) => value.writeToBuffer()));
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.SendMailReply> send_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.SendMailRequest> $request) async {
 | |
|     return send($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.SendMailReply> send(
 | |
|       $grpc.ServiceCall call, $0.SendMailRequest request);
 | |
| }
 |