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

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

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

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

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

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

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

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

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

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

        public boolean getSuggestContinueAsNew()
         True if this workflow should continue-as-new soon because its history size (in
         either event count or bytes) is getting large.
         
        bool suggest_continue_as_new = 4;
        Specified by:
        getSuggestContinueAsNew in interface WorkflowTaskStartedEventAttributesOrBuilder
        Returns:
        The suggestContinueAsNew.
      • setSuggestContinueAsNew

        public WorkflowTaskStartedEventAttributes.Builder setSuggestContinueAsNew​(boolean value)
         True if this workflow should continue-as-new soon because its history size (in
         either event count or bytes) is getting large.
         
        bool suggest_continue_as_new = 4;
        Parameters:
        value - The suggestContinueAsNew to set.
        Returns:
        This builder for chaining.
      • clearSuggestContinueAsNew

        public WorkflowTaskStartedEventAttributes.Builder clearSuggestContinueAsNew()
         True if this workflow should continue-as-new soon because its history size (in
         either event count or bytes) is getting large.
         
        bool suggest_continue_as_new = 4;
        Returns:
        This builder for chaining.
      • getHistorySizeBytes

        public long getHistorySizeBytes()
         Total history size in bytes, which the workflow might use to decide when to
         continue-as-new regardless of the suggestion. Note that history event count is
         just the event id of this event, so we don't include it explicitly here.
         
        int64 history_size_bytes = 5;
        Specified by:
        getHistorySizeBytes in interface WorkflowTaskStartedEventAttributesOrBuilder
        Returns:
        The historySizeBytes.
      • setHistorySizeBytes

        public WorkflowTaskStartedEventAttributes.Builder setHistorySizeBytes​(long value)
         Total history size in bytes, which the workflow might use to decide when to
         continue-as-new regardless of the suggestion. Note that history event count is
         just the event id of this event, so we don't include it explicitly here.
         
        int64 history_size_bytes = 5;
        Parameters:
        value - The historySizeBytes to set.
        Returns:
        This builder for chaining.
      • clearHistorySizeBytes

        public WorkflowTaskStartedEventAttributes.Builder clearHistorySizeBytes()
         Total history size in bytes, which the workflow might use to decide when to
         continue-as-new regardless of the suggestion. Note that history event count is
         just the event id of this event, so we don't include it explicitly here.
         
        int64 history_size_bytes = 5;
        Returns:
        This builder for chaining.