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
#cache_update
def cache_update() -> ::Google::Cloud::Spanner::V1::CacheUpdate
Returns
-
(::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
#cache_update=
def cache_update=(value) -> ::Google::Cloud::Spanner::V1::CacheUpdate
Parameter
-
value (::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
Returns
-
(::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
#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_levelis 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_levelis 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_levelis set toIsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.