Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::CommitResponse.
The response for Commit.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#commit_stats
def commit_stats() -> ::Google::Cloud::Spanner::V1::CommitResponse::CommitStats
Returns
-
(::Google::Cloud::Spanner::V1::CommitResponse::CommitStats) — The statistics about this
Commit
. Not returned by default. For more information, see CommitRequest.return_commit_stats.
#commit_stats=
def commit_stats=(value) -> ::Google::Cloud::Spanner::V1::CommitResponse::CommitStats
Parameter
-
value (::Google::Cloud::Spanner::V1::CommitResponse::CommitStats) — The statistics about this
Commit
. Not returned by default. For more information, see CommitRequest.return_commit_stats.
Returns
-
(::Google::Cloud::Spanner::V1::CommitResponse::CommitStats) — The statistics about this
Commit
. Not returned by default. For more information, see CommitRequest.return_commit_stats.
#commit_timestamp
def commit_timestamp() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The Cloud Spanner timestamp at which the transaction committed.
#commit_timestamp=
def commit_timestamp=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The Cloud Spanner timestamp at which the transaction committed.
Returns
- (::Google::Protobuf::Timestamp) — The Cloud Spanner timestamp at which the transaction committed.
#precommit_token
def precommit_token() -> ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Returns
- (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
#precommit_token=
def precommit_token=(value) -> ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Parameter
- value (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
Returns
- (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
#snapshot_timestamp
def snapshot_timestamp() -> ::Google::Protobuf::Timestamp
Returns
-
(::Google::Protobuf::Timestamp) — If
TransactionOptions.isolation_level
is set toIsolationLevel.REPEATABLE_READ
, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.
#snapshot_timestamp=
def snapshot_timestamp=(value) -> ::Google::Protobuf::Timestamp
Parameter
-
value (::Google::Protobuf::Timestamp) — If
TransactionOptions.isolation_level
is set toIsolationLevel.REPEATABLE_READ
, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.
Returns
-
(::Google::Protobuf::Timestamp) — If
TransactionOptions.isolation_level
is set toIsolationLevel.REPEATABLE_READ
, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.