Package io.temporal.api.history.v1
Class WorkflowExecutionCancelRequestedEventAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- WorkflowExecutionCancelRequestedEventAttributes
public static final class WorkflowExecutionCancelRequestedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionCancelRequestedEventAttributes.Builder> implements WorkflowExecutionCancelRequestedEventAttributesOrBuilder
Protobuf typetemporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowExecutionCancelRequestedEventAttributes.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkflowExecutionCancelRequestedEventAttributesbuild()WorkflowExecutionCancelRequestedEventAttributesbuildPartial()WorkflowExecutionCancelRequestedEventAttributes.Builderclear()WorkflowExecutionCancelRequestedEventAttributes.BuilderclearCause()User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?WorkflowExecutionCancelRequestedEventAttributes.BuilderclearExternalInitiatedEventId()TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?WorkflowExecutionCancelRequestedEventAttributes.BuilderclearExternalWorkflowExecution().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecutionCancelRequestedEventAttributes.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WorkflowExecutionCancelRequestedEventAttributes.BuilderclearIdentity()id of the worker or client who requested this cancelWorkflowExecutionCancelRequestedEventAttributes.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WorkflowExecutionCancelRequestedEventAttributes.Builderclone()java.lang.StringgetCause()User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?com.google.protobuf.ByteStringgetCauseBytes()User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?WorkflowExecutionCancelRequestedEventAttributesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetExternalInitiatedEventId()TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?WorkflowExecutiongetExternalWorkflowExecution().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecution.BuildergetExternalWorkflowExecutionBuilder().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecutionOrBuildergetExternalWorkflowExecutionOrBuilder().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;java.lang.StringgetIdentity()id of the worker or client who requested this cancelcom.google.protobuf.ByteStringgetIdentityBytes()id of the worker or client who requested this cancelbooleanhasExternalWorkflowExecution().temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WorkflowExecutionCancelRequestedEventAttributes.BuildermergeExternalWorkflowExecution(WorkflowExecution value).temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecutionCancelRequestedEventAttributes.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WorkflowExecutionCancelRequestedEventAttributes.BuildermergeFrom(com.google.protobuf.Message other)WorkflowExecutionCancelRequestedEventAttributes.BuildermergeFrom(WorkflowExecutionCancelRequestedEventAttributes other)WorkflowExecutionCancelRequestedEventAttributes.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkflowExecutionCancelRequestedEventAttributes.BuildersetCause(java.lang.String value)User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?WorkflowExecutionCancelRequestedEventAttributes.BuildersetCauseBytes(com.google.protobuf.ByteString value)User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?WorkflowExecutionCancelRequestedEventAttributes.BuildersetExternalInitiatedEventId(long value)TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?WorkflowExecutionCancelRequestedEventAttributes.BuildersetExternalWorkflowExecution(WorkflowExecution value).temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecutionCancelRequestedEventAttributes.BuildersetExternalWorkflowExecution(WorkflowExecution.Builder builderForValue).temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;WorkflowExecutionCancelRequestedEventAttributes.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkflowExecutionCancelRequestedEventAttributes.BuildersetIdentity(java.lang.String value)id of the worker or client who requested this cancelWorkflowExecutionCancelRequestedEventAttributes.BuildersetIdentityBytes(com.google.protobuf.ByteString value)id of the worker or client who requested this cancelWorkflowExecutionCancelRequestedEventAttributes.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)WorkflowExecutionCancelRequestedEventAttributes.BuildersetUnknownFields(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, 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<WorkflowExecutionCancelRequestedEventAttributes.Builder>
-
clear
public 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
public WorkflowExecutionCancelRequestedEventAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkflowExecutionCancelRequestedEventAttributes build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkflowExecutionCancelRequestedEventAttributes buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkflowExecutionCancelRequestedEventAttributes.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, java.lang.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, java.lang.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, java.lang.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
public WorkflowExecutionCancelRequestedEventAttributes.Builder mergeFrom(WorkflowExecutionCancelRequestedEventAttributes other)
-
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 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<WorkflowExecutionCancelRequestedEventAttributes.Builder>- Throws:
java.io.IOException
-
getCause
public java.lang.String getCause()
User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?
string cause = 1;- Specified by:
getCausein interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The cause.
-
getCauseBytes
public com.google.protobuf.ByteString getCauseBytes()
User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?
string cause = 1;- Specified by:
getCauseBytesin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The bytes for cause.
-
setCause
public WorkflowExecutionCancelRequestedEventAttributes.Builder setCause(java.lang.String value)
User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?
string cause = 1;- Parameters:
value- The cause to set.- Returns:
- This builder for chaining.
-
clearCause
public WorkflowExecutionCancelRequestedEventAttributes.Builder clearCause()
User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?
string cause = 1;- Returns:
- This builder for chaining.
-
setCauseBytes
public WorkflowExecutionCancelRequestedEventAttributes.Builder setCauseBytes(com.google.protobuf.ByteString value)
User provided reason for requesting cancellation TODO: shall we create a new field with name "reason" and deprecate this one?
string cause = 1;- Parameters:
value- The bytes for cause to set.- Returns:
- This builder for chaining.
-
getExternalInitiatedEventId
public long getExternalInitiatedEventId()
TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
int64 external_initiated_event_id = 2;- Specified by:
getExternalInitiatedEventIdin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder- Returns:
- The externalInitiatedEventId.
-
setExternalInitiatedEventId
public WorkflowExecutionCancelRequestedEventAttributes.Builder setExternalInitiatedEventId(long value)
TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
int64 external_initiated_event_id = 2;- Parameters:
value- The externalInitiatedEventId to set.- Returns:
- This builder for chaining.
-
clearExternalInitiatedEventId
public WorkflowExecutionCancelRequestedEventAttributes.Builder clearExternalInitiatedEventId()
TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
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
public WorkflowExecution 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
public WorkflowExecutionCancelRequestedEventAttributes.Builder clearExternalWorkflowExecution()
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
-
getExternalWorkflowExecutionBuilder
public WorkflowExecution.Builder getExternalWorkflowExecutionBuilder()
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
-
getExternalWorkflowExecutionOrBuilder
public WorkflowExecutionOrBuilder getExternalWorkflowExecutionOrBuilder()
.temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;- Specified by:
getExternalWorkflowExecutionOrBuilderin interfaceWorkflowExecutionCancelRequestedEventAttributesOrBuilder
-
getIdentity
public java.lang.String 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
public WorkflowExecutionCancelRequestedEventAttributes.Builder setIdentity(java.lang.String value)
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
public WorkflowExecutionCancelRequestedEventAttributes.Builder 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>
-
-