aboutsummaryrefslogtreecommitdiffstats
path: root/lib/generated/applauncher.pbgrpc.dart
blob: d054e8f18fd7185a40dd1cdb287efd686e04c80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
///
//  Generated code. Do not modify.
//  source: applauncher.proto
//
// @dart = 2.12
// 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

import 'dart:async' as $async;

import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'applauncher.pb.dart' as $0;
export 'applauncher.pb.dart';

class AppLauncherClient extends $grpc.Client {
  static final _$startApplication =
      $grpc.ClientMethod<$0.StartRequest, $0.StartResponse>(
          '/automotivegradelinux.AppLauncher/StartApplication',
          ($0.StartRequest value) => value.writeToBuffer(),
          ($core.List<$core.int> value) => $0.StartResponse.fromBuffer(value));
  static final _$listApplications =
      $grpc.ClientMethod<$0.ListRequest, $0.ListResponse>(
          '/automotivegradelinux.AppLauncher/ListApplications',
          ($0.ListRequest value) => value.writeToBuffer(),
          ($core.List<$core.int> value) => $0.ListResponse.fromBuffer(value));
  static final _$getStatusEvents =
      $grpc.ClientMethod<$0.StatusRequest, $0.StatusResponse>(
          '/automotivegradelinux.AppLauncher/GetStatusEvents',
          ($0.StatusRequest value) => value.writeToBuffer(),
          ($core.List<$core.int> value) => $0.StatusResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$0.StartResponse> startApplication(
      $0.StartRequest request,
      {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$startApplication, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListResponse> listApplications($0.ListRequest request,
      {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listApplications, request, options: options);
  }

  $grpc.ResponseStream<$0.StatusResponse> getStatusEvents(
      $0.StatusRequest request,
      {$grpc.CallOptions? options}) {
    return $createStreamingCall(
        _$getStatusEvents, $async.Stream.fromIterable([request]),
        options: options);
  }
}

abstract class AppLauncherServiceBase extends $grpc.Service {
  $core.String get $name => 'automotivegradelinux.AppLauncher';

  AppLauncherServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.StartRequest, $0.StartResponse>(
        'StartApplication',
        startApplication_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StartRequest.fromBuffer(value),
        ($0.StartResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListRequest, $0.ListResponse>(
        'ListApplications',
        listApplications_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListRequest.fromBuffer(value),
        ($0.ListResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StatusRequest, $0.StatusResponse>(
        'GetStatusEvents',
        getStatusEvents_Pre,
        false,
        true,
        ($core.List<$core.int> value) => $0.StatusRequest.fromBuffer(value),
        ($0.StatusResponse value) => value.writeToBuffer()));
  }

  $async.Future<$0.StartResponse> startApplication_Pre(
      $grpc.ServiceCall call, $async.Future<$0.StartRequest> request) async {
    return startApplication(call, await request);
  }

  $async.Future<$0.ListResponse> listApplications_Pre(
      $grpc.ServiceCall call, $async.Future<$0.ListRequest> request) async {
    return listApplications(call, await request);
  }

  $async.Stream<$0.StatusResponse> getStatusEvents_Pre(
      $grpc.ServiceCall call, $async.Future<$0.StatusRequest> request) async* {
    yield* getStatusEvents(call, await request);
  }

  $async.Future<$0.StartResponse> startApplication(
      $grpc.ServiceCall call, $0.StartRequest request);
  $async.Future<$0.ListResponse> listApplications(
      $grpc.ServiceCall call, $0.ListRequest request);
  $async.Stream<$0.StatusResponse> getStatusEvents(
      $grpc.ServiceCall call, $0.StatusRequest request);
}