Skip to content

Commit

Permalink
update proto files for rc release (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayada1 authored Nov 11, 2020
1 parent 7d1fa13 commit d8fa3cd
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/Dapr.Client/Protos/dapr/proto/dapr/v1/appcallback.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ message TopicEventRequest {

// TopicEventResponse is response from app on published message
message TopicEventResponse {
// TopicEventResponseStatus allows apps to have finer control over handling of the message.
enum TopicEventResponseStatus {
// SUCCESS is the default behavior: message is acknowledged and not retried or logged.
SUCCESS = 0;
// RETRY status signals Dapr to retry the message as part of an expected scenario (no warning is logged).
RETRY = 1;
// DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged).
DROP = 2;
}

// The list of output bindings.
TopicEventResponseStatus status = 1;
}

// BindingEventRequest represents input bindings event.
Expand Down
42 changes: 41 additions & 1 deletion src/Dapr.Client/Protos/dapr/proto/dapr/v1/dapr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ service Dapr {

// Gets secrets from secret stores.
rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {}

// Register an actor timer.
rpc RegisterActorTimer(RegisterActorTimerRequest) returns (google.protobuf.Empty) {}

// Unregister an actor timer.
rpc UnregisterActorTimer(UnregisterActorTimerRequest) returns (google.protobuf.Empty) {}

// InvokeActor calls a method on an actor.
rpc InvokeActor (InvokeActorRequest) returns (InvokeActorResponse) {}
}

// InvokeServiceRequest represents the request message for Service invocation.
Expand Down Expand Up @@ -226,4 +235,35 @@ message ExecuteStateTransactionRequest {

// The metadata used for transactional operations.
map<string,string> metadata = 3;
}
}

// RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id.
message RegisterActorTimerRequest {
string actor_type = 1;
string actor_id = 2;
string name = 3;
string due_time = 4;
string period = 5;
string callback = 6;
bytes data = 7;
}

// UnregisterActorTimerRequest is the message to unregister an actor timer
message UnregisterActorTimerRequest {
string actor_type = 1;
string actor_id = 2;
string name = 3;
}

// InvokeActorRequest is the message to call an actor.
message InvokeActorRequest {
string actor_type = 1;
string actor_id = 2;
string method = 3;
bytes data = 4;
}

// InvokeActorResponse is the method that returns an actor invocation response.
message InvokeActorResponse {
bytes data = 1;
}

0 comments on commit d8fa3cd

Please sign in to comment.