public class Media extends Object
Java class for Media complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Media">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="mediaId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="type" type="{https://adwords.google.com/api/adwords/cm/v201809}Media.MediaType" minOccurs="0"/>
<element name="referenceId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="dimensions" type="{https://adwords.google.com/api/adwords/cm/v201809}Media_Size_DimensionsMapEntry" maxOccurs="unbounded" minOccurs="0"/>
<element name="urls" type="{https://adwords.google.com/api/adwords/cm/v201809}Media_Size_StringMapEntry" maxOccurs="unbounded" minOccurs="0"/>
<element name="mimeType" type="{https://adwords.google.com/api/adwords/cm/v201809}Media.LegacyMimeType" minOccurs="0"/>
<element name="sourceUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="fileSize" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="creationTime" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Media.Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
creationTime |
protected List<MediaSizeDimensionsMapEntry> |
dimensions |
protected Long |
fileSize |
protected Long |
mediaId |
protected String |
mediaType |
protected MediaLegacyMimeType |
mimeType |
protected String |
name |
protected Long |
referenceId |
protected String |
sourceUrl |
protected MediaMediaType |
type |
protected List<MediaSizeStringMapEntry> |
urls |
| Constructor and Description |
|---|
Media() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCreationTime()
Gets the value of the creationTime property.
|
List<MediaSizeDimensionsMapEntry> |
getDimensions()
Gets the value of the dimensions property.
|
Long |
getFileSize()
Gets the value of the fileSize property.
|
Long |
getMediaId()
Gets the value of the mediaId property.
|
String |
getMediaType()
Gets the value of the mediaType property.
|
MediaLegacyMimeType |
getMimeType()
Gets the value of the mimeType property.
|
String |
getName()
Gets the value of the name property.
|
Long |
getReferenceId()
Gets the value of the referenceId property.
|
String |
getSourceUrl()
Gets the value of the sourceUrl property.
|
MediaMediaType |
getType()
Gets the value of the type property.
|
List<MediaSizeStringMapEntry> |
getUrls()
Gets the value of the urls property.
|
void |
setCreationTime(String value)
Sets the value of the creationTime property.
|
void |
setFileSize(Long value)
Sets the value of the fileSize property.
|
void |
setMediaId(Long value)
Sets the value of the mediaId property.
|
void |
setMediaType(String value)
Sets the value of the mediaType property.
|
void |
setMimeType(MediaLegacyMimeType value)
Sets the value of the mimeType property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setReferenceId(Long value)
Sets the value of the referenceId property.
|
void |
setSourceUrl(String value)
Sets the value of the sourceUrl property.
|
void |
setType(MediaMediaType value)
Sets the value of the type property.
|
protected Long mediaId
protected MediaMediaType type
protected Long referenceId
protected List<MediaSizeDimensionsMapEntry> dimensions
protected List<MediaSizeStringMapEntry> urls
protected MediaLegacyMimeType mimeType
protected String sourceUrl
protected String name
protected Long fileSize
protected String creationTime
protected String mediaType
public Long getMediaId()
Longpublic void setMediaId(Long value)
value - allowed object is
Longpublic MediaMediaType getType()
MediaMediaTypepublic void setType(MediaMediaType value)
value - allowed object is
MediaMediaTypepublic Long getReferenceId()
Longpublic void setReferenceId(Long value)
value - allowed object is
Longpublic List<MediaSizeDimensionsMapEntry> getDimensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the dimensions property.
For example, to add a new item, do as follows:
getDimensions().add(newItem);
Objects of the following type(s) are allowed in the list
MediaSizeDimensionsMapEntry
public List<MediaSizeStringMapEntry> getUrls()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the urls property.
For example, to add a new item, do as follows:
getUrls().add(newItem);
Objects of the following type(s) are allowed in the list
MediaSizeStringMapEntry
public MediaLegacyMimeType getMimeType()
MediaLegacyMimeTypepublic void setMimeType(MediaLegacyMimeType value)
value - allowed object is
MediaLegacyMimeTypepublic String getSourceUrl()
Stringpublic void setSourceUrl(String value)
value - allowed object is
Stringpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic Long getFileSize()
Longpublic void setFileSize(Long value)
value - allowed object is
Longpublic String getCreationTime()
Stringpublic void setCreationTime(String value)
value - allowed object is
Stringpublic String getMediaType()
StringCopyright © 2023. All rights reserved.