@formant/protos 1.241.12 → 1.241.15

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.
@@ -0,0 +1,3884 @@
1
+ // source: protos/api/signaling/v1/signaling.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
25
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
26
+ goog.exportSymbol('proto.v1.signaling.api.CreatePeerRequest', null, global);
27
+ goog.exportSymbol('proto.v1.signaling.api.CreatePeerResponse', null, global);
28
+ goog.exportSymbol('proto.v1.signaling.api.DeletePeerRequest', null, global);
29
+ goog.exportSymbol('proto.v1.signaling.api.DeletePeerResponse', null, global);
30
+ goog.exportSymbol('proto.v1.signaling.api.GetHealthRequest', null, global);
31
+ goog.exportSymbol('proto.v1.signaling.api.GetHealthResponse', null, global);
32
+ goog.exportSymbol('proto.v1.signaling.api.GetIceServersRequest', null, global);
33
+ goog.exportSymbol('proto.v1.signaling.api.GetIceServersResponse', null, global);
34
+ goog.exportSymbol('proto.v1.signaling.api.GetPeersRequest', null, global);
35
+ goog.exportSymbol('proto.v1.signaling.api.GetPeersResponse', null, global);
36
+ goog.exportSymbol('proto.v1.signaling.api.GetSessionsRequest', null, global);
37
+ goog.exportSymbol('proto.v1.signaling.api.GetSessionsResponse', null, global);
38
+ goog.exportSymbol('proto.v1.signaling.api.Peer', null, global);
39
+ goog.exportSymbol('proto.v1.signaling.api.ReceiveSignalStreamRequest', null, global);
40
+ goog.exportSymbol('proto.v1.signaling.api.ReceiveSignalStreamResponse', null, global);
41
+ goog.exportSymbol('proto.v1.signaling.api.RefreshPeerRequest', null, global);
42
+ goog.exportSymbol('proto.v1.signaling.api.RefreshPeerResponse', null, global);
43
+ goog.exportSymbol('proto.v1.signaling.api.RtcSession', null, global);
44
+ goog.exportSymbol('proto.v1.signaling.api.SendSignalRequest', null, global);
45
+ goog.exportSymbol('proto.v1.signaling.api.SendSignalResponse', null, global);
46
+ goog.exportSymbol('proto.v1.signaling.api.SessionType', null, global);
47
+ goog.exportSymbol('proto.v1.signaling.api.Signal', null, global);
48
+ /**
49
+ * Generated by JsPbCodeGenerator.
50
+ * @param {Array=} opt_data Optional initial data array, typically from a
51
+ * server response, or constructed directly in Javascript. The array is used
52
+ * in place and becomes part of the constructed object. It is not cloned.
53
+ * If no data is provided, the constructed object will be empty, but still
54
+ * valid.
55
+ * @extends {jspb.Message}
56
+ * @constructor
57
+ */
58
+ proto.v1.signaling.api.Peer = function(opt_data) {
59
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.Peer.repeatedFields_, null);
60
+ };
61
+ goog.inherits(proto.v1.signaling.api.Peer, jspb.Message);
62
+ if (goog.DEBUG && !COMPILED) {
63
+ /**
64
+ * @public
65
+ * @override
66
+ */
67
+ proto.v1.signaling.api.Peer.displayName = 'proto.v1.signaling.api.Peer';
68
+ }
69
+ /**
70
+ * Generated by JsPbCodeGenerator.
71
+ * @param {Array=} opt_data Optional initial data array, typically from a
72
+ * server response, or constructed directly in Javascript. The array is used
73
+ * in place and becomes part of the constructed object. It is not cloned.
74
+ * If no data is provided, the constructed object will be empty, but still
75
+ * valid.
76
+ * @extends {jspb.Message}
77
+ * @constructor
78
+ */
79
+ proto.v1.signaling.api.Signal = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
81
+ };
82
+ goog.inherits(proto.v1.signaling.api.Signal, jspb.Message);
83
+ if (goog.DEBUG && !COMPILED) {
84
+ /**
85
+ * @public
86
+ * @override
87
+ */
88
+ proto.v1.signaling.api.Signal.displayName = 'proto.v1.signaling.api.Signal';
89
+ }
90
+ /**
91
+ * Generated by JsPbCodeGenerator.
92
+ * @param {Array=} opt_data Optional initial data array, typically from a
93
+ * server response, or constructed directly in Javascript. The array is used
94
+ * in place and becomes part of the constructed object. It is not cloned.
95
+ * If no data is provided, the constructed object will be empty, but still
96
+ * valid.
97
+ * @extends {jspb.Message}
98
+ * @constructor
99
+ */
100
+ proto.v1.signaling.api.RtcSession = function(opt_data) {
101
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
102
+ };
103
+ goog.inherits(proto.v1.signaling.api.RtcSession, jspb.Message);
104
+ if (goog.DEBUG && !COMPILED) {
105
+ /**
106
+ * @public
107
+ * @override
108
+ */
109
+ proto.v1.signaling.api.RtcSession.displayName = 'proto.v1.signaling.api.RtcSession';
110
+ }
111
+ /**
112
+ * Generated by JsPbCodeGenerator.
113
+ * @param {Array=} opt_data Optional initial data array, typically from a
114
+ * server response, or constructed directly in Javascript. The array is used
115
+ * in place and becomes part of the constructed object. It is not cloned.
116
+ * If no data is provided, the constructed object will be empty, but still
117
+ * valid.
118
+ * @extends {jspb.Message}
119
+ * @constructor
120
+ */
121
+ proto.v1.signaling.api.GetSessionsRequest = function(opt_data) {
122
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
123
+ };
124
+ goog.inherits(proto.v1.signaling.api.GetSessionsRequest, jspb.Message);
125
+ if (goog.DEBUG && !COMPILED) {
126
+ /**
127
+ * @public
128
+ * @override
129
+ */
130
+ proto.v1.signaling.api.GetSessionsRequest.displayName = 'proto.v1.signaling.api.GetSessionsRequest';
131
+ }
132
+ /**
133
+ * Generated by JsPbCodeGenerator.
134
+ * @param {Array=} opt_data Optional initial data array, typically from a
135
+ * server response, or constructed directly in Javascript. The array is used
136
+ * in place and becomes part of the constructed object. It is not cloned.
137
+ * If no data is provided, the constructed object will be empty, but still
138
+ * valid.
139
+ * @extends {jspb.Message}
140
+ * @constructor
141
+ */
142
+ proto.v1.signaling.api.GetSessionsResponse = function(opt_data) {
143
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.GetSessionsResponse.repeatedFields_, null);
144
+ };
145
+ goog.inherits(proto.v1.signaling.api.GetSessionsResponse, jspb.Message);
146
+ if (goog.DEBUG && !COMPILED) {
147
+ /**
148
+ * @public
149
+ * @override
150
+ */
151
+ proto.v1.signaling.api.GetSessionsResponse.displayName = 'proto.v1.signaling.api.GetSessionsResponse';
152
+ }
153
+ /**
154
+ * Generated by JsPbCodeGenerator.
155
+ * @param {Array=} opt_data Optional initial data array, typically from a
156
+ * server response, or constructed directly in Javascript. The array is used
157
+ * in place and becomes part of the constructed object. It is not cloned.
158
+ * If no data is provided, the constructed object will be empty, but still
159
+ * valid.
160
+ * @extends {jspb.Message}
161
+ * @constructor
162
+ */
163
+ proto.v1.signaling.api.GetHealthRequest = function(opt_data) {
164
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
+ };
166
+ goog.inherits(proto.v1.signaling.api.GetHealthRequest, jspb.Message);
167
+ if (goog.DEBUG && !COMPILED) {
168
+ /**
169
+ * @public
170
+ * @override
171
+ */
172
+ proto.v1.signaling.api.GetHealthRequest.displayName = 'proto.v1.signaling.api.GetHealthRequest';
173
+ }
174
+ /**
175
+ * Generated by JsPbCodeGenerator.
176
+ * @param {Array=} opt_data Optional initial data array, typically from a
177
+ * server response, or constructed directly in Javascript. The array is used
178
+ * in place and becomes part of the constructed object. It is not cloned.
179
+ * If no data is provided, the constructed object will be empty, but still
180
+ * valid.
181
+ * @extends {jspb.Message}
182
+ * @constructor
183
+ */
184
+ proto.v1.signaling.api.GetHealthResponse = function(opt_data) {
185
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
186
+ };
187
+ goog.inherits(proto.v1.signaling.api.GetHealthResponse, jspb.Message);
188
+ if (goog.DEBUG && !COMPILED) {
189
+ /**
190
+ * @public
191
+ * @override
192
+ */
193
+ proto.v1.signaling.api.GetHealthResponse.displayName = 'proto.v1.signaling.api.GetHealthResponse';
194
+ }
195
+ /**
196
+ * Generated by JsPbCodeGenerator.
197
+ * @param {Array=} opt_data Optional initial data array, typically from a
198
+ * server response, or constructed directly in Javascript. The array is used
199
+ * in place and becomes part of the constructed object. It is not cloned.
200
+ * If no data is provided, the constructed object will be empty, but still
201
+ * valid.
202
+ * @extends {jspb.Message}
203
+ * @constructor
204
+ */
205
+ proto.v1.signaling.api.CreatePeerRequest = function(opt_data) {
206
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
207
+ };
208
+ goog.inherits(proto.v1.signaling.api.CreatePeerRequest, jspb.Message);
209
+ if (goog.DEBUG && !COMPILED) {
210
+ /**
211
+ * @public
212
+ * @override
213
+ */
214
+ proto.v1.signaling.api.CreatePeerRequest.displayName = 'proto.v1.signaling.api.CreatePeerRequest';
215
+ }
216
+ /**
217
+ * Generated by JsPbCodeGenerator.
218
+ * @param {Array=} opt_data Optional initial data array, typically from a
219
+ * server response, or constructed directly in Javascript. The array is used
220
+ * in place and becomes part of the constructed object. It is not cloned.
221
+ * If no data is provided, the constructed object will be empty, but still
222
+ * valid.
223
+ * @extends {jspb.Message}
224
+ * @constructor
225
+ */
226
+ proto.v1.signaling.api.CreatePeerResponse = function(opt_data) {
227
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
228
+ };
229
+ goog.inherits(proto.v1.signaling.api.CreatePeerResponse, jspb.Message);
230
+ if (goog.DEBUG && !COMPILED) {
231
+ /**
232
+ * @public
233
+ * @override
234
+ */
235
+ proto.v1.signaling.api.CreatePeerResponse.displayName = 'proto.v1.signaling.api.CreatePeerResponse';
236
+ }
237
+ /**
238
+ * Generated by JsPbCodeGenerator.
239
+ * @param {Array=} opt_data Optional initial data array, typically from a
240
+ * server response, or constructed directly in Javascript. The array is used
241
+ * in place and becomes part of the constructed object. It is not cloned.
242
+ * If no data is provided, the constructed object will be empty, but still
243
+ * valid.
244
+ * @extends {jspb.Message}
245
+ * @constructor
246
+ */
247
+ proto.v1.signaling.api.DeletePeerRequest = function(opt_data) {
248
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
249
+ };
250
+ goog.inherits(proto.v1.signaling.api.DeletePeerRequest, jspb.Message);
251
+ if (goog.DEBUG && !COMPILED) {
252
+ /**
253
+ * @public
254
+ * @override
255
+ */
256
+ proto.v1.signaling.api.DeletePeerRequest.displayName = 'proto.v1.signaling.api.DeletePeerRequest';
257
+ }
258
+ /**
259
+ * Generated by JsPbCodeGenerator.
260
+ * @param {Array=} opt_data Optional initial data array, typically from a
261
+ * server response, or constructed directly in Javascript. The array is used
262
+ * in place and becomes part of the constructed object. It is not cloned.
263
+ * If no data is provided, the constructed object will be empty, but still
264
+ * valid.
265
+ * @extends {jspb.Message}
266
+ * @constructor
267
+ */
268
+ proto.v1.signaling.api.DeletePeerResponse = function(opt_data) {
269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
270
+ };
271
+ goog.inherits(proto.v1.signaling.api.DeletePeerResponse, jspb.Message);
272
+ if (goog.DEBUG && !COMPILED) {
273
+ /**
274
+ * @public
275
+ * @override
276
+ */
277
+ proto.v1.signaling.api.DeletePeerResponse.displayName = 'proto.v1.signaling.api.DeletePeerResponse';
278
+ }
279
+ /**
280
+ * Generated by JsPbCodeGenerator.
281
+ * @param {Array=} opt_data Optional initial data array, typically from a
282
+ * server response, or constructed directly in Javascript. The array is used
283
+ * in place and becomes part of the constructed object. It is not cloned.
284
+ * If no data is provided, the constructed object will be empty, but still
285
+ * valid.
286
+ * @extends {jspb.Message}
287
+ * @constructor
288
+ */
289
+ proto.v1.signaling.api.RefreshPeerRequest = function(opt_data) {
290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
291
+ };
292
+ goog.inherits(proto.v1.signaling.api.RefreshPeerRequest, jspb.Message);
293
+ if (goog.DEBUG && !COMPILED) {
294
+ /**
295
+ * @public
296
+ * @override
297
+ */
298
+ proto.v1.signaling.api.RefreshPeerRequest.displayName = 'proto.v1.signaling.api.RefreshPeerRequest';
299
+ }
300
+ /**
301
+ * Generated by JsPbCodeGenerator.
302
+ * @param {Array=} opt_data Optional initial data array, typically from a
303
+ * server response, or constructed directly in Javascript. The array is used
304
+ * in place and becomes part of the constructed object. It is not cloned.
305
+ * If no data is provided, the constructed object will be empty, but still
306
+ * valid.
307
+ * @extends {jspb.Message}
308
+ * @constructor
309
+ */
310
+ proto.v1.signaling.api.RefreshPeerResponse = function(opt_data) {
311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
312
+ };
313
+ goog.inherits(proto.v1.signaling.api.RefreshPeerResponse, jspb.Message);
314
+ if (goog.DEBUG && !COMPILED) {
315
+ /**
316
+ * @public
317
+ * @override
318
+ */
319
+ proto.v1.signaling.api.RefreshPeerResponse.displayName = 'proto.v1.signaling.api.RefreshPeerResponse';
320
+ }
321
+ /**
322
+ * Generated by JsPbCodeGenerator.
323
+ * @param {Array=} opt_data Optional initial data array, typically from a
324
+ * server response, or constructed directly in Javascript. The array is used
325
+ * in place and becomes part of the constructed object. It is not cloned.
326
+ * If no data is provided, the constructed object will be empty, but still
327
+ * valid.
328
+ * @extends {jspb.Message}
329
+ * @constructor
330
+ */
331
+ proto.v1.signaling.api.GetPeersRequest = function(opt_data) {
332
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
333
+ };
334
+ goog.inherits(proto.v1.signaling.api.GetPeersRequest, jspb.Message);
335
+ if (goog.DEBUG && !COMPILED) {
336
+ /**
337
+ * @public
338
+ * @override
339
+ */
340
+ proto.v1.signaling.api.GetPeersRequest.displayName = 'proto.v1.signaling.api.GetPeersRequest';
341
+ }
342
+ /**
343
+ * Generated by JsPbCodeGenerator.
344
+ * @param {Array=} opt_data Optional initial data array, typically from a
345
+ * server response, or constructed directly in Javascript. The array is used
346
+ * in place and becomes part of the constructed object. It is not cloned.
347
+ * If no data is provided, the constructed object will be empty, but still
348
+ * valid.
349
+ * @extends {jspb.Message}
350
+ * @constructor
351
+ */
352
+ proto.v1.signaling.api.GetPeersResponse = function(opt_data) {
353
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.GetPeersResponse.repeatedFields_, null);
354
+ };
355
+ goog.inherits(proto.v1.signaling.api.GetPeersResponse, jspb.Message);
356
+ if (goog.DEBUG && !COMPILED) {
357
+ /**
358
+ * @public
359
+ * @override
360
+ */
361
+ proto.v1.signaling.api.GetPeersResponse.displayName = 'proto.v1.signaling.api.GetPeersResponse';
362
+ }
363
+ /**
364
+ * Generated by JsPbCodeGenerator.
365
+ * @param {Array=} opt_data Optional initial data array, typically from a
366
+ * server response, or constructed directly in Javascript. The array is used
367
+ * in place and becomes part of the constructed object. It is not cloned.
368
+ * If no data is provided, the constructed object will be empty, but still
369
+ * valid.
370
+ * @extends {jspb.Message}
371
+ * @constructor
372
+ */
373
+ proto.v1.signaling.api.GetIceServersRequest = function(opt_data) {
374
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
375
+ };
376
+ goog.inherits(proto.v1.signaling.api.GetIceServersRequest, jspb.Message);
377
+ if (goog.DEBUG && !COMPILED) {
378
+ /**
379
+ * @public
380
+ * @override
381
+ */
382
+ proto.v1.signaling.api.GetIceServersRequest.displayName = 'proto.v1.signaling.api.GetIceServersRequest';
383
+ }
384
+ /**
385
+ * Generated by JsPbCodeGenerator.
386
+ * @param {Array=} opt_data Optional initial data array, typically from a
387
+ * server response, or constructed directly in Javascript. The array is used
388
+ * in place and becomes part of the constructed object. It is not cloned.
389
+ * If no data is provided, the constructed object will be empty, but still
390
+ * valid.
391
+ * @extends {jspb.Message}
392
+ * @constructor
393
+ */
394
+ proto.v1.signaling.api.GetIceServersResponse = function(opt_data) {
395
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
396
+ };
397
+ goog.inherits(proto.v1.signaling.api.GetIceServersResponse, jspb.Message);
398
+ if (goog.DEBUG && !COMPILED) {
399
+ /**
400
+ * @public
401
+ * @override
402
+ */
403
+ proto.v1.signaling.api.GetIceServersResponse.displayName = 'proto.v1.signaling.api.GetIceServersResponse';
404
+ }
405
+ /**
406
+ * Generated by JsPbCodeGenerator.
407
+ * @param {Array=} opt_data Optional initial data array, typically from a
408
+ * server response, or constructed directly in Javascript. The array is used
409
+ * in place and becomes part of the constructed object. It is not cloned.
410
+ * If no data is provided, the constructed object will be empty, but still
411
+ * valid.
412
+ * @extends {jspb.Message}
413
+ * @constructor
414
+ */
415
+ proto.v1.signaling.api.SendSignalRequest = function(opt_data) {
416
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
417
+ };
418
+ goog.inherits(proto.v1.signaling.api.SendSignalRequest, jspb.Message);
419
+ if (goog.DEBUG && !COMPILED) {
420
+ /**
421
+ * @public
422
+ * @override
423
+ */
424
+ proto.v1.signaling.api.SendSignalRequest.displayName = 'proto.v1.signaling.api.SendSignalRequest';
425
+ }
426
+ /**
427
+ * Generated by JsPbCodeGenerator.
428
+ * @param {Array=} opt_data Optional initial data array, typically from a
429
+ * server response, or constructed directly in Javascript. The array is used
430
+ * in place and becomes part of the constructed object. It is not cloned.
431
+ * If no data is provided, the constructed object will be empty, but still
432
+ * valid.
433
+ * @extends {jspb.Message}
434
+ * @constructor
435
+ */
436
+ proto.v1.signaling.api.SendSignalResponse = function(opt_data) {
437
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
438
+ };
439
+ goog.inherits(proto.v1.signaling.api.SendSignalResponse, jspb.Message);
440
+ if (goog.DEBUG && !COMPILED) {
441
+ /**
442
+ * @public
443
+ * @override
444
+ */
445
+ proto.v1.signaling.api.SendSignalResponse.displayName = 'proto.v1.signaling.api.SendSignalResponse';
446
+ }
447
+ /**
448
+ * Generated by JsPbCodeGenerator.
449
+ * @param {Array=} opt_data Optional initial data array, typically from a
450
+ * server response, or constructed directly in Javascript. The array is used
451
+ * in place and becomes part of the constructed object. It is not cloned.
452
+ * If no data is provided, the constructed object will be empty, but still
453
+ * valid.
454
+ * @extends {jspb.Message}
455
+ * @constructor
456
+ */
457
+ proto.v1.signaling.api.ReceiveSignalStreamRequest = function(opt_data) {
458
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
459
+ };
460
+ goog.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest, jspb.Message);
461
+ if (goog.DEBUG && !COMPILED) {
462
+ /**
463
+ * @public
464
+ * @override
465
+ */
466
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName = 'proto.v1.signaling.api.ReceiveSignalStreamRequest';
467
+ }
468
+ /**
469
+ * Generated by JsPbCodeGenerator.
470
+ * @param {Array=} opt_data Optional initial data array, typically from a
471
+ * server response, or constructed directly in Javascript. The array is used
472
+ * in place and becomes part of the constructed object. It is not cloned.
473
+ * If no data is provided, the constructed object will be empty, but still
474
+ * valid.
475
+ * @extends {jspb.Message}
476
+ * @constructor
477
+ */
478
+ proto.v1.signaling.api.ReceiveSignalStreamResponse = function(opt_data) {
479
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
480
+ };
481
+ goog.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse, jspb.Message);
482
+ if (goog.DEBUG && !COMPILED) {
483
+ /**
484
+ * @public
485
+ * @override
486
+ */
487
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName = 'proto.v1.signaling.api.ReceiveSignalStreamResponse';
488
+ }
489
+
490
+ /**
491
+ * List of repeated fields within this message type.
492
+ * @private {!Array<number>}
493
+ * @const
494
+ */
495
+ proto.v1.signaling.api.Peer.repeatedFields_ = [5];
496
+
497
+
498
+
499
+ if (jspb.Message.GENERATE_TO_OBJECT) {
500
+ /**
501
+ * Creates an object representation of this proto.
502
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
503
+ * Optional fields that are not set will be set to undefined.
504
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
505
+ * For the list of reserved names please see:
506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
508
+ * JSPB instance for transitional soy proto support:
509
+ * http://goto/soy-param-migration
510
+ * @return {!Object}
511
+ */
512
+ proto.v1.signaling.api.Peer.prototype.toObject = function(opt_includeInstance) {
513
+ return proto.v1.signaling.api.Peer.toObject(opt_includeInstance, this);
514
+ };
515
+
516
+
517
+ /**
518
+ * Static version of the {@see toObject} method.
519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
520
+ * the JSPB instance for transitional soy proto support:
521
+ * http://goto/soy-param-migration
522
+ * @param {!proto.v1.signaling.api.Peer} msg The msg instance to transform.
523
+ * @return {!Object}
524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
525
+ */
526
+ proto.v1.signaling.api.Peer.toObject = function(includeInstance, msg) {
527
+ var f, obj = {
528
+ peerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
529
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
530
+ userId: (f = msg.getUserId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
531
+ deviceId: (f = msg.getDeviceId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
532
+ sessionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
533
+ peerCreatedTimestamp: (f = msg.getPeerCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f)
534
+ };
535
+
536
+ if (includeInstance) {
537
+ obj.$jspbMessageInstance = msg;
538
+ }
539
+ return obj;
540
+ };
541
+ }
542
+
543
+
544
+ /**
545
+ * Deserializes binary data (in protobuf wire format).
546
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
547
+ * @return {!proto.v1.signaling.api.Peer}
548
+ */
549
+ proto.v1.signaling.api.Peer.deserializeBinary = function(bytes) {
550
+ var reader = new jspb.BinaryReader(bytes);
551
+ var msg = new proto.v1.signaling.api.Peer;
552
+ return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(msg, reader);
553
+ };
554
+
555
+
556
+ /**
557
+ * Deserializes binary data (in protobuf wire format) from the
558
+ * given reader into the given message object.
559
+ * @param {!proto.v1.signaling.api.Peer} msg The message object to deserialize into.
560
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
561
+ * @return {!proto.v1.signaling.api.Peer}
562
+ */
563
+ proto.v1.signaling.api.Peer.deserializeBinaryFromReader = function(msg, reader) {
564
+ while (reader.nextField()) {
565
+ if (reader.isEndGroup()) {
566
+ break;
567
+ }
568
+ var field = reader.getFieldNumber();
569
+ switch (field) {
570
+ case 1:
571
+ var value = /** @type {string} */ (reader.readString());
572
+ msg.setPeerId(value);
573
+ break;
574
+ case 2:
575
+ var value = /** @type {string} */ (reader.readString());
576
+ msg.setOrganizationId(value);
577
+ break;
578
+ case 3:
579
+ var value = new google_protobuf_wrappers_pb.StringValue;
580
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
581
+ msg.setUserId(value);
582
+ break;
583
+ case 4:
584
+ var value = new google_protobuf_wrappers_pb.StringValue;
585
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
586
+ msg.setDeviceId(value);
587
+ break;
588
+ case 5:
589
+ var value = /** @type {string} */ (reader.readString());
590
+ msg.addSessionIds(value);
591
+ break;
592
+ case 6:
593
+ var value = new google_protobuf_wrappers_pb.Int64Value;
594
+ reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
595
+ msg.setPeerCreatedTimestamp(value);
596
+ break;
597
+ default:
598
+ reader.skipField();
599
+ break;
600
+ }
601
+ }
602
+ return msg;
603
+ };
604
+
605
+
606
+ /**
607
+ * Serializes the message to binary data (in protobuf wire format).
608
+ * @return {!Uint8Array}
609
+ */
610
+ proto.v1.signaling.api.Peer.prototype.serializeBinary = function() {
611
+ var writer = new jspb.BinaryWriter();
612
+ proto.v1.signaling.api.Peer.serializeBinaryToWriter(this, writer);
613
+ return writer.getResultBuffer();
614
+ };
615
+
616
+
617
+ /**
618
+ * Serializes the given message to binary data (in protobuf wire
619
+ * format), writing to the given BinaryWriter.
620
+ * @param {!proto.v1.signaling.api.Peer} message
621
+ * @param {!jspb.BinaryWriter} writer
622
+ * @suppress {unusedLocalVariables} f is only used for nested messages
623
+ */
624
+ proto.v1.signaling.api.Peer.serializeBinaryToWriter = function(message, writer) {
625
+ var f = undefined;
626
+ f = message.getPeerId();
627
+ if (f.length > 0) {
628
+ writer.writeString(
629
+ 1,
630
+ f
631
+ );
632
+ }
633
+ f = message.getOrganizationId();
634
+ if (f.length > 0) {
635
+ writer.writeString(
636
+ 2,
637
+ f
638
+ );
639
+ }
640
+ f = message.getUserId();
641
+ if (f != null) {
642
+ writer.writeMessage(
643
+ 3,
644
+ f,
645
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
646
+ );
647
+ }
648
+ f = message.getDeviceId();
649
+ if (f != null) {
650
+ writer.writeMessage(
651
+ 4,
652
+ f,
653
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
654
+ );
655
+ }
656
+ f = message.getSessionIdsList();
657
+ if (f.length > 0) {
658
+ writer.writeRepeatedString(
659
+ 5,
660
+ f
661
+ );
662
+ }
663
+ f = message.getPeerCreatedTimestamp();
664
+ if (f != null) {
665
+ writer.writeMessage(
666
+ 6,
667
+ f,
668
+ google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
669
+ );
670
+ }
671
+ };
672
+
673
+
674
+ /**
675
+ * optional string peer_id = 1;
676
+ * @return {string}
677
+ */
678
+ proto.v1.signaling.api.Peer.prototype.getPeerId = function() {
679
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
680
+ };
681
+
682
+
683
+ /**
684
+ * @param {string} value
685
+ * @return {!proto.v1.signaling.api.Peer} returns this
686
+ */
687
+ proto.v1.signaling.api.Peer.prototype.setPeerId = function(value) {
688
+ return jspb.Message.setProto3StringField(this, 1, value);
689
+ };
690
+
691
+
692
+ /**
693
+ * optional string organization_id = 2;
694
+ * @return {string}
695
+ */
696
+ proto.v1.signaling.api.Peer.prototype.getOrganizationId = function() {
697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
698
+ };
699
+
700
+
701
+ /**
702
+ * @param {string} value
703
+ * @return {!proto.v1.signaling.api.Peer} returns this
704
+ */
705
+ proto.v1.signaling.api.Peer.prototype.setOrganizationId = function(value) {
706
+ return jspb.Message.setProto3StringField(this, 2, value);
707
+ };
708
+
709
+
710
+ /**
711
+ * optional google.protobuf.StringValue user_id = 3;
712
+ * @return {?proto.google.protobuf.StringValue}
713
+ */
714
+ proto.v1.signaling.api.Peer.prototype.getUserId = function() {
715
+ return /** @type{?proto.google.protobuf.StringValue} */ (
716
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
717
+ };
718
+
719
+
720
+ /**
721
+ * @param {?proto.google.protobuf.StringValue|undefined} value
722
+ * @return {!proto.v1.signaling.api.Peer} returns this
723
+ */
724
+ proto.v1.signaling.api.Peer.prototype.setUserId = function(value) {
725
+ return jspb.Message.setWrapperField(this, 3, value);
726
+ };
727
+
728
+
729
+ /**
730
+ * Clears the message field making it undefined.
731
+ * @return {!proto.v1.signaling.api.Peer} returns this
732
+ */
733
+ proto.v1.signaling.api.Peer.prototype.clearUserId = function() {
734
+ return this.setUserId(undefined);
735
+ };
736
+
737
+
738
+ /**
739
+ * Returns whether this field is set.
740
+ * @return {boolean}
741
+ */
742
+ proto.v1.signaling.api.Peer.prototype.hasUserId = function() {
743
+ return jspb.Message.getField(this, 3) != null;
744
+ };
745
+
746
+
747
+ /**
748
+ * optional google.protobuf.StringValue device_id = 4;
749
+ * @return {?proto.google.protobuf.StringValue}
750
+ */
751
+ proto.v1.signaling.api.Peer.prototype.getDeviceId = function() {
752
+ return /** @type{?proto.google.protobuf.StringValue} */ (
753
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
754
+ };
755
+
756
+
757
+ /**
758
+ * @param {?proto.google.protobuf.StringValue|undefined} value
759
+ * @return {!proto.v1.signaling.api.Peer} returns this
760
+ */
761
+ proto.v1.signaling.api.Peer.prototype.setDeviceId = function(value) {
762
+ return jspb.Message.setWrapperField(this, 4, value);
763
+ };
764
+
765
+
766
+ /**
767
+ * Clears the message field making it undefined.
768
+ * @return {!proto.v1.signaling.api.Peer} returns this
769
+ */
770
+ proto.v1.signaling.api.Peer.prototype.clearDeviceId = function() {
771
+ return this.setDeviceId(undefined);
772
+ };
773
+
774
+
775
+ /**
776
+ * Returns whether this field is set.
777
+ * @return {boolean}
778
+ */
779
+ proto.v1.signaling.api.Peer.prototype.hasDeviceId = function() {
780
+ return jspb.Message.getField(this, 4) != null;
781
+ };
782
+
783
+
784
+ /**
785
+ * repeated string session_ids = 5;
786
+ * @return {!Array<string>}
787
+ */
788
+ proto.v1.signaling.api.Peer.prototype.getSessionIdsList = function() {
789
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
790
+ };
791
+
792
+
793
+ /**
794
+ * @param {!Array<string>} value
795
+ * @return {!proto.v1.signaling.api.Peer} returns this
796
+ */
797
+ proto.v1.signaling.api.Peer.prototype.setSessionIdsList = function(value) {
798
+ return jspb.Message.setField(this, 5, value || []);
799
+ };
800
+
801
+
802
+ /**
803
+ * @param {string} value
804
+ * @param {number=} opt_index
805
+ * @return {!proto.v1.signaling.api.Peer} returns this
806
+ */
807
+ proto.v1.signaling.api.Peer.prototype.addSessionIds = function(value, opt_index) {
808
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
809
+ };
810
+
811
+
812
+ /**
813
+ * Clears the list making it empty but non-null.
814
+ * @return {!proto.v1.signaling.api.Peer} returns this
815
+ */
816
+ proto.v1.signaling.api.Peer.prototype.clearSessionIdsList = function() {
817
+ return this.setSessionIdsList([]);
818
+ };
819
+
820
+
821
+ /**
822
+ * optional google.protobuf.Int64Value peer_created_timestamp = 6;
823
+ * @return {?proto.google.protobuf.Int64Value}
824
+ */
825
+ proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp = function() {
826
+ return /** @type{?proto.google.protobuf.Int64Value} */ (
827
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 6));
828
+ };
829
+
830
+
831
+ /**
832
+ * @param {?proto.google.protobuf.Int64Value|undefined} value
833
+ * @return {!proto.v1.signaling.api.Peer} returns this
834
+ */
835
+ proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp = function(value) {
836
+ return jspb.Message.setWrapperField(this, 6, value);
837
+ };
838
+
839
+
840
+ /**
841
+ * Clears the message field making it undefined.
842
+ * @return {!proto.v1.signaling.api.Peer} returns this
843
+ */
844
+ proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp = function() {
845
+ return this.setPeerCreatedTimestamp(undefined);
846
+ };
847
+
848
+
849
+ /**
850
+ * Returns whether this field is set.
851
+ * @return {boolean}
852
+ */
853
+ proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp = function() {
854
+ return jspb.Message.getField(this, 6) != null;
855
+ };
856
+
857
+
858
+
859
+
860
+
861
+ if (jspb.Message.GENERATE_TO_OBJECT) {
862
+ /**
863
+ * Creates an object representation of this proto.
864
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
865
+ * Optional fields that are not set will be set to undefined.
866
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
867
+ * For the list of reserved names please see:
868
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
869
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
870
+ * JSPB instance for transitional soy proto support:
871
+ * http://goto/soy-param-migration
872
+ * @return {!Object}
873
+ */
874
+ proto.v1.signaling.api.Signal.prototype.toObject = function(opt_includeInstance) {
875
+ return proto.v1.signaling.api.Signal.toObject(opt_includeInstance, this);
876
+ };
877
+
878
+
879
+ /**
880
+ * Static version of the {@see toObject} method.
881
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
882
+ * the JSPB instance for transitional soy proto support:
883
+ * http://goto/soy-param-migration
884
+ * @param {!proto.v1.signaling.api.Signal} msg The msg instance to transform.
885
+ * @return {!Object}
886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
887
+ */
888
+ proto.v1.signaling.api.Signal.toObject = function(includeInstance, msg) {
889
+ var f, obj = {
890
+ sessionId: (f = msg.getSessionId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
891
+ sessionCreatedTimestamp: (f = msg.getSessionCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
892
+ senderId: jspb.Message.getFieldWithDefault(msg, 3, ""),
893
+ receiverId: jspb.Message.getFieldWithDefault(msg, 4, ""),
894
+ payload: jspb.Message.getFieldWithDefault(msg, 5, ""),
895
+ iceServers: jspb.Message.getFieldWithDefault(msg, 6, ""),
896
+ iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, ""),
897
+ sessionType: jspb.Message.getFieldWithDefault(msg, 8, 0),
898
+ lockDevice: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
899
+ };
900
+
901
+ if (includeInstance) {
902
+ obj.$jspbMessageInstance = msg;
903
+ }
904
+ return obj;
905
+ };
906
+ }
907
+
908
+
909
+ /**
910
+ * Deserializes binary data (in protobuf wire format).
911
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
912
+ * @return {!proto.v1.signaling.api.Signal}
913
+ */
914
+ proto.v1.signaling.api.Signal.deserializeBinary = function(bytes) {
915
+ var reader = new jspb.BinaryReader(bytes);
916
+ var msg = new proto.v1.signaling.api.Signal;
917
+ return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(msg, reader);
918
+ };
919
+
920
+
921
+ /**
922
+ * Deserializes binary data (in protobuf wire format) from the
923
+ * given reader into the given message object.
924
+ * @param {!proto.v1.signaling.api.Signal} msg The message object to deserialize into.
925
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
926
+ * @return {!proto.v1.signaling.api.Signal}
927
+ */
928
+ proto.v1.signaling.api.Signal.deserializeBinaryFromReader = function(msg, reader) {
929
+ while (reader.nextField()) {
930
+ if (reader.isEndGroup()) {
931
+ break;
932
+ }
933
+ var field = reader.getFieldNumber();
934
+ switch (field) {
935
+ case 1:
936
+ var value = new google_protobuf_wrappers_pb.StringValue;
937
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
938
+ msg.setSessionId(value);
939
+ break;
940
+ case 2:
941
+ var value = new google_protobuf_wrappers_pb.Int64Value;
942
+ reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
943
+ msg.setSessionCreatedTimestamp(value);
944
+ break;
945
+ case 3:
946
+ var value = /** @type {string} */ (reader.readString());
947
+ msg.setSenderId(value);
948
+ break;
949
+ case 4:
950
+ var value = /** @type {string} */ (reader.readString());
951
+ msg.setReceiverId(value);
952
+ break;
953
+ case 5:
954
+ var value = /** @type {string} */ (reader.readString());
955
+ msg.setPayload(value);
956
+ break;
957
+ case 6:
958
+ var value = /** @type {string} */ (reader.readString());
959
+ msg.setIceServers(value);
960
+ break;
961
+ case 7:
962
+ var value = /** @type {string} */ (reader.readString());
963
+ msg.setIceTransportPolicy(value);
964
+ break;
965
+ case 8:
966
+ var value = /** @type {!proto.v1.signaling.api.SessionType} */ (reader.readEnum());
967
+ msg.setSessionType(value);
968
+ break;
969
+ case 9:
970
+ var value = /** @type {boolean} */ (reader.readBool());
971
+ msg.setLockDevice(value);
972
+ break;
973
+ default:
974
+ reader.skipField();
975
+ break;
976
+ }
977
+ }
978
+ return msg;
979
+ };
980
+
981
+
982
+ /**
983
+ * Serializes the message to binary data (in protobuf wire format).
984
+ * @return {!Uint8Array}
985
+ */
986
+ proto.v1.signaling.api.Signal.prototype.serializeBinary = function() {
987
+ var writer = new jspb.BinaryWriter();
988
+ proto.v1.signaling.api.Signal.serializeBinaryToWriter(this, writer);
989
+ return writer.getResultBuffer();
990
+ };
991
+
992
+
993
+ /**
994
+ * Serializes the given message to binary data (in protobuf wire
995
+ * format), writing to the given BinaryWriter.
996
+ * @param {!proto.v1.signaling.api.Signal} message
997
+ * @param {!jspb.BinaryWriter} writer
998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
999
+ */
1000
+ proto.v1.signaling.api.Signal.serializeBinaryToWriter = function(message, writer) {
1001
+ var f = undefined;
1002
+ f = message.getSessionId();
1003
+ if (f != null) {
1004
+ writer.writeMessage(
1005
+ 1,
1006
+ f,
1007
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1008
+ );
1009
+ }
1010
+ f = message.getSessionCreatedTimestamp();
1011
+ if (f != null) {
1012
+ writer.writeMessage(
1013
+ 2,
1014
+ f,
1015
+ google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
1016
+ );
1017
+ }
1018
+ f = message.getSenderId();
1019
+ if (f.length > 0) {
1020
+ writer.writeString(
1021
+ 3,
1022
+ f
1023
+ );
1024
+ }
1025
+ f = message.getReceiverId();
1026
+ if (f.length > 0) {
1027
+ writer.writeString(
1028
+ 4,
1029
+ f
1030
+ );
1031
+ }
1032
+ f = message.getPayload();
1033
+ if (f.length > 0) {
1034
+ writer.writeString(
1035
+ 5,
1036
+ f
1037
+ );
1038
+ }
1039
+ f = message.getIceServers();
1040
+ if (f.length > 0) {
1041
+ writer.writeString(
1042
+ 6,
1043
+ f
1044
+ );
1045
+ }
1046
+ f = message.getIceTransportPolicy();
1047
+ if (f.length > 0) {
1048
+ writer.writeString(
1049
+ 7,
1050
+ f
1051
+ );
1052
+ }
1053
+ f = message.getSessionType();
1054
+ if (f !== 0.0) {
1055
+ writer.writeEnum(
1056
+ 8,
1057
+ f
1058
+ );
1059
+ }
1060
+ f = message.getLockDevice();
1061
+ if (f) {
1062
+ writer.writeBool(
1063
+ 9,
1064
+ f
1065
+ );
1066
+ }
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * optional google.protobuf.StringValue session_id = 1;
1072
+ * @return {?proto.google.protobuf.StringValue}
1073
+ */
1074
+ proto.v1.signaling.api.Signal.prototype.getSessionId = function() {
1075
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1076
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1082
+ * @return {!proto.v1.signaling.api.Signal} returns this
1083
+ */
1084
+ proto.v1.signaling.api.Signal.prototype.setSessionId = function(value) {
1085
+ return jspb.Message.setWrapperField(this, 1, value);
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Clears the message field making it undefined.
1091
+ * @return {!proto.v1.signaling.api.Signal} returns this
1092
+ */
1093
+ proto.v1.signaling.api.Signal.prototype.clearSessionId = function() {
1094
+ return this.setSessionId(undefined);
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Returns whether this field is set.
1100
+ * @return {boolean}
1101
+ */
1102
+ proto.v1.signaling.api.Signal.prototype.hasSessionId = function() {
1103
+ return jspb.Message.getField(this, 1) != null;
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * optional google.protobuf.Int64Value session_created_timestamp = 2;
1109
+ * @return {?proto.google.protobuf.Int64Value}
1110
+ */
1111
+ proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp = function() {
1112
+ return /** @type{?proto.google.protobuf.Int64Value} */ (
1113
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * @param {?proto.google.protobuf.Int64Value|undefined} value
1119
+ * @return {!proto.v1.signaling.api.Signal} returns this
1120
+ */
1121
+ proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp = function(value) {
1122
+ return jspb.Message.setWrapperField(this, 2, value);
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * Clears the message field making it undefined.
1128
+ * @return {!proto.v1.signaling.api.Signal} returns this
1129
+ */
1130
+ proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp = function() {
1131
+ return this.setSessionCreatedTimestamp(undefined);
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * Returns whether this field is set.
1137
+ * @return {boolean}
1138
+ */
1139
+ proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp = function() {
1140
+ return jspb.Message.getField(this, 2) != null;
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * optional string sender_id = 3;
1146
+ * @return {string}
1147
+ */
1148
+ proto.v1.signaling.api.Signal.prototype.getSenderId = function() {
1149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * @param {string} value
1155
+ * @return {!proto.v1.signaling.api.Signal} returns this
1156
+ */
1157
+ proto.v1.signaling.api.Signal.prototype.setSenderId = function(value) {
1158
+ return jspb.Message.setProto3StringField(this, 3, value);
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * optional string receiver_id = 4;
1164
+ * @return {string}
1165
+ */
1166
+ proto.v1.signaling.api.Signal.prototype.getReceiverId = function() {
1167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * @param {string} value
1173
+ * @return {!proto.v1.signaling.api.Signal} returns this
1174
+ */
1175
+ proto.v1.signaling.api.Signal.prototype.setReceiverId = function(value) {
1176
+ return jspb.Message.setProto3StringField(this, 4, value);
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * optional string payload = 5;
1182
+ * @return {string}
1183
+ */
1184
+ proto.v1.signaling.api.Signal.prototype.getPayload = function() {
1185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * @param {string} value
1191
+ * @return {!proto.v1.signaling.api.Signal} returns this
1192
+ */
1193
+ proto.v1.signaling.api.Signal.prototype.setPayload = function(value) {
1194
+ return jspb.Message.setProto3StringField(this, 5, value);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * optional string ice_servers = 6;
1200
+ * @return {string}
1201
+ */
1202
+ proto.v1.signaling.api.Signal.prototype.getIceServers = function() {
1203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * @param {string} value
1209
+ * @return {!proto.v1.signaling.api.Signal} returns this
1210
+ */
1211
+ proto.v1.signaling.api.Signal.prototype.setIceServers = function(value) {
1212
+ return jspb.Message.setProto3StringField(this, 6, value);
1213
+ };
1214
+
1215
+
1216
+ /**
1217
+ * optional string ice_transport_policy = 7;
1218
+ * @return {string}
1219
+ */
1220
+ proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy = function() {
1221
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1222
+ };
1223
+
1224
+
1225
+ /**
1226
+ * @param {string} value
1227
+ * @return {!proto.v1.signaling.api.Signal} returns this
1228
+ */
1229
+ proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy = function(value) {
1230
+ return jspb.Message.setProto3StringField(this, 7, value);
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * optional SessionType session_type = 8;
1236
+ * @return {!proto.v1.signaling.api.SessionType}
1237
+ */
1238
+ proto.v1.signaling.api.Signal.prototype.getSessionType = function() {
1239
+ return /** @type {!proto.v1.signaling.api.SessionType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1240
+ };
1241
+
1242
+
1243
+ /**
1244
+ * @param {!proto.v1.signaling.api.SessionType} value
1245
+ * @return {!proto.v1.signaling.api.Signal} returns this
1246
+ */
1247
+ proto.v1.signaling.api.Signal.prototype.setSessionType = function(value) {
1248
+ return jspb.Message.setProto3EnumField(this, 8, value);
1249
+ };
1250
+
1251
+
1252
+ /**
1253
+ * optional bool lock_device = 9;
1254
+ * @return {boolean}
1255
+ */
1256
+ proto.v1.signaling.api.Signal.prototype.getLockDevice = function() {
1257
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * @param {boolean} value
1263
+ * @return {!proto.v1.signaling.api.Signal} returns this
1264
+ */
1265
+ proto.v1.signaling.api.Signal.prototype.setLockDevice = function(value) {
1266
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1267
+ };
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1274
+ /**
1275
+ * Creates an object representation of this proto.
1276
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1277
+ * Optional fields that are not set will be set to undefined.
1278
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1279
+ * For the list of reserved names please see:
1280
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1281
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1282
+ * JSPB instance for transitional soy proto support:
1283
+ * http://goto/soy-param-migration
1284
+ * @return {!Object}
1285
+ */
1286
+ proto.v1.signaling.api.RtcSession.prototype.toObject = function(opt_includeInstance) {
1287
+ return proto.v1.signaling.api.RtcSession.toObject(opt_includeInstance, this);
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * Static version of the {@see toObject} method.
1293
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1294
+ * the JSPB instance for transitional soy proto support:
1295
+ * http://goto/soy-param-migration
1296
+ * @param {!proto.v1.signaling.api.RtcSession} msg The msg instance to transform.
1297
+ * @return {!Object}
1298
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1299
+ */
1300
+ proto.v1.signaling.api.RtcSession.toObject = function(includeInstance, msg) {
1301
+ var f, obj = {
1302
+ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1303
+ offerPeerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1304
+ answerPeerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1305
+ organizationId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1306
+ sessionType: jspb.Message.getFieldWithDefault(msg, 5, "")
1307
+ };
1308
+
1309
+ if (includeInstance) {
1310
+ obj.$jspbMessageInstance = msg;
1311
+ }
1312
+ return obj;
1313
+ };
1314
+ }
1315
+
1316
+
1317
+ /**
1318
+ * Deserializes binary data (in protobuf wire format).
1319
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1320
+ * @return {!proto.v1.signaling.api.RtcSession}
1321
+ */
1322
+ proto.v1.signaling.api.RtcSession.deserializeBinary = function(bytes) {
1323
+ var reader = new jspb.BinaryReader(bytes);
1324
+ var msg = new proto.v1.signaling.api.RtcSession;
1325
+ return proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader(msg, reader);
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * Deserializes binary data (in protobuf wire format) from the
1331
+ * given reader into the given message object.
1332
+ * @param {!proto.v1.signaling.api.RtcSession} msg The message object to deserialize into.
1333
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1334
+ * @return {!proto.v1.signaling.api.RtcSession}
1335
+ */
1336
+ proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader = function(msg, reader) {
1337
+ while (reader.nextField()) {
1338
+ if (reader.isEndGroup()) {
1339
+ break;
1340
+ }
1341
+ var field = reader.getFieldNumber();
1342
+ switch (field) {
1343
+ case 1:
1344
+ var value = /** @type {string} */ (reader.readString());
1345
+ msg.setSessionId(value);
1346
+ break;
1347
+ case 2:
1348
+ var value = /** @type {string} */ (reader.readString());
1349
+ msg.setOfferPeerId(value);
1350
+ break;
1351
+ case 3:
1352
+ var value = /** @type {string} */ (reader.readString());
1353
+ msg.setAnswerPeerId(value);
1354
+ break;
1355
+ case 4:
1356
+ var value = /** @type {string} */ (reader.readString());
1357
+ msg.setOrganizationId(value);
1358
+ break;
1359
+ case 5:
1360
+ var value = /** @type {string} */ (reader.readString());
1361
+ msg.setSessionType(value);
1362
+ break;
1363
+ default:
1364
+ reader.skipField();
1365
+ break;
1366
+ }
1367
+ }
1368
+ return msg;
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * Serializes the message to binary data (in protobuf wire format).
1374
+ * @return {!Uint8Array}
1375
+ */
1376
+ proto.v1.signaling.api.RtcSession.prototype.serializeBinary = function() {
1377
+ var writer = new jspb.BinaryWriter();
1378
+ proto.v1.signaling.api.RtcSession.serializeBinaryToWriter(this, writer);
1379
+ return writer.getResultBuffer();
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * Serializes the given message to binary data (in protobuf wire
1385
+ * format), writing to the given BinaryWriter.
1386
+ * @param {!proto.v1.signaling.api.RtcSession} message
1387
+ * @param {!jspb.BinaryWriter} writer
1388
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1389
+ */
1390
+ proto.v1.signaling.api.RtcSession.serializeBinaryToWriter = function(message, writer) {
1391
+ var f = undefined;
1392
+ f = message.getSessionId();
1393
+ if (f.length > 0) {
1394
+ writer.writeString(
1395
+ 1,
1396
+ f
1397
+ );
1398
+ }
1399
+ f = message.getOfferPeerId();
1400
+ if (f.length > 0) {
1401
+ writer.writeString(
1402
+ 2,
1403
+ f
1404
+ );
1405
+ }
1406
+ f = message.getAnswerPeerId();
1407
+ if (f.length > 0) {
1408
+ writer.writeString(
1409
+ 3,
1410
+ f
1411
+ );
1412
+ }
1413
+ f = message.getOrganizationId();
1414
+ if (f.length > 0) {
1415
+ writer.writeString(
1416
+ 4,
1417
+ f
1418
+ );
1419
+ }
1420
+ f = message.getSessionType();
1421
+ if (f.length > 0) {
1422
+ writer.writeString(
1423
+ 5,
1424
+ f
1425
+ );
1426
+ }
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * optional string session_id = 1;
1432
+ * @return {string}
1433
+ */
1434
+ proto.v1.signaling.api.RtcSession.prototype.getSessionId = function() {
1435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * @param {string} value
1441
+ * @return {!proto.v1.signaling.api.RtcSession} returns this
1442
+ */
1443
+ proto.v1.signaling.api.RtcSession.prototype.setSessionId = function(value) {
1444
+ return jspb.Message.setProto3StringField(this, 1, value);
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * optional string offer_peer_id = 2;
1450
+ * @return {string}
1451
+ */
1452
+ proto.v1.signaling.api.RtcSession.prototype.getOfferPeerId = function() {
1453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * @param {string} value
1459
+ * @return {!proto.v1.signaling.api.RtcSession} returns this
1460
+ */
1461
+ proto.v1.signaling.api.RtcSession.prototype.setOfferPeerId = function(value) {
1462
+ return jspb.Message.setProto3StringField(this, 2, value);
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * optional string answer_peer_id = 3;
1468
+ * @return {string}
1469
+ */
1470
+ proto.v1.signaling.api.RtcSession.prototype.getAnswerPeerId = function() {
1471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * @param {string} value
1477
+ * @return {!proto.v1.signaling.api.RtcSession} returns this
1478
+ */
1479
+ proto.v1.signaling.api.RtcSession.prototype.setAnswerPeerId = function(value) {
1480
+ return jspb.Message.setProto3StringField(this, 3, value);
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * optional string organization_id = 4;
1486
+ * @return {string}
1487
+ */
1488
+ proto.v1.signaling.api.RtcSession.prototype.getOrganizationId = function() {
1489
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * @param {string} value
1495
+ * @return {!proto.v1.signaling.api.RtcSession} returns this
1496
+ */
1497
+ proto.v1.signaling.api.RtcSession.prototype.setOrganizationId = function(value) {
1498
+ return jspb.Message.setProto3StringField(this, 4, value);
1499
+ };
1500
+
1501
+
1502
+ /**
1503
+ * optional string session_type = 5;
1504
+ * @return {string}
1505
+ */
1506
+ proto.v1.signaling.api.RtcSession.prototype.getSessionType = function() {
1507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1508
+ };
1509
+
1510
+
1511
+ /**
1512
+ * @param {string} value
1513
+ * @return {!proto.v1.signaling.api.RtcSession} returns this
1514
+ */
1515
+ proto.v1.signaling.api.RtcSession.prototype.setSessionType = function(value) {
1516
+ return jspb.Message.setProto3StringField(this, 5, value);
1517
+ };
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1524
+ /**
1525
+ * Creates an object representation of this proto.
1526
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1527
+ * Optional fields that are not set will be set to undefined.
1528
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1529
+ * For the list of reserved names please see:
1530
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1531
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1532
+ * JSPB instance for transitional soy proto support:
1533
+ * http://goto/soy-param-migration
1534
+ * @return {!Object}
1535
+ */
1536
+ proto.v1.signaling.api.GetSessionsRequest.prototype.toObject = function(opt_includeInstance) {
1537
+ return proto.v1.signaling.api.GetSessionsRequest.toObject(opt_includeInstance, this);
1538
+ };
1539
+
1540
+
1541
+ /**
1542
+ * Static version of the {@see toObject} method.
1543
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1544
+ * the JSPB instance for transitional soy proto support:
1545
+ * http://goto/soy-param-migration
1546
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} msg The msg instance to transform.
1547
+ * @return {!Object}
1548
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1549
+ */
1550
+ proto.v1.signaling.api.GetSessionsRequest.toObject = function(includeInstance, msg) {
1551
+ var f, obj = {
1552
+
1553
+ };
1554
+
1555
+ if (includeInstance) {
1556
+ obj.$jspbMessageInstance = msg;
1557
+ }
1558
+ return obj;
1559
+ };
1560
+ }
1561
+
1562
+
1563
+ /**
1564
+ * Deserializes binary data (in protobuf wire format).
1565
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1566
+ * @return {!proto.v1.signaling.api.GetSessionsRequest}
1567
+ */
1568
+ proto.v1.signaling.api.GetSessionsRequest.deserializeBinary = function(bytes) {
1569
+ var reader = new jspb.BinaryReader(bytes);
1570
+ var msg = new proto.v1.signaling.api.GetSessionsRequest;
1571
+ return proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader(msg, reader);
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * Deserializes binary data (in protobuf wire format) from the
1577
+ * given reader into the given message object.
1578
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} msg The message object to deserialize into.
1579
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1580
+ * @return {!proto.v1.signaling.api.GetSessionsRequest}
1581
+ */
1582
+ proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader = function(msg, reader) {
1583
+ while (reader.nextField()) {
1584
+ if (reader.isEndGroup()) {
1585
+ break;
1586
+ }
1587
+ var field = reader.getFieldNumber();
1588
+ switch (field) {
1589
+ default:
1590
+ reader.skipField();
1591
+ break;
1592
+ }
1593
+ }
1594
+ return msg;
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * Serializes the message to binary data (in protobuf wire format).
1600
+ * @return {!Uint8Array}
1601
+ */
1602
+ proto.v1.signaling.api.GetSessionsRequest.prototype.serializeBinary = function() {
1603
+ var writer = new jspb.BinaryWriter();
1604
+ proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter(this, writer);
1605
+ return writer.getResultBuffer();
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * Serializes the given message to binary data (in protobuf wire
1611
+ * format), writing to the given BinaryWriter.
1612
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} message
1613
+ * @param {!jspb.BinaryWriter} writer
1614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1615
+ */
1616
+ proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter = function(message, writer) {
1617
+ var f = undefined;
1618
+ };
1619
+
1620
+
1621
+
1622
+ /**
1623
+ * List of repeated fields within this message type.
1624
+ * @private {!Array<number>}
1625
+ * @const
1626
+ */
1627
+ proto.v1.signaling.api.GetSessionsResponse.repeatedFields_ = [1];
1628
+
1629
+
1630
+
1631
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1632
+ /**
1633
+ * Creates an object representation of this proto.
1634
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1635
+ * Optional fields that are not set will be set to undefined.
1636
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1637
+ * For the list of reserved names please see:
1638
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1639
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1640
+ * JSPB instance for transitional soy proto support:
1641
+ * http://goto/soy-param-migration
1642
+ * @return {!Object}
1643
+ */
1644
+ proto.v1.signaling.api.GetSessionsResponse.prototype.toObject = function(opt_includeInstance) {
1645
+ return proto.v1.signaling.api.GetSessionsResponse.toObject(opt_includeInstance, this);
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * Static version of the {@see toObject} method.
1651
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1652
+ * the JSPB instance for transitional soy proto support:
1653
+ * http://goto/soy-param-migration
1654
+ * @param {!proto.v1.signaling.api.GetSessionsResponse} msg The msg instance to transform.
1655
+ * @return {!Object}
1656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1657
+ */
1658
+ proto.v1.signaling.api.GetSessionsResponse.toObject = function(includeInstance, msg) {
1659
+ var f, obj = {
1660
+ sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
1661
+ proto.v1.signaling.api.RtcSession.toObject, includeInstance)
1662
+ };
1663
+
1664
+ if (includeInstance) {
1665
+ obj.$jspbMessageInstance = msg;
1666
+ }
1667
+ return obj;
1668
+ };
1669
+ }
1670
+
1671
+
1672
+ /**
1673
+ * Deserializes binary data (in protobuf wire format).
1674
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1675
+ * @return {!proto.v1.signaling.api.GetSessionsResponse}
1676
+ */
1677
+ proto.v1.signaling.api.GetSessionsResponse.deserializeBinary = function(bytes) {
1678
+ var reader = new jspb.BinaryReader(bytes);
1679
+ var msg = new proto.v1.signaling.api.GetSessionsResponse;
1680
+ return proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader(msg, reader);
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Deserializes binary data (in protobuf wire format) from the
1686
+ * given reader into the given message object.
1687
+ * @param {!proto.v1.signaling.api.GetSessionsResponse} msg The message object to deserialize into.
1688
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1689
+ * @return {!proto.v1.signaling.api.GetSessionsResponse}
1690
+ */
1691
+ proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader = function(msg, reader) {
1692
+ while (reader.nextField()) {
1693
+ if (reader.isEndGroup()) {
1694
+ break;
1695
+ }
1696
+ var field = reader.getFieldNumber();
1697
+ switch (field) {
1698
+ case 1:
1699
+ var value = new proto.v1.signaling.api.RtcSession;
1700
+ reader.readMessage(value,proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader);
1701
+ msg.addSessions(value);
1702
+ break;
1703
+ default:
1704
+ reader.skipField();
1705
+ break;
1706
+ }
1707
+ }
1708
+ return msg;
1709
+ };
1710
+
1711
+
1712
+ /**
1713
+ * Serializes the message to binary data (in protobuf wire format).
1714
+ * @return {!Uint8Array}
1715
+ */
1716
+ proto.v1.signaling.api.GetSessionsResponse.prototype.serializeBinary = function() {
1717
+ var writer = new jspb.BinaryWriter();
1718
+ proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter(this, writer);
1719
+ return writer.getResultBuffer();
1720
+ };
1721
+
1722
+
1723
+ /**
1724
+ * Serializes the given message to binary data (in protobuf wire
1725
+ * format), writing to the given BinaryWriter.
1726
+ * @param {!proto.v1.signaling.api.GetSessionsResponse} message
1727
+ * @param {!jspb.BinaryWriter} writer
1728
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1729
+ */
1730
+ proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter = function(message, writer) {
1731
+ var f = undefined;
1732
+ f = message.getSessionsList();
1733
+ if (f.length > 0) {
1734
+ writer.writeRepeatedMessage(
1735
+ 1,
1736
+ f,
1737
+ proto.v1.signaling.api.RtcSession.serializeBinaryToWriter
1738
+ );
1739
+ }
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * repeated RtcSession sessions = 1;
1745
+ * @return {!Array<!proto.v1.signaling.api.RtcSession>}
1746
+ */
1747
+ proto.v1.signaling.api.GetSessionsResponse.prototype.getSessionsList = function() {
1748
+ return /** @type{!Array<!proto.v1.signaling.api.RtcSession>} */ (
1749
+ jspb.Message.getRepeatedWrapperField(this, proto.v1.signaling.api.RtcSession, 1));
1750
+ };
1751
+
1752
+
1753
+ /**
1754
+ * @param {!Array<!proto.v1.signaling.api.RtcSession>} value
1755
+ * @return {!proto.v1.signaling.api.GetSessionsResponse} returns this
1756
+ */
1757
+ proto.v1.signaling.api.GetSessionsResponse.prototype.setSessionsList = function(value) {
1758
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * @param {!proto.v1.signaling.api.RtcSession=} opt_value
1764
+ * @param {number=} opt_index
1765
+ * @return {!proto.v1.signaling.api.RtcSession}
1766
+ */
1767
+ proto.v1.signaling.api.GetSessionsResponse.prototype.addSessions = function(opt_value, opt_index) {
1768
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.signaling.api.RtcSession, opt_index);
1769
+ };
1770
+
1771
+
1772
+ /**
1773
+ * Clears the list making it empty but non-null.
1774
+ * @return {!proto.v1.signaling.api.GetSessionsResponse} returns this
1775
+ */
1776
+ proto.v1.signaling.api.GetSessionsResponse.prototype.clearSessionsList = function() {
1777
+ return this.setSessionsList([]);
1778
+ };
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1785
+ /**
1786
+ * Creates an object representation of this proto.
1787
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1788
+ * Optional fields that are not set will be set to undefined.
1789
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1790
+ * For the list of reserved names please see:
1791
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1792
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1793
+ * JSPB instance for transitional soy proto support:
1794
+ * http://goto/soy-param-migration
1795
+ * @return {!Object}
1796
+ */
1797
+ proto.v1.signaling.api.GetHealthRequest.prototype.toObject = function(opt_includeInstance) {
1798
+ return proto.v1.signaling.api.GetHealthRequest.toObject(opt_includeInstance, this);
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * Static version of the {@see toObject} method.
1804
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1805
+ * the JSPB instance for transitional soy proto support:
1806
+ * http://goto/soy-param-migration
1807
+ * @param {!proto.v1.signaling.api.GetHealthRequest} msg The msg instance to transform.
1808
+ * @return {!Object}
1809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1810
+ */
1811
+ proto.v1.signaling.api.GetHealthRequest.toObject = function(includeInstance, msg) {
1812
+ var f, obj = {
1813
+
1814
+ };
1815
+
1816
+ if (includeInstance) {
1817
+ obj.$jspbMessageInstance = msg;
1818
+ }
1819
+ return obj;
1820
+ };
1821
+ }
1822
+
1823
+
1824
+ /**
1825
+ * Deserializes binary data (in protobuf wire format).
1826
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1827
+ * @return {!proto.v1.signaling.api.GetHealthRequest}
1828
+ */
1829
+ proto.v1.signaling.api.GetHealthRequest.deserializeBinary = function(bytes) {
1830
+ var reader = new jspb.BinaryReader(bytes);
1831
+ var msg = new proto.v1.signaling.api.GetHealthRequest;
1832
+ return proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader(msg, reader);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * Deserializes binary data (in protobuf wire format) from the
1838
+ * given reader into the given message object.
1839
+ * @param {!proto.v1.signaling.api.GetHealthRequest} msg The message object to deserialize into.
1840
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1841
+ * @return {!proto.v1.signaling.api.GetHealthRequest}
1842
+ */
1843
+ proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader = function(msg, reader) {
1844
+ while (reader.nextField()) {
1845
+ if (reader.isEndGroup()) {
1846
+ break;
1847
+ }
1848
+ var field = reader.getFieldNumber();
1849
+ switch (field) {
1850
+ default:
1851
+ reader.skipField();
1852
+ break;
1853
+ }
1854
+ }
1855
+ return msg;
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * Serializes the message to binary data (in protobuf wire format).
1861
+ * @return {!Uint8Array}
1862
+ */
1863
+ proto.v1.signaling.api.GetHealthRequest.prototype.serializeBinary = function() {
1864
+ var writer = new jspb.BinaryWriter();
1865
+ proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter(this, writer);
1866
+ return writer.getResultBuffer();
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Serializes the given message to binary data (in protobuf wire
1872
+ * format), writing to the given BinaryWriter.
1873
+ * @param {!proto.v1.signaling.api.GetHealthRequest} message
1874
+ * @param {!jspb.BinaryWriter} writer
1875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1876
+ */
1877
+ proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter = function(message, writer) {
1878
+ var f = undefined;
1879
+ };
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1886
+ /**
1887
+ * Creates an object representation of this proto.
1888
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1889
+ * Optional fields that are not set will be set to undefined.
1890
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1891
+ * For the list of reserved names please see:
1892
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1893
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1894
+ * JSPB instance for transitional soy proto support:
1895
+ * http://goto/soy-param-migration
1896
+ * @return {!Object}
1897
+ */
1898
+ proto.v1.signaling.api.GetHealthResponse.prototype.toObject = function(opt_includeInstance) {
1899
+ return proto.v1.signaling.api.GetHealthResponse.toObject(opt_includeInstance, this);
1900
+ };
1901
+
1902
+
1903
+ /**
1904
+ * Static version of the {@see toObject} method.
1905
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1906
+ * the JSPB instance for transitional soy proto support:
1907
+ * http://goto/soy-param-migration
1908
+ * @param {!proto.v1.signaling.api.GetHealthResponse} msg The msg instance to transform.
1909
+ * @return {!Object}
1910
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1911
+ */
1912
+ proto.v1.signaling.api.GetHealthResponse.toObject = function(includeInstance, msg) {
1913
+ var f, obj = {
1914
+ version: jspb.Message.getFieldWithDefault(msg, 1, "")
1915
+ };
1916
+
1917
+ if (includeInstance) {
1918
+ obj.$jspbMessageInstance = msg;
1919
+ }
1920
+ return obj;
1921
+ };
1922
+ }
1923
+
1924
+
1925
+ /**
1926
+ * Deserializes binary data (in protobuf wire format).
1927
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1928
+ * @return {!proto.v1.signaling.api.GetHealthResponse}
1929
+ */
1930
+ proto.v1.signaling.api.GetHealthResponse.deserializeBinary = function(bytes) {
1931
+ var reader = new jspb.BinaryReader(bytes);
1932
+ var msg = new proto.v1.signaling.api.GetHealthResponse;
1933
+ return proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader(msg, reader);
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * Deserializes binary data (in protobuf wire format) from the
1939
+ * given reader into the given message object.
1940
+ * @param {!proto.v1.signaling.api.GetHealthResponse} msg The message object to deserialize into.
1941
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1942
+ * @return {!proto.v1.signaling.api.GetHealthResponse}
1943
+ */
1944
+ proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader = function(msg, reader) {
1945
+ while (reader.nextField()) {
1946
+ if (reader.isEndGroup()) {
1947
+ break;
1948
+ }
1949
+ var field = reader.getFieldNumber();
1950
+ switch (field) {
1951
+ case 1:
1952
+ var value = /** @type {string} */ (reader.readString());
1953
+ msg.setVersion(value);
1954
+ break;
1955
+ default:
1956
+ reader.skipField();
1957
+ break;
1958
+ }
1959
+ }
1960
+ return msg;
1961
+ };
1962
+
1963
+
1964
+ /**
1965
+ * Serializes the message to binary data (in protobuf wire format).
1966
+ * @return {!Uint8Array}
1967
+ */
1968
+ proto.v1.signaling.api.GetHealthResponse.prototype.serializeBinary = function() {
1969
+ var writer = new jspb.BinaryWriter();
1970
+ proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter(this, writer);
1971
+ return writer.getResultBuffer();
1972
+ };
1973
+
1974
+
1975
+ /**
1976
+ * Serializes the given message to binary data (in protobuf wire
1977
+ * format), writing to the given BinaryWriter.
1978
+ * @param {!proto.v1.signaling.api.GetHealthResponse} message
1979
+ * @param {!jspb.BinaryWriter} writer
1980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1981
+ */
1982
+ proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter = function(message, writer) {
1983
+ var f = undefined;
1984
+ f = message.getVersion();
1985
+ if (f.length > 0) {
1986
+ writer.writeString(
1987
+ 1,
1988
+ f
1989
+ );
1990
+ }
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * optional string version = 1;
1996
+ * @return {string}
1997
+ */
1998
+ proto.v1.signaling.api.GetHealthResponse.prototype.getVersion = function() {
1999
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * @param {string} value
2005
+ * @return {!proto.v1.signaling.api.GetHealthResponse} returns this
2006
+ */
2007
+ proto.v1.signaling.api.GetHealthResponse.prototype.setVersion = function(value) {
2008
+ return jspb.Message.setProto3StringField(this, 1, value);
2009
+ };
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2016
+ /**
2017
+ * Creates an object representation of this proto.
2018
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2019
+ * Optional fields that are not set will be set to undefined.
2020
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2021
+ * For the list of reserved names please see:
2022
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2023
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2024
+ * JSPB instance for transitional soy proto support:
2025
+ * http://goto/soy-param-migration
2026
+ * @return {!Object}
2027
+ */
2028
+ proto.v1.signaling.api.CreatePeerRequest.prototype.toObject = function(opt_includeInstance) {
2029
+ return proto.v1.signaling.api.CreatePeerRequest.toObject(opt_includeInstance, this);
2030
+ };
2031
+
2032
+
2033
+ /**
2034
+ * Static version of the {@see toObject} method.
2035
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2036
+ * the JSPB instance for transitional soy proto support:
2037
+ * http://goto/soy-param-migration
2038
+ * @param {!proto.v1.signaling.api.CreatePeerRequest} msg The msg instance to transform.
2039
+ * @return {!Object}
2040
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2041
+ */
2042
+ proto.v1.signaling.api.CreatePeerRequest.toObject = function(includeInstance, msg) {
2043
+ var f, obj = {
2044
+
2045
+ };
2046
+
2047
+ if (includeInstance) {
2048
+ obj.$jspbMessageInstance = msg;
2049
+ }
2050
+ return obj;
2051
+ };
2052
+ }
2053
+
2054
+
2055
+ /**
2056
+ * Deserializes binary data (in protobuf wire format).
2057
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2058
+ * @return {!proto.v1.signaling.api.CreatePeerRequest}
2059
+ */
2060
+ proto.v1.signaling.api.CreatePeerRequest.deserializeBinary = function(bytes) {
2061
+ var reader = new jspb.BinaryReader(bytes);
2062
+ var msg = new proto.v1.signaling.api.CreatePeerRequest;
2063
+ return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(msg, reader);
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * Deserializes binary data (in protobuf wire format) from the
2069
+ * given reader into the given message object.
2070
+ * @param {!proto.v1.signaling.api.CreatePeerRequest} msg The message object to deserialize into.
2071
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2072
+ * @return {!proto.v1.signaling.api.CreatePeerRequest}
2073
+ */
2074
+ proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader = function(msg, reader) {
2075
+ while (reader.nextField()) {
2076
+ if (reader.isEndGroup()) {
2077
+ break;
2078
+ }
2079
+ var field = reader.getFieldNumber();
2080
+ switch (field) {
2081
+ default:
2082
+ reader.skipField();
2083
+ break;
2084
+ }
2085
+ }
2086
+ return msg;
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Serializes the message to binary data (in protobuf wire format).
2092
+ * @return {!Uint8Array}
2093
+ */
2094
+ proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary = function() {
2095
+ var writer = new jspb.BinaryWriter();
2096
+ proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this, writer);
2097
+ return writer.getResultBuffer();
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * Serializes the given message to binary data (in protobuf wire
2103
+ * format), writing to the given BinaryWriter.
2104
+ * @param {!proto.v1.signaling.api.CreatePeerRequest} message
2105
+ * @param {!jspb.BinaryWriter} writer
2106
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2107
+ */
2108
+ proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter = function(message, writer) {
2109
+ var f = undefined;
2110
+ };
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2117
+ /**
2118
+ * Creates an object representation of this proto.
2119
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2120
+ * Optional fields that are not set will be set to undefined.
2121
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2122
+ * For the list of reserved names please see:
2123
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2124
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2125
+ * JSPB instance for transitional soy proto support:
2126
+ * http://goto/soy-param-migration
2127
+ * @return {!Object}
2128
+ */
2129
+ proto.v1.signaling.api.CreatePeerResponse.prototype.toObject = function(opt_includeInstance) {
2130
+ return proto.v1.signaling.api.CreatePeerResponse.toObject(opt_includeInstance, this);
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * Static version of the {@see toObject} method.
2136
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2137
+ * the JSPB instance for transitional soy proto support:
2138
+ * http://goto/soy-param-migration
2139
+ * @param {!proto.v1.signaling.api.CreatePeerResponse} msg The msg instance to transform.
2140
+ * @return {!Object}
2141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2142
+ */
2143
+ proto.v1.signaling.api.CreatePeerResponse.toObject = function(includeInstance, msg) {
2144
+ var f, obj = {
2145
+ peer: (f = msg.getPeer()) && proto.v1.signaling.api.Peer.toObject(includeInstance, f)
2146
+ };
2147
+
2148
+ if (includeInstance) {
2149
+ obj.$jspbMessageInstance = msg;
2150
+ }
2151
+ return obj;
2152
+ };
2153
+ }
2154
+
2155
+
2156
+ /**
2157
+ * Deserializes binary data (in protobuf wire format).
2158
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2159
+ * @return {!proto.v1.signaling.api.CreatePeerResponse}
2160
+ */
2161
+ proto.v1.signaling.api.CreatePeerResponse.deserializeBinary = function(bytes) {
2162
+ var reader = new jspb.BinaryReader(bytes);
2163
+ var msg = new proto.v1.signaling.api.CreatePeerResponse;
2164
+ return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(msg, reader);
2165
+ };
2166
+
2167
+
2168
+ /**
2169
+ * Deserializes binary data (in protobuf wire format) from the
2170
+ * given reader into the given message object.
2171
+ * @param {!proto.v1.signaling.api.CreatePeerResponse} msg The message object to deserialize into.
2172
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2173
+ * @return {!proto.v1.signaling.api.CreatePeerResponse}
2174
+ */
2175
+ proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader = function(msg, reader) {
2176
+ while (reader.nextField()) {
2177
+ if (reader.isEndGroup()) {
2178
+ break;
2179
+ }
2180
+ var field = reader.getFieldNumber();
2181
+ switch (field) {
2182
+ case 1:
2183
+ var value = new proto.v1.signaling.api.Peer;
2184
+ reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
2185
+ msg.setPeer(value);
2186
+ break;
2187
+ default:
2188
+ reader.skipField();
2189
+ break;
2190
+ }
2191
+ }
2192
+ return msg;
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * Serializes the message to binary data (in protobuf wire format).
2198
+ * @return {!Uint8Array}
2199
+ */
2200
+ proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary = function() {
2201
+ var writer = new jspb.BinaryWriter();
2202
+ proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this, writer);
2203
+ return writer.getResultBuffer();
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * Serializes the given message to binary data (in protobuf wire
2209
+ * format), writing to the given BinaryWriter.
2210
+ * @param {!proto.v1.signaling.api.CreatePeerResponse} message
2211
+ * @param {!jspb.BinaryWriter} writer
2212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2213
+ */
2214
+ proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter = function(message, writer) {
2215
+ var f = undefined;
2216
+ f = message.getPeer();
2217
+ if (f != null) {
2218
+ writer.writeMessage(
2219
+ 1,
2220
+ f,
2221
+ proto.v1.signaling.api.Peer.serializeBinaryToWriter
2222
+ );
2223
+ }
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * optional Peer peer = 1;
2229
+ * @return {?proto.v1.signaling.api.Peer}
2230
+ */
2231
+ proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer = function() {
2232
+ return /** @type{?proto.v1.signaling.api.Peer} */ (
2233
+ jspb.Message.getWrapperField(this, proto.v1.signaling.api.Peer, 1));
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * @param {?proto.v1.signaling.api.Peer|undefined} value
2239
+ * @return {!proto.v1.signaling.api.CreatePeerResponse} returns this
2240
+ */
2241
+ proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer = function(value) {
2242
+ return jspb.Message.setWrapperField(this, 1, value);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Clears the message field making it undefined.
2248
+ * @return {!proto.v1.signaling.api.CreatePeerResponse} returns this
2249
+ */
2250
+ proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer = function() {
2251
+ return this.setPeer(undefined);
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * Returns whether this field is set.
2257
+ * @return {boolean}
2258
+ */
2259
+ proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer = function() {
2260
+ return jspb.Message.getField(this, 1) != null;
2261
+ };
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2268
+ /**
2269
+ * Creates an object representation of this proto.
2270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2271
+ * Optional fields that are not set will be set to undefined.
2272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2273
+ * For the list of reserved names please see:
2274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2276
+ * JSPB instance for transitional soy proto support:
2277
+ * http://goto/soy-param-migration
2278
+ * @return {!Object}
2279
+ */
2280
+ proto.v1.signaling.api.DeletePeerRequest.prototype.toObject = function(opt_includeInstance) {
2281
+ return proto.v1.signaling.api.DeletePeerRequest.toObject(opt_includeInstance, this);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * Static version of the {@see toObject} method.
2287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2288
+ * the JSPB instance for transitional soy proto support:
2289
+ * http://goto/soy-param-migration
2290
+ * @param {!proto.v1.signaling.api.DeletePeerRequest} msg The msg instance to transform.
2291
+ * @return {!Object}
2292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2293
+ */
2294
+ proto.v1.signaling.api.DeletePeerRequest.toObject = function(includeInstance, msg) {
2295
+ var f, obj = {
2296
+ peerId: jspb.Message.getFieldWithDefault(msg, 1, "")
2297
+ };
2298
+
2299
+ if (includeInstance) {
2300
+ obj.$jspbMessageInstance = msg;
2301
+ }
2302
+ return obj;
2303
+ };
2304
+ }
2305
+
2306
+
2307
+ /**
2308
+ * Deserializes binary data (in protobuf wire format).
2309
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2310
+ * @return {!proto.v1.signaling.api.DeletePeerRequest}
2311
+ */
2312
+ proto.v1.signaling.api.DeletePeerRequest.deserializeBinary = function(bytes) {
2313
+ var reader = new jspb.BinaryReader(bytes);
2314
+ var msg = new proto.v1.signaling.api.DeletePeerRequest;
2315
+ return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(msg, reader);
2316
+ };
2317
+
2318
+
2319
+ /**
2320
+ * Deserializes binary data (in protobuf wire format) from the
2321
+ * given reader into the given message object.
2322
+ * @param {!proto.v1.signaling.api.DeletePeerRequest} msg The message object to deserialize into.
2323
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2324
+ * @return {!proto.v1.signaling.api.DeletePeerRequest}
2325
+ */
2326
+ proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader = function(msg, reader) {
2327
+ while (reader.nextField()) {
2328
+ if (reader.isEndGroup()) {
2329
+ break;
2330
+ }
2331
+ var field = reader.getFieldNumber();
2332
+ switch (field) {
2333
+ case 1:
2334
+ var value = /** @type {string} */ (reader.readString());
2335
+ msg.setPeerId(value);
2336
+ break;
2337
+ default:
2338
+ reader.skipField();
2339
+ break;
2340
+ }
2341
+ }
2342
+ return msg;
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * Serializes the message to binary data (in protobuf wire format).
2348
+ * @return {!Uint8Array}
2349
+ */
2350
+ proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary = function() {
2351
+ var writer = new jspb.BinaryWriter();
2352
+ proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this, writer);
2353
+ return writer.getResultBuffer();
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * Serializes the given message to binary data (in protobuf wire
2359
+ * format), writing to the given BinaryWriter.
2360
+ * @param {!proto.v1.signaling.api.DeletePeerRequest} message
2361
+ * @param {!jspb.BinaryWriter} writer
2362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2363
+ */
2364
+ proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter = function(message, writer) {
2365
+ var f = undefined;
2366
+ f = message.getPeerId();
2367
+ if (f.length > 0) {
2368
+ writer.writeString(
2369
+ 1,
2370
+ f
2371
+ );
2372
+ }
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * optional string peer_id = 1;
2378
+ * @return {string}
2379
+ */
2380
+ proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId = function() {
2381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * @param {string} value
2387
+ * @return {!proto.v1.signaling.api.DeletePeerRequest} returns this
2388
+ */
2389
+ proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId = function(value) {
2390
+ return jspb.Message.setProto3StringField(this, 1, value);
2391
+ };
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2398
+ /**
2399
+ * Creates an object representation of this proto.
2400
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2401
+ * Optional fields that are not set will be set to undefined.
2402
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2403
+ * For the list of reserved names please see:
2404
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2405
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2406
+ * JSPB instance for transitional soy proto support:
2407
+ * http://goto/soy-param-migration
2408
+ * @return {!Object}
2409
+ */
2410
+ proto.v1.signaling.api.DeletePeerResponse.prototype.toObject = function(opt_includeInstance) {
2411
+ return proto.v1.signaling.api.DeletePeerResponse.toObject(opt_includeInstance, this);
2412
+ };
2413
+
2414
+
2415
+ /**
2416
+ * Static version of the {@see toObject} method.
2417
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2418
+ * the JSPB instance for transitional soy proto support:
2419
+ * http://goto/soy-param-migration
2420
+ * @param {!proto.v1.signaling.api.DeletePeerResponse} msg The msg instance to transform.
2421
+ * @return {!Object}
2422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2423
+ */
2424
+ proto.v1.signaling.api.DeletePeerResponse.toObject = function(includeInstance, msg) {
2425
+ var f, obj = {
2426
+
2427
+ };
2428
+
2429
+ if (includeInstance) {
2430
+ obj.$jspbMessageInstance = msg;
2431
+ }
2432
+ return obj;
2433
+ };
2434
+ }
2435
+
2436
+
2437
+ /**
2438
+ * Deserializes binary data (in protobuf wire format).
2439
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2440
+ * @return {!proto.v1.signaling.api.DeletePeerResponse}
2441
+ */
2442
+ proto.v1.signaling.api.DeletePeerResponse.deserializeBinary = function(bytes) {
2443
+ var reader = new jspb.BinaryReader(bytes);
2444
+ var msg = new proto.v1.signaling.api.DeletePeerResponse;
2445
+ return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(msg, reader);
2446
+ };
2447
+
2448
+
2449
+ /**
2450
+ * Deserializes binary data (in protobuf wire format) from the
2451
+ * given reader into the given message object.
2452
+ * @param {!proto.v1.signaling.api.DeletePeerResponse} msg The message object to deserialize into.
2453
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2454
+ * @return {!proto.v1.signaling.api.DeletePeerResponse}
2455
+ */
2456
+ proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader = function(msg, reader) {
2457
+ while (reader.nextField()) {
2458
+ if (reader.isEndGroup()) {
2459
+ break;
2460
+ }
2461
+ var field = reader.getFieldNumber();
2462
+ switch (field) {
2463
+ default:
2464
+ reader.skipField();
2465
+ break;
2466
+ }
2467
+ }
2468
+ return msg;
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * Serializes the message to binary data (in protobuf wire format).
2474
+ * @return {!Uint8Array}
2475
+ */
2476
+ proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary = function() {
2477
+ var writer = new jspb.BinaryWriter();
2478
+ proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this, writer);
2479
+ return writer.getResultBuffer();
2480
+ };
2481
+
2482
+
2483
+ /**
2484
+ * Serializes the given message to binary data (in protobuf wire
2485
+ * format), writing to the given BinaryWriter.
2486
+ * @param {!proto.v1.signaling.api.DeletePeerResponse} message
2487
+ * @param {!jspb.BinaryWriter} writer
2488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2489
+ */
2490
+ proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter = function(message, writer) {
2491
+ var f = undefined;
2492
+ };
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2499
+ /**
2500
+ * Creates an object representation of this proto.
2501
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2502
+ * Optional fields that are not set will be set to undefined.
2503
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2504
+ * For the list of reserved names please see:
2505
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2506
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2507
+ * JSPB instance for transitional soy proto support:
2508
+ * http://goto/soy-param-migration
2509
+ * @return {!Object}
2510
+ */
2511
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject = function(opt_includeInstance) {
2512
+ return proto.v1.signaling.api.RefreshPeerRequest.toObject(opt_includeInstance, this);
2513
+ };
2514
+
2515
+
2516
+ /**
2517
+ * Static version of the {@see toObject} method.
2518
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2519
+ * the JSPB instance for transitional soy proto support:
2520
+ * http://goto/soy-param-migration
2521
+ * @param {!proto.v1.signaling.api.RefreshPeerRequest} msg The msg instance to transform.
2522
+ * @return {!Object}
2523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2524
+ */
2525
+ proto.v1.signaling.api.RefreshPeerRequest.toObject = function(includeInstance, msg) {
2526
+ var f, obj = {
2527
+ peer: (f = msg.getPeer()) && proto.v1.signaling.api.Peer.toObject(includeInstance, f)
2528
+ };
2529
+
2530
+ if (includeInstance) {
2531
+ obj.$jspbMessageInstance = msg;
2532
+ }
2533
+ return obj;
2534
+ };
2535
+ }
2536
+
2537
+
2538
+ /**
2539
+ * Deserializes binary data (in protobuf wire format).
2540
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2541
+ * @return {!proto.v1.signaling.api.RefreshPeerRequest}
2542
+ */
2543
+ proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary = function(bytes) {
2544
+ var reader = new jspb.BinaryReader(bytes);
2545
+ var msg = new proto.v1.signaling.api.RefreshPeerRequest;
2546
+ return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(msg, reader);
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * Deserializes binary data (in protobuf wire format) from the
2552
+ * given reader into the given message object.
2553
+ * @param {!proto.v1.signaling.api.RefreshPeerRequest} msg The message object to deserialize into.
2554
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2555
+ * @return {!proto.v1.signaling.api.RefreshPeerRequest}
2556
+ */
2557
+ proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader = function(msg, reader) {
2558
+ while (reader.nextField()) {
2559
+ if (reader.isEndGroup()) {
2560
+ break;
2561
+ }
2562
+ var field = reader.getFieldNumber();
2563
+ switch (field) {
2564
+ case 1:
2565
+ var value = new proto.v1.signaling.api.Peer;
2566
+ reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
2567
+ msg.setPeer(value);
2568
+ break;
2569
+ default:
2570
+ reader.skipField();
2571
+ break;
2572
+ }
2573
+ }
2574
+ return msg;
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * Serializes the message to binary data (in protobuf wire format).
2580
+ * @return {!Uint8Array}
2581
+ */
2582
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary = function() {
2583
+ var writer = new jspb.BinaryWriter();
2584
+ proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this, writer);
2585
+ return writer.getResultBuffer();
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * Serializes the given message to binary data (in protobuf wire
2591
+ * format), writing to the given BinaryWriter.
2592
+ * @param {!proto.v1.signaling.api.RefreshPeerRequest} message
2593
+ * @param {!jspb.BinaryWriter} writer
2594
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2595
+ */
2596
+ proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter = function(message, writer) {
2597
+ var f = undefined;
2598
+ f = message.getPeer();
2599
+ if (f != null) {
2600
+ writer.writeMessage(
2601
+ 1,
2602
+ f,
2603
+ proto.v1.signaling.api.Peer.serializeBinaryToWriter
2604
+ );
2605
+ }
2606
+ };
2607
+
2608
+
2609
+ /**
2610
+ * optional Peer peer = 1;
2611
+ * @return {?proto.v1.signaling.api.Peer}
2612
+ */
2613
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer = function() {
2614
+ return /** @type{?proto.v1.signaling.api.Peer} */ (
2615
+ jspb.Message.getWrapperField(this, proto.v1.signaling.api.Peer, 1));
2616
+ };
2617
+
2618
+
2619
+ /**
2620
+ * @param {?proto.v1.signaling.api.Peer|undefined} value
2621
+ * @return {!proto.v1.signaling.api.RefreshPeerRequest} returns this
2622
+ */
2623
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer = function(value) {
2624
+ return jspb.Message.setWrapperField(this, 1, value);
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * Clears the message field making it undefined.
2630
+ * @return {!proto.v1.signaling.api.RefreshPeerRequest} returns this
2631
+ */
2632
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer = function() {
2633
+ return this.setPeer(undefined);
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * Returns whether this field is set.
2639
+ * @return {boolean}
2640
+ */
2641
+ proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer = function() {
2642
+ return jspb.Message.getField(this, 1) != null;
2643
+ };
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2650
+ /**
2651
+ * Creates an object representation of this proto.
2652
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2653
+ * Optional fields that are not set will be set to undefined.
2654
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2655
+ * For the list of reserved names please see:
2656
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2657
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2658
+ * JSPB instance for transitional soy proto support:
2659
+ * http://goto/soy-param-migration
2660
+ * @return {!Object}
2661
+ */
2662
+ proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject = function(opt_includeInstance) {
2663
+ return proto.v1.signaling.api.RefreshPeerResponse.toObject(opt_includeInstance, this);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * Static version of the {@see toObject} method.
2669
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2670
+ * the JSPB instance for transitional soy proto support:
2671
+ * http://goto/soy-param-migration
2672
+ * @param {!proto.v1.signaling.api.RefreshPeerResponse} msg The msg instance to transform.
2673
+ * @return {!Object}
2674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2675
+ */
2676
+ proto.v1.signaling.api.RefreshPeerResponse.toObject = function(includeInstance, msg) {
2677
+ var f, obj = {
2678
+
2679
+ };
2680
+
2681
+ if (includeInstance) {
2682
+ obj.$jspbMessageInstance = msg;
2683
+ }
2684
+ return obj;
2685
+ };
2686
+ }
2687
+
2688
+
2689
+ /**
2690
+ * Deserializes binary data (in protobuf wire format).
2691
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2692
+ * @return {!proto.v1.signaling.api.RefreshPeerResponse}
2693
+ */
2694
+ proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary = function(bytes) {
2695
+ var reader = new jspb.BinaryReader(bytes);
2696
+ var msg = new proto.v1.signaling.api.RefreshPeerResponse;
2697
+ return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(msg, reader);
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * Deserializes binary data (in protobuf wire format) from the
2703
+ * given reader into the given message object.
2704
+ * @param {!proto.v1.signaling.api.RefreshPeerResponse} msg The message object to deserialize into.
2705
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2706
+ * @return {!proto.v1.signaling.api.RefreshPeerResponse}
2707
+ */
2708
+ proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader = function(msg, reader) {
2709
+ while (reader.nextField()) {
2710
+ if (reader.isEndGroup()) {
2711
+ break;
2712
+ }
2713
+ var field = reader.getFieldNumber();
2714
+ switch (field) {
2715
+ default:
2716
+ reader.skipField();
2717
+ break;
2718
+ }
2719
+ }
2720
+ return msg;
2721
+ };
2722
+
2723
+
2724
+ /**
2725
+ * Serializes the message to binary data (in protobuf wire format).
2726
+ * @return {!Uint8Array}
2727
+ */
2728
+ proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary = function() {
2729
+ var writer = new jspb.BinaryWriter();
2730
+ proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this, writer);
2731
+ return writer.getResultBuffer();
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * Serializes the given message to binary data (in protobuf wire
2737
+ * format), writing to the given BinaryWriter.
2738
+ * @param {!proto.v1.signaling.api.RefreshPeerResponse} message
2739
+ * @param {!jspb.BinaryWriter} writer
2740
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2741
+ */
2742
+ proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter = function(message, writer) {
2743
+ var f = undefined;
2744
+ };
2745
+
2746
+
2747
+
2748
+
2749
+
2750
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2751
+ /**
2752
+ * Creates an object representation of this proto.
2753
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2754
+ * Optional fields that are not set will be set to undefined.
2755
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2756
+ * For the list of reserved names please see:
2757
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2758
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2759
+ * JSPB instance for transitional soy proto support:
2760
+ * http://goto/soy-param-migration
2761
+ * @return {!Object}
2762
+ */
2763
+ proto.v1.signaling.api.GetPeersRequest.prototype.toObject = function(opt_includeInstance) {
2764
+ return proto.v1.signaling.api.GetPeersRequest.toObject(opt_includeInstance, this);
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * Static version of the {@see toObject} method.
2770
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2771
+ * the JSPB instance for transitional soy proto support:
2772
+ * http://goto/soy-param-migration
2773
+ * @param {!proto.v1.signaling.api.GetPeersRequest} msg The msg instance to transform.
2774
+ * @return {!Object}
2775
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2776
+ */
2777
+ proto.v1.signaling.api.GetPeersRequest.toObject = function(includeInstance, msg) {
2778
+ var f, obj = {
2779
+
2780
+ };
2781
+
2782
+ if (includeInstance) {
2783
+ obj.$jspbMessageInstance = msg;
2784
+ }
2785
+ return obj;
2786
+ };
2787
+ }
2788
+
2789
+
2790
+ /**
2791
+ * Deserializes binary data (in protobuf wire format).
2792
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2793
+ * @return {!proto.v1.signaling.api.GetPeersRequest}
2794
+ */
2795
+ proto.v1.signaling.api.GetPeersRequest.deserializeBinary = function(bytes) {
2796
+ var reader = new jspb.BinaryReader(bytes);
2797
+ var msg = new proto.v1.signaling.api.GetPeersRequest;
2798
+ return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(msg, reader);
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Deserializes binary data (in protobuf wire format) from the
2804
+ * given reader into the given message object.
2805
+ * @param {!proto.v1.signaling.api.GetPeersRequest} msg The message object to deserialize into.
2806
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2807
+ * @return {!proto.v1.signaling.api.GetPeersRequest}
2808
+ */
2809
+ proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader = function(msg, reader) {
2810
+ while (reader.nextField()) {
2811
+ if (reader.isEndGroup()) {
2812
+ break;
2813
+ }
2814
+ var field = reader.getFieldNumber();
2815
+ switch (field) {
2816
+ default:
2817
+ reader.skipField();
2818
+ break;
2819
+ }
2820
+ }
2821
+ return msg;
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * Serializes the message to binary data (in protobuf wire format).
2827
+ * @return {!Uint8Array}
2828
+ */
2829
+ proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary = function() {
2830
+ var writer = new jspb.BinaryWriter();
2831
+ proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this, writer);
2832
+ return writer.getResultBuffer();
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Serializes the given message to binary data (in protobuf wire
2838
+ * format), writing to the given BinaryWriter.
2839
+ * @param {!proto.v1.signaling.api.GetPeersRequest} message
2840
+ * @param {!jspb.BinaryWriter} writer
2841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2842
+ */
2843
+ proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter = function(message, writer) {
2844
+ var f = undefined;
2845
+ };
2846
+
2847
+
2848
+
2849
+ /**
2850
+ * List of repeated fields within this message type.
2851
+ * @private {!Array<number>}
2852
+ * @const
2853
+ */
2854
+ proto.v1.signaling.api.GetPeersResponse.repeatedFields_ = [1];
2855
+
2856
+
2857
+
2858
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2859
+ /**
2860
+ * Creates an object representation of this proto.
2861
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2862
+ * Optional fields that are not set will be set to undefined.
2863
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2864
+ * For the list of reserved names please see:
2865
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2866
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2867
+ * JSPB instance for transitional soy proto support:
2868
+ * http://goto/soy-param-migration
2869
+ * @return {!Object}
2870
+ */
2871
+ proto.v1.signaling.api.GetPeersResponse.prototype.toObject = function(opt_includeInstance) {
2872
+ return proto.v1.signaling.api.GetPeersResponse.toObject(opt_includeInstance, this);
2873
+ };
2874
+
2875
+
2876
+ /**
2877
+ * Static version of the {@see toObject} method.
2878
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2879
+ * the JSPB instance for transitional soy proto support:
2880
+ * http://goto/soy-param-migration
2881
+ * @param {!proto.v1.signaling.api.GetPeersResponse} msg The msg instance to transform.
2882
+ * @return {!Object}
2883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2884
+ */
2885
+ proto.v1.signaling.api.GetPeersResponse.toObject = function(includeInstance, msg) {
2886
+ var f, obj = {
2887
+ peersList: jspb.Message.toObjectList(msg.getPeersList(),
2888
+ proto.v1.signaling.api.Peer.toObject, includeInstance)
2889
+ };
2890
+
2891
+ if (includeInstance) {
2892
+ obj.$jspbMessageInstance = msg;
2893
+ }
2894
+ return obj;
2895
+ };
2896
+ }
2897
+
2898
+
2899
+ /**
2900
+ * Deserializes binary data (in protobuf wire format).
2901
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2902
+ * @return {!proto.v1.signaling.api.GetPeersResponse}
2903
+ */
2904
+ proto.v1.signaling.api.GetPeersResponse.deserializeBinary = function(bytes) {
2905
+ var reader = new jspb.BinaryReader(bytes);
2906
+ var msg = new proto.v1.signaling.api.GetPeersResponse;
2907
+ return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(msg, reader);
2908
+ };
2909
+
2910
+
2911
+ /**
2912
+ * Deserializes binary data (in protobuf wire format) from the
2913
+ * given reader into the given message object.
2914
+ * @param {!proto.v1.signaling.api.GetPeersResponse} msg The message object to deserialize into.
2915
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2916
+ * @return {!proto.v1.signaling.api.GetPeersResponse}
2917
+ */
2918
+ proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader = function(msg, reader) {
2919
+ while (reader.nextField()) {
2920
+ if (reader.isEndGroup()) {
2921
+ break;
2922
+ }
2923
+ var field = reader.getFieldNumber();
2924
+ switch (field) {
2925
+ case 1:
2926
+ var value = new proto.v1.signaling.api.Peer;
2927
+ reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
2928
+ msg.addPeers(value);
2929
+ break;
2930
+ default:
2931
+ reader.skipField();
2932
+ break;
2933
+ }
2934
+ }
2935
+ return msg;
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * Serializes the message to binary data (in protobuf wire format).
2941
+ * @return {!Uint8Array}
2942
+ */
2943
+ proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary = function() {
2944
+ var writer = new jspb.BinaryWriter();
2945
+ proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this, writer);
2946
+ return writer.getResultBuffer();
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * Serializes the given message to binary data (in protobuf wire
2952
+ * format), writing to the given BinaryWriter.
2953
+ * @param {!proto.v1.signaling.api.GetPeersResponse} message
2954
+ * @param {!jspb.BinaryWriter} writer
2955
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2956
+ */
2957
+ proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter = function(message, writer) {
2958
+ var f = undefined;
2959
+ f = message.getPeersList();
2960
+ if (f.length > 0) {
2961
+ writer.writeRepeatedMessage(
2962
+ 1,
2963
+ f,
2964
+ proto.v1.signaling.api.Peer.serializeBinaryToWriter
2965
+ );
2966
+ }
2967
+ };
2968
+
2969
+
2970
+ /**
2971
+ * repeated Peer peers = 1;
2972
+ * @return {!Array<!proto.v1.signaling.api.Peer>}
2973
+ */
2974
+ proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList = function() {
2975
+ return /** @type{!Array<!proto.v1.signaling.api.Peer>} */ (
2976
+ jspb.Message.getRepeatedWrapperField(this, proto.v1.signaling.api.Peer, 1));
2977
+ };
2978
+
2979
+
2980
+ /**
2981
+ * @param {!Array<!proto.v1.signaling.api.Peer>} value
2982
+ * @return {!proto.v1.signaling.api.GetPeersResponse} returns this
2983
+ */
2984
+ proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList = function(value) {
2985
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2986
+ };
2987
+
2988
+
2989
+ /**
2990
+ * @param {!proto.v1.signaling.api.Peer=} opt_value
2991
+ * @param {number=} opt_index
2992
+ * @return {!proto.v1.signaling.api.Peer}
2993
+ */
2994
+ proto.v1.signaling.api.GetPeersResponse.prototype.addPeers = function(opt_value, opt_index) {
2995
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.signaling.api.Peer, opt_index);
2996
+ };
2997
+
2998
+
2999
+ /**
3000
+ * Clears the list making it empty but non-null.
3001
+ * @return {!proto.v1.signaling.api.GetPeersResponse} returns this
3002
+ */
3003
+ proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList = function() {
3004
+ return this.setPeersList([]);
3005
+ };
3006
+
3007
+
3008
+
3009
+
3010
+
3011
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3012
+ /**
3013
+ * Creates an object representation of this proto.
3014
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3015
+ * Optional fields that are not set will be set to undefined.
3016
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3017
+ * For the list of reserved names please see:
3018
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3019
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3020
+ * JSPB instance for transitional soy proto support:
3021
+ * http://goto/soy-param-migration
3022
+ * @return {!Object}
3023
+ */
3024
+ proto.v1.signaling.api.GetIceServersRequest.prototype.toObject = function(opt_includeInstance) {
3025
+ return proto.v1.signaling.api.GetIceServersRequest.toObject(opt_includeInstance, this);
3026
+ };
3027
+
3028
+
3029
+ /**
3030
+ * Static version of the {@see toObject} method.
3031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3032
+ * the JSPB instance for transitional soy proto support:
3033
+ * http://goto/soy-param-migration
3034
+ * @param {!proto.v1.signaling.api.GetIceServersRequest} msg The msg instance to transform.
3035
+ * @return {!Object}
3036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3037
+ */
3038
+ proto.v1.signaling.api.GetIceServersRequest.toObject = function(includeInstance, msg) {
3039
+ var f, obj = {
3040
+
3041
+ };
3042
+
3043
+ if (includeInstance) {
3044
+ obj.$jspbMessageInstance = msg;
3045
+ }
3046
+ return obj;
3047
+ };
3048
+ }
3049
+
3050
+
3051
+ /**
3052
+ * Deserializes binary data (in protobuf wire format).
3053
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3054
+ * @return {!proto.v1.signaling.api.GetIceServersRequest}
3055
+ */
3056
+ proto.v1.signaling.api.GetIceServersRequest.deserializeBinary = function(bytes) {
3057
+ var reader = new jspb.BinaryReader(bytes);
3058
+ var msg = new proto.v1.signaling.api.GetIceServersRequest;
3059
+ return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(msg, reader);
3060
+ };
3061
+
3062
+
3063
+ /**
3064
+ * Deserializes binary data (in protobuf wire format) from the
3065
+ * given reader into the given message object.
3066
+ * @param {!proto.v1.signaling.api.GetIceServersRequest} msg The message object to deserialize into.
3067
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3068
+ * @return {!proto.v1.signaling.api.GetIceServersRequest}
3069
+ */
3070
+ proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader = function(msg, reader) {
3071
+ while (reader.nextField()) {
3072
+ if (reader.isEndGroup()) {
3073
+ break;
3074
+ }
3075
+ var field = reader.getFieldNumber();
3076
+ switch (field) {
3077
+ default:
3078
+ reader.skipField();
3079
+ break;
3080
+ }
3081
+ }
3082
+ return msg;
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * Serializes the message to binary data (in protobuf wire format).
3088
+ * @return {!Uint8Array}
3089
+ */
3090
+ proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary = function() {
3091
+ var writer = new jspb.BinaryWriter();
3092
+ proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this, writer);
3093
+ return writer.getResultBuffer();
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * Serializes the given message to binary data (in protobuf wire
3099
+ * format), writing to the given BinaryWriter.
3100
+ * @param {!proto.v1.signaling.api.GetIceServersRequest} message
3101
+ * @param {!jspb.BinaryWriter} writer
3102
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3103
+ */
3104
+ proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter = function(message, writer) {
3105
+ var f = undefined;
3106
+ };
3107
+
3108
+
3109
+
3110
+
3111
+
3112
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3113
+ /**
3114
+ * Creates an object representation of this proto.
3115
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3116
+ * Optional fields that are not set will be set to undefined.
3117
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3118
+ * For the list of reserved names please see:
3119
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3120
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3121
+ * JSPB instance for transitional soy proto support:
3122
+ * http://goto/soy-param-migration
3123
+ * @return {!Object}
3124
+ */
3125
+ proto.v1.signaling.api.GetIceServersResponse.prototype.toObject = function(opt_includeInstance) {
3126
+ return proto.v1.signaling.api.GetIceServersResponse.toObject(opt_includeInstance, this);
3127
+ };
3128
+
3129
+
3130
+ /**
3131
+ * Static version of the {@see toObject} method.
3132
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3133
+ * the JSPB instance for transitional soy proto support:
3134
+ * http://goto/soy-param-migration
3135
+ * @param {!proto.v1.signaling.api.GetIceServersResponse} msg The msg instance to transform.
3136
+ * @return {!Object}
3137
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3138
+ */
3139
+ proto.v1.signaling.api.GetIceServersResponse.toObject = function(includeInstance, msg) {
3140
+ var f, obj = {
3141
+ iceServers: jspb.Message.getFieldWithDefault(msg, 1, "")
3142
+ };
3143
+
3144
+ if (includeInstance) {
3145
+ obj.$jspbMessageInstance = msg;
3146
+ }
3147
+ return obj;
3148
+ };
3149
+ }
3150
+
3151
+
3152
+ /**
3153
+ * Deserializes binary data (in protobuf wire format).
3154
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3155
+ * @return {!proto.v1.signaling.api.GetIceServersResponse}
3156
+ */
3157
+ proto.v1.signaling.api.GetIceServersResponse.deserializeBinary = function(bytes) {
3158
+ var reader = new jspb.BinaryReader(bytes);
3159
+ var msg = new proto.v1.signaling.api.GetIceServersResponse;
3160
+ return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(msg, reader);
3161
+ };
3162
+
3163
+
3164
+ /**
3165
+ * Deserializes binary data (in protobuf wire format) from the
3166
+ * given reader into the given message object.
3167
+ * @param {!proto.v1.signaling.api.GetIceServersResponse} msg The message object to deserialize into.
3168
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3169
+ * @return {!proto.v1.signaling.api.GetIceServersResponse}
3170
+ */
3171
+ proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader = function(msg, reader) {
3172
+ while (reader.nextField()) {
3173
+ if (reader.isEndGroup()) {
3174
+ break;
3175
+ }
3176
+ var field = reader.getFieldNumber();
3177
+ switch (field) {
3178
+ case 1:
3179
+ var value = /** @type {string} */ (reader.readString());
3180
+ msg.setIceServers(value);
3181
+ break;
3182
+ default:
3183
+ reader.skipField();
3184
+ break;
3185
+ }
3186
+ }
3187
+ return msg;
3188
+ };
3189
+
3190
+
3191
+ /**
3192
+ * Serializes the message to binary data (in protobuf wire format).
3193
+ * @return {!Uint8Array}
3194
+ */
3195
+ proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary = function() {
3196
+ var writer = new jspb.BinaryWriter();
3197
+ proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this, writer);
3198
+ return writer.getResultBuffer();
3199
+ };
3200
+
3201
+
3202
+ /**
3203
+ * Serializes the given message to binary data (in protobuf wire
3204
+ * format), writing to the given BinaryWriter.
3205
+ * @param {!proto.v1.signaling.api.GetIceServersResponse} message
3206
+ * @param {!jspb.BinaryWriter} writer
3207
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3208
+ */
3209
+ proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter = function(message, writer) {
3210
+ var f = undefined;
3211
+ f = message.getIceServers();
3212
+ if (f.length > 0) {
3213
+ writer.writeString(
3214
+ 1,
3215
+ f
3216
+ );
3217
+ }
3218
+ };
3219
+
3220
+
3221
+ /**
3222
+ * optional string ice_servers = 1;
3223
+ * @return {string}
3224
+ */
3225
+ proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers = function() {
3226
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * @param {string} value
3232
+ * @return {!proto.v1.signaling.api.GetIceServersResponse} returns this
3233
+ */
3234
+ proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers = function(value) {
3235
+ return jspb.Message.setProto3StringField(this, 1, value);
3236
+ };
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3243
+ /**
3244
+ * Creates an object representation of this proto.
3245
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3246
+ * Optional fields that are not set will be set to undefined.
3247
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3248
+ * For the list of reserved names please see:
3249
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3250
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3251
+ * JSPB instance for transitional soy proto support:
3252
+ * http://goto/soy-param-migration
3253
+ * @return {!Object}
3254
+ */
3255
+ proto.v1.signaling.api.SendSignalRequest.prototype.toObject = function(opt_includeInstance) {
3256
+ return proto.v1.signaling.api.SendSignalRequest.toObject(opt_includeInstance, this);
3257
+ };
3258
+
3259
+
3260
+ /**
3261
+ * Static version of the {@see toObject} method.
3262
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3263
+ * the JSPB instance for transitional soy proto support:
3264
+ * http://goto/soy-param-migration
3265
+ * @param {!proto.v1.signaling.api.SendSignalRequest} msg The msg instance to transform.
3266
+ * @return {!Object}
3267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3268
+ */
3269
+ proto.v1.signaling.api.SendSignalRequest.toObject = function(includeInstance, msg) {
3270
+ var f, obj = {
3271
+ signal: (f = msg.getSignal()) && proto.v1.signaling.api.Signal.toObject(includeInstance, f)
3272
+ };
3273
+
3274
+ if (includeInstance) {
3275
+ obj.$jspbMessageInstance = msg;
3276
+ }
3277
+ return obj;
3278
+ };
3279
+ }
3280
+
3281
+
3282
+ /**
3283
+ * Deserializes binary data (in protobuf wire format).
3284
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3285
+ * @return {!proto.v1.signaling.api.SendSignalRequest}
3286
+ */
3287
+ proto.v1.signaling.api.SendSignalRequest.deserializeBinary = function(bytes) {
3288
+ var reader = new jspb.BinaryReader(bytes);
3289
+ var msg = new proto.v1.signaling.api.SendSignalRequest;
3290
+ return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(msg, reader);
3291
+ };
3292
+
3293
+
3294
+ /**
3295
+ * Deserializes binary data (in protobuf wire format) from the
3296
+ * given reader into the given message object.
3297
+ * @param {!proto.v1.signaling.api.SendSignalRequest} msg The message object to deserialize into.
3298
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3299
+ * @return {!proto.v1.signaling.api.SendSignalRequest}
3300
+ */
3301
+ proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader = function(msg, reader) {
3302
+ while (reader.nextField()) {
3303
+ if (reader.isEndGroup()) {
3304
+ break;
3305
+ }
3306
+ var field = reader.getFieldNumber();
3307
+ switch (field) {
3308
+ case 1:
3309
+ var value = new proto.v1.signaling.api.Signal;
3310
+ reader.readMessage(value,proto.v1.signaling.api.Signal.deserializeBinaryFromReader);
3311
+ msg.setSignal(value);
3312
+ break;
3313
+ default:
3314
+ reader.skipField();
3315
+ break;
3316
+ }
3317
+ }
3318
+ return msg;
3319
+ };
3320
+
3321
+
3322
+ /**
3323
+ * Serializes the message to binary data (in protobuf wire format).
3324
+ * @return {!Uint8Array}
3325
+ */
3326
+ proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary = function() {
3327
+ var writer = new jspb.BinaryWriter();
3328
+ proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this, writer);
3329
+ return writer.getResultBuffer();
3330
+ };
3331
+
3332
+
3333
+ /**
3334
+ * Serializes the given message to binary data (in protobuf wire
3335
+ * format), writing to the given BinaryWriter.
3336
+ * @param {!proto.v1.signaling.api.SendSignalRequest} message
3337
+ * @param {!jspb.BinaryWriter} writer
3338
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3339
+ */
3340
+ proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter = function(message, writer) {
3341
+ var f = undefined;
3342
+ f = message.getSignal();
3343
+ if (f != null) {
3344
+ writer.writeMessage(
3345
+ 1,
3346
+ f,
3347
+ proto.v1.signaling.api.Signal.serializeBinaryToWriter
3348
+ );
3349
+ }
3350
+ };
3351
+
3352
+
3353
+ /**
3354
+ * optional Signal signal = 1;
3355
+ * @return {?proto.v1.signaling.api.Signal}
3356
+ */
3357
+ proto.v1.signaling.api.SendSignalRequest.prototype.getSignal = function() {
3358
+ return /** @type{?proto.v1.signaling.api.Signal} */ (
3359
+ jspb.Message.getWrapperField(this, proto.v1.signaling.api.Signal, 1));
3360
+ };
3361
+
3362
+
3363
+ /**
3364
+ * @param {?proto.v1.signaling.api.Signal|undefined} value
3365
+ * @return {!proto.v1.signaling.api.SendSignalRequest} returns this
3366
+ */
3367
+ proto.v1.signaling.api.SendSignalRequest.prototype.setSignal = function(value) {
3368
+ return jspb.Message.setWrapperField(this, 1, value);
3369
+ };
3370
+
3371
+
3372
+ /**
3373
+ * Clears the message field making it undefined.
3374
+ * @return {!proto.v1.signaling.api.SendSignalRequest} returns this
3375
+ */
3376
+ proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal = function() {
3377
+ return this.setSignal(undefined);
3378
+ };
3379
+
3380
+
3381
+ /**
3382
+ * Returns whether this field is set.
3383
+ * @return {boolean}
3384
+ */
3385
+ proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal = function() {
3386
+ return jspb.Message.getField(this, 1) != null;
3387
+ };
3388
+
3389
+
3390
+
3391
+
3392
+
3393
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3394
+ /**
3395
+ * Creates an object representation of this proto.
3396
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3397
+ * Optional fields that are not set will be set to undefined.
3398
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3399
+ * For the list of reserved names please see:
3400
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3401
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3402
+ * JSPB instance for transitional soy proto support:
3403
+ * http://goto/soy-param-migration
3404
+ * @return {!Object}
3405
+ */
3406
+ proto.v1.signaling.api.SendSignalResponse.prototype.toObject = function(opt_includeInstance) {
3407
+ return proto.v1.signaling.api.SendSignalResponse.toObject(opt_includeInstance, this);
3408
+ };
3409
+
3410
+
3411
+ /**
3412
+ * Static version of the {@see toObject} method.
3413
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3414
+ * the JSPB instance for transitional soy proto support:
3415
+ * http://goto/soy-param-migration
3416
+ * @param {!proto.v1.signaling.api.SendSignalResponse} msg The msg instance to transform.
3417
+ * @return {!Object}
3418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3419
+ */
3420
+ proto.v1.signaling.api.SendSignalResponse.toObject = function(includeInstance, msg) {
3421
+ var f, obj = {
3422
+ sessionId: (f = msg.getSessionId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
3423
+ sessionCreatedTimestamp: (f = msg.getSessionCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f)
3424
+ };
3425
+
3426
+ if (includeInstance) {
3427
+ obj.$jspbMessageInstance = msg;
3428
+ }
3429
+ return obj;
3430
+ };
3431
+ }
3432
+
3433
+
3434
+ /**
3435
+ * Deserializes binary data (in protobuf wire format).
3436
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3437
+ * @return {!proto.v1.signaling.api.SendSignalResponse}
3438
+ */
3439
+ proto.v1.signaling.api.SendSignalResponse.deserializeBinary = function(bytes) {
3440
+ var reader = new jspb.BinaryReader(bytes);
3441
+ var msg = new proto.v1.signaling.api.SendSignalResponse;
3442
+ return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(msg, reader);
3443
+ };
3444
+
3445
+
3446
+ /**
3447
+ * Deserializes binary data (in protobuf wire format) from the
3448
+ * given reader into the given message object.
3449
+ * @param {!proto.v1.signaling.api.SendSignalResponse} msg The message object to deserialize into.
3450
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3451
+ * @return {!proto.v1.signaling.api.SendSignalResponse}
3452
+ */
3453
+ proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader = function(msg, reader) {
3454
+ while (reader.nextField()) {
3455
+ if (reader.isEndGroup()) {
3456
+ break;
3457
+ }
3458
+ var field = reader.getFieldNumber();
3459
+ switch (field) {
3460
+ case 1:
3461
+ var value = new google_protobuf_wrappers_pb.StringValue;
3462
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
3463
+ msg.setSessionId(value);
3464
+ break;
3465
+ case 2:
3466
+ var value = new google_protobuf_wrappers_pb.Int64Value;
3467
+ reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
3468
+ msg.setSessionCreatedTimestamp(value);
3469
+ break;
3470
+ default:
3471
+ reader.skipField();
3472
+ break;
3473
+ }
3474
+ }
3475
+ return msg;
3476
+ };
3477
+
3478
+
3479
+ /**
3480
+ * Serializes the message to binary data (in protobuf wire format).
3481
+ * @return {!Uint8Array}
3482
+ */
3483
+ proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary = function() {
3484
+ var writer = new jspb.BinaryWriter();
3485
+ proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this, writer);
3486
+ return writer.getResultBuffer();
3487
+ };
3488
+
3489
+
3490
+ /**
3491
+ * Serializes the given message to binary data (in protobuf wire
3492
+ * format), writing to the given BinaryWriter.
3493
+ * @param {!proto.v1.signaling.api.SendSignalResponse} message
3494
+ * @param {!jspb.BinaryWriter} writer
3495
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3496
+ */
3497
+ proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter = function(message, writer) {
3498
+ var f = undefined;
3499
+ f = message.getSessionId();
3500
+ if (f != null) {
3501
+ writer.writeMessage(
3502
+ 1,
3503
+ f,
3504
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
3505
+ );
3506
+ }
3507
+ f = message.getSessionCreatedTimestamp();
3508
+ if (f != null) {
3509
+ writer.writeMessage(
3510
+ 2,
3511
+ f,
3512
+ google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
3513
+ );
3514
+ }
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * optional google.protobuf.StringValue session_id = 1;
3520
+ * @return {?proto.google.protobuf.StringValue}
3521
+ */
3522
+ proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId = function() {
3523
+ return /** @type{?proto.google.protobuf.StringValue} */ (
3524
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
3525
+ };
3526
+
3527
+
3528
+ /**
3529
+ * @param {?proto.google.protobuf.StringValue|undefined} value
3530
+ * @return {!proto.v1.signaling.api.SendSignalResponse} returns this
3531
+ */
3532
+ proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId = function(value) {
3533
+ return jspb.Message.setWrapperField(this, 1, value);
3534
+ };
3535
+
3536
+
3537
+ /**
3538
+ * Clears the message field making it undefined.
3539
+ * @return {!proto.v1.signaling.api.SendSignalResponse} returns this
3540
+ */
3541
+ proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId = function() {
3542
+ return this.setSessionId(undefined);
3543
+ };
3544
+
3545
+
3546
+ /**
3547
+ * Returns whether this field is set.
3548
+ * @return {boolean}
3549
+ */
3550
+ proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId = function() {
3551
+ return jspb.Message.getField(this, 1) != null;
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * optional google.protobuf.Int64Value session_created_timestamp = 2;
3557
+ * @return {?proto.google.protobuf.Int64Value}
3558
+ */
3559
+ proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp = function() {
3560
+ return /** @type{?proto.google.protobuf.Int64Value} */ (
3561
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
3562
+ };
3563
+
3564
+
3565
+ /**
3566
+ * @param {?proto.google.protobuf.Int64Value|undefined} value
3567
+ * @return {!proto.v1.signaling.api.SendSignalResponse} returns this
3568
+ */
3569
+ proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp = function(value) {
3570
+ return jspb.Message.setWrapperField(this, 2, value);
3571
+ };
3572
+
3573
+
3574
+ /**
3575
+ * Clears the message field making it undefined.
3576
+ * @return {!proto.v1.signaling.api.SendSignalResponse} returns this
3577
+ */
3578
+ proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp = function() {
3579
+ return this.setSessionCreatedTimestamp(undefined);
3580
+ };
3581
+
3582
+
3583
+ /**
3584
+ * Returns whether this field is set.
3585
+ * @return {boolean}
3586
+ */
3587
+ proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp = function() {
3588
+ return jspb.Message.getField(this, 2) != null;
3589
+ };
3590
+
3591
+
3592
+
3593
+
3594
+
3595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3596
+ /**
3597
+ * Creates an object representation of this proto.
3598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3599
+ * Optional fields that are not set will be set to undefined.
3600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3601
+ * For the list of reserved names please see:
3602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3604
+ * JSPB instance for transitional soy proto support:
3605
+ * http://goto/soy-param-migration
3606
+ * @return {!Object}
3607
+ */
3608
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject = function(opt_includeInstance) {
3609
+ return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(opt_includeInstance, this);
3610
+ };
3611
+
3612
+
3613
+ /**
3614
+ * Static version of the {@see toObject} method.
3615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3616
+ * the JSPB instance for transitional soy proto support:
3617
+ * http://goto/soy-param-migration
3618
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} msg The msg instance to transform.
3619
+ * @return {!Object}
3620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3621
+ */
3622
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject = function(includeInstance, msg) {
3623
+ var f, obj = {
3624
+ peerId: jspb.Message.getFieldWithDefault(msg, 1, "")
3625
+ };
3626
+
3627
+ if (includeInstance) {
3628
+ obj.$jspbMessageInstance = msg;
3629
+ }
3630
+ return obj;
3631
+ };
3632
+ }
3633
+
3634
+
3635
+ /**
3636
+ * Deserializes binary data (in protobuf wire format).
3637
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3638
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest}
3639
+ */
3640
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary = function(bytes) {
3641
+ var reader = new jspb.BinaryReader(bytes);
3642
+ var msg = new proto.v1.signaling.api.ReceiveSignalStreamRequest;
3643
+ return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(msg, reader);
3644
+ };
3645
+
3646
+
3647
+ /**
3648
+ * Deserializes binary data (in protobuf wire format) from the
3649
+ * given reader into the given message object.
3650
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} msg The message object to deserialize into.
3651
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3652
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest}
3653
+ */
3654
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
3655
+ while (reader.nextField()) {
3656
+ if (reader.isEndGroup()) {
3657
+ break;
3658
+ }
3659
+ var field = reader.getFieldNumber();
3660
+ switch (field) {
3661
+ case 1:
3662
+ var value = /** @type {string} */ (reader.readString());
3663
+ msg.setPeerId(value);
3664
+ break;
3665
+ default:
3666
+ reader.skipField();
3667
+ break;
3668
+ }
3669
+ }
3670
+ return msg;
3671
+ };
3672
+
3673
+
3674
+ /**
3675
+ * Serializes the message to binary data (in protobuf wire format).
3676
+ * @return {!Uint8Array}
3677
+ */
3678
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary = function() {
3679
+ var writer = new jspb.BinaryWriter();
3680
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this, writer);
3681
+ return writer.getResultBuffer();
3682
+ };
3683
+
3684
+
3685
+ /**
3686
+ * Serializes the given message to binary data (in protobuf wire
3687
+ * format), writing to the given BinaryWriter.
3688
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} message
3689
+ * @param {!jspb.BinaryWriter} writer
3690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3691
+ */
3692
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter = function(message, writer) {
3693
+ var f = undefined;
3694
+ f = message.getPeerId();
3695
+ if (f.length > 0) {
3696
+ writer.writeString(
3697
+ 1,
3698
+ f
3699
+ );
3700
+ }
3701
+ };
3702
+
3703
+
3704
+ /**
3705
+ * optional string peer_id = 1;
3706
+ * @return {string}
3707
+ */
3708
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId = function() {
3709
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3710
+ };
3711
+
3712
+
3713
+ /**
3714
+ * @param {string} value
3715
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest} returns this
3716
+ */
3717
+ proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId = function(value) {
3718
+ return jspb.Message.setProto3StringField(this, 1, value);
3719
+ };
3720
+
3721
+
3722
+
3723
+
3724
+
3725
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3726
+ /**
3727
+ * Creates an object representation of this proto.
3728
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3729
+ * Optional fields that are not set will be set to undefined.
3730
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3731
+ * For the list of reserved names please see:
3732
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3733
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3734
+ * JSPB instance for transitional soy proto support:
3735
+ * http://goto/soy-param-migration
3736
+ * @return {!Object}
3737
+ */
3738
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject = function(opt_includeInstance) {
3739
+ return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(opt_includeInstance, this);
3740
+ };
3741
+
3742
+
3743
+ /**
3744
+ * Static version of the {@see toObject} method.
3745
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3746
+ * the JSPB instance for transitional soy proto support:
3747
+ * http://goto/soy-param-migration
3748
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} msg The msg instance to transform.
3749
+ * @return {!Object}
3750
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3751
+ */
3752
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject = function(includeInstance, msg) {
3753
+ var f, obj = {
3754
+ signal: (f = msg.getSignal()) && proto.v1.signaling.api.Signal.toObject(includeInstance, f)
3755
+ };
3756
+
3757
+ if (includeInstance) {
3758
+ obj.$jspbMessageInstance = msg;
3759
+ }
3760
+ return obj;
3761
+ };
3762
+ }
3763
+
3764
+
3765
+ /**
3766
+ * Deserializes binary data (in protobuf wire format).
3767
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3768
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse}
3769
+ */
3770
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary = function(bytes) {
3771
+ var reader = new jspb.BinaryReader(bytes);
3772
+ var msg = new proto.v1.signaling.api.ReceiveSignalStreamResponse;
3773
+ return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(msg, reader);
3774
+ };
3775
+
3776
+
3777
+ /**
3778
+ * Deserializes binary data (in protobuf wire format) from the
3779
+ * given reader into the given message object.
3780
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} msg The message object to deserialize into.
3781
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3782
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse}
3783
+ */
3784
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader = function(msg, reader) {
3785
+ while (reader.nextField()) {
3786
+ if (reader.isEndGroup()) {
3787
+ break;
3788
+ }
3789
+ var field = reader.getFieldNumber();
3790
+ switch (field) {
3791
+ case 1:
3792
+ var value = new proto.v1.signaling.api.Signal;
3793
+ reader.readMessage(value,proto.v1.signaling.api.Signal.deserializeBinaryFromReader);
3794
+ msg.setSignal(value);
3795
+ break;
3796
+ default:
3797
+ reader.skipField();
3798
+ break;
3799
+ }
3800
+ }
3801
+ return msg;
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * Serializes the message to binary data (in protobuf wire format).
3807
+ * @return {!Uint8Array}
3808
+ */
3809
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary = function() {
3810
+ var writer = new jspb.BinaryWriter();
3811
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this, writer);
3812
+ return writer.getResultBuffer();
3813
+ };
3814
+
3815
+
3816
+ /**
3817
+ * Serializes the given message to binary data (in protobuf wire
3818
+ * format), writing to the given BinaryWriter.
3819
+ * @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} message
3820
+ * @param {!jspb.BinaryWriter} writer
3821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3822
+ */
3823
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter = function(message, writer) {
3824
+ var f = undefined;
3825
+ f = message.getSignal();
3826
+ if (f != null) {
3827
+ writer.writeMessage(
3828
+ 1,
3829
+ f,
3830
+ proto.v1.signaling.api.Signal.serializeBinaryToWriter
3831
+ );
3832
+ }
3833
+ };
3834
+
3835
+
3836
+ /**
3837
+ * optional Signal signal = 1;
3838
+ * @return {?proto.v1.signaling.api.Signal}
3839
+ */
3840
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal = function() {
3841
+ return /** @type{?proto.v1.signaling.api.Signal} */ (
3842
+ jspb.Message.getWrapperField(this, proto.v1.signaling.api.Signal, 1));
3843
+ };
3844
+
3845
+
3846
+ /**
3847
+ * @param {?proto.v1.signaling.api.Signal|undefined} value
3848
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse} returns this
3849
+ */
3850
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal = function(value) {
3851
+ return jspb.Message.setWrapperField(this, 1, value);
3852
+ };
3853
+
3854
+
3855
+ /**
3856
+ * Clears the message field making it undefined.
3857
+ * @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse} returns this
3858
+ */
3859
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal = function() {
3860
+ return this.setSignal(undefined);
3861
+ };
3862
+
3863
+
3864
+ /**
3865
+ * Returns whether this field is set.
3866
+ * @return {boolean}
3867
+ */
3868
+ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal = function() {
3869
+ return jspb.Message.getField(this, 1) != null;
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * @enum {number}
3875
+ */
3876
+ proto.v1.signaling.api.SessionType = {
3877
+ UNKNOWN: 0,
3878
+ TELEOP: 1,
3879
+ PORT_FORWARD: 2,
3880
+ OBSERVE: 3,
3881
+ HEADLESS: 4
3882
+ };
3883
+
3884
+ goog.object.extend(exports, proto.v1.signaling.api);