@@ -184,7 +184,7 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.toObject = function(opt_inclu
184
184
proto . dapr . proto . common . v1 . HTTPExtension . toObject = function ( includeInstance , msg ) {
185
185
var f , obj = {
186
186
verb : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
187
- querystringMap : ( f = msg . getQuerystringMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
187
+ querystring : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
188
188
} ;
189
189
190
190
if ( includeInstance ) {
@@ -226,10 +226,8 @@ proto.dapr.proto.common.v1.HTTPExtension.deserializeBinaryFromReader = function(
226
226
msg . setVerb ( value ) ;
227
227
break ;
228
228
case 2 :
229
- var value = msg . getQuerystringMap ( ) ;
230
- reader . readMessage ( value , function ( message , reader ) {
231
- jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
232
- } ) ;
229
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
230
+ msg . setQuerystring ( value ) ;
233
231
break ;
234
232
default :
235
233
reader . skipField ( ) ;
@@ -267,9 +265,12 @@ proto.dapr.proto.common.v1.HTTPExtension.serializeBinaryToWriter = function(mess
267
265
f
268
266
) ;
269
267
}
270
- f = message . getQuerystringMap ( true ) ;
271
- if ( f && f . getLength ( ) > 0 ) {
272
- f . serializeBinary ( 2 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
268
+ f = message . getQuerystring ( ) ;
269
+ if ( f . length > 0 ) {
270
+ writer . writeString (
271
+ 2 ,
272
+ f
273
+ ) ;
273
274
}
274
275
} ;
275
276
@@ -308,25 +309,21 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.setVerb = function(value) {
308
309
309
310
310
311
/**
311
- * map<string, string> querystring = 2;
312
- * @param {boolean= } opt_noLazyCreate Do not create the map if
313
- * empty, instead returning `undefined`
314
- * @return {!jspb.Map<string,string> }
312
+ * optional string querystring = 2;
313
+ * @return {string }
315
314
*/
316
- proto . dapr . proto . common . v1 . HTTPExtension . prototype . getQuerystringMap = function ( opt_noLazyCreate ) {
317
- return /** @type {!jspb.Map<string,string> } */ (
318
- jspb . Message . getMapField ( this , 2 , opt_noLazyCreate ,
319
- null ) ) ;
315
+ proto . dapr . proto . common . v1 . HTTPExtension . prototype . getQuerystring = function ( ) {
316
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
320
317
} ;
321
318
322
319
323
320
/**
324
- * Clears values from the map. The map will be non-null.
321
+ * @param { string } value
325
322
* @return {!proto.dapr.proto.common.v1.HTTPExtension } returns this
326
323
*/
327
- proto . dapr . proto . common . v1 . HTTPExtension . prototype . clearQuerystringMap = function ( ) {
328
- this . getQuerystringMap ( ) . clear ( ) ;
329
- return this ; } ;
324
+ proto . dapr . proto . common . v1 . HTTPExtension . prototype . setQuerystring = function ( value ) {
325
+ return jspb . Message . setProto3StringField ( this , 2 , value ) ;
326
+ } ;
330
327
331
328
332
329
0 commit comments