Class: Google::Apis::CloudsearchV1::UserMentionMetadata

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

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.



18577
18578
18579
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18577

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

Instance Attribute Details

#display_nameString

Display name of the mentioned user. This field should remain empty when clients resolve a UserMention annotation. It will be filled in when a UserMention is generated by the Integration Server. Corresponds to the JSON property displayName

Returns:

  • (String)


18551
18552
18553
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18551

def display_name
  @display_name
end

#genderString

Gender of the mentioned user. One of "female", "male" or "other". Used for choosing accurate translations for strings that contain the UserMention, when these need to be constructed (e.g. task assignment update message). This field should remain empty when clients resolve a UserMention. It will be filled in when a UserMention is generated by the Integration Server. Corresponds to the JSON property gender

Returns:

  • (String)


18560
18561
18562
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18560

def gender
  @gender
end

#idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property id



18565
18566
18567
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18565

def id
  @id
end

#invitee_infoGoogle::Apis::CloudsearchV1::InviteeInfo

Invitee information from a Dynamite invitation. See go/dynamite-invitee-mgmt. Corresponds to the JSON property inviteeInfo



18570
18571
18572
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18570

def invitee_info
  @invitee_info
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


18575
18576
18577
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18575

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18582
18583
18584
18585
18586
18587
18588
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18582

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gender = args[:gender] if args.key?(:gender)
  @id = args[:id] if args.key?(:id)
  @invitee_info = args[:invitee_info] if args.key?(:invitee_info)
  @type = args[:type] if args.key?(:type)
end