public final class LocalPost
extends com.google.api.client.json.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 Google My Business API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
LocalPost() |
Modifier and Type | Method and Description |
---|---|
LocalPost |
clone() |
CallToAction |
getCallToAction()
The URL that users are sent to when clicking through the promotion.
|
java.lang.String |
getCreateTime()
Output only.
|
LocalPostEvent |
getEvent()
Event information.
|
java.lang.String |
getLanguageCode()
The language of the local post.
|
java.util.List<MediaItem> |
getMedia()
The media associated with the post.
|
java.lang.String |
getName()
Output only.
|
LocalPostOffer |
getOffer()
Extra fields of offer posts.
|
java.lang.String |
getSearchUrl()
Output only.
|
java.lang.String |
getState()
Output only.
|
java.lang.String |
getSummary()
Description/body of the local post.
|
java.lang.String |
getTopicType()
Required.
|
java.lang.String |
getUpdateTime()
Output only.
|
LocalPost |
set(java.lang.String fieldName,
java.lang.Object value) |
LocalPost |
setCallToAction(CallToAction callToAction)
The URL that users are sent to when clicking through the promotion.
|
LocalPost |
setCreateTime(java.lang.String createTime)
Output only.
|
LocalPost |
setEvent(LocalPostEvent event)
Event information.
|
LocalPost |
setLanguageCode(java.lang.String languageCode)
The language of the local post.
|
LocalPost |
setMedia(java.util.List<MediaItem> media)
The media associated with the post.
|
LocalPost |
setName(java.lang.String name)
Output only.
|
LocalPost |
setOffer(LocalPostOffer offer)
Extra fields of offer posts.
|
LocalPost |
setSearchUrl(java.lang.String searchUrl)
Output only.
|
LocalPost |
setState(java.lang.String state)
Output only.
|
LocalPost |
setSummary(java.lang.String summary)
Description/body of the local post.
|
LocalPost |
setTopicType(java.lang.String topicType)
Required.
|
LocalPost |
setUpdateTime(java.lang.String updateTime)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public CallToAction getCallToAction()
null
for nonepublic LocalPost setCallToAction(CallToAction callToAction)
callToAction
- callToAction or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic LocalPost setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic LocalPostEvent getEvent()
null
for nonepublic LocalPost setEvent(LocalPostEvent event)
event
- event or null
for nonepublic java.lang.String getLanguageCode()
null
for nonepublic LocalPost setLanguageCode(java.lang.String languageCode)
languageCode
- languageCode or null
for nonepublic java.util.List<MediaItem> getMedia()
null
for nonepublic LocalPost setMedia(java.util.List<MediaItem> media)
media
- media or null
for nonepublic java.lang.String getName()
null
for nonepublic LocalPost setName(java.lang.String name)
name
- name or null
for nonepublic LocalPostOffer getOffer()
null
for nonepublic LocalPost setOffer(LocalPostOffer offer)
offer
- offer or null
for nonepublic java.lang.String getSearchUrl()
null
for nonepublic LocalPost setSearchUrl(java.lang.String searchUrl)
searchUrl
- searchUrl or null
for nonepublic java.lang.String getState()
null
for nonepublic LocalPost setState(java.lang.String state)
state
- state or null
for nonepublic java.lang.String getSummary()
null
for nonepublic LocalPost setSummary(java.lang.String summary)
summary
- summary or null
for nonepublic java.lang.String getTopicType()
null
for nonepublic LocalPost setTopicType(java.lang.String topicType)
topicType
- topicType or null
for nonepublic java.lang.String getUpdateTime()
null
for nonepublic LocalPost setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic LocalPost set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public LocalPost clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.