Class ActivityExecutionListInfo.Builder

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

    public static final class ActivityExecutionListInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityExecutionListInfo.Builder>
    implements ActivityExecutionListInfoOrBuilder
     Limited activity information returned in the list response.
     When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it
     may already be present in ActivityExecutionInfo but not at the top-level).
     
    Protobuf type temporal.api.activity.v1.ActivityExecutionListInfo
    • 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<ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>
      • setRepeatedField

        public ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>
      • addRepeatedField

        public ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>
      • isInitialized

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

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

        public java.lang.String getActivityId()
         A unique identifier of this activity within its namespace along with run ID (below).
         
        string activity_id = 1;
        Specified by:
        getActivityId in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The activityId.
      • getActivityIdBytes

        public com.google.protobuf.ByteString getActivityIdBytes()
         A unique identifier of this activity within its namespace along with run ID (below).
         
        string activity_id = 1;
        Specified by:
        getActivityIdBytes in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The bytes for activityId.
      • setActivityId

        public ActivityExecutionListInfo.Builder setActivityId​(java.lang.String value)
         A unique identifier of this activity within its namespace along with run ID (below).
         
        string activity_id = 1;
        Parameters:
        value - The activityId to set.
        Returns:
        This builder for chaining.
      • clearActivityId

        public ActivityExecutionListInfo.Builder clearActivityId()
         A unique identifier of this activity within its namespace along with run ID (below).
         
        string activity_id = 1;
        Returns:
        This builder for chaining.
      • setActivityIdBytes

        public ActivityExecutionListInfo.Builder setActivityIdBytes​(com.google.protobuf.ByteString value)
         A unique identifier of this activity within its namespace along with run ID (below).
         
        string activity_id = 1;
        Parameters:
        value - The bytes for activityId to set.
        Returns:
        This builder for chaining.
      • getRunIdBytes

        public com.google.protobuf.ByteString getRunIdBytes()
         The run ID of the standalone activity.
         
        string run_id = 2;
        Specified by:
        getRunIdBytes in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The bytes for runId.
      • setRunId

        public ActivityExecutionListInfo.Builder setRunId​(java.lang.String value)
         The run ID of the standalone activity.
         
        string run_id = 2;
        Parameters:
        value - The runId to set.
        Returns:
        This builder for chaining.
      • setRunIdBytes

        public ActivityExecutionListInfo.Builder setRunIdBytes​(com.google.protobuf.ByteString value)
         The run ID of the standalone activity.
         
        string run_id = 2;
        Parameters:
        value - The bytes for runId to set.
        Returns:
        This builder for chaining.
      • hasActivityType

        public boolean hasActivityType()
         The type of the activity, a string that maps to a registered activity on a worker.
         
        .temporal.api.common.v1.ActivityType activity_type = 3;
        Specified by:
        hasActivityType in interface ActivityExecutionListInfoOrBuilder
        Returns:
        Whether the activityType field is set.
      • setActivityType

        public ActivityExecutionListInfo.Builder setActivityType​(ActivityType value)
         The type of the activity, a string that maps to a registered activity on a worker.
         
        .temporal.api.common.v1.ActivityType activity_type = 3;
      • mergeActivityType

        public ActivityExecutionListInfo.Builder mergeActivityType​(ActivityType value)
         The type of the activity, a string that maps to a registered activity on a worker.
         
        .temporal.api.common.v1.ActivityType activity_type = 3;
      • clearActivityType

        public ActivityExecutionListInfo.Builder clearActivityType()
         The type of the activity, a string that maps to a registered activity on a worker.
         
        .temporal.api.common.v1.ActivityType activity_type = 3;
      • getActivityTypeBuilder

        public ActivityType.Builder getActivityTypeBuilder()
         The type of the activity, a string that maps to a registered activity on a worker.
         
        .temporal.api.common.v1.ActivityType activity_type = 3;
      • hasScheduleTime

        public boolean hasScheduleTime()
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
        Specified by:
        hasScheduleTime in interface ActivityExecutionListInfoOrBuilder
        Returns:
        Whether the scheduleTime field is set.
      • getScheduleTime

        public com.google.protobuf.Timestamp getScheduleTime()
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
        Specified by:
        getScheduleTime in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The scheduleTime.
      • setScheduleTime

        public ActivityExecutionListInfo.Builder setScheduleTime​(com.google.protobuf.Timestamp value)
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
      • setScheduleTime

        public ActivityExecutionListInfo.Builder setScheduleTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
      • mergeScheduleTime

        public ActivityExecutionListInfo.Builder mergeScheduleTime​(com.google.protobuf.Timestamp value)
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
      • clearScheduleTime

        public ActivityExecutionListInfo.Builder clearScheduleTime()
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
      • getScheduleTimeBuilder

        public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder()
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
      • getScheduleTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder()
         Time the activity was originally scheduled via a StartActivityExecution request.
         
        .google.protobuf.Timestamp schedule_time = 4;
        Specified by:
        getScheduleTimeOrBuilder in interface ActivityExecutionListInfoOrBuilder
      • hasCloseTime

        public boolean hasCloseTime()
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
        Specified by:
        hasCloseTime in interface ActivityExecutionListInfoOrBuilder
        Returns:
        Whether the closeTime field is set.
      • getCloseTime

        public com.google.protobuf.Timestamp getCloseTime()
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
        Specified by:
        getCloseTime in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The closeTime.
      • setCloseTime

        public ActivityExecutionListInfo.Builder setCloseTime​(com.google.protobuf.Timestamp value)
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
      • setCloseTime

        public ActivityExecutionListInfo.Builder setCloseTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
      • mergeCloseTime

        public ActivityExecutionListInfo.Builder mergeCloseTime​(com.google.protobuf.Timestamp value)
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
      • clearCloseTime

        public ActivityExecutionListInfo.Builder clearCloseTime()
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
      • getCloseTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder()
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
      • getCloseTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder()
         If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
         
        .google.protobuf.Timestamp close_time = 5;
        Specified by:
        getCloseTimeOrBuilder in interface ActivityExecutionListInfoOrBuilder
      • getStatusValue

        public int getStatusValue()
         Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
         available in the list response.
         
        .temporal.api.enums.v1.ActivityExecutionStatus status = 6;
        Specified by:
        getStatusValue in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public ActivityExecutionListInfo.Builder setStatusValue​(int value)
         Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
         available in the list response.
         
        .temporal.api.enums.v1.ActivityExecutionStatus status = 6;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • getStatus

        public ActivityExecutionStatus getStatus()
         Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
         available in the list response.
         
        .temporal.api.enums.v1.ActivityExecutionStatus status = 6;
        Specified by:
        getStatus in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The status.
      • setStatus

        public ActivityExecutionListInfo.Builder setStatus​(ActivityExecutionStatus value)
         Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
         available in the list response.
         
        .temporal.api.enums.v1.ActivityExecutionStatus status = 6;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public ActivityExecutionListInfo.Builder clearStatus()
         Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
         available in the list response.
         
        .temporal.api.enums.v1.ActivityExecutionStatus status = 6;
        Returns:
        This builder for chaining.
      • hasSearchAttributes

        public boolean hasSearchAttributes()
         Search attributes from the start request.
         
        .temporal.api.common.v1.SearchAttributes search_attributes = 7;
        Specified by:
        hasSearchAttributes in interface ActivityExecutionListInfoOrBuilder
        Returns:
        Whether the searchAttributes field is set.
      • clearSearchAttributes

        public ActivityExecutionListInfo.Builder clearSearchAttributes()
         Search attributes from the start request.
         
        .temporal.api.common.v1.SearchAttributes search_attributes = 7;
      • getSearchAttributesBuilder

        public SearchAttributes.Builder getSearchAttributesBuilder()
         Search attributes from the start request.
         
        .temporal.api.common.v1.SearchAttributes search_attributes = 7;
      • getTaskQueue

        public java.lang.String getTaskQueue()
         The task queue this activity was scheduled on when it was originally started, updated on activity options update.
         
        string task_queue = 8;
        Specified by:
        getTaskQueue in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The taskQueue.
      • getTaskQueueBytes

        public com.google.protobuf.ByteString getTaskQueueBytes()
         The task queue this activity was scheduled on when it was originally started, updated on activity options update.
         
        string task_queue = 8;
        Specified by:
        getTaskQueueBytes in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The bytes for taskQueue.
      • setTaskQueue

        public ActivityExecutionListInfo.Builder setTaskQueue​(java.lang.String value)
         The task queue this activity was scheduled on when it was originally started, updated on activity options update.
         
        string task_queue = 8;
        Parameters:
        value - The taskQueue to set.
        Returns:
        This builder for chaining.
      • clearTaskQueue

        public ActivityExecutionListInfo.Builder clearTaskQueue()
         The task queue this activity was scheduled on when it was originally started, updated on activity options update.
         
        string task_queue = 8;
        Returns:
        This builder for chaining.
      • setTaskQueueBytes

        public ActivityExecutionListInfo.Builder setTaskQueueBytes​(com.google.protobuf.ByteString value)
         The task queue this activity was scheduled on when it was originally started, updated on activity options update.
         
        string task_queue = 8;
        Parameters:
        value - The bytes for taskQueue to set.
        Returns:
        This builder for chaining.
      • setStateTransitionCount

        public ActivityExecutionListInfo.Builder setStateTransitionCount​(long value)
         Updated on terminal status.
         
        int64 state_transition_count = 9;
        Parameters:
        value - The stateTransitionCount to set.
        Returns:
        This builder for chaining.
      • clearStateTransitionCount

        public ActivityExecutionListInfo.Builder clearStateTransitionCount()
         Updated on terminal status.
         
        int64 state_transition_count = 9;
        Returns:
        This builder for chaining.
      • setStateSizeBytes

        public ActivityExecutionListInfo.Builder setStateSizeBytes​(long value)
         Updated once on scheduled and once on terminal status.
         
        int64 state_size_bytes = 10;
        Parameters:
        value - The stateSizeBytes to set.
        Returns:
        This builder for chaining.
      • clearStateSizeBytes

        public ActivityExecutionListInfo.Builder clearStateSizeBytes()
         Updated once on scheduled and once on terminal status.
         
        int64 state_size_bytes = 10;
        Returns:
        This builder for chaining.
      • hasExecutionDuration

        public boolean hasExecutionDuration()
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
        Specified by:
        hasExecutionDuration in interface ActivityExecutionListInfoOrBuilder
        Returns:
        Whether the executionDuration field is set.
      • getExecutionDuration

        public com.google.protobuf.Duration getExecutionDuration()
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
        Specified by:
        getExecutionDuration in interface ActivityExecutionListInfoOrBuilder
        Returns:
        The executionDuration.
      • setExecutionDuration

        public ActivityExecutionListInfo.Builder setExecutionDuration​(com.google.protobuf.Duration value)
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
      • setExecutionDuration

        public ActivityExecutionListInfo.Builder setExecutionDuration​(com.google.protobuf.Duration.Builder builderForValue)
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
      • mergeExecutionDuration

        public ActivityExecutionListInfo.Builder mergeExecutionDuration​(com.google.protobuf.Duration value)
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
      • clearExecutionDuration

        public ActivityExecutionListInfo.Builder clearExecutionDuration()
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
      • getExecutionDurationBuilder

        public com.google.protobuf.Duration.Builder getExecutionDurationBuilder()
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
      • getExecutionDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getExecutionDurationOrBuilder()
         The difference between close time and scheduled time.
         This field is only populated if the activity is closed.
         
        .google.protobuf.Duration execution_duration = 11;
        Specified by:
        getExecutionDurationOrBuilder in interface ActivityExecutionListInfoOrBuilder
      • setUnknownFields

        public final ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>
      • mergeUnknownFields

        public final ActivityExecutionListInfo.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<ActivityExecutionListInfo.Builder>