Class WorkflowExecutionStartedEventAttributes.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionStartedEventAttributes.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionStartedEventAttributes.Builder>
      • getDefaultInstanceForType

        public WorkflowExecutionStartedEventAttributes getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public WorkflowExecutionStartedEventAttributes build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public WorkflowExecutionStartedEventAttributes buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionStartedEventAttributes.Builder>
      • mergeFrom

        public WorkflowExecutionStartedEventAttributes.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                  throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkflowExecutionStartedEventAttributes.Builder>
        Throws:
        java.io.IOException
      • getWorkflowTypeBuilder

        public WorkflowType.Builder getWorkflowTypeBuilder()
        .temporal.api.common.v1.WorkflowType workflow_type = 1;
      • getParentWorkflowNamespace

        public java.lang.String getParentWorkflowNamespace()
         If this workflow is a child, the namespace our parent lives in.
         SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
         
        string parent_workflow_namespace = 2;
        Specified by:
        getParentWorkflowNamespace in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The parentWorkflowNamespace.
      • getParentWorkflowNamespaceBytes

        public com.google.protobuf.ByteString getParentWorkflowNamespaceBytes()
         If this workflow is a child, the namespace our parent lives in.
         SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
         
        string parent_workflow_namespace = 2;
        Specified by:
        getParentWorkflowNamespaceBytes in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The bytes for parentWorkflowNamespace.
      • setParentWorkflowNamespace

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowNamespace​(java.lang.String value)
         If this workflow is a child, the namespace our parent lives in.
         SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
         
        string parent_workflow_namespace = 2;
        Parameters:
        value - The parentWorkflowNamespace to set.
        Returns:
        This builder for chaining.
      • clearParentWorkflowNamespace

        public WorkflowExecutionStartedEventAttributes.Builder clearParentWorkflowNamespace()
         If this workflow is a child, the namespace our parent lives in.
         SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
         
        string parent_workflow_namespace = 2;
        Returns:
        This builder for chaining.
      • setParentWorkflowNamespaceBytes

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowNamespaceBytes​(com.google.protobuf.ByteString value)
         If this workflow is a child, the namespace our parent lives in.
         SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
         
        string parent_workflow_namespace = 2;
        Parameters:
        value - The bytes for parentWorkflowNamespace to set.
        Returns:
        This builder for chaining.
      • setParentWorkflowNamespaceId

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowNamespaceId​(java.lang.String value)
        string parent_workflow_namespace_id = 27;
        Parameters:
        value - The parentWorkflowNamespaceId to set.
        Returns:
        This builder for chaining.
      • setParentWorkflowNamespaceIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowNamespaceIdBytes​(com.google.protobuf.ByteString value)
        string parent_workflow_namespace_id = 27;
        Parameters:
        value - The bytes for parentWorkflowNamespaceId to set.
        Returns:
        This builder for chaining.
      • hasParentWorkflowExecution

        public boolean hasParentWorkflowExecution()
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
        Specified by:
        hasParentWorkflowExecution in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the parentWorkflowExecution field is set.
      • getParentWorkflowExecution

        public WorkflowExecution getParentWorkflowExecution()
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
        Specified by:
        getParentWorkflowExecution in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The parentWorkflowExecution.
      • setParentWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowExecution​(WorkflowExecution value)
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
      • setParentWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder setParentWorkflowExecution​(WorkflowExecution.Builder builderForValue)
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
      • mergeParentWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder mergeParentWorkflowExecution​(WorkflowExecution value)
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
      • clearParentWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder clearParentWorkflowExecution()
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
      • getParentWorkflowExecutionBuilder

        public WorkflowExecution.Builder getParentWorkflowExecutionBuilder()
         Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
         If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
         
        .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
      • setParentInitiatedEventId

        public WorkflowExecutionStartedEventAttributes.Builder setParentInitiatedEventId​(long value)
         EventID of the child execution initiated event in parent workflow 
         
        int64 parent_initiated_event_id = 4;
        Parameters:
        value - The parentInitiatedEventId to set.
        Returns:
        This builder for chaining.
      • clearParentInitiatedEventId

        public WorkflowExecutionStartedEventAttributes.Builder clearParentInitiatedEventId()
         EventID of the child execution initiated event in parent workflow 
         
        int64 parent_initiated_event_id = 4;
        Returns:
        This builder for chaining.
      • getTaskQueueBuilder

        public TaskQueue.Builder getTaskQueueBuilder()
        .temporal.api.taskqueue.v1.TaskQueue task_queue = 5;
      • hasInput

        public boolean hasInput()
         SDK will deserialize this and provide it as arguments to the workflow function
         
        .temporal.api.common.v1.Payloads input = 6;
        Specified by:
        hasInput in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the input field is set.
      • getInputBuilder

        public Payloads.Builder getInputBuilder()
         SDK will deserialize this and provide it as arguments to the workflow function
         
        .temporal.api.common.v1.Payloads input = 6;
      • setWorkflowExecutionTimeout

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowExecutionTimeout​(com.google.protobuf.Duration value)
         Total workflow execution timeout including retries and continue as new.
         
        .google.protobuf.Duration workflow_execution_timeout = 7;
      • setWorkflowExecutionTimeout

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowExecutionTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Total workflow execution timeout including retries and continue as new.
         
        .google.protobuf.Duration workflow_execution_timeout = 7;
      • mergeWorkflowExecutionTimeout

        public WorkflowExecutionStartedEventAttributes.Builder mergeWorkflowExecutionTimeout​(com.google.protobuf.Duration value)
         Total workflow execution timeout including retries and continue as new.
         
        .google.protobuf.Duration workflow_execution_timeout = 7;
      • clearWorkflowExecutionTimeout

        public WorkflowExecutionStartedEventAttributes.Builder clearWorkflowExecutionTimeout()
         Total workflow execution timeout including retries and continue as new.
         
        .google.protobuf.Duration workflow_execution_timeout = 7;
      • getWorkflowExecutionTimeoutBuilder

        public com.google.protobuf.Duration.Builder getWorkflowExecutionTimeoutBuilder()
         Total workflow execution timeout including retries and continue as new.
         
        .google.protobuf.Duration workflow_execution_timeout = 7;
      • setWorkflowRunTimeout

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowRunTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Timeout of a single workflow run.
         
        .google.protobuf.Duration workflow_run_timeout = 8;
      • getWorkflowRunTimeoutBuilder

        public com.google.protobuf.Duration.Builder getWorkflowRunTimeoutBuilder()
         Timeout of a single workflow run.
         
        .google.protobuf.Duration workflow_run_timeout = 8;
      • setWorkflowTaskTimeout

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowTaskTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Timeout of a single workflow task.
         
        .google.protobuf.Duration workflow_task_timeout = 9;
      • mergeWorkflowTaskTimeout

        public WorkflowExecutionStartedEventAttributes.Builder mergeWorkflowTaskTimeout​(com.google.protobuf.Duration value)
         Timeout of a single workflow task.
         
        .google.protobuf.Duration workflow_task_timeout = 9;
      • getWorkflowTaskTimeoutBuilder

        public com.google.protobuf.Duration.Builder getWorkflowTaskTimeoutBuilder()
         Timeout of a single workflow task.
         
        .google.protobuf.Duration workflow_task_timeout = 9;
      • getContinuedExecutionRunIdBytes

        public com.google.protobuf.ByteString getContinuedExecutionRunIdBytes()
         Run id of the previous workflow which continued-as-new or retired or cron executed into this
         workflow.
         
        string continued_execution_run_id = 10;
        Specified by:
        getContinuedExecutionRunIdBytes in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The bytes for continuedExecutionRunId.
      • setContinuedExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder setContinuedExecutionRunId​(java.lang.String value)
         Run id of the previous workflow which continued-as-new or retired or cron executed into this
         workflow.
         
        string continued_execution_run_id = 10;
        Parameters:
        value - The continuedExecutionRunId to set.
        Returns:
        This builder for chaining.
      • clearContinuedExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder clearContinuedExecutionRunId()
         Run id of the previous workflow which continued-as-new or retired or cron executed into this
         workflow.
         
        string continued_execution_run_id = 10;
        Returns:
        This builder for chaining.
      • setContinuedExecutionRunIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setContinuedExecutionRunIdBytes​(com.google.protobuf.ByteString value)
         Run id of the previous workflow which continued-as-new or retired or cron executed into this
         workflow.
         
        string continued_execution_run_id = 10;
        Parameters:
        value - The bytes for continuedExecutionRunId to set.
        Returns:
        This builder for chaining.
      • setInitiatorValue

        public WorkflowExecutionStartedEventAttributes.Builder setInitiatorValue​(int value)
        .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 11;
        Parameters:
        value - The enum numeric value on the wire for initiator to set.
        Returns:
        This builder for chaining.
      • getContinuedFailureBuilder

        public Failure.Builder getContinuedFailureBuilder()
        .temporal.api.failure.v1.Failure continued_failure = 12;
      • getLastCompletionResultBuilder

        public Payloads.Builder getLastCompletionResultBuilder()
        .temporal.api.common.v1.Payloads last_completion_result = 13;
      • getOriginalExecutionRunId

        public java.lang.String getOriginalExecutionRunId()
         This is the run id when the WorkflowExecutionStarted event was written.
         A workflow reset changes the execution run_id, but preserves this field.
         
        string original_execution_run_id = 14;
        Specified by:
        getOriginalExecutionRunId in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The originalExecutionRunId.
      • getOriginalExecutionRunIdBytes

        public com.google.protobuf.ByteString getOriginalExecutionRunIdBytes()
         This is the run id when the WorkflowExecutionStarted event was written.
         A workflow reset changes the execution run_id, but preserves this field.
         
        string original_execution_run_id = 14;
        Specified by:
        getOriginalExecutionRunIdBytes in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The bytes for originalExecutionRunId.
      • setOriginalExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder setOriginalExecutionRunId​(java.lang.String value)
         This is the run id when the WorkflowExecutionStarted event was written.
         A workflow reset changes the execution run_id, but preserves this field.
         
        string original_execution_run_id = 14;
        Parameters:
        value - The originalExecutionRunId to set.
        Returns:
        This builder for chaining.
      • clearOriginalExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder clearOriginalExecutionRunId()
         This is the run id when the WorkflowExecutionStarted event was written.
         A workflow reset changes the execution run_id, but preserves this field.
         
        string original_execution_run_id = 14;
        Returns:
        This builder for chaining.
      • setOriginalExecutionRunIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setOriginalExecutionRunIdBytes​(com.google.protobuf.ByteString value)
         This is the run id when the WorkflowExecutionStarted event was written.
         A workflow reset changes the execution run_id, but preserves this field.
         
        string original_execution_run_id = 14;
        Parameters:
        value - The bytes for originalExecutionRunId to set.
        Returns:
        This builder for chaining.
      • setIdentity

        public WorkflowExecutionStartedEventAttributes.Builder setIdentity​(java.lang.String value)
         Identity of the client who requested this execution
         
        string identity = 15;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public WorkflowExecutionStartedEventAttributes.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         Identity of the client who requested this execution
         
        string identity = 15;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • getFirstExecutionRunId

        public java.lang.String getFirstExecutionRunId()
         This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
         Used to identify a chain.
         
        string first_execution_run_id = 16;
        Specified by:
        getFirstExecutionRunId in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The firstExecutionRunId.
      • getFirstExecutionRunIdBytes

        public com.google.protobuf.ByteString getFirstExecutionRunIdBytes()
         This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
         Used to identify a chain.
         
        string first_execution_run_id = 16;
        Specified by:
        getFirstExecutionRunIdBytes in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The bytes for firstExecutionRunId.
      • setFirstExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder setFirstExecutionRunId​(java.lang.String value)
         This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
         Used to identify a chain.
         
        string first_execution_run_id = 16;
        Parameters:
        value - The firstExecutionRunId to set.
        Returns:
        This builder for chaining.
      • clearFirstExecutionRunId

        public WorkflowExecutionStartedEventAttributes.Builder clearFirstExecutionRunId()
         This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
         Used to identify a chain.
         
        string first_execution_run_id = 16;
        Returns:
        This builder for chaining.
      • setFirstExecutionRunIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setFirstExecutionRunIdBytes​(com.google.protobuf.ByteString value)
         This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
         Used to identify a chain.
         
        string first_execution_run_id = 16;
        Parameters:
        value - The bytes for firstExecutionRunId to set.
        Returns:
        This builder for chaining.
      • getRetryPolicyBuilder

        public RetryPolicy.Builder getRetryPolicyBuilder()
        .temporal.api.common.v1.RetryPolicy retry_policy = 17;
      • setAttempt

        public WorkflowExecutionStartedEventAttributes.Builder setAttempt​(int value)
         Starting at 1, the number of times we have tried to execute this workflow
         
        int32 attempt = 18;
        Parameters:
        value - The attempt to set.
        Returns:
        This builder for chaining.
      • hasWorkflowExecutionExpirationTime

        public boolean hasWorkflowExecutionExpirationTime()
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
        Specified by:
        hasWorkflowExecutionExpirationTime in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the workflowExecutionExpirationTime field is set.
      • getWorkflowExecutionExpirationTime

        public com.google.protobuf.Timestamp getWorkflowExecutionExpirationTime()
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
        Specified by:
        getWorkflowExecutionExpirationTime in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The workflowExecutionExpirationTime.
      • setWorkflowExecutionExpirationTime

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowExecutionExpirationTime​(com.google.protobuf.Timestamp value)
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
      • setWorkflowExecutionExpirationTime

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowExecutionExpirationTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
      • mergeWorkflowExecutionExpirationTime

        public WorkflowExecutionStartedEventAttributes.Builder mergeWorkflowExecutionExpirationTime​(com.google.protobuf.Timestamp value)
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
      • clearWorkflowExecutionExpirationTime

        public WorkflowExecutionStartedEventAttributes.Builder clearWorkflowExecutionExpirationTime()
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
      • getWorkflowExecutionExpirationTimeBuilder

        public com.google.protobuf.Timestamp.Builder getWorkflowExecutionExpirationTimeBuilder()
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
      • getWorkflowExecutionExpirationTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getWorkflowExecutionExpirationTimeOrBuilder()
         The absolute time at which the workflow will be timed out.
         This is passed without change to the next run/retry of a workflow.
         
        .google.protobuf.Timestamp workflow_execution_expiration_time = 19;
        Specified by:
        getWorkflowExecutionExpirationTimeOrBuilder in interface WorkflowExecutionStartedEventAttributesOrBuilder
      • setCronSchedule

        public WorkflowExecutionStartedEventAttributes.Builder setCronSchedule​(java.lang.String value)
         If this workflow runs on a cron schedule, it will appear here
         
        string cron_schedule = 20;
        Parameters:
        value - The cronSchedule to set.
        Returns:
        This builder for chaining.
      • setCronScheduleBytes

        public WorkflowExecutionStartedEventAttributes.Builder setCronScheduleBytes​(com.google.protobuf.ByteString value)
         If this workflow runs on a cron schedule, it will appear here
         
        string cron_schedule = 20;
        Parameters:
        value - The bytes for cronSchedule to set.
        Returns:
        This builder for chaining.
      • hasFirstWorkflowTaskBackoff

        public boolean hasFirstWorkflowTaskBackoff()
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
        Specified by:
        hasFirstWorkflowTaskBackoff in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the firstWorkflowTaskBackoff field is set.
      • getFirstWorkflowTaskBackoff

        public com.google.protobuf.Duration getFirstWorkflowTaskBackoff()
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
        Specified by:
        getFirstWorkflowTaskBackoff in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The firstWorkflowTaskBackoff.
      • setFirstWorkflowTaskBackoff

        public WorkflowExecutionStartedEventAttributes.Builder setFirstWorkflowTaskBackoff​(com.google.protobuf.Duration value)
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
      • setFirstWorkflowTaskBackoff

        public WorkflowExecutionStartedEventAttributes.Builder setFirstWorkflowTaskBackoff​(com.google.protobuf.Duration.Builder builderForValue)
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
      • mergeFirstWorkflowTaskBackoff

        public WorkflowExecutionStartedEventAttributes.Builder mergeFirstWorkflowTaskBackoff​(com.google.protobuf.Duration value)
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
      • clearFirstWorkflowTaskBackoff

        public WorkflowExecutionStartedEventAttributes.Builder clearFirstWorkflowTaskBackoff()
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
      • getFirstWorkflowTaskBackoffBuilder

        public com.google.protobuf.Duration.Builder getFirstWorkflowTaskBackoffBuilder()
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
      • getFirstWorkflowTaskBackoffOrBuilder

        public com.google.protobuf.DurationOrBuilder getFirstWorkflowTaskBackoffOrBuilder()
         For a cron workflow, this contains the amount of time between when this iteration of
         the cron workflow was scheduled and when it should run next per its cron_schedule.
         
        .google.protobuf.Duration first_workflow_task_backoff = 21;
        Specified by:
        getFirstWorkflowTaskBackoffOrBuilder in interface WorkflowExecutionStartedEventAttributesOrBuilder
      • getMemoBuilder

        public Memo.Builder getMemoBuilder()
        .temporal.api.common.v1.Memo memo = 22;
      • getSearchAttributesBuilder

        public SearchAttributes.Builder getSearchAttributesBuilder()
        .temporal.api.common.v1.SearchAttributes search_attributes = 23;
      • getPrevAutoResetPointsBuilder

        public ResetPoints.Builder getPrevAutoResetPointsBuilder()
        .temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
      • getHeaderBuilder

        public Header.Builder getHeaderBuilder()
        .temporal.api.common.v1.Header header = 25;
      • getParentInitiatedEventVersion

        public long getParentInitiatedEventVersion()
         Version of the child execution initiated event in parent workflow
         It should be used together with parent_initiated_event_id to identify
         a child initiated event for global namespace
         
        int64 parent_initiated_event_version = 26;
        Specified by:
        getParentInitiatedEventVersion in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The parentInitiatedEventVersion.
      • setParentInitiatedEventVersion

        public WorkflowExecutionStartedEventAttributes.Builder setParentInitiatedEventVersion​(long value)
         Version of the child execution initiated event in parent workflow
         It should be used together with parent_initiated_event_id to identify
         a child initiated event for global namespace
         
        int64 parent_initiated_event_version = 26;
        Parameters:
        value - The parentInitiatedEventVersion to set.
        Returns:
        This builder for chaining.
      • clearParentInitiatedEventVersion

        public WorkflowExecutionStartedEventAttributes.Builder clearParentInitiatedEventVersion()
         Version of the child execution initiated event in parent workflow
         It should be used together with parent_initiated_event_id to identify
         a child initiated event for global namespace
         
        int64 parent_initiated_event_version = 26;
        Returns:
        This builder for chaining.
      • setWorkflowId

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowId​(java.lang.String value)
         This field is new in 1.21.
         
        string workflow_id = 28;
        Parameters:
        value - The workflowId to set.
        Returns:
        This builder for chaining.
      • setWorkflowIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setWorkflowIdBytes​(com.google.protobuf.ByteString value)
         This field is new in 1.21.
         
        string workflow_id = 28;
        Parameters:
        value - The bytes for workflowId to set.
        Returns:
        This builder for chaining.
      • hasSourceVersionStamp

        public boolean hasSourceVersionStamp()
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
        Specified by:
        hasSourceVersionStamp in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the sourceVersionStamp field is set.
      • getSourceVersionStamp

        public WorkerVersionStamp getSourceVersionStamp()
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
        Specified by:
        getSourceVersionStamp in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The sourceVersionStamp.
      • setSourceVersionStamp

        public WorkflowExecutionStartedEventAttributes.Builder setSourceVersionStamp​(WorkerVersionStamp value)
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
      • setSourceVersionStamp

        public WorkflowExecutionStartedEventAttributes.Builder setSourceVersionStamp​(WorkerVersionStamp.Builder builderForValue)
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
      • mergeSourceVersionStamp

        public WorkflowExecutionStartedEventAttributes.Builder mergeSourceVersionStamp​(WorkerVersionStamp value)
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
      • clearSourceVersionStamp

        public WorkflowExecutionStartedEventAttributes.Builder clearSourceVersionStamp()
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
      • getSourceVersionStampBuilder

        public WorkerVersionStamp.Builder getSourceVersionStampBuilder()
         If this workflow intends to use anything other than the current overall default version for
         the queue, then we include it here.
         Deprecated. use `inherited_build_id` instead
         
        .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
      • addAllCompletionCallbacks

        public WorkflowExecutionStartedEventAttributes.Builder addAllCompletionCallbacks​(java.lang.Iterable<? extends Callback> values)
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • clearCompletionCallbacks

        public WorkflowExecutionStartedEventAttributes.Builder clearCompletionCallbacks()
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • removeCompletionCallbacks

        public WorkflowExecutionStartedEventAttributes.Builder removeCompletionCallbacks​(int index)
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • getCompletionCallbacksBuilder

        public Callback.Builder getCompletionCallbacksBuilder​(int index)
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • addCompletionCallbacksBuilder

        public Callback.Builder addCompletionCallbacksBuilder()
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • addCompletionCallbacksBuilder

        public Callback.Builder addCompletionCallbacksBuilder​(int index)
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • getCompletionCallbacksBuilderList

        public java.util.List<Callback.Builder> getCompletionCallbacksBuilderList()
         Completion callbacks attached when this workflow was started.
         
        repeated .temporal.api.common.v1.Callback completion_callbacks = 30;
      • hasRootWorkflowExecution

        public boolean hasRootWorkflowExecution()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
        Specified by:
        hasRootWorkflowExecution in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        Whether the rootWorkflowExecution field is set.
      • getRootWorkflowExecution

        public WorkflowExecution getRootWorkflowExecution()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
        Specified by:
        getRootWorkflowExecution in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The rootWorkflowExecution.
      • setRootWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder setRootWorkflowExecution​(WorkflowExecution value)
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
      • setRootWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder setRootWorkflowExecution​(WorkflowExecution.Builder builderForValue)
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
      • mergeRootWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder mergeRootWorkflowExecution​(WorkflowExecution value)
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
      • clearRootWorkflowExecution

        public WorkflowExecutionStartedEventAttributes.Builder clearRootWorkflowExecution()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
      • getRootWorkflowExecutionBuilder

        public WorkflowExecution.Builder getRootWorkflowExecutionBuilder()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
      • getRootWorkflowExecutionOrBuilder

        public WorkflowExecutionOrBuilder getRootWorkflowExecutionOrBuilder()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
        Specified by:
        getRootWorkflowExecutionOrBuilder in interface WorkflowExecutionStartedEventAttributesOrBuilder
      • getInheritedBuildIdBytes

        public com.google.protobuf.ByteString getInheritedBuildIdBytes()
         When present, this execution is assigned to the build ID of its parent or previous execution.
         
        string inherited_build_id = 32;
        Specified by:
        getInheritedBuildIdBytes in interface WorkflowExecutionStartedEventAttributesOrBuilder
        Returns:
        The bytes for inheritedBuildId.
      • setInheritedBuildId

        public WorkflowExecutionStartedEventAttributes.Builder setInheritedBuildId​(java.lang.String value)
         When present, this execution is assigned to the build ID of its parent or previous execution.
         
        string inherited_build_id = 32;
        Parameters:
        value - The inheritedBuildId to set.
        Returns:
        This builder for chaining.
      • clearInheritedBuildId

        public WorkflowExecutionStartedEventAttributes.Builder clearInheritedBuildId()
         When present, this execution is assigned to the build ID of its parent or previous execution.
         
        string inherited_build_id = 32;
        Returns:
        This builder for chaining.
      • setInheritedBuildIdBytes

        public WorkflowExecutionStartedEventAttributes.Builder setInheritedBuildIdBytes​(com.google.protobuf.ByteString value)
         When present, this execution is assigned to the build ID of its parent or previous execution.
         
        string inherited_build_id = 32;
        Parameters:
        value - The bytes for inheritedBuildId to set.
        Returns:
        This builder for chaining.