Class: Google::Cloud::Spanner::V1::CommitResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/spanner/v1/commit_response.rb

Overview

The response for Commit.

Defined Under Namespace

Classes: CommitStats

Instance Attribute Summary collapse

Instance Attribute Details

#commit_stats::Google::Cloud::Spanner::V1::CommitResponse::CommitStats

Returns The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 33

class CommitResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Additional statistics about a commit.
  # @!attribute [rw] mutation_count
  #   @return [::Integer]
  #     The total number of mutations for the transaction. Knowing the
  #     `mutation_count` value can help you maximize the number of mutations
  #     in a transaction and minimize the number of API round trips. You can
  #     also monitor this value to prevent transactions from exceeding the system
  #     [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
  #     If the number of mutations exceeds the limit, the server returns
  #     [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
  class CommitStats
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#commit_timestamp::Google::Protobuf::Timestamp

Returns The Cloud Spanner timestamp at which the transaction committed.

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 33

class CommitResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Additional statistics about a commit.
  # @!attribute [rw] mutation_count
  #   @return [::Integer]
  #     The total number of mutations for the transaction. Knowing the
  #     `mutation_count` value can help you maximize the number of mutations
  #     in a transaction and minimize the number of API round trips. You can
  #     also monitor this value to prevent transactions from exceeding the system
  #     [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
  #     If the number of mutations exceeds the limit, the server returns
  #     [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
  class CommitStats
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end