Package io.temporal.api.common.v1
Class ResetOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.temporal.api.common.v1.ResetOptions
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResetOptionsOrBuilder,java.io.Serializable
@Generated(value="protoc", comments="annotations:ResetOptions.java.pb.meta") public final class ResetOptions extends com.google.protobuf.GeneratedMessageV3 implements ResetOptionsOrBuilderDescribes where and how to reset a workflow, used for batch reset currently and may be used for single-workflow reset later.
Protobuf typetemporal.api.common.v1.ResetOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResetOptions.BuilderDescribes where and how to reset a workflow, used for batch reset currently and may be used for single-workflow reset later.static classResetOptions.TargetCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUILD_ID_FIELD_NUMBERstatic intCURRENT_RUN_ONLY_FIELD_NUMBERstatic intFIRST_WORKFLOW_TASK_FIELD_NUMBERstatic intLAST_WORKFLOW_TASK_FIELD_NUMBERstatic intRESET_REAPPLY_TYPE_FIELD_NUMBERstatic intWORKFLOW_TASK_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBuildId()Resets to the first workflow task processed by this build id.com.google.protobuf.ByteStringgetBuildIdBytes()Resets to the first workflow task processed by this build id.booleangetCurrentRunOnly()If true, limit the reset to only within the current run.static ResetOptionsgetDefaultInstance()ResetOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EmptygetFirstWorkflowTask()Resets to the first workflow task completed or started event.EmptyOrBuildergetFirstWorkflowTaskOrBuilder()Resets to the first workflow task completed or started event.EmptygetLastWorkflowTask()Resets to the last workflow task completed or started event.EmptyOrBuildergetLastWorkflowTaskOrBuilder()Resets to the last workflow task completed or started event.com.google.protobuf.Parser<ResetOptions>getParserForType()ResetReapplyTypegetResetReapplyType()History event reapply options.intgetResetReapplyTypeValue()History event reapply options.intgetSerializedSize()ResetOptions.TargetCasegetTargetCase()com.google.protobuf.UnknownFieldSetgetUnknownFields()longgetWorkflowTaskId()The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or `WORKFLOW_TASK_STARTED` event to reset to.booleanhasFirstWorkflowTask()Resets to the first workflow task completed or started event.inthashCode()booleanhasLastWorkflowTask()Resets to the last workflow task completed or started event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ResetOptions.BuildernewBuilder()static ResetOptions.BuildernewBuilder(ResetOptions prototype)ResetOptions.BuildernewBuilderForType()protected ResetOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ResetOptionsparseDelimitedFrom(java.io.InputStream input)static ResetOptionsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResetOptionsparseFrom(byte[] data)static ResetOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResetOptionsparseFrom(com.google.protobuf.ByteString data)static ResetOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResetOptionsparseFrom(com.google.protobuf.CodedInputStream input)static ResetOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResetOptionsparseFrom(java.io.InputStream input)static ResetOptionsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResetOptionsparseFrom(java.nio.ByteBuffer data)static ResetOptionsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ResetOptions>parser()ResetOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FIRST_WORKFLOW_TASK_FIELD_NUMBER
public static final int FIRST_WORKFLOW_TASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_WORKFLOW_TASK_FIELD_NUMBER
public static final int LAST_WORKFLOW_TASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKFLOW_TASK_ID_FIELD_NUMBER
public static final int WORKFLOW_TASK_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_ID_FIELD_NUMBER
public static final int BUILD_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESET_REAPPLY_TYPE_FIELD_NUMBER
public static final int RESET_REAPPLY_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENT_RUN_ONLY_FIELD_NUMBER
public static final int CURRENT_RUN_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTargetCase
public ResetOptions.TargetCase getTargetCase()
- Specified by:
getTargetCasein interfaceResetOptionsOrBuilder
-
hasFirstWorkflowTask
public boolean hasFirstWorkflowTask()
Resets to the first workflow task completed or started event.
.google.protobuf.Empty first_workflow_task = 1;- Specified by:
hasFirstWorkflowTaskin interfaceResetOptionsOrBuilder- Returns:
- Whether the firstWorkflowTask field is set.
-
getFirstWorkflowTask
public Empty getFirstWorkflowTask()
Resets to the first workflow task completed or started event.
.google.protobuf.Empty first_workflow_task = 1;- Specified by:
getFirstWorkflowTaskin interfaceResetOptionsOrBuilder- Returns:
- The firstWorkflowTask.
-
getFirstWorkflowTaskOrBuilder
public EmptyOrBuilder getFirstWorkflowTaskOrBuilder()
Resets to the first workflow task completed or started event.
.google.protobuf.Empty first_workflow_task = 1;- Specified by:
getFirstWorkflowTaskOrBuilderin interfaceResetOptionsOrBuilder
-
hasLastWorkflowTask
public boolean hasLastWorkflowTask()
Resets to the last workflow task completed or started event.
.google.protobuf.Empty last_workflow_task = 2;- Specified by:
hasLastWorkflowTaskin interfaceResetOptionsOrBuilder- Returns:
- Whether the lastWorkflowTask field is set.
-
getLastWorkflowTask
public Empty getLastWorkflowTask()
Resets to the last workflow task completed or started event.
.google.protobuf.Empty last_workflow_task = 2;- Specified by:
getLastWorkflowTaskin interfaceResetOptionsOrBuilder- Returns:
- The lastWorkflowTask.
-
getLastWorkflowTaskOrBuilder
public EmptyOrBuilder getLastWorkflowTaskOrBuilder()
Resets to the last workflow task completed or started event.
.google.protobuf.Empty last_workflow_task = 2;- Specified by:
getLastWorkflowTaskOrBuilderin interfaceResetOptionsOrBuilder
-
getWorkflowTaskId
public long getWorkflowTaskId()
The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or `WORKFLOW_TASK_STARTED` event to reset to. Note that this option doesn't make sense when used as part of a batch request.
int64 workflow_task_id = 3;- Specified by:
getWorkflowTaskIdin interfaceResetOptionsOrBuilder- Returns:
- The workflowTaskId.
-
getBuildId
public java.lang.String getBuildId()
Resets to the first workflow task processed by this build id. If the workflow was not processed by the build id, or the workflow task can't be determined, no reset will be performed. Note that by default, this reset is allowed to be to a prior run in a chain of continue-as-new.
string build_id = 4;- Specified by:
getBuildIdin interfaceResetOptionsOrBuilder- Returns:
- The buildId.
-
getBuildIdBytes
public com.google.protobuf.ByteString getBuildIdBytes()
Resets to the first workflow task processed by this build id. If the workflow was not processed by the build id, or the workflow task can't be determined, no reset will be performed. Note that by default, this reset is allowed to be to a prior run in a chain of continue-as-new.
string build_id = 4;- Specified by:
getBuildIdBytesin interfaceResetOptionsOrBuilder- Returns:
- The bytes for buildId.
-
getResetReapplyTypeValue
public int getResetReapplyTypeValue()
History event reapply options.
.temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 10;- Specified by:
getResetReapplyTypeValuein interfaceResetOptionsOrBuilder- Returns:
- The enum numeric value on the wire for resetReapplyType.
-
getResetReapplyType
public ResetReapplyType getResetReapplyType()
History event reapply options.
.temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 10;- Specified by:
getResetReapplyTypein interfaceResetOptionsOrBuilder- Returns:
- The resetReapplyType.
-
getCurrentRunOnly
public boolean getCurrentRunOnly()
If true, limit the reset to only within the current run. (Applies to build_id targets and possibly others in the future.)
bool current_run_only = 11;- Specified by:
getCurrentRunOnlyin interfaceResetOptionsOrBuilder- Returns:
- The currentRunOnly.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ResetOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResetOptions parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ResetOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ResetOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ResetOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ResetOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ResetOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ResetOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ResetOptions.Builder newBuilder()
-
newBuilder
public static ResetOptions.Builder newBuilder(ResetOptions prototype)
-
toBuilder
public ResetOptions.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResetOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ResetOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ResetOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<ResetOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ResetOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-