def fromThrift()

in follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala [324:369]


  def fromThrift(displayLocation: TDisplayLocation): DisplayLocation = displayLocation match {
    case TDisplayLocation.ProfileSidebar => ProfileSidebar
    case TDisplayLocation.HomeTimeline => HomeTimeline
    case TDisplayLocation.MagicRecs => MagicRecs
    case TDisplayLocation.AbUploadInjection => AbUploadInjection
    case TDisplayLocation.RuxLandingPage => RuxLandingPage
    case TDisplayLocation.ProfileBonusFollow => ProfileBonusFollow
    case TDisplayLocation.ElectionExploreWtf => ElectionExploreWtf
    case TDisplayLocation.ClusterFollow => ClusterFollow
    case TDisplayLocation.HtlBonusFollow => HtlBonusFollow
    case TDisplayLocation.ReactiveFollow => ReactiveFollow
    case TDisplayLocation.TopicLandingPageHeader => TopicLandingPageHeader
    case TDisplayLocation.NewUserSarusBackfill => NewUserSarusBackfill
    case TDisplayLocation.NuxPymk => NuxPymk
    case TDisplayLocation.NuxInterests => NuxInterests
    case TDisplayLocation.NuxTopicBonusFollow => NuxTopicBonusFollow
    case TDisplayLocation.ExploreTab => ExploreTab
    case TDisplayLocation.Sidebar => Sidebar
    case TDisplayLocation.CampaignForm => CampaignForm
    case TDisplayLocation.ProfileTopFollowers => ProfileTopFollowers
    case TDisplayLocation.ProfileTopFollowing => ProfileTopFollowing
    case TDisplayLocation.RuxPymk => RuxPymk
    case TDisplayLocation.IndiaCovid19CuratedAccountsWtf => IndiaCovid19CuratedAccountsWtf
    case TDisplayLocation.PeoplePlusPlus => PeoplePlusPlus
    case TDisplayLocation.TweetNotificationRecs => TweetNotificationRecs
    case TDisplayLocation.ProfileDeviceFollow => ProfileDeviceFollow
    case TDisplayLocation.RecosBackfill => RecosBackfill
    case TDisplayLocation.HtlSpaceHosts => HtlSpaceHosts
    case TDisplayLocation.PostNuxFollowTask => PostNuxFollowTask
    case TDisplayLocation.TopicLandingPage => TopicLandingPage
    case TDisplayLocation.UserTypeaheadPrefetch => UserTypeaheadPrefetch
    case TDisplayLocation.HomeTimelineRelatableAccounts => HomeTimelineRelatableAccounts
    case TDisplayLocation.NuxGeoCategory => NuxGeoCategory
    case TDisplayLocation.NuxInterestsCategory => NuxInterestsCategory
    case TDisplayLocation.TopArticles => TopArticles
    case TDisplayLocation.NuxPymkCategory => NuxPymkCategory
    case TDisplayLocation.HomeTimelineTweetRecs => HomeTimelineTweetRecs
    case TDisplayLocation.HtlBulkFriendFollows => HtlBulkFriendFollows
    case TDisplayLocation.NuxAutoFollow => NuxAutoFollow
    case TDisplayLocation.SearchBonusFollow => SearchBonusFollow
    case TDisplayLocation.ContentRecommender => ContentRecommender
    case TDisplayLocation.HomeTimelineReverseChron => HomeTimelineReverseChron
    case TDisplayLocation.EnumUnknownDisplayLocation(i) =>
      throw new UnknownDisplayLocationException(
        s"Unknown display location thrift enum with value: ${i}")
  }