Class StartWorkflowExecutionResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- StartWorkflowExecutionResponse
public static final class StartWorkflowExecutionResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder> implements StartWorkflowExecutionResponseOrBuilder
Protobuf typetemporal.api.workflowservice.v1.StartWorkflowExecutionResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StartWorkflowExecutionResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)StartWorkflowExecutionResponsebuild()StartWorkflowExecutionResponsebuildPartial()StartWorkflowExecutionResponse.Builderclear()StartWorkflowExecutionResponse.BuilderclearEagerWorkflowTask()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.StartWorkflowExecutionResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StartWorkflowExecutionResponse.BuilderclearLink()Link to the workflow event.StartWorkflowExecutionResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StartWorkflowExecutionResponse.BuilderclearRunId()The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).StartWorkflowExecutionResponse.BuilderclearStarted()If true, a new workflow was started.StartWorkflowExecutionResponse.BuilderclearStatus()Current execution status of the workflow.StartWorkflowExecutionResponse.Builderclone()StartWorkflowExecutionResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PollWorkflowTaskQueueResponsegetEagerWorkflowTask()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.PollWorkflowTaskQueueResponse.BuildergetEagerWorkflowTaskBuilder()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.PollWorkflowTaskQueueResponseOrBuildergetEagerWorkflowTaskOrBuilder()When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will return the first workflow task to be eagerly executed.LinkgetLink()Link to the workflow event.Link.BuildergetLinkBuilder()Link to the workflow event.LinkOrBuildergetLinkOrBuilder()Link to the workflow event.java.lang.StringgetRunId()The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).com.google.protobuf.ByteStringgetRunIdBytes()The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).booleangetStarted()If true, a new workflow was started.WorkflowExecutionStatusgetStatus()Current execution status of the workflow.intgetStatusValue()Current execution status of the workflow.booleanhasEagerWorkflowTask()When `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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StartWorkflowExecutionResponse.BuildermergeEagerWorkflowTask(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.StartWorkflowExecutionResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StartWorkflowExecutionResponse.BuildermergeFrom(com.google.protobuf.Message other)StartWorkflowExecutionResponse.BuildermergeFrom(StartWorkflowExecutionResponse other)StartWorkflowExecutionResponse.BuildermergeLink(Link value)Link to the workflow event.StartWorkflowExecutionResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StartWorkflowExecutionResponse.BuildersetEagerWorkflowTask(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.StartWorkflowExecutionResponse.BuildersetEagerWorkflowTask(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.StartWorkflowExecutionResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)StartWorkflowExecutionResponse.BuildersetLink(Link value)Link to the workflow event.StartWorkflowExecutionResponse.BuildersetLink(Link.Builder builderForValue)Link to the workflow event.StartWorkflowExecutionResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)StartWorkflowExecutionResponse.BuildersetRunId(java.lang.String value)The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).StartWorkflowExecutionResponse.BuildersetRunIdBytes(com.google.protobuf.ByteString value)The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).StartWorkflowExecutionResponse.BuildersetStarted(boolean value)If true, a new workflow was started.StartWorkflowExecutionResponse.BuildersetStatus(WorkflowExecutionStatus value)Current execution status of the workflow.StartWorkflowExecutionResponse.BuildersetStatusValue(int value)Current execution status of the workflow.StartWorkflowExecutionResponse.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<StartWorkflowExecutionResponse.Builder>
-
clear
public 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
public StartWorkflowExecutionResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StartWorkflowExecutionResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StartWorkflowExecutionResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StartWorkflowExecutionResponse.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
-
mergeFrom
public StartWorkflowExecutionResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartWorkflowExecutionResponse.Builder>
-
mergeFrom
public StartWorkflowExecutionResponse.Builder mergeFrom(StartWorkflowExecutionResponse other)
-
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 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<StartWorkflowExecutionResponse.Builder>- Throws:
java.io.IOException
-
getRunId
public java.lang.String 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
public StartWorkflowExecutionResponse.Builder setRunId(java.lang.String value)
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
public StartWorkflowExecutionResponse.Builder 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
public StartWorkflowExecutionResponse.Builder setRunIdBytes(com.google.protobuf.ByteString value)
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.
-
getStarted
public boolean getStarted()
If true, a new workflow was started.
bool started = 3;- Specified by:
getStartedin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The started.
-
setStarted
public StartWorkflowExecutionResponse.Builder setStarted(boolean value)
If true, a new workflow was started.
bool started = 3;- Parameters:
value- The started to set.- Returns:
- This builder for chaining.
-
clearStarted
public StartWorkflowExecutionResponse.Builder 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
public StartWorkflowExecutionResponse.Builder setStatusValue(int value)
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
public WorkflowExecutionStatus 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
public StartWorkflowExecutionResponse.Builder setStatus(WorkflowExecutionStatus value)
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
public StartWorkflowExecutionResponse.Builder 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
public PollWorkflowTaskQueueResponse 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
public StartWorkflowExecutionResponse.Builder 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
public PollWorkflowTaskQueueResponse.Builder 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
public PollWorkflowTaskQueueResponseOrBuilder 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
public Link getLink()
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;- Specified by:
getLinkin interfaceStartWorkflowExecutionResponseOrBuilder- Returns:
- The link.
-
setLink
public StartWorkflowExecutionResponse.Builder setLink(Link value)
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;
-
setLink
public StartWorkflowExecutionResponse.Builder setLink(Link.Builder builderForValue)
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;
-
mergeLink
public StartWorkflowExecutionResponse.Builder mergeLink(Link value)
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;
-
clearLink
public StartWorkflowExecutionResponse.Builder clearLink()
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;
-
getLinkBuilder
public Link.Builder getLinkBuilder()
Link to the workflow event.
.temporal.api.common.v1.Link link = 4;
-
getLinkOrBuilder
public LinkOrBuilder 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>
-
-