[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis \u003ccode\u003eSchema.Builder\u003c/code\u003e class is used to create \u003ccode\u003eSchema\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and includes methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ewait()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBuilder()\u003c/code\u003e constructor is protected and constructs a new schema builder.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eaddTypedField()\u003c/code\u003e adds a named field with a specified \u003ccode\u003eField.FieldType\u003c/code\u003e to the schema, allowing for multiple fields with the same name but different types.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e creates a valid schema object, ensuring a document has a valid id and a non-empty set of valid fields.\u003c/p\u003e\n"]]],[],null,["# Class Schema.Builder (2.0.0)\n\n public static final class Schema.Builder\n\nA builder which constructs Schema objects. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e Schema.Builder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### Builder()\n\n protected Builder()\n\nConstructs a builder for a schema.\n\nMethods\n-------\n\n### addTypedField(String fieldName, Field.FieldType fieldType)\n\n public Schema.Builder addTypedField(String fieldName, Field.FieldType fieldType)\n\nAdds typed field name to the schema builder. Allows multiple\nfield types with the same name.\n\n### build()\n\n public Schema build()\n\nBuilds a valid document. The builder must have set a valid document\nid, and have a non-empty set of valid fields."]]