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.
19905 19906 19907 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19905 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
19892 19893 19894 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19892 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
19898 19899 19900 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19898 def starting_record_id @starting_record_id end |
#write_timestamp_us ⇒ Fixnum
The microsecond timestamp of the transaction.
Corresponds to the JSON property writeTimestampUs
19903 19904 19905 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19903 def @write_timestamp_us end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19910 19911 19912 19913 19914 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19910 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 |