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 編碼字串。