Class CreateWorkflowRuleRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CreateWorkflowRuleRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkflowRuleRequest.Builder>
io.temporal.api.workflowservice.v1.CreateWorkflowRuleRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CreateWorkflowRuleRequestOrBuilder, Cloneable
Enclosing class:
CreateWorkflowRuleRequest

public static final class CreateWorkflowRuleRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkflowRuleRequest.Builder> implements CreateWorkflowRuleRequestOrBuilder
Protobuf type temporal.api.workflowservice.v1.CreateWorkflowRuleRequest
  • Method Details

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

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

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

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

      public CreateWorkflowRuleRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkflowRuleRequest.Builder>
    • mergeFrom

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

    • 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 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:
      IOException
    • getNamespace

      public String getNamespace()
      string namespace = 1;
      Specified by:
      getNamespace in interface CreateWorkflowRuleRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface CreateWorkflowRuleRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

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

      public CreateWorkflowRuleRequest.Builder clearNamespace()
      string namespace = 1;
      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.
    • getSpec

      public WorkflowRuleSpec getSpec()
       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
      Specified by:
      getSpec in interface CreateWorkflowRuleRequestOrBuilder
      Returns:
      The spec.
    • setSpec

       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • setSpec

       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • mergeSpec

       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • clearSpec

       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • getSpecBuilder

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

      public WorkflowRuleSpecOrBuilder getSpecOrBuilder()
       The rule specification .
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
      Specified by:
      getSpecOrBuilder in interface CreateWorkflowRuleRequestOrBuilder
    • 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 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(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 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(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.
    • getDescription

      public String getDescription()
       Rule description.Will be stored with the rule.
       
      string description = 6;
      Specified by:
      getDescription in interface CreateWorkflowRuleRequestOrBuilder
      Returns:
      The description.
    • 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(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>