Class ResetActivityExecutionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResetActivityExecutionRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
io.temporal.api.workflowservice.v1.ResetActivityExecutionRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResetActivityExecutionRequestOrBuilder,Cloneable
- Enclosing class:
ResetActivityExecutionRequest
public static final class ResetActivityExecutionRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
implements ResetActivityExecutionRequestOrBuilder
Protobuf type
temporal.api.workflowservice.v1.ResetActivityExecutionRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The ID of the activity to target.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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 resetNamespace of the workflow which scheduled this activity.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Resource ID for routing.If set, the activity options will be restored to the defaults.Run ID of the workflow or standalone activity.If provided, targets a workflow activity for the given workflow ID.clone()The ID of the activity to target.com.google.protobuf.ByteStringThe ID of the activity to target.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe 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 resetNamespace of the workflow which scheduled this activity.com.google.protobuf.ByteStringNamespace of the workflow which scheduled this activity.Resource ID for routing.com.google.protobuf.ByteStringResource ID for routing.booleanIf set, the activity options will be restored to the defaults.getRunId()Run ID of the workflow or standalone activity.com.google.protobuf.ByteStringRun ID of the workflow or standalone activity.If provided, targets a workflow activity for the given workflow ID.com.google.protobuf.ByteStringIf provided, targets a workflow activity for the given workflow ID.booleanIf set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message 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) setActivityId(String value) The ID of the activity to target.setActivityIdBytes(com.google.protobuf.ByteString value) The ID of the activity to target.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 resetsetNamespace(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) setResourceId(String value) Resource ID for routing.setResourceIdBytes(com.google.protobuf.ByteString value) Resource ID for routing.setRestoreOriginalOptions(boolean value) If set, the activity options will be restored to the defaults.Run ID of the workflow or standalone activity.setRunIdBytes(com.google.protobuf.ByteString value) Run ID of the workflow or standalone activity.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWorkflowId(String value) If provided, targets a workflow activity for the given workflow ID.setWorkflowIdBytes(com.google.protobuf.ByteString value) If provided, targets a workflow activity for the given workflow ID.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<ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
-
setField
public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
-
clearField
public ResetActivityExecutionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
-
clearOneof
public ResetActivityExecutionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
-
setRepeatedField
public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
-
addRepeatedField
public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResetActivityExecutionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
-
mergeFrom
public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>- Throws:
IOException
-
getNamespace
Namespace of the workflow which scheduled this activity.
string namespace = 1;- Specified by:
getNamespacein interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()Namespace of the workflow which scheduled this activity.
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceResetActivityExecutionRequestOrBuilder- 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
public ResetActivityExecutionRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value) Namespace of the workflow which scheduled this activity.
string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getWorkflowId
If provided, targets a workflow activity for the given workflow ID. If empty, targets a standalone activity.
string workflow_id = 2;- Specified by:
getWorkflowIdin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The workflowId.
-
getWorkflowIdBytes
public com.google.protobuf.ByteString getWorkflowIdBytes()If provided, targets a workflow activity for the given workflow ID. If empty, targets a standalone activity.
string workflow_id = 2;- Specified by:
getWorkflowIdBytesin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The bytes for workflowId.
-
setWorkflowId
If provided, targets a workflow activity for the given workflow ID. If empty, targets a standalone activity.
string workflow_id = 2;- Parameters:
value- The workflowId to set.- Returns:
- This builder for chaining.
-
clearWorkflowId
If provided, targets a workflow activity for the given workflow ID. If empty, targets a standalone activity.
string workflow_id = 2;- Returns:
- This builder for chaining.
-
setWorkflowIdBytes
public ResetActivityExecutionRequest.Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) If provided, targets a workflow activity for the given workflow ID. If empty, targets a standalone activity.
string workflow_id = 2;- Parameters:
value- The bytes for workflowId to set.- Returns:
- This builder for chaining.
-
getActivityId
The ID of the activity to target.
string activity_id = 3;- Specified by:
getActivityIdin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The activityId.
-
getActivityIdBytes
public com.google.protobuf.ByteString getActivityIdBytes()The ID of the activity to target.
string activity_id = 3;- Specified by:
getActivityIdBytesin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The bytes for activityId.
-
setActivityId
The ID of the activity to target.
string activity_id = 3;- Parameters:
value- The activityId to set.- Returns:
- This builder for chaining.
-
clearActivityId
The ID of the activity to target.
string activity_id = 3;- Returns:
- This builder for chaining.
-
setActivityIdBytes
public ResetActivityExecutionRequest.Builder setActivityIdBytes(com.google.protobuf.ByteString value) The ID of the activity to target.
string activity_id = 3;- Parameters:
value- The bytes for activityId to set.- Returns:
- This builder for chaining.
-
getRunId
Run ID of the workflow or standalone activity.
string run_id = 4;- Specified by:
getRunIdin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()Run ID of the workflow or standalone activity.
string run_id = 4;- Specified by:
getRunIdBytesin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The bytes for runId.
-
setRunId
Run ID of the workflow or standalone activity.
string run_id = 4;- Parameters:
value- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
Run ID of the workflow or standalone activity.
string run_id = 4;- Returns:
- This builder for chaining.
-
setRunIdBytes
Run ID of the workflow or standalone activity.
string run_id = 4;- Parameters:
value- The bytes for runId to set.- Returns:
- This builder for chaining.
-
getIdentity
The identity of the client who initiated this request.
string identity = 5;- Specified by:
getIdentityin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()The identity of the client who initiated this request.
string identity = 5;- Specified by:
getIdentityBytesin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
The identity of the client who initiated this request.
string identity = 5;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
The identity of the client who initiated this request.
string identity = 5;- Returns:
- This builder for chaining.
-
setIdentityBytes
The identity of the client who initiated this request.
string identity = 5;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
getKeepPaused
public boolean getKeepPaused()If activity is paused, it will remain paused after reset
bool keep_paused = 6;- Specified by:
getKeepPausedin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The keepPaused.
-
setKeepPaused
If activity is paused, it will remain paused after reset
bool keep_paused = 6;- 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 = 6;- 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 = 7;- Specified by:
hasJitterin interfaceResetActivityExecutionRequestOrBuilder- 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 = 7;- Specified by:
getJitterin interfaceResetActivityExecutionRequestOrBuilder- 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 = 7; -
setJitter
public ResetActivityExecutionRequest.Builder 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. (unless it is paused and keep_paused is set)
.google.protobuf.Duration jitter = 7; -
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 = 7; -
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 = 7; -
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 = 7; -
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 = 7;- Specified by:
getJitterOrBuilderin interfaceResetActivityExecutionRequestOrBuilder
-
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 = 8;- Specified by:
getRestoreOriginalOptionsin interfaceResetActivityExecutionRequestOrBuilder- 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 = 8;- 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 = 8;- Returns:
- This builder for chaining.
-
getResourceId
Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.string resource_id = 9;- Specified by:
getResourceIdin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The resourceId.
-
getResourceIdBytes
public com.google.protobuf.ByteString getResourceIdBytes()Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.string resource_id = 9;- Specified by:
getResourceIdBytesin interfaceResetActivityExecutionRequestOrBuilder- Returns:
- The bytes for resourceId.
-
setResourceId
Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.string resource_id = 9;- Parameters:
value- The resourceId to set.- Returns:
- This builder for chaining.
-
clearResourceId
Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.string resource_id = 9;- Returns:
- This builder for chaining.
-
setResourceIdBytes
public ResetActivityExecutionRequest.Builder setResourceIdBytes(com.google.protobuf.ByteString value) Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.string resource_id = 9;- Parameters:
value- The bytes for resourceId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResetActivityExecutionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
-
mergeUnknownFields
public final ResetActivityExecutionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
-