Skip to content

Commit 7ea9ed4

Browse files
committed
---
yaml --- r: 6487 b: refs/heads/tswast-patch-1 c: 3125167 h: refs/heads/master i: 6485: 27b50ab 6483: 9bbbe6c 6479: 43c4607
1 parent a3c19cb commit 7ea9ed4

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
@@ -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: c440ac5a70c3d6362dbad0ddb9f7d12bf0548ad5
60+
refs/heads/tswast-patch-1: 3125167ad845cc5f0c5deeeffa215a56e9fff896
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/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/tswast-patch-1/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)