public class DatastoreOptions extends Object
Example for connecting to a datastore:
DatastoreOptions options = new DatastoreOptions.Builder()
.dataset("my-dataset-id")
.credential(DatastoreHelper.getComputeEngineCredential())
.build();
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() |
com.google.api.client.http.HttpTransport |
getTransport() |
public String getDataset()
public String getHost()
public com.google.api.client.http.HttpRequestInitializer getInitializer()
public com.google.api.client.auth.oauth2.Credential getCredential()
public com.google.api.client.http.HttpTransport getTransport()
Copyright © 2015. All rights reserved.