我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
SurveyResponse
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"survey": string,
"rating": enum (SurveyRating ),
"feedback": string,
"createTime": string,
"surveyQuestionId": string,
"questionResponseText": string,
"questionResponsePostbackData": string,
"questionType": enum (SurveyQuestionType ),
"questionIndex": integer,
"totalQuestionCount": integer,
"surveyTriggerSource": enum (SurveyTriggerSource )
} |
字段 |
survey |
string
发送给用户的调查问卷。解析为“conversations/{conversationId}/surveys/{surveyId}”,其中 {conversationId} 是会话的唯一 ID,{surveyId} 是调查问卷的唯一 ID。
|
rating |
enum (SurveyRating )
用户的评分。
|
feedback |
string
用户的文字反馈。 可选。
|
createTime |
string (Timestamp format)
回复调查问卷的时间。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒,最多九个小数位。示例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
surveyQuestionId |
string
问题的唯一标识符。
|
questionResponseText |
string
用户点按作为问题回复的文本。
|
questionResponsePostbackData |
string
用户点按的问题回复的回传数据
|
questionType |
enum (SurveyQuestionType )
问题的类型。
|
questionIndex |
integer
调查问卷中问题的索引。
|
totalQuestionCount |
integer
调查问卷中的问题总数。
|
surveyTriggerSource |
enum (SurveyTriggerSource )
调查问卷的触发器来源。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eA survey response object contains user's rating, feedback, and response time.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details like survey and question IDs, response text and postback data.\u003c/p\u003e\n"],["\u003cp\u003eQuestion type, index within the survey, and total question count are also provided.\u003c/p\u003e\n"],["\u003cp\u003eThe source that triggered the survey is identified in the \u003ccode\u003esurveyTriggerSource\u003c/code\u003e field.\u003c/p\u003e\n"]]],[],null,["# SurveyResponse\n\nA survey response.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"survey\": string, \"rating\": enum (/business-communications/business-messages/reference/rest/v1/SurveyRating), \"feedback\": string, \"createTime\": string, \"surveyQuestionId\": string, \"questionResponseText\": string, \"questionResponsePostbackData\": string, \"questionType\": enum (/business-communications/business-messages/reference/rest/v1/SurveyQuestionType), \"questionIndex\": integer, \"totalQuestionCount\": integer, \"surveyTriggerSource\": enum (/business-communications/business-messages/reference/rest/v1/SurveyTriggerSource) } ``` |\n\n| Fields ||\n|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `survey` | `string` The survey that was sent to the user. Resolves to \"conversations/{conversationId}/surveys/{surveyId}\", where {conversationId} is the unique ID for the conversation and {surveyId} is the unique ID for the survey. |\n| `rating` | `enum (`[SurveyRating](/business-communications/business-messages/reference/rest/v1/SurveyRating)`)` A rating from the user. |\n| `feedback` | `string` Text feedback from the user. Optional. |\n| `createTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` The time that the survey was responded. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `surveyQuestionId` | `string` The unique identifier of the question. |\n| `questionResponseText` | `string` The text that the user tapped as the question response. |\n| `questionResponsePostbackData` | `string` The postback data for the question response the user tapped |\n| `questionType` | `enum (`[SurveyQuestionType](/business-communications/business-messages/reference/rest/v1/SurveyQuestionType)`)` Type of the question. |\n| `questionIndex` | `integer` The index of the question in the survey. |\n| `totalQuestionCount` | `integer` The number of total questions in the survey. |\n| `surveyTriggerSource` | `enum (`[SurveyTriggerSource](/business-communications/business-messages/reference/rest/v1/SurveyTriggerSource)`)` The trigger source of the survey. |"]]