Package com.google.cloud.documentai.v1
Class ReviewDocumentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentRequest.Builder>
com.google.cloud.documentai.v1.ReviewDocumentRequest.Builder
- All Implemented Interfaces:
ReviewDocumentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReviewDocumentRequest
public static final class ReviewDocumentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentRequest.Builder>
implements ReviewDocumentRequestOrBuilder
Request message for the [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] method.Protobuf type
google.cloud.documentai.v1.ReviewDocumentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The document schema of the human review task.Whether the validation should be performed on the ad-hoc review request.Required.An inline document proto.The priority of the human review task.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe document schema of the human review task.The document schema of the human review task.The document schema of the human review task.booleanWhether the validation should be performed on the ad-hoc review request.Required.com.google.protobuf.ByteStringRequired.An inline document proto.An inline document proto.An inline document proto.The priority of the human review task.intThe priority of the human review task.booleanThe document schema of the human review task.booleanAn inline document proto.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe document schema of the human review task.mergeFrom(ReviewDocumentRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInlineDocument(Document value) An inline document proto.setDocumentSchema(DocumentSchema value) The document schema of the human review task.setDocumentSchema(DocumentSchema.Builder builderForValue) The document schema of the human review task.setEnableSchemaValidation(boolean value) Whether the validation should be performed on the ad-hoc review request.setHumanReviewConfig(String value) Required.setHumanReviewConfigBytes(com.google.protobuf.ByteString value) Required.setInlineDocument(Document value) An inline document proto.setInlineDocument(Document.Builder builderForValue) An inline document proto.The priority of the human review task.setPriorityValue(int value) The priority of the human review task.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<ReviewDocumentRequest.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<ReviewDocumentRequest.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<ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReviewDocumentRequest.Builder>
-
mergeFrom
public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceReviewDocumentRequestOrBuilder
-
clearSource
-
hasInlineDocument
public boolean hasInlineDocument()An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
hasInlineDocumentin interfaceReviewDocumentRequestOrBuilder- Returns:
- Whether the inlineDocument field is set.
-
getInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
getInlineDocumentin interfaceReviewDocumentRequestOrBuilder- Returns:
- The inlineDocument.
-
setInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4; -
setInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4; -
mergeInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4; -
clearInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4; -
getInlineDocumentBuilder
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4; -
getInlineDocumentOrBuilder
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
getInlineDocumentOrBuilderin interfaceReviewDocumentRequestOrBuilder
-
getHumanReviewConfig
Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getHumanReviewConfigin interfaceReviewDocumentRequestOrBuilder- Returns:
- The humanReviewConfig.
-
getHumanReviewConfigBytes
public com.google.protobuf.ByteString getHumanReviewConfigBytes()Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getHumanReviewConfigBytesin interfaceReviewDocumentRequestOrBuilder- Returns:
- The bytes for humanReviewConfig.
-
setHumanReviewConfig
Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The humanReviewConfig to set.- Returns:
- This builder for chaining.
-
clearHumanReviewConfig
Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setHumanReviewConfigBytes
public ReviewDocumentRequest.Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for humanReviewConfig to set.- Returns:
- This builder for chaining.
-
getEnableSchemaValidation
public boolean getEnableSchemaValidation()Whether the validation should be performed on the ad-hoc review request.
bool enable_schema_validation = 3;- Specified by:
getEnableSchemaValidationin interfaceReviewDocumentRequestOrBuilder- Returns:
- The enableSchemaValidation.
-
setEnableSchemaValidation
Whether the validation should be performed on the ad-hoc review request.
bool enable_schema_validation = 3;- Parameters:
value- The enableSchemaValidation to set.- Returns:
- This builder for chaining.
-
clearEnableSchemaValidation
Whether the validation should be performed on the ad-hoc review request.
bool enable_schema_validation = 3;- Returns:
- This builder for chaining.
-
getPriorityValue
public int getPriorityValue()The priority of the human review task.
.google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;- Specified by:
getPriorityValuein interfaceReviewDocumentRequestOrBuilder- Returns:
- The enum numeric value on the wire for priority.
-
setPriorityValue
The priority of the human review task.
.google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;- Parameters:
value- The enum numeric value on the wire for priority to set.- Returns:
- This builder for chaining.
-
getPriority
The priority of the human review task.
.google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;- Specified by:
getPriorityin interfaceReviewDocumentRequestOrBuilder- Returns:
- The priority.
-
setPriority
The priority of the human review task.
.google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
The priority of the human review task.
.google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;- Returns:
- This builder for chaining.
-
hasDocumentSchema
public boolean hasDocumentSchema()The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6;- Specified by:
hasDocumentSchemain interfaceReviewDocumentRequestOrBuilder- Returns:
- Whether the documentSchema field is set.
-
getDocumentSchema
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6;- Specified by:
getDocumentSchemain interfaceReviewDocumentRequestOrBuilder- Returns:
- The documentSchema.
-
setDocumentSchema
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6; -
setDocumentSchema
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6; -
mergeDocumentSchema
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6; -
clearDocumentSchema
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6; -
getDocumentSchemaBuilder
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6; -
getDocumentSchemaOrBuilder
The document schema of the human review task.
.google.cloud.documentai.v1.DocumentSchema document_schema = 6;- Specified by:
getDocumentSchemaOrBuilderin interfaceReviewDocumentRequestOrBuilder
-