Author

  • The AuthorType object represents the author of a question or answer and includes their display name, profile photo URL, and user type.

  • The type field uses the AuthorType enum to specify whether the author is a regular user, a Local Guide, or a merchant, avoiding the AUTHOR_TYPE_UNSPECIFIED value.

Represents the author of a question or answer

JSON representation
{
  "displayName": string,
  "profilePhotoUrl": string,
  "type": enum (AuthorType)
}
Fields
displayName

string

The display name of the user

profilePhotoUrl

string

The profile photo URL of the user.

type

enum (AuthorType)

The type of user the author is.

AuthorType

Enum for the type of user the author is.

Enums
AUTHOR_TYPE_UNSPECIFIED This should not be used.
REGULAR_USER A regular user.
LOCAL_GUIDE A Local Guide
MERCHANT The owner/manager of the location