Class: Google::Apis::CloudsearchV1::UserInfo

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

Contains info regarding the updater of an Activity Feed item. Next Id: 8

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserInfo

Returns a new instance of UserInfo.



20902
20903
20904
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20902

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

Instance Attribute Details

#drive_notification_avatar_urlString

Avatar url of the user who triggered the Drive Notification email. This field will be populated if we can extract such information from the Drive Notification email. This should only be used to fetch user avatars when updater_to_show_email is not populated. This field is not set for non-Drive Notification items. Corresponds to the JSON property driveNotificationAvatarUrl

Returns:

  • (String)


20856
20857
20858
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20856

def drive_notification_avatar_url
  @drive_notification_avatar_url
end

#updater_count_display_typeString

Describes how updater_count_to_show should be used. Corresponds to the JSON property updaterCountDisplayType

Returns:

  • (String)


20861
20862
20863
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20861

def updater_count_display_type
  @updater_count_display_type
end

#updater_count_to_showFixnum

The number of updaters for clients to show depending on UpdaterCountDisplayType. Corresponds to the JSON property updaterCountToShow

Returns:

  • (Fixnum)


20867
20868
20869
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20867

def updater_count_to_show
  @updater_count_to_show
end

#updater_to_show_emailString

The email of the updater for clients to show used for Gmail items. For Drive Notifications, this is the email of the user who triggered the Drive Notification email. This field will be populated if we can extract such information from the Drive Notification email. This is not the actual sender of the email, as the sender is always comments-noreply@docs.google.com. Corresponds to the JSON property updaterToShowEmail

Returns:

  • (String)


20876
20877
20878
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20876

def updater_to_show_email
  @updater_to_show_email
end

#updater_to_show_gaia_idFixnum

The gaia id of the updater for clients to show used for Gmail items. If the updater is an external user, the email field below should be populated. Corresponds to the JSON property updaterToShowGaiaId

Returns:

  • (Fixnum)


20882
20883
20884
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20882

def updater_to_show_gaia_id
  @updater_to_show_gaia_id
end

#updater_to_show_nameString

The display name of the updater for clients to show used for Gmail items. For non-Drive Notification items, this field will always be populated. If the display name cannot be found for the user, the fallback string will be the email address. For Drive Notification items, this is the name of the user who triggered the Drive notification email. This field will be populated if we can extract such information from the Drive Notification email. If the name cannot be extracted, then the email will be the fallback string, which is used as the display name text in the UI when needed. This is not the actual sender of the email, as the sender is always comments-noreply@docs.google.com. Corresponds to the JSON property updaterToShowName

Returns:

  • (String)


20895
20896
20897
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20895

def updater_to_show_name
  @updater_to_show_name
end

#updater_to_show_user_idGoogle::Apis::CloudsearchV1::UserId

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



20900
20901
20902
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20900

def updater_to_show_user_id
  @updater_to_show_user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20907
20908
20909
20910
20911
20912
20913
20914
20915
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20907

def update!(**args)
  @drive_notification_avatar_url = args[:drive_notification_avatar_url] if args.key?(:drive_notification_avatar_url)
  @updater_count_display_type = args[:updater_count_display_type] if args.key?(:updater_count_display_type)
  @updater_count_to_show = args[:updater_count_to_show] if args.key?(:updater_count_to_show)
  @updater_to_show_email = args[:updater_to_show_email] if args.key?(:updater_to_show_email)
  @updater_to_show_gaia_id = args[:updater_to_show_gaia_id] if args.key?(:updater_to_show_gaia_id)
  @updater_to_show_name = args[:updater_to_show_name] if args.key?(:updater_to_show_name)
  @updater_to_show_user_id = args[:updater_to_show_user_id] if args.key?(:updater_to_show_user_id)
end