Class DatastoreOptions.Builder (2.17.6)

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
TypeDescription
DatastoreOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

setDatabaseId(String databaseId)

public DatastoreOptions.Builder setDatabaseId(String databaseId)
Parameter
NameDescription
databaseIdString
Returns
TypeDescription
DatastoreOptions.Builder

setNamespace(String namespace)

public DatastoreOptions.Builder setNamespace(String namespace)

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

Parameter
NameDescription
namespaceString
Returns
TypeDescription
DatastoreOptions.Builder

setTransportOptions(TransportOptions transportOptions)

public DatastoreOptions.Builder setTransportOptions(TransportOptions transportOptions)
Parameter
NameDescription
transportOptionscom.google.cloud.TransportOptions
Returns
TypeDescription
DatastoreOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)