public final class Asset
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 Poly 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 |
---|
Asset() |
Modifier and Type | Method and Description |
---|---|
Asset |
clone() |
java.lang.String |
getAuthorName()
The author's publicly visible name.
|
java.lang.String |
getCreateTime()
For published assets, the time when the asset was published.
|
java.lang.String |
getDescription()
The human-readable description, set by the asset's author.
|
java.lang.String |
getDisplayName()
The human-readable name, set by the asset's author.
|
java.util.List<Format> |
getFormats()
A list of Formats where each format describes one representation of the asset.
|
java.lang.Boolean |
getIsCurated()
Whether this asset has been curated by the Poly team.
|
java.lang.String |
getLicense()
The license under which the author has made the asset available for use, if any.
|
java.lang.String |
getMetadata()
Application-defined opaque metadata for this asset.
|
java.lang.String |
getName()
The unique identifier for the asset in the form: `assets/{ASSET_ID}`.
|
PresentationParams |
getPresentationParams()
Hints for displaying the asset.
|
RemixInfo |
getRemixInfo()
The remix info for the asset.
|
File |
getThumbnail()
The thumbnail image for the asset.
|
java.lang.String |
getUpdateTime()
The time when the asset was last modified.
|
java.lang.String |
getVisibility()
The visibility of the asset and who can access it.
|
Asset |
set(java.lang.String fieldName,
java.lang.Object value) |
Asset |
setAuthorName(java.lang.String authorName)
The author's publicly visible name.
|
Asset |
setCreateTime(java.lang.String createTime)
For published assets, the time when the asset was published.
|
Asset |
setDescription(java.lang.String description)
The human-readable description, set by the asset's author.
|
Asset |
setDisplayName(java.lang.String displayName)
The human-readable name, set by the asset's author.
|
Asset |
setFormats(java.util.List<Format> formats)
A list of Formats where each format describes one representation of the asset.
|
Asset |
setIsCurated(java.lang.Boolean isCurated)
Whether this asset has been curated by the Poly team.
|
Asset |
setLicense(java.lang.String license)
The license under which the author has made the asset available for use, if any.
|
Asset |
setMetadata(java.lang.String metadata)
Application-defined opaque metadata for this asset.
|
Asset |
setName(java.lang.String name)
The unique identifier for the asset in the form: `assets/{ASSET_ID}`.
|
Asset |
setPresentationParams(PresentationParams presentationParams)
Hints for displaying the asset.
|
Asset |
setRemixInfo(RemixInfo remixInfo)
The remix info for the asset.
|
Asset |
setThumbnail(File thumbnail)
The thumbnail image for the asset.
|
Asset |
setUpdateTime(java.lang.String updateTime)
The time when the asset was last modified.
|
Asset |
setVisibility(java.lang.String visibility)
The visibility of the asset and who can access it.
|
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 getAuthorName()
null
for nonepublic Asset setAuthorName(java.lang.String authorName)
authorName
- authorName or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic Asset setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Asset setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic Asset setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.util.List<Format> getFormats()
null
for nonepublic Asset setFormats(java.util.List<Format> formats)
formats
- formats or null
for nonepublic java.lang.Boolean getIsCurated()
null
for nonepublic Asset setIsCurated(java.lang.Boolean isCurated)
isCurated
- isCurated or null
for nonepublic java.lang.String getLicense()
null
for nonepublic Asset setLicense(java.lang.String license)
license
- license or null
for nonepublic java.lang.String getMetadata()
null
for nonepublic Asset setMetadata(java.lang.String metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic Asset setName(java.lang.String name)
name
- name or null
for nonepublic PresentationParams getPresentationParams()
null
for nonepublic Asset setPresentationParams(PresentationParams presentationParams)
presentationParams
- presentationParams or null
for nonepublic RemixInfo getRemixInfo()
null
for nonepublic Asset setRemixInfo(RemixInfo remixInfo)
remixInfo
- remixInfo or null
for nonepublic File getThumbnail()
null
for nonepublic Asset setThumbnail(File thumbnail)
thumbnail
- thumbnail or null
for nonepublic java.lang.String getUpdateTime()
null
for nonepublic Asset setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic java.lang.String getVisibility()
null
for nonepublic Asset setVisibility(java.lang.String visibility)
visibility
- visibility or null
for nonepublic Asset set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Asset clone()
clone
in class com.google.api.client.json.GenericJson