Skip to content

Commit

Permalink
feat: add max_commit_delay API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 599315735

Source-Link: googleapis/googleapis@465a103

Source-Link: googleapis/googleapis-gen@930e231
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3Bhbm5lci5WMS8uT3dsQm90LnlhbWwiLCJoIjoiOTMwZTIzMThhY2JkMTBmYjU0ZDg2NjhkMmYyY2YxOWZlNDEzZDVhOSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Jan 18, 2024
1 parent 41c1707 commit 3984609
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace GoogleCSharpSnippets
// [START spanner_v1_generated_Spanner_Commit_async]
using Google.Cloud.Spanner.V1;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;

public sealed partial class GeneratedSpannerClientSnippets
Expand All @@ -43,6 +44,7 @@ public async Task CommitRequestObjectAsync()
Mutations = { new Mutation(), },
ReturnCommitStats = false,
RequestOptions = new RequestOptions(),
MaxCommitDelay = new Duration(),
};
// Make the request
CommitResponse response = await spannerClient.CommitAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace GoogleCSharpSnippets
// [START spanner_v1_generated_Spanner_Commit_sync]
using Google.Cloud.Spanner.V1;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;

public sealed partial class GeneratedSpannerClientSnippets
{
Expand All @@ -42,6 +43,7 @@ public void CommitRequestObject()
Mutations = { new Mutation(), },
ReturnCommitStats = false,
RequestOptions = new RequestOptions(),
MaxCommitDelay = new Duration(),
};
// Make the request
CommitResponse response = spannerClient.Commit(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2218,12 +2218,12 @@
"segments": [
{
"start": 20,
"end": 49,
"end": 51,
"type": "FULL"
},
{
"start": 35,
"end": 47,
"start": 36,
"end": 49,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2267,12 +2267,12 @@
"segments": [
{
"start": 20,
"end": 50,
"end": 52,
"type": "FULL"
},
{
"start": 36,
"end": 48,
"start": 37,
"end": 50,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ public void CommitRequestObject()
},
ReturnCommitStats = false,
RequestOptions = new gcsv::RequestOptions(),
MaxCommitDelay = new Duration(),
};
// Make the request
gcsv::CommitResponse response = spannerClient.Commit(request);
Expand All @@ -1056,6 +1057,7 @@ public async Task CommitRequestObjectAsync()
},
ReturnCommitStats = false,
RequestOptions = new gcsv::RequestOptions(),
MaxCommitDelay = new Duration(),
};
// Make the request
gcsv::CommitResponse response = await spannerClient.CommitAsync(request);
Expand Down

0 comments on commit 3984609

Please sign in to comment.