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)

このトランザクションは読み取りオペレーションと書き込みオペレーションの両方に使用できます。

ReadOnly

ドキュメントの読み取りにのみ使用できるトランザクションのオプション。

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 日間以内の 1 分単位のタイムスタンプにすることもできます。

RFC3339 UTC「Zulu」形式のタイムスタンプ。精度はナノ秒まで、小数点以下は最大 9 桁。例: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

ReadWrite

ドキュメントの読み取りと書き込みに使用できるトランザクションのオプション。

Firestore では、サードパーティの認証リクエストによる読み取り / 書き込みトランザクションの作成は許可されていません。

JSON 表現
{
  "retryTransaction": string
}
フィールド
retryTransaction

string (bytes format)

再試行するオプションのトランザクション。

Base64 でエンコードされた文字列。