Package io.temporal.api.history.v1
Class WorkflowExecutionFailedEventAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
- io.temporal.api.history.v1.WorkflowExecutionFailedEventAttributes.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,WorkflowExecutionFailedEventAttributesOrBuilder
,java.lang.Cloneable
- Enclosing class:
- WorkflowExecutionFailedEventAttributes
public static final class WorkflowExecutionFailedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder> implements WorkflowExecutionFailedEventAttributesOrBuilder
Protobuf typetemporal.api.history.v1.WorkflowExecutionFailedEventAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowExecutionFailedEventAttributes.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowExecutionFailedEventAttributes
build()
WorkflowExecutionFailedEventAttributes
buildPartial()
WorkflowExecutionFailedEventAttributes.Builder
clear()
WorkflowExecutionFailedEventAttributes.Builder
clearFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)WorkflowExecutionFailedEventAttributes.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
WorkflowExecutionFailedEventAttributes.Builder
clearNewExecutionRunId()
If another run is started by cron or retry, this contains the new run id.WorkflowExecutionFailedEventAttributes.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
WorkflowExecutionFailedEventAttributes.Builder
clearRetryState()
.temporal.api.enums.v1.RetryState retry_state = 2;
WorkflowExecutionFailedEventAttributes.Builder
clearWorkflowTaskCompletedEventId()
The `WORKFLOW_TASK_COMPLETED` event which this command was reported withWorkflowExecutionFailedEventAttributes.Builder
clone()
WorkflowExecutionFailedEventAttributes
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Failure
getFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)Failure.Builder
getFailureBuilder()
Serialized result of workflow failure (ex: An exception thrown, or error returned)FailureOrBuilder
getFailureOrBuilder()
Serialized result of workflow failure (ex: An exception thrown, or error returned)java.lang.String
getNewExecutionRunId()
If another run is started by cron or retry, this contains the new run id.com.google.protobuf.ByteString
getNewExecutionRunIdBytes()
If another run is started by cron or retry, this contains the new run id.RetryState
getRetryState()
.temporal.api.enums.v1.RetryState retry_state = 2;
int
getRetryStateValue()
.temporal.api.enums.v1.RetryState retry_state = 2;
long
getWorkflowTaskCompletedEventId()
The `WORKFLOW_TASK_COMPLETED` event which this command was reported withboolean
hasFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
WorkflowExecutionFailedEventAttributes.Builder
mergeFailure(Failure value)
Serialized result of workflow failure (ex: An exception thrown, or error returned)WorkflowExecutionFailedEventAttributes.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
WorkflowExecutionFailedEventAttributes.Builder
mergeFrom(com.google.protobuf.Message other)
WorkflowExecutionFailedEventAttributes.Builder
mergeFrom(WorkflowExecutionFailedEventAttributes other)
WorkflowExecutionFailedEventAttributes.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
WorkflowExecutionFailedEventAttributes.Builder
setFailure(Failure value)
Serialized result of workflow failure (ex: An exception thrown, or error returned)WorkflowExecutionFailedEventAttributes.Builder
setFailure(Failure.Builder builderForValue)
Serialized result of workflow failure (ex: An exception thrown, or error returned)WorkflowExecutionFailedEventAttributes.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowExecutionFailedEventAttributes.Builder
setNewExecutionRunId(java.lang.String value)
If another run is started by cron or retry, this contains the new run id.WorkflowExecutionFailedEventAttributes.Builder
setNewExecutionRunIdBytes(com.google.protobuf.ByteString value)
If another run is started by cron or retry, this contains the new run id.WorkflowExecutionFailedEventAttributes.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
WorkflowExecutionFailedEventAttributes.Builder
setRetryState(RetryState value)
.temporal.api.enums.v1.RetryState retry_state = 2;
WorkflowExecutionFailedEventAttributes.Builder
setRetryStateValue(int value)
.temporal.api.enums.v1.RetryState retry_state = 2;
WorkflowExecutionFailedEventAttributes.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
WorkflowExecutionFailedEventAttributes.Builder
setWorkflowTaskCompletedEventId(long value)
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
clear
public WorkflowExecutionFailedEventAttributes.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
getDefaultInstanceForType
public WorkflowExecutionFailedEventAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkflowExecutionFailedEventAttributes build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkflowExecutionFailedEventAttributes buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkflowExecutionFailedEventAttributes.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
setField
public WorkflowExecutionFailedEventAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
clearField
public WorkflowExecutionFailedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
clearOneof
public WorkflowExecutionFailedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
setRepeatedField
public WorkflowExecutionFailedEventAttributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
addRepeatedField
public WorkflowExecutionFailedEventAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public WorkflowExecutionFailedEventAttributes.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public WorkflowExecutionFailedEventAttributes.Builder mergeFrom(WorkflowExecutionFailedEventAttributes other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public WorkflowExecutionFailedEventAttributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkflowExecutionFailedEventAttributes.Builder>
- Throws:
java.io.IOException
-
hasFailure
public boolean hasFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
- Specified by:
hasFailure
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- Whether the failure field is set.
-
getFailure
public Failure getFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
- Specified by:
getFailure
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The failure.
-
setFailure
public WorkflowExecutionFailedEventAttributes.Builder setFailure(Failure value)
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
-
setFailure
public WorkflowExecutionFailedEventAttributes.Builder setFailure(Failure.Builder builderForValue)
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
-
mergeFailure
public WorkflowExecutionFailedEventAttributes.Builder mergeFailure(Failure value)
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
-
clearFailure
public WorkflowExecutionFailedEventAttributes.Builder clearFailure()
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
-
getFailureBuilder
public Failure.Builder getFailureBuilder()
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
-
getFailureOrBuilder
public FailureOrBuilder getFailureOrBuilder()
Serialized result of workflow failure (ex: An exception thrown, or error returned)
.temporal.api.failure.v1.Failure failure = 1;
- Specified by:
getFailureOrBuilder
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
-
getRetryStateValue
public int getRetryStateValue()
.temporal.api.enums.v1.RetryState retry_state = 2;
- Specified by:
getRetryStateValue
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The enum numeric value on the wire for retryState.
-
setRetryStateValue
public WorkflowExecutionFailedEventAttributes.Builder setRetryStateValue(int value)
.temporal.api.enums.v1.RetryState retry_state = 2;
- Parameters:
value
- The enum numeric value on the wire for retryState to set.- Returns:
- This builder for chaining.
-
getRetryState
public RetryState getRetryState()
.temporal.api.enums.v1.RetryState retry_state = 2;
- Specified by:
getRetryState
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The retryState.
-
setRetryState
public WorkflowExecutionFailedEventAttributes.Builder setRetryState(RetryState value)
.temporal.api.enums.v1.RetryState retry_state = 2;
- Parameters:
value
- The retryState to set.- Returns:
- This builder for chaining.
-
clearRetryState
public WorkflowExecutionFailedEventAttributes.Builder clearRetryState()
.temporal.api.enums.v1.RetryState retry_state = 2;
- Returns:
- This builder for chaining.
-
getWorkflowTaskCompletedEventId
public long getWorkflowTaskCompletedEventId()
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 3;
- Specified by:
getWorkflowTaskCompletedEventId
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The workflowTaskCompletedEventId.
-
setWorkflowTaskCompletedEventId
public WorkflowExecutionFailedEventAttributes.Builder setWorkflowTaskCompletedEventId(long value)
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 3;
- Parameters:
value
- The workflowTaskCompletedEventId to set.- Returns:
- This builder for chaining.
-
clearWorkflowTaskCompletedEventId
public WorkflowExecutionFailedEventAttributes.Builder clearWorkflowTaskCompletedEventId()
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 3;
- Returns:
- This builder for chaining.
-
getNewExecutionRunId
public java.lang.String getNewExecutionRunId()
If another run is started by cron or retry, this contains the new run id.
string new_execution_run_id = 4;
- Specified by:
getNewExecutionRunId
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The newExecutionRunId.
-
getNewExecutionRunIdBytes
public com.google.protobuf.ByteString getNewExecutionRunIdBytes()
If another run is started by cron or retry, this contains the new run id.
string new_execution_run_id = 4;
- Specified by:
getNewExecutionRunIdBytes
in interfaceWorkflowExecutionFailedEventAttributesOrBuilder
- Returns:
- The bytes for newExecutionRunId.
-
setNewExecutionRunId
public WorkflowExecutionFailedEventAttributes.Builder setNewExecutionRunId(java.lang.String value)
If another run is started by cron or retry, this contains the new run id.
string new_execution_run_id = 4;
- Parameters:
value
- The newExecutionRunId to set.- Returns:
- This builder for chaining.
-
clearNewExecutionRunId
public WorkflowExecutionFailedEventAttributes.Builder clearNewExecutionRunId()
If another run is started by cron or retry, this contains the new run id.
string new_execution_run_id = 4;
- Returns:
- This builder for chaining.
-
setNewExecutionRunIdBytes
public WorkflowExecutionFailedEventAttributes.Builder setNewExecutionRunIdBytes(com.google.protobuf.ByteString value)
If another run is started by cron or retry, this contains the new run id.
string new_execution_run_id = 4;
- Parameters:
value
- The bytes for newExecutionRunId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final WorkflowExecutionFailedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
mergeUnknownFields
public final WorkflowExecutionFailedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionFailedEventAttributes.Builder>
-
-