Package com.google.datastore.v1.client
Class DatastoreOptions
java.lang.Object
com.google.datastore.v1.client.DatastoreOptions
An immutable object containing settings for the datastore.
Example for connecting to a datastore:
DatastoreOptions options = new DatastoreOptions.Builder() .projectId("my-project-id") .credential(DatastoreHelper.getComputeEngineCredential()) .build(); DatastoreFactory.get().create(options);
The options should be passed to DatastoreFactory.create(com.google.datastore.v1.client.DatastoreOptions)
.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.client.auth.oauth2.Credential
Deprecated.getHost()
com.google.api.client.http.HttpRequestInitializer
com.google.api.client.http.HttpTransport
-
Field Details
-
SCOPES
-
-
Method Details
-
getProjectId
-
getDatabaseId
Deprecated.This field is ignored and will be removed in a future release. Please set the database id on the request itself. For example:CommitRequest.newBuilder() .setDatabaseId("my-database-id") .... .build();
-
getProjectEndpoint
-
getHost
-
getLocalHost
-
getInitializer
public com.google.api.client.http.HttpRequestInitializer getInitializer() -
getCredential
public com.google.api.client.auth.oauth2.Credential getCredential() -
getTransport
public com.google.api.client.http.HttpTransport getTransport()
-