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

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

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

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

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

        public Failure.Builder getFailureBuilder()
         Failure details
         
        .temporal.api.failure.v1.Failure failure = 1;
      • setScheduledEventId

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

        public ActivityTaskFailedEventAttributes.Builder clearScheduledEventId()
         The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
         
        int64 scheduled_event_id = 2;
        Returns:
        This builder for chaining.
      • setStartedEventId

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

        public ActivityTaskFailedEventAttributes.Builder clearStartedEventId()
         The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to
         
        int64 started_event_id = 3;
        Returns:
        This builder for chaining.
      • setIdentity

        public ActivityTaskFailedEventAttributes.Builder setIdentity​(java.lang.String value)
         id of the worker that failed this task
         
        string identity = 4;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public ActivityTaskFailedEventAttributes.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         id of the worker that failed this task
         
        string identity = 4;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • setRetryStateValue

        public ActivityTaskFailedEventAttributes.Builder setRetryStateValue​(int value)
        .temporal.api.enums.v1.RetryState retry_state = 5;
        Parameters:
        value - The enum numeric value on the wire for retryState to set.
        Returns:
        This builder for chaining.
      • hasWorkerVersion

        @Deprecated
        public boolean hasWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskFailedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=427
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
        Specified by:
        hasWorkerVersion in interface ActivityTaskFailedEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        @Deprecated
        public WorkerVersionStamp getWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskFailedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=427
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
        Specified by:
        getWorkerVersion in interface ActivityTaskFailedEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        @Deprecated
        public ActivityTaskFailedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp value)
        Deprecated.
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      • setWorkerVersion

        @Deprecated
        public ActivityTaskFailedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp.Builder builderForValue)
        Deprecated.
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      • mergeWorkerVersion

        @Deprecated
        public ActivityTaskFailedEventAttributes.Builder mergeWorkerVersion​(WorkerVersionStamp value)
        Deprecated.
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      • clearWorkerVersion

        @Deprecated
        public ActivityTaskFailedEventAttributes.Builder clearWorkerVersion()
        Deprecated.
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      • getWorkerVersionBuilder

        @Deprecated
        public WorkerVersionStamp.Builder getWorkerVersionBuilder()
        Deprecated.
         Version info of the worker who processed this workflow task.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];