Class WorkflowTaskFailedEventAttributes.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<WorkflowTaskFailedEventAttributes.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<WorkflowTaskFailedEventAttributes.Builder>
      • getDefaultInstanceForType

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

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

        public WorkflowTaskFailedEventAttributes 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<WorkflowTaskFailedEventAttributes.Builder>
      • mergeFrom

        public WorkflowTaskFailedEventAttributes.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<WorkflowTaskFailedEventAttributes.Builder>
        Throws:
        java.io.IOException
      • setScheduledEventId

        public WorkflowTaskFailedEventAttributes.Builder setScheduledEventId​(long value)
         The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
         
        int64 scheduled_event_id = 1;
        Parameters:
        value - The scheduledEventId to set.
        Returns:
        This builder for chaining.
      • clearScheduledEventId

        public WorkflowTaskFailedEventAttributes.Builder clearScheduledEventId()
         The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
         
        int64 scheduled_event_id = 1;
        Returns:
        This builder for chaining.
      • setStartedEventId

        public WorkflowTaskFailedEventAttributes.Builder setStartedEventId​(long value)
         The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
         
        int64 started_event_id = 2;
        Parameters:
        value - The startedEventId to set.
        Returns:
        This builder for chaining.
      • clearStartedEventId

        public WorkflowTaskFailedEventAttributes.Builder clearStartedEventId()
         The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
         
        int64 started_event_id = 2;
        Returns:
        This builder for chaining.
      • setCauseValue

        public WorkflowTaskFailedEventAttributes.Builder setCauseValue​(int value)
        .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
        Parameters:
        value - The enum numeric value on the wire for cause to set.
        Returns:
        This builder for chaining.
      • getFailureBuilder

        public Failure.Builder getFailureBuilder()
         The failure details
         
        .temporal.api.failure.v1.Failure failure = 4;
      • getIdentity

        public java.lang.String getIdentity()
         If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
         
        string identity = 5;
        Specified by:
        getIdentity in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        The identity.
      • getIdentityBytes

        public com.google.protobuf.ByteString getIdentityBytes()
         If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
         
        string identity = 5;
        Specified by:
        getIdentityBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        The bytes for identity.
      • setIdentity

        public WorkflowTaskFailedEventAttributes.Builder setIdentity​(java.lang.String value)
         If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
         
        string identity = 5;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • clearIdentity

        public WorkflowTaskFailedEventAttributes.Builder clearIdentity()
         If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
         
        string identity = 5;
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public WorkflowTaskFailedEventAttributes.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
         
        string identity = 5;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • setBaseRunId

        public WorkflowTaskFailedEventAttributes.Builder setBaseRunId​(java.lang.String value)
         The original run id of the workflow. For reset workflow.
         
        string base_run_id = 6;
        Parameters:
        value - The baseRunId to set.
        Returns:
        This builder for chaining.
      • setBaseRunIdBytes

        public WorkflowTaskFailedEventAttributes.Builder setBaseRunIdBytes​(com.google.protobuf.ByteString value)
         The original run id of the workflow. For reset workflow.
         
        string base_run_id = 6;
        Parameters:
        value - The bytes for baseRunId to set.
        Returns:
        This builder for chaining.
      • setNewRunId

        public WorkflowTaskFailedEventAttributes.Builder setNewRunId​(java.lang.String value)
         If the workflow is being reset, the new run id.
         
        string new_run_id = 7;
        Parameters:
        value - The newRunId to set.
        Returns:
        This builder for chaining.
      • setNewRunIdBytes

        public WorkflowTaskFailedEventAttributes.Builder setNewRunIdBytes​(com.google.protobuf.ByteString value)
         If the workflow is being reset, the new run id.
         
        string new_run_id = 7;
        Parameters:
        value - The bytes for newRunId to set.
        Returns:
        This builder for chaining.
      • setForkEventVersion

        public WorkflowTaskFailedEventAttributes.Builder setForkEventVersion​(long value)
         TODO: ?
         
        int64 fork_event_version = 8;
        Parameters:
        value - The forkEventVersion to set.
        Returns:
        This builder for chaining.
      • getBinaryChecksum

        public java.lang.String getBinaryChecksum()
         DEPRECATED since 1.21 - use `worker_version` instead.
         If a worker explicitly failed this task, its binary id
         
        string binary_checksum = 9;
        Specified by:
        getBinaryChecksum in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        The binaryChecksum.
      • getBinaryChecksumBytes

        public com.google.protobuf.ByteString getBinaryChecksumBytes()
         DEPRECATED since 1.21 - use `worker_version` instead.
         If a worker explicitly failed this task, its binary id
         
        string binary_checksum = 9;
        Specified by:
        getBinaryChecksumBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        The bytes for binaryChecksum.
      • setBinaryChecksum

        public WorkflowTaskFailedEventAttributes.Builder setBinaryChecksum​(java.lang.String value)
         DEPRECATED since 1.21 - use `worker_version` instead.
         If a worker explicitly failed this task, its binary id
         
        string binary_checksum = 9;
        Parameters:
        value - The binaryChecksum to set.
        Returns:
        This builder for chaining.
      • clearBinaryChecksum

        public WorkflowTaskFailedEventAttributes.Builder clearBinaryChecksum()
         DEPRECATED since 1.21 - use `worker_version` instead.
         If a worker explicitly failed this task, its binary id
         
        string binary_checksum = 9;
        Returns:
        This builder for chaining.
      • setBinaryChecksumBytes

        public WorkflowTaskFailedEventAttributes.Builder setBinaryChecksumBytes​(com.google.protobuf.ByteString value)
         DEPRECATED since 1.21 - use `worker_version` instead.
         If a worker explicitly failed this task, its binary id
         
        string binary_checksum = 9;
        Parameters:
        value - The bytes for binaryChecksum to set.
        Returns:
        This builder for chaining.
      • hasWorkerVersion

        public boolean hasWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
        Specified by:
        hasWorkerVersion in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        public WorkerVersionStamp getWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
        Specified by:
        getWorkerVersion in interface WorkflowTaskFailedEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        public WorkflowTaskFailedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp value)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
      • setWorkerVersion

        public WorkflowTaskFailedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp.Builder builderForValue)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
      • mergeWorkerVersion

        public WorkflowTaskFailedEventAttributes.Builder mergeWorkerVersion​(WorkerVersionStamp value)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
      • clearWorkerVersion

        public WorkflowTaskFailedEventAttributes.Builder clearWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
      • getWorkerVersionBuilder

        public WorkerVersionStamp.Builder getWorkerVersionBuilder()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
      • getWorkerVersionOrBuilder

        public WorkerVersionStampOrBuilder getWorkerVersionOrBuilder()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
        Specified by:
        getWorkerVersionOrBuilder in interface WorkflowTaskFailedEventAttributesOrBuilder