Class: Google::Apis::CloudsearchV1::HistoryRecord
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::HistoryRecord
- 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
-
#client_context ⇒ Google::Apis::CloudsearchV1::ClientContext
Represents the context of the client on behalf of which a HistoryRecord is produced.
-
#filter_update ⇒ Google::Apis::CloudsearchV1::FilterUpdate
HistoryRecord for changes associated with a filter, namely: FILTER_CREATED FILTER_DELETED Corresponds to the JSON property
filterUpdate
. -
#imap_update ⇒ Google::Apis::CloudsearchV1::ImapUpdate
HistoryRecord for changes associated with IMAP, namely: IMAP_UIDS_REASSIGN Corresponds to the JSON property
imapUpdate
. -
#label_update ⇒ Google::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
. -
#pref_update ⇒ Google::Apis::CloudsearchV1::PrefUpdate
HistoryRecord for changes associated with prefs, namely: PREF_WRITTEN PREF_DELETED Corresponds to the JSON property
prefUpdate
. -
#record_id ⇒ Fixnum
Each HistoryRecord has a unique id.
-
#thread_update ⇒ Google::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.
-
#transaction_context ⇒ Google::Apis::CloudsearchV1::TransactionContext
Storage information pertaining to the transaction with which a HistoryRecord is associated.
-
#txn_debug_info ⇒ Google::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.
-
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HistoryRecord
constructor
A new instance of HistoryRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HistoryRecord
Returns a new instance of HistoryRecord.
11060 11061 11062 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11060 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_context ⇒ Google::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
11002 11003 11004 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11002 def client_context @client_context end |
#filter_update ⇒ Google::Apis::CloudsearchV1::FilterUpdate
HistoryRecord for changes associated with a filter, namely: FILTER_CREATED
FILTER_DELETED
Corresponds to the JSON property filterUpdate
11008 11009 11010 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11008 def filter_update @filter_update end |
#imap_update ⇒ Google::Apis::CloudsearchV1::ImapUpdate
HistoryRecord for changes associated with IMAP, namely: IMAP_UIDS_REASSIGN
Corresponds to the JSON property imapUpdate
11013 11014 11015 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11013 def imap_update @imap_update end |
#label_update ⇒ Google::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
11019 11020 11021 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11019 def label_update @label_update end |
#pref_update ⇒ Google::Apis::CloudsearchV1::PrefUpdate
HistoryRecord for changes associated with prefs, namely: PREF_WRITTEN
PREF_DELETED
Corresponds to the JSON property prefUpdate
11025 11026 11027 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11025 def pref_update @pref_update end |
#record_id ⇒ Fixnum
Each HistoryRecord has a unique id. Ids are monotonically increasing, and not
necessarily contiguous.
Corresponds to the JSON property recordId
11031 11032 11033 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11031 def record_id @record_id end |
#thread_update ⇒ Google::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
11039 11040 11041 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11039 def thread_update @thread_update end |
#transaction_context ⇒ Google::Apis::CloudsearchV1::TransactionContext
Storage information pertaining to the transaction with which a HistoryRecord
is associated.
Corresponds to the JSON property transactionContext
11045 11046 11047 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11045 def transaction_context @transaction_context end |
#txn_debug_info ⇒ Google::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
11053 11054 11055 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11053 def txn_debug_info @txn_debug_info end |
#type ⇒ String
Corresponds to the JSON property type
11058 11059 11060 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11058 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11065 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 |