AppsPeopleOzExternalMergedpeopleapiPhoto

AI Overview😉

  • The potential purpose of this module is to provide information about a person's photo, including its decorations, emoji representation, and metadata. This module seems to be part of the People API, which is used to manage information about people, including their profiles and photos.
  • This module could impact search results by providing additional information about a person's photo, which could be used to improve the relevance and accuracy of search results. For example, if a search query includes a person's name, the search results could include a thumbnail of their profile photo, along with other relevant information. The decorations and emoji representation of the photo could also be used to provide a more personalized and engaging search experience.
  • A website may change things to be more favorable for this function by ensuring that their profile photos are properly decorated and formatted, and that they provide accurate and up-to-date metadata about the photos. Additionally, websites could use the People API to manage and update profile photos, and to provide a more seamless and integrated search experience for their users. By providing more detailed and accurate information about profile photos, websites could improve the overall quality and relevance of their search results.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto (google_api_content_warehouse v0.4.0)

Attributes

  • decoration (type: list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDecorationOverlay.t), default: nil) - Read-only. Use UpdatePersonPhoto to change photo decorations. If this photo is decorated, this field contains information about its decorations. For now, this will contain at most one entry.
  • emojiAvatarUrl (type: String.t, default: nil) - URL of an emoji avatar as an image. See go/emoji-cdn. PeopleAPI will return the SVG format so that it can be scaled client side and so that the images will not be animated. All clients that use this field must also have fall-back handling for using the Photo.url field if this is empty. When we have FIFE-compatible emoji-image URLs we will drop this field and return the Photo.url instead. Clients that have their own go/emoji-rendering integration may prefer to render the emoji-avatar from Photo.glyph field using their rendering system so that the emoji version/style match the rest of the application. For further background, see go/chatroom-avatar-as-roster-metadata. This field will only be populated if all of: - The PersonFieldMetadata container_type for the Photo is NAMED_CHAT_ROOM - The chat room has an emoji type avatar image set
  • glyph (type: String.t, default: nil) - Unicode emoji representation of the chat room emoji avatar. This can be used by clients that use go/emoji-rendering directly so that they can present this with the same version/style as the rest of their application. This value may also be useful to clients as alt-text for the image. This field will only be populated if all of: - The PersonFieldMetadata container_type for the Photo is NAMED_CHAT_ROOM - The chat room has an emoji type avatar image set
  • htmlAttribution (type: list(String.t), default: nil) - A set of HTML data provider attributions that must be shown with the result. Supported for PLACES photos only. See: go/understanding-places-api-attribution-requirements
  • isDefault (type: boolean(), default: nil) - True when the photo is synthetic or generated (i.e. a monogram or default photo), false when the person has a custom photo.
  • isMonogram (type: boolean(), default: nil) - Indicates if the photo is a monogram avatar. Combined with is_default, the type of photo can be determined by: is_default=true, is_monogram=true: Default monogram avatar. is_default=true, is_monogram=false: Default silhouette avatar. is_default=false: Custom photo. is_monogram is irrelevant in this case.
  • metadata (type: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t, default: nil) -
  • monogramBackground (type: String.t, default: nil) - When is_monogram=true, this is the background color of the monogram photo as a hex RGB formatted string "RRGGBB".
  • originalPhoto (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoImageReference.t, default: nil) - Read-only. A reference to the original, undecorated profile photo in storage. This field is not stored. It is populated by a live read to /SocialGraphImageService.GetActiveProfilePhoto. This field is only returned when "person.photo.original_photo" is specified in the request mask.
  • photoId (type: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId.t, default: nil) - For writes only. Indicates photo content for person photo-field update. Currently only used for profile-photo updates (not contact photos yet).
  • photoToken (type: String.t, default: nil) - Most clients don't need to worry about this field and should just use the url to fetch the photo. See go/phototoken-migration-plan for some more context about this field. If you think you want to use this please talk with people-api-eng@ first.
  • url (type: String.t, default: nil) - See go/people-api-concepts/photos for info on the different representations of URLs.
  • viewerUrl (type: String.t, default: nil) - A URL for a UI to view the photo in its original context. For example, for a place photo, this is the url of a Google Maps page displaying the photo. Supported for place photos only.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto{
    decoration:
      [
        GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDecorationOverlay.t()
      ]
      | nil,
    emojiAvatarUrl: String.t() | nil,
    glyph: String.t() | nil,
    htmlAttribution: [String.t()] | nil,
    isDefault: boolean() | nil,
    isMonogram: boolean() | nil,
    metadata:
      GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t()
      | nil,
    monogramBackground: String.t() | nil,
    originalPhoto:
      GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoImageReference.t()
      | nil,
    photoId:
      GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId.t()
      | nil,
    photoToken: String.t() | nil,
    url: String.t() | nil,
    viewerUrl: String.t() | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.