Class WorkflowRule.Builder

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

public static final class WorkflowRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowRule.Builder> implements WorkflowRuleOrBuilder
 WorkflowRule describes a rule that can be applied to any workflow in this namespace.
 
Protobuf type temporal.api.rules.v1.WorkflowRule
  • 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<WorkflowRule.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public WorkflowRule.Builder mergeFrom(WorkflowRule other)
    • isInitialized

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

      public WorkflowRule.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<WorkflowRule.Builder>
      Throws:
      IOException
    • hasCreateTime

      public boolean hasCreateTime()
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      hasCreateTime in interface WorkflowRuleOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      getCreateTime in interface WorkflowRuleOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public WorkflowRule.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
    • setCreateTime

      public WorkflowRule.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
    • mergeCreateTime

      public WorkflowRule.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
    • clearCreateTime

      public WorkflowRule.Builder clearCreateTime()
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Rule creation time.
       
      .google.protobuf.Timestamp create_time = 1;
      Specified by:
      getCreateTimeOrBuilder in interface WorkflowRuleOrBuilder
    • hasSpec

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

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

      public WorkflowRule.Builder setSpec(WorkflowRuleSpec value)
       Rule specification
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • setSpec

      public WorkflowRule.Builder setSpec(WorkflowRuleSpec.Builder builderForValue)
       Rule specification
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • mergeSpec

      public WorkflowRule.Builder mergeSpec(WorkflowRuleSpec value)
       Rule specification
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • clearSpec

      public WorkflowRule.Builder clearSpec()
       Rule specification
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
    • getSpecBuilder

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

      public WorkflowRuleSpecOrBuilder getSpecOrBuilder()
       Rule specification
       
      .temporal.api.rules.v1.WorkflowRuleSpec spec = 2;
      Specified by:
      getSpecOrBuilder in interface WorkflowRuleOrBuilder
    • getCreatedByIdentity

      public String getCreatedByIdentity()
       Identity of the actor that created the rule
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --)
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Same as above. All other options sounds clumsy --)
       
      string created_by_identity = 3;
      Specified by:
      getCreatedByIdentity in interface WorkflowRuleOrBuilder
      Returns:
      The createdByIdentity.
    • getCreatedByIdentityBytes

      public com.google.protobuf.ByteString getCreatedByIdentityBytes()
       Identity of the actor that created the rule
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --)
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Same as above. All other options sounds clumsy --)
       
      string created_by_identity = 3;
      Specified by:
      getCreatedByIdentityBytes in interface WorkflowRuleOrBuilder
      Returns:
      The bytes for createdByIdentity.
    • setCreatedByIdentity

      public WorkflowRule.Builder setCreatedByIdentity(String value)
       Identity of the actor that created the rule
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --)
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Same as above. All other options sounds clumsy --)
       
      string created_by_identity = 3;
      Parameters:
      value - The createdByIdentity to set.
      Returns:
      This builder for chaining.
    • clearCreatedByIdentity

      public WorkflowRule.Builder clearCreatedByIdentity()
       Identity of the actor that created the rule
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --)
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Same as above. All other options sounds clumsy --)
       
      string created_by_identity = 3;
      Returns:
      This builder for chaining.
    • setCreatedByIdentityBytes

      public WorkflowRule.Builder setCreatedByIdentityBytes(com.google.protobuf.ByteString value)
       Identity of the actor that created the rule
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --)
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Same as above. All other options sounds clumsy --)
       
      string created_by_identity = 3;
      Parameters:
      value - The bytes for createdByIdentity to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Rule description.
       
      string description = 4;
      Specified by:
      getDescription in interface WorkflowRuleOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Rule description.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface WorkflowRuleOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public WorkflowRule.Builder setDescription(String value)
       Rule description.
       
      string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public WorkflowRule.Builder clearDescription()
       Rule description.
       
      string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public WorkflowRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Rule description.
       
      string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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