perplexed perplexed - 1 year ago 91
Java Question

Alternative for DatastoreHelper Java class in Google Cloud Datastore v1 API

In the Datastore v1Beta2 API version, DatastoreHelper was a public class, and we rely on member functions like getOptionsFromEnv(), getComputeEngineCredential(), makeFilter() and makeValue(). Looks like that class is now private in the v1 API. What's the equivalent class that will provide us access to those functions?

Answer Source

Most of those methods are still public in google-cloud-datastore library:

getComputeEngineCredential() was removed, but you can use Application Default Credentials instead, which supports getting a credential from Compute Engine.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download