public class DatastoreOptions extends Object
Example for connecting to a datastore:
DatastoreOptions options = new DatastoreOptions() .dataset("my-dataset-id"), .credential(DatastoreHelper.getGceCredential()); DatastoreFactory.get().create(options);
The options should be passed to DatastoreFactory.create(com.google.api.services.datastore.client.DatastoreOptions)
.
Modifier and Type | Class and Description |
---|---|
static class |
DatastoreOptions.Builder
Builder for
DatastoreOptions . |
Modifier and Type | Method and Description |
---|---|
com.google.api.client.auth.oauth2.Credential |
getCredential() |
String |
getDataset() |
String |
getHost() |
com.google.api.client.http.HttpRequestInitializer |
getInitializer() |
Copyright © 2013. All Rights Reserved.