Class: Google::Apis::CloudsearchV1::HistoryRecord

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HistoryRecord

Returns a new instance of HistoryRecord.



11137
11138
11139
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11137

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_contextGoogle::Apis::CloudsearchV1::ClientContext

Represents the context of the client on behalf of which a HistoryRecord is produced. The ClientContext message can be used to hold context about the service client (e.g. the internal server making fusebox requests) or the user client (e.g. the IP address of the end user). Corresponds to the JSON property clientContext



11079
11080
11081
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11079

def client_context
  @client_context
end

#filter_updateGoogle::Apis::CloudsearchV1::FilterUpdate

HistoryRecord for changes associated with a filter, namely: FILTER_CREATED FILTER_DELETED Corresponds to the JSON property filterUpdate



11085
11086
11087
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11085

def filter_update
  @filter_update
end

#imap_updateGoogle::Apis::CloudsearchV1::ImapUpdate

HistoryRecord for changes associated with IMAP, namely: IMAP_UIDS_REASSIGN Corresponds to the JSON property imapUpdate



11090
11091
11092
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11090

def imap_update
  @imap_update
end

#label_updateGoogle::Apis::CloudsearchV1::LabelUpdate

HistoryRecord for changes associated with a label, namely: LABEL_CREATED LABEL_DELETED LABEL_RENAMED LABEL_UPDATED Corresponds to the JSON property labelUpdate



11096
11097
11098
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11096

def label_update
  @label_update
end

#pref_updateGoogle::Apis::CloudsearchV1::PrefUpdate

HistoryRecord for changes associated with prefs, namely: PREF_WRITTEN PREF_DELETED Corresponds to the JSON property prefUpdate



11102
11103
11104
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11102

def pref_update
  @pref_update
end

#record_idFixnum

Each HistoryRecord has a unique id. Ids are monotonically increasing, and not necessarily contiguous. Corresponds to the JSON property recordId

Returns:

  • (Fixnum)


11108
11109
11110
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11108

def record_id
  @record_id
end

#thread_updateGoogle::Apis::CloudsearchV1::ThreadUpdate

HistoryRecord for changes associated with a thread, namely: MESSAGE_ADDED MESSAGE_DELETED LABEL_ADDED LABEL_REMOVED ATTRIBUTE_SET ATTRIBUTE_REMOVED THREAD_KEY_SET All label_ids refer to the (unchanging) value as defined by the Label.id field in labels.proto. In particular, it is not the canonical_name. Corresponds to the JSON property threadUpdate



11116
11117
11118
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11116

def thread_update
  @thread_update
end

#transaction_contextGoogle::Apis::CloudsearchV1::TransactionContext

Storage information pertaining to the transaction with which a HistoryRecord is associated. Corresponds to the JSON property transactionContext



11122
11123
11124
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11122

def transaction_context
  @transaction_context
end

#txn_debug_infoGoogle::Apis::CloudsearchV1::TransactionDebugInfo

HistoryRecord for debug info associated with the transaction, namely: TXN_DEBUG_INFO TODO(b/143845917) This is a short-term workaround for unblocking fusebox writes migration. Clean up the code or land a long-term solution after the rollout. go/diff-to-historyrecord Corresponds to the JSON property txnDebugInfo



11130
11131
11132
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11130

def txn_debug_info
  @txn_debug_info
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


11135
11136
11137
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11135

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11142

def update!(**args)
  @client_context = args[:client_context] if args.key?(:client_context)
  @filter_update = args[:filter_update] if args.key?(:filter_update)
  @imap_update = args[:imap_update] if args.key?(:imap_update)
  @label_update = args[:label_update] if args.key?(:label_update)
  @pref_update = args[:pref_update] if args.key?(:pref_update)
  @record_id = args[:record_id] if args.key?(:record_id)
  @thread_update = args[:thread_update] if args.key?(:thread_update)
  @transaction_context = args[:transaction_context] if args.key?(:transaction_context)
  @txn_debug_info = args[:txn_debug_info] if args.key?(:txn_debug_info)
  @type = args[:type] if args.key?(:type)
end