Class DocumentSchema.Metadata.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public DocumentSchema.Metadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • clearField

        public DocumentSchema.Metadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • clearOneof

        public DocumentSchema.Metadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • setRepeatedField

        public DocumentSchema.Metadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • addRepeatedField

        public DocumentSchema.Metadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final DocumentSchema.Metadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>
      • mergeUnknownFields

        public final DocumentSchema.Metadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.Metadata.Builder>