Identifies a callback method to be invoked before an Entity of any of the specified kinds
is fetched from the datastore via a get() rpc. If #kinds() is not provided the callback
will execute for all kinds. Methods with this annotation must return void, must accept a
single argument of type PreGetContext, must not throw any checked exceptions, must not be
static, and must belong to a class with a no-arg constructor. Neither the method nor the no-arg
constructor of the class to which it belongs are required to be public. Methods with this
annotation are free to throw any unchecked exception they like. Throwing an unchecked exception
will prevent callbacks that have not yet been executed from running, and the exception will
propagate to the code that invoked the datastore operation that resulted in the invocation of the
callback. Throwing an unchecked exception from a callback will prevent the datastore operation
from executing.
[[["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-03-05 UTC."],[[["The `PreGet` interface identifies a callback method that is invoked before an Entity is fetched from the datastore via a get() rpc."],["If the `kinds()` method is not specified, the callback will run for all entity kinds."],["Methods using the `PreGet` annotation must return `void`, accept a single `PreGetContext` argument, not throw checked exceptions, not be static, and belong to a class with a no-argument constructor."],["Throwing an unchecked exception in a `PreGet` callback will prevent further callbacks from executing and halt the datastore operation."],["The `kinds()` method determines the entity kinds for which the callback applies, defaulting to all kinds when an empty array is returned."]]],[]]