@@ -561,7 +561,8 @@ proto.dapr.proto.runtime.v1.GetStateRequest.toObject = function(includeInstance,
561
561
var f , obj = {
562
562
storeName : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
563
563
key : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
564
- consistency : jspb . Message . getFieldWithDefault ( msg , 3 , 0 )
564
+ consistency : jspb . Message . getFieldWithDefault ( msg , 3 , 0 ) ,
565
+ metadataMap : ( f = msg . getMetadataMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
565
566
} ;
566
567
567
568
if ( includeInstance ) {
@@ -610,6 +611,12 @@ proto.dapr.proto.runtime.v1.GetStateRequest.deserializeBinaryFromReader = functi
610
611
var value = /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConsistency } */ ( reader . readEnum ( ) ) ;
611
612
msg . setConsistency ( value ) ;
612
613
break ;
614
+ case 4 :
615
+ var value = msg . getMetadataMap ( ) ;
616
+ reader . readMessage ( value , function ( message , reader ) {
617
+ jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
618
+ } ) ;
619
+ break ;
613
620
default :
614
621
reader . skipField ( ) ;
615
622
break ;
@@ -660,6 +667,10 @@ proto.dapr.proto.runtime.v1.GetStateRequest.serializeBinaryToWriter = function(m
660
667
f
661
668
) ;
662
669
}
670
+ f = message . getMetadataMap ( true ) ;
671
+ if ( f && f . getLength ( ) > 0 ) {
672
+ f . serializeBinary ( 4 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
673
+ }
663
674
} ;
664
675
665
676
@@ -717,6 +728,28 @@ proto.dapr.proto.runtime.v1.GetStateRequest.prototype.setConsistency = function(
717
728
} ;
718
729
719
730
731
+ /**
732
+ * map<string, string> metadata = 4;
733
+ * @param {boolean= } opt_noLazyCreate Do not create the map if
734
+ * empty, instead returning `undefined`
735
+ * @return {!jspb.Map<string,string> }
736
+ */
737
+ proto . dapr . proto . runtime . v1 . GetStateRequest . prototype . getMetadataMap = function ( opt_noLazyCreate ) {
738
+ return /** @type {!jspb.Map<string,string> } */ (
739
+ jspb . Message . getMapField ( this , 4 , opt_noLazyCreate ,
740
+ null ) ) ;
741
+ } ;
742
+
743
+
744
+ /**
745
+ * Clears values from the map. The map will be non-null.
746
+ * @return {!proto.dapr.proto.runtime.v1.GetStateRequest } returns this
747
+ */
748
+ proto . dapr . proto . runtime . v1 . GetStateRequest . prototype . clearMetadataMap = function ( ) {
749
+ this . getMetadataMap ( ) . clear ( ) ;
750
+ return this ; } ;
751
+
752
+
720
753
721
754
/**
722
755
* List of repeated fields within this message type.
@@ -758,7 +791,8 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.toObject = function(includeInsta
758
791
var f , obj = {
759
792
storeName : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
760
793
keysList : ( f = jspb . Message . getRepeatedField ( msg , 2 ) ) == null ? undefined : f ,
761
- parallelism : jspb . Message . getFieldWithDefault ( msg , 3 , 0 )
794
+ parallelism : jspb . Message . getFieldWithDefault ( msg , 3 , 0 ) ,
795
+ metadataMap : ( f = msg . getMetadataMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
762
796
} ;
763
797
764
798
if ( includeInstance ) {
@@ -807,6 +841,12 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.deserializeBinaryFromReader = fu
807
841
var value = /** @type {number } */ ( reader . readInt32 ( ) ) ;
808
842
msg . setParallelism ( value ) ;
809
843
break ;
844
+ case 4 :
845
+ var value = msg . getMetadataMap ( ) ;
846
+ reader . readMessage ( value , function ( message , reader ) {
847
+ jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
848
+ } ) ;
849
+ break ;
810
850
default :
811
851
reader . skipField ( ) ;
812
852
break ;
@@ -857,6 +897,10 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.serializeBinaryToWriter = functi
857
897
f
858
898
) ;
859
899
}
900
+ f = message . getMetadataMap ( true ) ;
901
+ if ( f && f . getLength ( ) > 0 ) {
902
+ f . serializeBinary ( 4 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
903
+ }
860
904
} ;
861
905
862
906
@@ -933,6 +977,28 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.setParallelism = funct
933
977
} ;
934
978
935
979
980
+ /**
981
+ * map<string, string> metadata = 4;
982
+ * @param {boolean= } opt_noLazyCreate Do not create the map if
983
+ * empty, instead returning `undefined`
984
+ * @return {!jspb.Map<string,string> }
985
+ */
986
+ proto . dapr . proto . runtime . v1 . GetBulkStateRequest . prototype . getMetadataMap = function ( opt_noLazyCreate ) {
987
+ return /** @type {!jspb.Map<string,string> } */ (
988
+ jspb . Message . getMapField ( this , 4 , opt_noLazyCreate ,
989
+ null ) ) ;
990
+ } ;
991
+
992
+
993
+ /**
994
+ * Clears values from the map. The map will be non-null.
995
+ * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest } returns this
996
+ */
997
+ proto . dapr . proto . runtime . v1 . GetBulkStateRequest . prototype . clearMetadataMap = function ( ) {
998
+ this . getMetadataMap ( ) . clear ( ) ;
999
+ return this ; } ;
1000
+
1001
+
936
1002
937
1003
/**
938
1004
* List of repeated fields within this message type.
@@ -1127,7 +1193,8 @@ proto.dapr.proto.runtime.v1.BulkStateItem.toObject = function(includeInstance, m
1127
1193
var f , obj = {
1128
1194
key : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
1129
1195
data : msg . getData_asB64 ( ) ,
1130
- etag : jspb . Message . getFieldWithDefault ( msg , 3 , "" )
1196
+ etag : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
1197
+ error : jspb . Message . getFieldWithDefault ( msg , 4 , "" )
1131
1198
} ;
1132
1199
1133
1200
if ( includeInstance ) {
@@ -1176,6 +1243,10 @@ proto.dapr.proto.runtime.v1.BulkStateItem.deserializeBinaryFromReader = function
1176
1243
var value = /** @type {string } */ ( reader . readString ( ) ) ;
1177
1244
msg . setEtag ( value ) ;
1178
1245
break ;
1246
+ case 4 :
1247
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1248
+ msg . setError ( value ) ;
1249
+ break ;
1179
1250
default :
1180
1251
reader . skipField ( ) ;
1181
1252
break ;
@@ -1226,6 +1297,13 @@ proto.dapr.proto.runtime.v1.BulkStateItem.serializeBinaryToWriter = function(mes
1226
1297
f
1227
1298
) ;
1228
1299
}
1300
+ f = message . getError ( ) ;
1301
+ if ( f . length > 0 ) {
1302
+ writer . writeString (
1303
+ 4 ,
1304
+ f
1305
+ ) ;
1306
+ }
1229
1307
} ;
1230
1308
1231
1309
@@ -1307,6 +1385,24 @@ proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setEtag = function(value) {
1307
1385
} ;
1308
1386
1309
1387
1388
+ /**
1389
+ * optional string error = 4;
1390
+ * @return {string }
1391
+ */
1392
+ proto . dapr . proto . runtime . v1 . BulkStateItem . prototype . getError = function ( ) {
1393
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 4 , "" ) ) ;
1394
+ } ;
1395
+
1396
+
1397
+ /**
1398
+ * @param {string } value
1399
+ * @return {!proto.dapr.proto.runtime.v1.BulkStateItem } returns this
1400
+ */
1401
+ proto . dapr . proto . runtime . v1 . BulkStateItem . prototype . setError = function ( value ) {
1402
+ return jspb . Message . setProto3StringField ( this , 4 , value ) ;
1403
+ } ;
1404
+
1405
+
1310
1406
1311
1407
1312
1408
@@ -1526,7 +1622,8 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.toObject = function(includeInstan
1526
1622
storeName : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
1527
1623
key : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
1528
1624
etag : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
1529
- options : ( f = msg . getOptions ( ) ) && dapr_proto_common_v1_common_pb . StateOptions . toObject ( includeInstance , f )
1625
+ options : ( f = msg . getOptions ( ) ) && dapr_proto_common_v1_common_pb . StateOptions . toObject ( includeInstance , f ) ,
1626
+ metadataMap : ( f = msg . getMetadataMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
1530
1627
} ;
1531
1628
1532
1629
if ( includeInstance ) {
@@ -1580,6 +1677,12 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.deserializeBinaryFromReader = fun
1580
1677
reader . readMessage ( value , dapr_proto_common_v1_common_pb . StateOptions . deserializeBinaryFromReader ) ;
1581
1678
msg . setOptions ( value ) ;
1582
1679
break ;
1680
+ case 5 :
1681
+ var value = msg . getMetadataMap ( ) ;
1682
+ reader . readMessage ( value , function ( message , reader ) {
1683
+ jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
1684
+ } ) ;
1685
+ break ;
1583
1686
default :
1584
1687
reader . skipField ( ) ;
1585
1688
break ;
@@ -1638,6 +1741,10 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.serializeBinaryToWriter = functio
1638
1741
dapr_proto_common_v1_common_pb . StateOptions . serializeBinaryToWriter
1639
1742
) ;
1640
1743
}
1744
+ f = message . getMetadataMap ( true ) ;
1745
+ if ( f && f . getLength ( ) > 0 ) {
1746
+ f . serializeBinary ( 5 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
1747
+ }
1641
1748
} ;
1642
1749
1643
1750
@@ -1732,6 +1839,28 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.hasOptions = function()
1732
1839
} ;
1733
1840
1734
1841
1842
+ /**
1843
+ * map<string, string> metadata = 5;
1844
+ * @param {boolean= } opt_noLazyCreate Do not create the map if
1845
+ * empty, instead returning `undefined`
1846
+ * @return {!jspb.Map<string,string> }
1847
+ */
1848
+ proto . dapr . proto . runtime . v1 . DeleteStateRequest . prototype . getMetadataMap = function ( opt_noLazyCreate ) {
1849
+ return /** @type {!jspb.Map<string,string> } */ (
1850
+ jspb . Message . getMapField ( this , 5 , opt_noLazyCreate ,
1851
+ null ) ) ;
1852
+ } ;
1853
+
1854
+
1855
+ /**
1856
+ * Clears values from the map. The map will be non-null.
1857
+ * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest } returns this
1858
+ */
1859
+ proto . dapr . proto . runtime . v1 . DeleteStateRequest . prototype . clearMetadataMap = function ( ) {
1860
+ this . getMetadataMap ( ) . clear ( ) ;
1861
+ return this ; } ;
1862
+
1863
+
1735
1864
1736
1865
/**
1737
1866
* List of repeated fields within this message type.
0 commit comments