Package com.google.datastore.v1.client
Class DatastoreOptions.Builder
- java.lang.Object
-
- com.google.datastore.v1.client.DatastoreOptions.Builder
-
- Enclosing class:
- DatastoreOptions
public static class DatastoreOptions.Builder extends Object
Builder forDatastoreOptions.
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(DatastoreOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DatastoreOptionsbuild()DatastoreOptions.Buildercredential(com.google.api.client.auth.oauth2.Credential credential)Sets the Google APIsCredentialused to access Cloud Datastore.DatastoreOptions.BuilderdatabaseId(String databaseId)Sets the database ID used to access Cloud Datastore.DatastoreOptions.Builderhost(String host)Sets the host used to access Cloud Datastore.DatastoreOptions.Builderinitializer(com.google.api.client.http.HttpRequestInitializer initializer)Sets the (optional) initializer to run on HTTP requests to Cloud Datastore.DatastoreOptions.BuilderlocalHost(String localHost)Configures the client to access Cloud Datastore on a local host (typically a Cloud Datastore Emulator instance).DatastoreOptions.BuilderprojectEndpoint(String projectEndpoint)DatastoreOptions.BuilderprojectId(String projectId)Sets the project ID used to access Cloud Datastore.DatastoreOptions.Buildertransport(com.google.api.client.http.HttpTransport transport)Sets the transport used to access Cloud Datastore.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DatastoreOptions options)
-
-
Method Detail
-
build
public DatastoreOptions build()
-
projectId
public DatastoreOptions.Builder projectId(String projectId)
Sets the project ID used to access Cloud Datastore.
-
databaseId
@BetaApi public DatastoreOptions.Builder databaseId(String databaseId)
Sets the database ID used to access Cloud Datastore.
-
host
public DatastoreOptions.Builder host(String host)
Sets the host used to access Cloud Datastore. To connect to the Cloud Datastore Emulator, uselocalHostinstead.
-
localHost
public DatastoreOptions.Builder localHost(String 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 public DatastoreOptions.Builder projectEndpoint(String projectEndpoint)
-
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
public DatastoreOptions.Builder credential(com.google.api.client.auth.oauth2.Credential credential)
Sets the Google APIsCredentialused to access Cloud Datastore.
-
transport
public DatastoreOptions.Builder transport(com.google.api.client.http.HttpTransport transport)
Sets the transport used to access Cloud Datastore.
-
-