IndexSpec.Builder (Google App Engine API for Java)

com.google.appengine.api.search

Class IndexSpec.Builder

  • java.lang.Object
    • com.google.appengine.api.search.IndexSpec.Builder
  • Enclosing class:
    IndexSpec


    public static final class IndexSpec.Builder
    extends java.lang.Object
    A builder of IndexSpec.
    • Method Detail

      • setName

        public IndexSpec.Builder setName(java.lang.String name)
        Sets the unique name of the index.
        Parameters:
        name - the name of the index
        Returns:
        this Builder
        Throws:
        java.lang.IllegalArgumentException - if the index name length is not between 1 and IndexChecker#MAXIMUM_INDEX_NAME_LENGTH
      • build

        public IndexSpec build()
        Builds a valid IndexSpec. The builder must have set a valid index name.
        Returns:
        the IndexSpec built by this builder
        Throws:
        java.lang.IllegalArgumentException - if the IndexSpec built is not valid

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Java