If type is specified, RawValue#asType(Class) will be used to restore the original
value of the property. Otherwise instances of RawValue will be returned.
[[["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\u003e\u003ccode\u003ePropertyProjection\u003c/code\u003e is a class that extends \u003ccode\u003eProjection\u003c/code\u003e and is used to specify that a query should return a particular property.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003ePropertyProjection(String propertyName, @Nullable Class<?> type)\u003c/code\u003e is used to create a property projection, allowing specification of the property name and its type.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetType()\u003c/code\u003e returns the data type specified for the projected property, and it may return null if the type is unknown.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetName()\u003c/code\u003e method returns the name of the property that this projection populates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eequals()\u003c/code\u003e is used to check if objects are equal, while \u003ccode\u003ehashCode()\u003c/code\u003e is used for generating a hash code, and \u003ccode\u003etoString()\u003c/code\u003e method returns the string representation of the \u003ccode\u003ePropertyProjection\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class PropertyProjection (2.0.0)\n\n public final class PropertyProjection extends Projection\n\nA property projection.\n\nIf specified on a query, this will cause the query return the specified property.\nSee Also: [Query#getProjections()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Query#com_google_appengine_api_datastore_Query_getProjections__) \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e [Projection](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Projection) \\\u003e PropertyProjection \n\nInherited Members\n-----------------\n\n[Projection.getName()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Projection#com_google_appengine_api_datastore_Projection_getName__) \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### PropertyProjection(String propertyName, @Nullable Class\\\u003c?\\\u003e type)\n\n public PropertyProjection(String propertyName, @Nullable Class\u003c?\u003e type)\n\nConstructs a property projection.\n\nIf type is specified, [RawValue#asType(Class)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.RawValue#com_google_appengine_api_datastore_RawValue_asType_java_lang_Class____) will be used to restore the original\nvalue of the property. Otherwise instances of [RawValue](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.RawValue) will be returned.\n\nMethods\n-------\n\n### equals(@Nullable Object obj)\n\n public boolean equals(@Nullable Object obj)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getName()\n\n public String getName()\n\nReturns the name of the property this projection populates.\n\n**Overrides** \n[Projection.getName()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Projection#com_google_appengine_api_datastore_Projection_getName__)\n\n### getType()\n\n public @Nullable Class\u003c?\u003e getType()\n\nReturns the type specified for this projection.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]