@ondewo/sip-client-nodejs 5.4.2 → 5.5.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.
@@ -25,9 +25,29 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
25
25
  goog.object.extend(proto, google_protobuf_empty_pb);
26
26
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
27
  goog.object.extend(proto, google_protobuf_timestamp_pb);
28
+ goog.exportSymbol('proto.ondewo.sip.AnsweringMachineDetectionResult', null, global);
29
+ goog.exportSymbol('proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken', null, global);
30
+ goog.exportSymbol('proto.ondewo.sip.AnsweringMachineDetectionResult.Cause', null, global);
31
+ goog.exportSymbol('proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict', null, global);
32
+ goog.exportSymbol('proto.ondewo.sip.MediaControlOwner', null, global);
33
+ goog.exportSymbol('proto.ondewo.sip.MediaControlSetting', null, global);
34
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioConfig', null, global);
35
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioEndReason', null, global);
36
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioEnded', null, global);
37
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioFrame', null, global);
38
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioMode', null, global);
39
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioRequest', null, global);
40
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioRequest.RequestCase', null, global);
41
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioResponse', null, global);
42
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioResponse.ResponseCase', null, global);
43
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioStarted', null, global);
44
+ goog.exportSymbol('proto.ondewo.sip.SipCallAudioStats', null, global);
28
45
  goog.exportSymbol('proto.ondewo.sip.SipEndCallRequest', null, global);
46
+ goog.exportSymbol('proto.ondewo.sip.SipEndCallRequest.EndCallReason', null, global);
29
47
  goog.exportSymbol('proto.ondewo.sip.SipPlayWavFilesRequest', null, global);
30
48
  goog.exportSymbol('proto.ondewo.sip.SipRegisterAccountRequest', null, global);
49
+ goog.exportSymbol('proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest', null, global);
50
+ goog.exportSymbol('proto.ondewo.sip.SipSetCallMediaControlRequest', null, global);
31
51
  goog.exportSymbol('proto.ondewo.sip.SipStartCallRequest', null, global);
32
52
  goog.exportSymbol('proto.ondewo.sip.SipStartSessionRequest', null, global);
33
53
  goog.exportSymbol('proto.ondewo.sip.SipStatus', null, global);
@@ -55,6 +75,48 @@ if (goog.DEBUG && !COMPILED) {
55
75
  */
56
76
  proto.ondewo.sip.SipEndCallRequest.displayName = 'proto.ondewo.sip.SipEndCallRequest';
57
77
  }
78
+ /**
79
+ * Generated by JsPbCodeGenerator.
80
+ * @param {Array=} opt_data Optional initial data array, typically from a
81
+ * server response, or constructed directly in Javascript. The array is used
82
+ * in place and becomes part of the constructed object. It is not cloned.
83
+ * If no data is provided, the constructed object will be empty, but still
84
+ * valid.
85
+ * @extends {jspb.Message}
86
+ * @constructor
87
+ */
88
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest = function(opt_data) {
89
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
90
+ };
91
+ goog.inherits(proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest, jspb.Message);
92
+ if (goog.DEBUG && !COMPILED) {
93
+ /**
94
+ * @public
95
+ * @override
96
+ */
97
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.displayName = 'proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest';
98
+ }
99
+ /**
100
+ * Generated by JsPbCodeGenerator.
101
+ * @param {Array=} opt_data Optional initial data array, typically from a
102
+ * server response, or constructed directly in Javascript. The array is used
103
+ * in place and becomes part of the constructed object. It is not cloned.
104
+ * If no data is provided, the constructed object will be empty, but still
105
+ * valid.
106
+ * @extends {jspb.Message}
107
+ * @constructor
108
+ */
109
+ proto.ondewo.sip.AnsweringMachineDetectionResult = function(opt_data) {
110
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.sip.AnsweringMachineDetectionResult.repeatedFields_, null);
111
+ };
112
+ goog.inherits(proto.ondewo.sip.AnsweringMachineDetectionResult, jspb.Message);
113
+ if (goog.DEBUG && !COMPILED) {
114
+ /**
115
+ * @public
116
+ * @override
117
+ */
118
+ proto.ondewo.sip.AnsweringMachineDetectionResult.displayName = 'proto.ondewo.sip.AnsweringMachineDetectionResult';
119
+ }
58
120
  /**
59
121
  * Generated by JsPbCodeGenerator.
60
122
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -181,6 +243,174 @@ if (goog.DEBUG && !COMPILED) {
181
243
  */
182
244
  proto.ondewo.sip.SipStatusHistoryResponse.displayName = 'proto.ondewo.sip.SipStatusHistoryResponse';
183
245
  }
246
+ /**
247
+ * Generated by JsPbCodeGenerator.
248
+ * @param {Array=} opt_data Optional initial data array, typically from a
249
+ * server response, or constructed directly in Javascript. The array is used
250
+ * in place and becomes part of the constructed object. It is not cloned.
251
+ * If no data is provided, the constructed object will be empty, but still
252
+ * valid.
253
+ * @extends {jspb.Message}
254
+ * @constructor
255
+ */
256
+ proto.ondewo.sip.SipSetCallMediaControlRequest = function(opt_data) {
257
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
258
+ };
259
+ goog.inherits(proto.ondewo.sip.SipSetCallMediaControlRequest, jspb.Message);
260
+ if (goog.DEBUG && !COMPILED) {
261
+ /**
262
+ * @public
263
+ * @override
264
+ */
265
+ proto.ondewo.sip.SipSetCallMediaControlRequest.displayName = 'proto.ondewo.sip.SipSetCallMediaControlRequest';
266
+ }
267
+ /**
268
+ * Generated by JsPbCodeGenerator.
269
+ * @param {Array=} opt_data Optional initial data array, typically from a
270
+ * server response, or constructed directly in Javascript. The array is used
271
+ * in place and becomes part of the constructed object. It is not cloned.
272
+ * If no data is provided, the constructed object will be empty, but still
273
+ * valid.
274
+ * @extends {jspb.Message}
275
+ * @constructor
276
+ */
277
+ proto.ondewo.sip.SipCallAudioConfig = function(opt_data) {
278
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
279
+ };
280
+ goog.inherits(proto.ondewo.sip.SipCallAudioConfig, jspb.Message);
281
+ if (goog.DEBUG && !COMPILED) {
282
+ /**
283
+ * @public
284
+ * @override
285
+ */
286
+ proto.ondewo.sip.SipCallAudioConfig.displayName = 'proto.ondewo.sip.SipCallAudioConfig';
287
+ }
288
+ /**
289
+ * Generated by JsPbCodeGenerator.
290
+ * @param {Array=} opt_data Optional initial data array, typically from a
291
+ * server response, or constructed directly in Javascript. The array is used
292
+ * in place and becomes part of the constructed object. It is not cloned.
293
+ * If no data is provided, the constructed object will be empty, but still
294
+ * valid.
295
+ * @extends {jspb.Message}
296
+ * @constructor
297
+ */
298
+ proto.ondewo.sip.SipCallAudioFrame = function(opt_data) {
299
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
300
+ };
301
+ goog.inherits(proto.ondewo.sip.SipCallAudioFrame, jspb.Message);
302
+ if (goog.DEBUG && !COMPILED) {
303
+ /**
304
+ * @public
305
+ * @override
306
+ */
307
+ proto.ondewo.sip.SipCallAudioFrame.displayName = 'proto.ondewo.sip.SipCallAudioFrame';
308
+ }
309
+ /**
310
+ * Generated by JsPbCodeGenerator.
311
+ * @param {Array=} opt_data Optional initial data array, typically from a
312
+ * server response, or constructed directly in Javascript. The array is used
313
+ * in place and becomes part of the constructed object. It is not cloned.
314
+ * If no data is provided, the constructed object will be empty, but still
315
+ * valid.
316
+ * @extends {jspb.Message}
317
+ * @constructor
318
+ */
319
+ proto.ondewo.sip.SipCallAudioRequest = function(opt_data) {
320
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_);
321
+ };
322
+ goog.inherits(proto.ondewo.sip.SipCallAudioRequest, jspb.Message);
323
+ if (goog.DEBUG && !COMPILED) {
324
+ /**
325
+ * @public
326
+ * @override
327
+ */
328
+ proto.ondewo.sip.SipCallAudioRequest.displayName = 'proto.ondewo.sip.SipCallAudioRequest';
329
+ }
330
+ /**
331
+ * Generated by JsPbCodeGenerator.
332
+ * @param {Array=} opt_data Optional initial data array, typically from a
333
+ * server response, or constructed directly in Javascript. The array is used
334
+ * in place and becomes part of the constructed object. It is not cloned.
335
+ * If no data is provided, the constructed object will be empty, but still
336
+ * valid.
337
+ * @extends {jspb.Message}
338
+ * @constructor
339
+ */
340
+ proto.ondewo.sip.SipCallAudioStarted = function(opt_data) {
341
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
342
+ };
343
+ goog.inherits(proto.ondewo.sip.SipCallAudioStarted, jspb.Message);
344
+ if (goog.DEBUG && !COMPILED) {
345
+ /**
346
+ * @public
347
+ * @override
348
+ */
349
+ proto.ondewo.sip.SipCallAudioStarted.displayName = 'proto.ondewo.sip.SipCallAudioStarted';
350
+ }
351
+ /**
352
+ * Generated by JsPbCodeGenerator.
353
+ * @param {Array=} opt_data Optional initial data array, typically from a
354
+ * server response, or constructed directly in Javascript. The array is used
355
+ * in place and becomes part of the constructed object. It is not cloned.
356
+ * If no data is provided, the constructed object will be empty, but still
357
+ * valid.
358
+ * @extends {jspb.Message}
359
+ * @constructor
360
+ */
361
+ proto.ondewo.sip.SipCallAudioStats = function(opt_data) {
362
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
363
+ };
364
+ goog.inherits(proto.ondewo.sip.SipCallAudioStats, jspb.Message);
365
+ if (goog.DEBUG && !COMPILED) {
366
+ /**
367
+ * @public
368
+ * @override
369
+ */
370
+ proto.ondewo.sip.SipCallAudioStats.displayName = 'proto.ondewo.sip.SipCallAudioStats';
371
+ }
372
+ /**
373
+ * Generated by JsPbCodeGenerator.
374
+ * @param {Array=} opt_data Optional initial data array, typically from a
375
+ * server response, or constructed directly in Javascript. The array is used
376
+ * in place and becomes part of the constructed object. It is not cloned.
377
+ * If no data is provided, the constructed object will be empty, but still
378
+ * valid.
379
+ * @extends {jspb.Message}
380
+ * @constructor
381
+ */
382
+ proto.ondewo.sip.SipCallAudioEnded = function(opt_data) {
383
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
384
+ };
385
+ goog.inherits(proto.ondewo.sip.SipCallAudioEnded, jspb.Message);
386
+ if (goog.DEBUG && !COMPILED) {
387
+ /**
388
+ * @public
389
+ * @override
390
+ */
391
+ proto.ondewo.sip.SipCallAudioEnded.displayName = 'proto.ondewo.sip.SipCallAudioEnded';
392
+ }
393
+ /**
394
+ * Generated by JsPbCodeGenerator.
395
+ * @param {Array=} opt_data Optional initial data array, typically from a
396
+ * server response, or constructed directly in Javascript. The array is used
397
+ * in place and becomes part of the constructed object. It is not cloned.
398
+ * If no data is provided, the constructed object will be empty, but still
399
+ * valid.
400
+ * @extends {jspb.Message}
401
+ * @constructor
402
+ */
403
+ proto.ondewo.sip.SipCallAudioResponse = function(opt_data) {
404
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_);
405
+ };
406
+ goog.inherits(proto.ondewo.sip.SipCallAudioResponse, jspb.Message);
407
+ if (goog.DEBUG && !COMPILED) {
408
+ /**
409
+ * @public
410
+ * @override
411
+ */
412
+ proto.ondewo.sip.SipCallAudioResponse.displayName = 'proto.ondewo.sip.SipCallAudioResponse';
413
+ }
184
414
  /**
185
415
  * Generated by JsPbCodeGenerator.
186
416
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -234,7 +464,9 @@ proto.ondewo.sip.SipEndCallRequest.prototype.toObject = function(opt_includeInst
234
464
  */
