Class: Google::Apis::CloudsearchV1::TransactionContext
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::TransactionContext
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Storage information pertaining to the transaction with which a HistoryRecord is associated.
Instance Attribute Summary collapse
-
#ending_record_id ⇒ Fixnum
The last HistoryRecord of the transaction.
-
#starting_record_id ⇒ Fixnum
The first HistoryRecord of the transaction.
-
#write_timestamp_us ⇒ Fixnum
The microsecond timestamp of the transaction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransactionContext
constructor
A new instance of TransactionContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransactionContext
Returns a new instance of TransactionContext.
20651 20652 20653 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ending_record_id ⇒ Fixnum
The last HistoryRecord of the transaction. Note that this may correspond to a
record that is filtered by Tingle (and thus not returned to the client). See
http://b/9513464.
Corresponds to the JSON property endingRecordId
20638 20639 20640 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20638 def ending_record_id @ending_record_id end |
#starting_record_id ⇒ Fixnum
The first HistoryRecord of the transaction. Note that this may be a record of
type INTERNAL.
Corresponds to the JSON property startingRecordId
20644 20645 20646 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20644 def starting_record_id @starting_record_id end |
#write_timestamp_us ⇒ Fixnum
The microsecond timestamp of the transaction.
Corresponds to the JSON property writeTimestampUs
20649 20650 20651 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20649 def @write_timestamp_us end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20656 20657 20658 20659 20660 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20656 def update!(**args) @ending_record_id = args[:ending_record_id] if args.key?(:ending_record_id) @starting_record_id = args[:starting_record_id] if args.key?(:starting_record_id) @write_timestamp_us = args[:write_timestamp_us] if args.key?(:write_timestamp_us) end |