Class TableExtractionParams.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<TableExtractionParams.Builder>
      • clear

        public TableExtractionParams.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<TableExtractionParams.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<TableExtractionParams.Builder>
      • getDefaultInstanceForType

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

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

        public TableExtractionParams buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TableExtractionParams.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<TableExtractionParams.Builder>
      • clearField

        public TableExtractionParams.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<TableExtractionParams.Builder>
      • clearOneof

        public TableExtractionParams.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<TableExtractionParams.Builder>
      • setRepeatedField

        public TableExtractionParams.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<TableExtractionParams.Builder>
      • addRepeatedField

        public TableExtractionParams.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<TableExtractionParams.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TableExtractionParams.Builder>
      • mergeFrom

        public TableExtractionParams.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<TableExtractionParams.Builder>
        Throws:
        IOException
      • setEnabled

        public TableExtractionParams.Builder setEnabled​(boolean value)
         Whether to enable table extraction.
         
        bool enabled = 1;
        Parameters:
        value - The enabled to set.
        Returns:
        This builder for chaining.
      • clearEnabled

        public TableExtractionParams.Builder clearEnabled()
         Whether to enable table extraction.
         
        bool enabled = 1;
        Returns:
        This builder for chaining.
      • getTableBoundHintsList

        public List<TableBoundHint> getTableBoundHintsList()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTableBoundHintsList in interface TableExtractionParamsOrBuilder
      • getTableBoundHintsCount

        public int getTableBoundHintsCount()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTableBoundHintsCount in interface TableExtractionParamsOrBuilder
      • getTableBoundHints

        public TableBoundHint getTableBoundHints​(int index)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTableBoundHints in interface TableExtractionParamsOrBuilder
      • setTableBoundHints

        public TableExtractionParams.Builder setTableBoundHints​(int index,
                                                                TableBoundHint value)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • setTableBoundHints

        public TableExtractionParams.Builder setTableBoundHints​(int index,
                                                                TableBoundHint.Builder builderForValue)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addTableBoundHints

        public TableExtractionParams.Builder addTableBoundHints​(TableBoundHint value)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addTableBoundHints

        public TableExtractionParams.Builder addTableBoundHints​(int index,
                                                                TableBoundHint value)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addTableBoundHints

        public TableExtractionParams.Builder addTableBoundHints​(TableBoundHint.Builder builderForValue)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addTableBoundHints

        public TableExtractionParams.Builder addTableBoundHints​(int index,
                                                                TableBoundHint.Builder builderForValue)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addAllTableBoundHints

        public TableExtractionParams.Builder addAllTableBoundHints​(Iterable<? extends TableBoundHint> values)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • clearTableBoundHints

        public TableExtractionParams.Builder clearTableBoundHints()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • removeTableBoundHints

        public TableExtractionParams.Builder removeTableBoundHints​(int index)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getTableBoundHintsBuilder

        public TableBoundHint.Builder getTableBoundHintsBuilder​(int index)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getTableBoundHintsOrBuilder

        public TableBoundHintOrBuilder getTableBoundHintsOrBuilder​(int index)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTableBoundHintsOrBuilder in interface TableExtractionParamsOrBuilder
      • getTableBoundHintsOrBuilderList

        public List<? extends TableBoundHintOrBuilder> getTableBoundHintsOrBuilderList()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTableBoundHintsOrBuilderList in interface TableExtractionParamsOrBuilder
      • addTableBoundHintsBuilder

        public TableBoundHint.Builder addTableBoundHintsBuilder()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addTableBoundHintsBuilder

        public TableBoundHint.Builder addTableBoundHintsBuilder​(int index)
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getTableBoundHintsBuilderList

        public List<TableBoundHint.Builder> getTableBoundHintsBuilderList()
         Optional. Table bounding box hints that can be provided to complex cases
         which our algorithm cannot locate the table(s) in.
         
        repeated .google.cloud.documentai.v1beta2.TableBoundHint table_bound_hints = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getHeaderHintsList

        public com.google.protobuf.ProtocolStringList getHeaderHintsList()
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHeaderHintsList in interface TableExtractionParamsOrBuilder
        Returns:
        A list containing the headerHints.
      • getHeaderHintsCount

        public int getHeaderHintsCount()
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHeaderHintsCount in interface TableExtractionParamsOrBuilder
        Returns:
        The count of headerHints.
      • getHeaderHints

        public String getHeaderHints​(int index)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHeaderHints in interface TableExtractionParamsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The headerHints at the given index.
      • getHeaderHintsBytes

        public com.google.protobuf.ByteString getHeaderHintsBytes​(int index)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHeaderHintsBytes in interface TableExtractionParamsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the headerHints at the given index.
      • setHeaderHints

        public TableExtractionParams.Builder setHeaderHints​(int index,
                                                            String value)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The headerHints to set.
        Returns:
        This builder for chaining.
      • addHeaderHints

        public TableExtractionParams.Builder addHeaderHints​(String value)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The headerHints to add.
        Returns:
        This builder for chaining.
      • addAllHeaderHints

        public TableExtractionParams.Builder addAllHeaderHints​(Iterable<String> values)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The headerHints to add.
        Returns:
        This builder for chaining.
      • clearHeaderHints

        public TableExtractionParams.Builder clearHeaderHints()
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addHeaderHintsBytes

        public TableExtractionParams.Builder addHeaderHintsBytes​(com.google.protobuf.ByteString value)
         Optional. Reserved for future use.
         
        repeated string header_hints = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the headerHints to add.
        Returns:
        This builder for chaining.
      • getModelVersion

        public String getModelVersion()
         Model version of the table extraction system. Default is "builtin/stable".
         Specify "builtin/latest" for the latest model.
         
        string model_version = 4;
        Specified by:
        getModelVersion in interface TableExtractionParamsOrBuilder
        Returns:
        The modelVersion.
      • getModelVersionBytes

        public com.google.protobuf.ByteString getModelVersionBytes()
         Model version of the table extraction system. Default is "builtin/stable".
         Specify "builtin/latest" for the latest model.
         
        string model_version = 4;
        Specified by:
        getModelVersionBytes in interface TableExtractionParamsOrBuilder
        Returns:
        The bytes for modelVersion.
      • setModelVersion

        public TableExtractionParams.Builder setModelVersion​(String value)
         Model version of the table extraction system. Default is "builtin/stable".
         Specify "builtin/latest" for the latest model.
         
        string model_version = 4;
        Parameters:
        value - The modelVersion to set.
        Returns:
        This builder for chaining.
      • clearModelVersion

        public TableExtractionParams.Builder clearModelVersion()
         Model version of the table extraction system. Default is "builtin/stable".
         Specify "builtin/latest" for the latest model.
         
        string model_version = 4;
        Returns:
        This builder for chaining.
      • setModelVersionBytes

        public TableExtractionParams.Builder setModelVersionBytes​(com.google.protobuf.ByteString value)
         Model version of the table extraction system. Default is "builtin/stable".
         Specify "builtin/latest" for the latest model.
         
        string model_version = 4;
        Parameters:
        value - The bytes for modelVersion to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TableExtractionParams.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<TableExtractionParams.Builder>
      • mergeUnknownFields

        public final TableExtractionParams.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<TableExtractionParams.Builder>