235
465
  proto.ondewo.sip.SipEndCallRequest.toObject = function(includeInstance, msg) {
236
466
  var f, obj = {
237
- hardHangup: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
467
+ hardHangup: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
468
+ endReason: jspb.Message.getFieldWithDefault(msg, 2, 0),
469
+ amdResult: (f = msg.getAmdResult()) && proto.ondewo.sip.AnsweringMachineDetectionResult.toObject(includeInstance, f)
238
470
  };
239
471
 
240
472
  if (includeInstance) {
@@ -275,6 +507,15 @@ proto.ondewo.sip.SipEndCallRequest.deserializeBinaryFromReader = function(msg, r
275
507
  var value = /** @type {boolean} */ (reader.readBool());
276
508
  msg.setHardHangup(value);
277
509
  break;
510
+ case 2:
511
+ var value = /** @type {!proto.ondewo.sip.SipEndCallRequest.EndCallReason} */ (reader.readEnum());
512
+ msg.setEndReason(value);
513
+ break;
514
+ case 3:
515
+ var value = new proto.ondewo.sip.AnsweringMachineDetectionResult;
516
+ reader.readMessage(value,proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinaryFromReader);
517
+ msg.setAmdResult(value);
518
+ break;
278
519
  default:
279
520
  reader.skipField();
280
521
  break;
@@ -311,9 +552,34 @@ proto.ondewo.sip.SipEndCallRequest.serializeBinaryToWriter = function(message, w
311
552
  f
312
553
  );
313
554
  }
555
+ f = message.getEndReason();
556
+ if (f !== 0.0) {
557
+ writer.writeEnum(
558
+ 2,
559
+ f
560
+ );
561
+ }
562
+ f = message.getAmdResult();
563
+ if (f != null) {
564
+ writer.writeMessage(
565
+ 3,
566
+ f,
567
+ proto.ondewo.sip.AnsweringMachineDetectionResult.serializeBinaryToWriter
568
+ );
569
+ }
314
570
  };
315
571
 
316
572
 
573
+ /**
574
+ * @enum {number}
575
+ */
576
+ proto.ondewo.sip.SipEndCallRequest.EndCallReason = {
577
+ END_CALL_REASON_UNSPECIFIED: 0,
578
+ ANSWERING_MACHINE: 1,
579
+ ANSWERING_MACHINE_VOICE_MESSAGE_LEFT: 2,
580
+ END_CALL_REASON_TRANSFERRED: 3
581
+ };
582
+
317
583
  /**
318
584
  * optional bool hard_hangup = 1;
319
585
  * @return {boolean}
@@ -332,6 +598,61 @@ proto.ondewo.sip.SipEndCallRequest.prototype.setHardHangup = function(value) {
332
598
  };
333
599
 
334
600
 
601
+ /**
602
+ * optional EndCallReason end_reason = 2;
603
+ * @return {!proto.ondewo.sip.SipEndCallRequest.EndCallReason}
604
+ */
605
+ proto.ondewo.sip.SipEndCallRequest.prototype.getEndReason = function() {
606
+ return /** @type {!proto.ondewo.sip.SipEndCallRequest.EndCallReason} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
607
+ };
608
+
609
+
610
+ /**
611
+ * @param {!proto.ondewo.sip.SipEndCallRequest.EndCallReason} value
612
+ * @return {!proto.ondewo.sip.SipEndCallRequest} returns this
613
+ */
614
+ proto.ondewo.sip.SipEndCallRequest.prototype.setEndReason = function(value) {
615
+ return jspb.Message.setProto3EnumField(this, 2, value);
616
+ };
617
+
618
+
619
+ /**
620
+ * optional AnsweringMachineDetectionResult amd_result = 3;
621
+ * @return {?proto.ondewo.sip.AnsweringMachineDetectionResult}
622
+ */
623
+ proto.ondewo.sip.SipEndCallRequest.prototype.getAmdResult = function() {
624
+ return /** @type{?proto.ondewo.sip.AnsweringMachineDetectionResult} */ (
625
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.AnsweringMachineDetectionResult, 3));
626
+ };
627
+
628
+
629
+ /**
630
+ * @param {?proto.ondewo.sip.AnsweringMachineDetectionResult|undefined} value
631
+ * @return {!proto.ondewo.sip.SipEndCallRequest} returns this
632
+ */
633
+ proto.ondewo.sip.SipEndCallRequest.prototype.setAmdResult = function(value) {
634
+ return jspb.Message.setWrapperField(this, 3, value);
635
+ };
636
+
637
+
638
+ /**
639
+ * Clears the message field making it undefined.
640
+ * @return {!proto.ondewo.sip.SipEndCallRequest} returns this
641
+ */
642
+ proto.ondewo.sip.SipEndCallRequest.prototype.clearAmdResult = function() {
643
+ return this.setAmdResult(undefined);
644
+ };
645
+
646
+
647
+ /**
648
+ * Returns whether this field is set.
649
+ * @return {boolean}
650
+ */
651
+ proto.ondewo.sip.SipEndCallRequest.prototype.hasAmdResult = function() {
652
+ return jspb.Message.getField(this, 3) != null;
653
+ };
654
+
655
+
335
656
 
336
657
 
337
658
 
@@ -348,8 +669,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
348
669
  * http://goto/soy-param-migration
349
670
  * @return {!Object}
350
671
  */
351
- proto.ondewo.sip.SipStartCallRequest.prototype.toObject = function(opt_includeInstance) {
352
- return proto.ondewo.sip.SipStartCallRequest.toObject(opt_includeInstance, this);
672
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.toObject = function(opt_includeInstance) {
673
+ return proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.toObject(opt_includeInstance, this);
353
674
  };
354
675
 
355
676
 
@@ -358,14 +679,13 @@ proto.ondewo.sip.SipStartCallRequest.prototype.toObject = function(opt_includeIn
358
679
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
359
680
  * the JSPB instance for transitional soy proto support:
360
681
  * http://goto/soy-param-migration
361
- * @param {!proto.ondewo.sip.SipStartCallRequest} msg The msg instance to transform.
682
+ * @param {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest} msg The msg instance to transform.
362
683
  * @return {!Object}
363
684
  * @suppress {unusedLocalVariables} f is only used for nested messages
364
685
  */
365
- proto.ondewo.sip.SipStartCallRequest.toObject = function(includeInstance, msg) {
686
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.toObject = function(includeInstance, msg) {
366
687
  var f, obj = {
367
- calleeId: jspb.Message.getFieldWithDefault(msg, 1, ""),
368
- headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
688
+ amdResult: (f = msg.getAmdResult()) && proto.ondewo.sip.AnsweringMachineDetectionResult.toObject(includeInstance, f)
369
689
  };
370
690
 
371
691
  if (includeInstance) {
@@ -379,23 +699,23 @@ proto.ondewo.sip.SipStartCallRequest.toObject = function(includeInstance, msg) {
379
699
  /**
380
700
  * Deserializes binary data (in protobuf wire format).
381
701
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
382
- * @return {!proto.ondewo.sip.SipStartCallRequest}
702
+ * @return {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest}
383
703
  */
384
- proto.ondewo.sip.SipStartCallRequest.deserializeBinary = function(bytes) {
704
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.deserializeBinary = function(bytes) {
385
705
  var reader = new jspb.BinaryReader(bytes);
386
- var msg = new proto.ondewo.sip.SipStartCallRequest;
387
- return proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader(msg, reader);
706
+ var msg = new proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest;
707
+ return proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.deserializeBinaryFromReader(msg, reader);
388
708
  };
389
709
 
390
710
 
391
711
  /**
392
712
  * Deserializes binary data (in protobuf wire format) from the
393
713
  * given reader into the given message object.
394
- * @param {!proto.ondewo.sip.SipStartCallRequest} msg The message object to deserialize into.
714
+ * @param {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest} msg The message object to deserialize into.
395
715
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
396
- * @return {!proto.ondewo.sip.SipStartCallRequest}
716
+ * @return {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest}
397
717
  */
398
- proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader = function(msg, reader) {
718
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.deserializeBinaryFromReader = function(msg, reader) {
399
719
  while (reader.nextField()) {
400
720
  if (reader.isEndGroup()) {
401
721
  break;
@@ -403,14 +723,9 @@ proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader = function(msg,
403
723
  var field = reader.getFieldNumber();
404
724
  switch (field) {
405
725
  case 1:
406
- var value = /** @type {string} */ (reader.readString());
407
- msg.setCalleeId(value);
408
- break;
409
- case 2:
410
- var value = msg.getHeadersMap();
411
- reader.readMessage(value, function(message, reader) {
412
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
413
- });
726
+ var value = new proto.ondewo.sip.AnsweringMachineDetectionResult;
727
+ reader.readMessage(value,proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinaryFromReader);
728
+ msg.setAmdResult(value);
414
729
  break;
415
730
  default:
416
731
  reader.skipField();
@@ -425,9 +740,9 @@ proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader = function(msg,
425
740
  * Serializes the message to binary data (in protobuf wire format).
426
741
  * @return {!Uint8Array}
427
742
  */
428
- proto.ondewo.sip.SipStartCallRequest.prototype.serializeBinary = function() {
743
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.serializeBinary = function() {
429
744
  var writer = new jspb.BinaryWriter();
430
- proto.ondewo.sip.SipStartCallRequest.serializeBinaryToWriter(this, writer);
745
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.serializeBinaryToWriter(this, writer);
431
746
  return writer.getResultBuffer();
432
747
  };
433
748
 
@@ -435,66 +750,67 @@ proto.ondewo.sip.SipStartCallRequest.prototype.serializeBinary = function() {
435
750
  /**
436
751
  * Serializes the given message to binary data (in protobuf wire
437
752
  * format), writing to the given BinaryWriter.
438
- * @param {!proto.ondewo.sip.SipStartCallRequest} message
753
+ * @param {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest} message
439
754
  * @param {!jspb.BinaryWriter} writer
440
755
  * @suppress {unusedLocalVariables} f is only used for nested messages
441
756
  */
442
- proto.ondewo.sip.SipStartCallRequest.serializeBinaryToWriter = function(message, writer) {
757
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.serializeBinaryToWriter = function(message, writer) {
443
758
  var f = undefined;
444
- f = message.getCalleeId();
445
- if (f.length > 0) {
446
- writer.writeString(
759
+ f = message.getAmdResult();
760
+ if (f != null) {
761
+ writer.writeMessage(
447
762
  1,
448
- f
763
+ f,
764
+ proto.ondewo.sip.AnsweringMachineDetectionResult.serializeBinaryToWriter
449
765
  );
450
766
  }
451
- f = message.getHeadersMap(true);
452
- if (f && f.getLength() > 0) {
453
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
454
- }
455
767
  };
456
768
 
457
769
 
458
770
  /**
459
- * optional string callee_id = 1;
460
- * @return {string}
771
+ * optional AnsweringMachineDetectionResult amd_result = 1;
772
+ * @return {?proto.ondewo.sip.AnsweringMachineDetectionResult}
461
773
  */
462
- proto.ondewo.sip.SipStartCallRequest.prototype.getCalleeId = function() {
463
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
774
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.getAmdResult = function() {
775
+ return /** @type{?proto.ondewo.sip.AnsweringMachineDetectionResult} */ (
776
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.AnsweringMachineDetectionResult, 1));
464
777
  };
465
778
 
466
779
 
467
780
  /**
468
- * @param {string} value
469
- * @return {!proto.ondewo.sip.SipStartCallRequest} returns this
470
- */
471
- proto.ondewo.sip.SipStartCallRequest.prototype.setCalleeId = function(value) {
472
- return jspb.Message.setProto3StringField(this, 1, value);
781
+ * @param {?proto.ondewo.sip.AnsweringMachineDetectionResult|undefined} value
782
+ * @return {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest} returns this
783
+ */
784
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.setAmdResult = function(value) {
785
+ return jspb.Message.setWrapperField(this, 1, value);
473
786
  };
474
787
 
475
788
 
476
789
  /**
477
- * map<string, string> headers = 2;
478
- * @param {boolean=} opt_noLazyCreate Do not create the map if
479
- * empty, instead returning `undefined`
480
- * @return {!jspb.Map<string,string>}
790
+ * Clears the message field making it undefined.
791
+ * @return {!proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest} returns this
481
792
  */
482
- proto.ondewo.sip.SipStartCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
483
- return /** @type {!jspb.Map<string,string>} */ (
484
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
485
- null));
793
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.clearAmdResult = function() {
794
+ return this.setAmdResult(undefined);
486
795
  };
487
796
 
488
797
 
489
798
  /**
490
- * Clears values from the map. The map will be non-null.
491
- * @return {!proto.ondewo.sip.SipStartCallRequest} returns this
799
+ * Returns whether this field is set.
800
+ * @return {boolean}
492
801
  */
493
- proto.ondewo.sip.SipStartCallRequest.prototype.clearHeadersMap = function() {
494
- this.getHeadersMap().clear();
495
- return this;};
802
+ proto.ondewo.sip.SipReportAnsweringMachineDetectedRequest.prototype.hasAmdResult = function() {
803
+ return jspb.Message.getField(this, 1) != null;
804
+ };
805
+
496
806
 
497
807
 
808
+ /**
809
+ * List of repeated fields within this message type.
810
+ * @private {!Array<number>}
811
+ * @const
812
+ */
813
+ proto.ondewo.sip.AnsweringMachineDetectionResult.repeatedFields_ = [6];
498
814
 
499
815
 
500
816
 
@@ -511,8 +827,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
511
827
  * http://goto/soy-param-migration
512
828
  * @return {!Object}
513
829
  */
514
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.toObject = function(opt_includeInstance) {
515
- return proto.ondewo.sip.SipRegisterAccountRequest.toObject(opt_includeInstance, this);
830
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.toObject = function(opt_includeInstance) {
831
+ return proto.ondewo.sip.AnsweringMachineDetectionResult.toObject(opt_includeInstance, this);
516
832
  };
517
833
 
518
834
 
@@ -521,16 +837,20 @@ proto.ondewo.sip.SipRegisterAccountRequest.prototype.toObject = function(opt_inc
521
837
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
522
838
  * the JSPB instance for transitional soy proto support:
523
839
  * http://goto/soy-param-migration
524
- * @param {!proto.ondewo.sip.SipRegisterAccountRequest} msg The msg instance to transform.
840
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult} msg The msg instance to transform.
525
841
  * @return {!Object}
526
842
  * @suppress {unusedLocalVariables} f is only used for nested messages
527
843
  */
528
- proto.ondewo.sip.SipRegisterAccountRequest.toObject = function(includeInstance, msg) {
844
+ proto.ondewo.sip.AnsweringMachineDetectionResult.toObject = function(includeInstance, msg) {
529
845
  var f, obj = {
530
- accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
531
- password: jspb.Message.getFieldWithDefault(msg, 2, ""),
532
- authUsername: jspb.Message.getFieldWithDefault(msg, 3, ""),
533
- outboundProxy: jspb.Message.getFieldWithDefault(msg, 4, "")
846
+ verdict: jspb.Message.getFieldWithDefault(msg, 1, 0),
847
+ cause: jspb.Message.getFieldWithDefault(msg, 2, 0),
848
+ confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
849
+ decisionMs: jspb.Message.getFieldWithDefault(msg, 4, 0),
850
+ ruleId: jspb.Message.getFieldWithDefault(msg, 5, ""),
851
+ matchedCueIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
852
+ actionTaken: jspb.Message.getFieldWithDefault(msg, 7, 0),
853
+ callId: jspb.Message.getFieldWithDefault(msg, 8, "")
534
854
  };
535
855
 
536
856
  if (includeInstance) {
@@ -544,23 +864,23 @@ proto.ondewo.sip.SipRegisterAccountRequest.toObject = function(includeInstance,
544
864
  /**
545
865
  * Deserializes binary data (in protobuf wire format).
546
866
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
547
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest}
867
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult}
548
868
  */
549
- proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinary = function(bytes) {
869
+ proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinary = function(bytes) {
550
870
  var reader = new jspb.BinaryReader(bytes);
551
- var msg = new proto.ondewo.sip.SipRegisterAccountRequest;
552
- return proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader(msg, reader);
871
+ var msg = new proto.ondewo.sip.AnsweringMachineDetectionResult;
872
+ return proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinaryFromReader(msg, reader);
553
873
  };
554
874
 
555
875
 
556
876
  /**
557
877
  * Deserializes binary data (in protobuf wire format) from the
558
878
  * given reader into the given message object.
559
- * @param {!proto.ondewo.sip.SipRegisterAccountRequest} msg The message object to deserialize into.
879
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult} msg The message object to deserialize into.
560
880
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
561
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest}
881
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult}
562
882
  */
563
- proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
883
+ proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinaryFromReader = function(msg, reader) {
564
884
  while (reader.nextField()) {
565
885
  if (reader.isEndGroup()) {
566
886
  break;
@@ -568,20 +888,36 @@ proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader = functio
568
888
  var field = reader.getFieldNumber();
569
889
  switch (field) {
570
890
  case 1:
571
- var value = /** @type {string} */ (reader.readString());
572
- msg.setAccountName(value);
891
+ var value = /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict} */ (reader.readEnum());
892
+ msg.setVerdict(value);
573
893
  break;
574
894
  case 2:
575
- var value = /** @type {string} */ (reader.readString());
576
- msg.setPassword(value);
895
+ var value = /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.Cause} */ (reader.readEnum());
896
+ msg.setCause(value);
577
897
  break;
578
898
  case 3:
579
- var value = /** @type {string} */ (reader.readString());
580
- msg.setAuthUsername(value);
899
+ var value = /** @type {number} */ (reader.readFloat());
900
+ msg.setConfidence(value);
581
901
  break;
582
902
  case 4:
903
+ var value = /** @type {number} */ (reader.readInt32());
904
+ msg.setDecisionMs(value);
905
+ break;
906
+ case 5:
583
907
  var value = /** @type {string} */ (reader.readString());
584
- msg.setOutboundProxy(value);
908
+ msg.setRuleId(value);
909
+ break;
910
+ case 6:
911
+ var value = /** @type {string} */ (reader.readString());
912
+ msg.addMatchedCueIds(value);
913
+ break;
914
+ case 7:
915
+ var value = /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken} */ (reader.readEnum());
916
+ msg.setActionTaken(value);
917
+ break;
918
+ case 8:
919
+ var value = /** @type {string} */ (reader.readString());
920
+ msg.setCallId(value);
585
921
  break;
586
922
  default:
587
923
  reader.skipField();
@@ -596,9 +932,9 @@ proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader = functio
596
932
  * Serializes the message to binary data (in protobuf wire format).
597
933
  * @return {!Uint8Array}
598
934
  */
599
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.serializeBinary = function() {
935
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.serializeBinary = function() {
600
936
  var writer = new jspb.BinaryWriter();
601
- proto.ondewo.sip.SipRegisterAccountRequest.serializeBinaryToWriter(this, writer);
937
+ proto.ondewo.sip.AnsweringMachineDetectionResult.serializeBinaryToWriter(this, writer);
602
938
  return writer.getResultBuffer();
603
939
  };
604
940
 
@@ -606,37 +942,65 @@ proto.ondewo.sip.SipRegisterAccountRequest.prototype.serializeBinary = function(
606
942
  /**
607
943
  * Serializes the given message to binary data (in protobuf wire
608
944
  * format), writing to the given BinaryWriter.
609
- * @param {!proto.ondewo.sip.SipRegisterAccountRequest} message
945
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult} message
610
946
  * @param {!jspb.BinaryWriter} writer
611
947
  * @suppress {unusedLocalVariables} f is only used for nested messages
612
948
  */
613
- proto.ondewo.sip.SipRegisterAccountRequest.serializeBinaryToWriter = function(message, writer) {
949
+ proto.ondewo.sip.AnsweringMachineDetectionResult.serializeBinaryToWriter = function(message, writer) {
614
950
  var f = undefined;
615
- f = message.getAccountName();
616
- if (f.length > 0) {
617
- writer.writeString(
951
+ f = message.getVerdict();
952
+ if (f !== 0.0) {
953
+ writer.writeEnum(
618
954
  1,
619
955
  f
620
956
  );
621
957
  }
622
- f = message.getPassword();
623
- if (f.length > 0) {
624
- writer.writeString(
958
+ f = message.getCause();
959
+ if (f !== 0.0) {
960
+ writer.writeEnum(
625
961
  2,
626
962
  f
627
963
  );
628
964
  }
629
- f = message.getAuthUsername();
965
+ f = message.getConfidence();
966
+ if (f !== 0.0) {
967
+ writer.writeFloat(
968
+ 3,
969
+ f
970
+ );
971
+ }
972
+ f = message.getDecisionMs();
973
+ if (f !== 0) {
974
+ writer.writeInt32(
975
+ 4,
976
+ f
977
+ );
978
+ }
979
+ f = message.getRuleId();
630
980
  if (f.length > 0) {
631
981
  writer.writeString(
632
- 3,
982
+ 5,
633
983
  f
634
984
  );
635
985
  }
636
- f = message.getOutboundProxy();
986
+ f = message.getMatchedCueIdsList();
987
+ if (f.length > 0) {
988
+ writer.writeRepeatedString(
989
+ 6,
990
+ f
991
+ );
992
+ }
993
+ f = message.getActionTaken();
994
+ if (f !== 0.0) {
995
+ writer.writeEnum(
996
+ 7,
997
+ f
998
+ );
999
+ }
1000
+ f = message.getCallId();
637
1001
  if (f.length > 0) {
638
1002
  writer.writeString(
639
- 4,
1003
+ 8,
640
1004
  f
641
1005
  );
642
1006
  }
@@ -644,74 +1008,206 @@ proto.ondewo.sip.SipRegisterAccountRequest.serializeBinaryToWriter = function(me
644
1008
 
645
1009
 
646
1010
  /**
647
- * optional string account_name = 1;
648
- * @return {string}
1011
+ * @enum {number}
649
1012
  */
650
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.getAccountName = function() {
651
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1013
+ proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict = {
1014
+ VERDICT_UNSPECIFIED: 0,
1015
+ HUMAN: 1,
1016
+ MACHINE: 2,
1017
+ IVR: 3,
1018
+ FAX: 4,
1019
+ NETWORK_ANNOUNCEMENT: 5,
1020
+ CALL_SCREENING: 6,
1021
+ NO_SPEECH: 7,
1022
+ UNKNOWN: 8
1023
+ };
1024
+
1025
+ /**
1026
+ * @enum {number}
1027
+ */
1028
+ proto.ondewo.sip.AnsweringMachineDetectionResult.Cause = {
1029
+ CAUSE_UNSPECIFIED: 0,
1030
+ CADENCE: 1,
1031
+ KEYWORD: 2,
1032
+ BEEP: 3,
1033
+ TONE: 4,
1034
+ CADENCE_AND_KEYWORD: 5,
1035
+ CADENCE_AND_BEEP: 6,
1036
+ TIMEOUT: 7,
1037
+ SILENCE: 8
652
1038
  };
653
1039
 
1040
+ /**
1041
+ * @enum {number}
1042
+ */
1043
+ proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken = {
1044
+ ACTION_TAKEN_UNSPECIFIED: 0,
1045
+ HUNG_UP: 1,
1046
+ CONTINUED: 2,
1047
+ DETECT_ONLY: 3,
1048
+ LEFT_VOICE_MESSAGE: 4
1049
+ };
654
1050
 
655
1051
  /**
656
- * @param {string} value
657
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1052
+ * optional Verdict verdict = 1;
1053
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict}
658
1054
  */
659
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.setAccountName = function(value) {
660
- return jspb.Message.setProto3StringField(this, 1, value);
1055
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getVerdict = function() {
1056
+ return /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
661
1057
  };
662
1058
 
663
1059
 
664
1060
  /**
665
- * optional string password = 2;
1061
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult.Verdict} value
1062
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1063
+ */
1064
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setVerdict = function(value) {
1065
+ return jspb.Message.setProto3EnumField(this, 1, value);
1066
+ };
1067
+
1068
+
1069
+ /**
1070
+ * optional Cause cause = 2;
1071
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult.Cause}
1072
+ */
1073
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getCause = function() {
1074
+ return /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.Cause} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult.Cause} value
1080
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1081
+ */
1082
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setCause = function(value) {
1083
+ return jspb.Message.setProto3EnumField(this, 2, value);
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * optional float confidence = 3;
1089
+ * @return {number}
1090
+ */
1091
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getConfidence = function() {
1092
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * @param {number} value
1098
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1099
+ */
1100
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setConfidence = function(value) {
1101
+ return jspb.Message.setProto3FloatField(this, 3, value);
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * optional int32 decision_ms = 4;
1107
+ * @return {number}
1108
+ */
1109
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getDecisionMs = function() {
1110
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * @param {number} value
1116
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1117
+ */
1118
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setDecisionMs = function(value) {
1119
+ return jspb.Message.setProto3IntField(this, 4, value);
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * optional string rule_id = 5;
666
1125
  * @return {string}
667
1126
  */
668
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.getPassword = function() {
669
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1127
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getRuleId = function() {
1128
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
670
1129
  };
671
1130
 
672
1131
 
673
1132
  /**
674
1133
  * @param {string} value
675
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1134
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
676
1135
  */
677
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.setPassword = function(value) {
678
- return jspb.Message.setProto3StringField(this, 2, value);
1136
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setRuleId = function(value) {
1137
+ return jspb.Message.setProto3StringField(this, 5, value);
679
1138
  };
680
1139
 
681
1140
 
682
1141
  /**
683
- * optional string auth_username = 3;
684
- * @return {string}
1142
+ * repeated string matched_cue_ids = 6;
1143
+ * @return {!Array<string>}
685
1144
  */
686
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.getAuthUsername = function() {
687
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1145
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getMatchedCueIdsList = function() {
1146
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * @param {!Array<string>} value
1152
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1153
+ */
1154
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setMatchedCueIdsList = function(value) {
1155
+ return jspb.Message.setField(this, 6, value || []);
688
1156
  };
689
1157
 
690
1158
 
691
1159
  /**
692
1160
  * @param {string} value
693
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1161
+ * @param {number=} opt_index
1162
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
694
1163
  */
695
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.setAuthUsername = function(value) {
696
- return jspb.Message.setProto3StringField(this, 3, value);
1164
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.addMatchedCueIds = function(value, opt_index) {
1165
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
697
1166
  };
698
1167
 
699
1168
 
700
1169
  /**
701
- * optional string outbound_proxy = 4;
1170
+ * Clears the list making it empty but non-null.
1171
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1172
+ */
1173
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.clearMatchedCueIdsList = function() {
1174
+ return this.setMatchedCueIdsList([]);
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * optional ActionTaken action_taken = 7;
1180
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken}
1181
+ */
1182
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getActionTaken = function() {
1183
+ return /** @type {!proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * @param {!proto.ondewo.sip.AnsweringMachineDetectionResult.ActionTaken} value
1189
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
1190
+ */
1191
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setActionTaken = function(value) {
1192
+ return jspb.Message.setProto3EnumField(this, 7, value);
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * optional string call_id = 8;
702
1198
  * @return {string}
703
1199
  */
704
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.getOutboundProxy = function() {
705
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1200
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.getCallId = function() {
1201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
706
1202
  };
707
1203
 
708
1204
 
709
1205
  /**
710
1206
  * @param {string} value
711
- * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1207
+ * @return {!proto.ondewo.sip.AnsweringMachineDetectionResult} returns this
712
1208
  */
713
- proto.ondewo.sip.SipRegisterAccountRequest.prototype.setOutboundProxy = function(value) {
714
- return jspb.Message.setProto3StringField(this, 4, value);
1209
+ proto.ondewo.sip.AnsweringMachineDetectionResult.prototype.setCallId = function(value) {
1210
+ return jspb.Message.setProto3StringField(this, 8, value);
715
1211
  };
716
1212
 
717
1213
 
@@ -731,8 +1227,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
731
1227
  * http://goto/soy-param-migration
732
1228
  * @return {!Object}
733
1229
  */
734
- proto.ondewo.sip.SipStartSessionRequest.prototype.toObject = function(opt_includeInstance) {
735
- return proto.ondewo.sip.SipStartSessionRequest.toObject(opt_includeInstance, this);
1230
+ proto.ondewo.sip.SipStartCallRequest.prototype.toObject = function(opt_includeInstance) {
1231
+ return proto.ondewo.sip.SipStartCallRequest.toObject(opt_includeInstance, this);
736
1232
  };
737
1233
 
738
1234
 
@@ -741,14 +1237,14 @@ proto.ondewo.sip.SipStartSessionRequest.prototype.toObject = function(opt_includ
741
1237
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
742
1238
  * the JSPB instance for transitional soy proto support:
743
1239
  * http://goto/soy-param-migration
744
- * @param {!proto.ondewo.sip.SipStartSessionRequest} msg The msg instance to transform.
1240
+ * @param {!proto.ondewo.sip.SipStartCallRequest} msg The msg instance to transform.
745
1241
  * @return {!Object}
746
1242
  * @suppress {unusedLocalVariables} f is only used for nested messages
747
1243
  */
748
- proto.ondewo.sip.SipStartSessionRequest.toObject = function(includeInstance, msg) {
1244
+ proto.ondewo.sip.SipStartCallRequest.toObject = function(includeInstance, msg) {
749
1245
  var f, obj = {
750
- accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
751
- autoAnswerInterval: jspb.Message.getFieldWithDefault(msg, 2, 0)
1246
+ calleeId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1247
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
752
1248
  };
753
1249
 
754
1250
  if (includeInstance) {
@@ -762,23 +1258,23 @@ proto.ondewo.sip.SipStartSessionRequest.toObject = function(includeInstance, msg
762
1258
  /**
763
1259
  * Deserializes binary data (in protobuf wire format).
764
1260
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
765
- * @return {!proto.ondewo.sip.SipStartSessionRequest}
1261
+ * @return {!proto.ondewo.sip.SipStartCallRequest}
766
1262
  */
767
- proto.ondewo.sip.SipStartSessionRequest.deserializeBinary = function(bytes) {
1263
+ proto.ondewo.sip.SipStartCallRequest.deserializeBinary = function(bytes) {
768
1264
  var reader = new jspb.BinaryReader(bytes);
769
- var msg = new proto.ondewo.sip.SipStartSessionRequest;
770
- return proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader(msg, reader);
1265
+ var msg = new proto.ondewo.sip.SipStartCallRequest;
1266
+ return proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader(msg, reader);
771
1267
  };
772
1268
 
773
1269
 
774
1270
  /**
775
1271
  * Deserializes binary data (in protobuf wire format) from the
776
1272
  * given reader into the given message object.
777
- * @param {!proto.ondewo.sip.SipStartSessionRequest} msg The message object to deserialize into.
1273
+ * @param {!proto.ondewo.sip.SipStartCallRequest} msg The message object to deserialize into.
778
1274
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
779
- * @return {!proto.ondewo.sip.SipStartSessionRequest}
1275
+ * @return {!proto.ondewo.sip.SipStartCallRequest}
780
1276
  */
781
- proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
1277
+ proto.ondewo.sip.SipStartCallRequest.deserializeBinaryFromReader = function(msg, reader) {
782
1278
  while (reader.nextField()) {
783
1279
  if (reader.isEndGroup()) {
784
1280
  break;
@@ -787,13 +1283,15 @@ proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader = function(m
787
1283
  switch (field) {
788
1284
  case 1:
789
1285
  var value = /** @type {string} */ (reader.readString());
790
- msg.setAccountName(value);
1286
+ msg.setCalleeId(value);
791
1287
  break;
792
1288
  case 2:
793
- var value = /** @type {number} */ (reader.readInt32());
794
- msg.setAutoAnswerInterval(value);
795
- break;
796
- default:
1289
+ var value = msg.getHeadersMap();
1290
+ reader.readMessage(value, function(message, reader) {
1291
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1292
+ });
1293
+ break;
1294
+ default:
797
1295
  reader.skipField();
798
1296
  break;
799
1297
  }
@@ -806,9 +1304,9 @@ proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader = function(m
806
1304
  * Serializes the message to binary data (in protobuf wire format).
807
1305
  * @return {!Uint8Array}
808
1306
  */
809
- proto.ondewo.sip.SipStartSessionRequest.prototype.serializeBinary = function() {
1307
+ proto.ondewo.sip.SipStartCallRequest.prototype.serializeBinary = function() {
810
1308
  var writer = new jspb.BinaryWriter();
811
- proto.ondewo.sip.SipStartSessionRequest.serializeBinaryToWriter(this, writer);
1309
+ proto.ondewo.sip.SipStartCallRequest.serializeBinaryToWriter(this, writer);
812
1310
  return writer.getResultBuffer();
813
1311
  };
814
1312
 
@@ -816,63 +1314,64 @@ proto.ondewo.sip.SipStartSessionRequest.prototype.serializeBinary = function() {
816
1314
  /**
817
1315
  * Serializes the given message to binary data (in protobuf wire
818
1316
  * format), writing to the given BinaryWriter.
819
- * @param {!proto.ondewo.sip.SipStartSessionRequest} message
1317
+ * @param {!proto.ondewo.sip.SipStartCallRequest} message
820
1318
  * @param {!jspb.BinaryWriter} writer
821
1319
  * @suppress {unusedLocalVariables} f is only used for nested messages
822
1320
  */
823
- proto.ondewo.sip.SipStartSessionRequest.serializeBinaryToWriter = function(message, writer) {
1321
+ proto.ondewo.sip.SipStartCallRequest.serializeBinaryToWriter = function(message, writer) {
824
1322
  var f = undefined;
825
- f = message.getAccountName();
1323
+ f = message.getCalleeId();
826
1324
  if (f.length > 0) {
827
1325
  writer.writeString(
828
1326
  1,
829
1327
  f
830
1328
  );
831
1329
  }
832
- f = message.getAutoAnswerInterval();
833
- if (f !== 0) {
834
- writer.writeInt32(
835
- 2,
836
- f
837
- );
1330
+ f = message.getHeadersMap(true);
1331
+ if (f && f.getLength() > 0) {
1332
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
838
1333
  }
839
1334
  };
840
1335
 
841
1336
 
842
1337
  /**
843
- * optional string account_name = 1;
1338
+ * optional string callee_id = 1;
844
1339
  * @return {string}
845
1340
  */
846
- proto.ondewo.sip.SipStartSessionRequest.prototype.getAccountName = function() {
1341
+ proto.ondewo.sip.SipStartCallRequest.prototype.getCalleeId = function() {
847
1342
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
848
1343
  };
849
1344
 
850
1345
 
851
1346
  /**
852
1347
  * @param {string} value
853
- * @return {!proto.ondewo.sip.SipStartSessionRequest} returns this
1348
+ * @return {!proto.ondewo.sip.SipStartCallRequest} returns this
854
1349
  */
855
- proto.ondewo.sip.SipStartSessionRequest.prototype.setAccountName = function(value) {
1350
+ proto.ondewo.sip.SipStartCallRequest.prototype.setCalleeId = function(value) {
856
1351
  return jspb.Message.setProto3StringField(this, 1, value);
857
1352
  };
858
1353
 
859
1354
 
860
1355
  /**
861
- * optional int32 auto_answer_interval = 2;
862
- * @return {number}
1356
+ * map<string, string> headers = 2;
1357
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1358
+ * empty, instead returning `undefined`
1359
+ * @return {!jspb.Map<string,string>}
863
1360
  */
864
- proto.ondewo.sip.SipStartSessionRequest.prototype.getAutoAnswerInterval = function() {
865
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1361
+ proto.ondewo.sip.SipStartCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
1362
+ return /** @type {!jspb.Map<string,string>} */ (
1363
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1364
+ null));
866
1365
  };
867
1366
 
868
1367
 
869
1368
  /**
870
- * @param {number} value
871
- * @return {!proto.ondewo.sip.SipStartSessionRequest} returns this
1369
+ * Clears values from the map. The map will be non-null.
1370
+ * @return {!proto.ondewo.sip.SipStartCallRequest} returns this
872
1371
  */
873
- proto.ondewo.sip.SipStartSessionRequest.prototype.setAutoAnswerInterval = function(value) {
874
- return jspb.Message.setProto3IntField(this, 2, value);
875
- };
1372
+ proto.ondewo.sip.SipStartCallRequest.prototype.clearHeadersMap = function() {
1373
+ this.getHeadersMap().clear();
1374
+ return this;};
876
1375
 
877
1376
 
878
1377
 
@@ -891,8 +1390,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
891
1390
  * http://goto/soy-param-migration
892
1391
  * @return {!Object}
893
1392
  */
894
- proto.ondewo.sip.SipTransferCallRequest.prototype.toObject = function(opt_includeInstance) {
895
- return proto.ondewo.sip.SipTransferCallRequest.toObject(opt_includeInstance, this);
1393
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.toObject = function(opt_includeInstance) {
1394
+ return proto.ondewo.sip.SipRegisterAccountRequest.toObject(opt_includeInstance, this);
896
1395
  };
897
1396
 
898
1397
 
@@ -901,14 +1400,16 @@ proto.ondewo.sip.SipTransferCallRequest.prototype.toObject = function(opt_includ
901
1400
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
902
1401
  * the JSPB instance for transitional soy proto support:
903
1402
  * http://goto/soy-param-migration
904
- * @param {!proto.ondewo.sip.SipTransferCallRequest} msg The msg instance to transform.
1403
+ * @param {!proto.ondewo.sip.SipRegisterAccountRequest} msg The msg instance to transform.
905
1404
  * @return {!Object}
906
1405
  * @suppress {unusedLocalVariables} f is only used for nested messages
907
1406
  */
908
- proto.ondewo.sip.SipTransferCallRequest.toObject = function(includeInstance, msg) {
1407
+ proto.ondewo.sip.SipRegisterAccountRequest.toObject = function(includeInstance, msg) {
909
1408
  var f, obj = {
910
- transferId: jspb.Message.getFieldWithDefault(msg, 1, ""),
911
- headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
1409
+ accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1410
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
1411
+ authUsername: jspb.Message.getFieldWithDefault(msg, 3, ""),
1412
+ outboundProxy: jspb.Message.getFieldWithDefault(msg, 4, "")
912
1413
  };
913
1414
 
914
1415
  if (includeInstance) {
@@ -922,23 +1423,23 @@ proto.ondewo.sip.SipTransferCallRequest.toObject = function(includeInstance, msg
922
1423
  /**
923
1424
  * Deserializes binary data (in protobuf wire format).
924
1425
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
925
- * @return {!proto.ondewo.sip.SipTransferCallRequest}
1426
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest}
926
1427
  */
927
- proto.ondewo.sip.SipTransferCallRequest.deserializeBinary = function(bytes) {
1428
+ proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinary = function(bytes) {
928
1429
  var reader = new jspb.BinaryReader(bytes);
929
- var msg = new proto.ondewo.sip.SipTransferCallRequest;
930
- return proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader(msg, reader);
1430
+ var msg = new proto.ondewo.sip.SipRegisterAccountRequest;
1431
+ return proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader(msg, reader);
931
1432
  };
932
1433
 
933
1434
 
934
1435
  /**
935
1436
  * Deserializes binary data (in protobuf wire format) from the
936
1437
  * given reader into the given message object.
937
- * @param {!proto.ondewo.sip.SipTransferCallRequest} msg The message object to deserialize into.
1438
+ * @param {!proto.ondewo.sip.SipRegisterAccountRequest} msg The message object to deserialize into.
938
1439
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
939
- * @return {!proto.ondewo.sip.SipTransferCallRequest}
1440
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest}
940
1441
  */
941
- proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader = function(msg, reader) {
1442
+ proto.ondewo.sip.SipRegisterAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
942
1443
  while (reader.nextField()) {
943
1444
  if (reader.isEndGroup()) {
944
1445
  break;
@@ -947,13 +1448,19 @@ proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader = function(m
947
1448
  switch (field) {
948
1449
  case 1:
949
1450
  var value = /** @type {string} */ (reader.readString());
950
- msg.setTransferId(value);
1451
+ msg.setAccountName(value);
951
1452
  break;
952
1453
  case 2:
953
- var value = msg.getHeadersMap();
954
- reader.readMessage(value, function(message, reader) {
955
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
956
- });
1454
+ var value = /** @type {string} */ (reader.readString());
1455
+ msg.setPassword(value);
1456
+ break;
1457
+ case 3:
1458
+ var value = /** @type {string} */ (reader.readString());
1459
+ msg.setAuthUsername(value);
1460
+ break;
1461
+ case 4:
1462
+ var value = /** @type {string} */ (reader.readString());
1463
+ msg.setOutboundProxy(value);
957
1464
  break;
958
1465
  default:
959
1466
  reader.skipField();
@@ -968,9 +1475,9 @@ proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader = function(m
968
1475
  * Serializes the message to binary data (in protobuf wire format).
969
1476
  * @return {!Uint8Array}
970
1477
  */
971
- proto.ondewo.sip.SipTransferCallRequest.prototype.serializeBinary = function() {
1478
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.serializeBinary = function() {
972
1479
  var writer = new jspb.BinaryWriter();
973
- proto.ondewo.sip.SipTransferCallRequest.serializeBinaryToWriter(this, writer);
1480
+ proto.ondewo.sip.SipRegisterAccountRequest.serializeBinaryToWriter(this, writer);
974
1481
  return writer.getResultBuffer();
975
1482
  };
976
1483
 
@@ -978,64 +1485,113 @@ proto.ondewo.sip.SipTransferCallRequest.prototype.serializeBinary = function() {
978
1485
  /**
979
1486
  * Serializes the given message to binary data (in protobuf wire
980
1487
  * format), writing to the given BinaryWriter.
981
- * @param {!proto.ondewo.sip.SipTransferCallRequest} message
1488
+ * @param {!proto.ondewo.sip.SipRegisterAccountRequest} message
982
1489
  * @param {!jspb.BinaryWriter} writer
983
1490
  * @suppress {unusedLocalVariables} f is only used for nested messages
984
1491
  */
985
- proto.ondewo.sip.SipTransferCallRequest.serializeBinaryToWriter = function(message, writer) {
1492
+ proto.ondewo.sip.SipRegisterAccountRequest.serializeBinaryToWriter = function(message, writer) {
986
1493
  var f = undefined;
987
- f = message.getTransferId();
1494
+ f = message.getAccountName();
988
1495
  if (f.length > 0) {
989
1496
  writer.writeString(
990
1497
  1,
991
1498
  f
992
1499
  );
993
1500
  }
994
- f = message.getHeadersMap(true);
995
- if (f && f.getLength() > 0) {
996
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1501
+ f = message.getPassword();
1502
+ if (f.length > 0) {
1503
+ writer.writeString(
1504
+ 2,
1505
+ f
1506
+ );
1507
+ }
1508
+ f = message.getAuthUsername();
1509
+ if (f.length > 0) {
1510
+ writer.writeString(
1511
+ 3,
1512
+ f
1513
+ );
1514
+ }
1515
+ f = message.getOutboundProxy();
1516
+ if (f.length > 0) {
1517
+ writer.writeString(
1518
+ 4,
1519
+ f
1520
+ );
997
1521
  }
998
1522
  };
999
1523
 
1000
1524
 
1001
1525
  /**
1002
- * optional string transfer_id = 1;
1526
+ * optional string account_name = 1;
1003
1527
  * @return {string}
1004
1528
  */
1005
- proto.ondewo.sip.SipTransferCallRequest.prototype.getTransferId = function() {
1529
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.getAccountName = function() {
1006
1530
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1007
1531
  };
1008
1532
 
1009
1533
 
1010
1534
  /**
1011
1535
  * @param {string} value
1012
- * @return {!proto.ondewo.sip.SipTransferCallRequest} returns this
1536
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1013
1537
  */
1014
- proto.ondewo.sip.SipTransferCallRequest.prototype.setTransferId = function(value) {
1538
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.setAccountName = function(value) {
1015
1539
  return jspb.Message.setProto3StringField(this, 1, value);
1016
1540
  };
1017
1541
 
1018
1542
 
1019
1543
  /**
1020
- * map<string, string> headers = 2;
1021
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1022
- * empty, instead returning `undefined`
1023
- * @return {!jspb.Map<string,string>}
1544
+ * optional string password = 2;
1545
+ * @return {string}
1024
1546
  */
1025
- proto.ondewo.sip.SipTransferCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
1026
- return /** @type {!jspb.Map<string,string>} */ (
1027
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1028
- null));
1547
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.getPassword = function() {
1548
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1029
1549
  };
1030
1550
 
1031
1551
 
1032
1552
  /**
1033
- * Clears values from the map. The map will be non-null.
1034
- * @return {!proto.ondewo.sip.SipTransferCallRequest} returns this
1553
+ * @param {string} value
1554
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1035
1555
  */
1036
- proto.ondewo.sip.SipTransferCallRequest.prototype.clearHeadersMap = function() {
1037
- this.getHeadersMap().clear();
1038
- return this;};
1556
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.setPassword = function(value) {
1557
+ return jspb.Message.setProto3StringField(this, 2, value);
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * optional string auth_username = 3;
1563
+ * @return {string}
1564
+ */
1565
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.getAuthUsername = function() {
1566
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * @param {string} value
1572
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1573
+ */
1574
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.setAuthUsername = function(value) {
1575
+ return jspb.Message.setProto3StringField(this, 3, value);
1576
+ };
1577
+
1578
+
1579
+ /**
1580
+ * optional string outbound_proxy = 4;
1581
+ * @return {string}
1582
+ */
1583
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.getOutboundProxy = function() {
1584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * @param {string} value
1590
+ * @return {!proto.ondewo.sip.SipRegisterAccountRequest} returns this
1591
+ */
1592
+ proto.ondewo.sip.SipRegisterAccountRequest.prototype.setOutboundProxy = function(value) {
1593
+ return jspb.Message.setProto3StringField(this, 4, value);
1594
+ };
1039
1595
 
1040
1596
 
1041
1597
 
@@ -1054,8 +1610,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1054
1610
  * http://goto/soy-param-migration
1055
1611
  * @return {!Object}
1056
1612
  */
1057
- proto.ondewo.sip.SipStatus.prototype.toObject = function(opt_includeInstance) {
1058
- return proto.ondewo.sip.SipStatus.toObject(opt_includeInstance, this);
1613
+ proto.ondewo.sip.SipStartSessionRequest.prototype.toObject = function(opt_includeInstance) {
1614
+ return proto.ondewo.sip.SipStartSessionRequest.toObject(opt_includeInstance, this);
1059
1615
  };
1060
1616
 
1061
1617
 
@@ -1064,22 +1620,14 @@ proto.ondewo.sip.SipStatus.prototype.toObject = function(opt_includeInstance) {
1064
1620
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1065
1621
  * the JSPB instance for transitional soy proto support:
1066
1622
  * http://goto/soy-param-migration
1067
- * @param {!proto.ondewo.sip.SipStatus} msg The msg instance to transform.
1623
+ * @param {!proto.ondewo.sip.SipStartSessionRequest} msg The msg instance to transform.
1068
1624
  * @return {!Object}
1069
1625
  * @suppress {unusedLocalVariables} f is only used for nested messages
1070
1626
  */
1071
- proto.ondewo.sip.SipStatus.toObject = function(includeInstance, msg) {
1627
+ proto.ondewo.sip.SipStartSessionRequest.toObject = function(includeInstance, msg) {
1072
1628
  var f, obj = {
1073
1629
  accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1074
- timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1075
- statusType: jspb.Message.getFieldWithDefault(msg, 3, 0),
1076
- calleeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1077
- transferCallId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1078
- headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [],
1079
- description: jspb.Message.getFieldWithDefault(msg, 7, ""),
1080
- exceptionName: jspb.Message.getFieldWithDefault(msg, 8, ""),
1081
- exceptionTraceback: jspb.Message.getFieldWithDefault(msg, 9, ""),
1082
- nluSessionName: jspb.Message.getFieldWithDefault(msg, 10, "")
1630
+ autoAnswerInterval: jspb.Message.getFieldWithDefault(msg, 2, 0)
1083
1631
  };
1084
1632
 
1085
1633
  if (includeInstance) {
@@ -1093,23 +1641,23 @@ proto.ondewo.sip.SipStatus.toObject = function(includeInstance, msg) {
1093
1641
  /**
1094
1642
  * Deserializes binary data (in protobuf wire format).
1095
1643
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1096
- * @return {!proto.ondewo.sip.SipStatus}
1644
+ * @return {!proto.ondewo.sip.SipStartSessionRequest}
1097
1645
  */
1098
- proto.ondewo.sip.SipStatus.deserializeBinary = function(bytes) {
1646
+ proto.ondewo.sip.SipStartSessionRequest.deserializeBinary = function(bytes) {
1099
1647
  var reader = new jspb.BinaryReader(bytes);
1100
- var msg = new proto.ondewo.sip.SipStatus;
1101
- return proto.ondewo.sip.SipStatus.deserializeBinaryFromReader(msg, reader);
1648
+ var msg = new proto.ondewo.sip.SipStartSessionRequest;
1649
+ return proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader(msg, reader);
1102
1650
  };
1103
1651
 
1104
1652
 
1105
1653
  /**
1106
1654
  * Deserializes binary data (in protobuf wire format) from the
1107
1655
  * given reader into the given message object.
1108
- * @param {!proto.ondewo.sip.SipStatus} msg The message object to deserialize into.
1656
+ * @param {!proto.ondewo.sip.SipStartSessionRequest} msg The message object to deserialize into.
1109
1657
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1110
- * @return {!proto.ondewo.sip.SipStatus}
1658
+ * @return {!proto.ondewo.sip.SipStartSessionRequest}
1111
1659
  */
1112
- proto.ondewo.sip.SipStatus.deserializeBinaryFromReader = function(msg, reader) {
1660
+ proto.ondewo.sip.SipStartSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
1113
1661
  while (reader.nextField()) {
1114
1662
  if (reader.isEndGroup()) {
1115
1663
  break;
@@ -1121,43 +1669,2371 @@ proto.ondewo.sip.SipStatus.deserializeBinaryFromReader = function(msg, reader) {
1121
1669
  msg.setAccountName(value);
1122
1670
  break;
1123
1671
  case 2:
1124
- var value = new google_protobuf_timestamp_pb.Timestamp;
1125
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1126
- msg.setTimestamp(value);
1127
- break;
1128
- case 3:
1129
- var value = /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (reader.readEnum());
1130
- msg.setStatusType(value);
1131
- break;
1132
- case 4:
1133
- var value = /** @type {string} */ (reader.readString());
1134
- msg.setCalleeId(value);
1135
- break;
1136
- case 5:
1137
- var value = /** @type {string} */ (reader.readString());
1138
- msg.setTransferCallId(value);
1672
+ var value = /** @type {number} */ (reader.readInt32());
1673
+ msg.setAutoAnswerInterval(value);
1139
1674
  break;
1140
- case 6:
1141
- var value = msg.getHeadersMap();
1142
- reader.readMessage(value, function(message, reader) {
1143
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1144
- });
1675
+ default:
1676
+ reader.skipField();
1145
1677
  break;
1146
- case 7:
1147
- var value = /** @type {string} */ (reader.readString());
1148
- msg.setDescription(value);
1678
+ }
1679
+ }
1680
+ return msg;
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Serializes the message to binary data (in protobuf wire format).
1686
+ * @return {!Uint8Array}
1687
+ */
1688
+ proto.ondewo.sip.SipStartSessionRequest.prototype.serializeBinary = function() {
1689
+ var writer = new jspb.BinaryWriter();
1690
+ proto.ondewo.sip.SipStartSessionRequest.serializeBinaryToWriter(this, writer);
1691
+ return writer.getResultBuffer();
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * Serializes the given message to binary data (in protobuf wire
1697
+ * format), writing to the given BinaryWriter.
1698
+ * @param {!proto.ondewo.sip.SipStartSessionRequest} message
1699
+ * @param {!jspb.BinaryWriter} writer
1700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1701
+ */
1702
+ proto.ondewo.sip.SipStartSessionRequest.serializeBinaryToWriter = function(message, writer) {
1703
+ var f = undefined;
1704
+ f = message.getAccountName();
1705
+ if (f.length > 0) {
1706
+ writer.writeString(
1707
+ 1,
1708
+ f
1709
+ );
1710
+ }
1711
+ f = message.getAutoAnswerInterval();
1712
+ if (f !== 0) {
1713
+ writer.writeInt32(
1714
+ 2,
1715
+ f
1716
+ );
1717
+ }
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * optional string account_name = 1;
1723
+ * @return {string}
1724
+ */
1725
+ proto.ondewo.sip.SipStartSessionRequest.prototype.getAccountName = function() {
1726
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * @param {string} value
1732
+ * @return {!proto.ondewo.sip.SipStartSessionRequest} returns this
1733
+ */
1734
+ proto.ondewo.sip.SipStartSessionRequest.prototype.setAccountName = function(value) {
1735
+ return jspb.Message.setProto3StringField(this, 1, value);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * optional int32 auto_answer_interval = 2;
1741
+ * @return {number}
1742
+ */
1743
+ proto.ondewo.sip.SipStartSessionRequest.prototype.getAutoAnswerInterval = function() {
1744
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * @param {number} value
1750
+ * @return {!proto.ondewo.sip.SipStartSessionRequest} returns this
1751
+ */
1752
+ proto.ondewo.sip.SipStartSessionRequest.prototype.setAutoAnswerInterval = function(value) {
1753
+ return jspb.Message.setProto3IntField(this, 2, value);
1754
+ };
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1761
+ /**
1762
+ * Creates an object representation of this proto.
1763
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1764
+ * Optional fields that are not set will be set to undefined.
1765
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1766
+ * For the list of reserved names please see:
1767
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1768
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1769
+ * JSPB instance for transitional soy proto support:
1770
+ * http://goto/soy-param-migration
1771
+ * @return {!Object}
1772
+ */
1773
+ proto.ondewo.sip.SipTransferCallRequest.prototype.toObject = function(opt_includeInstance) {
1774
+ return proto.ondewo.sip.SipTransferCallRequest.toObject(opt_includeInstance, this);
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * Static version of the {@see toObject} method.
1780
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1781
+ * the JSPB instance for transitional soy proto support:
1782
+ * http://goto/soy-param-migration
1783
+ * @param {!proto.ondewo.sip.SipTransferCallRequest} msg The msg instance to transform.
1784
+ * @return {!Object}
1785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1786
+ */
1787
+ proto.ondewo.sip.SipTransferCallRequest.toObject = function(includeInstance, msg) {
1788
+ var f, obj = {
1789
+ transferId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1790
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [],
1791
+ outcomeTimeoutMs: jspb.Message.getFieldWithDefault(msg, 3, 0)
1792
+ };
1793
+
1794
+ if (includeInstance) {
1795
+ obj.$jspbMessageInstance = msg;
1796
+ }
1797
+ return obj;
1798
+ };
1799
+ }
1800
+
1801
+
1802
+ /**
1803
+ * Deserializes binary data (in protobuf wire format).
1804
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1805
+ * @return {!proto.ondewo.sip.SipTransferCallRequest}
1806
+ */
1807
+ proto.ondewo.sip.SipTransferCallRequest.deserializeBinary = function(bytes) {
1808
+ var reader = new jspb.BinaryReader(bytes);
1809
+ var msg = new proto.ondewo.sip.SipTransferCallRequest;
1810
+ return proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader(msg, reader);
1811
+ };
1812
+
1813
+
1814
+ /**
1815
+ * Deserializes binary data (in protobuf wire format) from the
1816
+ * given reader into the given message object.
1817
+ * @param {!proto.ondewo.sip.SipTransferCallRequest} msg The message object to deserialize into.
1818
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1819
+ * @return {!proto.ondewo.sip.SipTransferCallRequest}
1820
+ */
1821
+ proto.ondewo.sip.SipTransferCallRequest.deserializeBinaryFromReader = function(msg, reader) {
1822
+ while (reader.nextField()) {
1823
+ if (reader.isEndGroup()) {
1824
+ break;
1825
+ }
1826
+ var field = reader.getFieldNumber();
1827
+ switch (field) {
1828
+ case 1:
1829
+ var value = /** @type {string} */ (reader.readString());
1830
+ msg.setTransferId(value);
1831
+ break;
1832
+ case 2:
1833
+ var value = msg.getHeadersMap();
1834
+ reader.readMessage(value, function(message, reader) {
1835
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1836
+ });
1837
+ break;
1838
+ case 3:
1839
+ var value = /** @type {number} */ (reader.readUint32());
1840
+ msg.setOutcomeTimeoutMs(value);
1841
+ break;
1842
+ default:
1843
+ reader.skipField();
1844
+ break;
1845
+ }
1846
+ }
1847
+ return msg;
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * Serializes the message to binary data (in protobuf wire format).
1853
+ * @return {!Uint8Array}
1854
+ */
1855
+ proto.ondewo.sip.SipTransferCallRequest.prototype.serializeBinary = function() {
1856
+ var writer = new jspb.BinaryWriter();
1857
+ proto.ondewo.sip.SipTransferCallRequest.serializeBinaryToWriter(this, writer);
1858
+ return writer.getResultBuffer();
1859
+ };
1860
+
1861
+
1862
+ /**
1863
+ * Serializes the given message to binary data (in protobuf wire
1864
+ * format), writing to the given BinaryWriter.
1865
+ * @param {!proto.ondewo.sip.SipTransferCallRequest} message
1866
+ * @param {!jspb.BinaryWriter} writer
1867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1868
+ */
1869
+ proto.ondewo.sip.SipTransferCallRequest.serializeBinaryToWriter = function(message, writer) {
1870
+ var f = undefined;
1871
+ f = message.getTransferId();
1872
+ if (f.length > 0) {
1873
+ writer.writeString(
1874
+ 1,
1875
+ f
1876
+ );
1877
+ }
1878
+ f = message.getHeadersMap(true);
1879
+ if (f && f.getLength() > 0) {
1880
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1881
+ }
1882
+ f = message.getOutcomeTimeoutMs();
1883
+ if (f !== 0) {
1884
+ writer.writeUint32(
1885
+ 3,
1886
+ f
1887
+ );
1888
+ }
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * optional string transfer_id = 1;
1894
+ * @return {string}
1895
+ */
1896
+ proto.ondewo.sip.SipTransferCallRequest.prototype.getTransferId = function() {
1897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * @param {string} value
1903
+ * @return {!proto.ondewo.sip.SipTransferCallRequest} returns this
1904
+ */
1905
+ proto.ondewo.sip.SipTransferCallRequest.prototype.setTransferId = function(value) {
1906
+ return jspb.Message.setProto3StringField(this, 1, value);
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * map<string, string> headers = 2;
1912
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1913
+ * empty, instead returning `undefined`
1914
+ * @return {!jspb.Map<string,string>}
1915
+ */
1916
+ proto.ondewo.sip.SipTransferCallRequest.prototype.getHeadersMap = function(opt_noLazyCreate) {
1917
+ return /** @type {!jspb.Map<string,string>} */ (
1918
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1919
+ null));
1920
+ };
1921
+
1922
+
1923
+ /**
1924
+ * Clears values from the map. The map will be non-null.
1925
+ * @return {!proto.ondewo.sip.SipTransferCallRequest} returns this
1926
+ */
1927
+ proto.ondewo.sip.SipTransferCallRequest.prototype.clearHeadersMap = function() {
1928
+ this.getHeadersMap().clear();
1929
+ return this;};
1930
+
1931
+
1932
+ /**
1933
+ * optional uint32 outcome_timeout_ms = 3;
1934
+ * @return {number}
1935
+ */
1936
+ proto.ondewo.sip.SipTransferCallRequest.prototype.getOutcomeTimeoutMs = function() {
1937
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1938
+ };
1939
+
1940
+
1941
+ /**
1942
+ * @param {number} value
1943
+ * @return {!proto.ondewo.sip.SipTransferCallRequest} returns this
1944
+ */
1945
+ proto.ondewo.sip.SipTransferCallRequest.prototype.setOutcomeTimeoutMs = function(value) {
1946
+ return jspb.Message.setProto3IntField(this, 3, value);
1947
+ };
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1954
+ /**
1955
+ * Creates an object representation of this proto.
1956
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1957
+ * Optional fields that are not set will be set to undefined.
1958
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1959
+ * For the list of reserved names please see:
1960
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1961
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1962
+ * JSPB instance for transitional soy proto support:
1963
+ * http://goto/soy-param-migration
1964
+ * @return {!Object}
1965
+ */
1966
+ proto.ondewo.sip.SipStatus.prototype.toObject = function(opt_includeInstance) {
1967
+ return proto.ondewo.sip.SipStatus.toObject(opt_includeInstance, this);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * Static version of the {@see toObject} method.
1973
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1974
+ * the JSPB instance for transitional soy proto support:
1975
+ * http://goto/soy-param-migration
1976
+ * @param {!proto.ondewo.sip.SipStatus} msg The msg instance to transform.
1977
+ * @return {!Object}
1978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1979
+ */
1980
+ proto.ondewo.sip.SipStatus.toObject = function(includeInstance, msg) {
1981
+ var f, obj = {
1982
+ accountName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1983
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1984
+ statusType: jspb.Message.getFieldWithDefault(msg, 3, 0),
1985
+ calleeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1986
+ transferCallId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1987
+ headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [],
1988
+ description: jspb.Message.getFieldWithDefault(msg, 7, ""),
1989
+ exceptionName: jspb.Message.getFieldWithDefault(msg, 8, ""),
1990
+ exceptionTraceback: jspb.Message.getFieldWithDefault(msg, 9, ""),
1991
+ nluSessionName: jspb.Message.getFieldWithDefault(msg, 10, ""),
1992
+ amdResult: (f = msg.getAmdResult()) && proto.ondewo.sip.AnsweringMachineDetectionResult.toObject(includeInstance, f),
1993
+ callId: jspb.Message.getFieldWithDefault(msg, 12, ""),
1994
+ botMuted: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
1995
+ listeningPaused: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
1996
+ callAudioStreams: jspb.Message.getFieldWithDefault(msg, 15, 0),
1997
+ sipResponseCode: jspb.Message.getFieldWithDefault(msg, 16, 0)
1998
+ };
1999
+
2000
+ if (includeInstance) {
2001
+ obj.$jspbMessageInstance = msg;
2002
+ }
2003
+ return obj;
2004
+ };
2005
+ }
2006
+
2007
+
2008
+ /**
2009
+ * Deserializes binary data (in protobuf wire format).
2010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2011
+ * @return {!proto.ondewo.sip.SipStatus}
2012
+ */
2013
+ proto.ondewo.sip.SipStatus.deserializeBinary = function(bytes) {
2014
+ var reader = new jspb.BinaryReader(bytes);
2015
+ var msg = new proto.ondewo.sip.SipStatus;
2016
+ return proto.ondewo.sip.SipStatus.deserializeBinaryFromReader(msg, reader);
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * Deserializes binary data (in protobuf wire format) from the
2022
+ * given reader into the given message object.
2023
+ * @param {!proto.ondewo.sip.SipStatus} msg The message object to deserialize into.
2024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2025
+ * @return {!proto.ondewo.sip.SipStatus}
2026
+ */
2027
+ proto.ondewo.sip.SipStatus.deserializeBinaryFromReader = function(msg, reader) {
2028
+ while (reader.nextField()) {
2029
+ if (reader.isEndGroup()) {
2030
+ break;
2031
+ }
2032
+ var field = reader.getFieldNumber();
2033
+ switch (field) {
2034
+ case 1:
2035
+ var value = /** @type {string} */ (reader.readString());
2036
+ msg.setAccountName(value);
2037
+ break;
2038
+ case 2:
2039
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2040
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2041
+ msg.setTimestamp(value);
2042
+ break;
2043
+ case 3:
2044
+ var value = /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (reader.readEnum());
2045
+ msg.setStatusType(value);
2046
+ break;
2047
+ case 4:
2048
+ var value = /** @type {string} */ (reader.readString());
2049
+ msg.setCalleeId(value);
2050
+ break;
2051
+ case 5:
2052
+ var value = /** @type {string} */ (reader.readString());
2053
+ msg.setTransferCallId(value);
2054
+ break;
2055
+ case 6:
2056
+ var value = msg.getHeadersMap();
2057
+ reader.readMessage(value, function(message, reader) {
2058
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2059
+ });
2060
+ break;
2061
+ case 7:
2062
+ var value = /** @type {string} */ (reader.readString());
2063
+ msg.setDescription(value);
2064
+ break;
2065
+ case 8:
2066
+ var value = /** @type {string} */ (reader.readString());
2067
+ msg.setExceptionName(value);
2068
+ break;
2069
+ case 9:
2070
+ var value = /** @type {string} */ (reader.readString());
2071
+ msg.setExceptionTraceback(value);
2072
+ break;
2073
+ case 10:
2074
+ var value = /** @type {string} */ (reader.readString());
2075
+ msg.setNluSessionName(value);
2076
+ break;
2077
+ case 11:
2078
+ var value = new proto.ondewo.sip.AnsweringMachineDetectionResult;
2079
+ reader.readMessage(value,proto.ondewo.sip.AnsweringMachineDetectionResult.deserializeBinaryFromReader);
2080
+ msg.setAmdResult(value);
2081
+ break;
2082
+ case 12:
2083
+ var value = /** @type {string} */ (reader.readString());
2084
+ msg.setCallId(value);
2085
+ break;
2086
+ case 13:
2087
+ var value = /** @type {boolean} */ (reader.readBool());
2088
+ msg.setBotMuted(value);
2089
+ break;
2090
+ case 14:
2091
+ var value = /** @type {boolean} */ (reader.readBool());
2092
+ msg.setListeningPaused(value);
2093
+ break;
2094
+ case 15:
2095
+ var value = /** @type {number} */ (reader.readInt32());
2096
+ msg.setCallAudioStreams(value);
2097
+ break;
2098
+ case 16:
2099
+ var value = /** @type {number} */ (reader.readInt32());
2100
+ msg.setSipResponseCode(value);
2101
+ break;
2102
+ default:
2103
+ reader.skipField();
2104
+ break;
2105
+ }
2106
+ }
2107
+ return msg;
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * Serializes the message to binary data (in protobuf wire format).
2113
+ * @return {!Uint8Array}
2114
+ */
2115
+ proto.ondewo.sip.SipStatus.prototype.serializeBinary = function() {
2116
+ var writer = new jspb.BinaryWriter();
2117
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter(this, writer);
2118
+ return writer.getResultBuffer();
2119
+ };
2120
+
2121
+
2122
+ /**
2123
+ * Serializes the given message to binary data (in protobuf wire
2124
+ * format), writing to the given BinaryWriter.
2125
+ * @param {!proto.ondewo.sip.SipStatus} message
2126
+ * @param {!jspb.BinaryWriter} writer
2127
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2128
+ */
2129
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter = function(message, writer) {
2130
+ var f = undefined;
2131
+ f = message.getAccountName();
2132
+ if (f.length > 0) {
2133
+ writer.writeString(
2134
+ 1,
2135
+ f
2136
+ );
2137
+ }
2138
+ f = message.getTimestamp();
2139
+ if (f != null) {
2140
+ writer.writeMessage(
2141
+ 2,
2142
+ f,
2143
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2144
+ );
2145
+ }
2146
+ f = message.getStatusType();
2147
+ if (f !== 0.0) {
2148
+ writer.writeEnum(
2149
+ 3,
2150
+ f
2151
+ );
2152
+ }
2153
+ f = message.getCalleeId();
2154
+ if (f.length > 0) {
2155
+ writer.writeString(
2156
+ 4,
2157
+ f
2158
+ );
2159
+ }
2160
+ f = message.getTransferCallId();
2161
+ if (f.length > 0) {
2162
+ writer.writeString(
2163
+ 5,
2164
+ f
2165
+ );
2166
+ }
2167
+ f = message.getHeadersMap(true);
2168
+ if (f && f.getLength() > 0) {
2169
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2170
+ }
2171
+ f = message.getDescription();
2172
+ if (f.length > 0) {
2173
+ writer.writeString(
2174
+ 7,
2175
+ f
2176
+ );
2177
+ }
2178
+ f = message.getExceptionName();
2179
+ if (f.length > 0) {
2180
+ writer.writeString(
2181
+ 8,
2182
+ f
2183
+ );
2184
+ }
2185
+ f = message.getExceptionTraceback();
2186
+ if (f.length > 0) {
2187
+ writer.writeString(
2188
+ 9,
2189
+ f
2190
+ );
2191
+ }
2192
+ f = message.getNluSessionName();
2193
+ if (f.length > 0) {
2194
+ writer.writeString(
2195
+ 10,
2196
+ f
2197
+ );
2198
+ }
2199
+ f = message.getAmdResult();
2200
+ if (f != null) {
2201
+ writer.writeMessage(
2202
+ 11,
2203
+ f,
2204
+ proto.ondewo.sip.AnsweringMachineDetectionResult.serializeBinaryToWriter
2205
+ );
2206
+ }
2207
+ f = message.getCallId();
2208
+ if (f.length > 0) {
2209
+ writer.writeString(
2210
+ 12,
2211
+ f
2212
+ );
2213
+ }
2214
+ f = message.getBotMuted();
2215
+ if (f) {
2216
+ writer.writeBool(
2217
+ 13,
2218
+ f
2219
+ );
2220
+ }
2221
+ f = message.getListeningPaused();
2222
+ if (f) {
2223
+ writer.writeBool(
2224
+ 14,
2225
+ f
2226
+ );
2227
+ }
2228
+ f = message.getCallAudioStreams();
2229
+ if (f !== 0) {
2230
+ writer.writeInt32(
2231
+ 15,
2232
+ f
2233
+ );
2234
+ }
2235
+ f = message.getSipResponseCode();
2236
+ if (f !== 0) {
2237
+ writer.writeInt32(
2238
+ 16,
2239
+ f
2240
+ );
2241
+ }
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * @enum {number}
2247
+ */
2248
+ proto.ondewo.sip.SipStatus.StatusType = {
2249
+ NO_SESSION: 0,
2250
+ REGISTERED: 1,
2251
+ READY: 2,
2252
+ INCOMING_CALL_INITIATED: 3,
2253
+ OUTGOING_CALL_INITIATED: 4,
2254
+ OUTGOING_CALL_CONNECTED: 5,
2255
+ INCOMING_CALL_CONNECTED: 6,
2256
+ TRANSFER_CALL_INITIATED: 7,
2257
+ SOFT_HANGUP_INITIATED: 8,
2258
+ HARD_HANGUP_INITIATED: 9,
2259
+ INCOMING_CALL_FAILED: 10,
2260
+ OUTGOING_CALL_FAILED: 11,
2261
+ INCOMING_CALL_FINISHED: 12,
2262
+ OUTGOING_CALL_FINISHED: 13,
2263
+ SESSION_REGISTRATION_FAILED: 14,
2264
+ SESSION_STARTED: 15,
2265
+ SESSION_ENDED: 16,
2266
+ TRANSFER_CALL_FAILED: 17,
2267
+ MICROPHONE_MUTED: 18,
2268
+ MICROPHONE_UNMUTED: 19,
2269
+ MICROPHONE_WAV_FILES_PLAYED: 20,
2270
+ NO_ONGOING_CALL: 21,
2271
+ OUTGOING_CALL_ANSWERING_MACHINE_DETECTED: 22
2272
+ };
2273
+
2274
+ /**
2275
+ * optional string account_name = 1;
2276
+ * @return {string}
2277
+ */
2278
+ proto.ondewo.sip.SipStatus.prototype.getAccountName = function() {
2279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * @param {string} value
2285
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2286
+ */
2287
+ proto.ondewo.sip.SipStatus.prototype.setAccountName = function(value) {
2288
+ return jspb.Message.setProto3StringField(this, 1, value);
2289
+ };
2290
+
2291
+
2292
+ /**
2293
+ * optional google.protobuf.Timestamp timestamp = 2;
2294
+ * @return {?proto.google.protobuf.Timestamp}
2295
+ */
2296
+ proto.ondewo.sip.SipStatus.prototype.getTimestamp = function() {
2297
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2298
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2304
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2305
+ */
2306
+ proto.ondewo.sip.SipStatus.prototype.setTimestamp = function(value) {
2307
+ return jspb.Message.setWrapperField(this, 2, value);
2308
+ };
2309
+
2310
+
2311
+ /**
2312
+ * Clears the message field making it undefined.
2313
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2314
+ */
2315
+ proto.ondewo.sip.SipStatus.prototype.clearTimestamp = function() {
2316
+ return this.setTimestamp(undefined);
2317
+ };
2318
+
2319
+
2320
+ /**
2321
+ * Returns whether this field is set.
2322
+ * @return {boolean}
2323
+ */
2324
+ proto.ondewo.sip.SipStatus.prototype.hasTimestamp = function() {
2325
+ return jspb.Message.getField(this, 2) != null;
2326
+ };
2327
+
2328
+
2329
+ /**
2330
+ * optional StatusType status_type = 3;
2331
+ * @return {!proto.ondewo.sip.SipStatus.StatusType}
2332
+ */
2333
+ proto.ondewo.sip.SipStatus.prototype.getStatusType = function() {
2334
+ return /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * @param {!proto.ondewo.sip.SipStatus.StatusType} value
2340
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2341
+ */
2342
+ proto.ondewo.sip.SipStatus.prototype.setStatusType = function(value) {
2343
+ return jspb.Message.setProto3EnumField(this, 3, value);
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * optional string callee_id = 4;
2349
+ * @return {string}
2350
+ */
2351
+ proto.ondewo.sip.SipStatus.prototype.getCalleeId = function() {
2352
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * @param {string} value
2358
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2359
+ */
2360
+ proto.ondewo.sip.SipStatus.prototype.setCalleeId = function(value) {
2361
+ return jspb.Message.setProto3StringField(this, 4, value);
2362
+ };
2363
+
2364
+
2365
+ /**
2366
+ * optional string transfer_call_id = 5;
2367
+ * @return {string}
2368
+ */
2369
+ proto.ondewo.sip.SipStatus.prototype.getTransferCallId = function() {
2370
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * @param {string} value
2376
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2377
+ */
2378
+ proto.ondewo.sip.SipStatus.prototype.setTransferCallId = function(value) {
2379
+ return jspb.Message.setProto3StringField(this, 5, value);
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * map<string, string> headers = 6;
2385
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2386
+ * empty, instead returning `undefined`
2387
+ * @return {!jspb.Map<string,string>}
2388
+ */
2389
+ proto.ondewo.sip.SipStatus.prototype.getHeadersMap = function(opt_noLazyCreate) {
2390
+ return /** @type {!jspb.Map<string,string>} */ (
2391
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
2392
+ null));
2393
+ };
2394
+
2395
+
2396
+ /**
2397
+ * Clears values from the map. The map will be non-null.
2398
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2399
+ */
2400
+ proto.ondewo.sip.SipStatus.prototype.clearHeadersMap = function() {
2401
+ this.getHeadersMap().clear();
2402
+ return this;};
2403
+
2404
+
2405
+ /**
2406
+ * optional string description = 7;
2407
+ * @return {string}
2408
+ */
2409
+ proto.ondewo.sip.SipStatus.prototype.getDescription = function() {
2410
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2411
+ };
2412
+
2413
+
2414
+ /**
2415
+ * @param {string} value
2416
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2417
+ */
2418
+ proto.ondewo.sip.SipStatus.prototype.setDescription = function(value) {
2419
+ return jspb.Message.setProto3StringField(this, 7, value);
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * optional string exception_name = 8;
2425
+ * @return {string}
2426
+ */
2427
+ proto.ondewo.sip.SipStatus.prototype.getExceptionName = function() {
2428
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * @param {string} value
2434
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2435
+ */
2436
+ proto.ondewo.sip.SipStatus.prototype.setExceptionName = function(value) {
2437
+ return jspb.Message.setProto3StringField(this, 8, value);
2438
+ };
2439
+
2440
+
2441
+ /**
2442
+ * optional string exception_traceback = 9;
2443
+ * @return {string}
2444
+ */
2445
+ proto.ondewo.sip.SipStatus.prototype.getExceptionTraceback = function() {
2446
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * @param {string} value
2452
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2453
+ */
2454
+ proto.ondewo.sip.SipStatus.prototype.setExceptionTraceback = function(value) {
2455
+ return jspb.Message.setProto3StringField(this, 9, value);
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * optional string nlu_session_name = 10;
2461
+ * @return {string}
2462
+ */
2463
+ proto.ondewo.sip.SipStatus.prototype.getNluSessionName = function() {
2464
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2465
+ };
2466
+
2467
+
2468
+ /**
2469
+ * @param {string} value
2470
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2471
+ */
2472
+ proto.ondewo.sip.SipStatus.prototype.setNluSessionName = function(value) {
2473
+ return jspb.Message.setProto3StringField(this, 10, value);
2474
+ };
2475
+
2476
+
2477
+ /**
2478
+ * optional AnsweringMachineDetectionResult amd_result = 11;
2479
+ * @return {?proto.ondewo.sip.AnsweringMachineDetectionResult}
2480
+ */
2481
+ proto.ondewo.sip.SipStatus.prototype.getAmdResult = function() {
2482
+ return /** @type{?proto.ondewo.sip.AnsweringMachineDetectionResult} */ (
2483
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.AnsweringMachineDetectionResult, 11));
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * @param {?proto.ondewo.sip.AnsweringMachineDetectionResult|undefined} value
2489
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2490
+ */
2491
+ proto.ondewo.sip.SipStatus.prototype.setAmdResult = function(value) {
2492
+ return jspb.Message.setWrapperField(this, 11, value);
2493
+ };
2494
+
2495
+
2496
+ /**
2497
+ * Clears the message field making it undefined.
2498
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2499
+ */
2500
+ proto.ondewo.sip.SipStatus.prototype.clearAmdResult = function() {
2501
+ return this.setAmdResult(undefined);
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * Returns whether this field is set.
2507
+ * @return {boolean}
2508
+ */
2509
+ proto.ondewo.sip.SipStatus.prototype.hasAmdResult = function() {
2510
+ return jspb.Message.getField(this, 11) != null;
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * optional string call_id = 12;
2516
+ * @return {string}
2517
+ */
2518
+ proto.ondewo.sip.SipStatus.prototype.getCallId = function() {
2519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * @param {string} value
2525
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2526
+ */
2527
+ proto.ondewo.sip.SipStatus.prototype.setCallId = function(value) {
2528
+ return jspb.Message.setProto3StringField(this, 12, value);
2529
+ };
2530
+
2531
+
2532
+ /**
2533
+ * optional bool bot_muted = 13;
2534
+ * @return {boolean}
2535
+ */
2536
+ proto.ondewo.sip.SipStatus.prototype.getBotMuted = function() {
2537
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * @param {boolean} value
2543
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2544
+ */
2545
+ proto.ondewo.sip.SipStatus.prototype.setBotMuted = function(value) {
2546
+ return jspb.Message.setProto3BooleanField(this, 13, value);
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * optional bool listening_paused = 14;
2552
+ * @return {boolean}
2553
+ */
2554
+ proto.ondewo.sip.SipStatus.prototype.getListeningPaused = function() {
2555
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * @param {boolean} value
2561
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2562
+ */
2563
+ proto.ondewo.sip.SipStatus.prototype.setListeningPaused = function(value) {
2564
+ return jspb.Message.setProto3BooleanField(this, 14, value);
2565
+ };
2566
+
2567
+
2568
+ /**
2569
+ * optional int32 call_audio_streams = 15;
2570
+ * @return {number}
2571
+ */
2572
+ proto.ondewo.sip.SipStatus.prototype.getCallAudioStreams = function() {
2573
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * @param {number} value
2579
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2580
+ */
2581
+ proto.ondewo.sip.SipStatus.prototype.setCallAudioStreams = function(value) {
2582
+ return jspb.Message.setProto3IntField(this, 15, value);
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * optional int32 sip_response_code = 16;
2588
+ * @return {number}
2589
+ */
2590
+ proto.ondewo.sip.SipStatus.prototype.getSipResponseCode = function() {
2591
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
2592
+ };
2593
+
2594
+
2595
+ /**
2596
+ * @param {number} value
2597
+ * @return {!proto.ondewo.sip.SipStatus} returns this
2598
+ */
2599
+ proto.ondewo.sip.SipStatus.prototype.setSipResponseCode = function(value) {
2600
+ return jspb.Message.setProto3IntField(this, 16, value);
2601
+ };
2602
+
2603
+
2604
+
2605
+ /**
2606
+ * List of repeated fields within this message type.
2607
+ * @private {!Array<number>}
2608
+ * @const
2609
+ */
2610
+ proto.ondewo.sip.SipStatusHistoryResponse.repeatedFields_ = [1];
2611
+
2612
+
2613
+
2614
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2615
+ /**
2616
+ * Creates an object representation of this proto.
2617
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2618
+ * Optional fields that are not set will be set to undefined.
2619
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2620
+ * For the list of reserved names please see:
2621
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2622
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2623
+ * JSPB instance for transitional soy proto support:
2624
+ * http://goto/soy-param-migration
2625
+ * @return {!Object}
2626
+ */
2627
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.toObject = function(opt_includeInstance) {
2628
+ return proto.ondewo.sip.SipStatusHistoryResponse.toObject(opt_includeInstance, this);
2629
+ };
2630
+
2631
+
2632
+ /**
2633
+ * Static version of the {@see toObject} method.
2634
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2635
+ * the JSPB instance for transitional soy proto support:
2636
+ * http://goto/soy-param-migration
2637
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The msg instance to transform.
2638
+ * @return {!Object}
2639
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2640
+ */
2641
+ proto.ondewo.sip.SipStatusHistoryResponse.toObject = function(includeInstance, msg) {
2642
+ var f, obj = {
2643
+ statusHistoryList: jspb.Message.toObjectList(msg.getStatusHistoryList(),
2644
+ proto.ondewo.sip.SipStatus.toObject, includeInstance)
2645
+ };
2646
+
2647
+ if (includeInstance) {
2648
+ obj.$jspbMessageInstance = msg;
2649
+ }
2650
+ return obj;
2651
+ };
2652
+ }
2653
+
2654
+
2655
+ /**
2656
+ * Deserializes binary data (in protobuf wire format).
2657
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2658
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
2659
+ */
2660
+ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinary = function(bytes) {
2661
+ var reader = new jspb.BinaryReader(bytes);
2662
+ var msg = new proto.ondewo.sip.SipStatusHistoryResponse;
2663
+ return proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader(msg, reader);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * Deserializes binary data (in protobuf wire format) from the
2669
+ * given reader into the given message object.
2670
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The message object to deserialize into.
2671
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2672
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
2673
+ */
2674
+ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
2675
+ while (reader.nextField()) {
2676
+ if (reader.isEndGroup()) {
2677
+ break;
2678
+ }
2679
+ var field = reader.getFieldNumber();
2680
+ switch (field) {
2681
+ case 1:
2682
+ var value = new proto.ondewo.sip.SipStatus;
2683
+ reader.readMessage(value,proto.ondewo.sip.SipStatus.deserializeBinaryFromReader);
2684
+ msg.addStatusHistory(value);
2685
+ break;
2686
+ default:
2687
+ reader.skipField();
2688
+ break;
2689
+ }
2690
+ }
2691
+ return msg;
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * Serializes the message to binary data (in protobuf wire format).
2697
+ * @return {!Uint8Array}
2698
+ */
2699
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.serializeBinary = function() {
2700
+ var writer = new jspb.BinaryWriter();
2701
+ proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter(this, writer);
2702
+ return writer.getResultBuffer();
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * Serializes the given message to binary data (in protobuf wire
2708
+ * format), writing to the given BinaryWriter.
2709
+ * @param {!proto.ondewo.sip.SipStatusHistoryResponse} message
2710
+ * @param {!jspb.BinaryWriter} writer
2711
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2712
+ */
2713
+ proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter = function(message, writer) {
2714
+ var f = undefined;
2715
+ f = message.getStatusHistoryList();
2716
+ if (f.length > 0) {
2717
+ writer.writeRepeatedMessage(
2718
+ 1,
2719
+ f,
2720
+ proto.ondewo.sip.SipStatus.serializeBinaryToWriter
2721
+ );
2722
+ }
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * repeated SipStatus status_history = 1;
2728
+ * @return {!Array<!proto.ondewo.sip.SipStatus>}
2729
+ */
2730
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.getStatusHistoryList = function() {
2731
+ return /** @type{!Array<!proto.ondewo.sip.SipStatus>} */ (
2732
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.sip.SipStatus, 1));
2733
+ };
2734
+
2735
+
2736
+ /**
2737
+ * @param {!Array<!proto.ondewo.sip.SipStatus>} value
2738
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
2739
+ */
2740
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.setStatusHistoryList = function(value) {
2741
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * @param {!proto.ondewo.sip.SipStatus=} opt_value
2747
+ * @param {number=} opt_index
2748
+ * @return {!proto.ondewo.sip.SipStatus}
2749
+ */
2750
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.addStatusHistory = function(opt_value, opt_index) {
2751
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.sip.SipStatus, opt_index);
2752
+ };
2753
+
2754
+
2755
+ /**
2756
+ * Clears the list making it empty but non-null.
2757
+ * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
2758
+ */
2759
+ proto.ondewo.sip.SipStatusHistoryResponse.prototype.clearStatusHistoryList = function() {
2760
+ return this.setStatusHistoryList([]);
2761
+ };
2762
+
2763
+
2764
+
2765
+
2766
+
2767
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2768
+ /**
2769
+ * Creates an object representation of this proto.
2770
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2771
+ * Optional fields that are not set will be set to undefined.
2772
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2773
+ * For the list of reserved names please see:
2774
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2775
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2776
+ * JSPB instance for transitional soy proto support:
2777
+ * http://goto/soy-param-migration
2778
+ * @return {!Object}
2779
+ */
2780
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.toObject = function(opt_includeInstance) {
2781
+ return proto.ondewo.sip.SipSetCallMediaControlRequest.toObject(opt_includeInstance, this);
2782
+ };
2783
+
2784
+
2785
+ /**
2786
+ * Static version of the {@see toObject} method.
2787
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2788
+ * the JSPB instance for transitional soy proto support:
2789
+ * http://goto/soy-param-migration
2790
+ * @param {!proto.ondewo.sip.SipSetCallMediaControlRequest} msg The msg instance to transform.
2791
+ * @return {!Object}
2792
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2793
+ */
2794
+ proto.ondewo.sip.SipSetCallMediaControlRequest.toObject = function(includeInstance, msg) {
2795
+ var f, obj = {
2796
+ botVoice: jspb.Message.getFieldWithDefault(msg, 1, 0),
2797
+ botListening: jspb.Message.getFieldWithDefault(msg, 2, 0),
2798
+ owner: jspb.Message.getFieldWithDefault(msg, 3, 0),
2799
+ participantsPresent: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2800
+ };
2801
+
2802
+ if (includeInstance) {
2803
+ obj.$jspbMessageInstance = msg;
2804
+ }
2805
+ return obj;
2806
+ };
2807
+ }
2808
+
2809
+
2810
+ /**
2811
+ * Deserializes binary data (in protobuf wire format).
2812
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2813
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest}
2814
+ */
2815
+ proto.ondewo.sip.SipSetCallMediaControlRequest.deserializeBinary = function(bytes) {
2816
+ var reader = new jspb.BinaryReader(bytes);
2817
+ var msg = new proto.ondewo.sip.SipSetCallMediaControlRequest;
2818
+ return proto.ondewo.sip.SipSetCallMediaControlRequest.deserializeBinaryFromReader(msg, reader);
2819
+ };
2820
+
2821
+
2822
+ /**
2823
+ * Deserializes binary data (in protobuf wire format) from the
2824
+ * given reader into the given message object.
2825
+ * @param {!proto.ondewo.sip.SipSetCallMediaControlRequest} msg The message object to deserialize into.
2826
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2827
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest}
2828
+ */
2829
+ proto.ondewo.sip.SipSetCallMediaControlRequest.deserializeBinaryFromReader = function(msg, reader) {
2830
+ while (reader.nextField()) {
2831
+ if (reader.isEndGroup()) {
2832
+ break;
2833
+ }
2834
+ var field = reader.getFieldNumber();
2835
+ switch (field) {
2836
+ case 1:
2837
+ var value = /** @type {!proto.ondewo.sip.MediaControlSetting} */ (reader.readEnum());
2838
+ msg.setBotVoice(value);
2839
+ break;
2840
+ case 2:
2841
+ var value = /** @type {!proto.ondewo.sip.MediaControlSetting} */ (reader.readEnum());
2842
+ msg.setBotListening(value);
2843
+ break;
2844
+ case 3:
2845
+ var value = /** @type {!proto.ondewo.sip.MediaControlOwner} */ (reader.readEnum());
2846
+ msg.setOwner(value);
2847
+ break;
2848
+ case 4:
2849
+ var value = /** @type {boolean} */ (reader.readBool());
2850
+ msg.setParticipantsPresent(value);
2851
+ break;
2852
+ default:
2853
+ reader.skipField();
2854
+ break;
2855
+ }
2856
+ }
2857
+ return msg;
2858
+ };
2859
+
2860
+
2861
+ /**
2862
+ * Serializes the message to binary data (in protobuf wire format).
2863
+ * @return {!Uint8Array}
2864
+ */
2865
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.serializeBinary = function() {
2866
+ var writer = new jspb.BinaryWriter();
2867
+ proto.ondewo.sip.SipSetCallMediaControlRequest.serializeBinaryToWriter(this, writer);
2868
+ return writer.getResultBuffer();
2869
+ };
2870
+
2871
+
2872
+ /**
2873
+ * Serializes the given message to binary data (in protobuf wire
2874
+ * format), writing to the given BinaryWriter.
2875
+ * @param {!proto.ondewo.sip.SipSetCallMediaControlRequest} message
2876
+ * @param {!jspb.BinaryWriter} writer
2877
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2878
+ */
2879
+ proto.ondewo.sip.SipSetCallMediaControlRequest.serializeBinaryToWriter = function(message, writer) {
2880
+ var f = undefined;
2881
+ f = message.getBotVoice();
2882
+ if (f !== 0.0) {
2883
+ writer.writeEnum(
2884
+ 1,
2885
+ f
2886
+ );
2887
+ }
2888
+ f = message.getBotListening();
2889
+ if (f !== 0.0) {
2890
+ writer.writeEnum(
2891
+ 2,
2892
+ f
2893
+ );
2894
+ }
2895
+ f = message.getOwner();
2896
+ if (f !== 0.0) {
2897
+ writer.writeEnum(
2898
+ 3,
2899
+ f
2900
+ );
2901
+ }
2902
+ f = message.getParticipantsPresent();
2903
+ if (f) {
2904
+ writer.writeBool(
2905
+ 4,
2906
+ f
2907
+ );
2908
+ }
2909
+ };
2910
+
2911
+
2912
+ /**
2913
+ * optional MediaControlSetting bot_voice = 1;
2914
+ * @return {!proto.ondewo.sip.MediaControlSetting}
2915
+ */
2916
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.getBotVoice = function() {
2917
+ return /** @type {!proto.ondewo.sip.MediaControlSetting} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * @param {!proto.ondewo.sip.MediaControlSetting} value
2923
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest} returns this
2924
+ */
2925
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.setBotVoice = function(value) {
2926
+ return jspb.Message.setProto3EnumField(this, 1, value);
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * optional MediaControlSetting bot_listening = 2;
2932
+ * @return {!proto.ondewo.sip.MediaControlSetting}
2933
+ */
2934
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.getBotListening = function() {
2935
+ return /** @type {!proto.ondewo.sip.MediaControlSetting} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * @param {!proto.ondewo.sip.MediaControlSetting} value
2941
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest} returns this
2942
+ */
2943
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.setBotListening = function(value) {
2944
+ return jspb.Message.setProto3EnumField(this, 2, value);
2945
+ };
2946
+
2947
+
2948
+ /**
2949
+ * optional MediaControlOwner owner = 3;
2950
+ * @return {!proto.ondewo.sip.MediaControlOwner}
2951
+ */
2952
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.getOwner = function() {
2953
+ return /** @type {!proto.ondewo.sip.MediaControlOwner} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2954
+ };
2955
+
2956
+
2957
+ /**
2958
+ * @param {!proto.ondewo.sip.MediaControlOwner} value
2959
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest} returns this
2960
+ */
2961
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.setOwner = function(value) {
2962
+ return jspb.Message.setProto3EnumField(this, 3, value);
2963
+ };
2964
+
2965
+
2966
+ /**
2967
+ * optional bool participants_present = 4;
2968
+ * @return {boolean}
2969
+ */
2970
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.getParticipantsPresent = function() {
2971
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2972
+ };
2973
+
2974
+
2975
+ /**
2976
+ * @param {boolean} value
2977
+ * @return {!proto.ondewo.sip.SipSetCallMediaControlRequest} returns this
2978
+ */
2979
+ proto.ondewo.sip.SipSetCallMediaControlRequest.prototype.setParticipantsPresent = function(value) {
2980
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2981
+ };
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2988
+ /**
2989
+ * Creates an object representation of this proto.
2990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2991
+ * Optional fields that are not set will be set to undefined.
2992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2993
+ * For the list of reserved names please see:
2994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2996
+ * JSPB instance for transitional soy proto support:
2997
+ * http://goto/soy-param-migration
2998
+ * @return {!Object}
2999
+ */
3000
+ proto.ondewo.sip.SipCallAudioConfig.prototype.toObject = function(opt_includeInstance) {
3001
+ return proto.ondewo.sip.SipCallAudioConfig.toObject(opt_includeInstance, this);
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * Static version of the {@see toObject} method.
3007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3008
+ * the JSPB instance for transitional soy proto support:
3009
+ * http://goto/soy-param-migration
3010
+ * @param {!proto.ondewo.sip.SipCallAudioConfig} msg The msg instance to transform.
3011
+ * @return {!Object}
3012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3013
+ */
3014
+ proto.ondewo.sip.SipCallAudioConfig.toObject = function(includeInstance, msg) {
3015
+ var f, obj = {
3016
+ mode: jspb.Message.getFieldWithDefault(msg, 1, 0),
3017
+ sampleRateHz: jspb.Message.getFieldWithDefault(msg, 2, 0),
3018
+ frameMs: jspb.Message.getFieldWithDefault(msg, 3, 0),
3019
+ takeOver: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3020
+ streamId: jspb.Message.getFieldWithDefault(msg, 5, ""),
3021
+ maxDurationS: jspb.Message.getFieldWithDefault(msg, 6, 0)
3022
+ };
3023
+
3024
+ if (includeInstance) {
3025
+ obj.$jspbMessageInstance = msg;
3026
+ }
3027
+ return obj;
3028
+ };
3029
+ }
3030
+
3031
+
3032
+ /**
3033
+ * Deserializes binary data (in protobuf wire format).
3034
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3035
+ * @return {!proto.ondewo.sip.SipCallAudioConfig}
3036
+ */
3037
+ proto.ondewo.sip.SipCallAudioConfig.deserializeBinary = function(bytes) {
3038
+ var reader = new jspb.BinaryReader(bytes);
3039
+ var msg = new proto.ondewo.sip.SipCallAudioConfig;
3040
+ return proto.ondewo.sip.SipCallAudioConfig.deserializeBinaryFromReader(msg, reader);
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * Deserializes binary data (in protobuf wire format) from the
3046
+ * given reader into the given message object.
3047
+ * @param {!proto.ondewo.sip.SipCallAudioConfig} msg The message object to deserialize into.
3048
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3049
+ * @return {!proto.ondewo.sip.SipCallAudioConfig}
3050
+ */
3051
+ proto.ondewo.sip.SipCallAudioConfig.deserializeBinaryFromReader = function(msg, reader) {
3052
+ while (reader.nextField()) {
3053
+ if (reader.isEndGroup()) {
3054
+ break;
3055
+ }
3056
+ var field = reader.getFieldNumber();
3057
+ switch (field) {
3058
+ case 1:
3059
+ var value = /** @type {!proto.ondewo.sip.SipCallAudioMode} */ (reader.readEnum());
3060
+ msg.setMode(value);
3061
+ break;
3062
+ case 2:
3063
+ var value = /** @type {number} */ (reader.readInt32());
3064
+ msg.setSampleRateHz(value);
3065
+ break;
3066
+ case 3:
3067
+ var value = /** @type {number} */ (reader.readInt32());
3068
+ msg.setFrameMs(value);
3069
+ break;
3070
+ case 4:
3071
+ var value = /** @type {boolean} */ (reader.readBool());
3072
+ msg.setTakeOver(value);
3073
+ break;
3074
+ case 5:
3075
+ var value = /** @type {string} */ (reader.readString());
3076
+ msg.setStreamId(value);
3077
+ break;
3078
+ case 6:
3079
+ var value = /** @type {number} */ (reader.readInt32());
3080
+ msg.setMaxDurationS(value);
3081
+ break;
3082
+ default:
3083
+ reader.skipField();
3084
+ break;
3085
+ }
3086
+ }
3087
+ return msg;
3088
+ };
3089
+
3090
+
3091
+ /**
3092
+ * Serializes the message to binary data (in protobuf wire format).
3093
+ * @return {!Uint8Array}
3094
+ */
3095
+ proto.ondewo.sip.SipCallAudioConfig.prototype.serializeBinary = function() {
3096
+ var writer = new jspb.BinaryWriter();
3097
+ proto.ondewo.sip.SipCallAudioConfig.serializeBinaryToWriter(this, writer);
3098
+ return writer.getResultBuffer();
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * Serializes the given message to binary data (in protobuf wire
3104
+ * format), writing to the given BinaryWriter.
3105
+ * @param {!proto.ondewo.sip.SipCallAudioConfig} message
3106
+ * @param {!jspb.BinaryWriter} writer
3107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3108
+ */
3109
+ proto.ondewo.sip.SipCallAudioConfig.serializeBinaryToWriter = function(message, writer) {
3110
+ var f = undefined;
3111
+ f = message.getMode();
3112
+ if (f !== 0.0) {
3113
+ writer.writeEnum(
3114
+ 1,
3115
+ f
3116
+ );
3117
+ }
3118
+ f = message.getSampleRateHz();
3119
+ if (f !== 0) {
3120
+ writer.writeInt32(
3121
+ 2,
3122
+ f
3123
+ );
3124
+ }
3125
+ f = message.getFrameMs();
3126
+ if (f !== 0) {
3127
+ writer.writeInt32(
3128
+ 3,
3129
+ f
3130
+ );
3131
+ }
3132
+ f = message.getTakeOver();
3133
+ if (f) {
3134
+ writer.writeBool(
3135
+ 4,
3136
+ f
3137
+ );
3138
+ }
3139
+ f = message.getStreamId();
3140
+ if (f.length > 0) {
3141
+ writer.writeString(
3142
+ 5,
3143
+ f
3144
+ );
3145
+ }
3146
+ f = message.getMaxDurationS();
3147
+ if (f !== 0) {
3148
+ writer.writeInt32(
3149
+ 6,
3150
+ f
3151
+ );
3152
+ }
3153
+ };
3154
+
3155
+
3156
+ /**
3157
+ * optional SipCallAudioMode mode = 1;
3158
+ * @return {!proto.ondewo.sip.SipCallAudioMode}
3159
+ */
3160
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getMode = function() {
3161
+ return /** @type {!proto.ondewo.sip.SipCallAudioMode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3162
+ };
3163
+
3164
+
3165
+ /**
3166
+ * @param {!proto.ondewo.sip.SipCallAudioMode} value
3167
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3168
+ */
3169
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setMode = function(value) {
3170
+ return jspb.Message.setProto3EnumField(this, 1, value);
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * optional int32 sample_rate_hz = 2;
3176
+ * @return {number}
3177
+ */
3178
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getSampleRateHz = function() {
3179
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * @param {number} value
3185
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3186
+ */
3187
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setSampleRateHz = function(value) {
3188
+ return jspb.Message.setProto3IntField(this, 2, value);
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * optional int32 frame_ms = 3;
3194
+ * @return {number}
3195
+ */
3196
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getFrameMs = function() {
3197
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * @param {number} value
3203
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3204
+ */
3205
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setFrameMs = function(value) {
3206
+ return jspb.Message.setProto3IntField(this, 3, value);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * optional bool take_over = 4;
3212
+ * @return {boolean}
3213
+ */
3214
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getTakeOver = function() {
3215
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3216
+ };
3217
+
3218
+
3219
+ /**
3220
+ * @param {boolean} value
3221
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3222
+ */
3223
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setTakeOver = function(value) {
3224
+ return jspb.Message.setProto3BooleanField(this, 4, value);
3225
+ };
3226
+
3227
+
3228
+ /**
3229
+ * optional string stream_id = 5;
3230
+ * @return {string}
3231
+ */
3232
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getStreamId = function() {
3233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3234
+ };
3235
+
3236
+
3237
+ /**
3238
+ * @param {string} value
3239
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3240
+ */
3241
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setStreamId = function(value) {
3242
+ return jspb.Message.setProto3StringField(this, 5, value);
3243
+ };
3244
+
3245
+
3246
+ /**
3247
+ * optional int32 max_duration_s = 6;
3248
+ * @return {number}
3249
+ */
3250
+ proto.ondewo.sip.SipCallAudioConfig.prototype.getMaxDurationS = function() {
3251
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3252
+ };
3253
+
3254
+
3255
+ /**
3256
+ * @param {number} value
3257
+ * @return {!proto.ondewo.sip.SipCallAudioConfig} returns this
3258
+ */
3259
+ proto.ondewo.sip.SipCallAudioConfig.prototype.setMaxDurationS = function(value) {
3260
+ return jspb.Message.setProto3IntField(this, 6, value);
3261
+ };
3262
+
3263
+
3264
+
3265
+
3266
+
3267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3268
+ /**
3269
+ * Creates an object representation of this proto.
3270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3271
+ * Optional fields that are not set will be set to undefined.
3272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3273
+ * For the list of reserved names please see:
3274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3276
+ * JSPB instance for transitional soy proto support:
3277
+ * http://goto/soy-param-migration
3278
+ * @return {!Object}
3279
+ */
3280
+ proto.ondewo.sip.SipCallAudioFrame.prototype.toObject = function(opt_includeInstance) {
3281
+ return proto.ondewo.sip.SipCallAudioFrame.toObject(opt_includeInstance, this);
3282
+ };
3283
+
3284
+
3285
+ /**
3286
+ * Static version of the {@see toObject} method.
3287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3288
+ * the JSPB instance for transitional soy proto support:
3289
+ * http://goto/soy-param-migration
3290
+ * @param {!proto.ondewo.sip.SipCallAudioFrame} msg The msg instance to transform.
3291
+ * @return {!Object}
3292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3293
+ */
3294
+ proto.ondewo.sip.SipCallAudioFrame.toObject = function(includeInstance, msg) {
3295
+ var f, obj = {
3296
+ pcmS16le: msg.getPcmS16le_asB64(),
3297
+ sequence: jspb.Message.getFieldWithDefault(msg, 2, 0)
3298
+ };
3299
+
3300
+ if (includeInstance) {
3301
+ obj.$jspbMessageInstance = msg;
3302
+ }
3303
+ return obj;
3304
+ };
3305
+ }
3306
+
3307
+
3308
+ /**
3309
+ * Deserializes binary data (in protobuf wire format).
3310
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3311
+ * @return {!proto.ondewo.sip.SipCallAudioFrame}
3312
+ */
3313
+ proto.ondewo.sip.SipCallAudioFrame.deserializeBinary = function(bytes) {
3314
+ var reader = new jspb.BinaryReader(bytes);
3315
+ var msg = new proto.ondewo.sip.SipCallAudioFrame;
3316
+ return proto.ondewo.sip.SipCallAudioFrame.deserializeBinaryFromReader(msg, reader);
3317
+ };
3318
+
3319
+
3320
+ /**
3321
+ * Deserializes binary data (in protobuf wire format) from the
3322
+ * given reader into the given message object.
3323
+ * @param {!proto.ondewo.sip.SipCallAudioFrame} msg The message object to deserialize into.
3324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3325
+ * @return {!proto.ondewo.sip.SipCallAudioFrame}
3326
+ */
3327
+ proto.ondewo.sip.SipCallAudioFrame.deserializeBinaryFromReader = function(msg, reader) {
3328
+ while (reader.nextField()) {
3329
+ if (reader.isEndGroup()) {
3330
+ break;
3331
+ }
3332
+ var field = reader.getFieldNumber();
3333
+ switch (field) {
3334
+ case 1:
3335
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3336
+ msg.setPcmS16le(value);
3337
+ break;
3338
+ case 2:
3339
+ var value = /** @type {number} */ (reader.readUint64());
3340
+ msg.setSequence(value);
3341
+ break;
3342
+ default:
3343
+ reader.skipField();
3344
+ break;
3345
+ }
3346
+ }
3347
+ return msg;
3348
+ };
3349
+
3350
+
3351
+ /**
3352
+ * Serializes the message to binary data (in protobuf wire format).
3353
+ * @return {!Uint8Array}
3354
+ */
3355
+ proto.ondewo.sip.SipCallAudioFrame.prototype.serializeBinary = function() {
3356
+ var writer = new jspb.BinaryWriter();
3357
+ proto.ondewo.sip.SipCallAudioFrame.serializeBinaryToWriter(this, writer);
3358
+ return writer.getResultBuffer();
3359
+ };
3360
+
3361
+
3362
+ /**
3363
+ * Serializes the given message to binary data (in protobuf wire
3364
+ * format), writing to the given BinaryWriter.
3365
+ * @param {!proto.ondewo.sip.SipCallAudioFrame} message
3366
+ * @param {!jspb.BinaryWriter} writer
3367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3368
+ */
3369
+ proto.ondewo.sip.SipCallAudioFrame.serializeBinaryToWriter = function(message, writer) {
3370
+ var f = undefined;
3371
+ f = message.getPcmS16le_asU8();
3372
+ if (f.length > 0) {
3373
+ writer.writeBytes(
3374
+ 1,
3375
+ f
3376
+ );
3377
+ }
3378
+ f = message.getSequence();
3379
+ if (f !== 0) {
3380
+ writer.writeUint64(
3381
+ 2,
3382
+ f
3383
+ );
3384
+ }
3385
+ };
3386
+
3387
+
3388
+ /**
3389
+ * optional bytes pcm_s16le = 1;
3390
+ * @return {!(string|Uint8Array)}
3391
+ */
3392
+ proto.ondewo.sip.SipCallAudioFrame.prototype.getPcmS16le = function() {
3393
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3394
+ };
3395
+
3396
+
3397
+ /**
3398
+ * optional bytes pcm_s16le = 1;
3399
+ * This is a type-conversion wrapper around `getPcmS16le()`
3400
+ * @return {string}
3401
+ */
3402
+ proto.ondewo.sip.SipCallAudioFrame.prototype.getPcmS16le_asB64 = function() {
3403
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3404
+ this.getPcmS16le()));
3405
+ };
3406
+
3407
+
3408
+ /**
3409
+ * optional bytes pcm_s16le = 1;
3410
+ * Note that Uint8Array is not supported on all browsers.
3411
+ * @see http://caniuse.com/Uint8Array
3412
+ * This is a type-conversion wrapper around `getPcmS16le()`
3413
+ * @return {!Uint8Array}
3414
+ */
3415
+ proto.ondewo.sip.SipCallAudioFrame.prototype.getPcmS16le_asU8 = function() {
3416
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3417
+ this.getPcmS16le()));
3418
+ };
3419
+
3420
+
3421
+ /**
3422
+ * @param {!(string|Uint8Array)} value
3423
+ * @return {!proto.ondewo.sip.SipCallAudioFrame} returns this
3424
+ */
3425
+ proto.ondewo.sip.SipCallAudioFrame.prototype.setPcmS16le = function(value) {
3426
+ return jspb.Message.setProto3BytesField(this, 1, value);
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * optional uint64 sequence = 2;
3432
+ * @return {number}
3433
+ */
3434
+ proto.ondewo.sip.SipCallAudioFrame.prototype.getSequence = function() {
3435
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * @param {number} value
3441
+ * @return {!proto.ondewo.sip.SipCallAudioFrame} returns this
3442
+ */
3443
+ proto.ondewo.sip.SipCallAudioFrame.prototype.setSequence = function(value) {
3444
+ return jspb.Message.setProto3IntField(this, 2, value);
3445
+ };
3446
+
3447
+
3448
+
3449
+ /**
3450
+ * Oneof group definitions for this message. Each group defines the field
3451
+ * numbers belonging to that group. When of these fields' value is set, all
3452
+ * other fields in the group are cleared. During deserialization, if multiple
3453
+ * fields are encountered for a group, only the last value seen will be kept.
3454
+ * @private {!Array<!Array<number>>}
3455
+ * @const
3456
+ */
3457
+ proto.ondewo.sip.SipCallAudioRequest.oneofGroups_ = [[1,2,3]];
3458
+
3459
+ /**
3460
+ * @enum {number}
3461
+ */
3462
+ proto.ondewo.sip.SipCallAudioRequest.RequestCase = {
3463
+ REQUEST_NOT_SET: 0,
3464
+ CONFIG: 1,
3465
+ AUDIO: 2,
3466
+ AGENT_MUTED: 3
3467
+ };
3468
+
3469
+ /**
3470
+ * @return {proto.ondewo.sip.SipCallAudioRequest.RequestCase}
3471
+ */
3472
+ proto.ondewo.sip.SipCallAudioRequest.prototype.getRequestCase = function() {
3473
+ return /** @type {proto.ondewo.sip.SipCallAudioRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_[0]));
3474
+ };
3475
+
3476
+
3477
+
3478
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3479
+ /**
3480
+ * Creates an object representation of this proto.
3481
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3482
+ * Optional fields that are not set will be set to undefined.
3483
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3484
+ * For the list of reserved names please see:
3485
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3486
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3487
+ * JSPB instance for transitional soy proto support:
3488
+ * http://goto/soy-param-migration
3489
+ * @return {!Object}
3490
+ */
3491
+ proto.ondewo.sip.SipCallAudioRequest.prototype.toObject = function(opt_includeInstance) {
3492
+ return proto.ondewo.sip.SipCallAudioRequest.toObject(opt_includeInstance, this);
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Static version of the {@see toObject} method.
3498
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3499
+ * the JSPB instance for transitional soy proto support:
3500
+ * http://goto/soy-param-migration
3501
+ * @param {!proto.ondewo.sip.SipCallAudioRequest} msg The msg instance to transform.
3502
+ * @return {!Object}
3503
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3504
+ */
3505
+ proto.ondewo.sip.SipCallAudioRequest.toObject = function(includeInstance, msg) {
3506
+ var f, obj = {
3507
+ config: (f = msg.getConfig()) && proto.ondewo.sip.SipCallAudioConfig.toObject(includeInstance, f),
3508
+ audio: (f = msg.getAudio()) && proto.ondewo.sip.SipCallAudioFrame.toObject(includeInstance, f),
3509
+ agentMuted: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3510
+ };
3511
+
3512
+ if (includeInstance) {
3513
+ obj.$jspbMessageInstance = msg;
3514
+ }
3515
+ return obj;
3516
+ };
3517
+ }
3518
+
3519
+
3520
+ /**
3521
+ * Deserializes binary data (in protobuf wire format).
3522
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3523
+ * @return {!proto.ondewo.sip.SipCallAudioRequest}
3524
+ */
3525
+ proto.ondewo.sip.SipCallAudioRequest.deserializeBinary = function(bytes) {
3526
+ var reader = new jspb.BinaryReader(bytes);
3527
+ var msg = new proto.ondewo.sip.SipCallAudioRequest;
3528
+ return proto.ondewo.sip.SipCallAudioRequest.deserializeBinaryFromReader(msg, reader);
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * Deserializes binary data (in protobuf wire format) from the
3534
+ * given reader into the given message object.
3535
+ * @param {!proto.ondewo.sip.SipCallAudioRequest} msg The message object to deserialize into.
3536
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3537
+ * @return {!proto.ondewo.sip.SipCallAudioRequest}
3538
+ */
3539
+ proto.ondewo.sip.SipCallAudioRequest.deserializeBinaryFromReader = function(msg, reader) {
3540
+ while (reader.nextField()) {
3541
+ if (reader.isEndGroup()) {
3542
+ break;
3543
+ }
3544
+ var field = reader.getFieldNumber();
3545
+ switch (field) {
3546
+ case 1:
3547
+ var value = new proto.ondewo.sip.SipCallAudioConfig;
3548
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioConfig.deserializeBinaryFromReader);
3549
+ msg.setConfig(value);
3550
+ break;
3551
+ case 2:
3552
+ var value = new proto.ondewo.sip.SipCallAudioFrame;
3553
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioFrame.deserializeBinaryFromReader);
3554
+ msg.setAudio(value);
3555
+ break;
3556
+ case 3:
3557
+ var value = /** @type {boolean} */ (reader.readBool());
3558
+ msg.setAgentMuted(value);
3559
+ break;
3560
+ default:
3561
+ reader.skipField();
3562
+ break;
3563
+ }
3564
+ }
3565
+ return msg;
3566
+ };
3567
+
3568
+
3569
+ /**
3570
+ * Serializes the message to binary data (in protobuf wire format).
3571
+ * @return {!Uint8Array}
3572
+ */
3573
+ proto.ondewo.sip.SipCallAudioRequest.prototype.serializeBinary = function() {
3574
+ var writer = new jspb.BinaryWriter();
3575
+ proto.ondewo.sip.SipCallAudioRequest.serializeBinaryToWriter(this, writer);
3576
+ return writer.getResultBuffer();
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * Serializes the given message to binary data (in protobuf wire
3582
+ * format), writing to the given BinaryWriter.
3583
+ * @param {!proto.ondewo.sip.SipCallAudioRequest} message
3584
+ * @param {!jspb.BinaryWriter} writer
3585
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3586
+ */
3587
+ proto.ondewo.sip.SipCallAudioRequest.serializeBinaryToWriter = function(message, writer) {
3588
+ var f = undefined;
3589
+ f = message.getConfig();
3590
+ if (f != null) {
3591
+ writer.writeMessage(
3592
+ 1,
3593
+ f,
3594
+ proto.ondewo.sip.SipCallAudioConfig.serializeBinaryToWriter
3595
+ );
3596
+ }
3597
+ f = message.getAudio();
3598
+ if (f != null) {
3599
+ writer.writeMessage(
3600
+ 2,
3601
+ f,
3602
+ proto.ondewo.sip.SipCallAudioFrame.serializeBinaryToWriter
3603
+ );
3604
+ }
3605
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
3606
+ if (f != null) {
3607
+ writer.writeBool(
3608
+ 3,
3609
+ f
3610
+ );
3611
+ }
3612
+ };
3613
+
3614
+
3615
+ /**
3616
+ * optional SipCallAudioConfig config = 1;
3617
+ * @return {?proto.ondewo.sip.SipCallAudioConfig}
3618
+ */
3619
+ proto.ondewo.sip.SipCallAudioRequest.prototype.getConfig = function() {
3620
+ return /** @type{?proto.ondewo.sip.SipCallAudioConfig} */ (
3621
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioConfig, 1));
3622
+ };
3623
+
3624
+
3625
+ /**
3626
+ * @param {?proto.ondewo.sip.SipCallAudioConfig|undefined} value
3627
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3628
+ */
3629
+ proto.ondewo.sip.SipCallAudioRequest.prototype.setConfig = function(value) {
3630
+ return jspb.Message.setOneofWrapperField(this, 1, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_[0], value);
3631
+ };
3632
+
3633
+
3634
+ /**
3635
+ * Clears the message field making it undefined.
3636
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3637
+ */
3638
+ proto.ondewo.sip.SipCallAudioRequest.prototype.clearConfig = function() {
3639
+ return this.setConfig(undefined);
3640
+ };
3641
+
3642
+
3643
+ /**
3644
+ * Returns whether this field is set.
3645
+ * @return {boolean}
3646
+ */
3647
+ proto.ondewo.sip.SipCallAudioRequest.prototype.hasConfig = function() {
3648
+ return jspb.Message.getField(this, 1) != null;
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * optional SipCallAudioFrame audio = 2;
3654
+ * @return {?proto.ondewo.sip.SipCallAudioFrame}
3655
+ */
3656
+ proto.ondewo.sip.SipCallAudioRequest.prototype.getAudio = function() {
3657
+ return /** @type{?proto.ondewo.sip.SipCallAudioFrame} */ (
3658
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioFrame, 2));
3659
+ };
3660
+
3661
+
3662
+ /**
3663
+ * @param {?proto.ondewo.sip.SipCallAudioFrame|undefined} value
3664
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3665
+ */
3666
+ proto.ondewo.sip.SipCallAudioRequest.prototype.setAudio = function(value) {
3667
+ return jspb.Message.setOneofWrapperField(this, 2, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_[0], value);
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * Clears the message field making it undefined.
3673
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3674
+ */
3675
+ proto.ondewo.sip.SipCallAudioRequest.prototype.clearAudio = function() {
3676
+ return this.setAudio(undefined);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Returns whether this field is set.
3682
+ * @return {boolean}
3683
+ */
3684
+ proto.ondewo.sip.SipCallAudioRequest.prototype.hasAudio = function() {
3685
+ return jspb.Message.getField(this, 2) != null;
3686
+ };
3687
+
3688
+
3689
+ /**
3690
+ * optional bool agent_muted = 3;
3691
+ * @return {boolean}
3692
+ */
3693
+ proto.ondewo.sip.SipCallAudioRequest.prototype.getAgentMuted = function() {
3694
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3695
+ };
3696
+
3697
+
3698
+ /**
3699
+ * @param {boolean} value
3700
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3701
+ */
3702
+ proto.ondewo.sip.SipCallAudioRequest.prototype.setAgentMuted = function(value) {
3703
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_[0], value);
3704
+ };
3705
+
3706
+
3707
+ /**
3708
+ * Clears the field making it undefined.
3709
+ * @return {!proto.ondewo.sip.SipCallAudioRequest} returns this
3710
+ */
3711
+ proto.ondewo.sip.SipCallAudioRequest.prototype.clearAgentMuted = function() {
3712
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.sip.SipCallAudioRequest.oneofGroups_[0], undefined);
3713
+ };
3714
+
3715
+
3716
+ /**
3717
+ * Returns whether this field is set.
3718
+ * @return {boolean}
3719
+ */
3720
+ proto.ondewo.sip.SipCallAudioRequest.prototype.hasAgentMuted = function() {
3721
+ return jspb.Message.getField(this, 3) != null;
3722
+ };
3723
+
3724
+
3725
+
3726
+
3727
+
3728
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3729
+ /**
3730
+ * Creates an object representation of this proto.
3731
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3732
+ * Optional fields that are not set will be set to undefined.
3733
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3734
+ * For the list of reserved names please see:
3735
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3736
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3737
+ * JSPB instance for transitional soy proto support:
3738
+ * http://goto/soy-param-migration
3739
+ * @return {!Object}
3740
+ */
3741
+ proto.ondewo.sip.SipCallAudioStarted.prototype.toObject = function(opt_includeInstance) {
3742
+ return proto.ondewo.sip.SipCallAudioStarted.toObject(opt_includeInstance, this);
3743
+ };
3744
+
3745
+
3746
+ /**
3747
+ * Static version of the {@see toObject} method.
3748
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3749
+ * the JSPB instance for transitional soy proto support:
3750
+ * http://goto/soy-param-migration
3751
+ * @param {!proto.ondewo.sip.SipCallAudioStarted} msg The msg instance to transform.
3752
+ * @return {!Object}
3753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3754
+ */
3755
+ proto.ondewo.sip.SipCallAudioStarted.toObject = function(includeInstance, msg) {
3756
+ var f, obj = {
3757
+ streamId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3758
+ sampleRateHz: jspb.Message.getFieldWithDefault(msg, 2, 0),
3759
+ frameMs: jspb.Message.getFieldWithDefault(msg, 3, 0),
3760
+ mode: jspb.Message.getFieldWithDefault(msg, 4, 0)
3761
+ };
3762
+
3763
+ if (includeInstance) {
3764
+ obj.$jspbMessageInstance = msg;
3765
+ }
3766
+ return obj;
3767
+ };
3768
+ }
3769
+
3770
+
3771
+ /**
3772
+ * Deserializes binary data (in protobuf wire format).
3773
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3774
+ * @return {!proto.ondewo.sip.SipCallAudioStarted}
3775
+ */
3776
+ proto.ondewo.sip.SipCallAudioStarted.deserializeBinary = function(bytes) {
3777
+ var reader = new jspb.BinaryReader(bytes);
3778
+ var msg = new proto.ondewo.sip.SipCallAudioStarted;
3779
+ return proto.ondewo.sip.SipCallAudioStarted.deserializeBinaryFromReader(msg, reader);
3780
+ };
3781
+
3782
+
3783
+ /**
3784
+ * Deserializes binary data (in protobuf wire format) from the
3785
+ * given reader into the given message object.
3786
+ * @param {!proto.ondewo.sip.SipCallAudioStarted} msg The message object to deserialize into.
3787
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3788
+ * @return {!proto.ondewo.sip.SipCallAudioStarted}
3789
+ */
3790
+ proto.ondewo.sip.SipCallAudioStarted.deserializeBinaryFromReader = function(msg, reader) {
3791
+ while (reader.nextField()) {
3792
+ if (reader.isEndGroup()) {
3793
+ break;
3794
+ }
3795
+ var field = reader.getFieldNumber();
3796
+ switch (field) {
3797
+ case 1:
3798
+ var value = /** @type {string} */ (reader.readString());
3799
+ msg.setStreamId(value);
3800
+ break;
3801
+ case 2:
3802
+ var value = /** @type {number} */ (reader.readInt32());
3803
+ msg.setSampleRateHz(value);
3804
+ break;
3805
+ case 3:
3806
+ var value = /** @type {number} */ (reader.readInt32());
3807
+ msg.setFrameMs(value);
3808
+ break;
3809
+ case 4:
3810
+ var value = /** @type {!proto.ondewo.sip.SipCallAudioMode} */ (reader.readEnum());
3811
+ msg.setMode(value);
3812
+ break;
3813
+ default:
3814
+ reader.skipField();
3815
+ break;
3816
+ }
3817
+ }
3818
+ return msg;
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * Serializes the message to binary data (in protobuf wire format).
3824
+ * @return {!Uint8Array}
3825
+ */
3826
+ proto.ondewo.sip.SipCallAudioStarted.prototype.serializeBinary = function() {
3827
+ var writer = new jspb.BinaryWriter();
3828
+ proto.ondewo.sip.SipCallAudioStarted.serializeBinaryToWriter(this, writer);
3829
+ return writer.getResultBuffer();
3830
+ };
3831
+
3832
+
3833
+ /**
3834
+ * Serializes the given message to binary data (in protobuf wire
3835
+ * format), writing to the given BinaryWriter.
3836
+ * @param {!proto.ondewo.sip.SipCallAudioStarted} message
3837
+ * @param {!jspb.BinaryWriter} writer
3838
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3839
+ */
3840
+ proto.ondewo.sip.SipCallAudioStarted.serializeBinaryToWriter = function(message, writer) {
3841
+ var f = undefined;
3842
+ f = message.getStreamId();
3843
+ if (f.length > 0) {
3844
+ writer.writeString(
3845
+ 1,
3846
+ f
3847
+ );
3848
+ }
3849
+ f = message.getSampleRateHz();
3850
+ if (f !== 0) {
3851
+ writer.writeInt32(
3852
+ 2,
3853
+ f
3854
+ );
3855
+ }
3856
+ f = message.getFrameMs();
3857
+ if (f !== 0) {
3858
+ writer.writeInt32(
3859
+ 3,
3860
+ f
3861
+ );
3862
+ }
3863
+ f = message.getMode();
3864
+ if (f !== 0.0) {
3865
+ writer.writeEnum(
3866
+ 4,
3867
+ f
3868
+ );
3869
+ }
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * optional string stream_id = 1;
3875
+ * @return {string}
3876
+ */
3877
+ proto.ondewo.sip.SipCallAudioStarted.prototype.getStreamId = function() {
3878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3879
+ };
3880
+
3881
+
3882
+ /**
3883
+ * @param {string} value
3884
+ * @return {!proto.ondewo.sip.SipCallAudioStarted} returns this
3885
+ */
3886
+ proto.ondewo.sip.SipCallAudioStarted.prototype.setStreamId = function(value) {
3887
+ return jspb.Message.setProto3StringField(this, 1, value);
3888
+ };
3889
+
3890
+
3891
+ /**
3892
+ * optional int32 sample_rate_hz = 2;
3893
+ * @return {number}
3894
+ */
3895
+ proto.ondewo.sip.SipCallAudioStarted.prototype.getSampleRateHz = function() {
3896
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3897
+ };
3898
+
3899
+
3900
+ /**
3901
+ * @param {number} value
3902
+ * @return {!proto.ondewo.sip.SipCallAudioStarted} returns this
3903
+ */
3904
+ proto.ondewo.sip.SipCallAudioStarted.prototype.setSampleRateHz = function(value) {
3905
+ return jspb.Message.setProto3IntField(this, 2, value);
3906
+ };
3907
+
3908
+
3909
+ /**
3910
+ * optional int32 frame_ms = 3;
3911
+ * @return {number}
3912
+ */
3913
+ proto.ondewo.sip.SipCallAudioStarted.prototype.getFrameMs = function() {
3914
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3915
+ };
3916
+
3917
+
3918
+ /**
3919
+ * @param {number} value
3920
+ * @return {!proto.ondewo.sip.SipCallAudioStarted} returns this
3921
+ */
3922
+ proto.ondewo.sip.SipCallAudioStarted.prototype.setFrameMs = function(value) {
3923
+ return jspb.Message.setProto3IntField(this, 3, value);
3924
+ };
3925
+
3926
+
3927
+ /**
3928
+ * optional SipCallAudioMode mode = 4;
3929
+ * @return {!proto.ondewo.sip.SipCallAudioMode}
3930
+ */
3931
+ proto.ondewo.sip.SipCallAudioStarted.prototype.getMode = function() {
3932
+ return /** @type {!proto.ondewo.sip.SipCallAudioMode} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3933
+ };
3934
+
3935
+
3936
+ /**
3937
+ * @param {!proto.ondewo.sip.SipCallAudioMode} value
3938
+ * @return {!proto.ondewo.sip.SipCallAudioStarted} returns this
3939
+ */
3940
+ proto.ondewo.sip.SipCallAudioStarted.prototype.setMode = function(value) {
3941
+ return jspb.Message.setProto3EnumField(this, 4, value);
3942
+ };
3943
+
3944
+
3945
+
3946
+
3947
+
3948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3949
+ /**
3950
+ * Creates an object representation of this proto.
3951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3952
+ * Optional fields that are not set will be set to undefined.
3953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3954
+ * For the list of reserved names please see:
3955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3957
+ * JSPB instance for transitional soy proto support:
3958
+ * http://goto/soy-param-migration
3959
+ * @return {!Object}
3960
+ */
3961
+ proto.ondewo.sip.SipCallAudioStats.prototype.toObject = function(opt_includeInstance) {
3962
+ return proto.ondewo.sip.SipCallAudioStats.toObject(opt_includeInstance, this);
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * Static version of the {@see toObject} method.
3968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3969
+ * the JSPB instance for transitional soy proto support:
3970
+ * http://goto/soy-param-migration
3971
+ * @param {!proto.ondewo.sip.SipCallAudioStats} msg The msg instance to transform.
3972
+ * @return {!Object}
3973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3974
+ */
3975
+ proto.ondewo.sip.SipCallAudioStats.toObject = function(includeInstance, msg) {
3976
+ var f, obj = {
3977
+ framesSent: jspb.Message.getFieldWithDefault(msg, 1, 0),
3978
+ framesDropped: jspb.Message.getFieldWithDefault(msg, 2, 0),
3979
+ framesReceived: jspb.Message.getFieldWithDefault(msg, 3, 0),
3980
+ underruns: jspb.Message.getFieldWithDefault(msg, 4, 0),
3981
+ framesDiscarded: jspb.Message.getFieldWithDefault(msg, 5, 0)
3982
+ };
3983
+
3984
+ if (includeInstance) {
3985
+ obj.$jspbMessageInstance = msg;
3986
+ }
3987
+ return obj;
3988
+ };
3989
+ }
3990
+
3991
+
3992
+ /**
3993
+ * Deserializes binary data (in protobuf wire format).
3994
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3995
+ * @return {!proto.ondewo.sip.SipCallAudioStats}
3996
+ */
3997
+ proto.ondewo.sip.SipCallAudioStats.deserializeBinary = function(bytes) {
3998
+ var reader = new jspb.BinaryReader(bytes);
3999
+ var msg = new proto.ondewo.sip.SipCallAudioStats;
4000
+ return proto.ondewo.sip.SipCallAudioStats.deserializeBinaryFromReader(msg, reader);
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * Deserializes binary data (in protobuf wire format) from the
4006
+ * given reader into the given message object.
4007
+ * @param {!proto.ondewo.sip.SipCallAudioStats} msg The message object to deserialize into.
4008
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4009
+ * @return {!proto.ondewo.sip.SipCallAudioStats}
4010
+ */
4011
+ proto.ondewo.sip.SipCallAudioStats.deserializeBinaryFromReader = function(msg, reader) {
4012
+ while (reader.nextField()) {
4013
+ if (reader.isEndGroup()) {
1149
4014
  break;
1150
- case 8:
1151
- var value = /** @type {string} */ (reader.readString());
1152
- msg.setExceptionName(value);
4015
+ }
4016
+ var field = reader.getFieldNumber();
4017
+ switch (field) {
4018
+ case 1:
4019
+ var value = /** @type {number} */ (reader.readUint64());
4020
+ msg.setFramesSent(value);
1153
4021
  break;
1154
- case 9:
1155
- var value = /** @type {string} */ (reader.readString());
1156
- msg.setExceptionTraceback(value);
4022
+ case 2:
4023
+ var value = /** @type {number} */ (reader.readUint64());
4024
+ msg.setFramesDropped(value);
1157
4025
  break;
1158
- case 10:
1159
- var value = /** @type {string} */ (reader.readString());
1160
- msg.setNluSessionName(value);
4026
+ case 3:
4027
+ var value = /** @type {number} */ (reader.readUint64());
4028
+ msg.setFramesReceived(value);
4029
+ break;
4030
+ case 4:
4031
+ var value = /** @type {number} */ (reader.readUint64());
4032
+ msg.setUnderruns(value);
4033
+ break;
4034
+ case 5:
4035
+ var value = /** @type {number} */ (reader.readUint64());
4036
+ msg.setFramesDiscarded(value);
1161
4037
  break;
1162
4038
  default:
1163
4039
  reader.skipField();
@@ -1172,9 +4048,9 @@ proto.ondewo.sip.SipStatus.deserializeBinaryFromReader = function(msg, reader) {
1172
4048
  * Serializes the message to binary data (in protobuf wire format).
1173
4049
  * @return {!Uint8Array}
1174
4050
  */
1175
- proto.ondewo.sip.SipStatus.prototype.serializeBinary = function() {
4051
+ proto.ondewo.sip.SipCallAudioStats.prototype.serializeBinary = function() {
1176
4052
  var writer = new jspb.BinaryWriter();
1177
- proto.ondewo.sip.SipStatus.serializeBinaryToWriter(this, writer);
4053
+ proto.ondewo.sip.SipCallAudioStats.serializeBinaryToWriter(this, writer);
1178
4054
  return writer.getResultBuffer();
1179
4055
  };
1180
4056
 
@@ -1182,321 +4058,328 @@ proto.ondewo.sip.SipStatus.prototype.serializeBinary = function() {
1182
4058
  /**
1183
4059
  * Serializes the given message to binary data (in protobuf wire
1184
4060
  * format), writing to the given BinaryWriter.
1185
- * @param {!proto.ondewo.sip.SipStatus} message
4061
+ * @param {!proto.ondewo.sip.SipCallAudioStats} message
1186
4062
  * @param {!jspb.BinaryWriter} writer
1187
4063
  * @suppress {unusedLocalVariables} f is only used for nested messages
1188
4064
  */
1189
- proto.ondewo.sip.SipStatus.serializeBinaryToWriter = function(message, writer) {
4065
+ proto.ondewo.sip.SipCallAudioStats.serializeBinaryToWriter = function(message, writer) {
1190
4066
  var f = undefined;
1191
- f = message.getAccountName();
1192
- if (f.length > 0) {
1193
- writer.writeString(
4067
+ f = message.getFramesSent();
4068
+ if (f !== 0) {
4069
+ writer.writeUint64(
1194
4070
  1,
1195
4071
  f
1196
4072
  );
1197
4073
  }
1198
- f = message.getTimestamp();
1199
- if (f != null) {
1200
- writer.writeMessage(
4074
+ f = message.getFramesDropped();
4075
+ if (f !== 0) {
4076
+ writer.writeUint64(
1201
4077
  2,
1202
- f,
1203
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4078
+ f
1204
4079
  );
1205
4080
  }
1206
- f = message.getStatusType();
1207
- if (f !== 0.0) {
1208
- writer.writeEnum(
4081
+ f = message.getFramesReceived();
4082
+ if (f !== 0) {
4083
+ writer.writeUint64(
1209
4084
  3,
1210
4085
  f
1211
4086
  );
1212
4087
  }
1213
- f = message.getCalleeId();
1214
- if (f.length > 0) {
1215
- writer.writeString(
4088
+ f = message.getUnderruns();
4089
+ if (f !== 0) {
4090
+ writer.writeUint64(
1216
4091
  4,
1217
4092
  f
1218
4093
  );
1219
4094
  }
1220
- f = message.getTransferCallId();
1221
- if (f.length > 0) {
1222
- writer.writeString(
4095
+ f = message.getFramesDiscarded();
4096
+ if (f !== 0) {
4097
+ writer.writeUint64(
1223
4098
  5,
1224
4099
  f
1225
4100
  );
1226
4101
  }
1227
- f = message.getHeadersMap(true);
1228
- if (f && f.getLength() > 0) {
1229
- f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1230
- }
1231
- f = message.getDescription();
1232
- if (f.length > 0) {
1233
- writer.writeString(
1234
- 7,
1235
- f
1236
- );
1237
- }
1238
- f = message.getExceptionName();
1239
- if (f.length > 0) {
1240
- writer.writeString(
1241
- 8,
1242
- f
1243
- );
1244
- }
1245
- f = message.getExceptionTraceback();
1246
- if (f.length > 0) {
1247
- writer.writeString(
1248
- 9,
1249
- f
1250
- );
1251
- }
1252
- f = message.getNluSessionName();
1253
- if (f.length > 0) {
1254
- writer.writeString(
1255
- 10,
1256
- f
1257
- );
1258
- }
1259
4102
  };
1260
4103
 
1261
4104
 
1262
4105
  /**
1263
- * @enum {number}
1264
- */
1265
- proto.ondewo.sip.SipStatus.StatusType = {
1266
- NO_SESSION: 0,
1267
- REGISTERED: 1,
1268
- READY: 2,
1269
- INCOMING_CALL_INITIATED: 3,
1270
- OUTGOING_CALL_INITIATED: 4,
1271
- OUTGOING_CALL_CONNECTED: 5,
1272
- INCOMING_CALL_CONNECTED: 6,
1273
- TRANSFER_CALL_INITIATED: 7,
1274
- SOFT_HANGUP_INITIATED: 8,
1275
- HARD_HANGUP_INITIATED: 9,
1276
- INCOMING_CALL_FAILED: 10,
1277
- OUTGOING_CALL_FAILED: 11,
1278
- INCOMING_CALL_FINISHED: 12,
1279
- OUTGOING_CALL_FINISHED: 13,
1280
- SESSION_REGISTRATION_FAILED: 14,
1281
- SESSION_STARTED: 15,
1282
- SESSION_ENDED: 16,
1283
- TRANSFER_CALL_FAILED: 17,
1284
- MICROPHONE_MUTED: 18,
1285
- MICROPHONE_UNMUTED: 19,
1286
- MICROPHONE_WAV_FILES_PLAYED: 20,
1287
- NO_ONGOING_CALL: 21
1288
- };
1289
-
1290
- /**
1291
- * optional string account_name = 1;
1292
- * @return {string}
4106
+ * optional uint64 frames_sent = 1;
4107
+ * @return {number}
1293
4108
  */
1294
- proto.ondewo.sip.SipStatus.prototype.getAccountName = function() {
1295
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4109
+ proto.ondewo.sip.SipCallAudioStats.prototype.getFramesSent = function() {
4110
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1296
4111
  };
1297
4112
 
1298
4113
 
1299
4114
  /**
1300
- * @param {string} value
1301
- * @return {!proto.ondewo.sip.SipStatus} returns this
4115
+ * @param {number} value
4116
+ * @return {!proto.ondewo.sip.SipCallAudioStats} returns this
1302
4117
  */
1303
- proto.ondewo.sip.SipStatus.prototype.setAccountName = function(value) {
1304
- return jspb.Message.setProto3StringField(this, 1, value);
4118
+ proto.ondewo.sip.SipCallAudioStats.prototype.setFramesSent = function(value) {
4119
+ return jspb.Message.setProto3IntField(this, 1, value);
1305
4120
  };
1306
4121
 
1307
4122
 
1308
4123
  /**
1309
- * optional google.protobuf.Timestamp timestamp = 2;
1310
- * @return {?proto.google.protobuf.Timestamp}
4124
+ * optional uint64 frames_dropped = 2;
4125
+ * @return {number}
1311
4126
  */
1312
- proto.ondewo.sip.SipStatus.prototype.getTimestamp = function() {
1313
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1314
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1315
- };
1316
-
1317
-
1318
- /**
1319
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1320
- * @return {!proto.ondewo.sip.SipStatus} returns this
1321
- */
1322
- proto.ondewo.sip.SipStatus.prototype.setTimestamp = function(value) {
1323
- return jspb.Message.setWrapperField(this, 2, value);
4127
+ proto.ondewo.sip.SipCallAudioStats.prototype.getFramesDropped = function() {
4128
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1324
4129
  };
1325
4130
 
1326
4131
 
1327
4132
  /**
1328
- * Clears the message field making it undefined.
1329
- * @return {!proto.ondewo.sip.SipStatus} returns this
4133
+ * @param {number} value
4134
+ * @return {!proto.ondewo.sip.SipCallAudioStats} returns this
1330
4135
  */
1331
- proto.ondewo.sip.SipStatus.prototype.clearTimestamp = function() {
1332
- return this.setTimestamp(undefined);
4136
+ proto.ondewo.sip.SipCallAudioStats.prototype.setFramesDropped = function(value) {
4137
+ return jspb.Message.setProto3IntField(this, 2, value);
1333
4138
  };
1334
4139
 
1335
4140
 
1336
4141
  /**
1337
- * Returns whether this field is set.
1338
- * @return {boolean}
4142
+ * optional uint64 frames_received = 3;
4143
+ * @return {number}
1339
4144
  */
1340
- proto.ondewo.sip.SipStatus.prototype.hasTimestamp = function() {
1341
- return jspb.Message.getField(this, 2) != null;
4145
+ proto.ondewo.sip.SipCallAudioStats.prototype.getFramesReceived = function() {
4146
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1342
4147
  };
1343
4148
 
1344
4149
 
1345
4150
  /**
1346
- * optional StatusType status_type = 3;
1347
- * @return {!proto.ondewo.sip.SipStatus.StatusType}
4151
+ * @param {number} value
4152
+ * @return {!proto.ondewo.sip.SipCallAudioStats} returns this
1348
4153
  */
1349
- proto.ondewo.sip.SipStatus.prototype.getStatusType = function() {
1350
- return /** @type {!proto.ondewo.sip.SipStatus.StatusType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4154
+ proto.ondewo.sip.SipCallAudioStats.prototype.setFramesReceived = function(value) {
4155
+ return jspb.Message.setProto3IntField(this, 3, value);
1351
4156
  };
1352
4157
 
1353
4158
 
1354
4159
  /**
1355
- * @param {!proto.ondewo.sip.SipStatus.StatusType} value
1356
- * @return {!proto.ondewo.sip.SipStatus} returns this
4160
+ * optional uint64 underruns = 4;
4161
+ * @return {number}
1357
4162
  */
1358
- proto.ondewo.sip.SipStatus.prototype.setStatusType = function(value) {
1359
- return jspb.Message.setProto3EnumField(this, 3, value);
4163
+ proto.ondewo.sip.SipCallAudioStats.prototype.getUnderruns = function() {
4164
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1360
4165
  };
1361
4166
 
1362
4167
 
1363
4168
  /**
1364
- * optional string callee_id = 4;
1365
- * @return {string}
4169
+ * @param {number} value
4170
+ * @return {!proto.ondewo.sip.SipCallAudioStats} returns this
1366
4171
  */
1367
- proto.ondewo.sip.SipStatus.prototype.getCalleeId = function() {
1368
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4172
+ proto.ondewo.sip.SipCallAudioStats.prototype.setUnderruns = function(value) {
4173
+ return jspb.Message.setProto3IntField(this, 4, value);
1369
4174
  };
1370
4175
 
1371
4176
 
1372
4177
  /**
1373
- * @param {string} value
1374
- * @return {!proto.ondewo.sip.SipStatus} returns this
4178
+ * optional uint64 frames_discarded = 5;
4179
+ * @return {number}
1375
4180
  */
1376
- proto.ondewo.sip.SipStatus.prototype.setCalleeId = function(value) {
1377
- return jspb.Message.setProto3StringField(this, 4, value);
4181
+ proto.ondewo.sip.SipCallAudioStats.prototype.getFramesDiscarded = function() {
4182
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1378
4183
  };
1379
4184
 
1380
4185
 
1381
4186
  /**
1382
- * optional string transfer_call_id = 5;
1383
- * @return {string}
4187
+ * @param {number} value
4188
+ * @return {!proto.ondewo.sip.SipCallAudioStats} returns this
1384
4189
  */
1385
- proto.ondewo.sip.SipStatus.prototype.getTransferCallId = function() {
1386
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4190
+ proto.ondewo.sip.SipCallAudioStats.prototype.setFramesDiscarded = function(value) {
4191
+ return jspb.Message.setProto3IntField(this, 5, value);
1387
4192
  };
1388
4193
 
1389
4194
 
1390
- /**
1391
- * @param {string} value
1392
- * @return {!proto.ondewo.sip.SipStatus} returns this
1393
- */
1394
- proto.ondewo.sip.SipStatus.prototype.setTransferCallId = function(value) {
1395
- return jspb.Message.setProto3StringField(this, 5, value);
1396
- };
1397
4195
 
1398
4196
 
4197
+
4198
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1399
4199
  /**
1400
- * map<string, string> headers = 6;
1401
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1402
- * empty, instead returning `undefined`
1403
- * @return {!jspb.Map<string,string>}
4200
+ * Creates an object representation of this proto.
4201
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4202
+ * Optional fields that are not set will be set to undefined.
4203
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4204
+ * For the list of reserved names please see:
4205
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4206
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4207
+ * JSPB instance for transitional soy proto support:
4208
+ * http://goto/soy-param-migration
4209
+ * @return {!Object}
1404
4210
  */
1405
- proto.ondewo.sip.SipStatus.prototype.getHeadersMap = function(opt_noLazyCreate) {
1406
- return /** @type {!jspb.Map<string,string>} */ (
1407
- jspb.Message.getMapField(this, 6, opt_noLazyCreate,
1408
- null));
4211
+ proto.ondewo.sip.SipCallAudioEnded.prototype.toObject = function(opt_includeInstance) {
4212
+ return proto.ondewo.sip.SipCallAudioEnded.toObject(opt_includeInstance, this);
1409
4213
  };
1410
4214
 
1411
4215
 
1412
4216
  /**
1413
- * Clears values from the map. The map will be non-null.
1414
- * @return {!proto.ondewo.sip.SipStatus} returns this
4217
+ * Static version of the {@see toObject} method.
4218
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4219
+ * the JSPB instance for transitional soy proto support:
4220
+ * http://goto/soy-param-migration
4221
+ * @param {!proto.ondewo.sip.SipCallAudioEnded} msg The msg instance to transform.
4222
+ * @return {!Object}
4223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1415
4224
  */
1416
- proto.ondewo.sip.SipStatus.prototype.clearHeadersMap = function() {
1417
- this.getHeadersMap().clear();
1418
- return this;};
4225
+ proto.ondewo.sip.SipCallAudioEnded.toObject = function(includeInstance, msg) {
4226
+ var f, obj = {
4227
+ reason: jspb.Message.getFieldWithDefault(msg, 1, 0),
4228
+ detail: jspb.Message.getFieldWithDefault(msg, 2, "")
4229
+ };
4230
+
4231
+ if (includeInstance) {
4232
+ obj.$jspbMessageInstance = msg;
4233
+ }
4234
+ return obj;
4235
+ };
4236
+ }
1419
4237
 
1420
4238
 
1421
4239
  /**
1422
- * optional string description = 7;
1423
- * @return {string}
4240
+ * Deserializes binary data (in protobuf wire format).
4241
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4242
+ * @return {!proto.ondewo.sip.SipCallAudioEnded}
1424
4243
  */
1425
- proto.ondewo.sip.SipStatus.prototype.getDescription = function() {
1426
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4244
+ proto.ondewo.sip.SipCallAudioEnded.deserializeBinary = function(bytes) {
4245
+ var reader = new jspb.BinaryReader(bytes);
4246
+ var msg = new proto.ondewo.sip.SipCallAudioEnded;
4247
+ return proto.ondewo.sip.SipCallAudioEnded.deserializeBinaryFromReader(msg, reader);
1427
4248
  };
1428
4249
 
1429
4250
 
1430
4251
  /**
1431
- * @param {string} value
1432
- * @return {!proto.ondewo.sip.SipStatus} returns this
4252
+ * Deserializes binary data (in protobuf wire format) from the
4253
+ * given reader into the given message object.
4254
+ * @param {!proto.ondewo.sip.SipCallAudioEnded} msg The message object to deserialize into.
4255
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4256
+ * @return {!proto.ondewo.sip.SipCallAudioEnded}
1433
4257
  */
1434
- proto.ondewo.sip.SipStatus.prototype.setDescription = function(value) {
1435
- return jspb.Message.setProto3StringField(this, 7, value);
4258
+ proto.ondewo.sip.SipCallAudioEnded.deserializeBinaryFromReader = function(msg, reader) {
4259
+ while (reader.nextField()) {
4260
+ if (reader.isEndGroup()) {
4261
+ break;
4262
+ }
4263
+ var field = reader.getFieldNumber();
4264
+ switch (field) {
4265
+ case 1:
4266
+ var value = /** @type {!proto.ondewo.sip.SipCallAudioEndReason} */ (reader.readEnum());
4267
+ msg.setReason(value);
4268
+ break;
4269
+ case 2:
4270
+ var value = /** @type {string} */ (reader.readString());
4271
+ msg.setDetail(value);
4272
+ break;
4273
+ default:
4274
+ reader.skipField();
4275
+ break;
4276
+ }
4277
+ }
4278
+ return msg;
1436
4279
  };
1437
4280
 
1438
4281
 
1439
4282
  /**
1440
- * optional string exception_name = 8;
1441
- * @return {string}
4283
+ * Serializes the message to binary data (in protobuf wire format).
4284
+ * @return {!Uint8Array}
1442
4285
  */
1443
- proto.ondewo.sip.SipStatus.prototype.getExceptionName = function() {
1444
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4286
+ proto.ondewo.sip.SipCallAudioEnded.prototype.serializeBinary = function() {
4287
+ var writer = new jspb.BinaryWriter();
4288
+ proto.ondewo.sip.SipCallAudioEnded.serializeBinaryToWriter(this, writer);
4289
+ return writer.getResultBuffer();
1445
4290
  };
1446
4291
 
1447
4292
 
1448
4293
  /**
1449
- * @param {string} value
1450
- * @return {!proto.ondewo.sip.SipStatus} returns this
4294
+ * Serializes the given message to binary data (in protobuf wire
4295
+ * format), writing to the given BinaryWriter.
4296
+ * @param {!proto.ondewo.sip.SipCallAudioEnded} message
4297
+ * @param {!jspb.BinaryWriter} writer
4298
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1451
4299
  */
1452
- proto.ondewo.sip.SipStatus.prototype.setExceptionName = function(value) {
1453
- return jspb.Message.setProto3StringField(this, 8, value);
4300
+ proto.ondewo.sip.SipCallAudioEnded.serializeBinaryToWriter = function(message, writer) {
4301
+ var f = undefined;
4302
+ f = message.getReason();
4303
+ if (f !== 0.0) {
4304
+ writer.writeEnum(
4305
+ 1,
4306
+ f
4307
+ );
4308
+ }
4309
+ f = message.getDetail();
4310
+ if (f.length > 0) {
4311
+ writer.writeString(
4312
+ 2,
4313
+ f
4314
+ );
4315
+ }
1454
4316
  };
1455
4317
 
1456
4318
 
1457
4319
  /**
1458
- * optional string exception_traceback = 9;
1459
- * @return {string}
4320
+ * optional SipCallAudioEndReason reason = 1;
4321
+ * @return {!proto.ondewo.sip.SipCallAudioEndReason}
1460
4322
  */
1461
- proto.ondewo.sip.SipStatus.prototype.getExceptionTraceback = function() {
1462
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
4323
+ proto.ondewo.sip.SipCallAudioEnded.prototype.getReason = function() {
4324
+ return /** @type {!proto.ondewo.sip.SipCallAudioEndReason} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1463
4325
  };
1464
4326
 
1465
4327
 
1466
4328
  /**
1467
- * @param {string} value
1468
- * @return {!proto.ondewo.sip.SipStatus} returns this
4329
+ * @param {!proto.ondewo.sip.SipCallAudioEndReason} value
4330
+ * @return {!proto.ondewo.sip.SipCallAudioEnded} returns this
1469
4331
  */
1470
- proto.ondewo.sip.SipStatus.prototype.setExceptionTraceback = function(value) {
1471
- return jspb.Message.setProto3StringField(this, 9, value);
4332
+ proto.ondewo.sip.SipCallAudioEnded.prototype.setReason = function(value) {
4333
+ return jspb.Message.setProto3EnumField(this, 1, value);
1472
4334
  };
1473
4335
 
1474
4336
 
1475
4337
  /**
1476
- * optional string nlu_session_name = 10;
4338
+ * optional string detail = 2;
1477
4339
  * @return {string}
1478
4340
  */
1479
- proto.ondewo.sip.SipStatus.prototype.getNluSessionName = function() {
1480
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4341
+ proto.ondewo.sip.SipCallAudioEnded.prototype.getDetail = function() {
4342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1481
4343
  };
1482
4344
 
1483
4345
 
1484
4346
  /**
1485
4347
  * @param {string} value
1486
- * @return {!proto.ondewo.sip.SipStatus} returns this
4348
+ * @return {!proto.ondewo.sip.SipCallAudioEnded} returns this
1487
4349
  */
1488
- proto.ondewo.sip.SipStatus.prototype.setNluSessionName = function(value) {
1489
- return jspb.Message.setProto3StringField(this, 10, value);
4350
+ proto.ondewo.sip.SipCallAudioEnded.prototype.setDetail = function(value) {
4351
+ return jspb.Message.setProto3StringField(this, 2, value);
1490
4352
  };
1491
4353
 
1492
4354
 
1493
4355
 
1494
4356
  /**
1495
- * List of repeated fields within this message type.
1496
- * @private {!Array<number>}
4357
+ * Oneof group definitions for this message. Each group defines the field
4358
+ * numbers belonging to that group. When of these fields' value is set, all
4359
+ * other fields in the group are cleared. During deserialization, if multiple
4360
+ * fields are encountered for a group, only the last value seen will be kept.
4361
+ * @private {!Array<!Array<number>>}
1497
4362
  * @const
1498
4363
  */
1499
- proto.ondewo.sip.SipStatusHistoryResponse.repeatedFields_ = [1];
4364
+ proto.ondewo.sip.SipCallAudioResponse.oneofGroups_ = [[1,2,3,4]];
4365
+
4366
+ /**
4367
+ * @enum {number}
4368
+ */
4369
+ proto.ondewo.sip.SipCallAudioResponse.ResponseCase = {
4370
+ RESPONSE_NOT_SET: 0,
4371
+ STARTED: 1,
4372
+ AUDIO: 2,
4373
+ STATS: 3,
4374
+ ENDED: 4
4375
+ };
4376
+
4377
+ /**
4378
+ * @return {proto.ondewo.sip.SipCallAudioResponse.ResponseCase}
4379
+ */
4380
+ proto.ondewo.sip.SipCallAudioResponse.prototype.getResponseCase = function() {
4381
+ return /** @type {proto.ondewo.sip.SipCallAudioResponse.ResponseCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_[0]));
4382
+ };
1500
4383
 
1501
4384
 
1502
4385
 
@@ -1513,8 +4396,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1513
4396
  * http://goto/soy-param-migration
1514
4397
  * @return {!Object}
1515
4398
  */
1516
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.toObject = function(opt_includeInstance) {
1517
- return proto.ondewo.sip.SipStatusHistoryResponse.toObject(opt_includeInstance, this);
4399
+ proto.ondewo.sip.SipCallAudioResponse.prototype.toObject = function(opt_includeInstance) {
4400
+ return proto.ondewo.sip.SipCallAudioResponse.toObject(opt_includeInstance, this);
1518
4401
  };
1519
4402
 
1520
4403
 
@@ -1523,14 +4406,16 @@ proto.ondewo.sip.SipStatusHistoryResponse.prototype.toObject = function(opt_incl
1523
4406
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1524
4407
  * the JSPB instance for transitional soy proto support:
1525
4408
  * http://goto/soy-param-migration
1526
- * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The msg instance to transform.
4409
+ * @param {!proto.ondewo.sip.SipCallAudioResponse} msg The msg instance to transform.
1527
4410
  * @return {!Object}
1528
4411
  * @suppress {unusedLocalVariables} f is only used for nested messages
1529
4412
  */
1530
- proto.ondewo.sip.SipStatusHistoryResponse.toObject = function(includeInstance, msg) {
4413
+ proto.ondewo.sip.SipCallAudioResponse.toObject = function(includeInstance, msg) {
1531
4414
  var f, obj = {
1532
- statusHistoryList: jspb.Message.toObjectList(msg.getStatusHistoryList(),
1533
- proto.ondewo.sip.SipStatus.toObject, includeInstance)
4415
+ started: (f = msg.getStarted()) && proto.ondewo.sip.SipCallAudioStarted.toObject(includeInstance, f),
4416
+ audio: (f = msg.getAudio()) && proto.ondewo.sip.SipCallAudioFrame.toObject(includeInstance, f),
4417
+ stats: (f = msg.getStats()) && proto.ondewo.sip.SipCallAudioStats.toObject(includeInstance, f),
4418
+ ended: (f = msg.getEnded()) && proto.ondewo.sip.SipCallAudioEnded.toObject(includeInstance, f)
1534
4419
  };
1535
4420
 
1536
4421
  if (includeInstance) {
@@ -1544,23 +4429,23 @@ proto.ondewo.sip.SipStatusHistoryResponse.toObject = function(includeInstance, m
1544
4429
  /**
1545
4430
  * Deserializes binary data (in protobuf wire format).
1546
4431
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1547
- * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
4432
+ * @return {!proto.ondewo.sip.SipCallAudioResponse}
1548
4433
  */
1549
- proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinary = function(bytes) {
4434
+ proto.ondewo.sip.SipCallAudioResponse.deserializeBinary = function(bytes) {
1550
4435
  var reader = new jspb.BinaryReader(bytes);
1551
- var msg = new proto.ondewo.sip.SipStatusHistoryResponse;
1552
- return proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader(msg, reader);
4436
+ var msg = new proto.ondewo.sip.SipCallAudioResponse;
4437
+ return proto.ondewo.sip.SipCallAudioResponse.deserializeBinaryFromReader(msg, reader);
1553
4438
  };
1554
4439
 
1555
4440
 
1556
4441
  /**
1557
4442
  * Deserializes binary data (in protobuf wire format) from the
1558
4443
  * given reader into the given message object.
1559
- * @param {!proto.ondewo.sip.SipStatusHistoryResponse} msg The message object to deserialize into.
4444
+ * @param {!proto.ondewo.sip.SipCallAudioResponse} msg The message object to deserialize into.
1560
4445
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1561
- * @return {!proto.ondewo.sip.SipStatusHistoryResponse}
4446
+ * @return {!proto.ondewo.sip.SipCallAudioResponse}
1562
4447
  */
1563
- proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
4448
+ proto.ondewo.sip.SipCallAudioResponse.deserializeBinaryFromReader = function(msg, reader) {
1564
4449
  while (reader.nextField()) {
1565
4450
  if (reader.isEndGroup()) {
1566
4451
  break;
@@ -1568,9 +4453,24 @@ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader = function
1568
4453
  var field = reader.getFieldNumber();
1569
4454
  switch (field) {
1570
4455
  case 1:
1571
- var value = new proto.ondewo.sip.SipStatus;
1572
- reader.readMessage(value,proto.ondewo.sip.SipStatus.deserializeBinaryFromReader);
1573
- msg.addStatusHistory(value);
4456
+ var value = new proto.ondewo.sip.SipCallAudioStarted;
4457
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioStarted.deserializeBinaryFromReader);
4458
+ msg.setStarted(value);
4459
+ break;
4460
+ case 2:
4461
+ var value = new proto.ondewo.sip.SipCallAudioFrame;
4462
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioFrame.deserializeBinaryFromReader);
4463
+ msg.setAudio(value);
4464
+ break;
4465
+ case 3:
4466
+ var value = new proto.ondewo.sip.SipCallAudioStats;
4467
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioStats.deserializeBinaryFromReader);
4468
+ msg.setStats(value);
4469
+ break;
4470
+ case 4:
4471
+ var value = new proto.ondewo.sip.SipCallAudioEnded;
4472
+ reader.readMessage(value,proto.ondewo.sip.SipCallAudioEnded.deserializeBinaryFromReader);
4473
+ msg.setEnded(value);
1574
4474
  break;
1575
4475
  default:
1576
4476
  reader.skipField();
@@ -1585,9 +4485,9 @@ proto.ondewo.sip.SipStatusHistoryResponse.deserializeBinaryFromReader = function
1585
4485
  * Serializes the message to binary data (in protobuf wire format).
1586
4486
  * @return {!Uint8Array}
1587
4487
  */
1588
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.serializeBinary = function() {
4488
+ proto.ondewo.sip.SipCallAudioResponse.prototype.serializeBinary = function() {
1589
4489
  var writer = new jspb.BinaryWriter();
1590
- proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter(this, writer);
4490
+ proto.ondewo.sip.SipCallAudioResponse.serializeBinaryToWriter(this, writer);
1591
4491
  return writer.getResultBuffer();
1592
4492
  };
1593
4493
 
@@ -1595,58 +4495,192 @@ proto.ondewo.sip.SipStatusHistoryResponse.prototype.serializeBinary = function()
1595
4495
  /**
1596
4496
  * Serializes the given message to binary data (in protobuf wire
1597
4497
  * format), writing to the given BinaryWriter.
1598
- * @param {!proto.ondewo.sip.SipStatusHistoryResponse} message
4498
+ * @param {!proto.ondewo.sip.SipCallAudioResponse} message
1599
4499
  * @param {!jspb.BinaryWriter} writer
1600
4500
  * @suppress {unusedLocalVariables} f is only used for nested messages
1601
4501
  */
1602
- proto.ondewo.sip.SipStatusHistoryResponse.serializeBinaryToWriter = function(message, writer) {
4502
+ proto.ondewo.sip.SipCallAudioResponse.serializeBinaryToWriter = function(message, writer) {
1603
4503
  var f = undefined;
1604
- f = message.getStatusHistoryList();
1605
- if (f.length > 0) {
1606
- writer.writeRepeatedMessage(
4504
+ f = message.getStarted();
4505
+ if (f != null) {
4506
+ writer.writeMessage(
1607
4507
  1,
1608
4508
  f,
1609
- proto.ondewo.sip.SipStatus.serializeBinaryToWriter
4509
+ proto.ondewo.sip.SipCallAudioStarted.serializeBinaryToWriter
4510
+ );
4511
+ }
4512
+ f = message.getAudio();
4513
+ if (f != null) {
4514
+ writer.writeMessage(
4515
+ 2,
4516
+ f,
4517
+ proto.ondewo.sip.SipCallAudioFrame.serializeBinaryToWriter
4518
+ );
4519
+ }
4520
+ f = message.getStats();
4521
+ if (f != null) {
4522
+ writer.writeMessage(
4523
+ 3,
4524
+ f,
4525
+ proto.ondewo.sip.SipCallAudioStats.serializeBinaryToWriter
4526
+ );
4527
+ }
4528
+ f = message.getEnded();
4529
+ if (f != null) {
4530
+ writer.writeMessage(
4531
+ 4,
4532
+ f,
4533
+ proto.ondewo.sip.SipCallAudioEnded.serializeBinaryToWriter
1610
4534
  );
1611
4535
  }
1612
4536
  };
1613
4537
 
1614
4538
 
1615
4539
  /**
1616
- * repeated SipStatus status_history = 1;
1617
- * @return {!Array<!proto.ondewo.sip.SipStatus>}
4540
+ * optional SipCallAudioStarted started = 1;
4541
+ * @return {?proto.ondewo.sip.SipCallAudioStarted}
1618
4542
  */
1619
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.getStatusHistoryList = function() {
1620
- return /** @type{!Array<!proto.ondewo.sip.SipStatus>} */ (
1621
- jspb.Message.getRepeatedWrapperField(this, proto.ondewo.sip.SipStatus, 1));
4543
+ proto.ondewo.sip.SipCallAudioResponse.prototype.getStarted = function() {
4544
+ return /** @type{?proto.ondewo.sip.SipCallAudioStarted} */ (
4545
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioStarted, 1));
1622
4546
  };
1623
4547
 
1624
4548
 
1625
4549
  /**
1626
- * @param {!Array<!proto.ondewo.sip.SipStatus>} value
1627
- * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
4550
+ * @param {?proto.ondewo.sip.SipCallAudioStarted|undefined} value
4551
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
1628
4552
  */
1629
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.setStatusHistoryList = function(value) {
1630
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4553
+ proto.ondewo.sip.SipCallAudioResponse.prototype.setStarted = function(value) {
4554
+ return jspb.Message.setOneofWrapperField(this, 1, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_[0], value);
1631
4555
  };
1632
4556
 
1633
4557
 
1634
4558
  /**
1635
- * @param {!proto.ondewo.sip.SipStatus=} opt_value
1636
- * @param {number=} opt_index
1637
- * @return {!proto.ondewo.sip.SipStatus}
4559
+ * Clears the message field making it undefined.
4560
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
1638
4561
  */
1639
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.addStatusHistory = function(opt_value, opt_index) {
1640
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.sip.SipStatus, opt_index);
4562
+ proto.ondewo.sip.SipCallAudioResponse.prototype.clearStarted = function() {
4563
+ return this.setStarted(undefined);
1641
4564
  };
1642
4565
 
1643
4566
 
1644
4567
  /**
1645
- * Clears the list making it empty but non-null.
1646
- * @return {!proto.ondewo.sip.SipStatusHistoryResponse} returns this
4568
+ * Returns whether this field is set.
4569
+ * @return {boolean}
1647
4570
  */
1648
- proto.ondewo.sip.SipStatusHistoryResponse.prototype.clearStatusHistoryList = function() {
1649
- return this.setStatusHistoryList([]);
4571
+ proto.ondewo.sip.SipCallAudioResponse.prototype.hasStarted = function() {
4572
+ return jspb.Message.getField(this, 1) != null;
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * optional SipCallAudioFrame audio = 2;
4578
+ * @return {?proto.ondewo.sip.SipCallAudioFrame}
4579
+ */
4580
+ proto.ondewo.sip.SipCallAudioResponse.prototype.getAudio = function() {
4581
+ return /** @type{?proto.ondewo.sip.SipCallAudioFrame} */ (
4582
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioFrame, 2));
4583
+ };
4584
+
4585
+
4586
+ /**
4587
+ * @param {?proto.ondewo.sip.SipCallAudioFrame|undefined} value
4588
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4589
+ */
4590
+ proto.ondewo.sip.SipCallAudioResponse.prototype.setAudio = function(value) {
4591
+ return jspb.Message.setOneofWrapperField(this, 2, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_[0], value);
4592
+ };
4593
+
4594
+
4595
+ /**
4596
+ * Clears the message field making it undefined.
4597
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4598
+ */
4599
+ proto.ondewo.sip.SipCallAudioResponse.prototype.clearAudio = function() {
4600
+ return this.setAudio(undefined);
4601
+ };
4602
+
4603
+
4604
+ /**
4605
+ * Returns whether this field is set.
4606
+ * @return {boolean}
4607
+ */
4608
+ proto.ondewo.sip.SipCallAudioResponse.prototype.hasAudio = function() {
4609
+ return jspb.Message.getField(this, 2) != null;
4610
+ };
4611
+
4612
+
4613
+ /**
4614
+ * optional SipCallAudioStats stats = 3;
4615
+ * @return {?proto.ondewo.sip.SipCallAudioStats}
4616
+ */
4617
+ proto.ondewo.sip.SipCallAudioResponse.prototype.getStats = function() {
4618
+ return /** @type{?proto.ondewo.sip.SipCallAudioStats} */ (
4619
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioStats, 3));
4620
+ };
4621
+
4622
+
4623
+ /**
4624
+ * @param {?proto.ondewo.sip.SipCallAudioStats|undefined} value
4625
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4626
+ */
4627
+ proto.ondewo.sip.SipCallAudioResponse.prototype.setStats = function(value) {
4628
+ return jspb.Message.setOneofWrapperField(this, 3, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_[0], value);
4629
+ };
4630
+
4631
+
4632
+ /**
4633
+ * Clears the message field making it undefined.
4634
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4635
+ */
4636
+ proto.ondewo.sip.SipCallAudioResponse.prototype.clearStats = function() {
4637
+ return this.setStats(undefined);
4638
+ };
4639
+
4640
+
4641
+ /**
4642
+ * Returns whether this field is set.
4643
+ * @return {boolean}
4644
+ */
4645
+ proto.ondewo.sip.SipCallAudioResponse.prototype.hasStats = function() {
4646
+ return jspb.Message.getField(this, 3) != null;
4647
+ };
4648
+
4649
+
4650
+ /**
4651
+ * optional SipCallAudioEnded ended = 4;
4652
+ * @return {?proto.ondewo.sip.SipCallAudioEnded}
4653
+ */
4654
+ proto.ondewo.sip.SipCallAudioResponse.prototype.getEnded = function() {
4655
+ return /** @type{?proto.ondewo.sip.SipCallAudioEnded} */ (
4656
+ jspb.Message.getWrapperField(this, proto.ondewo.sip.SipCallAudioEnded, 4));
4657
+ };
4658
+
4659
+
4660
+ /**
4661
+ * @param {?proto.ondewo.sip.SipCallAudioEnded|undefined} value
4662
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4663
+ */
4664
+ proto.ondewo.sip.SipCallAudioResponse.prototype.setEnded = function(value) {
4665
+ return jspb.Message.setOneofWrapperField(this, 4, proto.ondewo.sip.SipCallAudioResponse.oneofGroups_[0], value);
4666
+ };
4667
+
4668
+
4669
+ /**
4670
+ * Clears the message field making it undefined.
4671
+ * @return {!proto.ondewo.sip.SipCallAudioResponse} returns this
4672
+ */
4673
+ proto.ondewo.sip.SipCallAudioResponse.prototype.clearEnded = function() {
4674
+ return this.setEnded(undefined);
4675
+ };
4676
+
4677
+
4678
+ /**
4679
+ * Returns whether this field is set.
4680
+ * @return {boolean}
4681
+ */
4682
+ proto.ondewo.sip.SipCallAudioResponse.prototype.hasEnded = function() {
4683
+ return jspb.Message.getField(this, 4) != null;
1650
4684
  };
1651
4685
 
1652
4686
 
@@ -1830,4 +4864,44 @@ proto.ondewo.sip.SipPlayWavFilesRequest.prototype.clearWavFilesList = function()
1830
4864
  };
1831
4865
 
1832
4866
 
4867
+ /**
4868
+ * @enum {number}
4869
+ */
4870
+ proto.ondewo.sip.MediaControlSetting = {
4871
+ MEDIA_CONTROL_SETTING_UNCHANGED: 0,
4872
+ MEDIA_CONTROL_SETTING_ON: 1,
4873
+ MEDIA_CONTROL_SETTING_OFF: 2
4874
+ };
4875
+
4876
+ /**
4877
+ * @enum {number}
4878
+ */
4879
+ proto.ondewo.sip.MediaControlOwner = {
4880
+ MEDIA_CONTROL_OWNER_UNSPECIFIED: 0,
4881
+ MEDIA_CONTROL_OWNER_OPERATOR: 1,
4882
+ MEDIA_CONTROL_OWNER_PARTICIPANT: 2
4883
+ };
4884
+
4885
+ /**
4886
+ * @enum {number}
4887
+ */
4888
+ proto.ondewo.sip.SipCallAudioMode = {
4889
+ SIP_CALL_AUDIO_MODE_UNSPECIFIED: 0,
4890
+ SIP_CALL_AUDIO_MODE_LISTEN: 1,
4891
+ SIP_CALL_AUDIO_MODE_TALK: 2
4892
+ };
4893
+
4894
+ /**
4895
+ * @enum {number}
4896
+ */
4897
+ proto.ondewo.sip.SipCallAudioEndReason = {
4898
+ SIP_CALL_AUDIO_END_REASON_UNSPECIFIED: 0,
4899
+ SIP_CALL_AUDIO_END_REASON_CLIENT_CLOSED: 1,
4900
+ SIP_CALL_AUDIO_END_REASON_CALL_ENDED: 2,
4901
+ SIP_CALL_AUDIO_END_REASON_CALL_TRANSFERRED: 3,
4902
+ SIP_CALL_AUDIO_END_REASON_MAX_DURATION: 4,
4903
+ SIP_CALL_AUDIO_END_REASON_STALLED: 5,
4904
+ SIP_CALL_AUDIO_END_REASON_INTERNAL: 6
4905
+ };
4906
+
1833
4907
  goog.object.extend(exports, proto.ondewo.sip);