public static final class DocumentSchema.Metadata.Builder extends GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder> implements DocumentSchema.MetadataOrBuilder
Metadata for global schema behavior.
Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.Metadata
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public DocumentSchema.Metadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DocumentSchema.Metadata build()
Returns
public DocumentSchema.Metadata buildPartial()
Returns
public DocumentSchema.Metadata.Builder clear()
Returns
Overrides
public DocumentSchema.Metadata.Builder clearDocumentAllowMultipleLabels()
If true, on a given page, there can be multiple document
annotations
covering it.
bool document_allow_multiple_labels = 2;
Returns
public DocumentSchema.Metadata.Builder 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
public DocumentSchema.Metadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public DocumentSchema.Metadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public DocumentSchema.Metadata.Builder clearPrefixedNamingOnProperties()
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;
Returns
public DocumentSchema.Metadata.Builder 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
public DocumentSchema.Metadata.Builder clone()
Returns
Overrides
public DocumentSchema.Metadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public boolean getDocumentAllowMultipleLabels()
If true, on a given page, there can be multiple document
annotations
covering it.
bool document_allow_multiple_labels = 2;
Returns
Type | Description |
boolean | The documentAllowMultipleLabels.
|
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;
Returns
Type | Description |
boolean | The documentSplitter.
|
public boolean getPrefixedNamingOnProperties()
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;
Returns
Type | Description |
boolean | The prefixedNamingOnProperties.
|
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;
Returns
Type | Description |
boolean | The skipNamingValidation.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DocumentSchema.Metadata.Builder mergeFrom(DocumentSchema.Metadata other)
Parameter
Returns
public DocumentSchema.Metadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public DocumentSchema.Metadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final DocumentSchema.Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public DocumentSchema.Metadata.Builder setDocumentAllowMultipleLabels(boolean value)
If true, on a given page, there can be multiple document
annotations
covering it.
bool document_allow_multiple_labels = 2;
Parameter
Name | Description |
value | boolean
The documentAllowMultipleLabels to set.
|
Returns
public DocumentSchema.Metadata.Builder setDocumentSplitter(boolean value)
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;
Parameter
Name | Description |
value | boolean
The documentSplitter to set.
|
Returns
public DocumentSchema.Metadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DocumentSchema.Metadata.Builder setPrefixedNamingOnProperties(boolean value)
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;
Parameter
Name | Description |
value | boolean
The prefixedNamingOnProperties to set.
|
Returns
public DocumentSchema.Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public DocumentSchema.Metadata.Builder setSkipNamingValidation(boolean value)
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;
Parameter
Name | Description |
value | boolean
The skipNamingValidation to set.
|
Returns
public final DocumentSchema.Metadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides