commit_response.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2022 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/timestamp.proto";
  17. option csharp_namespace = "Google.Cloud.Spanner.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/spanner/v1;spanner";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "CommitResponseProto";
  21. option java_package = "com.google.spanner.v1";
  22. option php_namespace = "Google\\Cloud\\Spanner\\V1";
  23. option ruby_package = "Google::Cloud::Spanner::V1";
  24. // The response for [Commit][google.spanner.v1.Spanner.Commit].
  25. message CommitResponse {
  26. // Additional statistics about a commit.
  27. message CommitStats {
  28. // The total number of mutations for the transaction. Knowing the
  29. // `mutation_count` value can help you maximize the number of mutations
  30. // in a transaction and minimize the number of API round trips. You can
  31. // also monitor this value to prevent transactions from exceeding the system
  32. // [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
  33. // If the number of mutations exceeds the limit, the server returns
  34. // [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
  35. int64 mutation_count = 1;
  36. }
  37. // The Cloud Spanner timestamp at which the transaction committed.
  38. google.protobuf.Timestamp commit_timestamp = 1;
  39. // The statistics about this Commit. Not returned by default.
  40. // For more information, see
  41. // [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
  42. CommitStats commit_stats = 2;
  43. }