Package com.google.cloud.documentai.v1
Class DocumentSchema.Metadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Metadata.Builder>
com.google.cloud.documentai.v1.DocumentSchema.Metadata.Builder
- All Implemented Interfaces:
DocumentSchema.MetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentSchema.Metadata
public static final class DocumentSchema.Metadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Metadata.Builder>
implements DocumentSchema.MetadataOrBuilder
Metadata for global schema behavior.Protobuf type
google.cloud.documentai.v1.DocumentSchema.Metadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If true, on a given page, there can be multiple `document` annotations covering it.If true, a `document` entity type can be applied to subdocument (splitting).If set, all the nested entities must be prefixed with the parents.If set, we will skip the naming format validation in the schema.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, on a given page, there can be multiple `document` annotations covering it.booleanIf true, a `document` entity type can be applied to subdocument (splitting).booleanIf set, all the nested entities must be prefixed with the parents.booleanIf set, we will skip the naming format validation in the schema.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DocumentSchema.Metadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDocumentAllowMultipleLabels(boolean value) If true, on a given page, there can be multiple `document` annotations covering it.setDocumentSplitter(boolean value) If true, a `document` entity type can be applied to subdocument (splitting).setPrefixedNamingOnProperties(boolean value) If set, all the nested entities must be prefixed with the parents.setSkipNamingValidation(boolean value) If set, we will skip the naming format validation in the schema.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<DocumentSchema.Metadata.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<DocumentSchema.Metadata.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<DocumentSchema.Metadata.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<DocumentSchema.Metadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Metadata.Builder>
-
mergeFrom
public DocumentSchema.Metadata.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<DocumentSchema.Metadata.Builder>- Throws:
IOException
-
getDocumentSplitter
public boolean getDocumentSplitter()If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).
bool document_splitter = 1;- Specified by:
getDocumentSplitterin interfaceDocumentSchema.MetadataOrBuilder- Returns:
- The documentSplitter.
-
setDocumentSplitter
If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).
bool document_splitter = 1;- Parameters:
value- The documentSplitter to set.- Returns:
- This builder for chaining.
-
clearDocumentSplitter
If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).
bool document_splitter = 1;- Returns:
- This builder for chaining.
-
getDocumentAllowMultipleLabels
public boolean getDocumentAllowMultipleLabels()If true, on a given page, there can be multiple `document` annotations covering it.
bool document_allow_multiple_labels = 2;- Specified by:
getDocumentAllowMultipleLabelsin interfaceDocumentSchema.MetadataOrBuilder- Returns:
- The documentAllowMultipleLabels.
-
setDocumentAllowMultipleLabels
If true, on a given page, there can be multiple `document` annotations covering it.
bool document_allow_multiple_labels = 2;- Parameters:
value- The documentAllowMultipleLabels to set.- Returns:
- This builder for chaining.
-
clearDocumentAllowMultipleLabels
If true, on a given page, there can be multiple `document` annotations covering it.
bool document_allow_multiple_labels = 2;- Returns:
- This builder for chaining.
-
getPrefixedNamingOnProperties
public boolean getPrefixedNamingOnProperties()If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;- Specified by:
getPrefixedNamingOnPropertiesin interfaceDocumentSchema.MetadataOrBuilder- Returns:
- The prefixedNamingOnProperties.
-
setPrefixedNamingOnProperties
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;- Parameters:
value- The prefixedNamingOnProperties to set.- Returns:
- This builder for chaining.
-
clearPrefixedNamingOnProperties
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;- Returns:
- This builder for chaining.
-
getSkipNamingValidation
public boolean getSkipNamingValidation()If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.
bool skip_naming_validation = 7;- Specified by:
getSkipNamingValidationin interfaceDocumentSchema.MetadataOrBuilder- Returns:
- The skipNamingValidation.
-
setSkipNamingValidation
If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.
bool skip_naming_validation = 7;- Parameters:
value- The skipNamingValidation to set.- Returns:
- This builder for chaining.
-
clearSkipNamingValidation
If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.
bool skip_naming_validation = 7;- Returns:
- This builder for chaining.
-