Class BatchOperationResetActivities.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BatchOperationResetActivities.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
io.temporal.api.batch.v1.BatchOperationResetActivities.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BatchOperationResetActivitiesOrBuilder,Cloneable
- Enclosing class:
BatchOperationResetActivities
public static final class BatchOperationResetActivities.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
implements BatchOperationResetActivitiesOrBuilder
BatchOperationResetActivities sends activity reset requests in a batch. NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequestProtobuf type
temporal.api.batch.v1.BatchOperationResetActivities-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The identity of the worker/client.If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.If activity is paused, it will remain paused after resetbool match_all = 3;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Setting this flag will also reset the number of attempts.Setting this flag will also reset the heartbeat details.If set, the activity options will be restored to the defaults.string type = 2;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe identity of the worker/client.com.google.protobuf.ByteStringThe identity of the worker/client.com.google.protobuf.DurationIf set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.com.google.protobuf.Duration.BuilderIf set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.com.google.protobuf.DurationOrBuilderIf set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.booleanIf activity is paused, it will remain paused after resetbooleanbool match_all = 3;booleanSetting this flag will also reset the number of attempts.booleanSetting this flag will also reset the heartbeat details.booleanIf set, the activity options will be restored to the defaults.getType()string type = 2;com.google.protobuf.ByteStringstring type = 2;booleanIf set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.booleanbool match_all = 3;booleanhasType()string type = 2;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, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIdentity(String value) The identity of the worker/client.setIdentityBytes(com.google.protobuf.ByteString value) The identity of the worker/client.setJitter(com.google.protobuf.Duration value) If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.setJitter(com.google.protobuf.Duration.Builder builderForValue) If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.setKeepPaused(boolean value) If activity is paused, it will remain paused after resetsetMatchAll(boolean value) bool match_all = 3;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResetAttempts(boolean value) Setting this flag will also reset the number of attempts.setResetHeartbeat(boolean value) Setting this flag will also reset the heartbeat details.setRestoreOriginalOptions(boolean value) If set, the activity options will be restored to the defaults.string type = 2;setTypeBytes(com.google.protobuf.ByteString value) string type = 2;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<BatchOperationResetActivities.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<BatchOperationResetActivities.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<BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
-
setField
public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
-
clearField
public BatchOperationResetActivities.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-
clearOneof
public BatchOperationResetActivities.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-
setRepeatedField
public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
-
addRepeatedField
public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchOperationResetActivities.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-
mergeFrom
public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>- Throws:
IOException
-
getActivityCase
- Specified by:
getActivityCasein interfaceBatchOperationResetActivitiesOrBuilder
-
clearActivity
-
getIdentity
The identity of the worker/client.
string identity = 1;- Specified by:
getIdentityin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()The identity of the worker/client.
string identity = 1;- Specified by:
getIdentityBytesin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
The identity of the worker/client.
string identity = 1;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
The identity of the worker/client.
string identity = 1;- Returns:
- This builder for chaining.
-
setIdentityBytes
The identity of the worker/client.
string identity = 1;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()string type = 2;- Specified by:
hasTypein interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- Whether the type field is set.
-
getType
string type = 2;- Specified by:
getTypein interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()string type = 2;- Specified by:
getTypeBytesin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The bytes for type.
-
setType
string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasMatchAll
public boolean hasMatchAll()bool match_all = 3;- Specified by:
hasMatchAllin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- Whether the matchAll field is set.
-
getMatchAll
public boolean getMatchAll()bool match_all = 3;- Specified by:
getMatchAllin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The matchAll.
-
setMatchAll
bool match_all = 3;- Parameters:
value- The matchAll to set.- Returns:
- This builder for chaining.
-
clearMatchAll
bool match_all = 3;- Returns:
- This builder for chaining.
-
getResetAttempts
public boolean getResetAttempts()Setting this flag will also reset the number of attempts.
bool reset_attempts = 4;- Specified by:
getResetAttemptsin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The resetAttempts.
-
setResetAttempts
Setting this flag will also reset the number of attempts.
bool reset_attempts = 4;- Parameters:
value- The resetAttempts to set.- Returns:
- This builder for chaining.
-
clearResetAttempts
Setting this flag will also reset the number of attempts.
bool reset_attempts = 4;- Returns:
- This builder for chaining.
-
getResetHeartbeat
public boolean getResetHeartbeat()Setting this flag will also reset the heartbeat details.
bool reset_heartbeat = 5;- Specified by:
getResetHeartbeatin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The resetHeartbeat.
-
setResetHeartbeat
Setting this flag will also reset the heartbeat details.
bool reset_heartbeat = 5;- Parameters:
value- The resetHeartbeat to set.- Returns:
- This builder for chaining.
-
clearResetHeartbeat
Setting this flag will also reset the heartbeat details.
bool reset_heartbeat = 5;- 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 interfaceBatchOperationResetActivitiesOrBuilder- 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, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7;- Specified by:
hasJitterin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- Whether the jitter field is set.
-
getJitter
public com.google.protobuf.Duration getJitter()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7;- Specified by:
getJitterin interfaceBatchOperationResetActivitiesOrBuilder- Returns:
- The jitter.
-
setJitter
If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7; -
setJitter
public BatchOperationResetActivities.Builder setJitter(com.google.protobuf.Duration.Builder builderForValue) If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7; -
mergeJitter
If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7; -
clearJitter
If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7; -
getJitterBuilder
public com.google.protobuf.Duration.Builder getJitterBuilder()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7; -
getJitterOrBuilder
public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.
.google.protobuf.Duration jitter = 7;- Specified by:
getJitterOrBuilderin interfaceBatchOperationResetActivitiesOrBuilder
-
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 ActivityTaskScheduled event.
bool restore_original_options = 8;- Specified by:
getRestoreOriginalOptionsin interfaceBatchOperationResetActivitiesOrBuilder- 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 ActivityTaskScheduled 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 ActivityTaskScheduled event.
bool restore_original_options = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchOperationResetActivities.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-
mergeUnknownFields
public final BatchOperationResetActivities.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-