com.google.gdata.data.photos
Class GphotoOriginalVideo

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.photos.GphotoOriginalVideo
All Implemented Interfaces:
Extension

public class GphotoOriginalVideo
extends ExtensionPoint

The original video info field.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Constructor Summary
GphotoOriginalVideo()
          Default mutable constructor.
GphotoOriginalVideo(java.lang.Integer channels, java.lang.Long duration, java.lang.Integer height, java.lang.Float samplingrate, java.lang.String type, java.lang.Integer width)
          Immutable constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getChannels()
          Returns the number of audio channels.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
          Returns the extension description, specifying whether it is required, and whether it is repeatable.
 java.lang.Long getDuration()
          Returns the video playback duration in milliseconds.
 java.lang.Integer getHeight()
          Returns the video height.
 java.lang.Float getSamplingrate()
          Returns the audio sample rate in kHz.
 java.lang.String getType()
          Returns the video format type.
 java.lang.Integer getWidth()
          Returns the video width.
 boolean hasChannels()
          Returns whether it has the number of audio channels.
 boolean hasDuration()
          Returns whether it has the video playback duration in milliseconds.
 int hashCode()
           
 boolean hasHeight()
          Returns whether it has the video height.
 boolean hasSamplingrate()
          Returns whether it has the audio sample rate in kHz.
 boolean hasType()
          Returns whether it has the video format type.
 boolean hasWidth()
          Returns whether it has the video width.
 void setChannels(java.lang.Integer channels)
          Sets the number of audio channels.
 void setDuration(java.lang.Long duration)
          Sets the video playback duration in milliseconds.
 void setHeight(java.lang.Integer height)
          Sets the video height.
 void setSamplingrate(java.lang.Float samplingrate)
          Sets the audio sample rate in kHz.
 void setType(java.lang.String type)
          Sets the video format type.
 void setWidth(java.lang.Integer width)
          Sets the video width.
 java.lang.String toString()
           
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GphotoOriginalVideo

public GphotoOriginalVideo()
Default mutable constructor.


GphotoOriginalVideo

public GphotoOriginalVideo(java.lang.Integer channels,
                           java.lang.Long duration,
                           java.lang.Integer height,
                           java.lang.Float samplingrate,
                           java.lang.String type,
                           java.lang.Integer width)
Immutable constructor.

Parameters:
channels - number of audio channels.
duration - video playback duration in milliseconds.
height - video height.
samplingrate - audio sample rate in kHz.
type - video format type.
width - video width.
Method Detail

getChannels

public java.lang.Integer getChannels()
Returns the number of audio channels.

Returns:
number of audio channels

setChannels

public void setChannels(java.lang.Integer channels)
Sets the number of audio channels.

Parameters:
channels - number of audio channels or null to reset

hasChannels

public boolean hasChannels()
Returns whether it has the number of audio channels.

Returns:
whether it has the number of audio channels

getDuration

public java.lang.Long getDuration()
Returns the video playback duration in milliseconds.

Returns:
video playback duration in milliseconds

setDuration

public void setDuration(java.lang.Long duration)
Sets the video playback duration in milliseconds.

Parameters:
duration - video playback duration in milliseconds or null to reset

hasDuration

public boolean hasDuration()
Returns whether it has the video playback duration in milliseconds.

Returns:
whether it has the video playback duration in milliseconds

getHeight

public java.lang.Integer getHeight()
Returns the video height.

Returns:
video height

setHeight

public void setHeight(java.lang.Integer height)
Sets the video height.

Parameters:
height - video height or null to reset

hasHeight

public boolean hasHeight()
Returns whether it has the video height.

Returns:
whether it has the video height

getSamplingrate

public java.lang.Float getSamplingrate()
Returns the audio sample rate in kHz.

Returns:
audio sample rate in kHz

setSamplingrate

public void setSamplingrate(java.lang.Float samplingrate)
Sets the audio sample rate in kHz.

Parameters:
samplingrate - audio sample rate in kHz or null to reset

hasSamplingrate

public boolean hasSamplingrate()
Returns whether it has the audio sample rate in kHz.

Returns:
whether it has the audio sample rate in kHz

getType

public java.lang.String getType()
Returns the video format type.

Returns:
video format type

setType

public void setType(java.lang.String type)
Sets the video format type.

Parameters:
type - video format type or null to reset

hasType

public boolean hasType()
Returns whether it has the video format type.

Returns:
whether it has the video format type

getWidth

public java.lang.Integer getWidth()
Returns the video width.

Returns:
video width

setWidth

public void setWidth(java.lang.Integer width)
Sets the video width.

Parameters:
width - video width or null to reset

hasWidth

public boolean hasWidth()
Returns whether it has the video width.

Returns:
whether it has the video width

getDefaultDescription

public static ExtensionDescription getDefaultDescription(boolean required,
                                                         boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters:
required - whether it is required
repeatable - whether it is repeatable
Returns:
extension description

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object