public static class FirestoreOptions.Builder extends com.google.cloud.ServiceOptions.Builder<Firestore,FirestoreOptions,FirestoreOptions.Builder>
| Modifier and Type | Method and Description |
|---|---|
FirestoreOptions |
build() |
FirestoreOptions.Builder |
setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
Sets the
TransportChannelProvider to use with this Firestore client. |
FirestoreOptions.Builder |
setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
Sets the
CredentialsProvider to use with this Firestore client. |
FirestoreOptions.Builder |
setDatabaseId(String databaseId)
Sets the database ID to use with this Firestore client.
|
FirestoreOptions.Builder |
setEmulatorHost(String emulatorHost)
Sets the emulator host to use with this Firestore client.
|
FirestoreOptions.Builder |
setTransportOptions(com.google.cloud.TransportOptions transportOptions)
Sets the
TransportOptions to use with this Firestore client. |
@Nonnull public FirestoreOptions.Builder setTransportOptions(@Nonnull com.google.cloud.TransportOptions transportOptions)
TransportOptions to use with this Firestore client.setTransportOptions in class com.google.cloud.ServiceOptions.Builder<Firestore,FirestoreOptions,FirestoreOptions.Builder>transportOptions - A GrpcTransportOptions object that defines the transport options for
this client.@Nonnull public FirestoreOptions.Builder setChannelProvider(@Nonnull com.google.api.gax.rpc.TransportChannelProvider channelProvider)
TransportChannelProvider to use with this Firestore client.channelProvider - A InstantiatingGrpcChannelProvider object that defines the transport
provider for this client.@Nonnull public FirestoreOptions.Builder setCredentialsProvider(@Nonnull com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use with this Firestore client.credentialsProvider - A CredentialsProvider object that defines the credential provider
for this client.public FirestoreOptions.Builder setEmulatorHost(@Nonnull String emulatorHost)
FIRESTORE_EMULATOR_HOST environment variable is also set.emulatorHost - The Firestore emulator host to use with this client.public FirestoreOptions.Builder setDatabaseId(@Nonnull String databaseId)
databaseId - The Firestore database ID to use with this client.@Nonnull public FirestoreOptions build()
build in class com.google.cloud.ServiceOptions.Builder<Firestore,FirestoreOptions,FirestoreOptions.Builder>Copyright © 2023 Google LLC. All rights reserved.