74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from ads.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 'ads.pb.dart' as $0;
 | |
| 
 | |
| export 'ads.pb.dart';
 | |
| 
 | |
| /// 广告子系统
 | |
| @$pb.GrpcServiceName('ads.Fetch')
 | |
| class FetchClient 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 = [
 | |
|     '',
 | |
|   ];
 | |
| 
 | |
|   FetchClient(super.channel, {super.options, super.interceptors});
 | |
| 
 | |
|   /// 通过广告位获取广告信息
 | |
|   $grpc.ResponseFuture<$0.ByPosReply> byPos(
 | |
|     $0.ByPosRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$byPos, request, options: options);
 | |
|   }
 | |
| 
 | |
|   // method descriptors
 | |
| 
 | |
|   static final _$byPos = $grpc.ClientMethod<$0.ByPosRequest, $0.ByPosReply>(
 | |
|       '/ads.Fetch/ByPos',
 | |
|       ($0.ByPosRequest value) => value.writeToBuffer(),
 | |
|       $0.ByPosReply.fromBuffer);
 | |
| }
 | |
| 
 | |
| @$pb.GrpcServiceName('ads.Fetch')
 | |
| abstract class FetchServiceBase extends $grpc.Service {
 | |
|   $core.String get $name => 'ads.Fetch';
 | |
| 
 | |
|   FetchServiceBase() {
 | |
|     $addMethod($grpc.ServiceMethod<$0.ByPosRequest, $0.ByPosReply>(
 | |
|         'ByPos',
 | |
|         byPos_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $0.ByPosRequest.fromBuffer(value),
 | |
|         ($0.ByPosReply value) => value.writeToBuffer()));
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.ByPosReply> byPos_Pre(
 | |
|       $grpc.ServiceCall $call, $async.Future<$0.ByPosRequest> $request) async {
 | |
|     return byPos($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.ByPosReply> byPos(
 | |
|       $grpc.ServiceCall call, $0.ByPosRequest request);
 | |
| }
 |