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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.client.auth.oauth2.CredentialgetHost()com.google.api.client.http.HttpRequestInitializercom.google.api.client.http.HttpTransport
-
Field Details
-
SCOPES
-
-
Method Details
-
getProjectId
-
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()
-