2
2
/**
3
3
* @fileoverview
4
4
* @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
5
* @suppress {messageConventions} JS Compiler reports an error if a variable or
7
6
* field starts with 'MSG_' and isn't a translatable message.
8
7
* @public
@@ -17,6 +16,7 @@ var global = Function('return this')();
17
16
18
17
var google_protobuf_any_pb = require ( 'google-protobuf/google/protobuf/any_pb.js' ) ;
19
18
goog . object . extend ( proto , google_protobuf_any_pb ) ;
19
+ goog . exportSymbol ( 'proto.dapr.proto.common.v1.ConfigurationItem' , null , global ) ;
20
20
goog . exportSymbol ( 'proto.dapr.proto.common.v1.Etag' , null , global ) ;
21
21
goog . exportSymbol ( 'proto.dapr.proto.common.v1.HTTPExtension' , null , global ) ;
22
22
goog . exportSymbol ( 'proto.dapr.proto.common.v1.HTTPExtension.Verb' , null , global ) ;
@@ -152,6 +152,27 @@ if (goog.DEBUG && !COMPILED) {
152
152
*/
153
153
proto . dapr . proto . common . v1 . StateOptions . displayName = 'proto.dapr.proto.common.v1.StateOptions' ;
154
154
}
155
+ /**
156
+ * Generated by JsPbCodeGenerator.
157
+ * @param {Array= } opt_data Optional initial data array, typically from a
158
+ * server response, or constructed directly in Javascript. The array is used
159
+ * in place and becomes part of the constructed object. It is not cloned.
160
+ * If no data is provided, the constructed object will be empty, but still
161
+ * valid.
162
+ * @extends {jspb.Message }
163
+ * @constructor
164
+ */
165
+ proto . dapr . proto . common . v1 . ConfigurationItem = function ( opt_data ) {
166
+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
167
+ } ;
168
+ goog . inherits ( proto . dapr . proto . common . v1 . ConfigurationItem , jspb . Message ) ;
169
+ if ( goog . DEBUG && ! COMPILED ) {
170
+ /**
171
+ * @public
172
+ * @override
173
+ */
174
+ proto . dapr . proto . common . v1 . ConfigurationItem . displayName = 'proto.dapr.proto.common.v1.ConfigurationItem' ;
175
+ }
155
176
156
177
157
178
@@ -288,7 +309,8 @@ proto.dapr.proto.common.v1.HTTPExtension.Verb = {
288
309
DELETE : 5 ,
289
310
CONNECT : 6 ,
290
311
OPTIONS : 7 ,
291
- TRACE : 8
312
+ TRACE : 8 ,
313
+ PATCH : 9
292
314
} ;
293
315
294
316
/**
@@ -1397,4 +1419,227 @@ proto.dapr.proto.common.v1.StateOptions.prototype.setConsistency = function(valu
1397
1419
} ;
1398
1420
1399
1421
1422
+
1423
+
1424
+
1425
+ if ( jspb . Message . GENERATE_TO_OBJECT ) {
1426
+ /**
1427
+ * Creates an object representation of this proto.
1428
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1429
+ * Optional fields that are not set will be set to undefined.
1430
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1431
+ * For the list of reserved names please see:
1432
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1433
+ * @param {boolean= } opt_includeInstance Deprecated. whether to include the
1434
+ * JSPB instance for transitional soy proto support:
1435
+ * http://goto/soy-param-migration
1436
+ * @return {!Object }
1437
+ */
1438
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . toObject = function ( opt_includeInstance ) {
1439
+ return proto . dapr . proto . common . v1 . ConfigurationItem . toObject ( opt_includeInstance , this ) ;
1440
+ } ;
1441
+
1442
+
1443
+ /**
1444
+ * Static version of the {@see toObject} method.
1445
+ * @param {boolean|undefined } includeInstance Deprecated. Whether to include
1446
+ * the JSPB instance for transitional soy proto support:
1447
+ * http://goto/soy-param-migration
1448
+ * @param {!proto.dapr.proto.common.v1.ConfigurationItem } msg The msg instance to transform.
1449
+ * @return {!Object }
1450
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1451
+ */
1452
+ proto . dapr . proto . common . v1 . ConfigurationItem . toObject = function ( includeInstance , msg ) {
1453
+ var f , obj = {
1454
+ key : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
1455
+ value : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
1456
+ version : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
1457
+ metadataMap : ( f = msg . getMetadataMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
1458
+ } ;
1459
+
1460
+ if ( includeInstance ) {
1461
+ obj . $jspbMessageInstance = msg ;
1462
+ }
1463
+ return obj ;
1464
+ } ;
1465
+ }
1466
+
1467
+
1468
+ /**
1469
+ * Deserializes binary data (in protobuf wire format).
1470
+ * @param {jspb.ByteSource } bytes The bytes to deserialize.
1471
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem }
1472
+ */
1473
+ proto . dapr . proto . common . v1 . ConfigurationItem . deserializeBinary = function ( bytes ) {
1474
+ var reader = new jspb . BinaryReader ( bytes ) ;
1475
+ var msg = new proto . dapr . proto . common . v1 . ConfigurationItem ;
1476
+ return proto . dapr . proto . common . v1 . ConfigurationItem . deserializeBinaryFromReader ( msg , reader ) ;
1477
+ } ;
1478
+
1479
+
1480
+ /**
1481
+ * Deserializes binary data (in protobuf wire format) from the
1482
+ * given reader into the given message object.
1483
+ * @param {!proto.dapr.proto.common.v1.ConfigurationItem } msg The message object to deserialize into.
1484
+ * @param {!jspb.BinaryReader } reader The BinaryReader to use.
1485
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem }
1486
+ */
1487
+ proto . dapr . proto . common . v1 . ConfigurationItem . deserializeBinaryFromReader = function ( msg , reader ) {
1488
+ while ( reader . nextField ( ) ) {
1489
+ if ( reader . isEndGroup ( ) ) {
1490
+ break ;
1491
+ }
1492
+ var field = reader . getFieldNumber ( ) ;
1493
+ switch ( field ) {
1494
+ case 1 :
1495
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1496
+ msg . setKey ( value ) ;
1497
+ break ;
1498
+ case 2 :
1499
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1500
+ msg . setValue ( value ) ;
1501
+ break ;
1502
+ case 3 :
1503
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1504
+ msg . setVersion ( value ) ;
1505
+ break ;
1506
+ case 4 :
1507
+ var value = msg . getMetadataMap ( ) ;
1508
+ reader . readMessage ( value , function ( message , reader ) {
1509
+ jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
1510
+ } ) ;
1511
+ break ;
1512
+ default :
1513
+ reader . skipField ( ) ;
1514
+ break ;
1515
+ }
1516
+ }
1517
+ return msg ;
1518
+ } ;
1519
+
1520
+
1521
+ /**
1522
+ * Serializes the message to binary data (in protobuf wire format).
1523
+ * @return {!Uint8Array }
1524
+ */
1525
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . serializeBinary = function ( ) {
1526
+ var writer = new jspb . BinaryWriter ( ) ;
1527
+ proto . dapr . proto . common . v1 . ConfigurationItem . serializeBinaryToWriter ( this , writer ) ;
1528
+ return writer . getResultBuffer ( ) ;
1529
+ } ;
1530
+
1531
+
1532
+ /**
1533
+ * Serializes the given message to binary data (in protobuf wire
1534
+ * format), writing to the given BinaryWriter.
1535
+ * @param {!proto.dapr.proto.common.v1.ConfigurationItem } message
1536
+ * @param {!jspb.BinaryWriter } writer
1537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1538
+ */
1539
+ proto . dapr . proto . common . v1 . ConfigurationItem . serializeBinaryToWriter = function ( message , writer ) {
1540
+ var f = undefined ;
1541
+ f = message . getKey ( ) ;
1542
+ if ( f . length > 0 ) {
1543
+ writer . writeString (
1544
+ 1 ,
1545
+ f
1546
+ ) ;
1547
+ }
1548
+ f = message . getValue ( ) ;
1549
+ if ( f . length > 0 ) {
1550
+ writer . writeString (
1551
+ 2 ,
1552
+ f
1553
+ ) ;
1554
+ }
1555
+ f = message . getVersion ( ) ;
1556
+ if ( f . length > 0 ) {
1557
+ writer . writeString (
1558
+ 3 ,
1559
+ f
1560
+ ) ;
1561
+ }
1562
+ f = message . getMetadataMap ( true ) ;
1563
+ if ( f && f . getLength ( ) > 0 ) {
1564
+ f . serializeBinary ( 4 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
1565
+ }
1566
+ } ;
1567
+
1568
+
1569
+ /**
1570
+ * optional string key = 1;
1571
+ * @return {string }
1572
+ */
1573
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . getKey = function ( ) {
1574
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
1575
+ } ;
1576
+
1577
+
1578
+ /**
1579
+ * @param {string } value
1580
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem } returns this
1581
+ */
1582
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . setKey = function ( value ) {
1583
+ return jspb . Message . setProto3StringField ( this , 1 , value ) ;
1584
+ } ;
1585
+
1586
+
1587
+ /**
1588
+ * optional string value = 2;
1589
+ * @return {string }
1590
+ */
1591
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . getValue = function ( ) {
1592
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
1593
+ } ;
1594
+
1595
+
1596
+ /**
1597
+ * @param {string } value
1598
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem } returns this
1599
+ */
1600
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . setValue = function ( value ) {
1601
+ return jspb . Message . setProto3StringField ( this , 2 , value ) ;
1602
+ } ;
1603
+
1604
+
1605
+ /**
1606
+ * optional string version = 3;
1607
+ * @return {string }
1608
+ */
1609
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . getVersion = function ( ) {
1610
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
1611
+ } ;
1612
+
1613
+
1614
+ /**
1615
+ * @param {string } value
1616
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem } returns this
1617
+ */
1618
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . setVersion = function ( value ) {
1619
+ return jspb . Message . setProto3StringField ( this , 3 , value ) ;
1620
+ } ;
1621
+
1622
+
1623
+ /**
1624
+ * map<string, string> metadata = 4;
1625
+ * @param {boolean= } opt_noLazyCreate Do not create the map if
1626
+ * empty, instead returning `undefined`
1627
+ * @return {!jspb.Map<string,string> }
1628
+ */
1629
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . getMetadataMap = function ( opt_noLazyCreate ) {
1630
+ return /** @type {!jspb.Map<string,string> } */ (
1631
+ jspb . Message . getMapField ( this , 4 , opt_noLazyCreate ,
1632
+ null ) ) ;
1633
+ } ;
1634
+
1635
+
1636
+ /**
1637
+ * Clears values from the map. The map will be non-null.
1638
+ * @return {!proto.dapr.proto.common.v1.ConfigurationItem } returns this
1639
+ */
1640
+ proto . dapr . proto . common . v1 . ConfigurationItem . prototype . clearMetadataMap = function ( ) {
1641
+ this . getMetadataMap ( ) . clear ( ) ;
1642
+ return this ; } ;
1643
+
1644
+
1400
1645
goog . object . extend ( exports , proto . dapr . proto . common . v1 ) ;
0 commit comments