TransactionOptions
JSON 表示法 |
{
// Union field mode can be only one of the following:
"readOnly": {
object (ReadOnly )
},
"readWrite": {
object (ReadWrite )
}
// End of list of possible types for union field mode .
} |
欄位 |
聯集欄位 mode 。交易模式。mode 只能採用下列其中一種設定: |
readOnly |
object (ReadOnly )
交易只能用於讀取作業。
|
readWrite |
object (ReadWrite )
此交易可用於讀取和寫入作業。
|
唯讀
JSON 表示法 |
{
// Union field consistency_selector can be only one of the following:
"readTime": string
// End of list of possible types for union field consistency_selector .
} |
欄位 |
聯集欄位 consistency_selector 。這筆交易的一致性模式。如果未設定,則會預設為同步一致性。consistency_selector 只能採用下列其中一種設定: |
readTime |
string (Timestamp format)
在指定時間讀取文件。 這個時間戳記須為過去 1 小時內的微秒精確度,或者如果已啟用時間點復原,也可以是過去 7 天內的整分鐘時間戳記。 RFC3339 世界標準時間「Zulu」的時間戳記格式,解析度為奈秒,且最多 9 個小數位數。範例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
讀取
可用於讀取及寫入文件的交易選項。
Firestore 不允許第三方驗證要求建立讀取/寫入作業。交易
JSON 表示法 |
{
"retryTransaction": string
} |
欄位 |
retryTransaction |
string (bytes format)
要重試的選用交易。 Base64 編碼字串。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[null,null,["上次更新時間:2024-08-29 (世界標準時間)。"],[],[]]