Class: Google::Apis::ChatV1::UserMentionMetadata

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

Annotation metadata for user mentions (@).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserMentionMetadata

Returns a new instance of UserMentionMetadata.



5316
5317
5318
# File 'lib/google/apis/chat_v1/classes.rb', line 5316

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

Instance Attribute Details

#typeString

The type of user mention. Corresponds to the JSON property type

Returns:

  • (String)


5306
5307
5308
# File 'lib/google/apis/chat_v1/classes.rb', line 5306

def type
  @type
end

#userGoogle::Apis::ChatV1::User

A user in Google Chat. When returned as an output from a request, if your Chat app authenticates as a user, the output for a User resource only populates the user's name and type. Corresponds to the JSON property user



5314
5315
5316
# File 'lib/google/apis/chat_v1/classes.rb', line 5314

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5321
5322
5323
5324
# File 'lib/google/apis/chat_v1/classes.rb', line 5321

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