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 enviorment 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/v1/datasets/{dataset}
DATASTORE_SERVICE_ACCOUNT - (optional) service account name
DATASTORE_PRIVATE_KEY_FILE - (optional) service account private key file
Preference of credentials is:
- ComputeEngine
- Service Account (specified by DATASTORE_SERVICE_ACCOUNT and DATASTORE_PRIVATE_KEY_FILE)
- 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.
|
Copyright © 2013. All Rights Reserved.