Class PendingActivityInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PendingActivityInfoOrBuilder, java.lang.Cloneable
    Enclosing class:
    PendingActivityInfo

    public static final class PendingActivityInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
    implements PendingActivityInfoOrBuilder
    Protobuf type temporal.api.workflow.v1.PendingActivityInfo
    • 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<PendingActivityInfo.Builder>
      • clear

        public PendingActivityInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.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<PendingActivityInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public PendingActivityInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • setField

        public PendingActivityInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • clearField

        public PendingActivityInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • clearOneof

        public PendingActivityInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • setRepeatedField

        public PendingActivityInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • addRepeatedField

        public PendingActivityInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • mergeFrom

        public PendingActivityInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PendingActivityInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • mergeFrom

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

        public PendingActivityInfo.Builder setActivityId​(java.lang.String value)
        string activity_id = 1;
        Parameters:
        value - The activityId to set.
        Returns:
        This builder for chaining.
      • setActivityIdBytes

        public PendingActivityInfo.Builder setActivityIdBytes​(com.google.protobuf.ByteString value)
        string activity_id = 1;
        Parameters:
        value - The bytes for activityId to set.
        Returns:
        This builder for chaining.
      • hasActivityType

        public boolean hasActivityType()
        .temporal.api.common.v1.ActivityType activity_type = 2;
        Specified by:
        hasActivityType in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the activityType field is set.
      • getActivityTypeBuilder

        public ActivityType.Builder getActivityTypeBuilder()
        .temporal.api.common.v1.ActivityType activity_type = 2;
      • getStateValue

        public int getStateValue()
        .temporal.api.enums.v1.PendingActivityState state = 3;
        Specified by:
        getStateValue in interface PendingActivityInfoOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public PendingActivityInfo.Builder setStateValue​(int value)
        .temporal.api.enums.v1.PendingActivityState state = 3;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • clearState

        public PendingActivityInfo.Builder clearState()
        .temporal.api.enums.v1.PendingActivityState state = 3;
        Returns:
        This builder for chaining.
      • hasHeartbeatDetails

        public boolean hasHeartbeatDetails()
        .temporal.api.common.v1.Payloads heartbeat_details = 4;
        Specified by:
        hasHeartbeatDetails in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the heartbeatDetails field is set.
      • clearHeartbeatDetails

        public PendingActivityInfo.Builder clearHeartbeatDetails()
        .temporal.api.common.v1.Payloads heartbeat_details = 4;
      • getHeartbeatDetailsBuilder

        public Payloads.Builder getHeartbeatDetailsBuilder()
        .temporal.api.common.v1.Payloads heartbeat_details = 4;
      • hasLastHeartbeatTime

        public boolean hasLastHeartbeatTime()
        .google.protobuf.Timestamp last_heartbeat_time = 5;
        Specified by:
        hasLastHeartbeatTime in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the lastHeartbeatTime field is set.
      • clearLastHeartbeatTime

        public PendingActivityInfo.Builder clearLastHeartbeatTime()
        .google.protobuf.Timestamp last_heartbeat_time = 5;
      • getLastHeartbeatTimeBuilder

        public Timestamp.Builder getLastHeartbeatTimeBuilder()
        .google.protobuf.Timestamp last_heartbeat_time = 5;
      • hasLastStartedTime

        public boolean hasLastStartedTime()
        .google.protobuf.Timestamp last_started_time = 6;
        Specified by:
        hasLastStartedTime in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the lastStartedTime field is set.
      • getLastStartedTimeBuilder

        public Timestamp.Builder getLastStartedTimeBuilder()
        .google.protobuf.Timestamp last_started_time = 6;
      • setAttempt

        public PendingActivityInfo.Builder setAttempt​(int value)
        int32 attempt = 7;
        Parameters:
        value - The attempt to set.
        Returns:
        This builder for chaining.
      • setMaximumAttempts

        public PendingActivityInfo.Builder setMaximumAttempts​(int value)
        int32 maximum_attempts = 8;
        Parameters:
        value - The maximumAttempts to set.
        Returns:
        This builder for chaining.
      • clearMaximumAttempts

        public PendingActivityInfo.Builder clearMaximumAttempts()
        int32 maximum_attempts = 8;
        Returns:
        This builder for chaining.
      • hasScheduledTime

        public boolean hasScheduledTime()
        .google.protobuf.Timestamp scheduled_time = 9;
        Specified by:
        hasScheduledTime in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the scheduledTime field is set.
      • getScheduledTimeBuilder

        public Timestamp.Builder getScheduledTimeBuilder()
        .google.protobuf.Timestamp scheduled_time = 9;
      • hasExpirationTime

        public boolean hasExpirationTime()
        .google.protobuf.Timestamp expiration_time = 10;
        Specified by:
        hasExpirationTime in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the expirationTime field is set.
      • getExpirationTimeBuilder

        public Timestamp.Builder getExpirationTimeBuilder()
        .google.protobuf.Timestamp expiration_time = 10;
      • hasLastFailure

        public boolean hasLastFailure()
        .temporal.api.failure.v1.Failure last_failure = 11;
        Specified by:
        hasLastFailure in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the lastFailure field is set.
      • getLastFailureBuilder

        public Failure.Builder getLastFailureBuilder()
        .temporal.api.failure.v1.Failure last_failure = 11;
      • setLastWorkerIdentity

        public PendingActivityInfo.Builder setLastWorkerIdentity​(java.lang.String value)
        string last_worker_identity = 12;
        Parameters:
        value - The lastWorkerIdentity to set.
        Returns:
        This builder for chaining.
      • clearLastWorkerIdentity

        public PendingActivityInfo.Builder clearLastWorkerIdentity()
        string last_worker_identity = 12;
        Returns:
        This builder for chaining.
      • setLastWorkerIdentityBytes

        public PendingActivityInfo.Builder setLastWorkerIdentityBytes​(com.google.protobuf.ByteString value)
        string last_worker_identity = 12;
        Parameters:
        value - The bytes for lastWorkerIdentity to set.
        Returns:
        This builder for chaining.
      • hasUseWorkflowBuildId

        public boolean hasUseWorkflowBuildId()
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
        Specified by:
        hasUseWorkflowBuildId in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the useWorkflowBuildId field is set.
      • getUseWorkflowBuildId

        public Empty getUseWorkflowBuildId()
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
        Specified by:
        getUseWorkflowBuildId in interface PendingActivityInfoOrBuilder
        Returns:
        The useWorkflowBuildId.
      • setUseWorkflowBuildId

        public PendingActivityInfo.Builder setUseWorkflowBuildId​(Empty value)
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
      • setUseWorkflowBuildId

        public PendingActivityInfo.Builder setUseWorkflowBuildId​(Empty.Builder builderForValue)
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
      • mergeUseWorkflowBuildId

        public PendingActivityInfo.Builder mergeUseWorkflowBuildId​(Empty value)
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
      • clearUseWorkflowBuildId

        public PendingActivityInfo.Builder clearUseWorkflowBuildId()
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
      • getUseWorkflowBuildIdBuilder

        public Empty.Builder getUseWorkflowBuildIdBuilder()
         When present, it means this activity is assigned to the build ID of its workflow.
         
        .google.protobuf.Empty use_workflow_build_id = 13;
      • getLastIndependentlyAssignedBuildId

        public java.lang.String getLastIndependentlyAssignedBuildId()
         This means the activity is independently versioned and not bound to the build ID of its workflow.
         The activity will use the build id in this field instead.
         If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
         rules.
         
        string last_independently_assigned_build_id = 14;
        Specified by:
        getLastIndependentlyAssignedBuildId in interface PendingActivityInfoOrBuilder
        Returns:
        The lastIndependentlyAssignedBuildId.
      • getLastIndependentlyAssignedBuildIdBytes

        public com.google.protobuf.ByteString getLastIndependentlyAssignedBuildIdBytes()
         This means the activity is independently versioned and not bound to the build ID of its workflow.
         The activity will use the build id in this field instead.
         If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
         rules.
         
        string last_independently_assigned_build_id = 14;
        Specified by:
        getLastIndependentlyAssignedBuildIdBytes in interface PendingActivityInfoOrBuilder
        Returns:
        The bytes for lastIndependentlyAssignedBuildId.
      • setLastIndependentlyAssignedBuildId

        public PendingActivityInfo.Builder setLastIndependentlyAssignedBuildId​(java.lang.String value)
         This means the activity is independently versioned and not bound to the build ID of its workflow.
         The activity will use the build id in this field instead.
         If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
         rules.
         
        string last_independently_assigned_build_id = 14;
        Parameters:
        value - The lastIndependentlyAssignedBuildId to set.
        Returns:
        This builder for chaining.
      • clearLastIndependentlyAssignedBuildId

        public PendingActivityInfo.Builder clearLastIndependentlyAssignedBuildId()
         This means the activity is independently versioned and not bound to the build ID of its workflow.
         The activity will use the build id in this field instead.
         If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
         rules.
         
        string last_independently_assigned_build_id = 14;
        Returns:
        This builder for chaining.
      • setLastIndependentlyAssignedBuildIdBytes

        public PendingActivityInfo.Builder setLastIndependentlyAssignedBuildIdBytes​(com.google.protobuf.ByteString value)
         This means the activity is independently versioned and not bound to the build ID of its workflow.
         The activity will use the build id in this field instead.
         If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
         rules.
         
        string last_independently_assigned_build_id = 14;
        Parameters:
        value - The bytes for lastIndependentlyAssignedBuildId to set.
        Returns:
        This builder for chaining.
      • hasLastWorkerVersionStamp

        public boolean hasLastWorkerVersionStamp()
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
        Specified by:
        hasLastWorkerVersionStamp in interface PendingActivityInfoOrBuilder
        Returns:
        Whether the lastWorkerVersionStamp field is set.
      • getLastWorkerVersionStamp

        public WorkerVersionStamp getLastWorkerVersionStamp()
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
        Specified by:
        getLastWorkerVersionStamp in interface PendingActivityInfoOrBuilder
        Returns:
        The lastWorkerVersionStamp.
      • setLastWorkerVersionStamp

        public PendingActivityInfo.Builder setLastWorkerVersionStamp​(WorkerVersionStamp value)
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
      • setLastWorkerVersionStamp

        public PendingActivityInfo.Builder setLastWorkerVersionStamp​(WorkerVersionStamp.Builder builderForValue)
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
      • mergeLastWorkerVersionStamp

        public PendingActivityInfo.Builder mergeLastWorkerVersionStamp​(WorkerVersionStamp value)
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
      • clearLastWorkerVersionStamp

        public PendingActivityInfo.Builder clearLastWorkerVersionStamp()
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
      • getLastWorkerVersionStampBuilder

        public WorkerVersionStamp.Builder getLastWorkerVersionStampBuilder()
         The version stamp of the worker to whom this activity was most recently dispatched
         
        .temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15;
      • setUnknownFields

        public final PendingActivityInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>
      • mergeUnknownFields

        public final PendingActivityInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PendingActivityInfo.Builder>