Class: Google::Apis::ChatV1::QuotedMessageMetadata

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Information about a quoted message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuotedMessageMetadata

Returns a new instance of QuotedMessageMetadata.



4222
4223
4224
# File 'lib/google/apis/chat_v1/classes.rb', line 4222

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

Instance Attribute Details

#last_update_timeString

Output only. The timestamp when the quoted message was created or when the quoted message was last updated. Corresponds to the JSON property lastUpdateTime

Returns:

  • (String)


4214
4215
4216
# File 'lib/google/apis/chat_v1/classes.rb', line 4214

def last_update_time
  @last_update_time
end

#nameString

Output only. Resource name of the quoted message. Format: spaces/space/ messages/message` Corresponds to the JSON propertyname`

Returns:

  • (String)


4220
4221
4222
# File 'lib/google/apis/chat_v1/classes.rb', line 4220

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4227
4228
4229
4230
# File 'lib/google/apis/chat_v1/classes.rb', line 4227

def update!(**args)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @name = args[:name] if args.key?(:name)
end