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

     1  ///
     2  //  Generated code. Do not modify.
     3  //  source: localworker.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 'types.pb.dart' as $0;
    14  export 'localworker.pb.dart';
    15  
    16  class LocalWorkerServiceClient extends $grpc.Client {
    17    static final _$reset = $grpc.ClientMethod<$0.Empty, $0.Empty>(
    18        '/binkynet.v1.LocalWorkerService/Reset',
    19        ($0.Empty value) => value.writeToBuffer(),
    20        ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    21    static final _$setLocRequest = $grpc.ClientMethod<$0.Loc, $0.Empty>(
    22        '/binkynet.v1.LocalWorkerService/SetLocRequest',
    23        ($0.Loc value) => value.writeToBuffer(),
    24        ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    25    static final _$setPowerRequest = $grpc.ClientMethod<$0.PowerState, $0.Empty>(
    26        '/binkynet.v1.LocalWorkerService/SetPowerRequest',
    27        ($0.PowerState value) => value.writeToBuffer(),
    28        ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    29    static final _$setOutputRequest = $grpc.ClientMethod<$0.Output, $0.Empty>(
    30        '/binkynet.v1.LocalWorkerService/SetOutputRequest',
    31        ($0.Output value) => value.writeToBuffer(),
    32        ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    33    static final _$setSwitchRequest = $grpc.ClientMethod<$0.Switch, $0.Empty>(
    34        '/binkynet.v1.LocalWorkerService/SetSwitchRequest',
    35        ($0.Switch value) => value.writeToBuffer(),
    36        ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    37    static final _$setDeviceDiscoveryRequest =
    38        $grpc.ClientMethod<$0.DeviceDiscovery, $0.Empty>(
    39            '/binkynet.v1.LocalWorkerService/SetDeviceDiscoveryRequest',
    40            ($0.DeviceDiscovery value) => value.writeToBuffer(),
    41            ($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
    42  
    43    LocalWorkerServiceClient($grpc.ClientChannel channel,
    44        {$grpc.CallOptions? options,
    45        $core.Iterable<$grpc.ClientInterceptor>? interceptors})
    46        : super(channel, options: options, interceptors: interceptors);
    47  
    48    $grpc.ResponseFuture<$0.Empty> reset($0.Empty request,
    49        {$grpc.CallOptions? options}) {
    50      return $createUnaryCall(_$reset, request, options: options);
    51    }
    52  
    53    $grpc.ResponseFuture<$0.Empty> setLocRequest($0.Loc request,
    54        {$grpc.CallOptions? options}) {
    55      return $createUnaryCall(_$setLocRequest, request, options: options);
    56    }
    57  
    58    $grpc.ResponseFuture<$0.Empty> setPowerRequest($0.PowerState request,
    59        {$grpc.CallOptions? options}) {
    60      return $createUnaryCall(_$setPowerRequest, request, options: options);
    61    }
    62  
    63    $grpc.ResponseFuture<$0.Empty> setOutputRequest($0.Output request,
    64        {$grpc.CallOptions? options}) {
    65      return $createUnaryCall(_$setOutputRequest, request, options: options);
    66    }
    67  
    68    $grpc.ResponseFuture<$0.Empty> setSwitchRequest($0.Switch request,
    69        {$grpc.CallOptions? options}) {
    70      return $createUnaryCall(_$setSwitchRequest, request, options: options);
    71    }
    72  
    73    $grpc.ResponseFuture<$0.Empty> setDeviceDiscoveryRequest(
    74        $0.DeviceDiscovery request,
    75        {$grpc.CallOptions? options}) {
    76      return $createUnaryCall(_$setDeviceDiscoveryRequest, request,
    77          options: options);
    78    }
    79  }
    80  
    81  abstract class LocalWorkerServiceBase extends $grpc.Service {
    82    $core.String get $name => 'binkynet.v1.LocalWorkerService';
    83  
    84    LocalWorkerServiceBase() {
    85      $addMethod($grpc.ServiceMethod<$0.Empty, $0.Empty>(
    86          'Reset',
    87          reset_Pre,
    88          false,
    89          false,
    90          ($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
    91          ($0.Empty value) => value.writeToBuffer()));
    92      $addMethod($grpc.ServiceMethod<$0.Loc, $0.Empty>(
    93          'SetLocRequest',
    94          setLocRequest_Pre,
    95          false,
    96          false,
    97          ($core.List<$core.int> value) => $0.Loc.fromBuffer(value),
    98          ($0.Empty value) => value.writeToBuffer()));
    99      $addMethod($grpc.ServiceMethod<$0.PowerState, $0.Empty>(
   100          'SetPowerRequest',
   101          setPowerRequest_Pre,
   102          false,
   103          false,
   104          ($core.List<$core.int> value) => $0.PowerState.fromBuffer(value),
   105          ($0.Empty value) => value.writeToBuffer()));
   106      $addMethod($grpc.ServiceMethod<$0.Output, $0.Empty>(
   107          'SetOutputRequest',
   108          setOutputRequest_Pre,
   109          false,
   110          false,
   111          ($core.List<$core.int> value) => $0.Output.fromBuffer(value),
   112          ($0.Empty value) => value.writeToBuffer()));
   113      $addMethod($grpc.ServiceMethod<$0.Switch, $0.Empty>(
   114          'SetSwitchRequest',
   115          setSwitchRequest_Pre,
   116          false,
   117          false,
   118          ($core.List<$core.int> value) => $0.Switch.fromBuffer(value),
   119          ($0.Empty value) => value.writeToBuffer()));
   120      $addMethod($grpc.ServiceMethod<$0.DeviceDiscovery, $0.Empty>(
   121          'SetDeviceDiscoveryRequest',
   122          setDeviceDiscoveryRequest_Pre,
   123          false,
   124          false,
   125          ($core.List<$core.int> value) => $0.DeviceDiscovery.fromBuffer(value),
   126          ($0.Empty value) => value.writeToBuffer()));
   127    }
   128  
   129    $async.Future<$0.Empty> reset_Pre(
   130        $grpc.ServiceCall call, $async.Future<$0.Empty> request) async {
   131      return reset(call, await request);
   132    }
   133  
   134    $async.Future<$0.Empty> setLocRequest_Pre(
   135        $grpc.ServiceCall call, $async.Future<$0.Loc> request) async {
   136      return setLocRequest(call, await request);
   137    }
   138  
   139    $async.Future<$0.Empty> setPowerRequest_Pre(
   140        $grpc.ServiceCall call, $async.Future<$0.PowerState> request) async {
   141      return setPowerRequest(call, await request);
   142    }
   143  
   144    $async.Future<$0.Empty> setOutputRequest_Pre(
   145        $grpc.ServiceCall call, $async.Future<$0.Output> request) async {
   146      return setOutputRequest(call, await request);
   147    }
   148  
   149    $async.Future<$0.Empty> setSwitchRequest_Pre(
   150        $grpc.ServiceCall call, $async.Future<$0.Switch> request) async {
   151      return setSwitchRequest(call, await request);
   152    }
   153  
   154    $async.Future<$0.Empty> setDeviceDiscoveryRequest_Pre(
   155        $grpc.ServiceCall call, $async.Future<$0.DeviceDiscovery> request) async {
   156      return setDeviceDiscoveryRequest(call, await request);
   157    }
   158  
   159    $async.Future<$0.Empty> reset($grpc.ServiceCall call, $0.Empty request);
   160    $async.Future<$0.Empty> setLocRequest($grpc.ServiceCall call, $0.Loc request);
   161    $async.Future<$0.Empty> setPowerRequest(
   162        $grpc.ServiceCall call, $0.PowerState request);
   163    $async.Future<$0.Empty> setOutputRequest(
   164        $grpc.ServiceCall call, $0.Output request);
   165    $async.Future<$0.Empty> setSwitchRequest(
   166        $grpc.ServiceCall call, $0.Switch request);
   167    $async.Future<$0.Empty> setDeviceDiscoveryRequest(
   168        $grpc.ServiceCall call, $0.DeviceDiscovery request);
   169  }