@@ -184,7 +184,7 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.toObject = function(opt_inclu
184184proto . dapr . proto . common . v1 . HTTPExtension . toObject = function ( includeInstance , msg ) {
185185 var f , obj = {
186186 verb : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
187- querystringMap : ( f = msg . getQuerystringMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
187+ querystring : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
188188 } ;
189189
190190 if ( includeInstance ) {
@@ -226,10 +226,8 @@ proto.dapr.proto.common.v1.HTTPExtension.deserializeBinaryFromReader = function(
226226 msg . setVerb ( value ) ;
227227 break ;
228228 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 ) ;
233231 break ;
234232 default :
235233 reader . skipField ( ) ;
@@ -267,9 +265,12 @@ proto.dapr.proto.common.v1.HTTPExtension.serializeBinaryToWriter = function(mess
267265 f
268266 ) ;
269267 }
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+ ) ;
273274 }
274275} ;
275276
@@ -308,25 +309,21 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.setVerb = function(value) {
308309
309310
310311/**
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 }
315314 */
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 , "" ) ) ;
320317} ;
321318
322319
323320/**
324- * Clears values from the map. The map will be non-null.
321+ * @param { string } value
325322 * @return {!proto.dapr.proto.common.v1.HTTPExtension } returns this
326323 */
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+ } ;
330327
331328
332329
0 commit comments