| Package | Description |
|---|---|
| com.google.api.services.datastore.client |
| Modifier and Type | Method and Description |
|---|---|
DatastoreOptions.Builder |
DatastoreOptions.Builder.credential(com.google.api.client.auth.oauth2.Credential newCredential)
Sets the Google APIs credentials used to access the API.
|
DatastoreOptions.Builder |
DatastoreOptions.Builder.dataset(String newDataset)
Sets the dataset used to access the datastore.
|
static DatastoreOptions.Builder |
DatastoreHelper.getOptionsFromEnv()
Uses the following environment variables to construct a
Datastore:
DATASTORE_DATASET - the datastore dataset id
DATASTORE_HOST - the host to use to access the datastore
e.g: https://www.googleapis.com
DATASTORE_SERVICE_ACCOUNT - (optional) service account name
DATASTORE_PRIVATE_KEY_FILE - (optional) service account private key file
Preference of credentials is:
- Service Account (specified by DATASTORE_SERVICE_ACCOUNT and DATASTORE_PRIVATE_KEY_FILE)
- ComputeEngine
- no-credentials (for local development environment) |
DatastoreOptions.Builder |
DatastoreOptions.Builder.host(String newHost)
Sets the host used to access the datastore.
|
DatastoreOptions.Builder |
DatastoreOptions.Builder.initializer(com.google.api.client.http.HttpRequestInitializer newInitializer)
Sets the (optional) initializer to run on HTTP requests to the API.
|
DatastoreOptions.Builder |
DatastoreOptions.Builder.transport(com.google.api.client.http.HttpTransport transport)
Sets the transport used to access the API.
|
Copyright © 2015. All rights reserved.