Resource: Question
Represents a single question and some of its answers.
JSON representation | |
---|---|
{ "name": string, "author": { object ( |
Fields | |
---|---|
name |
Output only. The unique name for the question. accounts/*/locations/*/questions/* |
author |
Output only. The author of the question. |
upvoteCount |
Output only. The number of upvotes for the question. |
text |
The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. |
createTime |
Output only. The timestamp for when the question was written. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The timestamp for when the question was last modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
topAnswers[] |
Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answersPerQuestion) |
totalAnswerCount |
Output only. The total number of answers posted for this question. |
Methods |
|
---|---|
|
Adds a question for the specified location. |
|
Deletes a specific question written by the current user. |
|
Returns the paginated list of questions and some of its answers for a specified location. |
|
Updates a specific question written by the current user. |