13
13
14
14
var jspb = require ( 'google-protobuf' ) ;
15
15
var goog = jspb ;
16
- var global =
17
- ( typeof globalThis !== 'undefined' && globalThis ) ||
18
- ( typeof window !== 'undefined' && window ) ||
19
- ( typeof global !== 'undefined' && global ) ||
20
- ( typeof self !== 'undefined' && self ) ||
21
- ( function ( ) { return this ; } ) . call ( null ) ||
22
- Function ( 'return this' ) ( ) ;
16
+ var global = ( function ( ) { return this || window || global || self || Function ( 'return this' ) ( ) ; } ) . call ( null ) ;
23
17
24
18
var google_protobuf_empty_pb = require ( 'google-protobuf/google/protobuf/empty_pb.js' ) ;
25
19
goog . object . extend ( proto , google_protobuf_empty_pb ) ;
@@ -41,6 +35,7 @@ goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyRequest', null, gl
41
35
goog . exportSymbol ( 'proto.dapr.proto.operator.v1.ListResiliencyResponse' , null , global ) ;
42
36
goog . exportSymbol ( 'proto.dapr.proto.operator.v1.ListSubscriptionsRequest' , null , global ) ;
43
37
goog . exportSymbol ( 'proto.dapr.proto.operator.v1.ListSubscriptionsResponse' , null , global ) ;
38
+ goog . exportSymbol ( 'proto.dapr.proto.operator.v1.ResourceEventType' , null , global ) ;
44
39
/**
45
40
* Generated by JsPbCodeGenerator.
46
41
* @param {Array= } opt_data Optional initial data array, typically from a
@@ -771,7 +766,8 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.toObject = function(
771
766
*/
772
767
proto . dapr . proto . operator . v1 . ComponentUpdateEvent . toObject = function ( includeInstance , msg ) {
773
768
var f , obj = {
774
- component : msg . getComponent_asB64 ( )
769
+ component : msg . getComponent_asB64 ( ) ,
770
+ type : jspb . Message . getFieldWithDefault ( msg , 2 , 0 )
775
771
} ;
776
772
777
773
if ( includeInstance ) {
@@ -812,6 +808,10 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.deserializeBinaryFromReader =
812
808
var value = /** @type {!Uint8Array } */ ( reader . readBytes ( ) ) ;
813
809
msg . setComponent ( value ) ;
814
810
break ;
811
+ case 2 :
812
+ var value = /** @type {!proto.dapr.proto.operator.v1.ResourceEventType } */ ( reader . readEnum ( ) ) ;
813
+ msg . setType ( value ) ;
814
+ break ;
815
815
default :
816
816
reader . skipField ( ) ;
817
817
break ;
@@ -848,6 +848,13 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.serializeBinaryToWriter = func
848
848
f
849
849
) ;
850
850
}
851
+ f = message . getType ( ) ;
852
+ if ( f !== 0.0 ) {
853
+ writer . writeEnum (
854
+ 2 ,
855
+ f
856
+ ) ;
857
+ }
851
858
} ;
852
859
853
860
@@ -893,6 +900,24 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setComponent = funct
893
900
} ;
894
901
895
902
903
+ /**
904
+ * optional ResourceEventType type = 2;
905
+ * @return {!proto.dapr.proto.operator.v1.ResourceEventType }
906
+ */
907
+ proto . dapr . proto . operator . v1 . ComponentUpdateEvent . prototype . getType = function ( ) {
908
+ return /** @type {!proto.dapr.proto.operator.v1.ResourceEventType } */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
909
+ } ;
910
+
911
+
912
+ /**
913
+ * @param {!proto.dapr.proto.operator.v1.ResourceEventType } value
914
+ * @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent } returns this
915
+ */
916
+ proto . dapr . proto . operator . v1 . ComponentUpdateEvent . prototype . setType = function ( value ) {
917
+ return jspb . Message . setProto3EnumField ( this , 2 , value ) ;
918
+ } ;
919
+
920
+
896
921
897
922
/**
898
923
* List of repeated fields within this message type.
@@ -3319,4 +3344,14 @@ proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.setHttpEndpoints
3319
3344
} ;
3320
3345
3321
3346
3347
+ /**
3348
+ * @enum {number}
3349
+ */
3350
+ proto . dapr . proto . operator . v1 . ResourceEventType = {
3351
+ UNKNOWN : 0 ,
3352
+ CREATED : 1 ,
3353
+ UPDATED : 2 ,
3354
+ DELETED : 3
3355
+ } ;
3356
+
3322
3357
goog . object . extend ( exports , proto . dapr . proto . operator . v1 ) ;
0 commit comments