Class NexusOperationStartedEventAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NexusOperationStartedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
io.temporal.api.history.v1.NexusOperationStartedEventAttributes.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NexusOperationStartedEventAttributesOrBuilder,Cloneable
- Enclosing class:
NexusOperationStartedEventAttributes
public static final class NexusOperationStartedEventAttributes.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
implements NexusOperationStartedEventAttributesOrBuilder
Event marking an asynchronous operation was started by the responding Nexus handler. If the operation completes synchronously, this event is not generated. In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate this event upon receiving the operation completion via callback.Protobuf type
temporal.api.history.v1.NexusOperationStartedEventAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated.The operation token returned by the Nexus handler in the response to the StartOperation request.The request ID allocated at schedule time.The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated.The operation token returned by the Nexus handler in the response to the StartOperation request.com.google.protobuf.ByteStringThe operation token returned by the Nexus handler in the response to the StartOperation request.The request ID allocated at schedule time.com.google.protobuf.ByteStringThe request ID allocated at schedule time.longThe ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setOperationId(String value) Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated.setOperationIdBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated.setOperationToken(String value) The operation token returned by the Nexus handler in the response to the StartOperation request.setOperationTokenBytes(com.google.protobuf.ByteString value) The operation token returned by the Nexus handler in the response to the StartOperation request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestId(String value) The request ID allocated at schedule time.setRequestIdBytes(com.google.protobuf.ByteString value) The request ID allocated at schedule time.setScheduledEventId(long value) The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.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<NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>
-
setField
public NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>
-
clearField
public NexusOperationStartedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
-
clearOneof
public NexusOperationStartedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
-
setRepeatedField
public NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>
-
addRepeatedField
public NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NexusOperationStartedEventAttributes.Builder>
-
mergeFrom
public NexusOperationStartedEventAttributes.Builder mergeFrom(NexusOperationStartedEventAttributes other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
-
mergeFrom
public NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>- Throws:
IOException
-
getScheduledEventId
public long getScheduledEventId()The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.
int64 scheduled_event_id = 1;- Specified by:
getScheduledEventIdin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The scheduledEventId.
-
setScheduledEventId
The ID of the `NEXUS_OPERATION_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 `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.
int64 scheduled_event_id = 1;- Returns:
- This builder for chaining.
-
getOperationId
Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. Deprecated: Renamed to operation_token.
string operation_id = 3 [deprecated = true];- Specified by:
getOperationIdin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The operationId.
-
getOperationIdBytes
Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. Deprecated: Renamed to operation_token.
string operation_id = 3 [deprecated = true];- Specified by:
getOperationIdBytesin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The bytes for operationId.
-
setOperationId
Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. Deprecated: Renamed to operation_token.
string operation_id = 3 [deprecated = true];- Parameters:
value- The operationId to set.- Returns:
- This builder for chaining.
-
clearOperationId
Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. Deprecated: Renamed to operation_token.
string operation_id = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
setOperationIdBytes
@Deprecated public NexusOperationStartedEventAttributes.Builder setOperationIdBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. Deprecated: Renamed to operation_token.
string operation_id = 3 [deprecated = true];- Parameters:
value- The bytes for operationId to set.- Returns:
- This builder for chaining.
-
getRequestId
The request ID allocated at schedule time.
string request_id = 4;- Specified by:
getRequestIdin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()The request ID allocated at schedule time.
string request_id = 4;- Specified by:
getRequestIdBytesin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
The request ID allocated at schedule time.
string request_id = 4;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
The request ID allocated at schedule time.
string request_id = 4;- Returns:
- This builder for chaining.
-
setRequestIdBytes
public NexusOperationStartedEventAttributes.Builder setRequestIdBytes(com.google.protobuf.ByteString value) The request ID allocated at schedule time.
string request_id = 4;- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getOperationToken
The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.
string operation_token = 5;- Specified by:
getOperationTokenin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The operationToken.
-
getOperationTokenBytes
public com.google.protobuf.ByteString getOperationTokenBytes()The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.
string operation_token = 5;- Specified by:
getOperationTokenBytesin interfaceNexusOperationStartedEventAttributesOrBuilder- Returns:
- The bytes for operationToken.
-
setOperationToken
The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.
string operation_token = 5;- Parameters:
value- The operationToken to set.- Returns:
- This builder for chaining.
-
clearOperationToken
The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.
string operation_token = 5;- Returns:
- This builder for chaining.
-
setOperationTokenBytes
public NexusOperationStartedEventAttributes.Builder setOperationTokenBytes(com.google.protobuf.ByteString value) The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.
string operation_token = 5;- Parameters:
value- The bytes for operationToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final NexusOperationStartedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
-
mergeUnknownFields
public final NexusOperationStartedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
-