Class WorkflowQueryResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkflowQueryResult.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
io.temporal.api.query.v1.WorkflowQueryResult.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkflowQueryResultOrBuilder,Cloneable
- Enclosing class:
WorkflowQueryResult
public static final class WorkflowQueryResult.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
implements WorkflowQueryResultOrBuilder
Answer to a `WorkflowQuery`Protobuf type
temporal.api.query.v1.WorkflowQueryResult-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Set when the query succeeds with the results.Mutually exclusive with `answer`.The full reason for this query failure.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Did the query succeed or fail?clone()Set when the query succeeds with the results.Set when the query succeeds with the results.Set when the query succeeds with the results.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMutually exclusive with `answer`.com.google.protobuf.ByteStringMutually exclusive with `answer`.The full reason for this query failure.The full reason for this query failure.The full reason for this query failure.Did the query succeed or fail?intDid the query succeed or fail?booleanSet when the query succeeds with the results.booleanThe full reason for this query failure.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAnswer(Payloads value) Set when the query succeeds with the results.mergeFailure(Failure value) The full reason for this query failure.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(WorkflowQueryResult other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Set when the query succeeds with the results.setAnswer(Payloads.Builder builderForValue) Set when the query succeeds with the results.setErrorMessage(String value) Mutually exclusive with `answer`.setErrorMessageBytes(com.google.protobuf.ByteString value) Mutually exclusive with `answer`.setFailure(Failure value) The full reason for this query failure.setFailure(Failure.Builder builderForValue) The full reason for this query failure.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResultType(QueryResultType value) Did the query succeed or fail?setResultTypeValue(int value) Did the query succeed or fail?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<WorkflowQueryResult.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<WorkflowQueryResult.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<WorkflowQueryResult.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<WorkflowQueryResult.Builder>
-
setField
public WorkflowQueryResult.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<WorkflowQueryResult.Builder>
-
clearField
public WorkflowQueryResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
-
clearOneof
public WorkflowQueryResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
-
setRepeatedField
public WorkflowQueryResult.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<WorkflowQueryResult.Builder>
-
addRepeatedField
public WorkflowQueryResult.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<WorkflowQueryResult.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowQueryResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
-
mergeFrom
public WorkflowQueryResult.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<WorkflowQueryResult.Builder>- Throws:
IOException
-
getResultTypeValue
public int getResultTypeValue()Did the query succeed or fail?
.temporal.api.enums.v1.QueryResultType result_type = 1;- Specified by:
getResultTypeValuein interfaceWorkflowQueryResultOrBuilder- Returns:
- The enum numeric value on the wire for resultType.
-
setResultTypeValue
Did the query succeed or fail?
.temporal.api.enums.v1.QueryResultType result_type = 1;- Parameters:
value- The enum numeric value on the wire for resultType to set.- Returns:
- This builder for chaining.
-
getResultType
Did the query succeed or fail?
.temporal.api.enums.v1.QueryResultType result_type = 1;- Specified by:
getResultTypein interfaceWorkflowQueryResultOrBuilder- Returns:
- The resultType.
-
setResultType
Did the query succeed or fail?
.temporal.api.enums.v1.QueryResultType result_type = 1;- Parameters:
value- The resultType to set.- Returns:
- This builder for chaining.
-
clearResultType
Did the query succeed or fail?
.temporal.api.enums.v1.QueryResultType result_type = 1;- Returns:
- This builder for chaining.
-
hasAnswer
public boolean hasAnswer()Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2;- Specified by:
hasAnswerin interfaceWorkflowQueryResultOrBuilder- Returns:
- Whether the answer field is set.
-
getAnswer
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2;- Specified by:
getAnswerin interfaceWorkflowQueryResultOrBuilder- Returns:
- The answer.
-
setAnswer
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2; -
setAnswer
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2; -
mergeAnswer
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2; -
clearAnswer
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2; -
getAnswerBuilder
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2; -
getAnswerOrBuilder
Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`.
.temporal.api.common.v1.Payloads answer = 2;- Specified by:
getAnswerOrBuilderin interfaceWorkflowQueryResultOrBuilder
-
getErrorMessage
Mutually exclusive with `answer`. Set when the query fails. See also the newer `failure` field.
string error_message = 3;- Specified by:
getErrorMessagein interfaceWorkflowQueryResultOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Mutually exclusive with `answer`. Set when the query fails. See also the newer `failure` field.
string error_message = 3;- Specified by:
getErrorMessageBytesin interfaceWorkflowQueryResultOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
Mutually exclusive with `answer`. Set when the query fails. See also the newer `failure` field.
string error_message = 3;- Parameters:
value- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
Mutually exclusive with `answer`. Set when the query fails. See also the newer `failure` field.
string error_message = 3;- Returns:
- This builder for chaining.
-
setErrorMessageBytes
Mutually exclusive with `answer`. Set when the query fails. See also the newer `failure` field.
string error_message = 3;- Parameters:
value- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
hasFailure
public boolean hasFailure()The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4;- Specified by:
hasFailurein interfaceWorkflowQueryResultOrBuilder- Returns:
- Whether the failure field is set.
-
getFailure
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4;- Specified by:
getFailurein interfaceWorkflowQueryResultOrBuilder- Returns:
- The failure.
-
setFailure
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4; -
setFailure
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4; -
mergeFailure
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4; -
clearFailure
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4; -
getFailureBuilder
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4; -
getFailureOrBuilder
The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails.
.temporal.api.failure.v1.Failure failure = 4;- Specified by:
getFailureOrBuilderin interfaceWorkflowQueryResultOrBuilder
-
setUnknownFields
public final WorkflowQueryResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
-
mergeUnknownFields
public final WorkflowQueryResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowQueryResult.Builder>
-