Class: Google::Apis::CloudsearchV1::TransactionContext

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idFixnum

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

Returns:

  • (Fixnum)


20638
20639
20640
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20638

def ending_record_id
  @ending_record_id
end

#starting_record_idFixnum

The first HistoryRecord of the transaction. Note that this may be a record of type INTERNAL. Corresponds to the JSON property startingRecordId

Returns:

  • (Fixnum)


20644
20645
20646
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20644

def starting_record_id
  @starting_record_id
end

#write_timestamp_usFixnum

The microsecond timestamp of the transaction. Corresponds to the JSON property writeTimestampUs

Returns:

  • (Fixnum)


20649
20650
20651
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20649

def write_timestamp_us
  @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