public sealed class TransactionOptions.Types.ReadWrite : IMessage<TransactionOptions.Types.ReadWrite>, IEquatable<TransactionOptions.Types.ReadWrite>, IDeepCloneable<TransactionOptions.Types.ReadWrite>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class TransactionOptions.Types.ReadWrite.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e in the Google Cloud Datastore v1 API is 4.15.0, with links available for previous versions dating back to 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e is a class within the Google.Cloud.Datastore.V1 namespace, used for managing options in read/write transactions.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, inheriting members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt features a \u003ccode\u003ePreviousTransaction\u003c/code\u003e property of type \u003ccode\u003eByteString\u003c/code\u003e that stores the transaction identifier of the retried transaction.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, \u003ccode\u003eReadWrite()\u003c/code\u003e, and \u003ccode\u003eReadWrite(TransactionOptions.Types.ReadWrite other)\u003c/code\u003e, with the second constructor taking another \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class TransactionOptions.Types.ReadWrite (4.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite) \n\n public sealed class TransactionOptions.Types.ReadWrite : IMessage\u003cTransactionOptions.Types.ReadWrite\u003e, IEquatable\u003cTransactionOptions.Types.ReadWrite\u003e, IDeepCloneable\u003cTransactionOptions.Types.ReadWrite\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class TransactionOptions.Types.ReadWrite.\n\nOptions specific to read / write transactions. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TransactionOptions.Types.ReadWrite \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.TransactionOptions.Types.ReadWrite), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Datastore.V1](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.V1.dll\n\nConstructors\n------------\n\n### ReadWrite()\n\n public ReadWrite()\n\n### ReadWrite(ReadWrite)\n\n public ReadWrite(TransactionOptions.Types.ReadWrite other)\n\nProperties\n----------\n\n### PreviousTransaction\n\n public ByteString PreviousTransaction { get; set; }\n\nThe transaction identifier of the transaction being retried."]]