Class ActivityTaskStartedEventAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ActivityTaskStartedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
io.temporal.api.history.v1.ActivityTaskStartedEventAttributes.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ActivityTaskStartedEventAttributesOrBuilder,Cloneable
- Enclosing class:
ActivityTaskStartedEventAttributes
public static final class ActivityTaskStartedEventAttributes.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
implements ActivityTaskStartedEventAttributesOrBuilder
Protobuf type
temporal.api.history.v1.ActivityTaskStartedEventAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Starting at 1, the number of times this task has been attemptedDeprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) id of the worker that picked up this taskWill be set to the most recent failure details, if this task has previously failed and then been retried.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) This field is populated from the RecordActivityTaskStartedRequest.The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds toDeprecated.clone()intStarting at 1, the number of times this task has been attemptedlongDeprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorid of the worker that picked up this taskcom.google.protobuf.ByteStringid of the worker that picked up this taskWill be set to the most recent failure details, if this task has previously failed and then been retried.Will be set to the most recent failure details, if this task has previously failed and then been retried.Will be set to the most recent failure details, if this task has previously failed and then been retried.This field is populated from the RecordActivityTaskStartedRequest.com.google.protobuf.ByteStringThis field is populated from the RecordActivityTaskStartedRequest.longThe id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds toDeprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated.Deprecated.Deprecated.booleanWill be set to the most recent failure details, if this task has previously failed and then been retried.booleanDeprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastFailure(Failure value) Will be set to the most recent failure details, if this task has previously failed and then been retried.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Deprecated.setAttempt(int value) Starting at 1, the number of times this task has been attemptedsetBuildIdRedirectCounter(long value) Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated.setIdentity(String value) id of the worker that picked up this tasksetIdentityBytes(com.google.protobuf.ByteString value) id of the worker that picked up this tasksetLastFailure(Failure value) Will be set to the most recent failure details, if this task has previously failed and then been retried.setLastFailure(Failure.Builder builderForValue) Will be set to the most recent failure details, if this task has previously failed and then been retried.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestId(String value) This field is populated from the RecordActivityTaskStartedRequest.setRequestIdBytes(com.google.protobuf.ByteString value) This field is populated from the RecordActivityTaskStartedRequest.setScheduledEventId(long value) The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds tosetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Deprecated.setWorkerVersion(WorkerVersionStamp.Builder builderForValue) Deprecated.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<ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
-
setField
public ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
-
clearField
public ActivityTaskStartedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
-
clearOneof
public ActivityTaskStartedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
-
setRepeatedField
public ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
-
addRepeatedField
public ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ActivityTaskStartedEventAttributes.Builder>
-
mergeFrom
public ActivityTaskStartedEventAttributes.Builder mergeFrom(ActivityTaskStartedEventAttributes other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
-
mergeFrom
public ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>- Throws:
IOException
-
getScheduledEventId
public long getScheduledEventId()The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;- Specified by:
getScheduledEventIdin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The scheduledEventId.
-
setScheduledEventId
The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;- Parameters:
value- The scheduledEventId to set.- Returns:
- This builder for chaining.
-
clearScheduledEventId
The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;- Returns:
- This builder for chaining.
-
getIdentity
id of the worker that picked up this task
string identity = 2;- Specified by:
getIdentityin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()id of the worker that picked up this task
string identity = 2;- Specified by:
getIdentityBytesin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
id of the worker that picked up this task
string identity = 2;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
id of the worker that picked up this task
string identity = 2;- Returns:
- This builder for chaining.
-
setIdentityBytes
public ActivityTaskStartedEventAttributes.Builder setIdentityBytes(com.google.protobuf.ByteString value) id of the worker that picked up this task
string identity = 2;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
getRequestId
This field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
string request_id = 3;- Specified by:
getRequestIdin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()This field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
string request_id = 3;- Specified by:
getRequestIdBytesin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
This field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
string request_id = 3;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
This field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
string request_id = 3;- Returns:
- This builder for chaining.
-
setRequestIdBytes
public ActivityTaskStartedEventAttributes.Builder setRequestIdBytes(com.google.protobuf.ByteString value) This field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
string request_id = 3;- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getAttempt
public int getAttempt()Starting at 1, the number of times this task has been attempted
int32 attempt = 4;- Specified by:
getAttemptin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The attempt.
-
setAttempt
Starting at 1, the number of times this task has been attempted
int32 attempt = 4;- Parameters:
value- The attempt to set.- Returns:
- This builder for chaining.
-
clearAttempt
Starting at 1, the number of times this task has been attempted
int32 attempt = 4;- Returns:
- This builder for chaining.
-
hasLastFailure
public boolean hasLastFailure()Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5;- Specified by:
hasLastFailurein interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- Whether the lastFailure field is set.
-
getLastFailure
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5;- Specified by:
getLastFailurein interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The lastFailure.
-
setLastFailure
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5; -
setLastFailure
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5; -
mergeLastFailure
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5; -
clearLastFailure
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5; -
getLastFailureBuilder
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5; -
getLastFailureOrBuilder
Will be set to the most recent failure details, if this task has previously failed and then been retried.
.temporal.api.failure.v1.Failure last_failure = 5;- Specified by:
getLastFailureOrBuilderin interfaceActivityTaskStartedEventAttributesOrBuilder
-
hasWorkerVersion
Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=485Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];- Specified by:
hasWorkerVersionin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- Whether the workerVersion field is set.
-
getWorkerVersion
Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=485Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];- Specified by:
getWorkerVersionin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The workerVersion.
-
setWorkerVersion
@Deprecated public ActivityTaskStartedEventAttributes.Builder setWorkerVersion(WorkerVersionStamp value) Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true]; -
setWorkerVersion
@Deprecated public ActivityTaskStartedEventAttributes.Builder setWorkerVersion(WorkerVersionStamp.Builder builderForValue) Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true]; -
mergeWorkerVersion
@Deprecated public ActivityTaskStartedEventAttributes.Builder mergeWorkerVersion(WorkerVersionStamp value) Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true]; -
clearWorkerVersion
Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true]; -
getWorkerVersionBuilder
Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true]; -
getWorkerVersionOrBuilder
Deprecated.Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
.temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];- Specified by:
getWorkerVersionOrBuilderin interfaceActivityTaskStartedEventAttributesOrBuilder
-
getBuildIdRedirectCounter
Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
int64 build_id_redirect_counter = 7 [deprecated = true];- Specified by:
getBuildIdRedirectCounterin interfaceActivityTaskStartedEventAttributesOrBuilder- Returns:
- The buildIdRedirectCounter.
-
setBuildIdRedirectCounter
Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
int64 build_id_redirect_counter = 7 [deprecated = true];- Parameters:
value- The buildIdRedirectCounter to set.- Returns:
- This builder for chaining.
-
clearBuildIdRedirectCounter
Deprecated.temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
int64 build_id_redirect_counter = 7 [deprecated = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final ActivityTaskStartedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
-
mergeUnknownFields
public final ActivityTaskStartedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
-