Skip to content

Commit 595f99e

Browse files
committed
---
yaml --- r: 1909 b: refs/heads/pubsub-alpha c: 3125167 h: refs/heads/master i: 1907: bf56df1
1 parent 17729b3 commit 595f99e

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6-
refs/heads/pubsub-alpha: c440ac5a70c3d6362dbad0ddb9f7d12bf0548ad5
6+
refs/heads/pubsub-alpha: 3125167ad845cc5f0c5deeeffa215a56e9fff896
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88
refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

branches/pubsub-alpha/gcloud-java-datastore/src/main/java/com/google/gcloud/datastore/DatastoreOptions.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ public String namespace() {
171171
return namespace;
172172
}
173173

174+
/**
175+
* Returns a default {@code DatastoreOptions} instance.
176+
*/
177+
public static DatastoreOptions getDefaultInstance() {
178+
return builder().build();
179+
}
180+
174181
private static String defaultNamespace() {
175182
try {
176183
Class<?> clazz = Class.forName("com.google.appengine.api.NamespaceManager");

branches/pubsub-alpha/gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageOptions.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ public String pathDelimiter() {
111111
return pathDelimiter;
112112
}
113113

114+
/**
115+
* Returns a default {@code StorageOptions} instance.
116+
*/
117+
public static StorageOptions getDefaultInstance() {
118+
return builder().build();
119+
}
120+
114121
@Override
115122
public Builder toBuilder() {
116123
return new Builder(this);

0 commit comments

Comments
 (0)