View Source GoogleApi.MyBusinessQAndA.V1.Model.Question (google_api_my_business_q_and_a v0.2.1)
Represents a single question and some of its answers.
Attributes
-
author
(type:GoogleApi.MyBusinessQAndA.V1.Model.Author.t
, default:nil
) - Output only. The author of the question. -
createTime
(type:DateTime.t
, default:nil
) - Output only. The timestamp for when the question was written. -
name
(type:String.t
, default:nil
) - Immutable. The unique name for the question. locations//questions/ This field will be ignored if set during question creation. -
text
(type:String.t
, default:nil
) - Required. 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. -
topAnswers
(type:list(GoogleApi.MyBusinessQAndA.V1.Model.Answer.t)
, default:nil
) - 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 (answers_per_question) -
totalAnswerCount
(type:integer()
, default:nil
) - Output only. The total number of answers posted for this question. -
updateTime
(type:DateTime.t
, default:nil
) - Output only. The timestamp for when the question was last modified. -
upvoteCount
(type:integer()
, default:nil
) - Output only. The number of upvotes for the question.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.MyBusinessQAndA.V1.Model.Question{ author: GoogleApi.MyBusinessQAndA.V1.Model.Author.t() | nil, createTime: DateTime.t() | nil, name: String.t() | nil, text: String.t() | nil, topAnswers: [GoogleApi.MyBusinessQAndA.V1.Model.Answer.t()] | nil, totalAnswerCount: integer() | nil, updateTime: DateTime.t() | nil, upvoteCount: integer() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.