Class: Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken

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

Overview

When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the Transaction message in the BeginTransaction response and also as a part of the ResultSet and PartialResultSet responses.

Instance Attribute Summary collapse

Instance Attribute Details

#precommit_token::String

Returns Opaque precommit token.

Returns:

  • (::String)

    Opaque precommit token.



329
330
331
332
# File 'proto_docs/google/spanner/v1/transaction.rb', line 329

class MultiplexedSessionPrecommitToken
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#seq_num::Integer

Returns An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.

Returns:

  • (::Integer)

    An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.



329
330
331
332
# File 'proto_docs/google/spanner/v1/transaction.rb', line 329

class MultiplexedSessionPrecommitToken
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end