2222
2323syntax = "proto3" ;
2424
25- package common ;
25+ package common.v1 ;
2626
27- option go_package = "go.temporal.io/temporal-proto/common" ;
28- option java_package = "io.temporal.proto.common" ;
27+ option go_package = "go.temporal.io/temporal-proto/common/v1;common " ;
28+ option java_package = "io.temporal.proto.common.v1 " ;
2929option java_multiple_files = true ;
30+ option java_outer_classname = "MessageProto" ;
3031
31- import "common/enum .proto" ;
32+ import "enums/v1/common .proto" ;
3233
3334message DataBlob {
34- EncodingType encodingType = 1 ;
35+ enums.v1. EncodingType encoding_type = 1 ;
3536 bytes data = 2 ;
3637}
3738
@@ -45,7 +46,7 @@ message Payload {
4546}
4647
4748message SearchAttributes {
48- map <string , Payload > indexedFields = 1 ;
49+ map <string , Payload > indexed_fields = 1 ;
4950}
5051
5152message Memo {
@@ -57,8 +58,8 @@ message Header {
5758}
5859
5960message WorkflowExecution {
60- string workflowId = 1 ;
61- string runId = 2 ;
61+ string workflow_id = 1 ;
62+ string run_id = 2 ;
6263}
6364
6465message WorkflowType {
@@ -71,17 +72,17 @@ message ActivityType {
7172
7273message RetryPolicy {
7374 // Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
74- int32 initialIntervalInSeconds = 1 ;
75+ int32 initial_interval_in_seconds = 1 ;
7576 // Coefficient used to calculate the next retry interval.
7677 // The next retry interval is previous interval multiplied by the coefficient.
7778 // Must be 1 or larger.
78- double backoffCoefficient = 2 ;
79+ double backoff_coefficient = 2 ;
7980 // Maximum interval between retries. Exponential backoff leads to interval increase.
8081 // This value is the cap of the increase. Default is 100x of the initial interval.
81- int32 maximumIntervalInSeconds = 3 ;
82+ int32 maximum_interval_in_seconds = 3 ;
8283 // Maximum number of attempts. When exceeded the retries stop even if not expired yet.
8384 // 1 disables retries. 0 means unlimited (up to the timeouts)
84- int32 maximumAttempts = 4 ;
85+ int32 maximum_attempts = 4 ;
8586 // Non-Retryable errors types. Will stop retrying if error type matches this list.
86- repeated string nonRetryableErrorTypes = 5 ;
87+ repeated string non_retryable_error_types = 5 ;
8788}
0 commit comments