Repository navigation
in the README the datastore sample does not compile. #342
Description
Activity
Yes, the README examples got updated too soon. This example will work once we release version 0.0.11, which should be coming very soon (pending some testing in core). The old way should still work, for example:
Datastore datastore = DatastoreFactory.instance().get(DatastoreOptions.defaultInstance());Also the javadoc (available on the website and also packaged with version 0.0.10) should have examples that are in sync with the release version.
Got it, thanks!
0.0.11 does not work with:
Datastore datastore = DatastoreOptions.getDefaultInstance().service();@ludoch Sorry for this, the method
getDefaultInstanceis not part of theDatastoreOptionsinterface, I don't know how it happened to be in the README. To get a Datastore service instance with default options try:Datastore datastore = DatastoreOptions.builder().build().service();
I'll take care of fixing this, either by adding the
getDefaultInstancemethod or by updating the READMEs0.0.12 which includes adding back the
defaultInstancemethods is out but I think we need to merge #389 before closing this issue.- added🚨 criticalP0 critical issue. Requires immediate fixP0 critical issue. Requires immediate fixtriage meI really want to be triaged.I really want to be triaged.
on Apr 6, 2020 - added a commit that references this issue
on Aug 16, 2022 - added 2 commits that reference this issue
on Sep 15, 2022 - added a commit that references this issue
on Oct 5, 2022 - added a commit that references this issue
on Feb 1, 2023 - added a commit that references this issue
on Dec 22, 2025 - added a commit that references this issue
on Jan 6, 2026 - added a commit that references this issue
on Jan 22, 2026 - added a commit that references this issue
on Mar 11, 2026 - added a commit that references this issue
on Mar 23, 2026 - added a commit that references this issue
on Jul 13, 2026
For example, Datastore datastore = DatastoreOptions.getDefaultInstance().service();
does not seem to work with 0.0.10