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 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.Builder<DocumentSchema.Metadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Metadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Metadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public DocumentSchema.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentSchema.Metadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getDocumentSplitter in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The documentSplitter.
    • setDocumentSplitter

      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;
      Parameters:
      value - The documentSplitter to set.
      Returns:
      This builder for chaining.
    • clearDocumentSplitter

      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:
      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:
      getDocumentAllowMultipleLabels in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The documentAllowMultipleLabels.
    • setDocumentAllowMultipleLabels

      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;
      Parameters:
      value - The documentAllowMultipleLabels to set.
      Returns:
      This builder for chaining.
    • clearDocumentAllowMultipleLabels

      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:
      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:
      getPrefixedNamingOnProperties in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The prefixedNamingOnProperties.
    • setPrefixedNamingOnProperties

      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;
      Parameters:
      value - The prefixedNamingOnProperties to set.
      Returns:
      This builder for chaining.
    • clearPrefixedNamingOnProperties

      public DocumentSchema.Metadata.Builder 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:
      getSkipNamingValidation in interface DocumentSchema.MetadataOrBuilder
      Returns:
      The skipNamingValidation.
    • setSkipNamingValidation

      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;
      Parameters:
      value - The skipNamingValidation to set.
      Returns:
      This builder for chaining.
    • clearSkipNamingValidation

      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:
      This builder for chaining.