@@ -27,6 +27,7 @@ goog.exportSymbol('proto.dapr.proto.common.v1.StateItem', null, global);
27
27
goog . exportSymbol ( 'proto.dapr.proto.common.v1.StateOptions' , null , global ) ;
28
28
goog . exportSymbol ( 'proto.dapr.proto.common.v1.StateOptions.StateConcurrency' , null , global ) ;
29
29
goog . exportSymbol ( 'proto.dapr.proto.common.v1.StateOptions.StateConsistency' , null , global ) ;
30
+ goog . exportSymbol ( 'proto.dapr.proto.common.v1.StreamPayload' , null , global ) ;
30
31
/**
31
32
* Generated by JsPbCodeGenerator.
32
33
* @param {Array= } opt_data Optional initial data array, typically from a
@@ -90,6 +91,27 @@ if (goog.DEBUG && !COMPILED) {
90
91
*/
91
92
proto . dapr . proto . common . v1 . InvokeResponse . displayName = 'proto.dapr.proto.common.v1.InvokeResponse' ;
92
93
}
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array= } opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message }
102
+ * @constructor
103
+ */
104
+ proto . dapr . proto . common . v1 . StreamPayload = function ( opt_data ) {
105
+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
106
+ } ;
107
+ goog . inherits ( proto . dapr . proto . common . v1 . StreamPayload , jspb . Message ) ;
108
+ if ( goog . DEBUG && ! COMPILED ) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto . dapr . proto . common . v1 . StreamPayload . displayName = 'proto.dapr.proto.common.v1.StreamPayload' ;
114
+ }
93
115
/**
94
116
* Generated by JsPbCodeGenerator.
95
117
* @param {Array= } opt_data Optional initial data array, typically from a
@@ -796,6 +818,190 @@ proto.dapr.proto.common.v1.InvokeResponse.prototype.setContentType = function(va
796
818
797
819
798
820
821
+ if ( jspb . Message . GENERATE_TO_OBJECT ) {
822
+ /**
823
+ * Creates an object representation of this proto.
824
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
825
+ * Optional fields that are not set will be set to undefined.
826
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
827
+ * For the list of reserved names please see:
828
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
829
+ * @param {boolean= } opt_includeInstance Deprecated. whether to include the
830
+ * JSPB instance for transitional soy proto support:
831
+ * http://goto/soy-param-migration
832
+ * @return {!Object }
833
+ */
834
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . toObject = function ( opt_includeInstance ) {
835
+ return proto . dapr . proto . common . v1 . StreamPayload . toObject ( opt_includeInstance , this ) ;
836
+ } ;
837
+
838
+
839
+ /**
840
+ * Static version of the {@see toObject} method.
841
+ * @param {boolean|undefined } includeInstance Deprecated. Whether to include
842
+ * the JSPB instance for transitional soy proto support:
843
+ * http://goto/soy-param-migration
844
+ * @param {!proto.dapr.proto.common.v1.StreamPayload } msg The msg instance to transform.
845
+ * @return {!Object }
846
+ * @suppress {unusedLocalVariables} f is only used for nested messages
847
+ */
848
+ proto . dapr . proto . common . v1 . StreamPayload . toObject = function ( includeInstance , msg ) {
849
+ var f , obj = {
850
+ data : msg . getData_asB64 ( ) ,
851
+ seq : jspb . Message . getFieldWithDefault ( msg , 2 , 0 )
852
+ } ;
853
+
854
+ if ( includeInstance ) {
855
+ obj . $jspbMessageInstance = msg ;
856
+ }
857
+ return obj ;
858
+ } ;
859
+ }
860
+
861
+
862
+ /**
863
+ * Deserializes binary data (in protobuf wire format).
864
+ * @param {jspb.ByteSource } bytes The bytes to deserialize.
865
+ * @return {!proto.dapr.proto.common.v1.StreamPayload }
866
+ */
867
+ proto . dapr . proto . common . v1 . StreamPayload . deserializeBinary = function ( bytes ) {
868
+ var reader = new jspb . BinaryReader ( bytes ) ;
869
+ var msg = new proto . dapr . proto . common . v1 . StreamPayload ;
870
+ return proto . dapr . proto . common . v1 . StreamPayload . deserializeBinaryFromReader ( msg , reader ) ;
871
+ } ;
872
+
873
+
874
+ /**
875
+ * Deserializes binary data (in protobuf wire format) from the
876
+ * given reader into the given message object.
877
+ * @param {!proto.dapr.proto.common.v1.StreamPayload } msg The message object to deserialize into.
878
+ * @param {!jspb.BinaryReader } reader The BinaryReader to use.
879
+ * @return {!proto.dapr.proto.common.v1.StreamPayload }
880
+ */
881
+ proto . dapr . proto . common . v1 . StreamPayload . deserializeBinaryFromReader = function ( msg , reader ) {
882
+ while ( reader . nextField ( ) ) {
883
+ if ( reader . isEndGroup ( ) ) {
884
+ break ;
885
+ }
886
+ var field = reader . getFieldNumber ( ) ;
887
+ switch ( field ) {
888
+ case 1 :
889
+ var value = /** @type {!Uint8Array } */ ( reader . readBytes ( ) ) ;
890
+ msg . setData ( value ) ;
891
+ break ;
892
+ case 2 :
893
+ var value = /** @type {number } */ ( reader . readUint32 ( ) ) ;
894
+ msg . setSeq ( value ) ;
895
+ break ;
896
+ default :
897
+ reader . skipField ( ) ;
898
+ break ;
899
+ }
900
+ }
901
+ return msg ;
902
+ } ;
903
+
904
+
905
+ /**
906
+ * Serializes the message to binary data (in protobuf wire format).
907
+ * @return {!Uint8Array }
908
+ */
909
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . serializeBinary = function ( ) {
910
+ var writer = new jspb . BinaryWriter ( ) ;
911
+ proto . dapr . proto . common . v1 . StreamPayload . serializeBinaryToWriter ( this , writer ) ;
912
+ return writer . getResultBuffer ( ) ;
913
+ } ;
914
+
915
+
916
+ /**
917
+ * Serializes the given message to binary data (in protobuf wire
918
+ * format), writing to the given BinaryWriter.
919
+ * @param {!proto.dapr.proto.common.v1.StreamPayload } message
920
+ * @param {!jspb.BinaryWriter } writer
921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
922
+ */
923
+ proto . dapr . proto . common . v1 . StreamPayload . serializeBinaryToWriter = function ( message , writer ) {
924
+ var f = undefined ;
925
+ f = message . getData_asU8 ( ) ;
926
+ if ( f . length > 0 ) {
927
+ writer . writeBytes (
928
+ 1 ,
929
+ f
930
+ ) ;
931
+ }
932
+ f = message . getSeq ( ) ;
933
+ if ( f !== 0 ) {
934
+ writer . writeUint32 (
935
+ 2 ,
936
+ f
937
+ ) ;
938
+ }
939
+ } ;
940
+
941
+
942
+ /**
943
+ * optional bytes data = 1;
944
+ * @return {!(string|Uint8Array) }
945
+ */
946
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . getData = function ( ) {
947
+ return /** @type {!(string|Uint8Array) } */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
948
+ } ;
949
+
950
+
951
+ /**
952
+ * optional bytes data = 1;
953
+ * This is a type-conversion wrapper around `getData()`
954
+ * @return {string }
955
+ */
956
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . getData_asB64 = function ( ) {
957
+ return /** @type {string } */ ( jspb . Message . bytesAsB64 (
958
+ this . getData ( ) ) ) ;
959
+ } ;
960
+
961
+
962
+ /**
963
+ * optional bytes data = 1;
964
+ * Note that Uint8Array is not supported on all browsers.
965
+ * @see http://caniuse.com/Uint8Array
966
+ * This is a type-conversion wrapper around `getData()`
967
+ * @return {!Uint8Array }
968
+ */
969
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . getData_asU8 = function ( ) {
970
+ return /** @type {!Uint8Array } */ ( jspb . Message . bytesAsU8 (
971
+ this . getData ( ) ) ) ;
972
+ } ;
973
+
974
+
975
+ /**
976
+ * @param {!(string|Uint8Array) } value
977
+ * @return {!proto.dapr.proto.common.v1.StreamPayload } returns this
978
+ */
979
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . setData = function ( value ) {
980
+ return jspb . Message . setProto3BytesField ( this , 1 , value ) ;
981
+ } ;
982
+
983
+
984
+ /**
985
+ * optional uint32 seq = 2;
986
+ * @return {number }
987
+ */
988
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . getSeq = function ( ) {
989
+ return /** @type {number } */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
990
+ } ;
991
+
992
+
993
+ /**
994
+ * @param {number } value
995
+ * @return {!proto.dapr.proto.common.v1.StreamPayload } returns this
996
+ */
997
+ proto . dapr . proto . common . v1 . StreamPayload . prototype . setSeq = function ( value ) {
998
+ return jspb . Message . setProto3IntField ( this , 2 , value ) ;
999
+ } ;
1000
+
1001
+
1002
+
1003
+
1004
+
799
1005
if ( jspb . Message . GENERATE_TO_OBJECT ) {
800
1006
/**
801
1007
* Creates an object representation of this proto.
0 commit comments