GetIndexesRequest.Builder (Google App Engine API for Java)

com.google.appengine.api.search

Class GetIndexesRequest.Builder

  • java.lang.Object
    • com.google.appengine.api.search.GetIndexesRequest.Builder
    • Method Detail

      • setOffset

        public GetIndexesRequest.Builder setOffset(java.lang.Integer offset)
        Sets the offset of the first index to return. This method comes with a performance penalty and if you just want to page through all indexes you should consider setStartIndexName(String) method.
        Parameters:
        offset - the offset of the first returned index
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if negative or too large offset is given
      • setIndexNamePrefix

        public GetIndexesRequest.Builder setIndexNamePrefix(java.lang.String indexNamePrefix)
        Sets the prefix to be matched against the names of returned indexes. If the prefix is set to, say "a", only indexes with names starting with 'a' will be returned.
        Parameters:
        indexNamePrefix - the prefix used to select returned indexes
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if invalid index name is given
      • setIncludeStartIndex

        public GetIndexesRequest.Builder setIncludeStartIndex(boolean includeStartIndex)
        Sets whether or not to include the index whose name is specified via the setStartIndexName(String) method.
        Parameters:
        includeStartIndex - whether or not to return the start index
        Returns:
        this builder
      • setStartIndexName

        public GetIndexesRequest.Builder setStartIndexName(java.lang.String startIndexName)
        Sets the name of the first index to return. You may exclude this index by using the setIncludeStartIndex(boolean) method.
        Parameters:
        startIndexName - the name of the first index to be returned
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if invalid start index name is given
      • setLimit

        public GetIndexesRequest.Builder setLimit(java.lang.Integer limit)
        Sets the maximum number of indexes to return.
        Parameters:
        limit - the number of indexes to return
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if negative or too large limit is given
      • setSchemaFetched

        public GetIndexesRequest.Builder setSchemaFetched(boolean schemaFetched)
        Sets whether or not the schema is returned with indexes. An index schema is a map from field names to field types.
        Parameters:
        schemaFetched - whether or not schemas are present in returned indexes
        Returns:
        this builder
      • setNamespace

        public GetIndexesRequest.Builder setNamespace(java.lang.String namespace)
        Sets the namespace to use for this request. Only indexes defined within this namespace will be fetched.
        Parameters:
        namespace - The namespace for this request.
        Returns:
        this builder