Package io.temporal.api.history.v1
Class RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
- io.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder,java.lang.Cloneable
- Enclosing class:
- RequestCancelExternalWorkflowExecutionFailedEventAttributes
public static final class RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder> implements RequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder
Protobuf typetemporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes
-
-
Method Summary
-
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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
clear
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
getDefaultInstanceForType
public RequestCancelExternalWorkflowExecutionFailedEventAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RequestCancelExternalWorkflowExecutionFailedEventAttributes build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RequestCancelExternalWorkflowExecutionFailedEventAttributes buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
setField
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
clearField
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
clearOneof
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
setRepeatedField
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
addRepeatedField
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder mergeFrom(RequestCancelExternalWorkflowExecutionFailedEventAttributes other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.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<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>- Throws:
java.io.IOException
-
getCauseValue
public int getCauseValue()
.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;- Specified by:
getCauseValuein interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The enum numeric value on the wire for cause.
-
setCauseValue
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setCauseValue(int value)
.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;- Parameters:
value- The enum numeric value on the wire for cause to set.- Returns:
- This builder for chaining.
-
getCause
public CancelExternalWorkflowExecutionFailedCause getCause()
.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;- Specified by:
getCausein interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The cause.
-
setCause
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setCause(CancelExternalWorkflowExecutionFailedCause value)
.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;- Parameters:
value- The cause to set.- Returns:
- This builder for chaining.
-
clearCause
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearCause()
.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;- 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 = 2;- Specified by:
getWorkflowTaskCompletedEventIdin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The workflowTaskCompletedEventId.
-
setWorkflowTaskCompletedEventId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setWorkflowTaskCompletedEventId(long value)
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 2;- Parameters:
value- The workflowTaskCompletedEventId to set.- Returns:
- This builder for chaining.
-
clearWorkflowTaskCompletedEventId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearWorkflowTaskCompletedEventId()
The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 2;- Returns:
- This builder for chaining.
-
getNamespace
public java.lang.String getNamespace()
Namespace of the workflow which failed to cancel. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 3;- Specified by:
getNamespacein interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
Namespace of the workflow which failed to cancel. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 3;- Specified by:
getNamespaceBytesin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setNamespace(java.lang.String value)
Namespace of the workflow which failed to cancel. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 3;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearNamespace()
Namespace of the workflow which failed to cancel. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 3;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
Namespace of the workflow which failed to cancel. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 3;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getNamespaceId
public java.lang.String getNamespaceId()
string namespace_id = 7;- Specified by:
getNamespaceIdin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The namespaceId.
-
getNamespaceIdBytes
public com.google.protobuf.ByteString getNamespaceIdBytes()
string namespace_id = 7;- Specified by:
getNamespaceIdBytesin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The bytes for namespaceId.
-
setNamespaceId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setNamespaceId(java.lang.String value)
string namespace_id = 7;- Parameters:
value- The namespaceId to set.- Returns:
- This builder for chaining.
-
clearNamespaceId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearNamespaceId()
string namespace_id = 7;- Returns:
- This builder for chaining.
-
setNamespaceIdBytes
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setNamespaceIdBytes(com.google.protobuf.ByteString value)
string namespace_id = 7;- Parameters:
value- The bytes for namespaceId to set.- Returns:
- This builder for chaining.
-
hasWorkflowExecution
public boolean hasWorkflowExecution()
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;- Specified by:
hasWorkflowExecutionin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- Whether the workflowExecution field is set.
-
getWorkflowExecution
public WorkflowExecution getWorkflowExecution()
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;- Specified by:
getWorkflowExecutionin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The workflowExecution.
-
setWorkflowExecution
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setWorkflowExecution(WorkflowExecution value)
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
-
setWorkflowExecution
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setWorkflowExecution(WorkflowExecution.Builder builderForValue)
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
-
mergeWorkflowExecution
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder mergeWorkflowExecution(WorkflowExecution value)
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
-
clearWorkflowExecution
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearWorkflowExecution()
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
-
getWorkflowExecutionBuilder
public WorkflowExecution.Builder getWorkflowExecutionBuilder()
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
-
getWorkflowExecutionOrBuilder
public WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder()
.temporal.api.common.v1.WorkflowExecution workflow_execution = 4;- Specified by:
getWorkflowExecutionOrBuilderin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder
-
getInitiatedEventId
public long getInitiatedEventId()
id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure corresponds to
int64 initiated_event_id = 5;- Specified by:
getInitiatedEventIdin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The initiatedEventId.
-
setInitiatedEventId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setInitiatedEventId(long value)
id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure corresponds to
int64 initiated_event_id = 5;- Parameters:
value- The initiatedEventId to set.- Returns:
- This builder for chaining.
-
clearInitiatedEventId
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearInitiatedEventId()
id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure corresponds to
int64 initiated_event_id = 5;- Returns:
- This builder for chaining.
-
getControl
public java.lang.String getControl()
Deprecated
string control = 6;- Specified by:
getControlin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The control.
-
getControlBytes
public com.google.protobuf.ByteString getControlBytes()
Deprecated
string control = 6;- Specified by:
getControlBytesin interfaceRequestCancelExternalWorkflowExecutionFailedEventAttributesOrBuilder- Returns:
- The bytes for control.
-
setControl
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setControl(java.lang.String value)
Deprecated
string control = 6;- Parameters:
value- The control to set.- Returns:
- This builder for chaining.
-
clearControl
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder clearControl()
Deprecated
string control = 6;- Returns:
- This builder for chaining.
-
setControlBytes
public RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setControlBytes(com.google.protobuf.ByteString value)
Deprecated
string control = 6;- Parameters:
value- The bytes for control to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
mergeUnknownFields
public final RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionFailedEventAttributes.Builder>
-
-