@@ -32,7 +32,10 @@ service Dapr {
3232
3333 // Deletes the state for a specific key.
3434 rpc DeleteState (DeleteStateRequest ) returns (google .protobuf .Empty ) {}
35-
35+
36+ // Deletes a bulk of state items for a list of keys
37+ rpc DeleteBulkState (DeleteBulkStateRequest ) returns (google .protobuf .Empty ) {}
38+
3639 // Executes transactions for a specified store
3740 rpc ExecuteStateTransaction (ExecuteStateTransactionRequest ) returns (google .protobuf .Empty ) {}
3841
@@ -68,6 +71,12 @@ service Dapr {
6871
6972 // InvokeActor calls a method on an actor.
7073 rpc InvokeActor (InvokeActorRequest ) returns (InvokeActorResponse ) {}
74+
75+ // Gets metadata of the sidecar
76+ rpc GetMetadata (google .protobuf .Empty ) returns (GetMetadataResponse ) {}
77+
78+ // Sets value in extended metadata of the sidecar
79+ rpc SetMetadata (SetMetadataRequest ) returns (google .protobuf .Empty ) {}
7180}
7281
7382// InvokeServiceRequest represents the request message for Service invocation.
@@ -158,7 +167,7 @@ message DeleteStateRequest {
158167
159168 // The entity tag which represents the specific version of data.
160169 // The exact ETag format is defined by the corresponding data store.
161- string etag = 3 ;
170+ common.v1.Etag etag = 3 ;
162171
163172 // State operation options which includes concurrency/
164173 // consistency/retry_policy.
@@ -168,6 +177,15 @@ message DeleteStateRequest {
168177 map <string ,string > metadata = 5 ;
169178}
170179
180+ // DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.
181+ message DeleteBulkStateRequest {
182+ // The name of state store.
183+ string store_name = 1 ;
184+
185+ // The array of the state key values.
186+ repeated common.v1.StateItem states = 2 ;
187+ }
188+
171189// SaveStateRequest is the message to save multiple states into state store.
172190message SaveStateRequest {
173191 // The name of state store.
@@ -256,11 +274,16 @@ message GetBulkSecretRequest {
256274 map <string ,string > metadata = 2 ;
257275}
258276
259- // GetBulkSecretResponse is the response message to convey the requested secret.
277+ // SecretResponse is a map of decrypted string/string values
278+ message SecretResponse {
279+ map <string , string > secrets = 1 ;
280+ }
281+
282+ // GetBulkSecretResponse is the response message to convey the requested secrets.
260283message GetBulkSecretResponse {
261284 // data hold the secret values. Some secret store, such as kubernetes secret
262285 // store, can save multiple secrets for single secret key.
263- map <string , string > data = 1 ;
286+ map <string , SecretResponse > data = 1 ;
264287}
265288
266289// TransactionalStateOperation is the message to execute a specified operation with a key-value pair.
@@ -357,3 +380,27 @@ message InvokeActorRequest {
357380message InvokeActorResponse {
358381 bytes data = 1 ;
359382}
383+
384+ // GetMetadataResponse is a message that is returned on GetMetadata rpc call
385+ message GetMetadataResponse {
386+ string id = 1 ;
387+ repeated ActiveActorsCount active_actors_count = 2 ;
388+ repeated RegisteredComponents registered_components = 3 ;
389+ map <string ,string > extended_metadata = 4 ;
390+ }
391+
392+ message ActiveActorsCount {
393+ string type = 1 ;
394+ int32 count = 2 ;
395+ }
396+
397+ message RegisteredComponents {
398+ string name = 1 ;
399+ string type = 2 ;
400+ string version = 3 ;
401+ }
402+
403+ message SetMetadataRequest {
404+ string key = 1 ;
405+ string value = 2 ;
406+ }
0 commit comments