File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: 1311e0f45d0ce399f2f1a061175d4941f03af3fa
2+ refs/heads/master: 3123b930281df4ae74ffaf645907237fe74a7bf1
33refs/heads/travis: 0fa997e2fc9c6b61b2d91e6d163655aae67d44b6
44refs/heads/gh-pages: 5a10432ecc75f29812e33a8236c900379509fe99
Original file line number Diff line number Diff line change @@ -145,14 +145,13 @@ <h4>Example: Retrieve Datastore Entries</h4>
145145
146146// Authentication is automatic inside Google Compute Engine
147147// and Google App Engine.
148- DatastoreOptions options = DatastoreOptions.builder()
149- .projectId(< span class ="hljs-string "> PROJECT_ID</ span > )
150- .build();
148+ DatastoreOptions options = DatastoreOptions.builder().build();
151149
152150Datastore datastore = DatastoreFactory.instance().get(options);
153151KeyFactory keyFactory = datastore.newKeyFactory().kind(< span class ="hljs-string "> KIND</ span > );
154152Key key = keyFactory.newKey(keyName);
155153Entity entity = datastore.get(key);
154+
156155</ code > </ pre > </ div >
157156
158157 < div hljs ="" language ="java " ng-show ="selected == 'elsewhere' " class =""> < pre >
@@ -167,8 +166,7 @@ <h4>Example: Retrieve Datastore Entries</h4>
167166DatastoreOptions options = DatastoreOptions.builder()
168167 .projectId(< span class ="hljs-string "> PROJECT_ID</ span > )
169168 .authCredentials(AuthCredentials.createForJson(
170- new FileInputStream(< span class ="hljs-string "> PATH_TO_JSON_KEY</ span > )))
171- .build();
169+ new FileInputStream(< span class ="hljs-string "> PATH_TO_JSON_KEY</ span > ))).build();
172170
173171Datastore datastore = DatastoreFactory.instance().get(options);
174172KeyFactory keyFactory = datastore.newKeyFactory().kind(< span class ="hljs-string "> KIND</ span > );
You can’t perform that action at this time.
0 commit comments