Class ResetActivityRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResetActivityRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
io.temporal.api.workflowservice.v1.ResetActivityRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResetActivityRequestOrBuilder,Cloneable
- Enclosing class:
ResetActivityRequest
public static final class ResetActivityRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
implements ResetActivityRequestOrBuilder
NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities Deprecated. Use `ResetActivityExecutionRequest`.Protobuf type
temporal.api.workflowservice.v1.ResetActivityRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Execution info of the workflow which scheduled this activityclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Only activity with this ID will be reset.The identity of the client who initiated this request.If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.If activity is paused, it will remain paused after resetReset all running activities.Namespace of the workflow which scheduled this activity.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Indicates that activity should reset heartbeat details.If set, the activity options will be restored to the defaults.Reset all running activities with of this type.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExecution info of the workflow which scheduled this activityExecution info of the workflow which scheduled this activityExecution info of the workflow which scheduled this activitygetId()Only activity with this ID will be reset.com.google.protobuf.ByteStringOnly activity with this ID will be reset.The identity of the client who initiated this request.com.google.protobuf.ByteStringThe identity of the client who initiated this request.com.google.protobuf.DurationIf set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.com.google.protobuf.Duration.BuilderIf set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.com.google.protobuf.DurationOrBuilderIf set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.booleanIf activity is paused, it will remain paused after resetbooleanReset all running activities.Namespace of the workflow which scheduled this activity.com.google.protobuf.ByteStringNamespace of the workflow which scheduled this activity.booleanIndicates that activity should reset heartbeat details.booleanIf set, the activity options will be restored to the defaults.getType()Reset all running activities with of this type.com.google.protobuf.ByteStringReset all running activities with of this type.booleanExecution info of the workflow which scheduled this activitybooleanhasId()Only activity with this ID will be reset.booleanIf set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.booleanReset all running activities.booleanhasType()Reset all running activities with of this type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeExecution(WorkflowExecution value) Execution info of the workflow which scheduled this activitymergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ResetActivityRequest other) mergeJitter(com.google.protobuf.Duration value) If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExecution(WorkflowExecution value) Execution info of the workflow which scheduled this activitysetExecution(WorkflowExecution.Builder builderForValue) Execution info of the workflow which scheduled this activityOnly activity with this ID will be reset.setIdBytes(com.google.protobuf.ByteString value) Only activity with this ID will be reset.setIdentity(String value) The identity of the client who initiated this request.setIdentityBytes(com.google.protobuf.ByteString value) The identity of the client who initiated this request.setJitter(com.google.protobuf.Duration value) If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.setJitter(com.google.protobuf.Duration.Builder builderForValue) If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.setKeepPaused(boolean value) If activity is paused, it will remain paused after resetsetMatchAll(boolean value) Reset all running activities.setNamespace(String value) Namespace of the workflow which scheduled this activity.setNamespaceBytes(com.google.protobuf.ByteString value) Namespace of the workflow which scheduled this activity.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResetHeartbeat(boolean value) Indicates that activity should reset heartbeat details.setRestoreOriginalOptions(boolean value) If set, the activity options will be restored to the defaults.Reset all running activities with of this type.setTypeBytes(com.google.protobuf.ByteString value) Reset all running activities with of this type.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<ResetActivityRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
setField
public ResetActivityRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
clearField
public ResetActivityRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
clearOneof
public ResetActivityRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
setRepeatedField
public ResetActivityRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
addRepeatedField
public ResetActivityRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResetActivityRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
mergeFrom
public ResetActivityRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResetActivityRequest.Builder>- Throws:
IOException
-
getActivityCase
- Specified by:
getActivityCasein interfaceResetActivityRequestOrBuilder
-
clearActivity
-
getNamespace
Namespace of the workflow which scheduled this activity.
string namespace = 1;- Specified by:
getNamespacein interfaceResetActivityRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()Namespace of the workflow which scheduled this activity.
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceResetActivityRequestOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
Namespace of the workflow which scheduled this activity.
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
Namespace of the workflow which scheduled this activity.
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
Namespace of the workflow which scheduled this activity.
string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
hasExecution
public boolean hasExecution()Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
hasExecutionin interfaceResetActivityRequestOrBuilder- Returns:
- Whether the execution field is set.
-
getExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
getExecutionin interfaceResetActivityRequestOrBuilder- Returns:
- The execution.
-
setExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
setExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
mergeExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
clearExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
getExecutionBuilder
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
getExecutionOrBuilder
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
getExecutionOrBuilderin interfaceResetActivityRequestOrBuilder
-
getIdentity
The identity of the client who initiated this request.
string identity = 3;- Specified by:
getIdentityin interfaceResetActivityRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()The identity of the client who initiated this request.
string identity = 3;- Specified by:
getIdentityBytesin interfaceResetActivityRequestOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
The identity of the client who initiated this request.
string identity = 3;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
The identity of the client who initiated this request.
string identity = 3;- Returns:
- This builder for chaining.
-
setIdentityBytes
The identity of the client who initiated this request.
string identity = 3;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Only activity with this ID will be reset.
string id = 4;- Specified by:
hasIdin interfaceResetActivityRequestOrBuilder- Returns:
- Whether the id field is set.
-
getId
Only activity with this ID will be reset.
string id = 4;- Specified by:
getIdin interfaceResetActivityRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Only activity with this ID will be reset.
string id = 4;- Specified by:
getIdBytesin interfaceResetActivityRequestOrBuilder- Returns:
- The bytes for id.
-
setId
Only activity with this ID will be reset.
string id = 4;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Only activity with this ID will be reset.
string id = 4;- Returns:
- This builder for chaining.
-
setIdBytes
Only activity with this ID will be reset.
string id = 4;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Reset all running activities with of this type.
string type = 5;- Specified by:
hasTypein interfaceResetActivityRequestOrBuilder- Returns:
- Whether the type field is set.
-
getType
Reset all running activities with of this type.
string type = 5;- Specified by:
getTypein interfaceResetActivityRequestOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Reset all running activities with of this type.
string type = 5;- Specified by:
getTypeBytesin interfaceResetActivityRequestOrBuilder- Returns:
- The bytes for type.
-
setType
Reset all running activities with of this type.
string type = 5;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Reset all running activities with of this type.
string type = 5;- Returns:
- This builder for chaining.
-
setTypeBytes
Reset all running activities with of this type.
string type = 5;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasMatchAll
public boolean hasMatchAll()Reset all running activities.
bool match_all = 10;- Specified by:
hasMatchAllin interfaceResetActivityRequestOrBuilder- Returns:
- Whether the matchAll field is set.
-
getMatchAll
public boolean getMatchAll()Reset all running activities.
bool match_all = 10;- Specified by:
getMatchAllin interfaceResetActivityRequestOrBuilder- Returns:
- The matchAll.
-
setMatchAll
Reset all running activities.
bool match_all = 10;- Parameters:
value- The matchAll to set.- Returns:
- This builder for chaining.
-
clearMatchAll
Reset all running activities.
bool match_all = 10;- Returns:
- This builder for chaining.
-
getResetHeartbeat
public boolean getResetHeartbeat()Indicates that activity should reset heartbeat details. This flag will be applied only to the new instance of the activity.
bool reset_heartbeat = 6;- Specified by:
getResetHeartbeatin interfaceResetActivityRequestOrBuilder- Returns:
- The resetHeartbeat.
-
setResetHeartbeat
Indicates that activity should reset heartbeat details. This flag will be applied only to the new instance of the activity.
bool reset_heartbeat = 6;- Parameters:
value- The resetHeartbeat to set.- Returns:
- This builder for chaining.
-
clearResetHeartbeat
Indicates that activity should reset heartbeat details. This flag will be applied only to the new instance of the activity.
bool reset_heartbeat = 6;- Returns:
- This builder for chaining.
-
getKeepPaused
public boolean getKeepPaused()If activity is paused, it will remain paused after reset
bool keep_paused = 7;- Specified by:
getKeepPausedin interfaceResetActivityRequestOrBuilder- Returns:
- The keepPaused.
-
setKeepPaused
If activity is paused, it will remain paused after reset
bool keep_paused = 7;- Parameters:
value- The keepPaused to set.- Returns:
- This builder for chaining.
-
clearKeepPaused
If activity is paused, it will remain paused after reset
bool keep_paused = 7;- Returns:
- This builder for chaining.
-
hasJitter
public boolean hasJitter()If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8;- Specified by:
hasJitterin interfaceResetActivityRequestOrBuilder- Returns:
- Whether the jitter field is set.
-
getJitter
public com.google.protobuf.Duration getJitter()If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8;- Specified by:
getJitterin interfaceResetActivityRequestOrBuilder- Returns:
- The jitter.
-
setJitter
If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8; -
setJitter
If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8; -
mergeJitter
If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8; -
clearJitter
If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8; -
getJitterBuilder
public com.google.protobuf.Duration.Builder getJitterBuilder()If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8; -
getJitterOrBuilder
public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 8;- Specified by:
getJitterOrBuilderin interfaceResetActivityRequestOrBuilder
-
getRestoreOriginalOptions
public boolean getRestoreOriginalOptions()If set, the activity options will be restored to the defaults. Default options are then options activity was created with. They are part of the first schedule event.
bool restore_original_options = 9;- Specified by:
getRestoreOriginalOptionsin interfaceResetActivityRequestOrBuilder- Returns:
- The restoreOriginalOptions.
-
setRestoreOriginalOptions
If set, the activity options will be restored to the defaults. Default options are then options activity was created with. They are part of the first schedule event.
bool restore_original_options = 9;- Parameters:
value- The restoreOriginalOptions to set.- Returns:
- This builder for chaining.
-
clearRestoreOriginalOptions
If set, the activity options will be restored to the defaults. Default options are then options activity was created with. They are part of the first schedule event.
bool restore_original_options = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResetActivityRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-
mergeUnknownFields
public final ResetActivityRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder>
-