Skip to content

Commit 8980789

Browse files
committed
---
yaml --- r: 6183 b: refs/heads/tswast-patch-1 c: da3c441 h: refs/heads/master i: 6181: 0e9630e 6179: c42f78b 6175: 6ff5e1e
1 parent 509534d commit 8980789

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 3123b930281df4ae74ffaf645907237fe74a7bf1
60+
refs/heads/tswast-patch-1: da3c441dc280fea1a544ccda2859f90a5b0bad72
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/src/site/resources/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,15 @@ <h4>Example: Retrieve Datastore Entries</h4>
142142
import com.google.gcloud.datastore.Key;
143143
import com.google.gcloud.datastore.KeyFactory;
144144

145-
146145
// Authentication is automatic inside Google Compute Engine
147146
// and Google App Engine.
148147
DatastoreOptions options = DatastoreOptions.builder().build();
149-
150148
Datastore datastore = DatastoreFactory.instance().get(options);
151149
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
152150
Key key = keyFactory.newKey(keyName);
153151
Entity entity = datastore.get(key);
154152

153+
155154
</code></pre></div>
156155

157156
<div hljs="" language="java" ng-show="selected == 'elsewhere'" class=""><pre>
@@ -167,7 +166,6 @@ <h4>Example: Retrieve Datastore Entries</h4>
167166
.projectId(<span class="hljs-string">PROJECT_ID</span>)
168167
.authCredentials(AuthCredentials.createForJson(
169168
new FileInputStream(<span class="hljs-string">PATH_TO_JSON_KEY</span>))).build();
170-
171169
Datastore datastore = DatastoreFactory.instance().get(options);
172170
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
173171
Key key = keyFactory.newKey(keyName);

0 commit comments

Comments
 (0)