Skip to content

Commit f015bde

Browse files
committed
---
yaml --- r: 1171 b: refs/heads/master c: 3125167 h: refs/heads/master i: 1169: 4aa645b 1167: 2c2a77c v: v3
1 parent 7a46ec2 commit f015bde

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
@@ -1,4 +1,4 @@
11
---
2-
refs/heads/master: c440ac5a70c3d6362dbad0ddb9f7d12bf0548ad5
2+
refs/heads/master: 3125167ad845cc5f0c5deeeffa215a56e9fff896
33
refs/heads/travis: 0fa997e2fc9c6b61b2d91e6d163655aae67d44b6
44
refs/heads/gh-pages: 5a10432ecc75f29812e33a8236c900379509fe99

trunk/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");

trunk/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)