|
41 | 41 | */ |
42 | 42 | public class DatastoreOptions { |
43 | 43 | private final String projectId; |
44 | | - private final String databaseId; |
| 44 | + |
| 45 | + @Deprecated private final String databaseId; |
| 46 | + |
45 | 47 | private final String projectEndpoint; |
46 | 48 | private final String host; |
47 | 49 | private final String localHost; |
@@ -75,7 +77,9 @@ public static class Builder { |
75 | 77 | "Can set at most one of project endpoint, host, and local host."; |
76 | 78 |
|
77 | 79 | private String projectId; |
78 | | - private String databaseId; |
| 80 | + |
| 81 | + @Deprecated private String databaseId; |
| 82 | + |
79 | 83 | private String projectEndpoint; |
80 | 84 | private String host; |
81 | 85 | private String localHost; |
@@ -107,8 +111,19 @@ public Builder projectId(String projectId) { |
107 | 111 | return this; |
108 | 112 | } |
109 | 113 |
|
110 | | - /** Sets the database ID used to access Cloud Datastore. */ |
| 114 | + /** |
| 115 | + * This field is ignored and will be removed in a future release. Please set the database id on |
| 116 | + * the request itself. For example: |
| 117 | + * |
| 118 | + * <pre>{@code |
| 119 | + * CommitRequest.newBuilder() |
| 120 | + * .setDatabaseId("my-database-id") |
| 121 | + * .... |
| 122 | + * .build(); |
| 123 | + * }</pre> |
| 124 | + */ |
111 | 125 | @BetaApi |
| 126 | + @Deprecated |
112 | 127 | public Builder databaseId(String databaseId) { |
113 | 128 | this.databaseId = databaseId; |
114 | 129 | return this; |
@@ -188,7 +203,19 @@ public String getProjectId() { |
188 | 203 | return projectId; |
189 | 204 | } |
190 | 205 |
|
| 206 | + /** |
| 207 | + * This field is ignored and will be removed in a future release. Please set the database id on |
| 208 | + * the request itself. For example: |
| 209 | + * |
| 210 | + * <pre>{@code |
| 211 | + * CommitRequest.newBuilder() |
| 212 | + * .setDatabaseId("my-database-id") |
| 213 | + * .... |
| 214 | + * .build(); |
| 215 | + * }</pre> |
| 216 | + */ |
191 | 217 | @BetaApi |
| 218 | + @Deprecated |
192 | 219 | public String getDatabaseId() { |
193 | 220 | return databaseId; |
194 | 221 | } |
|
0 commit comments