GetDatabaseResult class
Result data returned by getDatabase.
Constructors
- GetDatabaseResult({required String appEngineIntegrationMode, required String concurrencyMode, required String createTime, required String deleteProtectionState, required String earliestVersionTime, required String etag, required String keyPrefix, required String location, required String name, required String pointInTimeRecoveryEnablement, required String type, required String uid, required String updateTime, required String versionRetentionPeriod})
-
Creates a new GetDatabaseResult.
appEngineIntegrationModeThe App Engine integration mode to use for this database.concurrencyModeThe concurrency control mode to use for this database.createTimeThe timestamp at which this database was created. Databases created before 2016 do not populate create_time.deleteProtectionStateState of delete protection for the database.earliestVersionTimeThe earliest timestamp at which older versions of the data can be read from the database. Seeversion_retention_periodabove; this field is populated withnow - version_retention_period. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.etagThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.keyPrefixThe key_prefix for this database. This key_prefix is used, in combination with the project id ("") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of vfoo).locationThe location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.nameThe resource name of the Database. Format:projects/{project}/databases/{database}pointInTimeRecoveryEnablementWhether to enable the PITR feature on this database.typeThe type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.uidThe system-generated UUID4 for this Database.updateTimeThe timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.versionRetentionPeriodThe period during which past versions of data are retained in the database. Any read or query can specify aread_timewithin this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.const -
GetDatabaseResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- appEngineIntegrationMode → String
-
The App Engine integration mode to use for this database.
final
- concurrencyMode → String
-
The concurrency control mode to use for this database.
final
- createTime → String
-
The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
final
- deleteProtectionState → String
-
State of delete protection for the database.
final
- earliestVersionTime → String
-
The earliest timestamp at which older versions of the data can be read from the database. See
version_retention_periodabove; this field is populated withnow - version_retention_period. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.final - etag → String
-
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyPrefix → String
-
The key_prefix for this database. This key_prefix is used, in combination with the project id ("
") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of vfoo).final - location → String
-
The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
final
- name → String
-
The resource name of the Database. Format:
projects/{project}/databases/{database}final - pointInTimeRecoveryEnablement → String
-
Whether to enable the PITR feature on this database.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
final
- uid → String
-
The system-generated UUID4 for this Database.
final
- updateTime → String
-
The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
final
- versionRetentionPeriod → String
-
The period during which past versions of data are retained in the database. Any read or query can specify a
read_timewithin this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited