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

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

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

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

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

        public boolean hasResult()
         Serialized results of the activity. IE: The return value of the activity function
         
        .temporal.api.common.v1.Payloads result = 1;
        Specified by:
        hasResult in interface ActivityTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the result field is set.
      • getResultBuilder

        public Payloads.Builder getResultBuilder()
         Serialized results of the activity. IE: The return value of the activity function
         
        .temporal.api.common.v1.Payloads result = 1;
      • setScheduledEventId

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

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

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

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

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

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

        @Deprecated
        public boolean hasWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskCompletedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=412
         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 = 5 [deprecated = true];
        Specified by:
        hasWorkerVersion in interface ActivityTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        @Deprecated
        public WorkerVersionStamp getWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskCompletedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=412
         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 = 5 [deprecated = true];
        Specified by:
        getWorkerVersion in interface ActivityTaskCompletedEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        @Deprecated
        public ActivityTaskCompletedEventAttributes.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 = 5 [deprecated = true];
      • setWorkerVersion

        @Deprecated
        public ActivityTaskCompletedEventAttributes.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 = 5 [deprecated = true];
      • mergeWorkerVersion

        @Deprecated
        public ActivityTaskCompletedEventAttributes.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 = 5 [deprecated = true];
      • clearWorkerVersion

        @Deprecated
        public ActivityTaskCompletedEventAttributes.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 = 5 [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 = 5 [deprecated = true];