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

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

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

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

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

        public boolean hasDetails()
         Additional information that the activity reported upon confirming cancellation
         
        .temporal.api.common.v1.Payloads details = 1;
        Specified by:
        hasDetails in interface ActivityTaskCanceledEventAttributesOrBuilder
        Returns:
        Whether the details field is set.
      • getDetailsBuilder

        public Payloads.Builder getDetailsBuilder()
         Additional information that the activity reported upon confirming cancellation
         
        .temporal.api.common.v1.Payloads details = 1;
      • setLatestCancelRequestedEventId

        public ActivityTaskCanceledEventAttributes.Builder setLatestCancelRequestedEventId​(long value)
         id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
         activity
         
        int64 latest_cancel_requested_event_id = 2;
        Parameters:
        value - The latestCancelRequestedEventId to set.
        Returns:
        This builder for chaining.
      • clearLatestCancelRequestedEventId

        public ActivityTaskCanceledEventAttributes.Builder clearLatestCancelRequestedEventId()
         id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
         activity
         
        int64 latest_cancel_requested_event_id = 2;
        Returns:
        This builder for chaining.
      • setScheduledEventId

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

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

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

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

        public ActivityTaskCanceledEventAttributes.Builder setIdentity​(java.lang.String value)
         id of the worker who canceled this activity
         
        string identity = 5;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public ActivityTaskCanceledEventAttributes.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         id of the worker who canceled this activity
         
        string identity = 5;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • hasWorkerVersion

        @Deprecated
        public boolean hasWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskCanceledEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=462
         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 ActivityTaskCanceledEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        @Deprecated
        public WorkerVersionStamp getWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskCanceledEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=462
         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 ActivityTaskCanceledEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        @Deprecated
        public ActivityTaskCanceledEventAttributes.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 ActivityTaskCanceledEventAttributes.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 ActivityTaskCanceledEventAttributes.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 ActivityTaskCanceledEventAttributes.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];