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

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

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

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

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

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

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

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

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

        public CreateWorkflowRuleRequest.Builder setNamespace​(java.lang.String value)
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public CreateWorkflowRuleRequest.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
        string namespace = 1;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.
      • hasSpec

        public boolean hasSpec()
         The rule specification .
         
        .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
        Specified by:
        hasSpec in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        Whether the spec field is set.
      • getSpecBuilder

        public WorkflowRuleSpec.Builder getSpecBuilder()
         The rule specification .
         
        .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
      • getForceScan

        public boolean getForceScan()
         If true, the rule will be applied to the currently running workflows via batch job.
         If not set , the rule will only be applied when triggering condition is satisfied.
         visibility_query in the rule will be used to select the workflows to apply the rule to.
         
        bool force_scan = 3;
        Specified by:
        getForceScan in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The forceScan.
      • setForceScan

        public CreateWorkflowRuleRequest.Builder setForceScan​(boolean value)
         If true, the rule will be applied to the currently running workflows via batch job.
         If not set , the rule will only be applied when triggering condition is satisfied.
         visibility_query in the rule will be used to select the workflows to apply the rule to.
         
        bool force_scan = 3;
        Parameters:
        value - The forceScan to set.
        Returns:
        This builder for chaining.
      • clearForceScan

        public CreateWorkflowRuleRequest.Builder clearForceScan()
         If true, the rule will be applied to the currently running workflows via batch job.
         If not set , the rule will only be applied when triggering condition is satisfied.
         visibility_query in the rule will be used to select the workflows to apply the rule to.
         
        bool force_scan = 3;
        Returns:
        This builder for chaining.
      • getRequestId

        public java.lang.String getRequestId()
         Used to de-dupe requests. Typically should be UUID.
         
        string request_id = 4;
        Specified by:
        getRequestId in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Used to de-dupe requests. Typically should be UUID.
         
        string request_id = 4;
        Specified by:
        getRequestIdBytes in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public CreateWorkflowRuleRequest.Builder setRequestId​(java.lang.String value)
         Used to de-dupe requests. Typically should be UUID.
         
        string request_id = 4;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public CreateWorkflowRuleRequest.Builder clearRequestId()
         Used to de-dupe requests. Typically should be UUID.
         
        string request_id = 4;
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public CreateWorkflowRuleRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Used to de-dupe requests. Typically should be UUID.
         
        string request_id = 4;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • getIdentity

        public java.lang.String getIdentity()
         Identity of the actor who created the rule. Will be stored with the rule.
         
        string identity = 5;
        Specified by:
        getIdentity in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The identity.
      • getIdentityBytes

        public com.google.protobuf.ByteString getIdentityBytes()
         Identity of the actor who created the rule. Will be stored with the rule.
         
        string identity = 5;
        Specified by:
        getIdentityBytes in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The bytes for identity.
      • setIdentity

        public CreateWorkflowRuleRequest.Builder setIdentity​(java.lang.String value)
         Identity of the actor who created the rule. Will be stored with the rule.
         
        string identity = 5;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • clearIdentity

        public CreateWorkflowRuleRequest.Builder clearIdentity()
         Identity of the actor who created the rule. Will be stored with the rule.
         
        string identity = 5;
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public CreateWorkflowRuleRequest.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         Identity of the actor who created the rule. Will be stored with the rule.
         
        string identity = 5;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Rule description.Will be stored with the rule.
         
        string description = 6;
        Specified by:
        getDescriptionBytes in interface CreateWorkflowRuleRequestOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public CreateWorkflowRuleRequest.Builder setDescription​(java.lang.String value)
         Rule description.Will be stored with the rule.
         
        string description = 6;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public CreateWorkflowRuleRequest.Builder clearDescription()
         Rule description.Will be stored with the rule.
         
        string description = 6;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public CreateWorkflowRuleRequest.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Rule description.Will be stored with the rule.
         
        string description = 6;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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