Package com.google.cloud.documentai.v1
Class Document.EntityValidationOutput.ValidationResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.EntityValidationOutput.ValidationResult.Builder>
com.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.Builder
- All Implemented Interfaces:
Document.EntityValidationOutput.ValidationResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.EntityValidationOutput.ValidationResult
public static final class Document.EntityValidationOutput.ValidationResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.EntityValidationOutput.ValidationResult.Builder>
implements Document.EntityValidationOutput.ValidationResultOrBuilder
Validation result for a single validation rule.Protobuf type
google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The description of the validation rule.The name of the validation rule.The detailed information of the running the validation process using the entity from the document based on the validation rule.The result of the validation rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe description of the validation rule.com.google.protobuf.ByteStringThe description of the validation rule.The name of the validation rule.com.google.protobuf.ByteStringThe name of the validation rule.The detailed information of the running the validation process using the entity from the document based on the validation rule.com.google.protobuf.ByteStringThe detailed information of the running the validation process using the entity from the document based on the validation rule.The result of the validation rule.intThe result of the validation rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setRuleDescription(String value) The description of the validation rule.setRuleDescriptionBytes(com.google.protobuf.ByteString value) The description of the validation rule.setRuleName(String value) The name of the validation rule.setRuleNameBytes(com.google.protobuf.ByteString value) The name of the validation rule.setValidationDetails(String value) The detailed information of the running the validation process using the entity from the document based on the validation rule.setValidationDetailsBytes(com.google.protobuf.ByteString value) The detailed information of the running the validation process using the entity from the document based on the validation rule.setValidationResultType(Document.EntityValidationOutput.ValidationResult.ValidationResultType value) The result of the validation rule.setValidationResultTypeValue(int value) The result of the validation rule.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<Document.EntityValidationOutput.ValidationResult.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<Document.EntityValidationOutput.ValidationResult.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<Document.EntityValidationOutput.ValidationResult.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
public Document.EntityValidationOutput.ValidationResult.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.EntityValidationOutput.ValidationResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.EntityValidationOutput.ValidationResult.Builder>
-
mergeFrom
public Document.EntityValidationOutput.ValidationResult.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<Document.EntityValidationOutput.ValidationResult.Builder>- Throws:
IOException
-
getRuleName
The name of the validation rule.
string rule_name = 1;- Specified by:
getRuleNamein interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The ruleName.
-
getRuleNameBytes
public com.google.protobuf.ByteString getRuleNameBytes()The name of the validation rule.
string rule_name = 1;- Specified by:
getRuleNameBytesin interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The bytes for ruleName.
-
setRuleName
The name of the validation rule.
string rule_name = 1;- Parameters:
value- The ruleName to set.- Returns:
- This builder for chaining.
-
clearRuleName
The name of the validation rule.
string rule_name = 1;- Returns:
- This builder for chaining.
-
setRuleNameBytes
public Document.EntityValidationOutput.ValidationResult.Builder setRuleNameBytes(com.google.protobuf.ByteString value) The name of the validation rule.
string rule_name = 1;- Parameters:
value- The bytes for ruleName to set.- Returns:
- This builder for chaining.
-
getRuleDescription
The description of the validation rule.
string rule_description = 2;- Specified by:
getRuleDescriptionin interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The ruleDescription.
-
getRuleDescriptionBytes
public com.google.protobuf.ByteString getRuleDescriptionBytes()The description of the validation rule.
string rule_description = 2;- Specified by:
getRuleDescriptionBytesin interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The bytes for ruleDescription.
-
setRuleDescription
The description of the validation rule.
string rule_description = 2;- Parameters:
value- The ruleDescription to set.- Returns:
- This builder for chaining.
-
clearRuleDescription
The description of the validation rule.
string rule_description = 2;- Returns:
- This builder for chaining.
-
setRuleDescriptionBytes
public Document.EntityValidationOutput.ValidationResult.Builder setRuleDescriptionBytes(com.google.protobuf.ByteString value) The description of the validation rule.
string rule_description = 2;- Parameters:
value- The bytes for ruleDescription to set.- Returns:
- This builder for chaining.
-
getValidationResultTypeValue
public int getValidationResultTypeValue()The result of the validation rule.
.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType validation_result_type = 3;- Specified by:
getValidationResultTypeValuein interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The enum numeric value on the wire for validationResultType.
-
setValidationResultTypeValue
public Document.EntityValidationOutput.ValidationResult.Builder setValidationResultTypeValue(int value) The result of the validation rule.
.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType validation_result_type = 3;- Parameters:
value- The enum numeric value on the wire for validationResultType to set.- Returns:
- This builder for chaining.
-
getValidationResultType
public Document.EntityValidationOutput.ValidationResult.ValidationResultType getValidationResultType()The result of the validation rule.
.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType validation_result_type = 3;- Specified by:
getValidationResultTypein interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The validationResultType.
-
setValidationResultType
public Document.EntityValidationOutput.ValidationResult.Builder setValidationResultType(Document.EntityValidationOutput.ValidationResult.ValidationResultType value) The result of the validation rule.
.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType validation_result_type = 3;- Parameters:
value- The validationResultType to set.- Returns:
- This builder for chaining.
-
clearValidationResultType
The result of the validation rule.
.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType validation_result_type = 3;- Returns:
- This builder for chaining.
-
getValidationDetails
The detailed information of the running the validation process using the entity from the document based on the validation rule.
string validation_details = 4;- Specified by:
getValidationDetailsin interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The validationDetails.
-
getValidationDetailsBytes
public com.google.protobuf.ByteString getValidationDetailsBytes()The detailed information of the running the validation process using the entity from the document based on the validation rule.
string validation_details = 4;- Specified by:
getValidationDetailsBytesin interfaceDocument.EntityValidationOutput.ValidationResultOrBuilder- Returns:
- The bytes for validationDetails.
-
setValidationDetails
The detailed information of the running the validation process using the entity from the document based on the validation rule.
string validation_details = 4;- Parameters:
value- The validationDetails to set.- Returns:
- This builder for chaining.
-
clearValidationDetails
The detailed information of the running the validation process using the entity from the document based on the validation rule.
string validation_details = 4;- Returns:
- This builder for chaining.
-
setValidationDetailsBytes
public Document.EntityValidationOutput.ValidationResult.Builder setValidationDetailsBytes(com.google.protobuf.ByteString value) The detailed information of the running the validation process using the entity from the document based on the validation rule.
string validation_details = 4;- Parameters:
value- The bytes for validationDetails to set.- Returns:
- This builder for chaining.
-