github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/dart/lib/logprovider.pbgrpc.dart (about)

     1  ///
     2  //  Generated code. Do not modify.
     3  //  source: logprovider.proto
     4  //
     5  // @dart = 2.12
     6  // ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
     7  
     8  import 'dart:async' as $async;
     9  
    10  import 'dart:core' as $core;
    11  
    12  import 'package:grpc/service_api.dart' as $grpc;
    13  import 'logprovider.pb.dart' as $1;
    14  export 'logprovider.pb.dart';
    15  
    16  class LogProviderServiceClient extends $grpc.Client {
    17    static final _$getLogs = $grpc.ClientMethod<$1.GetLogsRequest, $1.LogEntry>(
    18        '/binkynet.v1.LogProviderService/GetLogs',
    19        ($1.GetLogsRequest value) => value.writeToBuffer(),
    20        ($core.List<$core.int> value) => $1.LogEntry.fromBuffer(value));
    21  
    22    LogProviderServiceClient($grpc.ClientChannel channel,
    23        {$grpc.CallOptions? options,
    24        $core.Iterable<$grpc.ClientInterceptor>? interceptors})
    25        : super(channel, options: options, interceptors: interceptors);
    26  
    27    $grpc.ResponseStream<$1.LogEntry> getLogs($1.GetLogsRequest request,
    28        {$grpc.CallOptions? options}) {
    29      return $createStreamingCall(
    30          _$getLogs, $async.Stream.fromIterable([request]),
    31          options: options);
    32    }
    33  }
    34  
    35  abstract class LogProviderServiceBase extends $grpc.Service {
    36    $core.String get $name => 'binkynet.v1.LogProviderService';
    37  
    38    LogProviderServiceBase() {
    39      $addMethod($grpc.ServiceMethod<$1.GetLogsRequest, $1.LogEntry>(
    40          'GetLogs',
    41          getLogs_Pre,
    42          false,
    43          true,
    44          ($core.List<$core.int> value) => $1.GetLogsRequest.fromBuffer(value),
    45          ($1.LogEntry value) => value.writeToBuffer()));
    46    }
    47  
    48    $async.Stream<$1.LogEntry> getLogs_Pre(
    49        $grpc.ServiceCall call, $async.Future<$1.GetLogsRequest> request) async* {
    50      yield* getLogs(call, await request);
    51    }
    52  
    53    $async.Stream<$1.LogEntry> getLogs(
    54        $grpc.ServiceCall call, $1.GetLogsRequest request);
    55  }