Class WorkflowExecutionOptions.Builder

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

public static final class WorkflowExecutionOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionOptions.Builder> implements WorkflowExecutionOptionsOrBuilder
Protobuf type temporal.api.workflow.v1.WorkflowExecutionOptions
  • 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<WorkflowExecutionOptions.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<WorkflowExecutionOptions.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<WorkflowExecutionOptions.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public WorkflowExecutionOptions.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<WorkflowExecutionOptions.Builder>
      Throws:
      IOException
    • hasVersioningOverride

      public boolean hasVersioningOverride()
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
      Specified by:
      hasVersioningOverride in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      Whether the versioningOverride field is set.
    • getVersioningOverride

      public VersioningOverride getVersioningOverride()
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
      Specified by:
      getVersioningOverride in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      The versioningOverride.
    • setVersioningOverride

      public WorkflowExecutionOptions.Builder setVersioningOverride(VersioningOverride value)
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
    • setVersioningOverride

      public WorkflowExecutionOptions.Builder setVersioningOverride(VersioningOverride.Builder builderForValue)
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
    • mergeVersioningOverride

      public WorkflowExecutionOptions.Builder mergeVersioningOverride(VersioningOverride value)
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
    • clearVersioningOverride

      public WorkflowExecutionOptions.Builder clearVersioningOverride()
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
    • getVersioningOverrideBuilder

      public VersioningOverride.Builder getVersioningOverrideBuilder()
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
    • getVersioningOverrideOrBuilder

      public VersioningOverrideOrBuilder getVersioningOverrideOrBuilder()
       If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
       
      .temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
      Specified by:
      getVersioningOverrideOrBuilder in interface WorkflowExecutionOptionsOrBuilder
    • hasPriority

      public boolean hasPriority()
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
      Specified by:
      hasPriority in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public Priority getPriority()
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
      Specified by:
      getPriority in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      The priority.
    • setPriority

      public WorkflowExecutionOptions.Builder setPriority(Priority value)
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
    • setPriority

      public WorkflowExecutionOptions.Builder setPriority(Priority.Builder builderForValue)
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
    • mergePriority

      public WorkflowExecutionOptions.Builder mergePriority(Priority value)
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
    • clearPriority

      public WorkflowExecutionOptions.Builder clearPriority()
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
    • getPriorityBuilder

      public Priority.Builder getPriorityBuilder()
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
    • getPriorityOrBuilder

      public PriorityOrBuilder getPriorityOrBuilder()
       If set, overrides the workflow's priority sent by the SDK.
       
      .temporal.api.common.v1.Priority priority = 2;
      Specified by:
      getPriorityOrBuilder in interface WorkflowExecutionOptionsOrBuilder
    • hasTimeSkippingConfig

      public boolean hasTimeSkippingConfig()
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
      Specified by:
      hasTimeSkippingConfig in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      Whether the timeSkippingConfig field is set.
    • getTimeSkippingConfig

      public TimeSkippingConfig getTimeSkippingConfig()
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
      Specified by:
      getTimeSkippingConfig in interface WorkflowExecutionOptionsOrBuilder
      Returns:
      The timeSkippingConfig.
    • setTimeSkippingConfig

      public WorkflowExecutionOptions.Builder setTimeSkippingConfig(TimeSkippingConfig value)
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
    • setTimeSkippingConfig

      public WorkflowExecutionOptions.Builder setTimeSkippingConfig(TimeSkippingConfig.Builder builderForValue)
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
    • mergeTimeSkippingConfig

      public WorkflowExecutionOptions.Builder mergeTimeSkippingConfig(TimeSkippingConfig value)
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
    • clearTimeSkippingConfig

      public WorkflowExecutionOptions.Builder clearTimeSkippingConfig()
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
    • getTimeSkippingConfigBuilder

      public TimeSkippingConfig.Builder getTimeSkippingConfigBuilder()
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
    • getTimeSkippingConfigOrBuilder

      public TimeSkippingConfigOrBuilder getTimeSkippingConfigOrBuilder()
       The time-skipping configuration for this workflow execution.
       When `fast_forward` is set, time will be fast-forwarded to a future point relative
       to the current workflow timestamp. Each call takes effect, even if
       `fast_forward` is set to the same duration, since the target time is recalculated
       from the current timestamp on every call.
      
       This field must be updated as a whole; updating individual sub-fields is not supported.
       When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, 
       `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field.
       
      .temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 3;
      Specified by:
      getTimeSkippingConfigOrBuilder in interface WorkflowExecutionOptionsOrBuilder
    • setUnknownFields

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

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