public sealed class BatchWriteRequest.Types.MutationGroup : IMessage<BatchWriteRequest.Types.MutationGroup>, IEquatable<BatchWriteRequest.Types.MutationGroup>, IDeepCloneable<BatchWriteRequest.Types.MutationGroup>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class BatchWriteRequest.Types.MutationGroup.
A group of mutations to be committed together. Related mutations should be
placed in a group. For example, two mutations inserting rows with the same
primary key prefix in both parent and child tables are related.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eBatchWriteRequest.Types.MutationGroup\u003c/code\u003e class within the Google Cloud Spanner v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMutationGroup\u003c/code\u003e class is used to group related mutations, such as inserts with the same primary key prefix in parent and child tables, for committing together.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and the page also includes documentation for a range of older versions down to \u003ccode\u003e3.5.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe main property of the \u003ccode\u003eMutationGroup\u003c/code\u003e class is \u003ccode\u003eMutations\u003c/code\u003e, a required \u003ccode\u003eRepeatedField\u003c/code\u003e that contains the mutations within the group.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class BatchWriteRequest.Types.MutationGroup (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup) \n\n public sealed class BatchWriteRequest.Types.MutationGroup : IMessage\u003cBatchWriteRequest.Types.MutationGroup\u003e, IEquatable\u003cBatchWriteRequest.Types.MutationGroup\u003e, IDeepCloneable\u003cBatchWriteRequest.Types.MutationGroup\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class BatchWriteRequest.Types.MutationGroup.\n\nA group of mutations to be committed together. Related mutations should be\nplaced in a group. For example, two mutations inserting rows with the same\nprimary key prefix in both parent and child tables are related. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchWriteRequest.Types.MutationGroup \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchWriteRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types)[MutationGroup](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchWriteRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types)[MutationGroup](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchWriteRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types)[MutationGroup](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.BatchWriteRequest.Types.MutationGroup), [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.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nConstructors\n------------\n\n### MutationGroup()\n\n public MutationGroup()\n\n### MutationGroup(MutationGroup)\n\n public MutationGroup(BatchWriteRequest.Types.MutationGroup other)\n\nProperties\n----------\n\n### Mutations\n\n public RepeatedField\u003cMutation\u003e Mutations { get; }\n\nRequired. The mutations in this group."]]