android-emulator-webrtc 1.0.18 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +93 -204
  2. package/dist/components/emulator/emulator.d.ts +64 -0
  3. package/dist/components/emulator/emulator.js +161 -173
  4. package/dist/components/emulator/net/emulator_status.d.ts +45 -0
  5. package/dist/components/emulator/net/emulator_status.js +35 -42
  6. package/dist/components/emulator/net/logcat.js +37 -54
  7. package/dist/components/emulator/net/logger.d.ts +7 -0
  8. package/dist/components/emulator/net/logger.js +20 -0
  9. package/dist/components/emulator/net/ws_jsep_protocol_driver.d.ts +213 -0
  10. package/dist/components/emulator/net/ws_jsep_protocol_driver.js +640 -0
  11. package/dist/components/emulator/views/event_handler.d.ts +37 -0
  12. package/dist/components/emulator/views/event_handler.js +274 -260
  13. package/dist/components/emulator/views/webrtc_view.d.ts +27 -0
  14. package/dist/components/emulator/views/webrtc_view.js +42 -20
  15. package/dist/index.d.ts +8 -0
  16. package/dist/index.js +0 -7
  17. package/dist/proto/emulator_controller_pb.d.ts +1 -0
  18. package/dist/proto/emulator_controller_pb.js +146 -287
  19. package/dist/src/components/emulator/emulator.d.ts +64 -0
  20. package/dist/src/components/emulator/net/emulator_status.d.ts +45 -0
  21. package/dist/src/components/emulator/net/logger.d.ts +7 -0
  22. package/dist/src/components/emulator/net/ws_jsep_protocol_driver.d.ts +213 -0
  23. package/dist/src/components/emulator/views/event_handler.d.ts +37 -0
  24. package/dist/src/components/emulator/views/webrtc_view.d.ts +27 -0
  25. package/dist/src/index.d.ts +8 -0
  26. package/dist/src/proto/emulator_controller_pb.d.ts +1 -0
  27. package/package.json +17 -17
  28. package/proto/emulator_controller.proto +746 -181
  29. package/.vscode/launch.json +0 -21
  30. package/.vscode/settings.json +0 -3
  31. package/CONTRIBUTING.md +0 -28
  32. package/Makefile +0 -123
  33. package/android-emulator-webrtc.code-workspace +0 -7
  34. package/api_descriptor.pb +0 -0
  35. package/babel.config.js +0 -16
  36. package/cloudbuild.yaml +0 -41
  37. package/cloudbuilders/.gcloudignore +0 -1
  38. package/cloudbuilders/Dockerfile +0 -20
  39. package/cloudbuilders/README.md +0 -29
  40. package/cloudbuilders/cloudbuild.yaml +0 -19
  41. package/dist/components/emulator/net/jsep_protocol_driver.js +0 -365
  42. package/dist/components/emulator/views/simple_png_view.js +0 -110
  43. package/dist/proto/emulator_controller_grpc_web_pb.js +0 -1601
  44. package/dist/proto/emulator_web_client.js +0 -176
  45. package/dist/proto/rtc_service_grpc_web_pb.js +0 -231
  46. package/dist/proto/rtc_service_pb.js +0 -338
  47. package/emulator/index.js +0 -1
  48. package/eslint_prefix.py +0 -37
  49. package/gen_md_doc.js +0 -40
  50. package/npmrc.enc +0 -0
  51. package/proto/rtc_service.proto +0 -117
  52. package/protoc-plugin/Makefile +0 -31
  53. package/protoc-plugin/grpc_generator.cc +0 -1755
  54. package/src/components/emulator/emulator.js +0 -217
  55. package/src/components/emulator/net/emulator_status.js +0 -94
  56. package/src/components/emulator/net/jsep_protocol_driver.js +0 -364
  57. package/src/components/emulator/net/logcat.js +0 -155
  58. package/src/components/emulator/views/event_handler.js +0 -268
  59. package/src/components/emulator/views/simple_png_view.js +0 -105
  60. package/src/components/emulator/views/webrtc_view.js +0 -142
  61. package/src/index.js +0 -20
  62. package/src/proto/emulator_web_client.js +0 -140
  63. package/test/cloudbuild.yaml +0 -41
  64. package/test/emulator.test.js +0 -125
  65. package/test/event_handler.test.js +0 -91
  66. package/test/fake_events.js +0 -50
  67. package/test/jsep_protocol_driver.test.js +0 -228
  68. package/test/simple_png_view.test.js +0 -145
  69. package/test/touch_event_handler.test.js +0 -118
