Package com.google.datastore.v1.client
Class DatastoreOptions.Builder
java.lang.Object
com.google.datastore.v1.client.DatastoreOptions.Builder
- Enclosing class:
- DatastoreOptions
Builder for
DatastoreOptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()credential(com.google.api.client.auth.oauth2.Credential credential) Sets the Google APIsCredentialused to access Cloud Datastore.Sets the host used to access Cloud Datastore.initializer(com.google.api.client.http.HttpRequestInitializer initializer) Sets the (optional) initializer to run on HTTP requests to Cloud Datastore.Configures the client to access Cloud Datastore on a local host (typically a Cloud Datastore Emulator instance).projectEndpoint(String projectEndpoint) Deprecated.Sets the project ID used to access Cloud Datastore.transport(com.google.api.client.http.HttpTransport transport) Sets the transport used to access Cloud Datastore.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
build
-
projectId
Sets the project ID used to access Cloud Datastore. -
host
Sets the host used to access Cloud Datastore. To connect to the Cloud Datastore Emulator, uselocalHostinstead. -
localHost
Configures the client to access Cloud Datastore on a local host (typically a Cloud Datastore Emulator instance). Call this method also configures the client not to attach credentials to requests. -
projectEndpoint
Deprecated.UseprojectIdand/orhost/localHostinstead.Sets the project endpoint used to access Cloud Datastore. Prefer usingprojectIdand/orhost/localHostwhen possible. -
initializer
public DatastoreOptions.Builder initializer(com.google.api.client.http.HttpRequestInitializer initializer) Sets the (optional) initializer to run on HTTP requests to Cloud Datastore. -
credential
Sets the Google APIsCredentialused to access Cloud Datastore. -
transport
Sets the transport used to access Cloud Datastore.
-
projectIdand/orhost/localHostinstead.