Package io.temporal.api.batch.v1
Class BatchOperationResetActivities.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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.ResetActivityRequest
Protobuf typetemporal.api.batch.v1.BatchOperationResetActivities
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchOperationResetActivities.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchOperationResetActivitiesbuild()BatchOperationResetActivitiesbuildPartial()BatchOperationResetActivities.Builderclear()BatchOperationResetActivities.BuilderclearActivity()BatchOperationResetActivities.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchOperationResetActivities.BuilderclearIdentity()The identity of the worker/client.BatchOperationResetActivities.BuilderclearJitter()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.BatchOperationResetActivities.BuilderclearKeepPaused()If activity is paused, it will remain paused after resetBatchOperationResetActivities.BuilderclearMatchAll()bool match_all = 3;BatchOperationResetActivities.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchOperationResetActivities.BuilderclearResetAttempts()Setting this flag will also reset the number of attempts.BatchOperationResetActivities.BuilderclearResetHeartbeat()Setting this flag will also reset the heartbeat details.BatchOperationResetActivities.BuilderclearRestoreOriginalOptions()If set, the activity options will be restored to the defaults.BatchOperationResetActivities.BuilderclearType()string type = 2;BatchOperationResetActivities.Builderclone()BatchOperationResetActivities.ActivityCasegetActivityCase()BatchOperationResetActivitiesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetIdentity()The identity of the worker/client.com.google.protobuf.ByteStringgetIdentityBytes()The identity of the worker/client.com.google.protobuf.DurationgetJitter()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.com.google.protobuf.Duration.BuildergetJitterBuilder()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.com.google.protobuf.DurationOrBuildergetJitterOrBuilder()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.booleangetKeepPaused()If activity is paused, it will remain paused after resetbooleangetMatchAll()bool match_all = 3;booleangetResetAttempts()Setting this flag will also reset the number of attempts.booleangetResetHeartbeat()Setting this flag will also reset the heartbeat details.booleangetRestoreOriginalOptions()If set, the activity options will be restored to the defaults.java.lang.StringgetType()string type = 2;com.google.protobuf.ByteStringgetTypeBytes()string type = 2;booleanhasJitter()If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time.booleanhasMatchAll()bool match_all = 3;booleanhasType()string type = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchOperationResetActivities.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchOperationResetActivities.BuildermergeFrom(com.google.protobuf.Message other)BatchOperationResetActivities.BuildermergeFrom(BatchOperationResetActivities other)BatchOperationResetActivities.BuildermergeJitter(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.BatchOperationResetActivities.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchOperationResetActivities.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchOperationResetActivities.BuildersetIdentity(java.lang.String value)The identity of the worker/client.BatchOperationResetActivities.BuildersetIdentityBytes(com.google.protobuf.ByteString value)The identity of the worker/client.BatchOperationResetActivities.BuildersetJitter(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.BatchOperationResetActivities.BuildersetJitter(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.BatchOperationResetActivities.BuildersetKeepPaused(boolean value)If activity is paused, it will remain paused after resetBatchOperationResetActivities.BuildersetMatchAll(boolean value)bool match_all = 3;BatchOperationResetActivities.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BatchOperationResetActivities.BuildersetResetAttempts(boolean value)Setting this flag will also reset the number of attempts.BatchOperationResetActivities.BuildersetResetHeartbeat(boolean value)Setting this flag will also reset the heartbeat details.BatchOperationResetActivities.BuildersetRestoreOriginalOptions(boolean value)If set, the activity options will be restored to the defaults.BatchOperationResetActivities.BuildersetType(java.lang.String value)string type = 2;BatchOperationResetActivities.BuildersetTypeBytes(com.google.protobuf.ByteString value)string type = 2;BatchOperationResetActivities.BuildersetUnknownFields(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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public BatchOperationResetActivities getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchOperationResetActivities build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchOperationResetActivities buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchOperationResetActivities.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
-
mergeFrom
public BatchOperationResetActivities.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchOperationResetActivities.Builder>
-
mergeFrom
public BatchOperationResetActivities.Builder mergeFrom(BatchOperationResetActivities other)
-
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 java.io.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:
java.io.IOException
-
getActivityCase
public BatchOperationResetActivities.ActivityCase getActivityCase()
- Specified by:
getActivityCasein interfaceBatchOperationResetActivitiesOrBuilder
-
clearActivity
public BatchOperationResetActivities.Builder clearActivity()
-
getIdentity
public java.lang.String 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
public BatchOperationResetActivities.Builder setIdentity(java.lang.String value)
The identity of the worker/client.
string identity = 1;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
public BatchOperationResetActivities.Builder clearIdentity()
The identity of the worker/client.
string identity = 1;- Returns:
- This builder for chaining.
-
setIdentityBytes
public BatchOperationResetActivities.Builder setIdentityBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public BatchOperationResetActivities.Builder setType(java.lang.String value)
string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public BatchOperationResetActivities.Builder clearType()
string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
public BatchOperationResetActivities.Builder setTypeBytes(com.google.protobuf.ByteString value)
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
public BatchOperationResetActivities.Builder setMatchAll(boolean value)
bool match_all = 3;- Parameters:
value- The matchAll to set.- Returns:
- This builder for chaining.
-
clearMatchAll
public BatchOperationResetActivities.Builder 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
public BatchOperationResetActivities.Builder setResetAttempts(boolean value)
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
public BatchOperationResetActivities.Builder 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
public BatchOperationResetActivities.Builder setResetHeartbeat(boolean value)
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
public BatchOperationResetActivities.Builder 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
public BatchOperationResetActivities.Builder setKeepPaused(boolean value)
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
public BatchOperationResetActivities.Builder 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
public BatchOperationResetActivities.Builder 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.
.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
public BatchOperationResetActivities.Builder 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.
.google.protobuf.Duration jitter = 7;
-
clearJitter
public BatchOperationResetActivities.Builder 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
public BatchOperationResetActivities.Builder setRestoreOriginalOptions(boolean value)
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
public BatchOperationResetActivities.Builder 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>
-
-