Show / Hide Table of Contents

Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchWriteRequest

Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, that is, some groups might have been committed successfully, while some might have failed. The results of individual batches are streamed into the response as the batches are applied. BatchWrite requests are not replay protected, meaning that each mutation group can be applied more than once. Replays of non-idempotent mutations can have undesirable effects. For example, replays of an insert mutation can produce an already exists error or if you use generated or commit timestamp-based keys, it can result in additional rows being added to the mutation's table. We recommend structuring your mutation groups to be idempotent to avoid this issue.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<BatchWriteResponse>
SpannerBaseServiceRequest<BatchWriteResponse>
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchWriteRequest
Implements
IClientServiceRequest<BatchWriteResponse>
IClientServiceRequest
Inherited Members
SpannerBaseServiceRequest<BatchWriteResponse>.Xgafv
SpannerBaseServiceRequest<BatchWriteResponse>.AccessToken
SpannerBaseServiceRequest<BatchWriteResponse>.Alt
SpannerBaseServiceRequest<BatchWriteResponse>.Callback
SpannerBaseServiceRequest<BatchWriteResponse>.Fields
SpannerBaseServiceRequest<BatchWriteResponse>.Key
SpannerBaseServiceRequest<BatchWriteResponse>.OauthToken
SpannerBaseServiceRequest<BatchWriteResponse>.PrettyPrint
SpannerBaseServiceRequest<BatchWriteResponse>.QuotaUser
SpannerBaseServiceRequest<BatchWriteResponse>.UploadType
SpannerBaseServiceRequest<BatchWriteResponse>.UploadProtocol
ClientServiceRequest<BatchWriteResponse>.Execute()
ClientServiceRequest<BatchWriteResponse>.ExecuteAsStream()
ClientServiceRequest<BatchWriteResponse>.ExecuteAsync()
ClientServiceRequest<BatchWriteResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<BatchWriteResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<BatchWriteResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<BatchWriteResponse>.CreateRequest(bool?)
ClientServiceRequest<BatchWriteResponse>.GenerateRequestUri()
ClientServiceRequest<BatchWriteResponse>.GetDefaultETagAction(string)
ClientServiceRequest<BatchWriteResponse>.ETagAction
ClientServiceRequest<BatchWriteResponse>.ModifyRequest
ClientServiceRequest<BatchWriteResponse>.ValidateParameters
ClientServiceRequest<BatchWriteResponse>.ApiVersion
ClientServiceRequest<BatchWriteResponse>.RequestParameters
ClientServiceRequest<BatchWriteResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchWriteRequest : SpannerBaseServiceRequest<BatchWriteResponse>, IClientServiceRequest<BatchWriteResponse>, IClientServiceRequest

Constructors

BatchWriteRequest(IClientService, BatchWriteRequest, string)

Constructs a new BatchWrite request.

Declaration
public BatchWriteRequest(IClientService service, BatchWriteRequest body, string session)
Parameters
Type Name Description
IClientService service
BatchWriteRequest body
string session

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<BatchWriteResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<BatchWriteResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<BatchWriteResponse>.RestPath

Session

Required. The session in which the batch request is to be run.

Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
Type Description
string

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<BatchWriteResponse>.GetBody()

InitParameters()

Initializes BatchWrite parameter list.

Declaration
protected override void InitParameters()
Overrides
SpannerBaseServiceRequest<BatchWriteResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX