Skip to content

Commit acae946

Browse files
committed
---
yaml --- r: 6271 b: refs/heads/tswast-patch-1 c: e868ca3 h: refs/heads/master i: 6269: ae622dd 6267: 411ec3c 6263: 26d7cee 6255: 3d1444c 6239: 02ea542 6207: f35ce4e 6143: b81efd6
1 parent fa46480 commit acae946

2 files changed

Lines changed: 13 additions & 22 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: 41a2a7a32099540ef3637aeeefafee666f5f0bf9
60+
refs/heads/tswast-patch-1: e868ca3bd9599cb8e94aa3eebb65e581cba3c4b1
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,14 @@ There are multiple ways to authenticate to use Google Cloud services.
5050
Google Cloud Datastore
5151
----------------------
5252

53-
[Google Cloud Datastore][cloud-datastore] is a fully managed, schemaless database for
54-
storing non-relational data. Cloud Datastore automatically scales with
55-
your users and supports ACID transactions, high availability of reads and
56-
writes, strong consistency for reads and ancestor queries, and eventual
57-
consistency for all other queries.
53+
- [API Documentation][datastore-api]
54+
- [Official Documentation][cloud-datastore-docs]
5855

59-
See the [Google Cloud Datastore docs][cloud-datastore-activation] for more details on how to activate
60-
Cloud Datastore for your project.
56+
*Follow the [activation instructions][cloud-datastore-activation] to use the Google Cloud Datastore API with your project.*
6157

62-
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
63-
with the Cloud Datastore using this Client Library.
58+
#### Preview
6459

65-
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) if running this snippet elsewhere.
60+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
6661

6762
```java
6863
import com.google.gcloud.datastore.Datastore;
@@ -73,7 +68,7 @@ import com.google.gcloud.datastore.Entity;
7368
import com.google.gcloud.datastore.Key;
7469
import com.google.gcloud.datastore.KeyFactory;
7570

76-
DatastoreOptions options = DatastoreOptions.builder().projectId(PROJECT_ID).build();
71+
DatastoreOptions options = DatastoreOptions.builder().build();
7772
Datastore datastore = DatastoreFactory.instance().get(options);
7873
KeyFactory keyFactory = datastore.newKeyFactory().kind(KIND);
7974
Key key = keyFactory.newKey(keyName);
@@ -97,18 +92,14 @@ if (entity == null) {
9792
Google Cloud Storage
9893
----------------------
9994

100-
[Google Cloud Storage][cloud-storage] is a durable and highly available
101-
object storage service. Google Cloud Storage is almost infinitely scalable
102-
and guarantees consistency: when a write succeeds, the latest copy of the
103-
object will be returned to any GET, globally.
95+
- [API Documentation][storage-api]
96+
- [Official Documentation][cloud-storage-docs]
10497

105-
See the [Google Cloud Storage docs][cloud-storage-activation] for more details on how to activate
106-
Cloud Storage for your project.
98+
*Follow the [activation instructions][cloud-storage-activation] to use the Google Cloud Storage API with your project.*
10799

108-
See the ``gcloud-java`` API [storage documentation][storage-api] to learn how to interact
109-
with the Cloud Storage using this Client Library.
100+
#### Preview
110101

111-
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) if running this snippet elsewhere.
102+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
112103

113104
```java
114105
import static java.nio.charset.StandardCharsets.UTF_8;
@@ -121,7 +112,7 @@ import com.google.gcloud.storage.StorageOptions;
121112
import java.nio.ByteBuffer;
122113
import java.nio.channels.WritableByteChannel;
123114

124-
StorageOptions options = StorageOptions.builder().projectId(PROJECT_ID).build();
115+
StorageOptions options = StorageOptions.builder().build();
125116
Storage storage = StorageFactory.instance().get(options);
126117
Blob blob = new Blob(storage, "bucket", "blob_name");
127118
if (!blob.exists()) {

0 commit comments

Comments
 (0)