public abstract static class CloudDatastoreRemoteServiceConfig.Builder
extends java.lang.Object
CloudDatastoreRemoteServiceConfig
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract CloudDatastoreRemoteServiceConfig.Builder |
additionalAppIds(java.util.Set<CloudDatastoreRemoteServiceConfig.AppId> value)
Provides a set of additional app IDs that may appear in
Key values in entities. |
abstract CloudDatastoreRemoteServiceConfig.Builder |
appId(CloudDatastoreRemoteServiceConfig.AppId value)
Sets the
CloudDatastoreRemoteServiceConfig.AppId of the Cloud Datastore instance to call. |
CloudDatastoreRemoteServiceConfig |
build() |
abstract CloudDatastoreRemoteServiceConfig.Builder |
emulatorHost(java.lang.String value)
Instructs the client to connect to a locally-running Cloud Datastore Emulator and not to pass
credentials.
|
abstract CloudDatastoreRemoteServiceConfig.Builder |
hostOverride(java.lang.String value)
Overrides the host (e.g.
|
abstract CloudDatastoreRemoteServiceConfig.Builder |
httpConnectTimeoutMillis(int value)
Sets the HTTP connect timeout in milliseconds.
|
abstract CloudDatastoreRemoteServiceConfig.Builder |
installApiProxyEnvironment(boolean value)
If set to true, a minimal
ApiProxy.Environment will be installed (if none is already
installed). |
abstract CloudDatastoreRemoteServiceConfig.Builder |
maxRetries(int value)
Sets the maximum number of retries for underlying HTTP connect exceptions.
|
abstract CloudDatastoreRemoteServiceConfig.Builder |
useComputeEngineCredential(boolean value)
If set to true, always use a Compute Engine credential instead of using the Application
Default Credentials library to construct the credential.
|
CloudDatastoreRemoteServiceConfig.Builder |
useServiceAccountCredential(java.lang.String serviceAccountId,
java.security.PrivateKey privateKey)
Instructs the client to use a service account credential instead of using the Application
Default Credentials library to construct the credential.
|
public abstract CloudDatastoreRemoteServiceConfig.Builder appId(CloudDatastoreRemoteServiceConfig.AppId value)
CloudDatastoreRemoteServiceConfig.AppId
of the Cloud Datastore instance to call. Required.public abstract CloudDatastoreRemoteServiceConfig.Builder emulatorHost(java.lang.String value)
public abstract CloudDatastoreRemoteServiceConfig.Builder hostOverride(java.lang.String value)
datastore.googleapis.com
) used to contact the Cloud
Datastore API. To connect to the Cloud Datastore Emulator, use emulatorHost(java.lang.String)
instead.public abstract CloudDatastoreRemoteServiceConfig.Builder additionalAppIds(java.util.Set<CloudDatastoreRemoteServiceConfig.AppId> value)
Key
values in entities.
This is only required if the client will read entities containing Key
values that
contain app IDs other than the one provided to appId(com.google.appengine.api.datastore.CloudDatastoreRemoteServiceConfig.AppId)
. Any such app IDs should be
provided to this method.
public abstract CloudDatastoreRemoteServiceConfig.Builder installApiProxyEnvironment(boolean value)
ApiProxy.Environment
will be installed (if none is already
installed).
If set to false, no attempt to install an environment will be made and the user must
install it instead. At a minimum, such an environment must provide implementations for ApiProxy.Environment.getAppId()
, ApiProxy.Environment.getAttributes()
, and ApiProxy.Environment.getRemainingMillis()
.
public abstract CloudDatastoreRemoteServiceConfig.Builder useComputeEngineCredential(boolean value)
Cannot be combined with a call to useServiceAccountCredential(String,
PrivateKey)
.
public abstract CloudDatastoreRemoteServiceConfig.Builder maxRetries(int value)
public abstract CloudDatastoreRemoteServiceConfig.Builder httpConnectTimeoutMillis(int value)
public CloudDatastoreRemoteServiceConfig.Builder useServiceAccountCredential(java.lang.String serviceAccountId, java.security.PrivateKey privateKey)
Cannot be combined with a call to useComputeEngineCredential(boolean)
.
public CloudDatastoreRemoteServiceConfig build()