Class BatchOperationReset.Builder

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

public static final class BatchOperationReset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationReset.Builder> implements BatchOperationResetOrBuilder
 BatchOperationReset sends reset requests to batch workflows.
 Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
 
Protobuf type temporal.api.batch.v1.BatchOperationReset
  • 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<BatchOperationReset.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<BatchOperationReset.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<BatchOperationReset.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public BatchOperationReset.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<BatchOperationReset.Builder>
      Throws:
      IOException
    • getIdentity

      public String getIdentity()
       The identity of the worker/client.
       
      string identity = 3;
      Specified by:
      getIdentity in interface BatchOperationResetOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       The identity of the worker/client.
       
      string identity = 3;
      Specified by:
      getIdentityBytes in interface BatchOperationResetOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

      public BatchOperationReset.Builder setIdentity(String value)
       The identity of the worker/client.
       
      string identity = 3;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public BatchOperationReset.Builder clearIdentity()
       The identity of the worker/client.
       
      string identity = 3;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public BatchOperationReset.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       The identity of the worker/client.
       
      string identity = 3;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • hasOptions

      public boolean hasOptions()
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
      Specified by:
      hasOptions in interface BatchOperationResetOrBuilder
      Returns:
      Whether the options field is set.
    • getOptions

      public ResetOptions getOptions()
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
      Specified by:
      getOptions in interface BatchOperationResetOrBuilder
      Returns:
      The options.
    • setOptions

      public BatchOperationReset.Builder setOptions(ResetOptions value)
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
    • setOptions

      public BatchOperationReset.Builder setOptions(ResetOptions.Builder builderForValue)
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
    • mergeOptions

      public BatchOperationReset.Builder mergeOptions(ResetOptions value)
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
    • clearOptions

      public BatchOperationReset.Builder clearOptions()
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
    • getOptionsBuilder

      public ResetOptions.Builder getOptionsBuilder()
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
    • getOptionsOrBuilder

      public ResetOptionsOrBuilder getOptionsOrBuilder()
       Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.
       
      .temporal.api.common.v1.ResetOptions options = 4;
      Specified by:
      getOptionsOrBuilder in interface BatchOperationResetOrBuilder
    • getResetTypeValue

      @Deprecated public int getResetTypeValue()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_type is deprecated. See temporal/api/batch/v1/message.proto;l=108
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetType reset_type = 1 [deprecated = true];
      Specified by:
      getResetTypeValue in interface BatchOperationResetOrBuilder
      Returns:
      The enum numeric value on the wire for resetType.
    • setResetTypeValue

      @Deprecated public BatchOperationReset.Builder setResetTypeValue(int value)
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_type is deprecated. See temporal/api/batch/v1/message.proto;l=108
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetType reset_type = 1 [deprecated = true];
      Parameters:
      value - The enum numeric value on the wire for resetType to set.
      Returns:
      This builder for chaining.
    • getResetType

      @Deprecated public ResetType getResetType()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_type is deprecated. See temporal/api/batch/v1/message.proto;l=108
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetType reset_type = 1 [deprecated = true];
      Specified by:
      getResetType in interface BatchOperationResetOrBuilder
      Returns:
      The resetType.
    • setResetType

      @Deprecated public BatchOperationReset.Builder setResetType(ResetType value)
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_type is deprecated. See temporal/api/batch/v1/message.proto;l=108
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetType reset_type = 1 [deprecated = true];
      Parameters:
      value - The resetType to set.
      Returns:
      This builder for chaining.
    • clearResetType

      @Deprecated public BatchOperationReset.Builder clearResetType()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_type is deprecated. See temporal/api/batch/v1/message.proto;l=108
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetType reset_type = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • getResetReapplyTypeValue

      @Deprecated public int getResetReapplyTypeValue()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_reapply_type is deprecated. See temporal/api/batch/v1/message.proto;l=110
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2 [deprecated = true];
      Specified by:
      getResetReapplyTypeValue in interface BatchOperationResetOrBuilder
      Returns:
      The enum numeric value on the wire for resetReapplyType.
    • setResetReapplyTypeValue

      @Deprecated public BatchOperationReset.Builder setResetReapplyTypeValue(int value)
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_reapply_type is deprecated. See temporal/api/batch/v1/message.proto;l=110
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2 [deprecated = true];
      Parameters:
      value - The enum numeric value on the wire for resetReapplyType to set.
      Returns:
      This builder for chaining.
    • getResetReapplyType

      @Deprecated public ResetReapplyType getResetReapplyType()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_reapply_type is deprecated. See temporal/api/batch/v1/message.proto;l=110
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2 [deprecated = true];
      Specified by:
      getResetReapplyType in interface BatchOperationResetOrBuilder
      Returns:
      The resetReapplyType.
    • setResetReapplyType

      @Deprecated public BatchOperationReset.Builder setResetReapplyType(ResetReapplyType value)
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_reapply_type is deprecated. See temporal/api/batch/v1/message.proto;l=110
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2 [deprecated = true];
      Parameters:
      value - The resetReapplyType to set.
      Returns:
      This builder for chaining.
    • clearResetReapplyType

      @Deprecated public BatchOperationReset.Builder clearResetReapplyType()
      Deprecated.
      temporal.api.batch.v1.BatchOperationReset.reset_reapply_type is deprecated. See temporal/api/batch/v1/message.proto;l=110
       Deprecated. Use `options`.
       
      .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • getPostResetOperationsList

      public List<PostResetOperation> getPostResetOperationsList()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
      Specified by:
      getPostResetOperationsList in interface BatchOperationResetOrBuilder
    • getPostResetOperationsCount

      public int getPostResetOperationsCount()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
      Specified by:
      getPostResetOperationsCount in interface BatchOperationResetOrBuilder
    • getPostResetOperations

      public PostResetOperation getPostResetOperations(int index)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
      Specified by:
      getPostResetOperations in interface BatchOperationResetOrBuilder
    • setPostResetOperations

      public BatchOperationReset.Builder setPostResetOperations(int index, PostResetOperation value)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • setPostResetOperations

      public BatchOperationReset.Builder setPostResetOperations(int index, PostResetOperation.Builder builderForValue)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addPostResetOperations

      public BatchOperationReset.Builder addPostResetOperations(PostResetOperation value)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addPostResetOperations

      public BatchOperationReset.Builder addPostResetOperations(int index, PostResetOperation value)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addPostResetOperations

      public BatchOperationReset.Builder addPostResetOperations(PostResetOperation.Builder builderForValue)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addPostResetOperations

      public BatchOperationReset.Builder addPostResetOperations(int index, PostResetOperation.Builder builderForValue)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addAllPostResetOperations

      public BatchOperationReset.Builder addAllPostResetOperations(Iterable<? extends PostResetOperation> values)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • clearPostResetOperations

      public BatchOperationReset.Builder clearPostResetOperations()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • removePostResetOperations

      public BatchOperationReset.Builder removePostResetOperations(int index)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • getPostResetOperationsBuilder

      public PostResetOperation.Builder getPostResetOperationsBuilder(int index)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • getPostResetOperationsOrBuilder

      public PostResetOperationOrBuilder getPostResetOperationsOrBuilder(int index)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
      Specified by:
      getPostResetOperationsOrBuilder in interface BatchOperationResetOrBuilder
    • getPostResetOperationsOrBuilderList

      public List<? extends PostResetOperationOrBuilder> getPostResetOperationsOrBuilderList()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
      Specified by:
      getPostResetOperationsOrBuilderList in interface BatchOperationResetOrBuilder
    • addPostResetOperationsBuilder

      public PostResetOperation.Builder addPostResetOperationsBuilder()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • addPostResetOperationsBuilder

      public PostResetOperation.Builder addPostResetOperationsBuilder(int index)
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • getPostResetOperationsBuilderList

      public List<PostResetOperation.Builder> getPostResetOperationsBuilderList()
       Operations to perform after the workflow has been reset. These operations will be applied
       to the *new* run of the workflow execution in the order they are provided.
       All operations are applied to the workflow before the first new workflow task is generated
       
      repeated .temporal.api.workflow.v1.PostResetOperation post_reset_operations = 5;
    • setUnknownFields

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

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