com.google.api.ads.adwords.v201109.cm
Class Media

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.cm.Media
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Audio, Image, Video

public class Media
extends Object
implements Serializable

Represents some kind of media.

See Also:
Serialized Form

Constructor Summary
Media()
           
Media(Long mediaId, MediaMediaType type, Long referenceId, Media_Size_DimensionsMapEntry[] dimensions, Media_Size_StringMapEntry[] urls, MediaMimeType mimeType, String sourceUrl, String name, Long fileSize, String creationTime, String mediaType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCreationTime()
          Gets the creationTime value for this Media.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Media_Size_DimensionsMapEntry[] getDimensions()
          Gets the dimensions value for this Media.
 Media_Size_DimensionsMapEntry getDimensions(int i)
           
 Long getFileSize()
          Gets the fileSize value for this Media.
 Long getMediaId()
          Gets the mediaId value for this Media.
 String getMediaType()
          Gets the mediaType value for this Media.
 MediaMimeType getMimeType()
          Gets the mimeType value for this Media.
 String getName()
          Gets the name value for this Media.
 Long getReferenceId()
          Gets the referenceId value for this Media.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 String getSourceUrl()
          Gets the sourceUrl value for this Media.
 MediaMediaType getType()
          Gets the type value for this Media.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 Media_Size_StringMapEntry[] getUrls()
          Gets the urls value for this Media.
 Media_Size_StringMapEntry getUrls(int i)
           
 int hashCode()
           
 void setCreationTime(String creationTime)
          Sets the creationTime value for this Media.
 void setDimensions(int i, Media_Size_DimensionsMapEntry _value)
           
 void setDimensions(Media_Size_DimensionsMapEntry[] dimensions)
          Sets the dimensions value for this Media.
 void setFileSize(Long fileSize)
          Sets the fileSize value for this Media.
 void setMediaId(Long mediaId)
          Sets the mediaId value for this Media.
 void setMediaType(String mediaType)
          Sets the mediaType value for this Media.
 void setMimeType(MediaMimeType mimeType)
          Sets the mimeType value for this Media.
 void setName(String name)
          Sets the name value for this Media.
 void setReferenceId(Long referenceId)
          Sets the referenceId value for this Media.
 void setSourceUrl(String sourceUrl)
          Sets the sourceUrl value for this Media.
 void setType(MediaMediaType type)
          Sets the type value for this Media.
 void setUrls(int i, Media_Size_StringMapEntry _value)
           
 void setUrls(Media_Size_StringMapEntry[] urls)
          Sets the urls value for this Media.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Media

public Media()

Media

public Media(Long mediaId,
             MediaMediaType type,
             Long referenceId,
             Media_Size_DimensionsMapEntry[] dimensions,
             Media_Size_StringMapEntry[] urls,
             MediaMimeType mimeType,
             String sourceUrl,
             String name,
             Long fileSize,
             String creationTime,
             String mediaType)
Method Detail

getMediaId

public Long getMediaId()
Gets the mediaId value for this Media.

Returns:
mediaId * ID of this media object. This field can be selected using the value "MediaId".This field can be filtered on. This field is required and should not be null when it is contained within Operators : SET, REMOVE.

setMediaId

public void setMediaId(Long mediaId)
Sets the mediaId value for this Media.

Parameters:
mediaId - * ID of this media object. This field can be selected using the value "MediaId".This field can be filtered on. This field is required and should not be null when it is contained within Operators : SET, REMOVE.

getType

public MediaMediaType getType()
Gets the type value for this Media.

Returns:
type * Type of this media object. Required when using upload() to upload a new media file. This field can be selected using the value "Type".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setType

public void setType(MediaMediaType type)
Sets the type value for this Media.

Parameters:
type - * Type of this media object. Required when using upload() to upload a new media file. This field can be selected using the value "Type".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getReferenceId

public Long getReferenceId()
Gets the referenceId value for this Media.

Returns:
referenceId * Media reference id key This field can be selected using the value "ReferenceId".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setReferenceId

public void setReferenceId(Long referenceId)
Sets the referenceId value for this Media.

Parameters:
referenceId - * Media reference id key This field can be selected using the value "ReferenceId".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getDimensions

public Media_Size_DimensionsMapEntry[] getDimensions()
Gets the dimensions value for this Media.

Returns:
dimensions * Various dimension sizes for the media. Only applies to image media (and video media for video thumbnails). This field can be selected using the value "Dimensions".

setDimensions

public void setDimensions(Media_Size_DimensionsMapEntry[] dimensions)
Sets the dimensions value for this Media.

Parameters:
dimensions - * Various dimension sizes for the media. Only applies to image media (and video media for video thumbnails). This field can be selected using the value "Dimensions".

getDimensions

public Media_Size_DimensionsMapEntry getDimensions(int i)

setDimensions

public void setDimensions(int i,
                          Media_Size_DimensionsMapEntry _value)

getUrls

public Media_Size_StringMapEntry[] getUrls()
Gets the urls value for this Media.

Returns:
urls * Urls pointing to the resized media for the given sizes. Only applies to image media. This field can be selected using the value "Urls". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setUrls

public void setUrls(Media_Size_StringMapEntry[] urls)
Sets the urls value for this Media.

Parameters:
urls - * Urls pointing to the resized media for the given sizes. Only applies to image media. This field can be selected using the value "Urls". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getUrls

public Media_Size_StringMapEntry getUrls(int i)

setUrls

public void setUrls(int i,
                    Media_Size_StringMapEntry _value)

getMimeType

public MediaMimeType getMimeType()
Gets the mimeType value for this Media.

Returns:
mimeType * The mime type of the media This field can be selected using the value "MimeType".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setMimeType

public void setMimeType(MediaMimeType mimeType)
Sets the mimeType value for this Media.

Parameters:
mimeType - * The mime type of the media This field can be selected using the value "MimeType".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getSourceUrl

public String getSourceUrl()
Gets the sourceUrl value for this Media.

Returns:
sourceUrl * The url where the orginal media was downloaded from (or a file name). This field can be selected using the value "SourceUrl".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setSourceUrl

public void setSourceUrl(String sourceUrl)
Sets the sourceUrl value for this Media.

Parameters:
sourceUrl - * The url where the orginal media was downloaded from (or a file name). This field can be selected using the value "SourceUrl".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getName

public String getName()
Gets the name value for this Media.

Returns:
name * The name of the media. The name can be used by clients to help identify previously uploaded media. This field can be selected using the value "Name".This field can be filtered on.

setName

public void setName(String name)
Sets the name value for this Media.

Parameters:
name - * The name of the media. The name can be used by clients to help identify previously uploaded media. This field can be selected using the value "Name".This field can be filtered on.

getFileSize

public Long getFileSize()
Gets the fileSize value for this Media.

Returns:
fileSize * The size of the media file in bytes This field can be selected using the value "FileSize".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setFileSize

public void setFileSize(Long fileSize)
Sets the fileSize value for this Media.

Parameters:
fileSize - * The size of the media file in bytes This field can be selected using the value "FileSize".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getCreationTime

public String getCreationTime()
Gets the creationTime value for this Media.

Returns:
creationTime * Media creation date in the format YYYY-MM-DD HH:MM:SS+TZ. This is not updatable and not specifiable. This field can be selected using the value "CreationTime".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

setCreationTime

public void setCreationTime(String creationTime)
Sets the creationTime value for this Media.

Parameters:
creationTime - * Media creation date in the format YYYY-MM-DD HH:MM:SS+TZ. This is not updatable and not specifiable. This field can be selected using the value "CreationTime".This field can be filtered on. This field is read only and should not be set for following Operators : SET, REMOVE. If this field is sent to the API, it will be ignored.

getMediaType

public String getMediaType()
Gets the mediaType value for this Media.

Returns:
mediaType * Indicates that this instance is a subtype of Media. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

setMediaType

public void setMediaType(String mediaType)
Sets the mediaType value for this Media.

Parameters:
mediaType - * Indicates that this instance is a subtype of Media. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2011. All Rights Reserved.