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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public DocumentSchema.Metadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public DocumentSchema.Metadata build()
public DocumentSchema.Metadata buildPartial()
public DocumentSchema.Metadata.Builder clear()
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;
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;
public DocumentSchema.Metadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public DocumentSchema.Metadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public DocumentSchema.Metadata.Builder clearPrefixedNamingOnProperties()
If set, all the nested entities must be prefixed with the parents.
bool prefixed_naming_on_properties = 6;
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;
public DocumentSchema.Metadata.Builder clone()
Overrides
public DocumentSchema.Metadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
public final boolean isInitialized()
Overrides
public DocumentSchema.Metadata.Builder mergeFrom(DocumentSchema.Metadata other)
public DocumentSchema.Metadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public DocumentSchema.Metadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final DocumentSchema.Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
public DocumentSchema.Metadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
public DocumentSchema.Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
public final DocumentSchema.Metadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides