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 @@ -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