Class ReviewDocumentOperationMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.Builder>
com.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.Builder
- All Implemented Interfaces:
ReviewDocumentOperationMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReviewDocumentOperationMetadata
public static final class ReviewDocumentOperationMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.Builder>
implements ReviewDocumentOperationMetadataOrBuilder
The long-running operation metadata for the [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument] method.Protobuf type
google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The basic metadata of the long-running operation.The creation time of the operation.The Crowd Compute question ID.Used only when Operation.done is false.A message providing more details about the current state of processing.The last update time of the operation.The basic metadata of the long-running operation.The basic metadata of the long-running operation.The basic metadata of the long-running operation.com.google.protobuf.TimestampThe creation time of the operation.com.google.protobuf.Timestamp.BuilderThe creation time of the operation.com.google.protobuf.TimestampOrBuilderThe creation time of the operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Crowd Compute question ID.com.google.protobuf.ByteStringThe Crowd Compute question ID.getState()Used only when Operation.done is false.A message providing more details about the current state of processing.com.google.protobuf.ByteStringA message providing more details about the current state of processing.intUsed only when Operation.done is false.com.google.protobuf.TimestampThe last update time of the operation.com.google.protobuf.Timestamp.BuilderThe last update time of the operation.com.google.protobuf.TimestampOrBuilderThe last update time of the operation.booleanThe basic metadata of the long-running operation.booleanThe creation time of the operation.booleanThe last update time of the operation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe basic metadata of the long-running operation.mergeCreateTime(com.google.protobuf.Timestamp value) The creation time of the operation.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) The last update time of the operation.The basic metadata of the long-running operation.setCommonMetadata(CommonOperationMetadata.Builder builderForValue) The basic metadata of the long-running operation.setCreateTime(com.google.protobuf.Timestamp value) The creation time of the operation.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation time of the operation.setQuestionId(String value) The Crowd Compute question ID.setQuestionIdBytes(com.google.protobuf.ByteString value) The Crowd Compute question ID.Used only when Operation.done is false.setStateMessage(String value) A message providing more details about the current state of processing.setStateMessageBytes(com.google.protobuf.ByteString value) A message providing more details about the current state of processing.setStateValue(int value) Used only when Operation.done is false.setUpdateTime(com.google.protobuf.Timestamp value) The last update time of the operation.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The last update time of the operation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.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.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReviewDocumentOperationMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.Builder>
-
mergeFrom
public ReviewDocumentOperationMetadata.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<ReviewDocumentOperationMetadata.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()Used only when Operation.done is false.
.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;- Specified by:
getStateValuein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Used only when Operation.done is false.
.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Used only when Operation.done is false.
.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;- Specified by:
getStatein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The state.
-
setState
public ReviewDocumentOperationMetadata.Builder setState(ReviewDocumentOperationMetadata.State value) Used only when Operation.done is false.
.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Used only when Operation.done is false.
.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;- Returns:
- This builder for chaining.
-
getStateMessage
A message providing more details about the current state of processing. For example, the error message if the operation is failed.
string state_message = 2;- Specified by:
getStateMessagein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The stateMessage.
-
getStateMessageBytes
public com.google.protobuf.ByteString getStateMessageBytes()A message providing more details about the current state of processing. For example, the error message if the operation is failed.
string state_message = 2;- Specified by:
getStateMessageBytesin interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The bytes for stateMessage.
-
setStateMessage
A message providing more details about the current state of processing. For example, the error message if the operation is failed.
string state_message = 2;- Parameters:
value- The stateMessage to set.- Returns:
- This builder for chaining.
-
clearStateMessage
A message providing more details about the current state of processing. For example, the error message if the operation is failed.
string state_message = 2;- Returns:
- This builder for chaining.
-
setStateMessageBytes
public ReviewDocumentOperationMetadata.Builder setStateMessageBytes(com.google.protobuf.ByteString value) A message providing more details about the current state of processing. For example, the error message if the operation is failed.
string state_message = 2;- Parameters:
value- The bytes for stateMessage to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
hasCreateTimein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The createTime.
-
setCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3; -
setCreateTime
public ReviewDocumentOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation time of the operation.
.google.protobuf.Timestamp create_time = 3; -
mergeCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3; -
clearCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The creation time of the operation.
.google.protobuf.Timestamp create_time = 3; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimeOrBuilderin interfaceReviewDocumentOperationMetadataOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4; -
setUpdateTime
public ReviewDocumentOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The last update time of the operation.
.google.protobuf.Timestamp update_time = 4; -
mergeUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4; -
clearUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()The last update time of the operation.
.google.protobuf.Timestamp update_time = 4; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfaceReviewDocumentOperationMetadataOrBuilder
-
hasCommonMetadata
public boolean hasCommonMetadata()The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;- Specified by:
hasCommonMetadatain interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- Whether the commonMetadata field is set.
-
getCommonMetadata
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;- Specified by:
getCommonMetadatain interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The commonMetadata.
-
setCommonMetadata
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; -
setCommonMetadata
public ReviewDocumentOperationMetadata.Builder setCommonMetadata(CommonOperationMetadata.Builder builderForValue) The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; -
mergeCommonMetadata
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; -
clearCommonMetadata
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; -
getCommonMetadataBuilder
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; -
getCommonMetadataOrBuilder
The basic metadata of the long-running operation.
.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;- Specified by:
getCommonMetadataOrBuilderin interfaceReviewDocumentOperationMetadataOrBuilder
-
getQuestionId
The Crowd Compute question ID.
string question_id = 6;- Specified by:
getQuestionIdin interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The questionId.
-
getQuestionIdBytes
public com.google.protobuf.ByteString getQuestionIdBytes()The Crowd Compute question ID.
string question_id = 6;- Specified by:
getQuestionIdBytesin interfaceReviewDocumentOperationMetadataOrBuilder- Returns:
- The bytes for questionId.
-
setQuestionId
The Crowd Compute question ID.
string question_id = 6;- Parameters:
value- The questionId to set.- Returns:
- This builder for chaining.
-
clearQuestionId
The Crowd Compute question ID.
string question_id = 6;- Returns:
- This builder for chaining.
-
setQuestionIdBytes
public ReviewDocumentOperationMetadata.Builder setQuestionIdBytes(com.google.protobuf.ByteString value) The Crowd Compute question ID.
string question_id = 6;- Parameters:
value- The bytes for questionId to set.- Returns:
- This builder for chaining.
-