public final class Answer extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the My Business Q&A API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Answer() |
Modifier and Type | Method and Description |
---|---|
Answer |
clone() |
Author |
getAuthor()
Output only.
|
String |
getCreateTime()
Output only.
|
String |
getName()
Output only.
|
String |
getText()
Required.
|
String |
getUpdateTime()
Output only.
|
Integer |
getUpvoteCount()
Output only.
|
Answer |
set(String fieldName,
Object value) |
Answer |
setAuthor(Author author)
Output only.
|
Answer |
setCreateTime(String createTime)
Output only.
|
Answer |
setName(String name)
Output only.
|
Answer |
setText(String text)
Required.
|
Answer |
setUpdateTime(String updateTime)
Output only.
|
Answer |
setUpvoteCount(Integer upvoteCount)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Author getAuthor()
null
for nonepublic Answer setAuthor(Author author)
author
- author or null
for nonepublic String getCreateTime()
null
for nonepublic Answer setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getName()
null
for nonepublic Answer setName(String name)
name
- name or null
for nonepublic String getText()
null
for nonepublic Answer setText(String text)
text
- text or null
for nonepublic String getUpdateTime()
null
for nonepublic Answer setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic Integer getUpvoteCount()
null
for nonepublic Answer setUpvoteCount(Integer upvoteCount)
upvoteCount
- upvoteCount or null
for nonepublic Answer set(String fieldName, Object value)
set
in class GenericJson
public Answer clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.