Für Firestore-Dokumente einen benutzerdefinierten Typ auf dem Client verwenden (async)
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Für Firestore-Dokumente einen benutzerdefinierten Typ auf dem Client verwenden (async).
Weitere Informationen
Eine ausführliche Dokumentation, die dieses Codebeispiel enthält, finden Sie hier:
Codebeispiel
Nächste Schritte
Informationen zum Suchen und Filtern von Codebeispielen für andere Google Cloud -Produkte finden Sie im Google Cloud Beispielbrowser.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],[],[[["This code example demonstrates how to use a custom type for Firestore documents in Python."],["The sample includes a `City` class that represents a Firestore document with fields such as name, state, country, capital status, population, and regions."],["The `City` class features `from_dict` and `to_dict` methods to convert between the class object and a dictionary representation for Firestore storage."],["Authentication for Firestore is set up using Application Default Credentials, suitable for local development."],["The code sample can be used to create a template for adding, updating, querying, and filtering data in Firestore, as outlined in the related documentation links."]]],[]]