1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityTask {
    /// A unique identifier for this task
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, tag = "2")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(oneof = "activity_task::Variant", tags = "3, 4")]
    pub variant: ::core::option::Option<activity_task::Variant>,
}
/// Nested message and enum types in `ActivityTask`.
pub mod activity_task {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Variant {
        /// Start activity execution.
        #[prost(message, tag = "3")]
        Start(super::Start),
        /// Attempt to cancel activity execution.
        #[prost(message, tag = "4")]
        Cancel(super::Cancel),
    }
}
//// Begin executing an activity
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Start {
    #[prost(string, tag = "1")]
    pub workflow_namespace: ::prost::alloc::string::String,
    //// The workflow's type name or function identifier
    #[prost(string, tag = "2")]
    pub workflow_type: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub workflow_execution: ::core::option::Option<super::common::WorkflowExecution>,
    //// The activity's type name or function identifier
    #[prost(string, tag = "4")]
    pub activity_type: ::prost::alloc::string::String,
    #[prost(map = "string, message", tag = "5")]
    pub header_fields:
        ::std::collections::HashMap<::prost::alloc::string::String, super::common::Payload>,
    //// Arguments to the activity
    #[prost(message, repeated, tag = "6")]
    pub input: ::prost::alloc::vec::Vec<super::common::Payload>,
    #[prost(message, repeated, tag = "7")]
    pub heartbeat_details: ::prost::alloc::vec::Vec<super::common::Payload>,
    #[prost(message, optional, tag = "8")]
    pub scheduled_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "9")]
    pub current_attempt_scheduled_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "10")]
    pub started_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(int32, tag = "11")]
    pub attempt: i32,
    #[prost(message, optional, tag = "12")]
    pub schedule_to_close_timeout: ::core::option::Option<::prost_types::Duration>,
    #[prost(message, optional, tag = "13")]
    pub start_to_close_timeout: ::core::option::Option<::prost_types::Duration>,
    #[prost(message, optional, tag = "14")]
    pub heartbeat_timeout: ::core::option::Option<::prost_types::Duration>,
    //// This is an actual retry policy the service uses. It can be different from the one provided
    //// (or not) during activity scheduling as the service can override the provided one in case its
    //// values are not specified or exceed configured system limits.
    #[prost(message, optional, tag = "15")]
    pub retry_policy: ::core::option::Option<super::common::RetryPolicy>,
}
//// Attempt to cancel a running activity
///
/// TODO: add attributes
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cancel {}