Class RequestCancelExternalWorkflowExecutionCommandAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
io.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder,Cloneable
- Enclosing class:
RequestCancelExternalWorkflowExecutionCommandAttributes
public static final class RequestCancelExternalWorkflowExecutionCommandAttributes.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
implements RequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder
Protobuf type
temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Set this to true if the workflow being cancelled is a child of the workflow originating this command.Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Reason for requesting the cancellationstring run_id = 3;string workflow_id = 2;clone()booleanSet this to true if the workflow being cancelled is a child of the workflow originating this command.Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated.Reason for requesting the cancellationcom.google.protobuf.ByteStringReason for requesting the cancellationgetRunId()string run_id = 3;com.google.protobuf.ByteStringstring run_id = 3;string workflow_id = 2;com.google.protobuf.ByteStringstring workflow_id = 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) setChildWorkflowOnly(boolean value) Set this to true if the workflow being cancelled is a child of the workflow originating this command.setControl(String value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated.setControlBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated.setNamespace(String value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated.setNamespaceBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated.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) string run_id = 3;setRunIdBytes(com.google.protobuf.ByteString value) string run_id = 3;setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWorkflowId(String value) string workflow_id = 2;setWorkflowIdBytes(com.google.protobuf.ByteString value) string workflow_id = 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<RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
setField
public RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
clearField
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
clearOneof
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
setRepeatedField
public RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
addRepeatedField
public RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
mergeFrom
public RequestCancelExternalWorkflowExecutionCommandAttributes.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<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>- Throws:
IOException
-
getNamespace
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated. See temporal/api/command/v1/message.proto;l=107Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.
string namespace = 1 [deprecated = true];- Specified by:
getNamespacein interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated. See temporal/api/command/v1/message.proto;l=107Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.
string namespace = 1 [deprecated = true];- Specified by:
getNamespaceBytesin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
@Deprecated public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setNamespace(String value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated. See temporal/api/command/v1/message.proto;l=107Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.
string namespace = 1 [deprecated = true];- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated. See temporal/api/command/v1/message.proto;l=107Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.
string namespace = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
setNamespaceBytes
@Deprecated public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setNamespaceBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.namespace is deprecated. See temporal/api/command/v1/message.proto;l=107Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.
string namespace = 1 [deprecated = true];- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getWorkflowId
string workflow_id = 2;- Specified by:
getWorkflowIdin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The workflowId.
-
getWorkflowIdBytes
public com.google.protobuf.ByteString getWorkflowIdBytes()string workflow_id = 2;- Specified by:
getWorkflowIdBytesin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The bytes for workflowId.
-
setWorkflowId
string workflow_id = 2;- Parameters:
value- The workflowId to set.- Returns:
- This builder for chaining.
-
clearWorkflowId
string workflow_id = 2;- Returns:
- This builder for chaining.
-
setWorkflowIdBytes
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) string workflow_id = 2;- Parameters:
value- The bytes for workflowId to set.- Returns:
- This builder for chaining.
-
getRunId
string run_id = 3;- Specified by:
getRunIdin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()string run_id = 3;- Specified by:
getRunIdBytesin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The bytes for runId.
-
setRunId
string run_id = 3;- Parameters:
value- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
string run_id = 3;- Returns:
- This builder for chaining.
-
setRunIdBytes
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setRunIdBytes(com.google.protobuf.ByteString value) string run_id = 3;- Parameters:
value- The bytes for runId to set.- Returns:
- This builder for chaining.
-
getControl
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated. See temporal/api/command/v1/message.proto;l=111Deprecated.
string control = 4 [deprecated = true];- Specified by:
getControlin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The control.
-
getControlBytes
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated. See temporal/api/command/v1/message.proto;l=111Deprecated.
string control = 4 [deprecated = true];- Specified by:
getControlBytesin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The bytes for control.
-
setControl
@Deprecated public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setControl(String value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated. See temporal/api/command/v1/message.proto;l=111Deprecated.
string control = 4 [deprecated = true];- Parameters:
value- The control to set.- Returns:
- This builder for chaining.
-
clearControl
Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated. See temporal/api/command/v1/message.proto;l=111Deprecated.
string control = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
setControlBytes
@Deprecated public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setControlBytes(com.google.protobuf.ByteString value) Deprecated.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.control is deprecated. See temporal/api/command/v1/message.proto;l=111Deprecated.
string control = 4 [deprecated = true];- Parameters:
value- The bytes for control to set.- Returns:
- This builder for chaining.
-
getChildWorkflowOnly
public boolean getChildWorkflowOnly()Set this to true if the workflow being cancelled is a child of the workflow originating this command. The request will be rejected if it is set to true and the target workflow is *not* a child of the requesting workflow.
bool child_workflow_only = 5;- Specified by:
getChildWorkflowOnlyin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The childWorkflowOnly.
-
setChildWorkflowOnly
public RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setChildWorkflowOnly(boolean value) Set this to true if the workflow being cancelled is a child of the workflow originating this command. The request will be rejected if it is set to true and the target workflow is *not* a child of the requesting workflow.
bool child_workflow_only = 5;- Parameters:
value- The childWorkflowOnly to set.- Returns:
- This builder for chaining.
-
clearChildWorkflowOnly
Set this to true if the workflow being cancelled is a child of the workflow originating this command. The request will be rejected if it is set to true and the target workflow is *not* a child of the requesting workflow.
bool child_workflow_only = 5;- Returns:
- This builder for chaining.
-
getReason
Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Reason for requesting the cancellation
string reason = 6;- Specified by:
getReasonBytesin interfaceRequestCancelExternalWorkflowExecutionCommandAttributesOrBuilder- 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 RequestCancelExternalWorkflowExecutionCommandAttributes.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 RequestCancelExternalWorkflowExecutionCommandAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-
mergeUnknownFields
public final RequestCancelExternalWorkflowExecutionCommandAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestCancelExternalWorkflowExecutionCommandAttributes.Builder>
-