Skip to content

Commit

Permalink
Merge pull request #376 from ajkannan/update-pkg-info-examples
Browse files Browse the repository at this point in the history
Simplify package-info examples
  • Loading branch information
mziccard committed Nov 13, 2015
2 parents 522ed56 + 1bcdf4b commit b7099e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
/**
* A client to the Google Cloud Datastore.
*
* <p>A simple usage example:
* <p>Here's a simple usage example for using gcloud-java from App/Compute Engine:
* <pre> {@code
* DatastoreOptions options = DatastoreOptions.builder().projectId(PROJECT_ID).build();
* Datastore datastore = options.service();
* Datastore datastore = DatastoreOptions.defaultInstance().service();
* KeyFactory keyFactory = datastore.newKeyFactory().kind(kind);
* Key key = keyFactory.newKey(keyName);
* Entity entity = datastore.get(key);
Expand All @@ -47,6 +46,11 @@
* }
* } </pre>
*
* <p>When using gcloud-java from outside of App/Compute Engine, you have to <a
* href="https://github.com/GoogleCloudPlatform/gcloud-java#specifying-a-project-id">specify a
* project ID</a> and
* <a href="https://github.com/GoogleCloudPlatform/gcloud-java#authentication">provide
* credentials</a>.
* @see <a href="https://cloud.google.com/datastore/">Google Cloud Datastore</a>
*/
package com.google.gcloud.datastore;
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
/**
* A client to Google Cloud Storage.
*
* <p>A simple usage example:
* <p>Here's a simple usage example for using gcloud-java from App/Compute Engine:
* <pre>{@code
* StorageOptions options = StorageOptions.builder().projectId("project").build();
* Storage storage = options.service();
* Storage storage = StorageOptions.defaultInstance().service();
* BlobId blobId = BlobId.of("bucket", "blob_name");
* Blob blob = Blob.load(storage, blobId);
* if (blob == null) {
Expand All @@ -35,6 +34,11 @@
* channel.close();
* }}</pre>
*
* When using gcloud-java from outside of App/Compute Engine, you have to <a
* href="https://github.com/GoogleCloudPlatform/gcloud-java#specifying-a-project-id">specify a
* project ID</a> and
* <a href="https://github.com/GoogleCloudPlatform/gcloud-java#authentication">provide
* credentials</a>.
* @see <a href="https://cloud.google.com/storage/">Google Cloud Storage</a>
*/
package com.google.gcloud.storage;
Expand Down

0 comments on commit b7099e0

Please sign in to comment.