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.
20472 20473 20474 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20472 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
20459 20460 20461 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20459 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
20465 20466 20467 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20465 def starting_record_id @starting_record_id end |
#write_timestamp_us ⇒ Fixnum
The microsecond timestamp of the transaction.
Corresponds to the JSON property writeTimestampUs
20470 20471 20472 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20470 def @write_timestamp_us end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20477 20478 20479 20480 20481 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20477 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 |