public static final class Activity.PlusObject.Attachments
extends com.google.api.client.json.GenericJson
Modifier and Type | Class and Description |
---|---|
static class |
Activity.PlusObject.Attachments.Embed
If the attachment is a video, the embeddable link.
|
static class |
Activity.PlusObject.Attachments.FullImage
The full image URL for photo attachments.
|
static class |
Activity.PlusObject.Attachments.Image
The preview image for photos or videos.
|
static class |
Activity.PlusObject.Attachments.Thumbnails
Model definition for ActivityObjectAttachmentsThumbnails.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Attachments() |
Modifier and Type | Method and Description |
---|---|
Activity.PlusObject.Attachments |
clone() |
java.lang.String |
getContent()
If the attachment is an article, this property contains a snippet of text from the article.
|
java.lang.String |
getDisplayName()
The title of the attachment, such as a photo caption or an article title.
|
Activity.PlusObject.Attachments.Embed |
getEmbed()
If the attachment is a video, the embeddable link.
|
Activity.PlusObject.Attachments.FullImage |
getFullImage()
The full image URL for photo attachments.
|
java.lang.String |
getId()
The ID of the attachment.
|
Activity.PlusObject.Attachments.Image |
getImage()
The preview image for photos or videos.
|
java.lang.String |
getObjectType()
The type of media object.
|
java.util.List<Activity.PlusObject.Attachments.Thumbnails> |
getThumbnails()
If the attachment is an album, this property is a list of potential additional thumbnails from
the album.
|
java.lang.String |
getUrl()
The link to the attachment, which should be of type text/html.
|
Activity.PlusObject.Attachments |
set(java.lang.String fieldName,
java.lang.Object value) |
Activity.PlusObject.Attachments |
setContent(java.lang.String content)
If the attachment is an article, this property contains a snippet of text from the article.
|
Activity.PlusObject.Attachments |
setDisplayName(java.lang.String displayName)
The title of the attachment, such as a photo caption or an article title.
|
Activity.PlusObject.Attachments |
setEmbed(Activity.PlusObject.Attachments.Embed embed)
If the attachment is a video, the embeddable link.
|
Activity.PlusObject.Attachments |
setFullImage(Activity.PlusObject.Attachments.FullImage fullImage)
The full image URL for photo attachments.
|
Activity.PlusObject.Attachments |
setId(java.lang.String id)
The ID of the attachment.
|
Activity.PlusObject.Attachments |
setImage(Activity.PlusObject.Attachments.Image image)
The preview image for photos or videos.
|
Activity.PlusObject.Attachments |
setObjectType(java.lang.String objectType)
The type of media object.
|
Activity.PlusObject.Attachments |
setThumbnails(java.util.List<Activity.PlusObject.Attachments.Thumbnails> thumbnails)
If the attachment is an album, this property is a list of potential additional thumbnails from
the album.
|
Activity.PlusObject.Attachments |
setUrl(java.lang.String url)
The link to the attachment, which should be of type text/html.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getContent()
null
for nonepublic Activity.PlusObject.Attachments setContent(java.lang.String content)
content
- content or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic Activity.PlusObject.Attachments setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic Activity.PlusObject.Attachments.Embed getEmbed()
null
for nonepublic Activity.PlusObject.Attachments setEmbed(Activity.PlusObject.Attachments.Embed embed)
embed
- embed or null
for nonepublic Activity.PlusObject.Attachments.FullImage getFullImage()
null
for nonepublic Activity.PlusObject.Attachments setFullImage(Activity.PlusObject.Attachments.FullImage fullImage)
fullImage
- fullImage or null
for nonepublic java.lang.String getId()
null
for nonepublic Activity.PlusObject.Attachments setId(java.lang.String id)
id
- id or null
for nonepublic Activity.PlusObject.Attachments.Image getImage()
null
for nonepublic Activity.PlusObject.Attachments setImage(Activity.PlusObject.Attachments.Image image)
image
- image or null
for nonepublic java.lang.String getObjectType()
null
for nonepublic Activity.PlusObject.Attachments setObjectType(java.lang.String objectType)
objectType
- objectType or null
for nonepublic java.util.List<Activity.PlusObject.Attachments.Thumbnails> getThumbnails()
null
for nonepublic Activity.PlusObject.Attachments setThumbnails(java.util.List<Activity.PlusObject.Attachments.Thumbnails> thumbnails)
thumbnails
- thumbnails or null
for nonepublic java.lang.String getUrl()
null
for nonepublic Activity.PlusObject.Attachments setUrl(java.lang.String url)
url
- url or null
for nonepublic Activity.PlusObject.Attachments set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Activity.PlusObject.Attachments clone()
clone
in class com.google.api.client.json.GenericJson