@@ -1,1601 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @fileoverview gRPC-Web generated client stub for android.emulation.control
5
- * @enhanceable
6
- * @public
7
- */
8
-
9
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
10
- // versions:
11
- // protoc-gen-grpc-web v1.4.2
12
- // protoc v3.12.4
13
- // source: emulator_controller.proto
14
-
15
- /* eslint-disable */
16
- // @ts-nocheck
17
-
18
- var grpc = {};
19
- grpc.web = require('grpc-web');
20
- var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
- var proto = {};
22
- proto.android = {};
23
- proto.android.emulation = {};
24
- proto.android.emulation.control = require('./emulator_controller_pb.js');
25
-
26
- /**
27
- * @param {string} hostname
28
- * @param {?Object} credentials
29
- * @param {?grpc.web.ClientOptions} options
30
- * @constructor
31
- * @struct
32
- * @final
33
- */
34
- proto.android.emulation.control.EmulatorControllerClient = function (hostname, credentials, options) {
35
- if (!options) options = {};
36
- options.format = 'text';
37
-
38
- /**
39
- * @private @const {!grpc.web.GrpcWebClientBase} The client
40
- */
41
- this.client_ = new grpc.web.GrpcWebClientBase(options);
42
-
43
- /**
44
- * @private @const {string} The hostname
45
- */
46
- this.hostname_ = hostname.replace(/\/+$/, '');
47
- };
48
-
49
- /**
50
- * @param {string} hostname
51
- * @param {?Object} credentials
52
- * @param {?grpc.web.ClientOptions} options
53
- * @constructor
54
- * @struct
55
- * @final
56
- */
57
- proto.android.emulation.control.EmulatorControllerPromiseClient = function (hostname, credentials, options) {
58
- if (!options) options = {};
59
- options.format = 'text';
60
-
61
- /**
62
- * @private @const {!grpc.web.GrpcWebClientBase} The client
63
- */
64
- this.client_ = new grpc.web.GrpcWebClientBase(options);
65
-
66
- /**
67
- * @private @const {string} The hostname
68
- */
69
- this.hostname_ = hostname.replace(/\/+$/, '');
70
- };
71
-
72
- /**
73
- * @const
74
- * @type {!grpc.web.MethodDescriptor<
75
- * !proto.android.emulation.control.SensorValue,
76
- * !proto.android.emulation.control.SensorValue>}
77
- */
78
- var methodDescriptor_EmulatorController_streamSensor = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamSensor', grpc.web.MethodType.SERVER_STREAMING, proto.android.emulation.control.SensorValue, proto.android.emulation.control.SensorValue,
79
- /**
80
- * @param {!proto.android.emulation.control.SensorValue} request
81
- * @return {!Uint8Array}
82
- */
83
- function (request) {
84
- return request.serializeBinary();
85
- }, proto.android.emulation.control.SensorValue.deserializeBinary);
86
-
87
- /**
88
- * @param {!proto.android.emulation.control.SensorValue} request The request proto
89
- * @param {?Object<string, string>=} metadata User defined
90
- * call metadata
91
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.SensorValue>}
92
- * The XHR Node Readable Stream
93
- */
94
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamSensor = function (request, metadata) {
95
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamSensor', request, metadata || {}, methodDescriptor_EmulatorController_streamSensor);
96
- };
97
-
98
- /**
99
- * @param {!proto.android.emulation.control.SensorValue} request The request proto
100
- * @param {?Object<string, string>=} metadata User defined
101
- * call metadata
102
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.SensorValue>}
103
- * The XHR Node Readable Stream
104
- */
105
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamSensor = function (request, metadata) {
106
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamSensor', request, metadata || {}, methodDescriptor_EmulatorController_streamSensor);
107
- };
108
-
109
- /**
110
- * @const
111
- * @type {!grpc.web.MethodDescriptor<
112
- * !proto.android.emulation.control.SensorValue,
113
- * !proto.android.emulation.control.SensorValue>}
114
- */
115
- var methodDescriptor_EmulatorController_getSensor = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getSensor', grpc.web.MethodType.UNARY, proto.android.emulation.control.SensorValue, proto.android.emulation.control.SensorValue,
116
- /**
117
- * @param {!proto.android.emulation.control.SensorValue} request
118
- * @return {!Uint8Array}
119
- */
120
- function (request) {
121
- return request.serializeBinary();
122
- }, proto.android.emulation.control.SensorValue.deserializeBinary);
123
-
124
- /**
125
- * @param {!proto.android.emulation.control.SensorValue} request The
126
- * request proto
127
- * @param {?Object<string, string>} metadata User defined
128
- * call metadata
129
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.SensorValue)}
130
- * callback The callback function(error, response)
131
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.SensorValue>|undefined}
132
- * The XHR Node Readable Stream
133
- */
134
- proto.android.emulation.control.EmulatorControllerClient.prototype.getSensor = function (request, metadata, callback) {
135
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getSensor', request, metadata || {}, methodDescriptor_EmulatorController_getSensor, callback);
136
- };
137
-
138
- /**
139
- * @param {!proto.android.emulation.control.SensorValue} request The
140
- * request proto
141
- * @param {?Object<string, string>=} metadata User defined
142
- * call metadata
143
- * @return {!Promise<!proto.android.emulation.control.SensorValue>}
144
- * Promise that resolves to the response
145
- */
146
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getSensor = function (request, metadata) {
147
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getSensor', request, metadata || {}, methodDescriptor_EmulatorController_getSensor);
148
- };
149
-
150
- /**
151
- * @const
152
- * @type {!grpc.web.MethodDescriptor<
153
- * !proto.android.emulation.control.SensorValue,
154
- * !proto.google.protobuf.Empty>}
155
- */
156
- var methodDescriptor_EmulatorController_setSensor = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setSensor', grpc.web.MethodType.UNARY, proto.android.emulation.control.SensorValue, google_protobuf_empty_pb.Empty,
157
- /**
158
- * @param {!proto.android.emulation.control.SensorValue} request
159
- * @return {!Uint8Array}
160
- */
161
- function (request) {
162
- return request.serializeBinary();
163
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
164
-
165
- /**
166
- * @param {!proto.android.emulation.control.SensorValue} request The
167
- * request proto
168
- * @param {?Object<string, string>} metadata User defined
169
- * call metadata
170
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
171
- * callback The callback function(error, response)
172
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
173
- * The XHR Node Readable Stream
174
- */
175
- proto.android.emulation.control.EmulatorControllerClient.prototype.setSensor = function (request, metadata, callback) {
176
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setSensor', request, metadata || {}, methodDescriptor_EmulatorController_setSensor, callback);
177
- };
178
-
179
- /**
180
- * @param {!proto.android.emulation.control.SensorValue} request The
181
- * request proto
182
- * @param {?Object<string, string>=} metadata User defined
183
- * call metadata
184
- * @return {!Promise<!proto.google.protobuf.Empty>}
185
- * Promise that resolves to the response
186
- */
187
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setSensor = function (request, metadata) {
188
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setSensor', request, metadata || {}, methodDescriptor_EmulatorController_setSensor);
189
- };
190
-
191
- /**
192
- * @const
193
- * @type {!grpc.web.MethodDescriptor<
194
- * !proto.android.emulation.control.PhysicalModelValue,
195
- * !proto.google.protobuf.Empty>}
196
- */
197
- var methodDescriptor_EmulatorController_setPhysicalModel = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setPhysicalModel', grpc.web.MethodType.UNARY, proto.android.emulation.control.PhysicalModelValue, google_protobuf_empty_pb.Empty,
198
- /**
199
- * @param {!proto.android.emulation.control.PhysicalModelValue} request
200
- * @return {!Uint8Array}
201
- */
202
- function (request) {
203
- return request.serializeBinary();
204
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
205
-
206
- /**
207
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The
208
- * request proto
209
- * @param {?Object<string, string>} metadata User defined
210
- * call metadata
211
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
212
- * callback The callback function(error, response)
213
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
214
- * The XHR Node Readable Stream
215
- */
216
- proto.android.emulation.control.EmulatorControllerClient.prototype.setPhysicalModel = function (request, metadata, callback) {
217
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_setPhysicalModel, callback);
218
- };
219
-
220
- /**
221
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The
222
- * request proto
223
- * @param {?Object<string, string>=} metadata User defined
224
- * call metadata
225
- * @return {!Promise<!proto.google.protobuf.Empty>}
226
- * Promise that resolves to the response
227
- */
228
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setPhysicalModel = function (request, metadata) {
229
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_setPhysicalModel);
230
- };
231
-
232
- /**
233
- * @const
234
- * @type {!grpc.web.MethodDescriptor<
235
- * !proto.android.emulation.control.PhysicalModelValue,
236
- * !proto.android.emulation.control.PhysicalModelValue>}
237
- */
238
- var methodDescriptor_EmulatorController_getPhysicalModel = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getPhysicalModel', grpc.web.MethodType.UNARY, proto.android.emulation.control.PhysicalModelValue, proto.android.emulation.control.PhysicalModelValue,
239
- /**
240
- * @param {!proto.android.emulation.control.PhysicalModelValue} request
241
- * @return {!Uint8Array}
242
- */
243
- function (request) {
244
- return request.serializeBinary();
245
- }, proto.android.emulation.control.PhysicalModelValue.deserializeBinary);
246
-
247
- /**
248
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The
249
- * request proto
250
- * @param {?Object<string, string>} metadata User defined
251
- * call metadata
252
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.PhysicalModelValue)}
253
- * callback The callback function(error, response)
254
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhysicalModelValue>|undefined}
255
- * The XHR Node Readable Stream
256
- */
257
- proto.android.emulation.control.EmulatorControllerClient.prototype.getPhysicalModel = function (request, metadata, callback) {
258
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_getPhysicalModel, callback);
259
- };
260
-
261
- /**
262
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The
263
- * request proto
264
- * @param {?Object<string, string>=} metadata User defined
265
- * call metadata
266
- * @return {!Promise<!proto.android.emulation.control.PhysicalModelValue>}
267
- * Promise that resolves to the response
268
- */
269
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getPhysicalModel = function (request, metadata) {
270
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_getPhysicalModel);
271
- };
272
-
273
- /**
274
- * @const
275
- * @type {!grpc.web.MethodDescriptor<
276
- * !proto.android.emulation.control.PhysicalModelValue,
277
- * !proto.android.emulation.control.PhysicalModelValue>}
278
- */
279
- var methodDescriptor_EmulatorController_streamPhysicalModel = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamPhysicalModel', grpc.web.MethodType.SERVER_STREAMING, proto.android.emulation.control.PhysicalModelValue, proto.android.emulation.control.PhysicalModelValue,
280
- /**
281
- * @param {!proto.android.emulation.control.PhysicalModelValue} request
282
- * @return {!Uint8Array}
283
- */
284
- function (request) {
285
- return request.serializeBinary();
286
- }, proto.android.emulation.control.PhysicalModelValue.deserializeBinary);
287
-
288
- /**
289
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The request proto
290
- * @param {?Object<string, string>=} metadata User defined
291
- * call metadata
292
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhysicalModelValue>}
293
- * The XHR Node Readable Stream
294
- */
295
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamPhysicalModel = function (request, metadata) {
296
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_streamPhysicalModel);
297
- };
298
-
299
- /**
300
- * @param {!proto.android.emulation.control.PhysicalModelValue} request The request proto
301
- * @param {?Object<string, string>=} metadata User defined
302
- * call metadata
303
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhysicalModelValue>}
304
- * The XHR Node Readable Stream
305
- */
306
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamPhysicalModel = function (request, metadata) {
307
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamPhysicalModel', request, metadata || {}, methodDescriptor_EmulatorController_streamPhysicalModel);
308
- };
309
-
310
- /**
311
- * @const
312
- * @type {!grpc.web.MethodDescriptor<
313
- * !proto.android.emulation.control.ClipData,
314
- * !proto.google.protobuf.Empty>}
315
- */
316
- var methodDescriptor_EmulatorController_setClipboard = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setClipboard', grpc.web.MethodType.UNARY, proto.android.emulation.control.ClipData, google_protobuf_empty_pb.Empty,
317
- /**
318
- * @param {!proto.android.emulation.control.ClipData} request
319
- * @return {!Uint8Array}
320
- */
321
- function (request) {
322
- return request.serializeBinary();
323
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
324
-
325
- /**
326
- * @param {!proto.android.emulation.control.ClipData} request The
327
- * request proto
328
- * @param {?Object<string, string>} metadata User defined
329
- * call metadata
330
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
331
- * callback The callback function(error, response)
332
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
333
- * The XHR Node Readable Stream
334
- */
335
- proto.android.emulation.control.EmulatorControllerClient.prototype.setClipboard = function (request, metadata, callback) {
336
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setClipboard', request, metadata || {}, methodDescriptor_EmulatorController_setClipboard, callback);
337
- };
338
-
339
- /**
340
- * @param {!proto.android.emulation.control.ClipData} request The
341
- * request proto
342
- * @param {?Object<string, string>=} metadata User defined
343
- * call metadata
344
- * @return {!Promise<!proto.google.protobuf.Empty>}
345
- * Promise that resolves to the response
346
- */
347
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setClipboard = function (request, metadata) {
348
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setClipboard', request, metadata || {}, methodDescriptor_EmulatorController_setClipboard);
349
- };
350
-
351
- /**
352
- * @const
353
- * @type {!grpc.web.MethodDescriptor<
354
- * !proto.google.protobuf.Empty,
355
- * !proto.android.emulation.control.ClipData>}
356
- */
357
- var methodDescriptor_EmulatorController_getClipboard = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getClipboard', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.ClipData,
358
- /**
359
- * @param {!proto.google.protobuf.Empty} request
360
- * @return {!Uint8Array}
361
- */
362
- function (request) {
363
- return request.serializeBinary();
364
- }, proto.android.emulation.control.ClipData.deserializeBinary);
365
-
366
- /**
367
- * @param {!proto.google.protobuf.Empty} request The
368
- * request proto
369
- * @param {?Object<string, string>} metadata User defined
370
- * call metadata
371
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.ClipData)}
372
- * callback The callback function(error, response)
373
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.ClipData>|undefined}
374
- * The XHR Node Readable Stream
375
- */
376
- proto.android.emulation.control.EmulatorControllerClient.prototype.getClipboard = function (request, metadata, callback) {
377
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getClipboard', request, metadata || {}, methodDescriptor_EmulatorController_getClipboard, callback);
378
- };
379
-
380
- /**
381
- * @param {!proto.google.protobuf.Empty} request The
382
- * request proto
383
- * @param {?Object<string, string>=} metadata User defined
384
- * call metadata
385
- * @return {!Promise<!proto.android.emulation.control.ClipData>}
386
- * Promise that resolves to the response
387
- */
388
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getClipboard = function (request, metadata) {
389
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getClipboard', request, metadata || {}, methodDescriptor_EmulatorController_getClipboard);
390
- };
391
-
392
- /**
393
- * @const
394
- * @type {!grpc.web.MethodDescriptor<
395
- * !proto.google.protobuf.Empty,
396
- * !proto.android.emulation.control.ClipData>}
397
- */
398
- var methodDescriptor_EmulatorController_streamClipboard = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamClipboard', grpc.web.MethodType.SERVER_STREAMING, google_protobuf_empty_pb.Empty, proto.android.emulation.control.ClipData,
399
- /**
400
- * @param {!proto.google.protobuf.Empty} request
401
- * @return {!Uint8Array}
402
- */
403
- function (request) {
404
- return request.serializeBinary();
405
- }, proto.android.emulation.control.ClipData.deserializeBinary);
406
-
407
- /**
408
- * @param {!proto.google.protobuf.Empty} request The request proto
409
- * @param {?Object<string, string>=} metadata User defined
410
- * call metadata
411
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.ClipData>}
412
- * The XHR Node Readable Stream
413
- */
414
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamClipboard = function (request, metadata) {
415
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamClipboard', request, metadata || {}, methodDescriptor_EmulatorController_streamClipboard);
416
- };
417
-
418
- /**
419
- * @param {!proto.google.protobuf.Empty} request The request proto
420
- * @param {?Object<string, string>=} metadata User defined
421
- * call metadata
422
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.ClipData>}
423
- * The XHR Node Readable Stream
424
- */
425
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamClipboard = function (request, metadata) {
426
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamClipboard', request, metadata || {}, methodDescriptor_EmulatorController_streamClipboard);
427
- };
428
-
429
- /**
430
- * @const
431
- * @type {!grpc.web.MethodDescriptor<
432
- * !proto.android.emulation.control.BatteryState,
433
- * !proto.google.protobuf.Empty>}
434
- */
435
- var methodDescriptor_EmulatorController_setBattery = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setBattery', grpc.web.MethodType.UNARY, proto.android.emulation.control.BatteryState, google_protobuf_empty_pb.Empty,
436
- /**
437
- * @param {!proto.android.emulation.control.BatteryState} request
438
- * @return {!Uint8Array}
439
- */
440
- function (request) {
441
- return request.serializeBinary();
442
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
443
-
444
- /**
445
- * @param {!proto.android.emulation.control.BatteryState} request The
446
- * request proto
447
- * @param {?Object<string, string>} metadata User defined
448
- * call metadata
449
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
450
- * callback The callback function(error, response)
451
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
452
- * The XHR Node Readable Stream
453
- */
454
- proto.android.emulation.control.EmulatorControllerClient.prototype.setBattery = function (request, metadata, callback) {
455
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setBattery', request, metadata || {}, methodDescriptor_EmulatorController_setBattery, callback);
456
- };
457
-
458
- /**
459
- * @param {!proto.android.emulation.control.BatteryState} request The
460
- * request proto
461
- * @param {?Object<string, string>=} metadata User defined
462
- * call metadata
463
- * @return {!Promise<!proto.google.protobuf.Empty>}
464
- * Promise that resolves to the response
465
- */
466
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setBattery = function (request, metadata) {
467
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setBattery', request, metadata || {}, methodDescriptor_EmulatorController_setBattery);
468
- };
469
-
470
- /**
471
- * @const
472
- * @type {!grpc.web.MethodDescriptor<
473
- * !proto.google.protobuf.Empty,
474
- * !proto.android.emulation.control.BatteryState>}
475
- */
476
- var methodDescriptor_EmulatorController_getBattery = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getBattery', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.BatteryState,
477
- /**
478
- * @param {!proto.google.protobuf.Empty} request
479
- * @return {!Uint8Array}
480
- */
481
- function (request) {
482
- return request.serializeBinary();
483
- }, proto.android.emulation.control.BatteryState.deserializeBinary);
484
-
485
- /**
486
- * @param {!proto.google.protobuf.Empty} request The
487
- * request proto
488
- * @param {?Object<string, string>} metadata User defined
489
- * call metadata
490
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.BatteryState)}
491
- * callback The callback function(error, response)
492
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.BatteryState>|undefined}
493
- * The XHR Node Readable Stream
494
- */
495
- proto.android.emulation.control.EmulatorControllerClient.prototype.getBattery = function (request, metadata, callback) {
496
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getBattery', request, metadata || {}, methodDescriptor_EmulatorController_getBattery, callback);
497
- };
498
-
499
- /**
500
- * @param {!proto.google.protobuf.Empty} request The
501
- * request proto
502
- * @param {?Object<string, string>=} metadata User defined
503
- * call metadata
504
- * @return {!Promise<!proto.android.emulation.control.BatteryState>}
505
- * Promise that resolves to the response
506
- */
507
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getBattery = function (request, metadata) {
508
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getBattery', request, metadata || {}, methodDescriptor_EmulatorController_getBattery);
509
- };
510
-
511
- /**
512
- * @const
513
- * @type {!grpc.web.MethodDescriptor<
514
- * !proto.android.emulation.control.GpsState,
515
- * !proto.google.protobuf.Empty>}
516
- */
517
- var methodDescriptor_EmulatorController_setGps = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setGps', grpc.web.MethodType.UNARY, proto.android.emulation.control.GpsState, google_protobuf_empty_pb.Empty,
518
- /**
519
- * @param {!proto.android.emulation.control.GpsState} request
520
- * @return {!Uint8Array}
521
- */
522
- function (request) {
523
- return request.serializeBinary();
524
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
525
-
526
- /**
527
- * @param {!proto.android.emulation.control.GpsState} request The
528
- * request proto
529
- * @param {?Object<string, string>} metadata User defined
530
- * call metadata
531
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
532
- * callback The callback function(error, response)
533
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
534
- * The XHR Node Readable Stream
535
- */
536
- proto.android.emulation.control.EmulatorControllerClient.prototype.setGps = function (request, metadata, callback) {
537
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setGps', request, metadata || {}, methodDescriptor_EmulatorController_setGps, callback);
538
- };
539
-
540
- /**
541
- * @param {!proto.android.emulation.control.GpsState} request The
542
- * request proto
543
- * @param {?Object<string, string>=} metadata User defined
544
- * call metadata
545
- * @return {!Promise<!proto.google.protobuf.Empty>}
546
- * Promise that resolves to the response
547
- */
548
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setGps = function (request, metadata) {
549
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setGps', request, metadata || {}, methodDescriptor_EmulatorController_setGps);
550
- };
551
-
552
- /**
553
- * @const
554
- * @type {!grpc.web.MethodDescriptor<
555
- * !proto.google.protobuf.Empty,
556
- * !proto.android.emulation.control.GpsState>}
557
- */
558
- var methodDescriptor_EmulatorController_getGps = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getGps', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.GpsState,
559
- /**
560
- * @param {!proto.google.protobuf.Empty} request
561
- * @return {!Uint8Array}
562
- */
563
- function (request) {
564
- return request.serializeBinary();
565
- }, proto.android.emulation.control.GpsState.deserializeBinary);
566
-
567
- /**
568
- * @param {!proto.google.protobuf.Empty} request The
569
- * request proto
570
- * @param {?Object<string, string>} metadata User defined
571
- * call metadata
572
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.GpsState)}
573
- * callback The callback function(error, response)
574
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.GpsState>|undefined}
575
- * The XHR Node Readable Stream
576
- */
577
- proto.android.emulation.control.EmulatorControllerClient.prototype.getGps = function (request, metadata, callback) {
578
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getGps', request, metadata || {}, methodDescriptor_EmulatorController_getGps, callback);
579
- };
580
-
581
- /**
582
- * @param {!proto.google.protobuf.Empty} request The
583
- * request proto
584
- * @param {?Object<string, string>=} metadata User defined
585
- * call metadata
586
- * @return {!Promise<!proto.android.emulation.control.GpsState>}
587
- * Promise that resolves to the response
588
- */
589
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getGps = function (request, metadata) {
590
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getGps', request, metadata || {}, methodDescriptor_EmulatorController_getGps);
591
- };
592
-
593
- /**
594
- * @const
595
- * @type {!grpc.web.MethodDescriptor<
596
- * !proto.android.emulation.control.Fingerprint,
597
- * !proto.google.protobuf.Empty>}
598
- */
599
- var methodDescriptor_EmulatorController_sendFingerprint = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendFingerprint', grpc.web.MethodType.UNARY, proto.android.emulation.control.Fingerprint, google_protobuf_empty_pb.Empty,
600
- /**
601
- * @param {!proto.android.emulation.control.Fingerprint} request
602
- * @return {!Uint8Array}
603
- */
604
- function (request) {
605
- return request.serializeBinary();
606
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
607
-
608
- /**
609
- * @param {!proto.android.emulation.control.Fingerprint} request The
610
- * request proto
611
- * @param {?Object<string, string>} metadata User defined
612
- * call metadata
613
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
614
- * callback The callback function(error, response)
615
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
616
- * The XHR Node Readable Stream
617
- */
618
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendFingerprint = function (request, metadata, callback) {
619
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendFingerprint', request, metadata || {}, methodDescriptor_EmulatorController_sendFingerprint, callback);
620
- };
621
-
622
- /**
623
- * @param {!proto.android.emulation.control.Fingerprint} request The
624
- * request proto
625
- * @param {?Object<string, string>=} metadata User defined
626
- * call metadata
627
- * @return {!Promise<!proto.google.protobuf.Empty>}
628
- * Promise that resolves to the response
629
- */
630
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendFingerprint = function (request, metadata) {
631
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendFingerprint', request, metadata || {}, methodDescriptor_EmulatorController_sendFingerprint);
632
- };
633
-
634
- /**
635
- * @const
636
- * @type {!grpc.web.MethodDescriptor<
637
- * !proto.android.emulation.control.KeyboardEvent,
638
- * !proto.google.protobuf.Empty>}
639
- */
640
- var methodDescriptor_EmulatorController_sendKey = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendKey', grpc.web.MethodType.UNARY, proto.android.emulation.control.KeyboardEvent, google_protobuf_empty_pb.Empty,
641
- /**
642
- * @param {!proto.android.emulation.control.KeyboardEvent} request
643
- * @return {!Uint8Array}
644
- */
645
- function (request) {
646
- return request.serializeBinary();
647
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
648
-
649
- /**
650
- * @param {!proto.android.emulation.control.KeyboardEvent} request The
651
- * request proto
652
- * @param {?Object<string, string>} metadata User defined
653
- * call metadata
654
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
655
- * callback The callback function(error, response)
656
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
657
- * The XHR Node Readable Stream
658
- */
659
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendKey = function (request, metadata, callback) {
660
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendKey', request, metadata || {}, methodDescriptor_EmulatorController_sendKey, callback);
661
- };
662
-
663
- /**
664
- * @param {!proto.android.emulation.control.KeyboardEvent} request The
665
- * request proto
666
- * @param {?Object<string, string>=} metadata User defined
667
- * call metadata
668
- * @return {!Promise<!proto.google.protobuf.Empty>}
669
- * Promise that resolves to the response
670
- */
671
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendKey = function (request, metadata) {
672
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendKey', request, metadata || {}, methodDescriptor_EmulatorController_sendKey);
673
- };
674
-
675
- /**
676
- * @const
677
- * @type {!grpc.web.MethodDescriptor<
678
- * !proto.android.emulation.control.TouchEvent,
679
- * !proto.google.protobuf.Empty>}
680
- */
681
- var methodDescriptor_EmulatorController_sendTouch = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendTouch', grpc.web.MethodType.UNARY, proto.android.emulation.control.TouchEvent, google_protobuf_empty_pb.Empty,
682
- /**
683
- * @param {!proto.android.emulation.control.TouchEvent} request
684
- * @return {!Uint8Array}
685
- */
686
- function (request) {
687
- return request.serializeBinary();
688
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
689
-
690
- /**
691
- * @param {!proto.android.emulation.control.TouchEvent} request The
692
- * request proto
693
- * @param {?Object<string, string>} metadata User defined
694
- * call metadata
695
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
696
- * callback The callback function(error, response)
697
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
698
- * The XHR Node Readable Stream
699
- */
700
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendTouch = function (request, metadata, callback) {
701
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendTouch', request, metadata || {}, methodDescriptor_EmulatorController_sendTouch, callback);
702
- };
703
-
704
- /**
705
- * @param {!proto.android.emulation.control.TouchEvent} request The
706
- * request proto
707
- * @param {?Object<string, string>=} metadata User defined
708
- * call metadata
709
- * @return {!Promise<!proto.google.protobuf.Empty>}
710
- * Promise that resolves to the response
711
- */
712
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendTouch = function (request, metadata) {
713
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendTouch', request, metadata || {}, methodDescriptor_EmulatorController_sendTouch);
714
- };
715
-
716
- /**
717
- * @const
718
- * @type {!grpc.web.MethodDescriptor<
719
- * !proto.android.emulation.control.MouseEvent,
720
- * !proto.google.protobuf.Empty>}
721
- */
722
- var methodDescriptor_EmulatorController_sendMouse = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendMouse', grpc.web.MethodType.UNARY, proto.android.emulation.control.MouseEvent, google_protobuf_empty_pb.Empty,
723
- /**
724
- * @param {!proto.android.emulation.control.MouseEvent} request
725
- * @return {!Uint8Array}
726
- */
727
- function (request) {
728
- return request.serializeBinary();
729
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
730
-
731
- /**
732
- * @param {!proto.android.emulation.control.MouseEvent} request The
733
- * request proto
734
- * @param {?Object<string, string>} metadata User defined
735
- * call metadata
736
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
737
- * callback The callback function(error, response)
738
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
739
- * The XHR Node Readable Stream
740
- */
741
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendMouse = function (request, metadata, callback) {
742
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendMouse', request, metadata || {}, methodDescriptor_EmulatorController_sendMouse, callback);
743
- };
744
-
745
- /**
746
- * @param {!proto.android.emulation.control.MouseEvent} request The
747
- * request proto
748
- * @param {?Object<string, string>=} metadata User defined
749
- * call metadata
750
- * @return {!Promise<!proto.google.protobuf.Empty>}
751
- * Promise that resolves to the response
752
- */
753
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendMouse = function (request, metadata) {
754
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendMouse', request, metadata || {}, methodDescriptor_EmulatorController_sendMouse);
755
- };
756
-
757
- /**
758
- * @const
759
- * @type {!grpc.web.MethodDescriptor<
760
- * !proto.android.emulation.control.PhoneCall,
761
- * !proto.android.emulation.control.PhoneResponse>}
762
- */
763
- var methodDescriptor_EmulatorController_sendPhone = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendPhone', grpc.web.MethodType.UNARY, proto.android.emulation.control.PhoneCall, proto.android.emulation.control.PhoneResponse,
764
- /**
765
- * @param {!proto.android.emulation.control.PhoneCall} request
766
- * @return {!Uint8Array}
767
- */
768
- function (request) {
769
- return request.serializeBinary();
770
- }, proto.android.emulation.control.PhoneResponse.deserializeBinary);
771
-
772
- /**
773
- * @param {!proto.android.emulation.control.PhoneCall} request The
774
- * request proto
775
- * @param {?Object<string, string>} metadata User defined
776
- * call metadata
777
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.PhoneResponse)}
778
- * callback The callback function(error, response)
779
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhoneResponse>|undefined}
780
- * The XHR Node Readable Stream
781
- */
782
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendPhone = function (request, metadata, callback) {
783
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendPhone', request, metadata || {}, methodDescriptor_EmulatorController_sendPhone, callback);
784
- };
785
-
786
- /**
787
- * @param {!proto.android.emulation.control.PhoneCall} request The
788
- * request proto
789
- * @param {?Object<string, string>=} metadata User defined
790
- * call metadata
791
- * @return {!Promise<!proto.android.emulation.control.PhoneResponse>}
792
- * Promise that resolves to the response
793
- */
794
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendPhone = function (request, metadata) {
795
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendPhone', request, metadata || {}, methodDescriptor_EmulatorController_sendPhone);
796
- };
797
-
798
- /**
799
- * @const
800
- * @type {!grpc.web.MethodDescriptor<
801
- * !proto.android.emulation.control.SmsMessage,
802
- * !proto.android.emulation.control.PhoneResponse>}
803
- */
804
- var methodDescriptor_EmulatorController_sendSms = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/sendSms', grpc.web.MethodType.UNARY, proto.android.emulation.control.SmsMessage, proto.android.emulation.control.PhoneResponse,
805
- /**
806
- * @param {!proto.android.emulation.control.SmsMessage} request
807
- * @return {!Uint8Array}
808
- */
809
- function (request) {
810
- return request.serializeBinary();
811
- }, proto.android.emulation.control.PhoneResponse.deserializeBinary);
812
-
813
- /**
814
- * @param {!proto.android.emulation.control.SmsMessage} request The
815
- * request proto
816
- * @param {?Object<string, string>} metadata User defined
817
- * call metadata
818
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.PhoneResponse)}
819
- * callback The callback function(error, response)
820
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhoneResponse>|undefined}
821
- * The XHR Node Readable Stream
822
- */
823
- proto.android.emulation.control.EmulatorControllerClient.prototype.sendSms = function (request, metadata, callback) {
824
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendSms', request, metadata || {}, methodDescriptor_EmulatorController_sendSms, callback);
825
- };
826
-
827
- /**
828
- * @param {!proto.android.emulation.control.SmsMessage} request The
829
- * request proto
830
- * @param {?Object<string, string>=} metadata User defined
831
- * call metadata
832
- * @return {!Promise<!proto.android.emulation.control.PhoneResponse>}
833
- * Promise that resolves to the response
834
- */
835
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.sendSms = function (request, metadata) {
836
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/sendSms', request, metadata || {}, methodDescriptor_EmulatorController_sendSms);
837
- };
838
-
839
- /**
840
- * @const
841
- * @type {!grpc.web.MethodDescriptor<
842
- * !proto.android.emulation.control.PhoneNumber,
843
- * !proto.android.emulation.control.PhoneResponse>}
844
- */
845
- var methodDescriptor_EmulatorController_setPhoneNumber = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setPhoneNumber', grpc.web.MethodType.UNARY, proto.android.emulation.control.PhoneNumber, proto.android.emulation.control.PhoneResponse,
846
- /**
847
- * @param {!proto.android.emulation.control.PhoneNumber} request
848
- * @return {!Uint8Array}
849
- */
850
- function (request) {
851
- return request.serializeBinary();
852
- }, proto.android.emulation.control.PhoneResponse.deserializeBinary);
853
-
854
- /**
855
- * @param {!proto.android.emulation.control.PhoneNumber} request The
856
- * request proto
857
- * @param {?Object<string, string>} metadata User defined
858
- * call metadata
859
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.PhoneResponse)}
860
- * callback The callback function(error, response)
861
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.PhoneResponse>|undefined}
862
- * The XHR Node Readable Stream
863
- */
864
- proto.android.emulation.control.EmulatorControllerClient.prototype.setPhoneNumber = function (request, metadata, callback) {
865
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPhoneNumber', request, metadata || {}, methodDescriptor_EmulatorController_setPhoneNumber, callback);
866
- };
867
-
868
- /**
869
- * @param {!proto.android.emulation.control.PhoneNumber} request The
870
- * request proto
871
- * @param {?Object<string, string>=} metadata User defined
872
- * call metadata
873
- * @return {!Promise<!proto.android.emulation.control.PhoneResponse>}
874
- * Promise that resolves to the response
875
- */
876
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setPhoneNumber = function (request, metadata) {
877
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPhoneNumber', request, metadata || {}, methodDescriptor_EmulatorController_setPhoneNumber);
878
- };
879
-
880
- /**
881
- * @const
882
- * @type {!grpc.web.MethodDescriptor<
883
- * !proto.google.protobuf.Empty,
884
- * !proto.android.emulation.control.EmulatorStatus>}
885
- */
886
- var methodDescriptor_EmulatorController_getStatus = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getStatus', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.EmulatorStatus,
887
- /**
888
- * @param {!proto.google.protobuf.Empty} request
889
- * @return {!Uint8Array}
890
- */
891
- function (request) {
892
- return request.serializeBinary();
893
- }, proto.android.emulation.control.EmulatorStatus.deserializeBinary);
894
-
895
- /**
896
- * @param {!proto.google.protobuf.Empty} request The
897
- * request proto
898
- * @param {?Object<string, string>} metadata User defined
899
- * call metadata
900
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.EmulatorStatus)}
901
- * callback The callback function(error, response)
902
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.EmulatorStatus>|undefined}
903
- * The XHR Node Readable Stream
904
- */
905
- proto.android.emulation.control.EmulatorControllerClient.prototype.getStatus = function (request, metadata, callback) {
906
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getStatus', request, metadata || {}, methodDescriptor_EmulatorController_getStatus, callback);
907
- };
908
-
909
- /**
910
- * @param {!proto.google.protobuf.Empty} request The
911
- * request proto
912
- * @param {?Object<string, string>=} metadata User defined
913
- * call metadata
914
- * @return {!Promise<!proto.android.emulation.control.EmulatorStatus>}
915
- * Promise that resolves to the response
916
- */
917
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getStatus = function (request, metadata) {
918
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getStatus', request, metadata || {}, methodDescriptor_EmulatorController_getStatus);
919
- };
920
-
921
- /**
922
- * @const
923
- * @type {!grpc.web.MethodDescriptor<
924
- * !proto.android.emulation.control.ImageFormat,
925
- * !proto.android.emulation.control.Image>}
926
- */
927
- var methodDescriptor_EmulatorController_getScreenshot = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getScreenshot', grpc.web.MethodType.UNARY, proto.android.emulation.control.ImageFormat, proto.android.emulation.control.Image,
928
- /**
929
- * @param {!proto.android.emulation.control.ImageFormat} request
930
- * @return {!Uint8Array}
931
- */
932
- function (request) {
933
- return request.serializeBinary();
934
- }, proto.android.emulation.control.Image.deserializeBinary);
935
-
936
- /**
937
- * @param {!proto.android.emulation.control.ImageFormat} request The
938
- * request proto
939
- * @param {?Object<string, string>} metadata User defined
940
- * call metadata
941
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.Image)}
942
- * callback The callback function(error, response)
943
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.Image>|undefined}
944
- * The XHR Node Readable Stream
945
- */
946
- proto.android.emulation.control.EmulatorControllerClient.prototype.getScreenshot = function (request, metadata, callback) {
947
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getScreenshot', request, metadata || {}, methodDescriptor_EmulatorController_getScreenshot, callback);
948
- };
949
-
950
- /**
951
- * @param {!proto.android.emulation.control.ImageFormat} request The
952
- * request proto
953
- * @param {?Object<string, string>=} metadata User defined
954
- * call metadata
955
- * @return {!Promise<!proto.android.emulation.control.Image>}
956
- * Promise that resolves to the response
957
- */
958
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getScreenshot = function (request, metadata) {
959
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getScreenshot', request, metadata || {}, methodDescriptor_EmulatorController_getScreenshot);
960
- };
961
-
962
- /**
963
- * @const
964
- * @type {!grpc.web.MethodDescriptor<
965
- * !proto.android.emulation.control.ImageFormat,
966
- * !proto.android.emulation.control.Image>}
967
- */
968
- var methodDescriptor_EmulatorController_streamScreenshot = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamScreenshot', grpc.web.MethodType.SERVER_STREAMING, proto.android.emulation.control.ImageFormat, proto.android.emulation.control.Image,
969
- /**
970
- * @param {!proto.android.emulation.control.ImageFormat} request
971
- * @return {!Uint8Array}
972
- */
973
- function (request) {
974
- return request.serializeBinary();
975
- }, proto.android.emulation.control.Image.deserializeBinary);
976
-
977
- /**
978
- * @param {!proto.android.emulation.control.ImageFormat} request The request proto
979
- * @param {?Object<string, string>=} metadata User defined
980
- * call metadata
981
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.Image>}
982
- * The XHR Node Readable Stream
983
- */
984
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamScreenshot = function (request, metadata) {
985
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamScreenshot', request, metadata || {}, methodDescriptor_EmulatorController_streamScreenshot);
986
- };
987
-
988
- /**
989
- * @param {!proto.android.emulation.control.ImageFormat} request The request proto
990
- * @param {?Object<string, string>=} metadata User defined
991
- * call metadata
992
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.Image>}
993
- * The XHR Node Readable Stream
994
- */
995
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamScreenshot = function (request, metadata) {
996
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamScreenshot', request, metadata || {}, methodDescriptor_EmulatorController_streamScreenshot);
997
- };
998
-
999
- /**
1000
- * @const
1001
- * @type {!grpc.web.MethodDescriptor<
1002
- * !proto.android.emulation.control.AudioFormat,
1003
- * !proto.android.emulation.control.AudioPacket>}
1004
- */
1005
- var methodDescriptor_EmulatorController_streamAudio = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamAudio', grpc.web.MethodType.SERVER_STREAMING, proto.android.emulation.control.AudioFormat, proto.android.emulation.control.AudioPacket,
1006
- /**
1007
- * @param {!proto.android.emulation.control.AudioFormat} request
1008
- * @return {!Uint8Array}
1009
- */
1010
- function (request) {
1011
- return request.serializeBinary();
1012
- }, proto.android.emulation.control.AudioPacket.deserializeBinary);
1013
-
1014
- /**
1015
- * @param {!proto.android.emulation.control.AudioFormat} request The request proto
1016
- * @param {?Object<string, string>=} metadata User defined
1017
- * call metadata
1018
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.AudioPacket>}
1019
- * The XHR Node Readable Stream
1020
- */
1021
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamAudio = function (request, metadata) {
1022
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamAudio', request, metadata || {}, methodDescriptor_EmulatorController_streamAudio);
1023
- };
1024
-
1025
- /**
1026
- * @param {!proto.android.emulation.control.AudioFormat} request The request proto
1027
- * @param {?Object<string, string>=} metadata User defined
1028
- * call metadata
1029
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.AudioPacket>}
1030
- * The XHR Node Readable Stream
1031
- */
1032
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamAudio = function (request, metadata) {
1033
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamAudio', request, metadata || {}, methodDescriptor_EmulatorController_streamAudio);
1034
- };
1035
-
1036
- /**
1037
- * @const
1038
- * @type {!grpc.web.MethodDescriptor<
1039
- * !proto.android.emulation.control.LogMessage,
1040
- * !proto.android.emulation.control.LogMessage>}
1041
- */
1042
- var methodDescriptor_EmulatorController_getLogcat = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getLogcat', grpc.web.MethodType.UNARY, proto.android.emulation.control.LogMessage, proto.android.emulation.control.LogMessage,
1043
- /**
1044
- * @param {!proto.android.emulation.control.LogMessage} request
1045
- * @return {!Uint8Array}
1046
- */
1047
- function (request) {
1048
- return request.serializeBinary();
1049
- }, proto.android.emulation.control.LogMessage.deserializeBinary);
1050
-
1051
- /**
1052
- * @param {!proto.android.emulation.control.LogMessage} request The
1053
- * request proto
1054
- * @param {?Object<string, string>} metadata User defined
1055
- * call metadata
1056
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.LogMessage)}
1057
- * callback The callback function(error, response)
1058
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.LogMessage>|undefined}
1059
- * The XHR Node Readable Stream
1060
- */
1061
- proto.android.emulation.control.EmulatorControllerClient.prototype.getLogcat = function (request, metadata, callback) {
1062
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getLogcat', request, metadata || {}, methodDescriptor_EmulatorController_getLogcat, callback);
1063
- };
1064
-
1065
- /**
1066
- * @param {!proto.android.emulation.control.LogMessage} request The
1067
- * request proto
1068
- * @param {?Object<string, string>=} metadata User defined
1069
- * call metadata
1070
- * @return {!Promise<!proto.android.emulation.control.LogMessage>}
1071
- * Promise that resolves to the response
1072
- */
1073
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getLogcat = function (request, metadata) {
1074
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getLogcat', request, metadata || {}, methodDescriptor_EmulatorController_getLogcat);
1075
- };
1076
-
1077
- /**
1078
- * @const
1079
- * @type {!grpc.web.MethodDescriptor<
1080
- * !proto.android.emulation.control.LogMessage,
1081
- * !proto.android.emulation.control.LogMessage>}
1082
- */
1083
- var methodDescriptor_EmulatorController_streamLogcat = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamLogcat', grpc.web.MethodType.SERVER_STREAMING, proto.android.emulation.control.LogMessage, proto.android.emulation.control.LogMessage,
1084
- /**
1085
- * @param {!proto.android.emulation.control.LogMessage} request
1086
- * @return {!Uint8Array}
1087
- */
1088
- function (request) {
1089
- return request.serializeBinary();
1090
- }, proto.android.emulation.control.LogMessage.deserializeBinary);
1091
-
1092
- /**
1093
- * @param {!proto.android.emulation.control.LogMessage} request The request proto
1094
- * @param {?Object<string, string>=} metadata User defined
1095
- * call metadata
1096
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.LogMessage>}
1097
- * The XHR Node Readable Stream
1098
- */
1099
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamLogcat = function (request, metadata) {
1100
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamLogcat', request, metadata || {}, methodDescriptor_EmulatorController_streamLogcat);
1101
- };
1102
-
1103
- /**
1104
- * @param {!proto.android.emulation.control.LogMessage} request The request proto
1105
- * @param {?Object<string, string>=} metadata User defined
1106
- * call metadata
1107
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.LogMessage>}
1108
- * The XHR Node Readable Stream
1109
- */
1110
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamLogcat = function (request, metadata) {
1111
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamLogcat', request, metadata || {}, methodDescriptor_EmulatorController_streamLogcat);
1112
- };
1113
-
1114
- /**
1115
- * @const
1116
- * @type {!grpc.web.MethodDescriptor<
1117
- * !proto.android.emulation.control.VmRunState,
1118
- * !proto.google.protobuf.Empty>}
1119
- */
1120
- var methodDescriptor_EmulatorController_setVmState = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setVmState', grpc.web.MethodType.UNARY, proto.android.emulation.control.VmRunState, google_protobuf_empty_pb.Empty,
1121
- /**
1122
- * @param {!proto.android.emulation.control.VmRunState} request
1123
- * @return {!Uint8Array}
1124
- */
1125
- function (request) {
1126
- return request.serializeBinary();
1127
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1128
-
1129
- /**
1130
- * @param {!proto.android.emulation.control.VmRunState} request The
1131
- * request proto
1132
- * @param {?Object<string, string>} metadata User defined
1133
- * call metadata
1134
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1135
- * callback The callback function(error, response)
1136
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1137
- * The XHR Node Readable Stream
1138
- */
1139
- proto.android.emulation.control.EmulatorControllerClient.prototype.setVmState = function (request, metadata, callback) {
1140
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setVmState', request, metadata || {}, methodDescriptor_EmulatorController_setVmState, callback);
1141
- };
1142
-
1143
- /**
1144
- * @param {!proto.android.emulation.control.VmRunState} request The
1145
- * request proto
1146
- * @param {?Object<string, string>=} metadata User defined
1147
- * call metadata
1148
- * @return {!Promise<!proto.google.protobuf.Empty>}
1149
- * Promise that resolves to the response
1150
- */
1151
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setVmState = function (request, metadata) {
1152
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setVmState', request, metadata || {}, methodDescriptor_EmulatorController_setVmState);
1153
- };
1154
-
1155
- /**
1156
- * @const
1157
- * @type {!grpc.web.MethodDescriptor<
1158
- * !proto.google.protobuf.Empty,
1159
- * !proto.android.emulation.control.VmRunState>}
1160
- */
1161
- var methodDescriptor_EmulatorController_getVmState = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getVmState', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.VmRunState,
1162
- /**
1163
- * @param {!proto.google.protobuf.Empty} request
1164
- * @return {!Uint8Array}
1165
- */
1166
- function (request) {
1167
- return request.serializeBinary();
1168
- }, proto.android.emulation.control.VmRunState.deserializeBinary);
1169
-
1170
- /**
1171
- * @param {!proto.google.protobuf.Empty} request The
1172
- * request proto
1173
- * @param {?Object<string, string>} metadata User defined
1174
- * call metadata
1175
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.VmRunState)}
1176
- * callback The callback function(error, response)
1177
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.VmRunState>|undefined}
1178
- * The XHR Node Readable Stream
1179
- */
1180
- proto.android.emulation.control.EmulatorControllerClient.prototype.getVmState = function (request, metadata, callback) {
1181
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getVmState', request, metadata || {}, methodDescriptor_EmulatorController_getVmState, callback);
1182
- };
1183
-
1184
- /**
1185
- * @param {!proto.google.protobuf.Empty} request The
1186
- * request proto
1187
- * @param {?Object<string, string>=} metadata User defined
1188
- * call metadata
1189
- * @return {!Promise<!proto.android.emulation.control.VmRunState>}
1190
- * Promise that resolves to the response
1191
- */
1192
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getVmState = function (request, metadata) {
1193
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getVmState', request, metadata || {}, methodDescriptor_EmulatorController_getVmState);
1194
- };
1195
-
1196
- /**
1197
- * @const
1198
- * @type {!grpc.web.MethodDescriptor<
1199
- * !proto.android.emulation.control.DisplayConfigurations,
1200
- * !proto.android.emulation.control.DisplayConfigurations>}
1201
- */
1202
- var methodDescriptor_EmulatorController_setDisplayConfigurations = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setDisplayConfigurations', grpc.web.MethodType.UNARY, proto.android.emulation.control.DisplayConfigurations, proto.android.emulation.control.DisplayConfigurations,
1203
- /**
1204
- * @param {!proto.android.emulation.control.DisplayConfigurations} request
1205
- * @return {!Uint8Array}
1206
- */
1207
- function (request) {
1208
- return request.serializeBinary();
1209
- }, proto.android.emulation.control.DisplayConfigurations.deserializeBinary);
1210
-
1211
- /**
1212
- * @param {!proto.android.emulation.control.DisplayConfigurations} request The
1213
- * request proto
1214
- * @param {?Object<string, string>} metadata User defined
1215
- * call metadata
1216
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.DisplayConfigurations)}
1217
- * callback The callback function(error, response)
1218
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.DisplayConfigurations>|undefined}
1219
- * The XHR Node Readable Stream
1220
- */
1221
- proto.android.emulation.control.EmulatorControllerClient.prototype.setDisplayConfigurations = function (request, metadata, callback) {
1222
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setDisplayConfigurations', request, metadata || {}, methodDescriptor_EmulatorController_setDisplayConfigurations, callback);
1223
- };
1224
-
1225
- /**
1226
- * @param {!proto.android.emulation.control.DisplayConfigurations} request The
1227
- * request proto
1228
- * @param {?Object<string, string>=} metadata User defined
1229
- * call metadata
1230
- * @return {!Promise<!proto.android.emulation.control.DisplayConfigurations>}
1231
- * Promise that resolves to the response
1232
- */
1233
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setDisplayConfigurations = function (request, metadata) {
1234
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setDisplayConfigurations', request, metadata || {}, methodDescriptor_EmulatorController_setDisplayConfigurations);
1235
- };
1236
-
1237
- /**
1238
- * @const
1239
- * @type {!grpc.web.MethodDescriptor<
1240
- * !proto.google.protobuf.Empty,
1241
- * !proto.android.emulation.control.DisplayConfigurations>}
1242
- */
1243
- var methodDescriptor_EmulatorController_getDisplayConfigurations = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getDisplayConfigurations', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.DisplayConfigurations,
1244
- /**
1245
- * @param {!proto.google.protobuf.Empty} request
1246
- * @return {!Uint8Array}
1247
- */
1248
- function (request) {
1249
- return request.serializeBinary();
1250
- }, proto.android.emulation.control.DisplayConfigurations.deserializeBinary);
1251
-
1252
- /**
1253
- * @param {!proto.google.protobuf.Empty} request The
1254
- * request proto
1255
- * @param {?Object<string, string>} metadata User defined
1256
- * call metadata
1257
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.DisplayConfigurations)}
1258
- * callback The callback function(error, response)
1259
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.DisplayConfigurations>|undefined}
1260
- * The XHR Node Readable Stream
1261
- */
1262
- proto.android.emulation.control.EmulatorControllerClient.prototype.getDisplayConfigurations = function (request, metadata, callback) {
1263
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getDisplayConfigurations', request, metadata || {}, methodDescriptor_EmulatorController_getDisplayConfigurations, callback);
1264
- };
1265
-
1266
- /**
1267
- * @param {!proto.google.protobuf.Empty} request The
1268
- * request proto
1269
- * @param {?Object<string, string>=} metadata User defined
1270
- * call metadata
1271
- * @return {!Promise<!proto.android.emulation.control.DisplayConfigurations>}
1272
- * Promise that resolves to the response
1273
- */
1274
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getDisplayConfigurations = function (request, metadata) {
1275
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getDisplayConfigurations', request, metadata || {}, methodDescriptor_EmulatorController_getDisplayConfigurations);
1276
- };
1277
-
1278
- /**
1279
- * @const
1280
- * @type {!grpc.web.MethodDescriptor<
1281
- * !proto.google.protobuf.Empty,
1282
- * !proto.android.emulation.control.Notification>}
1283
- */
1284
- var methodDescriptor_EmulatorController_streamNotification = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/streamNotification', grpc.web.MethodType.SERVER_STREAMING, google_protobuf_empty_pb.Empty, proto.android.emulation.control.Notification,
1285
- /**
1286
- * @param {!proto.google.protobuf.Empty} request
1287
- * @return {!Uint8Array}
1288
- */
1289
- function (request) {
1290
- return request.serializeBinary();
1291
- }, proto.android.emulation.control.Notification.deserializeBinary);
1292
-
1293
- /**
1294
- * @param {!proto.google.protobuf.Empty} request The request proto
1295
- * @param {?Object<string, string>=} metadata User defined
1296
- * call metadata
1297
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.Notification>}
1298
- * The XHR Node Readable Stream
1299
- */
1300
- proto.android.emulation.control.EmulatorControllerClient.prototype.streamNotification = function (request, metadata) {
1301
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamNotification', request, metadata || {}, methodDescriptor_EmulatorController_streamNotification);
1302
- };
1303
-
1304
- /**
1305
- * @param {!proto.google.protobuf.Empty} request The request proto
1306
- * @param {?Object<string, string>=} metadata User defined
1307
- * call metadata
1308
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.Notification>}
1309
- * The XHR Node Readable Stream
1310
- */
1311
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.streamNotification = function (request, metadata) {
1312
- return this.client_.serverStreaming(this.hostname_ + '/android.emulation.control.EmulatorController/streamNotification', request, metadata || {}, methodDescriptor_EmulatorController_streamNotification);
1313
- };
1314
-
1315
- /**
1316
- * @const
1317
- * @type {!grpc.web.MethodDescriptor<
1318
- * !proto.android.emulation.control.RotationRadian,
1319
- * !proto.google.protobuf.Empty>}
1320
- */
1321
- var methodDescriptor_EmulatorController_rotateVirtualSceneCamera = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/rotateVirtualSceneCamera', grpc.web.MethodType.UNARY, proto.android.emulation.control.RotationRadian, google_protobuf_empty_pb.Empty,
1322
- /**
1323
- * @param {!proto.android.emulation.control.RotationRadian} request
1324
- * @return {!Uint8Array}
1325
- */
1326
- function (request) {
1327
- return request.serializeBinary();
1328
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1329
-
1330
- /**
1331
- * @param {!proto.android.emulation.control.RotationRadian} request The
1332
- * request proto
1333
- * @param {?Object<string, string>} metadata User defined
1334
- * call metadata
1335
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1336
- * callback The callback function(error, response)
1337
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1338
- * The XHR Node Readable Stream
1339
- */
1340
- proto.android.emulation.control.EmulatorControllerClient.prototype.rotateVirtualSceneCamera = function (request, metadata, callback) {
1341
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/rotateVirtualSceneCamera', request, metadata || {}, methodDescriptor_EmulatorController_rotateVirtualSceneCamera, callback);
1342
- };
1343
-
1344
- /**
1345
- * @param {!proto.android.emulation.control.RotationRadian} request The
1346
- * request proto
1347
- * @param {?Object<string, string>=} metadata User defined
1348
- * call metadata
1349
- * @return {!Promise<!proto.google.protobuf.Empty>}
1350
- * Promise that resolves to the response
1351
- */
1352
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.rotateVirtualSceneCamera = function (request, metadata) {
1353
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/rotateVirtualSceneCamera', request, metadata || {}, methodDescriptor_EmulatorController_rotateVirtualSceneCamera);
1354
- };
1355
-
1356
- /**
1357
- * @const
1358
- * @type {!grpc.web.MethodDescriptor<
1359
- * !proto.android.emulation.control.Velocity,
1360
- * !proto.google.protobuf.Empty>}
1361
- */
1362
- var methodDescriptor_EmulatorController_setVirtualSceneCameraVelocity = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity', grpc.web.MethodType.UNARY, proto.android.emulation.control.Velocity, google_protobuf_empty_pb.Empty,
1363
- /**
1364
- * @param {!proto.android.emulation.control.Velocity} request
1365
- * @return {!Uint8Array}
1366
- */
1367
- function (request) {
1368
- return request.serializeBinary();
1369
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1370
-
1371
- /**
1372
- * @param {!proto.android.emulation.control.Velocity} request The
1373
- * request proto
1374
- * @param {?Object<string, string>} metadata User defined
1375
- * call metadata
1376
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1377
- * callback The callback function(error, response)
1378
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1379
- * The XHR Node Readable Stream
1380
- */
1381
- proto.android.emulation.control.EmulatorControllerClient.prototype.setVirtualSceneCameraVelocity = function (request, metadata, callback) {
1382
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity', request, metadata || {}, methodDescriptor_EmulatorController_setVirtualSceneCameraVelocity, callback);
1383
- };
1384
-
1385
- /**
1386
- * @param {!proto.android.emulation.control.Velocity} request The
1387
- * request proto
1388
- * @param {?Object<string, string>=} metadata User defined
1389
- * call metadata
1390
- * @return {!Promise<!proto.google.protobuf.Empty>}
1391
- * Promise that resolves to the response
1392
- */
1393
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setVirtualSceneCameraVelocity = function (request, metadata) {
1394
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity', request, metadata || {}, methodDescriptor_EmulatorController_setVirtualSceneCameraVelocity);
1395
- };
1396
-
1397
- /**
1398
- * @const
1399
- * @type {!grpc.web.MethodDescriptor<
1400
- * !proto.android.emulation.control.Posture,
1401
- * !proto.google.protobuf.Empty>}
1402
- */
1403
- var methodDescriptor_EmulatorController_setPosture = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setPosture', grpc.web.MethodType.UNARY, proto.android.emulation.control.Posture, google_protobuf_empty_pb.Empty,
1404
- /**
1405
- * @param {!proto.android.emulation.control.Posture} request
1406
- * @return {!Uint8Array}
1407
- */
1408
- function (request) {
1409
- return request.serializeBinary();
1410
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1411
-
1412
- /**
1413
- * @param {!proto.android.emulation.control.Posture} request The
1414
- * request proto
1415
- * @param {?Object<string, string>} metadata User defined
1416
- * call metadata
1417
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1418
- * callback The callback function(error, response)
1419
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1420
- * The XHR Node Readable Stream
1421
- */
1422
- proto.android.emulation.control.EmulatorControllerClient.prototype.setPosture = function (request, metadata, callback) {
1423
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPosture', request, metadata || {}, methodDescriptor_EmulatorController_setPosture, callback);
1424
- };
1425
-
1426
- /**
1427
- * @param {!proto.android.emulation.control.Posture} request The
1428
- * request proto
1429
- * @param {?Object<string, string>=} metadata User defined
1430
- * call metadata
1431
- * @return {!Promise<!proto.google.protobuf.Empty>}
1432
- * Promise that resolves to the response
1433
- */
1434
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setPosture = function (request, metadata) {
1435
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setPosture', request, metadata || {}, methodDescriptor_EmulatorController_setPosture);
1436
- };
1437
-
1438
- /**
1439
- * @const
1440
- * @type {!grpc.web.MethodDescriptor<
1441
- * !proto.android.emulation.control.BrightnessValue,
1442
- * !proto.android.emulation.control.BrightnessValue>}
1443
- */
1444
- var methodDescriptor_EmulatorController_getBrightness = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getBrightness', grpc.web.MethodType.UNARY, proto.android.emulation.control.BrightnessValue, proto.android.emulation.control.BrightnessValue,
1445
- /**
1446
- * @param {!proto.android.emulation.control.BrightnessValue} request
1447
- * @return {!Uint8Array}
1448
- */
1449
- function (request) {
1450
- return request.serializeBinary();
1451
- }, proto.android.emulation.control.BrightnessValue.deserializeBinary);
1452
-
1453
- /**
1454
- * @param {!proto.android.emulation.control.BrightnessValue} request The
1455
- * request proto
1456
- * @param {?Object<string, string>} metadata User defined
1457
- * call metadata
1458
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.BrightnessValue)}
1459
- * callback The callback function(error, response)
1460
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.BrightnessValue>|undefined}
1461
- * The XHR Node Readable Stream
1462
- */
1463
- proto.android.emulation.control.EmulatorControllerClient.prototype.getBrightness = function (request, metadata, callback) {
1464
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getBrightness', request, metadata || {}, methodDescriptor_EmulatorController_getBrightness, callback);
1465
- };
1466
-
1467
- /**
1468
- * @param {!proto.android.emulation.control.BrightnessValue} request The
1469
- * request proto
1470
- * @param {?Object<string, string>=} metadata User defined
1471
- * call metadata
1472
- * @return {!Promise<!proto.android.emulation.control.BrightnessValue>}
1473
- * Promise that resolves to the response
1474
- */
1475
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getBrightness = function (request, metadata) {
1476
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getBrightness', request, metadata || {}, methodDescriptor_EmulatorController_getBrightness);
1477
- };
1478
-
1479
- /**
1480
- * @const
1481
- * @type {!grpc.web.MethodDescriptor<
1482
- * !proto.android.emulation.control.BrightnessValue,
1483
- * !proto.google.protobuf.Empty>}
1484
- */
1485
- var methodDescriptor_EmulatorController_setBrightness = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setBrightness', grpc.web.MethodType.UNARY, proto.android.emulation.control.BrightnessValue, google_protobuf_empty_pb.Empty,
1486
- /**
1487
- * @param {!proto.android.emulation.control.BrightnessValue} request
1488
- * @return {!Uint8Array}
1489
- */
1490
- function (request) {
1491
- return request.serializeBinary();
1492
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1493
-
1494
- /**
1495
- * @param {!proto.android.emulation.control.BrightnessValue} request The
1496
- * request proto
1497
- * @param {?Object<string, string>} metadata User defined
1498
- * call metadata
1499
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1500
- * callback The callback function(error, response)
1501
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1502
- * The XHR Node Readable Stream
1503
- */
1504
- proto.android.emulation.control.EmulatorControllerClient.prototype.setBrightness = function (request, metadata, callback) {
1505
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setBrightness', request, metadata || {}, methodDescriptor_EmulatorController_setBrightness, callback);
1506
- };
1507
-
1508
- /**
1509
- * @param {!proto.android.emulation.control.BrightnessValue} request The
1510
- * request proto
1511
- * @param {?Object<string, string>=} metadata User defined
1512
- * call metadata
1513
- * @return {!Promise<!proto.google.protobuf.Empty>}
1514
- * Promise that resolves to the response
1515
- */
1516
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setBrightness = function (request, metadata) {
1517
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setBrightness', request, metadata || {}, methodDescriptor_EmulatorController_setBrightness);
1518
- };
1519
-
1520
- /**
1521
- * @const
1522
- * @type {!grpc.web.MethodDescriptor<
1523
- * !proto.google.protobuf.Empty,
1524
- * !proto.android.emulation.control.DisplayMode>}
1525
- */
1526
- var methodDescriptor_EmulatorController_getDisplayMode = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/getDisplayMode', grpc.web.MethodType.UNARY, google_protobuf_empty_pb.Empty, proto.android.emulation.control.DisplayMode,
1527
- /**
1528
- * @param {!proto.google.protobuf.Empty} request
1529
- * @return {!Uint8Array}
1530
- */
1531
- function (request) {
1532
- return request.serializeBinary();
1533
- }, proto.android.emulation.control.DisplayMode.deserializeBinary);
1534
-
1535
- /**
1536
- * @param {!proto.google.protobuf.Empty} request The
1537
- * request proto
1538
- * @param {?Object<string, string>} metadata User defined
1539
- * call metadata
1540
- * @param {function(?grpc.web.RpcError, ?proto.android.emulation.control.DisplayMode)}
1541
- * callback The callback function(error, response)
1542
- * @return {!grpc.web.ClientReadableStream<!proto.android.emulation.control.DisplayMode>|undefined}
1543
- * The XHR Node Readable Stream
1544
- */
1545
- proto.android.emulation.control.EmulatorControllerClient.prototype.getDisplayMode = function (request, metadata, callback) {
1546
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/getDisplayMode', request, metadata || {}, methodDescriptor_EmulatorController_getDisplayMode, callback);
1547
- };
1548
-
1549
- /**
1550
- * @param {!proto.google.protobuf.Empty} request The
1551
- * request proto
1552
- * @param {?Object<string, string>=} metadata User defined
1553
- * call metadata
1554
- * @return {!Promise<!proto.android.emulation.control.DisplayMode>}
1555
- * Promise that resolves to the response
1556
- */
1557
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.getDisplayMode = function (request, metadata) {
1558
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/getDisplayMode', request, metadata || {}, methodDescriptor_EmulatorController_getDisplayMode);
1559
- };
1560
-
1561
- /**
1562
- * @const
1563
- * @type {!grpc.web.MethodDescriptor<
1564
- * !proto.android.emulation.control.DisplayMode,
1565
- * !proto.google.protobuf.Empty>}
1566
- */
1567
- var methodDescriptor_EmulatorController_setDisplayMode = new grpc.web.MethodDescriptor('/android.emulation.control.EmulatorController/setDisplayMode', grpc.web.MethodType.UNARY, proto.android.emulation.control.DisplayMode, google_protobuf_empty_pb.Empty,
1568
- /**
1569
- * @param {!proto.android.emulation.control.DisplayMode} request
1570
- * @return {!Uint8Array}
1571
- */
1572
- function (request) {
1573
- return request.serializeBinary();
1574
- }, google_protobuf_empty_pb.Empty.deserializeBinary);
1575
-
1576
- /**
1577
- * @param {!proto.android.emulation.control.DisplayMode} request The
1578
- * request proto
1579
- * @param {?Object<string, string>} metadata User defined
1580
- * call metadata
1581
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1582
- * callback The callback function(error, response)
1583
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1584
- * The XHR Node Readable Stream
1585
- */
1586
- proto.android.emulation.control.EmulatorControllerClient.prototype.setDisplayMode = function (request, metadata, callback) {
1587
- return this.client_.rpcCall(this.hostname_ + '/android.emulation.control.EmulatorController/setDisplayMode', request, metadata || {}, methodDescriptor_EmulatorController_setDisplayMode, callback);
1588
- };
1589
-
1590
- /**
1591
- * @param {!proto.android.emulation.control.DisplayMode} request The
1592
- * request proto
1593
- * @param {?Object<string, string>=} metadata User defined
1594
- * call metadata
1595
- * @return {!Promise<!proto.google.protobuf.Empty>}
1596
- * Promise that resolves to the response
1597
- */
1598
- proto.android.emulation.control.EmulatorControllerPromiseClient.prototype.setDisplayMode = function (request, metadata) {
1599
- return this.client_.unaryCall(this.hostname_ + '/android.emulation.control.EmulatorController/setDisplayMode', request, metadata || {}, methodDescriptor_EmulatorController_setDisplayMode);
1600
- };
1601
- module.exports = proto.android.emulation.control;