Class WorkflowRuleSpec.Builder

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

public static final class WorkflowRuleSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder> implements WorkflowRuleSpecOrBuilder
Protobuf type temporal.api.rules.v1.WorkflowRuleSpec
  • 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<WorkflowRuleSpec.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public WorkflowRuleSpec.Builder mergeFrom(WorkflowRuleSpec other)
    • isInitialized

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

      public WorkflowRuleSpec.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<WorkflowRuleSpec.Builder>
      Throws:
      IOException
    • getTriggerCase

      public WorkflowRuleSpec.TriggerCase getTriggerCase()
      Specified by:
      getTriggerCase in interface WorkflowRuleSpecOrBuilder
    • clearTrigger

      public WorkflowRuleSpec.Builder clearTrigger()
    • getId

      public String getId()
       The id of the new workflow rule. Must be unique within the namespace.
       Can be set by the user, and can have business meaning.
       
      string id = 1;
      Specified by:
      getId in interface WorkflowRuleSpecOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The id of the new workflow rule. Must be unique within the namespace.
       Can be set by the user, and can have business meaning.
       
      string id = 1;
      Specified by:
      getIdBytes in interface WorkflowRuleSpecOrBuilder
      Returns:
      The bytes for id.
    • setId

      public WorkflowRuleSpec.Builder setId(String value)
       The id of the new workflow rule. Must be unique within the namespace.
       Can be set by the user, and can have business meaning.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public WorkflowRuleSpec.Builder clearId()
       The id of the new workflow rule. Must be unique within the namespace.
       Can be set by the user, and can have business meaning.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public WorkflowRuleSpec.Builder setIdBytes(com.google.protobuf.ByteString value)
       The id of the new workflow rule. Must be unique within the namespace.
       Can be set by the user, and can have business meaning.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasActivityStart

      public boolean hasActivityStart()
      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
      Specified by:
      hasActivityStart in interface WorkflowRuleSpecOrBuilder
      Returns:
      Whether the activityStart field is set.
    • getActivityStart

      public WorkflowRuleSpec.ActivityStartingTrigger getActivityStart()
      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
      Specified by:
      getActivityStart in interface WorkflowRuleSpecOrBuilder
      Returns:
      The activityStart.
    • setActivityStart

      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
    • setActivityStart

      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
    • mergeActivityStart

      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
    • clearActivityStart

      public WorkflowRuleSpec.Builder clearActivityStart()
      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
    • getActivityStartBuilder

      public WorkflowRuleSpec.ActivityStartingTrigger.Builder getActivityStartBuilder()
      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
    • getActivityStartOrBuilder

      public WorkflowRuleSpec.ActivityStartingTriggerOrBuilder getActivityStartOrBuilder()
      .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;
      Specified by:
      getActivityStartOrBuilder in interface WorkflowRuleSpecOrBuilder
    • getVisibilityQuery

      public String getVisibilityQuery()
       Restricted Visibility query.
       This query is used to filter workflows in this namespace to which this rule should apply.
       It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated.
       The following workflow attributes are supported:
       - WorkflowType
       - WorkflowId
       - StartTime
       - ExecutionStatus
       
      string visibility_query = 3;
      Specified by:
      getVisibilityQuery in interface WorkflowRuleSpecOrBuilder
      Returns:
      The visibilityQuery.
    • getVisibilityQueryBytes

      public com.google.protobuf.ByteString getVisibilityQueryBytes()
       Restricted Visibility query.
       This query is used to filter workflows in this namespace to which this rule should apply.
       It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated.
       The following workflow attributes are supported:
       - WorkflowType
       - WorkflowId
       - StartTime
       - ExecutionStatus
       
      string visibility_query = 3;
      Specified by:
      getVisibilityQueryBytes in interface WorkflowRuleSpecOrBuilder
      Returns:
      The bytes for visibilityQuery.
    • setVisibilityQuery

      public WorkflowRuleSpec.Builder setVisibilityQuery(String value)
       Restricted Visibility query.
       This query is used to filter workflows in this namespace to which this rule should apply.
       It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated.
       The following workflow attributes are supported:
       - WorkflowType
       - WorkflowId
       - StartTime
       - ExecutionStatus
       
      string visibility_query = 3;
      Parameters:
      value - The visibilityQuery to set.
      Returns:
      This builder for chaining.
    • clearVisibilityQuery

      public WorkflowRuleSpec.Builder clearVisibilityQuery()
       Restricted Visibility query.
       This query is used to filter workflows in this namespace to which this rule should apply.
       It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated.
       The following workflow attributes are supported:
       - WorkflowType
       - WorkflowId
       - StartTime
       - ExecutionStatus
       
      string visibility_query = 3;
      Returns:
      This builder for chaining.
    • setVisibilityQueryBytes

      public WorkflowRuleSpec.Builder setVisibilityQueryBytes(com.google.protobuf.ByteString value)
       Restricted Visibility query.
       This query is used to filter workflows in this namespace to which this rule should apply.
       It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated.
       The following workflow attributes are supported:
       - WorkflowType
       - WorkflowId
       - StartTime
       - ExecutionStatus
       
      string visibility_query = 3;
      Parameters:
      value - The bytes for visibilityQuery to set.
      Returns:
      This builder for chaining.
    • getActionsList

      public List<WorkflowRuleAction> getActionsList()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
      Specified by:
      getActionsList in interface WorkflowRuleSpecOrBuilder
    • getActionsCount

      public int getActionsCount()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
      Specified by:
      getActionsCount in interface WorkflowRuleSpecOrBuilder
    • getActions

      public WorkflowRuleAction getActions(int index)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
      Specified by:
      getActions in interface WorkflowRuleSpecOrBuilder
    • setActions

      public WorkflowRuleSpec.Builder setActions(int index, WorkflowRuleAction value)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • setActions

      public WorkflowRuleSpec.Builder setActions(int index, WorkflowRuleAction.Builder builderForValue)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addActions

      public WorkflowRuleSpec.Builder addActions(WorkflowRuleAction value)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addActions

      public WorkflowRuleSpec.Builder addActions(int index, WorkflowRuleAction value)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addActions

      public WorkflowRuleSpec.Builder addActions(WorkflowRuleAction.Builder builderForValue)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addActions

      public WorkflowRuleSpec.Builder addActions(int index, WorkflowRuleAction.Builder builderForValue)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addAllActions

      public WorkflowRuleSpec.Builder addAllActions(Iterable<? extends WorkflowRuleAction> values)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • clearActions

      public WorkflowRuleSpec.Builder clearActions()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • removeActions

      public WorkflowRuleSpec.Builder removeActions(int index)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • getActionsBuilder

      public WorkflowRuleAction.Builder getActionsBuilder(int index)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • getActionsOrBuilder

      public WorkflowRuleActionOrBuilder getActionsOrBuilder(int index)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
      Specified by:
      getActionsOrBuilder in interface WorkflowRuleSpecOrBuilder
    • getActionsOrBuilderList

      public List<? extends WorkflowRuleActionOrBuilder> getActionsOrBuilderList()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
      Specified by:
      getActionsOrBuilderList in interface WorkflowRuleSpecOrBuilder
    • addActionsBuilder

      public WorkflowRuleAction.Builder addActionsBuilder()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • addActionsBuilder

      public WorkflowRuleAction.Builder addActionsBuilder(int index)
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • getActionsBuilderList

      public List<WorkflowRuleAction.Builder> getActionsBuilderList()
       WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
       
      repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;
    • hasExpirationTime

      public boolean hasExpirationTime()
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
      Specified by:
      hasExpirationTime in interface WorkflowRuleSpecOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public com.google.protobuf.Timestamp getExpirationTime()
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
      Specified by:
      getExpirationTime in interface WorkflowRuleSpecOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public WorkflowRuleSpec.Builder setExpirationTime(com.google.protobuf.Timestamp value)
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
    • setExpirationTime

      public WorkflowRuleSpec.Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
    • mergeExpirationTime

      public WorkflowRuleSpec.Builder mergeExpirationTime(com.google.protobuf.Timestamp value)
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
    • clearExpirationTime

      public WorkflowRuleSpec.Builder clearExpirationTime()
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
    • getExpirationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder()
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
    • getExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
       Expiration time of the rule. After this time, the rule will be deleted.
       Can be empty if the rule should never expire.
       
      .google.protobuf.Timestamp expiration_time = 5;
      Specified by:
      getExpirationTimeOrBuilder in interface WorkflowRuleSpecOrBuilder
    • setUnknownFields

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

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