public final class FirestoreOptions extends ServiceOptions<Firestore,FirestoreOptions>
Modifier and Type | Class and Description |
---|---|
static class |
FirestoreOptions.Builder |
static class |
FirestoreOptions.DefaultFirestoreFactory |
static class |
FirestoreOptions.DefaultFirestoreRpcFactory |
CREDENTIAL_ENV_NAME, credentials
Modifier | Constructor and Description |
---|---|
protected |
FirestoreOptions(FirestoreOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
boolean |
areTimestampsInSnapshotsEnabled()
Returns whether or not
DocumentSnapshots return timestamp fields as
Timestamps . |
boolean |
equals(Object o) |
CredentialsProvider |
getCredentialsProvider() |
String |
getDatabaseId() |
static GoogleCredentialsProvider.Builder |
getDefaultCredentialsProviderBuilder() |
protected String |
getDefaultHost() |
static FirestoreOptions |
getDefaultInstance()
Returns a default
FirestoreOptions instance. |
static InstantiatingGrpcChannelProvider.Builder |
getDefaultTransportChannelProviderBuilder() |
static GrpcTransportOptions.Builder |
getDefaultTransportOptionsBuilder() |
protected Set<String> |
getScopes() |
TransportChannelProvider |
getTransportChannelProvider() |
int |
hashCode() |
static FirestoreOptions.Builder |
newBuilder() |
protected boolean |
projectIdRequired()
Returns whether a service requires a project ID.
|
FirestoreOptions.Builder |
toBuilder() |
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance
@InternalApi(value="This class should only be extended within google-cloud-java") protected FirestoreOptions(FirestoreOptions.Builder builder)
public static FirestoreOptions getDefaultInstance()
FirestoreOptions
instance.protected boolean projectIdRequired()
ServiceOptions
projectIdRequired
in class ServiceOptions<Firestore,FirestoreOptions>
protected String getDefaultHost()
getDefaultHost
in class ServiceOptions<Firestore,FirestoreOptions>
public String getDatabaseId()
public CredentialsProvider getCredentialsProvider()
public TransportChannelProvider getTransportChannelProvider()
@Nonnull public static GrpcTransportOptions.Builder getDefaultTransportOptionsBuilder()
@Nonnull public static InstantiatingGrpcChannelProvider.Builder getDefaultTransportChannelProviderBuilder()
@Nonnull public static GoogleCredentialsProvider.Builder getDefaultCredentialsProviderBuilder()
public boolean areTimestampsInSnapshotsEnabled()
DocumentSnapshots
return timestamp fields as
Timestamps
.protected Set<String> getScopes()
getScopes
in class ServiceOptions<Firestore,FirestoreOptions>
@Nonnull public FirestoreOptions.Builder toBuilder()
toBuilder
in class ServiceOptions<Firestore,FirestoreOptions>
@Nonnull public static FirestoreOptions.Builder newBuilder()
Copyright © 2019 Google LLC. All rights reserved.