You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
in the README the datastore sample does not compile. #342
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());
@ludoch Sorry for this, the method getDefaultInstance is not part of the DatastoreOptions interface, I don't know how it happened to be in the README. To get a Datastore service instance with default options try:
@ludoch In #357 we add back a defaultInstance method to StorageOptions and DatastoreOptions and update both READMEs and website's landing page (will be available on the next release).
Do you think we can close this?
Activity
ajkannan commentedon Nov 10, 2015
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());ajkannan commentedon Nov 10, 2015
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.
ludoch commentedon Nov 10, 2015
Got it, thanks!
aozarov commentedon Nov 10, 2015
@ajkannan just released 0.0.11 so maven should be consistent with site again.
ludoch commentedon Nov 11, 2015
0.0.11 does not work with:
Datastore datastore = DatastoreOptions.getDefaultInstance().service();
mziccard commentedon Nov 11, 2015
@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:I'll take care of fixing this, either by adding the
getDefaultInstancemethod or by updating the READMEsmziccard commentedon Nov 12, 2015
@ludoch In #357 we add back a
defaultInstancemethod toStorageOptionsandDatastoreOptionsand update both READMEs and website's landing page (will be available on the next release).Do you think we can close this?
aozarov commentedon Nov 18, 2015
0.0.12 which includes adding back the
defaultInstancemethods is out but I think we need to merge #389 before closing this issue.mziccard commentedon Nov 18, 2015
#357 and #389 are merged so I am closing this. Feel free to reopen it if need be.
chore: regenerate README (googleapis#342)
build(deps): update dependency com.google.cloud:google-cloud-shared-c…
build(deps): update dependency org.apache.maven.plugins:maven-javadoc…
chore(main): release 2.3.9-SNAPSHOT (#342)
chore(main): release 3.7.4-SNAPSHOT (#342)
chore(main): release 1.2.9 (#342)
chore(bazel): update version of Protobuf to v3.20.1 (#342)
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#…
chore(master): release 1.105.9-SNAPSHOT (#342)
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
docs: fix javadoc formatting (googleapis#343)
chore: set Ruby namespace in proto options (googleapis#342)