File tree Expand file tree Collapse file tree
gcloud-java-datastore/src/main/java/com/google/gcloud/datastore
gcloud-java-storage/src/main/java/com/google/gcloud/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: c440ac5a70c3d6362dbad0ddb9f7d12bf0548ad5
2+ refs/heads/master: 3125167ad845cc5f0c5deeeffa215a56e9fff896
33refs/heads/travis: 0fa997e2fc9c6b61b2d91e6d163655aae67d44b6
44refs/heads/gh-pages: 5a10432ecc75f29812e33a8236c900379509fe99
Original file line number Diff line number Diff 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" );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments