@ondewo/sip-client-nodejs 3.1.0

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,1639 @@
1
+ // source: ondewo/sip/sip.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 = Function('return this')();
17
+
18
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
19
+ goog.object.extend(proto, google_protobuf_empty_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
+ goog.exportSymbol('proto.ondewo.sip.EndCallRequest', null, global);
23
+ goog.exportSymbol('proto.ondewo.sip.PlayWavFilesRequest', null, global);
24
+ goog.exportSymbol('proto.ondewo.sip.RegisterAccountRequest', null, global);
25
+ goog.exportSymbol('proto.ondewo.sip.SipStatus', null, global);
26
+ goog.exportSymbol('proto.ondewo.sip.SipStatus.StatusType', null, global);
27
+ goog.exportSymbol('proto.ondewo.sip.SipStatusHistoryResponse', null, global);
28
+ goog.exportSymbol('proto.ondewo.sip.StartCallRequest', null, global);
29
+ goog.exportSymbol('proto.ondewo.sip.StartSessionRequest', null, global);
30
+ goog.exportSymbol('proto.ondewo.sip.TransferCallRequest', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.ondewo.sip.EndCallRequest = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.ondewo.sip.EndCallRequest, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.ondewo.sip.EndCallRequest.displayName = 'proto.ondewo.sip.EndCallRequest';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.ondewo.sip.StartCallRequest = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.ondewo.sip.StartCallRequest, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.ondewo.sip.StartCallRequest.displayName = 'proto.ondewo.sip.StartCallRequest';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.ondewo.sip.RegisterAccountRequest = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.ondewo.sip.RegisterAccountRequest, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.ondewo.sip.RegisterAccountRequest.displayName = 'proto.ondewo.sip.RegisterAccountRequest';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.ondewo.sip.StartSessionRequest = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.ondewo.sip.StartSessionRequest, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.ondewo.sip.StartSessionRequest.displayName = 'proto.ondewo.sip.StartSessionRequest';
114
+ }
115
+ /**
116
+ * Generated by JsPbCodeGenerator.
117
+ * @param {Array=} opt_data Optional initial data array, typically from a
118
+ * server response, or constructed directly in Javascript. The array is used
119
+ * in place and becomes part of the constructed object. It is not cloned.
120
+ * If no data is provided, the constructed object will be empty, but still
121
+ * valid.
122
+ * @extends {jspb.Message}
123
+ * @constructor
124
+ */
125
+ proto.ondewo.sip.TransferCallRequest = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
+ };
128
+ goog.inherits(proto.ondewo.sip.TransferCallRequest, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.ondewo.sip.TransferCallRequest.displayName = 'proto.ondewo.sip.TransferCallRequest';
135
+ }
136
+ /**
137
+ * Generated by JsPbCodeGenerator.
138
+ * @param {Array=} opt_data Optional initial data array, typically from a
139
+ * server response, or constructed directly in Javascript. The array is used
140
+ * in place and becomes part of the constructed object. It is not cloned.
141
+ * If no data is provided, the constructed object will be empty, but still
142
+ * valid.
143
+ * @extends {jspb.Message}
144
+ * @constructor
145
+ */
146
+ proto.ondewo.sip.SipStatus = function(opt_data) {
147
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
148
+ };
149
+ goog.inherits(proto.ondewo.sip.SipStatus, jspb.Message);
150
+ if (goog.DEBUG && !COMPILED) {
151
+ /**
152
+ * @public
153
+ * @override
154
+ */
155
+ proto.ondewo.sip.SipStatus.displayName = 'proto.ondewo.sip.SipStatus';
156
+ }
157
+ /**
158
+ * Generated by JsPbCodeGenerator.
159
+ * @param {Array=} opt_data Optional initial data array, typically from a
160
+ * server response, or constructed directly in Javascript. The array is used
161
+ * in place and becomes part of the constructed object. It is not cloned.
162
+ * If no data is provided, the constructed object will be empty, but still
163
+ * valid.
164
+ * @extends {jspb.Message}
165
+ * @constructor
166
+ */
167
+ proto.ondewo.sip.SipStatusHistoryResponse = function(opt_data) {
168
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.sip.SipStatusHistoryResponse.repeatedFields_, null);
169
+ };
170
+ goog.inherits(proto.ondewo.sip.SipStatusHistoryResponse, jspb.Message);
171
+ if (goog.DEBUG && !COMPILED) {
172
+ /**
173
+ * @public
174
+ * @override
175
+ */
176
+ proto.ondewo.sip.SipStatusHistoryResponse.displayName = 'proto.ondewo.sip.SipStatusHistoryResponse';
177
+ }
178
+ /**
179
+ * Generated by JsPbCodeGenerator.
180
+ * @param {Array=} opt_data Optional initial data array, typically from a
181
+ * server response, or constructed directly in Javascript. The array is used
182
+ * in place and becomes part of the constructed object. It is not cloned.
183
+ * If no data is provided, the constructed object will be empty, but still
184
+ * valid.
185
+ * @extends {jspb.Message}
186
+ * @constructor
187
+ */
188
+ proto.ondewo.sip.PlayWavFilesRequest = function(opt_data) {
189
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.sip.PlayWavFilesRequest.repeatedFields_, null);
190
+ };
191
+ goog.inherits(proto.ondewo.sip.PlayWavFilesRequest, jspb.Message);
192
+ if (goog.DEBUG && !COMPILED) {
193
+ /**
194
+ * @public
195
+ * @override
196
+ */
197
+ proto.ondewo.sip.PlayWavFilesRequest.displayName = 'proto.ondewo.sip.PlayWavFilesRequest';
198
+ }
199
+
200
+
201
+
202
+ if (jspb.Message.GENERATE_TO_OBJECT) {
203
+ /**
204
+ * Creates an object representation of this proto.
205
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
206
+ * Optional fields that are not set will be set to undefined.
207
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
208
+ * For the list of reserved names please see:
209
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
210
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
211
+ * JSPB instance for transitional soy proto support:
212
+ * http://goto/soy-param-migration
213
+ * @return {!Object}
214
+ */
215
+ proto.ondewo.sip.EndCallRequest.prototype.toObject = function(opt_includeInstance) {
216
+ return proto.ondewo.sip.EndCallRequest.toObject(opt_includeInstance, this);
217
+ };
218
+
219
+
220
+ /**
221
+ * Static version of the {@see toObject} method.
222
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
223
+ * the JSPB instance for transitional soy proto support:
224
+ * http://goto/soy-param-migration
225
+ * @param {!proto.ondewo.sip.EndCallRequest} msg The msg instance to transform.
226
+ * @return {!Object}
227
+ * @suppress {unusedLocalVariables} f is only used for nested messages
228
+ */
229
+ proto.ondewo.sip.EndCallRequest.toObject = function(includeInstance, msg) {
230
+ var f, obj = {
231
+ hardHangup: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
232
+ };
233
+
234
+ if (includeInstance) {
235
+ obj.$jspbMessageInstance = msg;
236
+ }
237
+ return obj;
238
+ };
239
+ }
240
+
241
+
242
+ /**
243
+ * Deserializes binary data (in protobuf wire format).
244
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
245
+ * @return {!proto.ondewo.sip.EndCallRequest}
246
+ */
247
+ proto.ondewo.sip.EndCallRequest.deserializeBinary = function(bytes) {
248
+ var reader = new jspb.BinaryReader(bytes);
249
+ var msg = new proto.ondewo.sip.EndCallRequest;
250
+ return proto.ondewo.sip.EndCallRequest.deserializeBinaryFromReader(msg, reader);
251
+ };
252
+
253
+
254
+ /**
255
+ * Deserializes binary data (in protobuf wire format) from the
256
+ * given reader into the given message object.
257
+ * @param {!proto.ondewo.sip.EndCallRequest} msg The message object to deserialize into.
258
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
259
+ * @return {!proto.ondewo.sip.EndCallRequest}
260
+ */
261
+ proto.ondewo.sip.EndCallRequest.deserializeBinaryFromReader = function(msg, reader) {
262
+ while (reader.nextField()) {
263
+ if (reader.isEndGroup()) {
264
+ break;
265
+ }
266
+ var field = reader.getFieldNumber();
267
+ switch (field) {
268
+ case 1:
269
+ var value = /** @type {boolean} */ (reader.readBool());
270
+ msg.setHardHangup(value);
271
+ break;
272
+ default:
273
+ reader.skipField();
274
+ break;
275
+ }
276
+ }
277
+ return msg;
278
+ };
279
+
280
+
281
+ /**
282
+ * Serializes the message to binary data (in protobuf wire format).
283
+ * @return {!Uint8Array}
284
+ */
285
+ proto.ondewo.sip.EndCallRequest.prototype.serializeBinary = function() {
286
+ var writer = new jspb.BinaryWriter();
287
+ proto.ondewo.sip.EndCallRequest.serializeBinaryToWriter(this, writer);
288
+ return writer.getResultBuffer();
289
+ };
290
+
291
+
292
+ /**
293
+ * Serializes the given message to binary data (in protobuf wire
294
+ * format), writing to the given BinaryWriter.
295
+ * @param {!proto.ondewo.sip.EndCallRequest} message
296
+ * @param {!jspb.BinaryWriter} writer
297
+ * @suppress {unusedLocalVariables} f is only used for nested messages
298
+ */
299
+ proto.ondewo.sip.EndCallRequest.serializeBinaryToWriter = function(message, writer) {
300
+ var f = undefined;
301
+ f = message.getHardHangup();
302
+ if (f) {
303
+ writer.writeBool(
304
+ 1,
305
+ f
306
+ );
307
+ }
308
+ };
309
+
310
+
311
+ /**
312
+ * optional bool hard_hangup = 1;
313
+ * @return {boolean}
314
+ */
315
+ proto.ondewo.sip.EndCallRequest.prototype.getHardHangup = function() {
316
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
317
+ };
318
+
319
+
320
+ /**
321
+ * @param {boolean} value
322
+ * @return {!proto.ondewo.sip.EndCallRequest} returns this
323
+ */
324
+ proto.ondewo.sip.EndCallRequest.prototype.setHardHangup = function(value) {
325
+ return jspb.Message.setProto3BooleanField(this, 1, value);
326
+ };
327
+
328
+
329
+
330
+
331
+
332
+ if (jspb.Message.GENERATE_TO_OBJECT) {
333
+ /**
334
+ * Creates an object representation of this proto.
335
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
336
+ * Optional fields that are not set will be set to undefined.
337
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
338
+ * For the list of reserved names please see:
339
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
340
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
341
+ * JSPB instance for transitional soy proto support:
342
+ * http://goto/soy-param-migration
343
+ * @return {!Object}
344
+ */
345
+ proto.ondewo.sip.StartCallRequest.prototype.toObject = function(opt_includeInstance) {
346
+ return proto.ondewo.sip.StartCallRequest.toObject(opt_includeInstance, this);
347
+ };
348
+
349
+
350
+ /**
351
+ * Static version of the {@see toObject} method.
352
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
353
+ * the JSPB instance for transitional soy proto support:
354
+ * http://goto/soy-param-migration
355
+ * @param {!proto.ondewo.sip.StartCallRequest} msg The msg instance to transform.
356
+ * @return {!Object}
357
+ * @suppress {unusedLocalVariables} f is only used for nested messages
358
+ */
359
+ proto.ondewo.sip.StartCallRequest.toObject = function(includeInstance, msg) {
360
+ var f, obj = {
361
+ calleeId: jspb.Message.getFieldWithDefault(msg, 1, ""),
362
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
363
+ };
364
+
365
+ if (includeInstance) {
366
+ obj.$jspbMessageInstance = msg;
367
+ }
368
+ return obj;
369
+ };
370
+ }
371
+
372
+
373
+ /**
374
+ * Deserializes binary data (in protobuf wire format).
375
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
376
+ * @return {!proto.ondewo.sip.StartCallRequest}
377
+ */
378
+ proto.ondewo.sip.StartCallRequest.deserializeBinary = function(bytes) {
379
+ var reader = new jspb.BinaryReader(bytes);
380
+ var msg = new proto.ondewo.sip.StartCallRequest;
381
+ return proto.ondewo.sip.StartCallRequest.deserializeBinaryFromReader(msg, reader);
382
+ };
383
+
384
+
385
+ /**
386
+ * Deserializes binary data (in protobuf wire format) from the
387
+ * given reader into the given message object.
388
+ * @param {!proto.ondewo.sip.StartCallRequest} msg The message object to deserialize into.
389
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
390
+ * @return {!proto.ondewo.sip.StartCallRequest}
391
+ */
392
+ proto.ondewo.sip.StartCallRequest.deserializeBinaryFromReader = function(msg, reader) {
393
+ while (reader.nextField()) {
394
+ if (reader.isEndGroup()) {
395
+ break;
396
+ }
397
+ var field = reader.getFieldNumber();
398
+ switch (field) {
399
+ case 1:
400
+ var value = /** @type {string} */ (reader.readString());
401
+ msg.setCalleeId(value);
402
+ break;
403
+ case 2:
404
+ var value = msg.getHeadersMap();
405
+ reader.readMessage(value, function(message, reader) {
406
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
407
+ });
408
+ break;
409
+ default:
410
+ reader.skipField();
411
+ break;
412
+ }
413
+ }
414
+ return msg;
415
+ };
416
+
417
+
418
+ /**
419
+ * Serializes the message to binary data (in protobuf wire format).
420
+ * @return {!Uint8Array}
421
+ */
422
+ proto.ondewo.sip.StartCallRequest.prototype.serializeBinary = function() {
423
+ var writer = new jspb.BinaryWriter();
424
+ proto.ondewo.sip.StartCallRequest.serializeBinaryToWriter(this, writer);
425
+ return writer.getResultBuffer();
426
+ };
427
+
428
+
429
+ /**
430
+ * Serializes the given message to binary data (in protobuf wire
431
+ * format), writing to the given BinaryWriter.
432
+ * @param {!proto.ondewo.sip.StartCallRequest} message
433
+ * @param {!jspb.BinaryWriter} writer
434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
435
+ */
436
+ proto.ondewo.sip.StartCallRequest.serializeBinaryToWriter = function(message, writer) {
437
+ var f = undefined;
438
+ f = message.getCalleeId();
439
+ if (f.length > 0) {
440
+ writer.writeString(
441
+ 1,
442
+ f
443
+ );
444
+ }
445
+ f = message.getHeadersMap(true);
446
+ if (f && f.getLength() > 0) {
447
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
448
+ }
449
+ };
450
+
451
+
452
+ /**
453
+ * optional string callee_id = 1;
454
+ * @return {string}
455
+ */
456
+ proto.ondewo.sip.StartCallRequest.prototype.getCalleeId = function() {
457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
458
+ };
459
+
460
+
461
+ /**
462
+ * @param {string} value
463
+ * @return {!proto.ondewo.sip.StartCallRequest} returns this
464
+ */
465
+ proto.ondewo.sip.StartCallRequest.prototype.setCalleeId = function(value) {
466
+ return jspb.Message.setProto3StringField(this, 1, value);
467
+ };
468
+
469
+
470
+ /**
471
+ * map<string, string> headers = 2;
472
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
473
+ * empty, instead returning `undefined`
474
+ * @return {!jspb.Map<string,string>}
475
+ */
476
+ proto.ondewo.sip.StartCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
477
+ return /** @type {!jspb.Map<string,string>} */ (
478
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
479
+ null));
480
+ };
481
+
482
+
483
+ /**
484
+ * Clears values from the map. The map will be non-null.
485
+ * @return {!proto.ondewo.sip.StartCallRequest} returns this
486
+ */
487
+ proto.ondewo.sip.StartCallRequest.prototype.clearHeadersMap = function() {
488
+ this.getHeadersMap().clear();
489
+ return this;};
490
+
491
+
492
+
493
+
494
+
495
+ if (jspb.Message.GENERATE_TO_OBJECT) {
496
+ /**
497
+ * Creates an object representation of this proto.
498
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
499
+ * Optional fields that are not set will be set to undefined.
500
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
501
+ * For the list of reserved names please see:
502
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
503
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
504
+ * JSPB instance for transitional soy proto support:
505
+ * http://goto/soy-param-migration
506
+ * @return {!Object}
507
+ */
508
+ proto.ondewo.sip.RegisterAccountRequest.prototype.toObject = function(opt_includeInstance) {
509
+ return proto.ondewo.sip.RegisterAccountRequest.toObject(opt_includeInstance, this);
510
+ };
511
+
512
+
513
+ /**
514
+ * Static version of the {@see toObject} method.
515
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
516
+ * the JSPB instance for transitional soy proto support:
517
+ * http://goto/soy-param-migration
518
+ * @param {!proto.ondewo.sip.RegisterAccountRequest} msg The msg instance to transform.
519
+ * @return {!Object}
520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
521
+ */
522
+ proto.ondewo.sip.RegisterAccountRequest.toObject = function(includeInstance, msg) {
523
+ var f, obj = {
524
+ accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
525
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
526
+ };
527
+
528
+ if (includeInstance) {
529
+ obj.$jspbMessageInstance = msg;
530
+ }
531
+ return obj;
532
+ };
533
+ }
534
+
535
+
536
+ /**
537
+ * Deserializes binary data (in protobuf wire format).
538
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
539
+ * @return {!proto.ondewo.sip.RegisterAccountRequest}
540
+ */
541
+ proto.ondewo.sip.RegisterAccountRequest.deserializeBinary = function(bytes) {
542
+ var reader = new jspb.BinaryReader(bytes);
543
+ var msg = new proto.ondewo.sip.RegisterAccountRequest;
544
+ return proto.ondewo.sip.RegisterAccountRequest.deserializeBinaryFromReader(msg, reader);
545
+ };
546
+
547
+
548
+ /**
549
+ * Deserializes binary data (in protobuf wire format) from the
550
+ * given reader into the given message object.
551
+ * @param {!proto.ondewo.sip.RegisterAccountRequest} msg The message object to deserialize into.
552
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
553
+ * @return {!proto.ondewo.sip.RegisterAccountRequest}
554
+ */
555
+ proto.ondewo.sip.RegisterAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
556
+ while (reader.nextField()) {
557
+ if (reader.isEndGroup()) {
558
+ break;
559
+ }
560
+ var field = reader.getFieldNumber();
561
+ switch (field) {
562
+ case 1:
563
+ var value = /** @type {string} */ (reader.readString());
564
+ msg.setAccountName(value);
565
+ break;
566
+ case 2:
567
+ var value = /** @type {string} */ (reader.readString());
568
+ msg.setPassword(value);
569
+ break;
570
+ default:
571
+ reader.skipField();
572
+ break;
573
+ }
574
+ }
575
+ return msg;
576
+ };
577
+
578
+
579
+ /**
580
+ * Serializes the message to binary data (in protobuf wire format).
581
+ * @return {!Uint8Array}
582
+ */
583
+ proto.ondewo.sip.RegisterAccountRequest.prototype.serializeBinary = function() {
584
+ var writer = new jspb.BinaryWriter();
585
+ proto.ondewo.sip.RegisterAccountRequest.serializeBinaryToWriter(this, writer);
586
+ return writer.getResultBuffer();
587
+ };
588
+
589
+
590
+ /**
591
+ * Serializes the given message to binary data (in protobuf wire
592
+ * format), writing to the given BinaryWriter.
593
+ * @param {!proto.ondewo.sip.RegisterAccountRequest} message
594
+ * @param {!jspb.BinaryWriter} writer
595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
596
+ */
597
+ proto.ondewo.sip.RegisterAccountRequest.serializeBinaryToWriter = function(message, writer) {
598
+ var f = undefined;
599
+ f = message.getAccountName();
600
+ if (f.length > 0) {
601
+ writer.writeString(
602
+ 1,
603
+ f
604
+ );
605
+ }
606
+ f = message.getPassword();
607
+ if (f.length > 0) {
608
+ writer.writeString(
609
+ 2,
610
+ f
611
+ );
612
+ }
613
+ };
614
+
615
+
616
+ /**
617
+ * optional string account_name = 1;
618
+ * @return {string}
619
+ */
620
+ proto.ondewo.sip.RegisterAccountRequest.prototype.getAccountName = function() {
621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {string} value
627
+ * @return {!proto.ondewo.sip.RegisterAccountRequest} returns this
628
+ */
629
+ proto.ondewo.sip.RegisterAccountRequest.prototype.setAccountName = function(value) {
630
+ return jspb.Message.setProto3StringField(this, 1, value);
631
+ };
632
+
633
+
634
+ /**
635
+ * optional string password = 2;
636
+ * @return {string}
637
+ */
638
+ proto.ondewo.sip.RegisterAccountRequest.prototype.getPassword = function() {
639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
640
+ };
641
+
642
+
643
+ /**
644
+ * @param {string} value
645
+ * @return {!proto.ondewo.sip.RegisterAccountRequest} returns this
646
+ */
647
+ proto.ondewo.sip.RegisterAccountRequest.prototype.setPassword = function(value) {
648
+ return jspb.Message.setProto3StringField(this, 2, value);
649
+ };
650
+
651
+
652
+
653
+
654
+
655
+ if (jspb.Message.GENERATE_TO_OBJECT) {
656
+ /**
657
+ * Creates an object representation of this proto.
658
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
659
+ * Optional fields that are not set will be set to undefined.
660
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
661
+ * For the list of reserved names please see:
662
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
663
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
664
+ * JSPB instance for transitional soy proto support:
665
+ * http://goto/soy-param-migration
666
+ * @return {!Object}
667
+ */
668
+ proto.ondewo.sip.StartSessionRequest.prototype.toObject = function(opt_includeInstance) {
669
+ return proto.ondewo.sip.StartSessionRequest.toObject(opt_includeInstance, this);
670
+ };
671
+
672
+
673
+ /**
674
+ * Static version of the {@see toObject} method.
675
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
676
+ * the JSPB instance for transitional soy proto support:
677
+ * http://goto/soy-param-migration
678
+ * @param {!proto.ondewo.sip.StartSessionRequest} msg The msg instance to transform.
679
+ * @return {!Object}
680
+ * @suppress {unusedLocalVariables} f is only used for nested messages
681
+ */
682
+ proto.ondewo.sip.StartSessionRequest.toObject = function(includeInstance, msg) {
683
+ var f, obj = {
684
+ accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
685
+ autoAnswerInterval: jspb.Message.getFieldWithDefault(msg, 2, 0)
686
+ };
687
+
688
+ if (includeInstance) {
689
+ obj.$jspbMessageInstance = msg;
690
+ }
691
+ return obj;
692
+ };
693
+ }
694
+
695
+
696
+ /**
697
+ * Deserializes binary data (in protobuf wire format).
698
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
699
+ * @return {!proto.ondewo.sip.StartSessionRequest}
700
+ */
701
+ proto.ondewo.sip.StartSessionRequest.deserializeBinary = function(bytes) {
702
+ var reader = new jspb.BinaryReader(bytes);
703
+ var msg = new proto.ondewo.sip.StartSessionRequest;
704
+ return proto.ondewo.sip.StartSessionRequest.deserializeBinaryFromReader(msg, reader);
705
+ };
706
+
707
+
708
+ /**
709
+ * Deserializes binary data (in protobuf wire format) from the
710
+ * given reader into the given message object.
711
+ * @param {!proto.ondewo.sip.StartSessionRequest} msg The message object to deserialize into.
712
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
713
+ * @return {!proto.ondewo.sip.StartSessionRequest}
714
+ */
715
+ proto.ondewo.sip.StartSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
716
+ while (reader.nextField()) {
717
+ if (reader.isEndGroup()) {
718
+ break;
719
+ }
720
+ var field = reader.getFieldNumber();
721
+ switch (field) {
722
+ case 1:
723
+ var value = /** @type {string} */ (reader.readString());
724
+ msg.setAccountName(value);
725
+ break;
726
+ case 2:
727
+ var value = /** @type {number} */ (reader.readInt32());
728
+ msg.setAutoAnswerInterval(value);
729
+ break;
730
+ default:
731
+ reader.skipField();
732
+ break;
733
+ }
734
+ }
735
+ return msg;
736
+ };
737
+
738
+
739
+ /**
740
+ * Serializes the message to binary data (in protobuf wire format).
741
+ * @return {!Uint8Array}
742
+ */
743
+ proto.ondewo.sip.StartSessionRequest.prototype.serializeBinary = function() {
744
+ var writer = new jspb.BinaryWriter();
745
+ proto.ondewo.sip.StartSessionRequest.serializeBinaryToWriter(this, writer);
746
+ return writer.getResultBuffer();
747
+ };
748
+
749
+
750
+ /**
751
+ * Serializes the given message to binary data (in protobuf wire
752
+ * format), writing to the given BinaryWriter.
753
+ * @param {!proto.ondewo.sip.StartSessionRequest} message
754
+ * @param {!jspb.BinaryWriter} writer
755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
756
+ */
757
+ proto.ondewo.sip.StartSessionRequest.serializeBinaryToWriter = function(message, writer) {
758
+ var f = undefined;
759
+ f = message.getAccountName();
760
+ if (f.length > 0) {
761
+ writer.writeString(
762
+ 1,
763
+ f
764
+ );
765
+ }
766
+ f = message.getAutoAnswerInterval();
767
+ if (f !== 0) {
768
+ writer.writeInt32(
769
+ 2,
770
+ f
771
+ );
772
+ }
773
+ };
774
+
775
+
776
+ /**
777
+ * optional string account_name = 1;
778
+ * @return {string}
779
+ */
780
+ proto.ondewo.sip.StartSessionRequest.prototype.getAccountName = function() {
781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
782
+ };
783
+
784
+
785
+ /**
786
+ * @param {string} value
787
+ * @return {!proto.ondewo.sip.StartSessionRequest} returns this
788
+ */
789
+ proto.ondewo.sip.StartSessionRequest.prototype.setAccountName = function(value) {
790
+ return jspb.Message.setProto3StringField(this, 1, value);
791
+ };
792
+
793
+
794
+ /**
795
+ * optional int32 auto_answer_interval = 2;
796
+ * @return {number}
797
+ */
798
+ proto.ondewo.sip.StartSessionRequest.prototype.getAutoAnswerInterval = function() {
799
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
800
+ };
801
+
802
+
803
+ /**
804
+ * @param {number} value
805
+ * @return {!proto.ondewo.sip.StartSessionRequest} returns this
806
+ */
807
+ proto.ondewo.sip.StartSessionRequest.prototype.setAutoAnswerInterval = function(value) {
808
+ return jspb.Message.setProto3IntField(this, 2, value);
809
+ };
810
+
811
+
812
+
813
+
814
+
815
+ if (jspb.Message.GENERATE_TO_OBJECT) {
816
+ /**
817
+ * Creates an object representation of this proto.
818
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
819
+ * Optional fields that are not set will be set to undefined.
820
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
821
+ * For the list of reserved names please see:
822
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
823
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
824
+ * JSPB instance for transitional soy proto support:
825
+ * http://goto/soy-param-migration
826
+ * @return {!Object}
827
+ */
828
+ proto.ondewo.sip.TransferCallRequest.prototype.toObject = function(opt_includeInstance) {
829
+ return proto.ondewo.sip.TransferCallRequest.toObject(opt_includeInstance, this);
830
+ };
831
+
832
+
833
+ /**
834
+ * Static version of the {@see toObject} method.
835
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
836
+ * the JSPB instance for transitional soy proto support:
837
+ * http://goto/soy-param-migration
838
+ * @param {!proto.ondewo.sip.TransferCallRequest} msg The msg instance to transform.
839
+ * @return {!Object}
840
+ * @suppress {unusedLocalVariables} f is only used for nested messages
841
+ */
842
+ proto.ondewo.sip.TransferCallRequest.toObject = function(includeInstance, msg) {
843
+ var f, obj = {
844
+ transferId: jspb.Message.getFieldWithDefault(msg, 1, ""),
845
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
846
+ };
847
+
848
+ if (includeInstance) {
849
+ obj.$jspbMessageInstance = msg;
850
+ }
851
+ return obj;
852
+ };
853
+ }
854
+
855
+
856
+ /**
857
+ * Deserializes binary data (in protobuf wire format).
858
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
859
+ * @return {!proto.ondewo.sip.TransferCallRequest}
860
+ */
861
+ proto.ondewo.sip.TransferCallRequest.deserializeBinary = function(bytes) {
862
+ var reader = new jspb.BinaryReader(bytes);
863
+ var msg = new proto.ondewo.sip.TransferCallRequest;
864
+ return proto.ondewo.sip.TransferCallRequest.deserializeBinaryFromReader(msg, reader);
865
+ };
866
+
867
+
868
+ /**
869
+ * Deserializes binary data (in protobuf wire format) from the
870
+ * given reader into the given message object.
871
+ * @param {!proto.ondewo.sip.TransferCallRequest} msg The message object to deserialize into.
872
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
873
+ * @return {!proto.ondewo.sip.TransferCallRequest}
874
+ */
875
+ proto.ondewo.sip.TransferCallRequest.deserializeBinaryFromReader = function(msg, reader) {
876
+ while (reader.nextField()) {
877
+ if (reader.isEndGroup()) {
878
+ break;
879
+ }
880
+ var field = reader.getFieldNumber();
881
+ switch (field) {
882
+ case 1:
883
+ var value = /** @type {string} */ (reader.readString());
884
+ msg.setTransferId(value);
885
+ break;
886
+ case 2:
887
+ var value = msg.getHeadersMap();
888
+ reader.readMessage(value, function(message, reader) {
889
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
890
+ });
891
+ break;
892
+ default:
893
+ reader.skipField();
894
+ break;
895
+ }
896
+ }
897
+ return msg;
898
+ };
899
+
900
+
901
+ /**
902
+ * Serializes the message to binary data (in protobuf wire format).
903
+ * @return {!Uint8Array}
904
+ */
905
+ proto.ondewo.sip.TransferCallRequest.prototype.serializeBinary = function() {
906
+ var writer = new jspb.BinaryWriter();
907
+ proto.ondewo.sip.TransferCallRequest.serializeBinaryToWriter(this, writer);
908
+ return writer.getResultBuffer();
909
+ };
910
+
911
+
912
+ /**
913
+ * Serializes the given message to binary data (in protobuf wire
914
+ * format), writing to the given BinaryWriter.
915
+ * @param {!proto.ondewo.sip.TransferCallRequest} message
916
+ * @param {!jspb.BinaryWriter} writer
917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
918
+ */
919
+ proto.ondewo.sip.TransferCallRequest.serializeBinaryToWriter = function(message, writer) {
920
+ var f = undefined;
921
+ f = message.getTransferId();
922
+ if (f.length > 0) {
923
+ writer.writeString(
924
+ 1,
925
+ f
926
+ );
927
+ }
928
+ f = message.getHeadersMap(true);
929
+ if (f && f.getLength() > 0) {
930
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
931
+ }
932
+ };
933
+
934
+
935
+ /**
936
+ * optional string transfer_id = 1;
937
+ * @return {string}
938
+ */
939
+ proto.ondewo.sip.TransferCallRequest.prototype.getTransferId = function() {
940
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
941
+ };
942
+
943
+
944
+ /**
945
+ * @param {string} value
946
+ * @return {!proto.ondewo.sip.TransferCallRequest} returns this
947
+ */
948
+ proto.ondewo.sip.TransferCallRequest.prototype.setTransferId = function(value) {
949
+ return jspb.Message.setProto3StringField(this, 1, value);
950
+ };
951
+
952
+
953
+ /**
954
+ * map<string, string> headers = 2;
955
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
956
+ * empty, instead returning `undefined`
957
+ * @return {!jspb.Map<string,string>}
958
+ */
959
+ proto.ondewo.sip.TransferCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
960
+ return /** @type {!jspb.Map<string,string>} */ (
961
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
962
+ null));
963
+ };
964
+
965
+
966
+ /**
967
+ * Clears values from the map. The map will be non-null.
968
+ * @return {!proto.ondewo.sip.TransferCallRequest} returns this
969
+ */
970
+ proto.ondewo.sip.TransferCallRequest.prototype.clearHeadersMap = function() {
971
+ this.getHeadersMap().clear();
972
+ return this;};
973
+
974
+
975
+
976
+
977
+
978
+ if (jspb.Message.GENERATE_TO_OBJECT) {
979
+ /**
980
+ * Creates an object representation of this proto.
981
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
982
+ * Optional fields that are not set will be set to undefined.
983
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
984
+ * For the list of reserved names please see:
985
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
986
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
987
+ * JSPB instance for transitional soy proto support:
988
+ * http://goto/soy-param-migration
989
+ * @return {!Object}
990
+ */
991
+ proto.ondewo.sip.SipStatus.prototype.toObject = function(opt_includeInstance) {
992
+ return proto.ondewo.sip.SipStatus.toObject(opt_includeInstance, this);
993
+ };
994
+
995
+
996
+ /**
997
+ * Static version of the {@see toObject} method.
998
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
999
+ * the JSPB instance for transitional soy proto support:
1000
+ * http://goto/soy-param-migration
1001
+ * @param {!proto.ondewo.sip.SipStatus} msg The msg instance to transform.
1002
+ * @return {!Object}
1003
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1004
+ */
1005
+ proto.ondewo.sip.SipStatus.toObject = function(includeInstance, msg) {
1006
+ var f, obj = {
1007
+ accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1008
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1009
+ statusType: jspb.Message.getFieldWithDefault(msg, 3, 0),
1010
+ calleeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1011
+ transferCallId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1012
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
1013
+ };
1014
+
1015
+ if (includeInstance) {
1016
+ obj.$jspbMessageInstance = msg;
1017
+ }
1018
+ return obj;
1019
+ };
1020
+ }
1021
+
1022
+
1023
+ /**
1024
+ * Deserializes binary data (in protobuf wire format).
1025
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1026
+ * @return {!proto.ondewo.sip.SipStatus}
1027
+ */
1028
+ proto.ondewo.sip.SipStatus.deserializeBinary = function(bytes) {
1029
+ var reader = new jspb.BinaryReader(bytes);
1030
+ var msg = new proto.ondewo.sip.SipStatus;
1031
+ return proto.ondewo.sip.SipStatus.deserializeBinaryFromReader(msg, reader);
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Deserializes binary data (in protobuf wire format) from the
1037
+ * given reader into the given message object.
1038
+ * @param {!proto.ondewo.sip.SipStatus} msg The message object to deserialize into.
1039
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1040
+ * @return {!proto.ondewo.sip.SipStatus}
1041
+ */
1042
+ proto.ondewo.sip.SipStatus.deserializeBinaryFromReader = function(msg, reader) {
1043
+ while (reader.nextField()) {
1044
+ if (reader.isEndGroup()) {
1045
+ break;
1046
+ }
1047
+ var field = reader.getFieldNumber();
1048
+ switch (field) {
1049
+ case 1:
1050
+ var value = /** @type {string} */ (reader.readString());
1051
+ msg.setAccountName(value);
1052
+ break;
1053
+ case 2:
1054
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1055
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1056
+ msg.setTimestamp(value);
1057
+ break;
1058
+ case 3:
1059
+ var value = /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (reader.readEnum());
1060
+ msg.setStatusType(value);
1061
+ break;
1062
+ case 4:
1063
+ var value = /** @type {string} */ (reader.readString());
1064
+ msg.setCalleeId(value);
1065
+ break;
1066
+ case 5:
1067
+ var value = /** @type {string} */ (reader.readString());
1068
+ msg.setTransferCallId(value);
1069
+ break;
1070
+ case 6:
1071
+ var value = msg.getHeadersMap();
1072
+ reader.readMessage(value, function(message, reader) {
1073
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1074
+ });
1075
+ break;
1076
+ default:
1077
+ reader.skipField();
1078
+ break;
1079
+ }
1080
+ }
1081
+ return msg;
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Serializes the message to binary data (in protobuf wire format).
1087
+ * @return {!Uint8Array}
1088
+ */
1089
+ proto.ondewo.sip.SipStatus.prototype.serializeBinary = function() {
1090
+ var writer = new jspb.BinaryWriter();
1091
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter(this, writer);
1092
+ return writer.getResultBuffer();
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * Serializes the given message to binary data (in protobuf wire
1098
+ * format), writing to the given BinaryWriter.
1099
+ * @param {!proto.ondewo.sip.SipStatus} message
1100
+ * @param {!jspb.BinaryWriter} writer
1101
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1102
+ */
1103
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter = function(message, writer) {
1104
+ var f = undefined;
1105
+ f = message.getAccountName();
1106
+ if (f.length > 0) {
1107
+ writer.writeString(
1108
+ 1,
1109
+ f
1110
+ );
1111
+ }
1112
+ f = message.getTimestamp();
1113
+ if (f != null) {
1114
+ writer.writeMessage(
1115
+ 2,
1116
+ f,
1117
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1118
+ );
1119
+ }
1120
+ f = message.getStatusType();
1121
+ if (f !== 0.0) {
1122
+ writer.writeEnum(
1123
+ 3,
1124
+ f
1125
+ );
1126
+ }
1127
+ f = message.getCalleeId();
1128
+ if (f.length > 0) {
1129
+ writer.writeString(
1130
+ 4,
1131
+ f
1132
+ );
1133
+ }
1134
+ f = message.getTransferCallId();
1135
+ if (f.length > 0) {
1136
+ writer.writeString(
1137
+ 5,
1138
+ f
1139
+ );
1140
+ }
1141
+ f = message.getHeadersMap(true);
1142
+ if (f && f.getLength() > 0) {
1143
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1144
+ }
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * @enum {number}
1150
+ */
1151
+ proto.ondewo.sip.SipStatus.StatusType = {
1152
+ NO_SESSION: 0,
1153
+ REGISTERED: 1,
1154
+ READY: 2,
1155
+ INCOMING_CALL_INITIATED: 3,
1156
+ OUTGOING_CALL_INITIATED: 4,
1157
+ OUTGOING_CALL_CONNECTED: 5,
1158
+ INCOMING_CALL_CONNECTED: 6,
1159
+ TRANSFER_CALL_INITIATED: 7,
1160
+ SOFT_HANGUP_INITIATED: 8,
1161
+ HARD_HANGUP_INITIATED: 9,
1162
+ INCOMING_CALL_FAILED: 10,
1163
+ OUTGOING_CALL_FAILED: 11,
1164
+ INCOMING_CALL_FINISHED: 12,
1165
+ OUTGOING_CALL_FINISHED: 13
1166
+ };
1167
+
1168
+ /**
1169
+ * optional string account_name = 1;
1170
+ * @return {string}
1171
+ */
1172
+ proto.ondewo.sip.SipStatus.prototype.getAccountName = function() {
1173
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1174
+ };
1175
+
1176
+
1177
+ /**
1178
+ * @param {string} value
1179
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1180
+ */
1181
+ proto.ondewo.sip.SipStatus.prototype.setAccountName = function(value) {
1182
+ return jspb.Message.setProto3StringField(this, 1, value);
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * optional google.protobuf.Timestamp timestamp = 2;
1188
+ * @return {?proto.google.protobuf.Timestamp}
1189
+ */
1190
+ proto.ondewo.sip.SipStatus.prototype.getTimestamp = function() {
1191
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1192
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1198
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1199
+ */
1200
+ proto.ondewo.sip.SipStatus.prototype.setTimestamp = function(value) {
1201
+ return jspb.Message.setWrapperField(this, 2, value);
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * Clears the message field making it undefined.
1207
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1208
+ */
1209
+ proto.ondewo.sip.SipStatus.prototype.clearTimestamp = function() {
1210
+ return this.setTimestamp(undefined);
1211
+ };
1212
+
1213
+
1214
+ /**
1215
+ * Returns whether this field is set.
1216
+ * @return {boolean}
1217
+ */
1218
+ proto.ondewo.sip.SipStatus.prototype.hasTimestamp = function() {
1219
+ return jspb.Message.getField(this, 2) != null;
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * optional StatusType status_type = 3;
1225
+ * @return {!proto.ondewo.sip.SipStatus.StatusType}
1226
+ */
1227
+ proto.ondewo.sip.SipStatus.prototype.getStatusType = function() {
1228
+ return /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1229
+ };
1230
+
1231
+
1232
+ /**
1233
+ * @param {!proto.ondewo.sip.SipStatus.StatusType} value
1234
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1235
+ */
1236
+ proto.ondewo.sip.SipStatus.prototype.setStatusType = function(value) {
1237
+ return jspb.Message.setProto3EnumField(this, 3, value);
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * optional string callee_id = 4;
1243
+ * @return {string}
1244
+ */
1245
+ proto.ondewo.sip.SipStatus.prototype.getCalleeId = function() {
1246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * @param {string} value
1252
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1253
+ */
1254
+ proto.ondewo.sip.SipStatus.prototype.setCalleeId = function(value) {
1255
+ return jspb.Message.setProto3StringField(this, 4, value);
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * optional string transfer_call_id = 5;
1261
+ * @return {string}
1262
+ */
1263
+ proto.ondewo.sip.SipStatus.prototype.getTransferCallId = function() {
1264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * @param {string} value
1270
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1271
+ */
1272
+ proto.ondewo.sip.SipStatus.prototype.setTransferCallId = function(value) {
1273
+ return jspb.Message.setProto3StringField(this, 5, value);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * map<string, string> headers = 6;
1279
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1280
+ * empty, instead returning `undefined`
1281
+ * @return {!jspb.Map<string,string>}
1282
+ */
1283
+ proto.ondewo.sip.SipStatus.prototype.getHeadersMap = function(opt_noLazyCreate) {
1284
+ return /** @type {!jspb.Map<string,string>} */ (
1285
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
1286
+ null));
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * Clears values from the map. The map will be non-null.
1292
+ * @return {!proto.ondewo.sip.SipStatus} returns this
1293
+ */
1294
+ proto.ondewo.sip.SipStatus.prototype.clearHeadersMap = function() {
1295
+ this.getHeadersMap().clear();
1296
+ return this;};
1297
+
1298
+
1299
+
1300
+ /**
1301
+ * List of repeated fields within this message type.
1302
+ * @private {!Array<number>}
1303
+ * @const
1304
+ */
1305
+ proto.ondewo.sip.SipStatusHistoryResponse.repeatedFields_ = [1];
1306
+
1307
+
1308
+
1309
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1310
+ /**
1311
+ * Creates an object representation of this proto.
1312
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1313
+ * Optional fields that are not set will be set to undefined.
1314
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1315
+ * For the list of reserved names please see:
1316
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1317
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1318
+ * JSPB instance for transitional soy proto support:
1319
+ * http://goto/soy-param-migration
1320
+ * @return {!Object}
1321
+ */
1322
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.toObject = function(opt_includeInstance) {
1323
+ return proto.ondewo.sip.SipStatusHistoryResponse.toObject(opt_includeInstance, this);
1324
+ };
1325
+
1326
+
1327
+ /**
1328
+ * Static version of the {@see toObject} method.
1329
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1330
+ * the JSPB instance for transitional soy proto support:
1331
+ * http://goto/soy-param-migration
1332
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The msg instance to transform.
1333
+ * @return {!Object}
1334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1335
+ */
1336
+ proto.ondewo.sip.SipStatusHistoryResponse.toObject = function(includeInstance, msg) {
1337
+ var f, obj = {
1338
+ statusHistoryList: jspb.Message.toObjectList(msg.getStatusHistoryList(),
1339
+ proto.ondewo.sip.SipStatus.toObject, includeInstance)
1340
+ };
1341
+
1342
+ if (includeInstance) {
1343
+ obj.$jspbMessageInstance = msg;
1344
+ }
1345
+ return obj;
1346
+ };
1347
+ }
1348
+
1349
+
1350
+ /**
1351
+ * Deserializes binary data (in protobuf wire format).
1352
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1353
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
1354
+ */
1355
+ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinary = function(bytes) {
1356
+ var reader = new jspb.BinaryReader(bytes);
1357
+ var msg = new proto.ondewo.sip.SipStatusHistoryResponse;
1358
+ return proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader(msg, reader);
1359
+ };
1360
+
1361
+
1362
+ /**
1363
+ * Deserializes binary data (in protobuf wire format) from the
1364
+ * given reader into the given message object.
1365
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The message object to deserialize into.
1366
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1367
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
1368
+ */
1369
+ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
1370
+ while (reader.nextField()) {
1371
+ if (reader.isEndGroup()) {
1372
+ break;
1373
+ }
1374
+ var field = reader.getFieldNumber();
1375
+ switch (field) {
1376
+ case 1:
1377
+ var value = new proto.ondewo.sip.SipStatus;
1378
+ reader.readMessage(value,proto.ondewo.sip.SipStatus.deserializeBinaryFromReader);
1379
+ msg.addStatusHistory(value);
1380
+ break;
1381
+ default:
1382
+ reader.skipField();
1383
+ break;
1384
+ }
1385
+ }
1386
+ return msg;
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Serializes the message to binary data (in protobuf wire format).
1392
+ * @return {!Uint8Array}
1393
+ */
1394
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.serializeBinary = function() {
1395
+ var writer = new jspb.BinaryWriter();
1396
+ proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter(this, writer);
1397
+ return writer.getResultBuffer();
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Serializes the given message to binary data (in protobuf wire
1403
+ * format), writing to the given BinaryWriter.
1404
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} message
1405
+ * @param {!jspb.BinaryWriter} writer
1406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1407
+ */
1408
+ proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter = function(message, writer) {
1409
+ var f = undefined;
1410
+ f = message.getStatusHistoryList();
1411
+ if (f.length > 0) {
1412
+ writer.writeRepeatedMessage(
1413
+ 1,
1414
+ f,
1415
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter
1416
+ );
1417
+ }
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * repeated SipStatus status_history = 1;
1423
+ * @return {!Array<!proto.ondewo.sip.SipStatus>}
1424
+ */
1425
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.getStatusHistoryList = function() {
1426
+ return /** @type{!Array<!proto.ondewo.sip.SipStatus>} */ (
1427
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.sip.SipStatus, 1));
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * @param {!Array<!proto.ondewo.sip.SipStatus>} value
1433
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
1434
+ */
1435
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.setStatusHistoryList = function(value) {
1436
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1437
+ };
1438
+
1439
+
1440
+ /**
1441
+ * @param {!proto.ondewo.sip.SipStatus=} opt_value
1442
+ * @param {number=} opt_index
1443
+ * @return {!proto.ondewo.sip.SipStatus}
1444
+ */
1445
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.addStatusHistory = function(opt_value, opt_index) {
1446
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.sip.SipStatus, opt_index);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * Clears the list making it empty but non-null.
1452
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
1453
+ */
1454
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.clearStatusHistoryList = function() {
1455
+ return this.setStatusHistoryList([]);
1456
+ };
1457
+
1458
+
1459
+
1460
+ /**
1461
+ * List of repeated fields within this message type.
1462
+ * @private {!Array<number>}
1463
+ * @const
1464
+ */
1465
+ proto.ondewo.sip.PlayWavFilesRequest.repeatedFields_ = [1];
1466
+
1467
+
1468
+
1469
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1470
+ /**
1471
+ * Creates an object representation of this proto.
1472
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1473
+ * Optional fields that are not set will be set to undefined.
1474
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1475
+ * For the list of reserved names please see:
1476
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1477
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1478
+ * JSPB instance for transitional soy proto support:
1479
+ * http://goto/soy-param-migration
1480
+ * @return {!Object}
1481
+ */
1482
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.toObject = function(opt_includeInstance) {
1483
+ return proto.ondewo.sip.PlayWavFilesRequest.toObject(opt_includeInstance, this);
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * Static version of the {@see toObject} method.
1489
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1490
+ * the JSPB instance for transitional soy proto support:
1491
+ * http://goto/soy-param-migration
1492
+ * @param {!proto.ondewo.sip.PlayWavFilesRequest} msg The msg instance to transform.
1493
+ * @return {!Object}
1494
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1495
+ */
1496
+ proto.ondewo.sip.PlayWavFilesRequest.toObject = function(includeInstance, msg) {
1497
+ var f, obj = {
1498
+ wavFilesList: msg.getWavFilesList_asB64()
1499
+ };
1500
+
1501
+ if (includeInstance) {
1502
+ obj.$jspbMessageInstance = msg;
1503
+ }
1504
+ return obj;
1505
+ };
1506
+ }
1507
+
1508
+
1509
+ /**
1510
+ * Deserializes binary data (in protobuf wire format).
1511
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1512
+ * @return {!proto.ondewo.sip.PlayWavFilesRequest}
1513
+ */
1514
+ proto.ondewo.sip.PlayWavFilesRequest.deserializeBinary = function(bytes) {
1515
+ var reader = new jspb.BinaryReader(bytes);
1516
+ var msg = new proto.ondewo.sip.PlayWavFilesRequest;
1517
+ return proto.ondewo.sip.PlayWavFilesRequest.deserializeBinaryFromReader(msg, reader);
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Deserializes binary data (in protobuf wire format) from the
1523
+ * given reader into the given message object.
1524
+ * @param {!proto.ondewo.sip.PlayWavFilesRequest} msg The message object to deserialize into.
1525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1526
+ * @return {!proto.ondewo.sip.PlayWavFilesRequest}
1527
+ */
1528
+ proto.ondewo.sip.PlayWavFilesRequest.deserializeBinaryFromReader = function(msg, reader) {
1529
+ while (reader.nextField()) {
1530
+ if (reader.isEndGroup()) {
1531
+ break;
1532
+ }
1533
+ var field = reader.getFieldNumber();
1534
+ switch (field) {
1535
+ case 1:
1536
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1537
+ msg.addWavFiles(value);
1538
+ break;
1539
+ default:
1540
+ reader.skipField();
1541
+ break;
1542
+ }
1543
+ }
1544
+ return msg;
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * Serializes the message to binary data (in protobuf wire format).
1550
+ * @return {!Uint8Array}
1551
+ */
1552
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.serializeBinary = function() {
1553
+ var writer = new jspb.BinaryWriter();
1554
+ proto.ondewo.sip.PlayWavFilesRequest.serializeBinaryToWriter(this, writer);
1555
+ return writer.getResultBuffer();
1556
+ };
1557
+
1558
+
1559
+ /**
1560
+ * Serializes the given message to binary data (in protobuf wire
1561
+ * format), writing to the given BinaryWriter.
1562
+ * @param {!proto.ondewo.sip.PlayWavFilesRequest} message
1563
+ * @param {!jspb.BinaryWriter} writer
1564
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1565
+ */
1566
+ proto.ondewo.sip.PlayWavFilesRequest.serializeBinaryToWriter = function(message, writer) {
1567
+ var f = undefined;
1568
+ f = message.getWavFilesList_asU8();
1569
+ if (f.length > 0) {
1570
+ writer.writeRepeatedBytes(
1571
+ 1,
1572
+ f
1573
+ );
1574
+ }
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * repeated bytes wav_files = 1;
1580
+ * @return {!(Array<!Uint8Array>|Array<string>)}
1581
+ */
1582
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.getWavFilesList = function() {
1583
+ return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 1));
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * repeated bytes wav_files = 1;
1589
+ * This is a type-conversion wrapper around `getWavFilesList()`
1590
+ * @return {!Array<string>}
1591
+ */
1592
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.getWavFilesList_asB64 = function() {
1593
+ return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
1594
+ this.getWavFilesList()));
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * repeated bytes wav_files = 1;
1600
+ * Note that Uint8Array is not supported on all browsers.
1601
+ * @see http://caniuse.com/Uint8Array
1602
+ * This is a type-conversion wrapper around `getWavFilesList()`
1603
+ * @return {!Array<!Uint8Array>}
1604
+ */
1605
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.getWavFilesList_asU8 = function() {
1606
+ return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
1607
+ this.getWavFilesList()));
1608
+ };
1609
+
1610
+
1611
+ /**
1612
+ * @param {!(Array<!Uint8Array>|Array<string>)} value
1613
+ * @return {!proto.ondewo.sip.PlayWavFilesRequest} returns this
1614
+ */
1615
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.setWavFilesList = function(value) {
1616
+ return jspb.Message.setField(this, 1, value || []);
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * @param {!(string|Uint8Array)} value
1622
+ * @param {number=} opt_index
1623
+ * @return {!proto.ondewo.sip.PlayWavFilesRequest} returns this
1624
+ */
1625
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.addWavFiles = function(value, opt_index) {
1626
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Clears the list making it empty but non-null.
1632
+ * @return {!proto.ondewo.sip.PlayWavFilesRequest} returns this
1633
+ */
1634
+ proto.ondewo.sip.PlayWavFilesRequest.prototype.clearWavFilesList = function() {
1635
+ return this.setWavFilesList([]);
1636
+ };
1637
+
1638
+
1639
+ goog.object.extend(exports, proto.ondewo.sip);