9
9
'use strict' ;
10
10
var grpc = require ( 'grpc' ) ;
11
11
var dapr_proto_runtime_v1_dapr_pb = require ( '../../../../dapr/proto/runtime/v1/dapr_pb.js' ) ;
12
+ var google_protobuf_any_pb = require ( 'google-protobuf/google/protobuf/any_pb.js' ) ;
12
13
var google_protobuf_empty_pb = require ( 'google-protobuf/google/protobuf/empty_pb.js' ) ;
13
14
var dapr_proto_common_v1_common_pb = require ( '../../../../dapr/proto/common/v1/common_pb.js' ) ;
14
15
@@ -34,6 +35,17 @@ function deserialize_dapr_proto_runtime_v1_DeleteStateRequest(buffer_arg) {
34
35
return dapr_proto_runtime_v1_dapr_pb . DeleteStateRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
35
36
}
36
37
38
+ function serialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest ( arg ) {
39
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . ExecuteActorStateTransactionRequest ) ) {
40
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest' ) ;
41
+ }
42
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
43
+ }
44
+
45
+ function deserialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest ( buffer_arg ) {
46
+ return dapr_proto_runtime_v1_dapr_pb . ExecuteActorStateTransactionRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
47
+ }
48
+
37
49
function serialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest ( arg ) {
38
50
if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . ExecuteStateTransactionRequest ) ) {
39
51
throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.ExecuteStateTransactionRequest' ) ;
@@ -45,6 +57,50 @@ function deserialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest(buffer
45
57
return dapr_proto_runtime_v1_dapr_pb . ExecuteStateTransactionRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
46
58
}
47
59
60
+ function serialize_dapr_proto_runtime_v1_GetActorStateRequest ( arg ) {
61
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . GetActorStateRequest ) ) {
62
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.GetActorStateRequest' ) ;
63
+ }
64
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
65
+ }
66
+
67
+ function deserialize_dapr_proto_runtime_v1_GetActorStateRequest ( buffer_arg ) {
68
+ return dapr_proto_runtime_v1_dapr_pb . GetActorStateRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
69
+ }
70
+
71
+ function serialize_dapr_proto_runtime_v1_GetActorStateResponse ( arg ) {
72
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . GetActorStateResponse ) ) {
73
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.GetActorStateResponse' ) ;
74
+ }
75
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
76
+ }
77
+
78
+ function deserialize_dapr_proto_runtime_v1_GetActorStateResponse ( buffer_arg ) {
79
+ return dapr_proto_runtime_v1_dapr_pb . GetActorStateResponse . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
80
+ }
81
+
82
+ function serialize_dapr_proto_runtime_v1_GetBulkSecretRequest ( arg ) {
83
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . GetBulkSecretRequest ) ) {
84
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.GetBulkSecretRequest' ) ;
85
+ }
86
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
87
+ }
88
+
89
+ function deserialize_dapr_proto_runtime_v1_GetBulkSecretRequest ( buffer_arg ) {
90
+ return dapr_proto_runtime_v1_dapr_pb . GetBulkSecretRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
91
+ }
92
+
93
+ function serialize_dapr_proto_runtime_v1_GetBulkSecretResponse ( arg ) {
94
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . GetBulkSecretResponse ) ) {
95
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.GetBulkSecretResponse' ) ;
96
+ }
97
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
98
+ }
99
+
100
+ function deserialize_dapr_proto_runtime_v1_GetBulkSecretResponse ( buffer_arg ) {
101
+ return dapr_proto_runtime_v1_dapr_pb . GetBulkSecretResponse . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
102
+ }
103
+
48
104
function serialize_dapr_proto_runtime_v1_GetBulkStateRequest ( arg ) {
49
105
if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . GetBulkStateRequest ) ) {
50
106
throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.GetBulkStateRequest' ) ;
@@ -177,6 +233,17 @@ function deserialize_dapr_proto_runtime_v1_PublishEventRequest(buffer_arg) {
177
233
return dapr_proto_runtime_v1_dapr_pb . PublishEventRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
178
234
}
179
235
236
+ function serialize_dapr_proto_runtime_v1_RegisterActorReminderRequest ( arg ) {
237
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . RegisterActorReminderRequest ) ) {
238
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.RegisterActorReminderRequest' ) ;
239
+ }
240
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
241
+ }
242
+
243
+ function deserialize_dapr_proto_runtime_v1_RegisterActorReminderRequest ( buffer_arg ) {
244
+ return dapr_proto_runtime_v1_dapr_pb . RegisterActorReminderRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
245
+ }
246
+
180
247
function serialize_dapr_proto_runtime_v1_RegisterActorTimerRequest ( arg ) {
181
248
if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . RegisterActorTimerRequest ) ) {
182
249
throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.RegisterActorTimerRequest' ) ;
@@ -199,6 +266,17 @@ function deserialize_dapr_proto_runtime_v1_SaveStateRequest(buffer_arg) {
199
266
return dapr_proto_runtime_v1_dapr_pb . SaveStateRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
200
267
}
201
268
269
+ function serialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest ( arg ) {
270
+ if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . UnregisterActorReminderRequest ) ) {
271
+ throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.UnregisterActorReminderRequest' ) ;
272
+ }
273
+ return Buffer . from ( arg . serializeBinary ( ) ) ;
274
+ }
275
+
276
+ function deserialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest ( buffer_arg ) {
277
+ return dapr_proto_runtime_v1_dapr_pb . UnregisterActorReminderRequest . deserializeBinary ( new Uint8Array ( buffer_arg ) ) ;
278
+ }
279
+
202
280
function serialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest ( arg ) {
203
281
if ( ! ( arg instanceof dapr_proto_runtime_v1_dapr_pb . UnregisterActorTimerRequest ) ) {
204
282
throw new Error ( 'Expected argument of type dapr.proto.runtime.v1.UnregisterActorTimerRequest' ) ;
@@ -332,6 +410,18 @@ getSecret: {
332
410
responseSerialize : serialize_dapr_proto_runtime_v1_GetSecretResponse ,
333
411
responseDeserialize : deserialize_dapr_proto_runtime_v1_GetSecretResponse ,
334
412
} ,
413
+ // Gets a bulk of secrets
414
+ getBulkSecret : {
415
+ path : '/dapr.proto.runtime.v1.Dapr/GetBulkSecret' ,
416
+ requestStream : false ,
417
+ responseStream : false ,
418
+ requestType : dapr_proto_runtime_v1_dapr_pb . GetBulkSecretRequest ,
419
+ responseType : dapr_proto_runtime_v1_dapr_pb . GetBulkSecretResponse ,
420
+ requestSerialize : serialize_dapr_proto_runtime_v1_GetBulkSecretRequest ,
421
+ requestDeserialize : deserialize_dapr_proto_runtime_v1_GetBulkSecretRequest ,
422
+ responseSerialize : serialize_dapr_proto_runtime_v1_GetBulkSecretResponse ,
423
+ responseDeserialize : deserialize_dapr_proto_runtime_v1_GetBulkSecretResponse ,
424
+ } ,
335
425
// Register an actor timer.
336
426
registerActorTimer : {
337
427
path : '/dapr.proto.runtime.v1.Dapr/RegisterActorTimer' ,
@@ -356,6 +446,54 @@ unregisterActorTimer: {
356
446
responseSerialize : serialize_google_protobuf_Empty ,
357
447
responseDeserialize : deserialize_google_protobuf_Empty ,
358
448
} ,
449
+ // Register an actor reminder.
450
+ registerActorReminder : {
451
+ path : '/dapr.proto.runtime.v1.Dapr/RegisterActorReminder' ,
452
+ requestStream : false ,
453
+ responseStream : false ,
454
+ requestType : dapr_proto_runtime_v1_dapr_pb . RegisterActorReminderRequest ,
455
+ responseType : google_protobuf_empty_pb . Empty ,
456
+ requestSerialize : serialize_dapr_proto_runtime_v1_RegisterActorReminderRequest ,
457
+ requestDeserialize : deserialize_dapr_proto_runtime_v1_RegisterActorReminderRequest ,
458
+ responseSerialize : serialize_google_protobuf_Empty ,
459
+ responseDeserialize : deserialize_google_protobuf_Empty ,
460
+ } ,
461
+ // Unregister an actor reminder.
462
+ unregisterActorReminder : {
463
+ path : '/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder' ,
464
+ requestStream : false ,
465
+ responseStream : false ,
466
+ requestType : dapr_proto_runtime_v1_dapr_pb . UnregisterActorReminderRequest ,
467
+ responseType : google_protobuf_empty_pb . Empty ,
468
+ requestSerialize : serialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest ,
469
+ requestDeserialize : deserialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest ,
470
+ responseSerialize : serialize_google_protobuf_Empty ,
471
+ responseDeserialize : deserialize_google_protobuf_Empty ,
472
+ } ,
473
+ // Gets the state for a specific actor.
474
+ getActorState : {
475
+ path : '/dapr.proto.runtime.v1.Dapr/GetActorState' ,
476
+ requestStream : false ,
477
+ responseStream : false ,
478
+ requestType : dapr_proto_runtime_v1_dapr_pb . GetActorStateRequest ,
479
+ responseType : dapr_proto_runtime_v1_dapr_pb . GetActorStateResponse ,
480
+ requestSerialize : serialize_dapr_proto_runtime_v1_GetActorStateRequest ,
481
+ requestDeserialize : deserialize_dapr_proto_runtime_v1_GetActorStateRequest ,
482
+ responseSerialize : serialize_dapr_proto_runtime_v1_GetActorStateResponse ,
483
+ responseDeserialize : deserialize_dapr_proto_runtime_v1_GetActorStateResponse ,
484
+ } ,
485
+ // Executes state transactions for a specified actor
486
+ executeActorStateTransaction : {
487
+ path : '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction' ,
488
+ requestStream : false ,
489
+ responseStream : false ,
490
+ requestType : dapr_proto_runtime_v1_dapr_pb . ExecuteActorStateTransactionRequest ,
491
+ responseType : google_protobuf_empty_pb . Empty ,
492
+ requestSerialize : serialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest ,
493
+ requestDeserialize : deserialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest ,
494
+ responseSerialize : serialize_google_protobuf_Empty ,
495
+ responseDeserialize : deserialize_google_protobuf_Empty ,
496
+ } ,
359
497
// InvokeActor calls a method on an actor.
360
498
invokeActor : {
361
499
path : '/dapr.proto.runtime.v1.Dapr/InvokeActor' ,
0 commit comments