@@ -16,6 +16,7 @@ var global = Function('return this')();
16
16
17
17
var google_protobuf_any_pb = require ( 'google-protobuf/google/protobuf/any_pb.js' ) ;
18
18
goog . object . extend ( proto , google_protobuf_any_pb ) ;
19
+ goog . exportSymbol ( 'proto.dapr.proto.common.v1.Etag' , null , global ) ;
19
20
goog . exportSymbol ( 'proto.dapr.proto.common.v1.HTTPExtension' , null , global ) ;
20
21
goog . exportSymbol ( 'proto.dapr.proto.common.v1.HTTPExtension.Verb' , null , global ) ;
21
22
goog . exportSymbol ( 'proto.dapr.proto.common.v1.InvokeRequest' , null , global ) ;
@@ -108,6 +109,27 @@ if (goog.DEBUG && !COMPILED) {
108
109
*/
109
110
proto . dapr . proto . common . v1 . StateItem . displayName = 'proto.dapr.proto.common.v1.StateItem' ;
110
111
}
112
+ /**
113
+ * Generated by JsPbCodeGenerator.
114
+ * @param {Array= } opt_data Optional initial data array, typically from a
115
+ * server response, or constructed directly in Javascript. The array is used
116
+ * in place and becomes part of the constructed object. It is not cloned.
117
+ * If no data is provided, the constructed object will be empty, but still
118
+ * valid.
119
+ * @extends {jspb.Message }
120
+ * @constructor
121
+ */
122
+ proto . dapr . proto . common . v1 . Etag = function ( opt_data ) {
123
+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
124
+ } ;
125
+ goog . inherits ( proto . dapr . proto . common . v1 . Etag , jspb . Message ) ;
126
+ if ( goog . DEBUG && ! COMPILED ) {
127
+ /**
128
+ * @public
129
+ * @override
130
+ */
131
+ proto . dapr . proto . common . v1 . Etag . displayName = 'proto.dapr.proto.common.v1.Etag' ;
132
+ }
111
133
/**
112
134
* Generated by JsPbCodeGenerator.
113
135
* @param {Array= } opt_data Optional initial data array, typically from a
@@ -784,7 +806,7 @@ proto.dapr.proto.common.v1.StateItem.toObject = function(includeInstance, msg) {
784
806
var f , obj = {
785
807
key : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
786
808
value : msg . getValue_asB64 ( ) ,
787
- etag : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
809
+ etag : ( f = msg . getEtag ( ) ) && proto . dapr . proto . common . v1 . Etag . toObject ( includeInstance , f ) ,
788
810
metadataMap : ( f = msg . getMetadataMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ] ,
789
811
options : ( f = msg . getOptions ( ) ) && proto . dapr . proto . common . v1 . StateOptions . toObject ( includeInstance , f )
790
812
} ;
@@ -832,7 +854,8 @@ proto.dapr.proto.common.v1.StateItem.deserializeBinaryFromReader = function(msg,
832
854
msg . setValue ( value ) ;
833
855
break ;
834
856
case 3 :
835
- var value = /** @type {string } */ ( reader . readString ( ) ) ;
857
+ var value = new proto . dapr . proto . common . v1 . Etag ;
858
+ reader . readMessage ( value , proto . dapr . proto . common . v1 . Etag . deserializeBinaryFromReader ) ;
836
859
msg . setEtag ( value ) ;
837
860
break ;
838
861
case 4 :
@@ -890,10 +913,11 @@ proto.dapr.proto.common.v1.StateItem.serializeBinaryToWriter = function(message,
890
913
) ;
891
914
}
892
915
f = message . getEtag ( ) ;
893
- if ( f . length > 0 ) {
894
- writer . writeString (
916
+ if ( f != null ) {
917
+ writer . writeMessage (
895
918
3 ,
896
- f
919
+ f ,
920
+ proto . dapr . proto . common . v1 . Etag . serializeBinaryToWriter
897
921
) ;
898
922
}
899
923
f = message . getMetadataMap ( true ) ;
@@ -972,20 +996,39 @@ proto.dapr.proto.common.v1.StateItem.prototype.setValue = function(value) {
972
996
973
997
974
998
/**
975
- * optional string etag = 3;
976
- * @return {string }
999
+ * optional Etag etag = 3;
1000
+ * @return {?proto.dapr.proto.common.v1.Etag }
977
1001
*/
978
1002
proto . dapr . proto . common . v1 . StateItem . prototype . getEtag = function ( ) {
979
- return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
1003
+ return /** @type {?proto.dapr.proto.common.v1.Etag } */ (
1004
+ jspb . Message . getWrapperField ( this , proto . dapr . proto . common . v1 . Etag , 3 ) ) ;
980
1005
} ;
981
1006
982
1007
983
1008
/**
984
- * @param {string } value
1009
+ * @param {?proto.dapr.proto.common.v1.Etag|undefined } value
985
1010
* @return {!proto.dapr.proto.common.v1.StateItem } returns this
986
- */
1011
+ */
987
1012
proto . dapr . proto . common . v1 . StateItem . prototype . setEtag = function ( value ) {
988
- return jspb . Message . setProto3StringField ( this , 3 , value ) ;
1013
+ return jspb . Message . setWrapperField ( this , 3 , value ) ;
1014
+ } ;
1015
+
1016
+
1017
+ /**
1018
+ * Clears the message field making it undefined.
1019
+ * @return {!proto.dapr.proto.common.v1.StateItem } returns this
1020
+ */
1021
+ proto . dapr . proto . common . v1 . StateItem . prototype . clearEtag = function ( ) {
1022
+ return this . setEtag ( undefined ) ;
1023
+ } ;
1024
+
1025
+
1026
+ /**
1027
+ * Returns whether this field is set.
1028
+ * @return {boolean }
1029
+ */
1030
+ proto . dapr . proto . common . v1 . StateItem . prototype . hasEtag = function ( ) {
1031
+ return jspb . Message . getField ( this , 3 ) != null ;
989
1032
} ;
990
1033
991
1034
@@ -1051,6 +1094,136 @@ proto.dapr.proto.common.v1.StateItem.prototype.hasOptions = function() {
1051
1094
1052
1095
1053
1096
1097
+ if ( jspb . Message . GENERATE_TO_OBJECT ) {
1098
+ /**
1099
+ * Creates an object representation of this proto.
1100
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1101
+ * Optional fields that are not set will be set to undefined.
1102
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1103
+ * For the list of reserved names please see:
1104
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1105
+ * @param {boolean= } opt_includeInstance Deprecated. whether to include the
1106
+ * JSPB instance for transitional soy proto support:
1107
+ * http://goto/soy-param-migration
1108
+ * @return {!Object }
1109
+ */
1110
+ proto . dapr . proto . common . v1 . Etag . prototype . toObject = function ( opt_includeInstance ) {
1111
+ return proto . dapr . proto . common . v1 . Etag . toObject ( opt_includeInstance , this ) ;
1112
+ } ;
1113
+
1114
+
1115
+ /**
1116
+ * Static version of the {@see toObject} method.
1117
+ * @param {boolean|undefined } includeInstance Deprecated. Whether to include
1118
+ * the JSPB instance for transitional soy proto support:
1119
+ * http://goto/soy-param-migration
1120
+ * @param {!proto.dapr.proto.common.v1.Etag } msg The msg instance to transform.
1121
+ * @return {!Object }
1122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1123
+ */
1124
+ proto . dapr . proto . common . v1 . Etag . toObject = function ( includeInstance , msg ) {
1125
+ var f , obj = {
1126
+ value : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
1127
+ } ;
1128
+
1129
+ if ( includeInstance ) {
1130
+ obj . $jspbMessageInstance = msg ;
1131
+ }
1132
+ return obj ;
1133
+ } ;
1134
+ }
1135
+
1136
+
1137
+ /**
1138
+ * Deserializes binary data (in protobuf wire format).
1139
+ * @param {jspb.ByteSource } bytes The bytes to deserialize.
1140
+ * @return {!proto.dapr.proto.common.v1.Etag }
1141
+ */
1142
+ proto . dapr . proto . common . v1 . Etag . deserializeBinary = function ( bytes ) {
1143
+ var reader = new jspb . BinaryReader ( bytes ) ;
1144
+ var msg = new proto . dapr . proto . common . v1 . Etag ;
1145
+ return proto . dapr . proto . common . v1 . Etag . deserializeBinaryFromReader ( msg , reader ) ;
1146
+ } ;
1147
+
1148
+
1149
+ /**
1150
+ * Deserializes binary data (in protobuf wire format) from the
1151
+ * given reader into the given message object.
1152
+ * @param {!proto.dapr.proto.common.v1.Etag } msg The message object to deserialize into.
1153
+ * @param {!jspb.BinaryReader } reader The BinaryReader to use.
1154
+ * @return {!proto.dapr.proto.common.v1.Etag }
1155
+ */
1156
+ proto . dapr . proto . common . v1 . Etag . deserializeBinaryFromReader = function ( msg , reader ) {
1157
+ while ( reader . nextField ( ) ) {
1158
+ if ( reader . isEndGroup ( ) ) {
1159
+ break ;
1160
+ }
1161
+ var field = reader . getFieldNumber ( ) ;
1162
+ switch ( field ) {
1163
+ case 1 :
1164
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1165
+ msg . setValue ( value ) ;
1166
+ break ;
1167
+ default :
1168
+ reader . skipField ( ) ;
1169
+ break ;
1170
+ }
1171
+ }
1172
+ return msg ;
1173
+ } ;
1174
+
1175
+
1176
+ /**
1177
+ * Serializes the message to binary data (in protobuf wire format).
1178
+ * @return {!Uint8Array }
1179
+ */
1180
+ proto . dapr . proto . common . v1 . Etag . prototype . serializeBinary = function ( ) {
1181
+ var writer = new jspb . BinaryWriter ( ) ;
1182
+ proto . dapr . proto . common . v1 . Etag . serializeBinaryToWriter ( this , writer ) ;
1183
+ return writer . getResultBuffer ( ) ;
1184
+ } ;
1185
+
1186
+
1187
+ /**
1188
+ * Serializes the given message to binary data (in protobuf wire
1189
+ * format), writing to the given BinaryWriter.
1190
+ * @param {!proto.dapr.proto.common.v1.Etag } message
1191
+ * @param {!jspb.BinaryWriter } writer
1192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1193
+ */
1194
+ proto . dapr . proto . common . v1 . Etag . serializeBinaryToWriter = function ( message , writer ) {
1195
+ var f = undefined ;
1196
+ f = message . getValue ( ) ;
1197
+ if ( f . length > 0 ) {
1198
+ writer . writeString (
1199
+ 1 ,
1200
+ f
1201
+ ) ;
1202
+ }
1203
+ } ;
1204
+
1205
+
1206
+ /**
1207
+ * optional string value = 1;
1208
+ * @return {string }
1209
+ */
1210
+ proto . dapr . proto . common . v1 . Etag . prototype . getValue = function ( ) {
1211
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
1212
+ } ;
1213
+
1214
+
1215
+ /**
1216
+ * @param {string } value
1217
+ * @return {!proto.dapr.proto.common.v1.Etag } returns this
1218
+ */
1219
+ proto . dapr . proto . common . v1 . Etag . prototype . setValue = function ( value ) {
1220
+ return jspb . Message . setProto3StringField ( this , 1 , value ) ;
1221
+ } ;
1222
+
1223
+
1224
+
1225
+
1226
+
1054
1227
if ( jspb . Message . GENERATE_TO_OBJECT ) {
1055
1228
/**
1056
1229
* Creates an object representation of this proto.
0 commit comments