Skip to content

Commit 26e8be8

Browse files
authored
Generated new protos for release 1.16 (#713)
Generated new protos for 1.16 Signed-off-by: Whit Waldo <[email protected]>
1 parent 26b3527 commit 26e8be8

File tree

4 files changed

+412
-26
lines changed

4 files changed

+412
-26
lines changed

scripts/fetch-proto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ OS=$(echo `uname`|tr '[:upper:]' '[:lower:]')
33
ARCH=$(uname -m)
44
ORG_NAME="dapr"
55
REPO_NAME="dapr"
6-
BRANCH_NAME="v1.14.0"
6+
BRANCH_NAME="v1.16.0-rc.3"
77

88
# Path to store output
99
PATH_ROOT=$(pwd)

scripts/src/proto/dapr/proto/common/v1/common.proto

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ syntax = "proto3";
1616
package dapr.proto.common.v1;
1717

1818
import "google/protobuf/any.proto";
19+
import "google/protobuf/duration.proto";
1920

2021
option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1";
2122
option java_outer_classname = "CommonProtos";
@@ -24,10 +25,10 @@ option go_package = "github.com/dapr/dapr/pkg/proto/common/v1;common";
2425

2526
// HTTPExtension includes HTTP verb and querystring
2627
// when Dapr runtime delivers HTTP content.
27-
//
28+
//
2829
// For example, when callers calls http invoke api
29-
// POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2
30-
//
30+
// `POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2`
31+
//
3132
// Dapr runtime will parse POST as a verb and extract querystring to quersytring map.
3233
message HTTPExtension {
3334
// Type of HTTP 1.1 Methods
@@ -158,3 +159,26 @@ message ConfigurationItem {
158159
// the metadata which will be passed to/from configuration store component.
159160
map<string,string> metadata = 3;
160161
}
162+
163+
// JobFailurePolicy defines the policy to apply when a job fails to trigger.
164+
message JobFailurePolicy {
165+
// policy is the policy to apply when a job fails to trigger.
166+
oneof policy {
167+
JobFailurePolicyDrop drop = 1;
168+
JobFailurePolicyConstant constant = 2;
169+
}
170+
}
171+
172+
// JobFailurePolicyDrop is a policy which drops the job tick when the job fails to trigger.
173+
message JobFailurePolicyDrop {}
174+
175+
// JobFailurePolicyConstant is a policy which retries the job at a consistent interval when the job fails to trigger.
176+
message JobFailurePolicyConstant {
177+
// interval is the constant delay to wait before retrying the job.
178+
google.protobuf.Duration interval = 1;
179+
180+
// max_retries is the optional maximum number of retries to attempt before giving up.
181+
// If unset, the Job will be retried indefinitely.
182+
optional uint32 max_retries = 2;
183+
}
184+

scripts/src/proto/dapr/proto/internals/v1/service_invocation.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ service ServiceInvocation {
5353
// - When the sender has completed sending the data, it MUST call `CloseSend` on the stream.
5454
// The caller and callee must send at least one message in the stream. If only 1 message is sent in each direction, that message must contain both a `request`/`response` (the `payload` may be empty).
5555
rpc CallLocalStream (stream InternalInvokeRequestStream) returns (stream InternalInvokeResponseStream) {}
56+
57+
// CallActorStream is used to invoke actor method with request and streaming
58+
// response.
59+
rpc CallActorStream (InternalInvokeRequest) returns (stream InternalInvokeResponse) {}
5660
}
5761

5862
// Actor represents actor using actor_type and actor_id

0 commit comments

Comments
 (0)