@aceplus/smartace-api 3.3.0-alpha.1 → 3.3.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.
@@ -26,9 +26,6 @@ goog.object.extend(proto, google_protobuf_empty_pb);
26
26
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
27
  goog.object.extend(proto, google_api_annotations_pb);
28
28
  goog.exportSymbol('proto.Auth.PushNotificationProto', null, global);
29
- goog.exportSymbol('proto.Auth.PushNotificationProto.ActiveRequest', null, global);
30
- goog.exportSymbol('proto.Auth.PushNotificationProto.ExpiredOpeningRequest', null, global);
31
- goog.exportSymbol('proto.Auth.PushNotificationProto.InfoPushRequest', null, global);
32
29
  goog.exportSymbol('proto.Auth.PushNotificationProto.OpenRequest', null, global);
33
30
  goog.exportSymbol('proto.Auth.PushNotificationProto.PushType', null, global);
34
31
  goog.exportSymbol('proto.Auth.PushNotificationProto.Tag', null, global);
@@ -74,69 +71,6 @@ if (goog.DEBUG && !COMPILED) {
74
71
  */
75
72
  proto.Auth.PushNotificationProto.OpenRequest.displayName = 'proto.Auth.PushNotificationProto.OpenRequest';
76
73
  }
77
- /**
78
- * Generated by JsPbCodeGenerator.
79
- * @param {Array=} opt_data Optional initial data array, typically from a
80
- * server response, or constructed directly in Javascript. The array is used
81
- * in place and becomes part of the constructed object. It is not cloned.
82
- * If no data is provided, the constructed object will be empty, but still
83
- * valid.
84
- * @extends {jspb.Message}
85
- * @constructor
86
- */
87
- proto.Auth.PushNotificationProto.ActiveRequest = function(opt_data) {
88
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
- };
90
- goog.inherits(proto.Auth.PushNotificationProto.ActiveRequest, jspb.Message);
91
- if (goog.DEBUG && !COMPILED) {
92
- /**
93
- * @public
94
- * @override
95
- */
96
- proto.Auth.PushNotificationProto.ActiveRequest.displayName = 'proto.Auth.PushNotificationProto.ActiveRequest';
97
- }
98
- /**
99
- * Generated by JsPbCodeGenerator.
100
- * @param {Array=} opt_data Optional initial data array, typically from a
101
- * server response, or constructed directly in Javascript. The array is used
102
- * in place and becomes part of the constructed object. It is not cloned.
103
- * If no data is provided, the constructed object will be empty, but still
104
- * valid.
105
- * @extends {jspb.Message}
106
- * @constructor
107
- */
108
- proto.Auth.PushNotificationProto.InfoPushRequest = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.Auth.PushNotificationProto.InfoPushRequest, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.Auth.PushNotificationProto.InfoPushRequest.displayName = 'proto.Auth.PushNotificationProto.InfoPushRequest';
118
- }
119
- /**
120
- * Generated by JsPbCodeGenerator.
121
- * @param {Array=} opt_data Optional initial data array, typically from a
122
- * server response, or constructed directly in Javascript. The array is used
123
- * in place and becomes part of the constructed object. It is not cloned.
124
- * If no data is provided, the constructed object will be empty, but still
125
- * valid.
126
- * @extends {jspb.Message}
127
- * @constructor
128
- */
129
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
- };
132
- goog.inherits(proto.Auth.PushNotificationProto.ExpiredOpeningRequest, jspb.Message);
133
- if (goog.DEBUG && !COMPILED) {
134
- /**
135
- * @public
136
- * @override
137
- */
138
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.displayName = 'proto.Auth.PushNotificationProto.ExpiredOpeningRequest';
139
- }
140
74
 
141
75
 
142
76
 
@@ -251,9 +185,7 @@ proto.Auth.PushNotificationProto.PushType = {
251
185
  */
252
186
  proto.Auth.PushNotificationProto.Tag = {
253
187
  OPENING: 0,
254
- ACTIVE: 1,
255
- DELETED: 3,
256
- CLOSED: 4
188
+ CLOSED: 1
257
189
  };
258
190
 
259
191
 
@@ -291,10 +223,7 @@ proto.Auth.PushNotificationProto.OpenRequest.toObject = function(includeInstance
291
223
  accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
292
224
  cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
293
225
  cabinetid: jspb.Message.getFieldWithDefault(msg, 3, 0),
294
- tag: jspb.Message.getFieldWithDefault(msg, 4, 0),
295
- error: jspb.Message.getFieldWithDefault(msg, 5, ""),
296
- operatorname: jspb.Message.getFieldWithDefault(msg, 6, ""),
297
- locale: jspb.Message.getFieldWithDefault(msg, 7, "")
226
+ tag: jspb.Message.getFieldWithDefault(msg, 4, 0)
298
227
  };
299
228
 
300
229
  if (includeInstance) {
@@ -347,18 +276,6 @@ proto.Auth.PushNotificationProto.OpenRequest.deserializeBinaryFromReader = funct
347
276
  var value = /** @type {!proto.Auth.PushNotificationProto.Tag} */ (reader.readEnum());
348
277
  msg.setTag(value);
349
278
  break;
350
- case 5:
351
- var value = /** @type {string} */ (reader.readString());
352
- msg.setError(value);
353
- break;
354
- case 6:
355
- var value = /** @type {string} */ (reader.readString());
356
- msg.setOperatorname(value);
357
- break;
358
- case 7:
359
- var value = /** @type {string} */ (reader.readString());
360
- msg.setLocale(value);
361
- break;
362
279
  default:
363
280
  reader.skipField();
364
281
  break;
@@ -416,27 +333,6 @@ proto.Auth.PushNotificationProto.OpenRequest.serializeBinaryToWriter = function(
416
333
  f
417
334
  );
418
335
  }
419
- f = message.getError();
420
- if (f.length > 0) {
421
- writer.writeString(
422
- 5,
423
- f
424
- );
425
- }
426
- f = message.getOperatorname();
427
- if (f.length > 0) {
428
- writer.writeString(
429
- 6,
430
- f
431
- );
432
- }
433
- f = message.getLocale();
434
- if (f.length > 0) {
435
- writer.writeString(
436
- 7,
437
- f
438
- );
439
- }
440
336
  };
441
337
 
442
338
 
@@ -512,778 +408,4 @@ proto.Auth.PushNotificationProto.OpenRequest.prototype.setTag = function(value)
512
408
  };
513
409
 
514
410
 
