commit_response.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.spanner.v1;
  16. import "google/protobuf/duration.proto";
  17. import "google/protobuf/timestamp.proto";
  18. import "google/api/annotations.proto";
  19. option csharp_namespace = "Google.Cloud.Spanner.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/spanner/v1;spanner";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "CommitResponseProto";
  23. option java_package = "com.google.spanner.v1";
  24. option php_namespace = "Google\\Cloud\\Spanner\\V1";
  25. option ruby_package = "Google::Cloud::Spanner::V1";
  26. // The response for [Commit][google.spanner.v1.Spanner.Commit].
  27. message CommitResponse {
  28. // Additional statistics about a commit.
  29. message CommitStats {
  30. // The total number of mutations for the transaction. Knowing the
  31. // `mutation_count` value can help you maximize the number of mutations
  32. // in a transaction and minimize the number of API round trips. You can
  33. // also monitor this value to prevent transactions from exceeding the system
  34. // [limit](http://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
  35. // If the number of mutations exceeds the limit, the server returns
  36. // [INVALID_ARGUMENT](http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
  37. int64 mutation_count = 1;
  38. }
  39. // The Cloud Spanner timestamp at which the transaction committed.
  40. google.protobuf.Timestamp commit_timestamp = 1;
  41. // The statistics about this Commit. Not returned by default.
  42. // For more information, see
  43. // [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
  44. CommitStats commit_stats = 2;
  45. }