Class DatastoreOptions.Builder (2.24.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

setOpenTelemetryOptions(DatastoreOpenTelemetryOptions openTelemetryOptions)

public DatastoreOptions.Builder setOpenTelemetryOptions(DatastoreOpenTelemetryOptions openTelemetryOptions)

Sets the DatastoreOpenTelemetryOptions to be used for this Firestore instance.

Parameter
Name Description
openTelemetryOptions DatastoreOpenTelemetryOptions

The DatastoreOpenTelemetryOptions to use.

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)