public static class DatastoreOptions.Builder extends Object
DatastoreOptions
.Constructor and Description |
---|
Builder() |
Builder(DatastoreOptions options) |
Modifier and Type | Method and Description |
---|---|
DatastoreOptions |
build() |
DatastoreOptions.Builder |
credential(com.google.api.client.auth.oauth2.Credential credential)
Sets the Google APIs
Credential used to access Cloud Datastore. |
DatastoreOptions.Builder |
databaseId(String databaseId)
Sets the database ID used to access Cloud Datastore.
|
DatastoreOptions.Builder |
host(String host)
Sets the host used to access Cloud Datastore.
|
DatastoreOptions.Builder |
initializer(com.google.api.client.http.HttpRequestInitializer initializer)
Sets the (optional) initializer to run on HTTP requests to Cloud Datastore.
|
DatastoreOptions.Builder |
localHost(String localHost)
Configures the client to access Cloud Datastore on a local host (typically a Cloud Datastore
Emulator instance).
|
DatastoreOptions.Builder |
projectEndpoint(String projectEndpoint)
|
DatastoreOptions.Builder |
projectId(String projectId)
Sets the project ID used to access Cloud Datastore.
|
DatastoreOptions.Builder |
transport(com.google.api.client.http.HttpTransport transport)
Sets the transport used to access Cloud Datastore.
|
public Builder()
public Builder(DatastoreOptions options)
public DatastoreOptions build()
public DatastoreOptions.Builder projectId(String projectId)
@BetaApi public DatastoreOptions.Builder databaseId(String databaseId)
public DatastoreOptions.Builder host(String host)
localHost
instead.public DatastoreOptions.Builder localHost(String localHost)
@Deprecated public DatastoreOptions.Builder projectEndpoint(String projectEndpoint)
public DatastoreOptions.Builder initializer(com.google.api.client.http.HttpRequestInitializer initializer)
public DatastoreOptions.Builder credential(com.google.api.client.auth.oauth2.Credential credential)
Credential
used to access Cloud Datastore.public DatastoreOptions.Builder transport(com.google.api.client.http.HttpTransport transport)
Copyright © 2023 Google LLC. All rights reserved.