Class WorkflowExecutionCancelRequestedEventAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
io.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkflowExecutionCancelRequestedEventAttributesOrBuilder,Cloneable
- Enclosing class:
WorkflowExecutionCancelRequestedEventAttributes
public static final class WorkflowExecutionCancelRequestedEventAttributes.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
implements WorkflowExecutionCancelRequestedEventAttributesOrBuilder
Protobuf type
temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()User provided reason for requesting cancellationThe ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow..temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) id of the worker or client who requested this cancelclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getCause()User provided reason for requesting cancellationcom.google.protobuf.ByteStringUser provided reason for requesting cancellationstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow..temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;id of the worker or client who requested this cancelcom.google.protobuf.ByteStringid of the worker or client who requested this cancelboolean.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal boolean.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) User provided reason for requesting cancellationsetCauseBytes(com.google.protobuf.ByteString value) User provided reason for requesting cancellationsetExternalInitiatedEventId(long value) The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow..temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;setExternalWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;setIdentity(String value) id of the worker or client who requested this cancelsetIdentityBytes(com.google.protobuf.ByteString value) id of the worker or client who requested this cancelsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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<WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
setField
public WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
clearField
public WorkflowExecutionCancelRequestedEventAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
clearOneof
public WorkflowExecutionCancelRequestedEventAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
setRepeatedField
public WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
addRepeatedField
public WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
mergeFrom
public WorkflowExecutionCancelRequestedEventAttributes.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
mergeFrom
public WorkflowExecutionCancelRequestedEventAttributes.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<WorkflowExecutionCancelRequestedEventAttributes.Builder>- Throws:
IOException
-
getCause
User provided reason for requesting cancellation
string cause = 1;- Specified by:
getCausein interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The cause.
-
getCauseBytes
public com.google.protobuf.ByteString getCauseBytes()User provided reason for requesting cancellation
string cause = 1;- Specified by:
getCauseBytesin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The bytes for cause.
-
setCause
User provided reason for requesting cancellation
string cause = 1;- Parameters:
value- The cause to set.- Returns:
- This builder for chaining.
-
clearCause
User provided reason for requesting cancellation
string cause = 1;- Returns:
- This builder for chaining.
-
setCauseBytes
public WorkflowExecutionCancelRequestedEventAttributes.Builder setCauseBytes(com.google.protobuf.ByteString value) User provided reason for requesting cancellation
string cause = 1;- Parameters:
value- The bytes for cause to set.- Returns:
- This builder for chaining.
-
getExternalInitiatedEventId
public long getExternalInitiatedEventId()The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow.
int64 external_initiated_event_id = 2;- Specified by:
getExternalInitiatedEventIdin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The externalInitiatedEventId.
-
setExternalInitiatedEventId
public WorkflowExecutionCancelRequestedEventAttributes.Builder setExternalInitiatedEventId(long value) The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow.
int64 external_initiated_event_id = 2;- Parameters:
value- The externalInitiatedEventId to set.- Returns:
- This builder for chaining.
-
clearExternalInitiatedEventId
The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow.
int64 external_initiated_event_id = 2;- Returns:
- This builder for chaining.
-
hasExternalWorkflowExecution
public boolean hasExternalWorkflowExecution().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;- Specified by:
hasExternalWorkflowExecutionin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- Whether the externalWorkflowExecution field is set.
-
getExternalWorkflowExecution
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;- Specified by:
getExternalWorkflowExecutionin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The externalWorkflowExecution.
-
setExternalWorkflowExecution
public WorkflowExecutionCancelRequestedEventAttributes.Builder setExternalWorkflowExecution(WorkflowExecution value) .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3; -
setExternalWorkflowExecution
public WorkflowExecutionCancelRequestedEventAttributes.Builder setExternalWorkflowExecution(WorkflowExecution.Builder builderForValue) .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3; -
mergeExternalWorkflowExecution
public WorkflowExecutionCancelRequestedEventAttributes.Builder mergeExternalWorkflowExecution(WorkflowExecution value) .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3; -
clearExternalWorkflowExecution
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3; -
getExternalWorkflowExecutionBuilder
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3; -
getExternalWorkflowExecutionOrBuilder
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;- Specified by:
getExternalWorkflowExecutionOrBuilderin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder
-
getIdentity
id of the worker or client who requested this cancel
string identity = 4;- Specified by:
getIdentityin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()id of the worker or client who requested this cancel
string identity = 4;- Specified by:
getIdentityBytesin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
id of the worker or client who requested this cancel
string identity = 4;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
id of the worker or client who requested this cancel
string identity = 4;- Returns:
- This builder for chaining.
-
setIdentityBytes
public WorkflowExecutionCancelRequestedEventAttributes.Builder setIdentityBytes(com.google.protobuf.ByteString value) id of the worker or client who requested this cancel
string identity = 4;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final WorkflowExecutionCancelRequestedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
mergeUnknownFields
public final WorkflowExecutionCancelRequestedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-