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

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

Overview

Annotation metadata for user mentions (@).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserMentionMetadata

Returns a new instance of UserMentionMetadata.



947
948
949
# File 'generated/google/apis/chat_v1/classes.rb', line 947

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


940
941
942
# File 'generated/google/apis/chat_v1/classes.rb', line 940

def type
  @type
end

#userGoogle::Apis::ChatV1::User

A user in Hangouts Chat. Corresponds to the JSON property user



945
946
947
# File 'generated/google/apis/chat_v1/classes.rb', line 945

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



952
953
954
955
# File 'generated/google/apis/chat_v1/classes.rb', line 952

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