20
20
import com .google .api .client .auth .oauth2 .Credential ;
21
21
import com .google .api .client .http .HttpRequestInitializer ;
22
22
import com .google .api .client .http .HttpTransport ;
23
- import com .google .api .core .BetaApi ;
24
23
import java .util .Arrays ;
25
24
import java .util .List ;
26
25
42
41
public class DatastoreOptions {
43
42
private final String projectId ;
44
43
45
- @ Deprecated private final String databaseId ;
46
-
47
44
private final String projectEndpoint ;
48
45
private final String host ;
49
46
private final String localHost ;
@@ -60,7 +57,6 @@ public class DatastoreOptions {
60
57
b .projectId != null || b .projectEndpoint != null ,
61
58
"Either project ID or project endpoint must be provided." );
62
59
this .projectId = b .projectId ;
63
- this .databaseId = b .databaseId ;
64
60
this .projectEndpoint = b .projectEndpoint ;
65
61
this .host = b .host ;
66
62
this .localHost = b .localHost ;
@@ -78,8 +74,6 @@ public static class Builder {
78
74
79
75
private String projectId ;
80
76
81
- @ Deprecated private String databaseId ;
82
-
83
77
private String projectEndpoint ;
84
78
private String host ;
85
79
private String localHost ;
@@ -91,7 +85,6 @@ public Builder() {}
91
85
92
86
public Builder (DatastoreOptions options ) {
93
87
this .projectId = options .projectId ;
94
- this .databaseId = options .databaseId ;
95
88
this .projectEndpoint = options .projectEndpoint ;
96
89
this .host = options .host ;
97
90
this .localHost = options .localHost ;
@@ -111,24 +104,6 @@ public Builder projectId(String projectId) {
111
104
return this ;
112
105
}
113
106
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
- */
125
- @ BetaApi
126
- @ Deprecated
127
- public Builder databaseId (String databaseId ) {
128
- this .databaseId = databaseId ;
129
- return this ;
130
- }
131
-
132
107
/**
133
108
* Sets the host used to access Cloud Datastore. To connect to the Cloud Datastore Emulator, use
134
109
* {@link #localHost} instead.
@@ -203,23 +178,6 @@ public String getProjectId() {
203
178
return projectId ;
204
179
}
205
180
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
- */
217
- @ BetaApi
218
- @ Deprecated
219
- public String getDatabaseId () {
220
- return databaseId ;
221
- }
222
-
223
181
public String getProjectEndpoint () {
224
182
return projectEndpoint ;
225
183
}
0 commit comments