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

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

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

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

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

        public ActivityTaskStartedEventAttributes.Builder setScheduledEventId​(long value)
         The id of the `ACTIVITY_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 ActivityTaskStartedEventAttributes.Builder clearScheduledEventId()
         The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
         
        int64 scheduled_event_id = 1;
        Returns:
        This builder for chaining.
      • setIdentity

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

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

        public ActivityTaskStartedEventAttributes.Builder setRequestId​(java.lang.String value)
         TODO ??
         
        string request_id = 3;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public ActivityTaskStartedEventAttributes.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         TODO ??
         
        string request_id = 3;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setAttempt

        public ActivityTaskStartedEventAttributes.Builder setAttempt​(int value)
         Starting at 1, the number of times this task has been attempted
         
        int32 attempt = 4;
        Parameters:
        value - The attempt to set.
        Returns:
        This builder for chaining.
      • hasLastFailure

        public boolean hasLastFailure()
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
        Specified by:
        hasLastFailure in interface ActivityTaskStartedEventAttributesOrBuilder
        Returns:
        Whether the lastFailure field is set.
      • getLastFailure

        public Failure getLastFailure()
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
        Specified by:
        getLastFailure in interface ActivityTaskStartedEventAttributesOrBuilder
        Returns:
        The lastFailure.
      • setLastFailure

        public ActivityTaskStartedEventAttributes.Builder setLastFailure​(Failure value)
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
      • mergeLastFailure

        public ActivityTaskStartedEventAttributes.Builder mergeLastFailure​(Failure value)
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
      • clearLastFailure

        public ActivityTaskStartedEventAttributes.Builder clearLastFailure()
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
      • getLastFailureBuilder

        public Failure.Builder getLastFailureBuilder()
         Will be set to the most recent failure details, if this task has previously failed and then
         been retried.
         
        .temporal.api.failure.v1.Failure last_failure = 5;
      • hasWorkerVersion

        @Deprecated
        public boolean hasWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=394
         Version info of the worker to whom this task was dispatched.
         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 ActivityTaskStartedEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        @Deprecated
        public WorkerVersionStamp getWorkerVersion()
        Deprecated.
        temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=394
         Version info of the worker to whom this task was dispatched.
         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 ActivityTaskStartedEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        @Deprecated
        public ActivityTaskStartedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp value)
        Deprecated.
         Version info of the worker to whom this task was dispatched.
         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 ActivityTaskStartedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp.Builder builderForValue)
        Deprecated.
         Version info of the worker to whom this task was dispatched.
         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 ActivityTaskStartedEventAttributes.Builder mergeWorkerVersion​(WorkerVersionStamp value)
        Deprecated.
         Version info of the worker to whom this task was dispatched.
         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 ActivityTaskStartedEventAttributes.Builder clearWorkerVersion()
        Deprecated.
         Version info of the worker to whom this task was dispatched.
         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 to whom this task was dispatched.
         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];
      • getBuildIdRedirectCounter

        @Deprecated
        public long getBuildIdRedirectCounter()
        Deprecated.
        temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=398
         Used by server internally to properly reapply build ID redirects to an execution
         when rebuilding it from events.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        int64 build_id_redirect_counter = 7 [deprecated = true];
        Specified by:
        getBuildIdRedirectCounter in interface ActivityTaskStartedEventAttributesOrBuilder
        Returns:
        The buildIdRedirectCounter.
      • setBuildIdRedirectCounter

        @Deprecated
        public ActivityTaskStartedEventAttributes.Builder setBuildIdRedirectCounter​(long value)
        Deprecated.
        temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=398
         Used by server internally to properly reapply build ID redirects to an execution
         when rebuilding it from events.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        int64 build_id_redirect_counter = 7 [deprecated = true];
        Parameters:
        value - The buildIdRedirectCounter to set.
        Returns:
        This builder for chaining.
      • clearBuildIdRedirectCounter

        @Deprecated
        public ActivityTaskStartedEventAttributes.Builder clearBuildIdRedirectCounter()
        Deprecated.
        temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=398
         Used by server internally to properly reapply build ID redirects to an execution
         when rebuilding it from events.
         Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
         
        int64 build_id_redirect_counter = 7 [deprecated = true];
        Returns:
        This builder for chaining.