Class DatastoreOptions.Builder (2.20.1)

public static class DatastoreOptions.Builder extends ServiceOptions.Builder<Datastore,DatastoreOptions,DatastoreOptions.Builder>

Inheritance

java.lang.Object > com.google.cloud.ServiceOptions.Builder > DatastoreOptions.Builder

Methods

build()

public DatastoreOptions build()
Returns
Type Description
DatastoreOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

setDatabaseId(String databaseId)

public DatastoreOptions.Builder setDatabaseId(String databaseId)
Parameter
Name Description
databaseId String
Returns
Type Description
DatastoreOptions.Builder

setNamespace(String namespace)

public DatastoreOptions.Builder setNamespace(String namespace)

Sets the default namespace to be used by the datastore service.

Parameter
Name Description
namespace String
Returns
Type Description
DatastoreOptions.Builder

setTransportOptions(TransportOptions transportOptions)

public DatastoreOptions.Builder setTransportOptions(TransportOptions transportOptions)
Parameter
Name Description
transportOptions com.google.cloud.TransportOptions
Returns
Type Description
DatastoreOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)