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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
credential
(com.google.api.client.auth.oauth2.Credential credential) Sets the Google APIsCredential
used to access Cloud Datastore.databaseId
(String databaseId) Deprecated.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. -
databaseId
Deprecated.This field is ignored and will be removed in a future release. Please set the database id on the request itself. For example:CommitRequest.newBuilder() .setDatabaseId("my-database-id") .... .build();
-
host
Sets the host used to access Cloud Datastore. To connect to the Cloud Datastore Emulator, uselocalHost
instead. -
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.UseprojectId
and/orhost
/localHost
instead.Sets the project endpoint used to access Cloud Datastore. Prefer usingprojectId
and/orhost
/localHost
when 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 APIsCredential
used to access Cloud Datastore. -
transport
Sets the transport used to access Cloud Datastore.
-
projectId
and/orhost
/localHost
instead.