Class RequestCancelWorkflowExecutionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RequestCancelWorkflowExecutionRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
io.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestCancelWorkflowExecutionRequestOrBuilder,Cloneable
- Enclosing class:
RequestCancelWorkflowExecutionRequest
public static final class RequestCancelWorkflowExecutionRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
implements RequestCancelWorkflowExecutionRequestOrBuilder
Protobuf type
temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllLinks(Iterable<? extends Link> values) Links to be associated with the WorkflowExecutionCanceled event.Links to be associated with the WorkflowExecutionCanceled event.addLinks(int index, Link.Builder builderForValue) Links to be associated with the WorkflowExecutionCanceled event.Links to be associated with the WorkflowExecutionCanceled event.addLinks(Link.Builder builderForValue) Links to be associated with the WorkflowExecutionCanceled event.Links to be associated with the WorkflowExecutionCanceled event.addLinksBuilder(int index) Links to be associated with the WorkflowExecutionCanceled event.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.The identity of the worker/clientLinks to be associated with the WorkflowExecutionCanceled event.string namespace = 1;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Reason for requesting the cancellationUsed to de-dupe cancellation requests.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.com.google.protobuf.ByteStringIf set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.The identity of the worker/clientcom.google.protobuf.ByteStringThe identity of the worker/clientgetLinks(int index) Links to be associated with the WorkflowExecutionCanceled event.getLinksBuilder(int index) Links to be associated with the WorkflowExecutionCanceled event.Links to be associated with the WorkflowExecutionCanceled event.intLinks to be associated with the WorkflowExecutionCanceled event.Links to be associated with the WorkflowExecutionCanceled event.getLinksOrBuilder(int index) Links to be associated with the WorkflowExecutionCanceled event.List<? extends LinkOrBuilder> Links to be associated with the WorkflowExecutionCanceled event.string namespace = 1;com.google.protobuf.ByteStringstring namespace = 1;Reason for requesting the cancellationcom.google.protobuf.ByteStringReason for requesting the cancellationUsed to de-dupe cancellation requestscom.google.protobuf.ByteStringUsed to de-dupe cancellation requests.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;boolean.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;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 = 2;removeLinks(int index) Links to be associated with the WorkflowExecutionCanceled event.setFirstExecutionRunId(String value) If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.setFirstExecutionRunIdBytes(com.google.protobuf.ByteString value) If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.setIdentity(String value) The identity of the worker/clientsetIdentityBytes(com.google.protobuf.ByteString value) The identity of the worker/clientLinks to be associated with the WorkflowExecutionCanceled event.setLinks(int index, Link.Builder builderForValue) Links to be associated with the WorkflowExecutionCanceled event.setNamespace(String value) string namespace = 1;setNamespaceBytes(com.google.protobuf.ByteString value) string namespace = 1;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) setRequestId(String value) Used to de-dupe cancellation requestssetRequestIdBytes(com.google.protobuf.ByteString value) Used to de-dupe cancellation requestssetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;setWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;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<RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.Builder>
-
setField
public RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.Builder>
-
clearField
public RequestCancelWorkflowExecutionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-
clearOneof
public RequestCancelWorkflowExecutionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-
setRepeatedField
public RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.Builder>
-
addRepeatedField
public RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-
mergeFrom
public RequestCancelWorkflowExecutionRequest.Builder mergeFrom(RequestCancelWorkflowExecutionRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-
mergeFrom
public RequestCancelWorkflowExecutionRequest.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<RequestCancelWorkflowExecutionRequest.Builder>- Throws:
IOException
-
getNamespace
string namespace = 1;- Specified by:
getNamespacein interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()string namespace = 1;- Specified by:
getNamespaceBytesin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public RequestCancelWorkflowExecutionRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value) string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
hasWorkflowExecution
public boolean hasWorkflowExecution().temporal.api.common.v1.WorkflowExecution workflow_execution = 2;- Specified by:
hasWorkflowExecutionin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- Whether the workflowExecution field is set.
-
getWorkflowExecution
.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;- Specified by:
getWorkflowExecutionin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The workflowExecution.
-
setWorkflowExecution
.temporal.api.common.v1.WorkflowExecution workflow_execution = 2; -
setWorkflowExecution
public RequestCancelWorkflowExecutionRequest.Builder setWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; -
mergeWorkflowExecution
public RequestCancelWorkflowExecutionRequest.Builder mergeWorkflowExecution(WorkflowExecution value) .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; -
clearWorkflowExecution
.temporal.api.common.v1.WorkflowExecution workflow_execution = 2; -
getWorkflowExecutionBuilder
.temporal.api.common.v1.WorkflowExecution workflow_execution = 2; -
getWorkflowExecutionOrBuilder
.temporal.api.common.v1.WorkflowExecution workflow_execution = 2;- Specified by:
getWorkflowExecutionOrBuilderin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
getIdentity
The identity of the worker/client
string identity = 3;- Specified by:
getIdentityin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()The identity of the worker/client
string identity = 3;- Specified by:
getIdentityBytesin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
The identity of the worker/client
string identity = 3;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
The identity of the worker/client
string identity = 3;- Returns:
- This builder for chaining.
-
setIdentityBytes
public RequestCancelWorkflowExecutionRequest.Builder setIdentityBytes(com.google.protobuf.ByteString value) The identity of the worker/client
string identity = 3;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
getRequestId
Used to de-dupe cancellation requests
string request_id = 4;- Specified by:
getRequestIdin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()Used to de-dupe cancellation requests
string request_id = 4;- Specified by:
getRequestIdBytesin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
Used to de-dupe cancellation requests
string request_id = 4;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
Used to de-dupe cancellation requests
string request_id = 4;- Returns:
- This builder for chaining.
-
setRequestIdBytes
public RequestCancelWorkflowExecutionRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value) Used to de-dupe cancellation requests
string request_id = 4;- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getFirstExecutionRunId
If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.
string first_execution_run_id = 5;- Specified by:
getFirstExecutionRunIdin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The firstExecutionRunId.
-
getFirstExecutionRunIdBytes
public com.google.protobuf.ByteString getFirstExecutionRunIdBytes()If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.
string first_execution_run_id = 5;- Specified by:
getFirstExecutionRunIdBytesin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The bytes for firstExecutionRunId.
-
setFirstExecutionRunId
If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.
string first_execution_run_id = 5;- Parameters:
value- The firstExecutionRunId to set.- Returns:
- This builder for chaining.
-
clearFirstExecutionRunId
If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.
string first_execution_run_id = 5;- Returns:
- This builder for chaining.
-
setFirstExecutionRunIdBytes
public RequestCancelWorkflowExecutionRequest.Builder setFirstExecutionRunIdBytes(com.google.protobuf.ByteString value) If set, this call will error if the most recent (if no run id is set on `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id.
string first_execution_run_id = 5;- Parameters:
value- The bytes for firstExecutionRunId to set.- Returns:
- This builder for chaining.
-
getReason
Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonBytesin interfaceRequestCancelWorkflowExecutionRequestOrBuilder- Returns:
- The bytes for reason.
-
setReason
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 RequestCancelWorkflowExecutionRequest.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.
-
getLinksList
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7;- Specified by:
getLinksListin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
getLinksCount
public int getLinksCount()Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7;- Specified by:
getLinksCountin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
getLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7;- Specified by:
getLinksin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
setLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
setLinks
public RequestCancelWorkflowExecutionRequest.Builder setLinks(int index, Link.Builder builderForValue) Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addLinks
public RequestCancelWorkflowExecutionRequest.Builder addLinks(int index, Link.Builder builderForValue) Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addAllLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
clearLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
removeLinks
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
getLinksBuilder
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
getLinksOrBuilder
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7;- Specified by:
getLinksOrBuilderin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
getLinksOrBuilderList
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7;- Specified by:
getLinksOrBuilderListin interfaceRequestCancelWorkflowExecutionRequestOrBuilder
-
addLinksBuilder
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
addLinksBuilder
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
getLinksBuilderList
Links to be associated with the WorkflowExecutionCanceled event.
repeated .temporal.api.common.v1.Link links = 7; -
setUnknownFields
public final RequestCancelWorkflowExecutionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-
mergeUnknownFields
public final RequestCancelWorkflowExecutionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelWorkflowExecutionRequest.Builder>
-