Class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
io.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder,Cloneable
- Enclosing class:
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
public static final class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
implements RequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder
Protobuf type
temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Workers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the requestDeprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The namespace the workflow to be cancelled lives in.string namespace_id = 7;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Reason for requesting the cancellation.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;The `WORKFLOW_TASK_COMPLETED` event which this command was reported withclone()booleanWorkers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the requestDeprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe namespace the workflow to be cancelled lives in.com.google.protobuf.ByteStringThe namespace the workflow to be cancelled lives in.string namespace_id = 7;com.google.protobuf.ByteStringstring namespace_id = 7;Reason for requesting the cancellationcom.google.protobuf.ByteStringReason for requesting the cancellation.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;longThe `WORKFLOW_TASK_COMPLETED` event which this command was reported withboolean.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;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) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;setChildWorkflowOnly(boolean value) Workers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the requestsetControl(String value) Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated.setControlBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated.setNamespace(String value) The namespace the workflow to be cancelled lives in.setNamespaceBytes(com.google.protobuf.ByteString value) The namespace the workflow to be cancelled lives in.setNamespaceId(String value) string namespace_id = 7;setNamespaceIdBytes(com.google.protobuf.ByteString value) string namespace_id = 7;Reason for requesting the cancellationsetReasonBytes(com.google.protobuf.ByteString value) Reason for requesting the cancellationsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;setWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;setWorkflowTaskCompletedEventId(long value) The `WORKFLOW_TASK_COMPLETED` event which this command was reported withMethods 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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
setField
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
clearField
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
clearOneof
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
setRepeatedField
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
addRepeatedField
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>- Throws:
IOException
-
getWorkflowTaskCompletedEventId
public long getWorkflowTaskCompletedEventId()The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 1;- Specified by:
getWorkflowTaskCompletedEventIdin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The workflowTaskCompletedEventId.
-
setWorkflowTaskCompletedEventId
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setWorkflowTaskCompletedEventId(long value) The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 1;- Parameters:
value- The workflowTaskCompletedEventId to set.- Returns:
- This builder for chaining.
-
clearWorkflowTaskCompletedEventId
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearWorkflowTaskCompletedEventId()The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
int64 workflow_task_completed_event_id = 1;- Returns:
- This builder for chaining.
-
getNamespace
The namespace the workflow to be cancelled lives in. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 2;- Specified by:
getNamespacein interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()The namespace the workflow to be cancelled lives in. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 2;- Specified by:
getNamespaceBytesin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setNamespace(String value) The namespace the workflow to be cancelled lives in. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 2;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
The namespace the workflow to be cancelled lives in. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 2;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setNamespaceBytes(com.google.protobuf.ByteString value) The namespace the workflow to be cancelled lives in. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
string namespace = 2;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getNamespaceId
string namespace_id = 7;- Specified by:
getNamespaceIdin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The namespaceId.
-
getNamespaceIdBytes
public com.google.protobuf.ByteString getNamespaceIdBytes()string namespace_id = 7;- Specified by:
getNamespaceIdBytesin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The bytes for namespaceId.
-
setNamespaceId
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setNamespaceId(String value) string namespace_id = 7;- Parameters:
value- The namespaceId to set.- Returns:
- This builder for chaining.
-
clearNamespaceId
string namespace_id = 7;- Returns:
- This builder for chaining.
-
setNamespaceIdBytes
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.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 = 3;- Specified by:
hasWorkflowExecutionin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- Whether the workflowExecution field is set.
-
getWorkflowExecution
.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;- Specified by:
getWorkflowExecutionin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The workflowExecution.
-
setWorkflowExecution
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setWorkflowExecution(WorkflowExecution value) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3; -
setWorkflowExecution
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3; -
mergeWorkflowExecution
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder mergeWorkflowExecution(WorkflowExecution value) .temporal.api.common.v1.WorkflowExecution workflow_execution = 3; -
clearWorkflowExecution
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearWorkflowExecution().temporal.api.common.v1.WorkflowExecution workflow_execution = 3; -
getWorkflowExecutionBuilder
.temporal.api.common.v1.WorkflowExecution workflow_execution = 3; -
getWorkflowExecutionOrBuilder
.temporal.api.common.v1.WorkflowExecution workflow_execution = 3;- Specified by:
getWorkflowExecutionOrBuilderin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder
-
getControl
Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated. See temporal/api/history/v1/message.proto;l=651Deprecated.
string control = 4 [deprecated = true];- Specified by:
getControlin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The control.
-
getControlBytes
Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated. See temporal/api/history/v1/message.proto;l=651Deprecated.
string control = 4 [deprecated = true];- Specified by:
getControlBytesin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The bytes for control.
-
setControl
@Deprecated public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setControl(String value) Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated. See temporal/api/history/v1/message.proto;l=651Deprecated.
string control = 4 [deprecated = true];- Parameters:
value- The control to set.- Returns:
- This builder for chaining.
-
clearControl
@Deprecated public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearControl()Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated. See temporal/api/history/v1/message.proto;l=651Deprecated.
string control = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
setControlBytes
@Deprecated public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setControlBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.control is deprecated. See temporal/api/history/v1/message.proto;l=651Deprecated.
string control = 4 [deprecated = true];- Parameters:
value- The bytes for control to set.- Returns:
- This builder for chaining.
-
getChildWorkflowOnly
public boolean getChildWorkflowOnly()Workers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the request
bool child_workflow_only = 5;- Specified by:
getChildWorkflowOnlyin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The childWorkflowOnly.
-
setChildWorkflowOnly
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setChildWorkflowOnly(boolean value) Workers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the request
bool child_workflow_only = 5;- Parameters:
value- The childWorkflowOnly to set.- Returns:
- This builder for chaining.
-
clearChildWorkflowOnly
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder clearChildWorkflowOnly()Workers are expected to set this to true if the workflow they are requesting to cancel is a child of the workflow which issued the request
bool child_workflow_only = 5;- Returns:
- This builder for chaining.
-
getReason
Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonBytesin interfaceRequestCancelExternalWorkflowExecutionInitiatedEventAttributesOrBuilder- Returns:
- The bytes for reason.
-
setReason
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setReason(String value) Reason for requesting the cancellation
string reason = 6;- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
Reason for requesting the cancellation
string reason = 6;- Returns:
- This builder for chaining.
-
setReasonBytes
public RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setReasonBytes(com.google.protobuf.ByteString value) Reason for requesting the cancellation
string reason = 6;- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-
mergeUnknownFields
public final RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Builder>
-