Author
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"displayName": string,
"profilePhotoUrl": string,
"type": enum (AuthorType )
} |
字段 |
displayName |
string
用户的显示名称
|
profilePhotoUrl |
string
用户的个人资料照片网址。
|
type |
enum (AuthorType )
作者的用户类型。
|
AuthorType
枚举 |
AUTHOR_TYPE_UNSPECIFIED |
不应使用此属性。 |
REGULAR_USER |
普通用户。 |
LOCAL_GUIDE |
本地向导 |
MERCHANT |
营业地点的所有者/管理员 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe AuthorType object represents the author of a question or answer and includes their display name, profile photo URL, and user type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etype\u003c/code\u003e field uses the AuthorType enum to specify whether the author is a regular user, a Local Guide, or a merchant, avoiding the \u003ccode\u003eAUTHOR_TYPE_UNSPECIFIED\u003c/code\u003e value.\u003c/p\u003e\n"]]],[],null,["# Author\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AuthorType](#AuthorType)\n\nRepresents the author of a question or answer\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"displayName\": string, \"profilePhotoUrl\": string, \"type\": enum (/my-business/reference/rest/v4/Author#AuthorType) } ``` |\n\n| Fields ||\n|-------------------|-----------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` The display name of the user |\n| `profilePhotoUrl` | `string` The profile photo URL of the user. |\n| `type` | `enum (`[AuthorType](/my-business/reference/rest/v4/Author#AuthorType)`)` The type of user the author is. |\n\nAuthorType\n----------\n\nEnum for the type of user the author is.\n\n| Enums ||\n|---------------------------|-----------------------------------|\n| `AUTHOR_TYPE_UNSPECIFIED` | This should not be used. |\n| `REGULAR_USER` | A regular user. |\n| `LOCAL_GUIDE` | A Local Guide |\n| `MERCHANT` | The owner/manager of the location |"]]