/// <inheritdoc />
        public override async Task <FirestoreDb> BuildAsync(CancellationToken cancellationToken = default)
        {
            var projectId     = ProjectId ?? (await Platform.InstanceAsync().ConfigureAwait(false)).ProjectId;
            var clientBuilder = FirestoreClientBuilder.FromOtherBuilder(this);

            clientBuilder.Settings = Settings;
            var client = await clientBuilder.BuildAsync(cancellationToken).ConfigureAwait(false);

            return(BuildFromClient(projectId, client));
        }
        /// <inheritdoc />
        public override FirestoreDb Build()
        {
            var projectId     = ProjectId ?? Platform.Instance().ProjectId;
            var clientBuilder = FirestoreClientBuilder.FromOtherBuilder(this);

            clientBuilder.Settings = Settings;
            var client = clientBuilder.Build();

            return(BuildFromClient(projectId, client));
        }