Class DocumentSchema.Metadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.DocumentSchema.Metadata
All Implemented Interfaces:
DocumentSchema.MetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
DocumentSchema

public static final class DocumentSchema.Metadata extends com.google.protobuf.GeneratedMessage implements DocumentSchema.MetadataOrBuilder
 Metadata for global schema behavior.
 
Protobuf type google.cloud.documentai.v1.DocumentSchema.Metadata
See Also:
  • Field Details

    • DOCUMENT_SPLITTER_FIELD_NUMBER

      public static final int DOCUMENT_SPLITTER_FIELD_NUMBER
      See Also:
    • DOCUMENT_ALLOW_MULTIPLE_LABELS_FIELD_NUMBER

      public static final int DOCUMENT_ALLOW_MULTIPLE_LABELS_FIELD_NUMBER
      See Also:
    • PREFIXED_NAMING_ON_PROPERTIES_FIELD_NUMBER

      public static final int PREFIXED_NAMING_ON_PROPERTIES_FIELD_NUMBER
      See Also:
    • SKIP_NAMING_VALIDATION_FIELD_NUMBER

      public static final int SKIP_NAMING_VALIDATION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getDocumentSplitter in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The documentSplitter.
    • 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:
      getDocumentAllowMultipleLabels in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The documentAllowMultipleLabels.
    • getPrefixedNamingOnProperties

      public boolean getPrefixedNamingOnProperties()
       If set, all the nested entities must be prefixed with the parents.
       
      bool prefixed_naming_on_properties = 6;
      Specified by:
      getPrefixedNamingOnProperties in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The prefixedNamingOnProperties.
    • 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:
      getSkipNamingValidation in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The skipNamingValidation.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DocumentSchema.Metadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DocumentSchema.Metadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DocumentSchema.Metadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DocumentSchema.Metadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DocumentSchema.Metadata.Builder newBuilder()
    • newBuilder

      public static DocumentSchema.Metadata.Builder newBuilder(DocumentSchema.Metadata prototype)
    • toBuilder

      public DocumentSchema.Metadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DocumentSchema.Metadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DocumentSchema.Metadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DocumentSchema.Metadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<DocumentSchema.Metadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DocumentSchema.Metadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder