View Source GoogleApi.MyBusinessQAndA.V1.Model.Answer (google_api_my_business_q_and_a v0.2.1)

Represents an answer to a question

Attributes

  • author (type: GoogleApi.MyBusinessQAndA.V1.Model.Author.t, default: nil) - Output only. The author of the answer. Will only be set during list operations.
  • createTime (type: DateTime.t, default: nil) - Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.
  • name (type: String.t, default: nil) - Output only. The unique name for the answer locations//questions//answers/*
  • text (type: String.t, default: nil) - Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.
  • updateTime (type: DateTime.t, default: nil) - Output only. The timestamp for when the answer was last modified.
  • upvoteCount (type: integer(), default: nil) - Output only. The number of upvotes for the answer.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.MyBusinessQAndA.V1.Model.Answer{
  author: GoogleApi.MyBusinessQAndA.V1.Model.Author.t() | nil,
  createTime: DateTime.t() | nil,
  name: String.t() | nil,
  text: String.t() | nil,
  updateTime: DateTime.t() | nil,
  upvoteCount: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.