[[["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 class is a builder for creating \u003ccode\u003eFieldExpression\u003c/code\u003e objects, which require both a name and an expression.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method constructs and returns a \u003ccode\u003eFieldExpression\u003c/code\u003e, ensuring that both the expression and name are provided.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetExpression(String expression)\u003c/code\u003e method allows setting the expression to be evaluated for inclusion in a \u003ccode\u003eScoredDocument\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetName(String name)\u003c/code\u003e method is used to define the name of the field expression, which must be a valid field name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFieldExpression.Builder\u003c/code\u003e class inherits members from the \u003ccode\u003ejava.lang.Object\u003c/code\u003e class, such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class FieldExpression.Builder (2.0.0)\n\n public static final class FieldExpression.Builder\n\nA field expression builder. A name and expression must be\nsupplied. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e FieldExpression.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 public Builder()\n\nMethods\n-------\n\n### build()\n\n public FieldExpression build()\n\nBuilds the FieldExpression. An expression and name for the expression\nmust be given.\n\n### setExpression(String expression)\n\n public FieldExpression.Builder setExpression(String expression)\n\nSets the expression to evaluate to return in [ScoredDocument](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.ScoredDocument).\n\n### setName(String name)\n\n public FieldExpression.Builder setName(String name)\n\nSets the name of the expression. The name must be a valid\nfield name."]]