Class OnConflictOptions.Builder

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

    public static final class OnConflictOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OnConflictOptions.Builder>
    implements OnConflictOptionsOrBuilder
     When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
     there is already an existing running workflow, OnConflictOptions defines actions to be taken on
     the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
     history event in the running workflow with the changes requested in this object.
     
    Protobuf type temporal.api.workflow.v1.OnConflictOptions
    • 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<OnConflictOptions.Builder>
      • clear

        public OnConflictOptions.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<OnConflictOptions.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<OnConflictOptions.Builder>
      • getDefaultInstanceForType

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

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

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

        public OnConflictOptions.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<OnConflictOptions.Builder>
      • setField

        public OnConflictOptions.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<OnConflictOptions.Builder>
      • clearField

        public OnConflictOptions.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<OnConflictOptions.Builder>
      • clearOneof

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

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

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

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

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

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

        public boolean getAttachRequestId()
         Attaches the request ID to the running workflow.
         
        bool attach_request_id = 1;
        Specified by:
        getAttachRequestId in interface OnConflictOptionsOrBuilder
        Returns:
        The attachRequestId.
      • setAttachRequestId

        public OnConflictOptions.Builder setAttachRequestId​(boolean value)
         Attaches the request ID to the running workflow.
         
        bool attach_request_id = 1;
        Parameters:
        value - The attachRequestId to set.
        Returns:
        This builder for chaining.
      • clearAttachRequestId

        public OnConflictOptions.Builder clearAttachRequestId()
         Attaches the request ID to the running workflow.
         
        bool attach_request_id = 1;
        Returns:
        This builder for chaining.
      • getAttachCompletionCallbacks

        public boolean getAttachCompletionCallbacks()
         Attaches the completion callbacks to the running workflow.
         
        bool attach_completion_callbacks = 2;
        Specified by:
        getAttachCompletionCallbacks in interface OnConflictOptionsOrBuilder
        Returns:
        The attachCompletionCallbacks.
      • setAttachCompletionCallbacks

        public OnConflictOptions.Builder setAttachCompletionCallbacks​(boolean value)
         Attaches the completion callbacks to the running workflow.
         
        bool attach_completion_callbacks = 2;
        Parameters:
        value - The attachCompletionCallbacks to set.
        Returns:
        This builder for chaining.
      • clearAttachCompletionCallbacks

        public OnConflictOptions.Builder clearAttachCompletionCallbacks()
         Attaches the completion callbacks to the running workflow.
         
        bool attach_completion_callbacks = 2;
        Returns:
        This builder for chaining.
      • getAttachLinks

        public boolean getAttachLinks()
         Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
         
        bool attach_links = 3;
        Specified by:
        getAttachLinks in interface OnConflictOptionsOrBuilder
        Returns:
        The attachLinks.
      • setAttachLinks

        public OnConflictOptions.Builder setAttachLinks​(boolean value)
         Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
         
        bool attach_links = 3;
        Parameters:
        value - The attachLinks to set.
        Returns:
        This builder for chaining.
      • clearAttachLinks

        public OnConflictOptions.Builder clearAttachLinks()
         Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
         
        bool attach_links = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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