public final class Question 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 |
---|
Question() |
Modifier and Type | Method and Description |
---|---|
Question |
clone() |
Author |
getAuthor()
Output only.
|
String |
getCreateTime()
Output only.
|
String |
getName()
Immutable.
|
String |
getText()
Required.
|
List<Answer> |
getTopAnswers()
Output only.
|
Integer |
getTotalAnswerCount()
Output only.
|
String |
getUpdateTime()
Output only.
|
Integer |
getUpvoteCount()
Output only.
|
Question |
set(String fieldName,
Object value) |
Question |
setAuthor(Author author)
Output only.
|
Question |
setCreateTime(String createTime)
Output only.
|
Question |
setName(String name)
Immutable.
|
Question |
setText(String text)
Required.
|
Question |
setTopAnswers(List<Answer> topAnswers)
Output only.
|
Question |
setTotalAnswerCount(Integer totalAnswerCount)
Output only.
|
Question |
setUpdateTime(String updateTime)
Output only.
|
Question |
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 Question setAuthor(Author author)
author
- author or null
for nonepublic String getCreateTime()
null
for nonepublic Question setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getName()
null
for nonepublic Question setName(String name)
name
- name or null
for nonepublic String getText()
null
for nonepublic Question setText(String text)
text
- text or null
for nonepublic List<Answer> getTopAnswers()
null
for nonepublic Question setTopAnswers(List<Answer> topAnswers)
topAnswers
- topAnswers or null
for nonepublic Integer getTotalAnswerCount()
null
for nonepublic Question setTotalAnswerCount(Integer totalAnswerCount)
totalAnswerCount
- totalAnswerCount or null
for nonepublic String getUpdateTime()
null
for nonepublic Question setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic Integer getUpvoteCount()
null
for nonepublic Question setUpvoteCount(Integer upvoteCount)
upvoteCount
- upvoteCount or null
for nonepublic Question set(String fieldName, Object value)
set
in class GenericJson
public Question clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.