Class StartWorkflowExecutionResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StartWorkflowExecutionResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
io.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StartWorkflowExecutionResponseOrBuilder,Cloneable
- Enclosing class:
StartWorkflowExecutionResponse
public static final class StartWorkflowExecutionResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
implements StartWorkflowExecutionResponseOrBuilder
Protobuf type
temporal.api.workflowservice.v1.StartWorkflowExecutionResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.Link to the workflow event.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).If true, a new workflow was started.Current execution status of the workflow.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorWhen `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.com.google.protobuf.ByteStringIf the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.getLink()Link to the workflow event.Link to the workflow event.Link to the workflow event.getRunId()The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).com.google.protobuf.ByteStringThe run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).booleanIf true, a new workflow was started.Current execution status of the workflow.intCurrent execution status of the workflow.booleanWhen `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.booleanhasLink()Link to the workflow event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanWhen `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Link to the workflow event.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.setEagerWorkflowTask(PollWorkflowTaskQueueResponse.Builder builderForValue) When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.setFirstExecutionRunId(String value) If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.setFirstExecutionRunIdBytes(com.google.protobuf.ByteString value) If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.Link to the workflow event.setLink(Link.Builder builderForValue) Link to the workflow event.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).setRunIdBytes(com.google.protobuf.ByteString value) The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).setStarted(boolean value) If true, a new workflow was started.setStatus(WorkflowExecutionStatus value) Current execution status of the workflow.setStatusValue(int value) Current execution status of the workflow.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<StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>
-
setField
public StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>
-
clearField
public StartWorkflowExecutionResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-
clearOneof
public StartWorkflowExecutionResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-
setRepeatedField
public StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>
-
addRepeatedField
public StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartWorkflowExecutionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-
mergeFrom
public StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>- Throws:
IOException
-
getRunId
The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
string run_id = 1;- Specified by:
getRunIdin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
string run_id = 1;- Specified by:
getRunIdBytesin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The bytes for runId.
-
setRunId
The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
string run_id = 1;- Parameters:
value- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
string run_id = 1;- Returns:
- This builder for chaining.
-
setRunIdBytes
The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
string run_id = 1;- Parameters:
value- The bytes for runId to set.- Returns:
- This builder for chaining.
-
getFirstExecutionRunId
If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
string first_execution_run_id = 6;- Specified by:
getFirstExecutionRunIdin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The firstExecutionRunId.
-
getFirstExecutionRunIdBytes
public com.google.protobuf.ByteString getFirstExecutionRunIdBytes()If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
string first_execution_run_id = 6;- Specified by:
getFirstExecutionRunIdBytesin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The bytes for firstExecutionRunId.
-
setFirstExecutionRunId
If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
string first_execution_run_id = 6;- Parameters:
value- The firstExecutionRunId to set.- Returns:
- This builder for chaining.
-
clearFirstExecutionRunId
If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
string first_execution_run_id = 6;- Returns:
- This builder for chaining.
-
setFirstExecutionRunIdBytes
public StartWorkflowExecutionResponse.Builder setFirstExecutionRunIdBytes(com.google.protobuf.ByteString value) If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
string first_execution_run_id = 6;- Parameters:
value- The bytes for firstExecutionRunId to set.- Returns:
- This builder for chaining.
-
getStarted
public boolean getStarted()If true, a new workflow was started.
bool started = 3;- Specified by:
getStartedin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The started.
-
setStarted
If true, a new workflow was started.
bool started = 3;- Parameters:
value- The started to set.- Returns:
- This builder for chaining.
-
clearStarted
If true, a new workflow was started.
bool started = 3;- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
.temporal.api.enums.v1.WorkflowExecutionStatus status = 5;- Specified by:
getStatusValuein interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
.temporal.api.enums.v1.WorkflowExecutionStatus status = 5;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
.temporal.api.enums.v1.WorkflowExecutionStatus status = 5;- Specified by:
getStatusin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The status.
-
setStatus
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
.temporal.api.enums.v1.WorkflowExecutionStatus status = 5;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
.temporal.api.enums.v1.WorkflowExecutionStatus status = 5;- Returns:
- This builder for chaining.
-
hasEagerWorkflowTask
public boolean hasEagerWorkflowTask()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;- Specified by:
hasEagerWorkflowTaskin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- Whether the eagerWorkflowTask field is set.
-
getEagerWorkflowTask
When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;- Specified by:
getEagerWorkflowTaskin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The eagerWorkflowTask.
-
setEagerWorkflowTask
public StartWorkflowExecutionResponse.Builder setEagerWorkflowTask(PollWorkflowTaskQueueResponse value) When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2; -
setEagerWorkflowTask
public StartWorkflowExecutionResponse.Builder setEagerWorkflowTask(PollWorkflowTaskQueueResponse.Builder builderForValue) When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2; -
mergeEagerWorkflowTask
public StartWorkflowExecutionResponse.Builder mergeEagerWorkflowTask(PollWorkflowTaskQueueResponse value) When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2; -
clearEagerWorkflowTask
When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2; -
getEagerWorkflowTaskBuilder
When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2; -
getEagerWorkflowTaskOrBuilder
When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task.
.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;- Specified by:
getEagerWorkflowTaskOrBuilderin interfaceStartWorkflowExecutionResponseOrBuilder
-
hasLink
public boolean hasLink()Link to the workflow event.
.temporal.api.common.v1.Link link = 4;- Specified by:
hasLinkin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- Whether the link field is set.
-
getLink
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;- Specified by:
getLinkin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The link.
-
setLink
Link to the workflow event.
.temporal.api.common.v1.Link link = 4; -
setLink
Link to the workflow event.
.temporal.api.common.v1.Link link = 4; -
mergeLink
Link to the workflow event.
.temporal.api.common.v1.Link link = 4; -
clearLink
Link to the workflow event.
.temporal.api.common.v1.Link link = 4; -
getLinkBuilder
Link to the workflow event.
.temporal.api.common.v1.Link link = 4; -
getLinkOrBuilder
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;- Specified by:
getLinkOrBuilderin interfaceStartWorkflowExecutionResponseOrBuilder
-
setUnknownFields
public final StartWorkflowExecutionResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-
mergeUnknownFields
public final StartWorkflowExecutionResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-