515
- /**
516
- * optional string error = 5;
517
- * @return {string}
518
- */
519
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getError = function() {
520
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
521
- };
522
-
523
-
524
- /**
525
- * @param {string} value
526
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
527
- */
528
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setError = function(value) {
529
- return jspb.Message.setProto3StringField(this, 5, value);
530
- };
531
-
532
-
533
- /**
534
- * optional string operatorName = 6;
535
- * @return {string}
536
- */
537
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getOperatorname = function() {
538
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
539
- };
540
-
541
-
542
- /**
543
- * @param {string} value
544
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
545
- */
546
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setOperatorname = function(value) {
547
- return jspb.Message.setProto3StringField(this, 6, value);
548
- };
549
-
550
-
551
- /**
552
- * optional string locale = 7;
553
- * @return {string}
554
- */
555
- proto.Auth.PushNotificationProto.OpenRequest.prototype.getLocale = function() {
556
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
557
- };
558
-
559
-
560
- /**
561
- * @param {string} value
562
- * @return {!proto.Auth.PushNotificationProto.OpenRequest} returns this
563
- */
564
- proto.Auth.PushNotificationProto.OpenRequest.prototype.setLocale = function(value) {
565
- return jspb.Message.setProto3StringField(this, 7, value);
566
- };
567
-
568
-
569
-
570
-
571
-
572
- if (jspb.Message.GENERATE_TO_OBJECT) {
573
- /**
574
- * Creates an object representation of this proto.
575
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
576
- * Optional fields that are not set will be set to undefined.
577
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
578
- * For the list of reserved names please see:
579
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
580
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
581
- * JSPB instance for transitional soy proto support:
582
- * http://goto/soy-param-migration
583
- * @return {!Object}
584
- */
585
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.toObject = function(opt_includeInstance) {
586
- return proto.Auth.PushNotificationProto.ActiveRequest.toObject(opt_includeInstance, this);
587
- };
588
-
589
-
590
- /**
591
- * Static version of the {@see toObject} method.
592
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
593
- * the JSPB instance for transitional soy proto support:
594
- * http://goto/soy-param-migration
595
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} msg The msg instance to transform.
596
- * @return {!Object}
597
- * @suppress {unusedLocalVariables} f is only used for nested messages
598
- */
599
- proto.Auth.PushNotificationProto.ActiveRequest.toObject = function(includeInstance, msg) {
600
- var f, obj = {
601
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
602
- operator: jspb.Message.getFieldWithDefault(msg, 2, ""),
603
- accepted: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
604
- tag: jspb.Message.getFieldWithDefault(msg, 4, 0),
605
- locale: jspb.Message.getFieldWithDefault(msg, 5, "")
606
- };
607
-
608
- if (includeInstance) {
609
- obj.$jspbMessageInstance = msg;
610
- }
611
- return obj;
612
- };
613
- }
614
-
615
-
616
- /**
617
- * Deserializes binary data (in protobuf wire format).
618
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
619
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest}
620
- */
621
- proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinary = function(bytes) {
622
- var reader = new jspb.BinaryReader(bytes);
623
- var msg = new proto.Auth.PushNotificationProto.ActiveRequest;
624
- return proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinaryFromReader(msg, reader);
625
- };
626
-
627
-
628
- /**
629
- * Deserializes binary data (in protobuf wire format) from the
630
- * given reader into the given message object.
631
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} msg The message object to deserialize into.
632
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
633
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest}
634
- */
635
- proto.Auth.PushNotificationProto.ActiveRequest.deserializeBinaryFromReader = function(msg, reader) {
636
- while (reader.nextField()) {
637
- if (reader.isEndGroup()) {
638
- break;
639
- }
640
- var field = reader.getFieldNumber();
641
- switch (field) {
642
- case 1:
643
- var value = /** @type {number} */ (reader.readInt64());
644
- msg.setAccountid(value);
645
- break;
646
- case 2:
647
- var value = /** @type {string} */ (reader.readString());
648
- msg.setOperator(value);
649
- break;
650
- case 3:
651
- var value = /** @type {boolean} */ (reader.readBool());
652
- msg.setAccepted(value);
653
- break;
654
- case 4:
655
- var value = /** @type {!proto.Auth.PushNotificationProto.Tag} */ (reader.readEnum());
656
- msg.setTag(value);
657
- break;
658
- case 5:
659
- var value = /** @type {string} */ (reader.readString());
660
- msg.setLocale(value);
661
- break;
662
- default:
663
- reader.skipField();
664
- break;
665
- }
666
- }
667
- return msg;
668
- };
669
-
670
-
671
- /**
672
- * Serializes the message to binary data (in protobuf wire format).
673
- * @return {!Uint8Array}
674
- */
675
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.serializeBinary = function() {
676
- var writer = new jspb.BinaryWriter();
677
- proto.Auth.PushNotificationProto.ActiveRequest.serializeBinaryToWriter(this, writer);
678
- return writer.getResultBuffer();
679
- };
680
-
681
-
682
- /**
683
- * Serializes the given message to binary data (in protobuf wire
684
- * format), writing to the given BinaryWriter.
685
- * @param {!proto.Auth.PushNotificationProto.ActiveRequest} message
686
- * @param {!jspb.BinaryWriter} writer
687
- * @suppress {unusedLocalVariables} f is only used for nested messages
688
- */
689
- proto.Auth.PushNotificationProto.ActiveRequest.serializeBinaryToWriter = function(message, writer) {
690
- var f = undefined;
691
- f = message.getAccountid();
692
- if (f !== 0) {
693
- writer.writeInt64(
694
- 1,
695
- f
696
- );
697
- }
698
- f = message.getOperator();
699
- if (f.length > 0) {
700
- writer.writeString(
701
- 2,
702
- f
703
- );
704
- }
705
- f = message.getAccepted();
706
- if (f) {
707
- writer.writeBool(
708
- 3,
709
- f
710
- );
711
- }
712
- f = message.getTag();
713
- if (f !== 0.0) {
714
- writer.writeEnum(
715
- 4,
716
- f
717
- );
718
- }
719
- f = message.getLocale();
720
- if (f.length > 0) {
721
- writer.writeString(
722
- 5,
723
- f
724
- );
725
- }
726
- };
727
-
728
-
729
- /**
730
- * optional int64 accountId = 1;
731
- * @return {number}
732
- */
733
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getAccountid = function() {
734
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
735
- };
736
-
737
-
738
- /**
739
- * @param {number} value
740
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
741
- */
742
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setAccountid = function(value) {
743
- return jspb.Message.setProto3IntField(this, 1, value);
744
- };
745
-
746
-
747
- /**
748
- * optional string operator = 2;
749
- * @return {string}
750
- */
751
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getOperator = function() {
752
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
753
- };
754
-
755
-
756
- /**
757
- * @param {string} value
758
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
759
- */
760
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setOperator = function(value) {
761
- return jspb.Message.setProto3StringField(this, 2, value);
762
- };
763
-
764
-
765
- /**
766
- * optional bool accepted = 3;
767
- * @return {boolean}
768
- */
769
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getAccepted = function() {
770
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
771
- };
772
-
773
-
774
- /**
775
- * @param {boolean} value
776
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
777
- */
778
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setAccepted = function(value) {
779
- return jspb.Message.setProto3BooleanField(this, 3, value);
780
- };
781
-
782
-
783
- /**
784
- * optional Tag tag = 4;
785
- * @return {!proto.Auth.PushNotificationProto.Tag}
786
- */
787
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getTag = function() {
788
- return /** @type {!proto.Auth.PushNotificationProto.Tag} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
789
- };
790
-
791
-
792
- /**
793
- * @param {!proto.Auth.PushNotificationProto.Tag} value
794
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
795
- */
796
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setTag = function(value) {
797
- return jspb.Message.setProto3EnumField(this, 4, value);
798
- };
799
-
800
-
801
- /**
802
- * optional string locale = 5;
803
- * @return {string}
804
- */
805
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.getLocale = function() {
806
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
807
- };
808
-
809
-
810
- /**
811
- * @param {string} value
812
- * @return {!proto.Auth.PushNotificationProto.ActiveRequest} returns this
813
- */
814
- proto.Auth.PushNotificationProto.ActiveRequest.prototype.setLocale = function(value) {
815
- return jspb.Message.setProto3StringField(this, 5, value);
816
- };
817
-
818
-
819
-
820
-
821
-
822
- if (jspb.Message.GENERATE_TO_OBJECT) {
823
- /**
824
- * Creates an object representation of this proto.
825
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
826
- * Optional fields that are not set will be set to undefined.
827
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
828
- * For the list of reserved names please see:
829
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
830
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
831
- * JSPB instance for transitional soy proto support:
832
- * http://goto/soy-param-migration
833
- * @return {!Object}
834
- */
835
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.toObject = function(opt_includeInstance) {
836
- return proto.Auth.PushNotificationProto.InfoPushRequest.toObject(opt_includeInstance, this);
837
- };
838
-
839
-
840
- /**
841
- * Static version of the {@see toObject} method.
842
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
843
- * the JSPB instance for transitional soy proto support:
844
- * http://goto/soy-param-migration
845
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} msg The msg instance to transform.
846
- * @return {!Object}
847
- * @suppress {unusedLocalVariables} f is only used for nested messages
848
- */
849
- proto.Auth.PushNotificationProto.InfoPushRequest.toObject = function(includeInstance, msg) {
850
- var f, obj = {
851
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
852
- cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
853
- status: jspb.Message.getFieldWithDefault(msg, 3, ""),
854
- locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
855
- pushtype: jspb.Message.getFieldWithDefault(msg, 5, 0)
856
- };
857
-
858
- if (includeInstance) {
859
- obj.$jspbMessageInstance = msg;
860
- }
861
- return obj;
862
- };
863
- }
864
-
865
-
866
- /**
867
- * Deserializes binary data (in protobuf wire format).
868
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
869
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest}
870
- */
871
- proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinary = function(bytes) {
872
- var reader = new jspb.BinaryReader(bytes);
873
- var msg = new proto.Auth.PushNotificationProto.InfoPushRequest;
874
- return proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinaryFromReader(msg, reader);
875
- };
876
-
877
-
878
- /**
879
- * Deserializes binary data (in protobuf wire format) from the
880
- * given reader into the given message object.
881
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} msg The message object to deserialize into.
882
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
883
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest}
884
- */
885
- proto.Auth.PushNotificationProto.InfoPushRequest.deserializeBinaryFromReader = function(msg, reader) {
886
- while (reader.nextField()) {
887
- if (reader.isEndGroup()) {
888
- break;
889
- }
890
- var field = reader.getFieldNumber();
891
- switch (field) {
892
- case 1:
893
- var value = /** @type {number} */ (reader.readInt64());
894
- msg.setAccountid(value);
895
- break;
896
- case 2:
897
- var value = /** @type {string} */ (reader.readString());
898
- msg.setCabinetname(value);
899
- break;
900
- case 3:
901
- var value = /** @type {string} */ (reader.readString());
902
- msg.setStatus(value);
903
- break;
904
- case 4:
905
- var value = /** @type {string} */ (reader.readString());
906
- msg.setLocale(value);
907
- break;
908
- case 5:
909
- var value = /** @type {!proto.Auth.PushNotificationProto.PushType} */ (reader.readEnum());
910
- msg.setPushtype(value);
911
- break;
912
- default:
913
- reader.skipField();
914
- break;
915
- }
916
- }
917
- return msg;
918
- };
919
-
920
-
921
- /**
922
- * Serializes the message to binary data (in protobuf wire format).
923
- * @return {!Uint8Array}
924
- */
925
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.serializeBinary = function() {
926
- var writer = new jspb.BinaryWriter();
927
- proto.Auth.PushNotificationProto.InfoPushRequest.serializeBinaryToWriter(this, writer);
928
- return writer.getResultBuffer();
929
- };
930
-
931
-
932
- /**
933
- * Serializes the given message to binary data (in protobuf wire
934
- * format), writing to the given BinaryWriter.
935
- * @param {!proto.Auth.PushNotificationProto.InfoPushRequest} message
936
- * @param {!jspb.BinaryWriter} writer
937
- * @suppress {unusedLocalVariables} f is only used for nested messages
938
- */
939
- proto.Auth.PushNotificationProto.InfoPushRequest.serializeBinaryToWriter = function(message, writer) {
940
- var f = undefined;
941
- f = message.getAccountid();
942
- if (f !== 0) {
943
- writer.writeInt64(
944
- 1,
945
- f
946
- );
947
- }
948
- f = message.getCabinetname();
949
- if (f.length > 0) {
950
- writer.writeString(
951
- 2,
952
- f
953
- );
954
- }
955
- f = message.getStatus();
956
- if (f.length > 0) {
957
- writer.writeString(
958
- 3,
959
- f
960
- );
961
- }
962
- f = message.getLocale();
963
- if (f.length > 0) {
964
- writer.writeString(
965
- 4,
966
- f
967
- );
968
- }
969
- f = message.getPushtype();
970
- if (f !== 0.0) {
971
- writer.writeEnum(
972
- 5,
973
- f
974
- );
975
- }
976
- };
977
-
978
-
979
- /**
980
- * optional int64 accountId = 1;
981
- * @return {number}
982
- */
983
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getAccountid = function() {
984
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
985
- };
986
-
987
-
988
- /**
989
- * @param {number} value
990
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
991
- */
992
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setAccountid = function(value) {
993
- return jspb.Message.setProto3IntField(this, 1, value);
994
- };
995
-
996
-
997
- /**
998
- * optional string cabinetName = 2;
999
- * @return {string}
1000
- */
1001
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getCabinetname = function() {
1002
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1003
- };
1004
-
1005
-
1006
- /**
1007
- * @param {string} value
1008
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1009
- */
1010
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setCabinetname = function(value) {
1011
- return jspb.Message.setProto3StringField(this, 2, value);
1012
- };
1013
-
1014
-
1015
- /**
1016
- * optional string status = 3;
1017
- * @return {string}
1018
- */
1019
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getStatus = function() {
1020
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1021
- };
1022
-
1023
-
1024
- /**
1025
- * @param {string} value
1026
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1027
- */
1028
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setStatus = function(value) {
1029
- return jspb.Message.setProto3StringField(this, 3, value);
1030
- };
1031
-
1032
-
1033
- /**
1034
- * optional string locale = 4;
1035
- * @return {string}
1036
- */
1037
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getLocale = function() {
1038
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1039
- };
1040
-
1041
-
1042
- /**
1043
- * @param {string} value
1044
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1045
- */
1046
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setLocale = function(value) {
1047
- return jspb.Message.setProto3StringField(this, 4, value);
1048
- };
1049
-
1050
-
1051
- /**
1052
- * optional PushType pushType = 5;
1053
- * @return {!proto.Auth.PushNotificationProto.PushType}
1054
- */
1055
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.getPushtype = function() {
1056
- return /** @type {!proto.Auth.PushNotificationProto.PushType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1057
- };
1058
-
1059
-
1060
- /**
1061
- * @param {!proto.Auth.PushNotificationProto.PushType} value
1062
- * @return {!proto.Auth.PushNotificationProto.InfoPushRequest} returns this
1063
- */
1064
- proto.Auth.PushNotificationProto.InfoPushRequest.prototype.setPushtype = function(value) {
1065
- return jspb.Message.setProto3EnumField(this, 5, value);
1066
- };
1067
-
1068
-
1069
-
1070
-
1071
-
1072
- if (jspb.Message.GENERATE_TO_OBJECT) {
1073
- /**
1074
- * Creates an object representation of this proto.
1075
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1076
- * Optional fields that are not set will be set to undefined.
1077
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1078
- * For the list of reserved names please see:
1079
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1080
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1081
- * JSPB instance for transitional soy proto support:
1082
- * http://goto/soy-param-migration
1083
- * @return {!Object}
1084
- */
1085
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.toObject = function(opt_includeInstance) {
1086
- return proto.Auth.PushNotificationProto.ExpiredOpeningRequest.toObject(opt_includeInstance, this);
1087
- };
1088
-
1089
-
1090
- /**
1091
- * Static version of the {@see toObject} method.
1092
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1093
- * the JSPB instance for transitional soy proto support:
1094
- * http://goto/soy-param-migration
1095
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} msg The msg instance to transform.
1096
- * @return {!Object}
1097
- * @suppress {unusedLocalVariables} f is only used for nested messages
1098
- */
1099
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.toObject = function(includeInstance, msg) {
1100
- var f, obj = {
1101
- accountid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1102
- cabinetname: jspb.Message.getFieldWithDefault(msg, 2, ""),
1103
- locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
1104
- jobid: jspb.Message.getFieldWithDefault(msg, 4, "")
1105
- };
1106
-
1107
- if (includeInstance) {
1108
- obj.$jspbMessageInstance = msg;
1109
- }
1110
- return obj;
1111
- };
1112
- }
1113
-
1114
-
1115
- /**
1116
- * Deserializes binary data (in protobuf wire format).
1117
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1118
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest}
1119
- */
1120
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinary = function(bytes) {
1121
- var reader = new jspb.BinaryReader(bytes);
1122
- var msg = new proto.Auth.PushNotificationProto.ExpiredOpeningRequest;
1123
- return proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinaryFromReader(msg, reader);
1124
- };
1125
-
1126
-
1127
- /**
1128
- * Deserializes binary data (in protobuf wire format) from the
1129
- * given reader into the given message object.
1130
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} msg The message object to deserialize into.
1131
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1132
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest}
1133
- */
1134
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.deserializeBinaryFromReader = function(msg, reader) {
1135
- while (reader.nextField()) {
1136
- if (reader.isEndGroup()) {
1137
- break;
1138
- }
1139
- var field = reader.getFieldNumber();
1140
- switch (field) {
1141
- case 1:
1142
- var value = /** @type {number} */ (reader.readInt64());
1143
- msg.setAccountid(value);
1144
- break;
1145
- case 2:
1146
- var value = /** @type {string} */ (reader.readString());
1147
- msg.setCabinetname(value);
1148
- break;
1149
- case 3:
1150
- var value = /** @type {string} */ (reader.readString());
1151
- msg.setLocale(value);
1152
- break;
1153
- case 4:
1154
- var value = /** @type {string} */ (reader.readString());
1155
- msg.setJobid(value);
1156
- break;
1157
- default:
1158
- reader.skipField();
1159
- break;
1160
- }
1161
- }
1162
- return msg;
1163
- };
1164
-
1165
-
1166
- /**
1167
- * Serializes the message to binary data (in protobuf wire format).
1168
- * @return {!Uint8Array}
1169
- */
1170
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.serializeBinary = function() {
1171
- var writer = new jspb.BinaryWriter();
1172
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.serializeBinaryToWriter(this, writer);
1173
- return writer.getResultBuffer();
1174
- };
1175
-
1176
-
1177
- /**
1178
- * Serializes the given message to binary data (in protobuf wire
1179
- * format), writing to the given BinaryWriter.
1180
- * @param {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} message
1181
- * @param {!jspb.BinaryWriter} writer
1182
- * @suppress {unusedLocalVariables} f is only used for nested messages
1183
- */
1184
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.serializeBinaryToWriter = function(message, writer) {
1185
- var f = undefined;
1186
- f = message.getAccountid();
1187
- if (f !== 0) {
1188
- writer.writeInt64(
1189
- 1,
1190
- f
1191
- );
1192
- }
1193
- f = message.getCabinetname();
1194
- if (f.length > 0) {
1195
- writer.writeString(
1196
- 2,
1197
- f
1198
- );
1199
- }
1200
- f = message.getLocale();
1201
- if (f.length > 0) {
1202
- writer.writeString(
1203
- 3,
1204
- f
1205
- );
1206
- }
1207
- f = message.getJobid();
1208
- if (f.length > 0) {
1209
- writer.writeString(
1210
- 4,
1211
- f
1212
- );
1213
- }
1214
- };
1215
-
1216
-
1217
- /**
1218
- * optional int64 accountId = 1;
1219
- * @return {number}
1220
- */
1221
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getAccountid = function() {
1222
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1223
- };
1224
-
1225
-
1226
- /**
1227
- * @param {number} value
1228
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1229
- */
1230
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setAccountid = function(value) {
1231
- return jspb.Message.setProto3IntField(this, 1, value);
1232
- };
1233
-
1234
-
1235
- /**
1236
- * optional string cabinetName = 2;
1237
- * @return {string}
1238
- */
1239
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getCabinetname = function() {
1240
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1241
- };
1242
-
1243
-
1244
- /**
1245
- * @param {string} value
1246
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1247
- */
1248
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setCabinetname = function(value) {
1249
- return jspb.Message.setProto3StringField(this, 2, value);
1250
- };
1251
-
1252
-
1253
- /**
1254
- * optional string locale = 3;
1255
- * @return {string}
1256
- */
1257
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getLocale = function() {
1258
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1259
- };
1260
-
1261
-
1262
- /**
1263
- * @param {string} value
1264
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1265
- */
1266
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setLocale = function(value) {
1267
- return jspb.Message.setProto3StringField(this, 3, value);
1268
- };
1269
-
1270
-
1271
- /**
1272
- * optional string jobId = 4;
1273
- * @return {string}
1274
- */
1275
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.getJobid = function() {
1276
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1277
- };
1278
-
1279
-
1280
- /**
1281
- * @param {string} value
1282
- * @return {!proto.Auth.PushNotificationProto.ExpiredOpeningRequest} returns this
1283
- */
1284
- proto.Auth.PushNotificationProto.ExpiredOpeningRequest.prototype.setJobid = function(value) {
1285
- return jspb.Message.setProto3StringField(this, 4, value);
1286
- };
1287
-
1288
-
1289
411
  goog.object.extend(exports, proto.Auth);