Schema.Builder (Google App Engine API for Java)

Class Schema.Builder

  • java.lang.Object
  • Enclosing class:

    public static final class Schema.Builder
    extends java.lang.Object
    A builder which constructs Schema objects.
    • Method Detail

      • addTypedField

        public Schema.Builder addTypedField(java.lang.String fieldName,
                                            Field.FieldType fieldType)
        Adds typed field name to the schema builder. Allows multiple field types with the same name.
        fieldName - the field name to add to the schema
        this document builder
      • build

        public Schema build()
        Builds a valid document. The builder must have set a valid document id, and have a non-empty set of valid fields.
        the schema built by this builder
        java.lang.IllegalArgumentException - if the document 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