# Google Data APIs Client Library (1.43.0)

## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors
- Deprecated Enum Constants

Deprecated Interfaces
com.google.gdata.util.httputil.FormUrlDecoder.Callback Do not use. (Currently only needed internally by UriParameterMap.)

Deprecated Classes
com.google.gdata.data.extensions.ContactEntry Please use `ContactEntry` instead.
com.google.gdata.data.extensions.ContactFeed Please use `ContactFeed` instead.
com.google.gdata.data.extensions.GeoPt Use `com.google.gdata.data.geo.impl` package.
com.google.gdata.data.photos.pheed.Namespaces the pheed namespace is deprecated in favor of media rss.

com.google.gdata.util.httputil.ParamMap
Use the general `Multimap` interface to represent name-value pairs. If order of insertion or support of duplicate name-value pairs is required, use `LinkedListMultimap`. For the particular task of parsing and storing URI parameters, consider `UriParameterMap`, which is also the type returned by `com.google.gdata.util.common.net.UriBuilder` instances for URI query parameters. If you got here because you use `FormUrlDecoder` or `CgiParams`, then see the deprecation comments in those classes.

com.google.gdata.data.photos.pheed.PheedConstruct the pheed construct is deprecated in favor of media rss.
com.google.gdata.data.photos.pheed.PheedImageUrl the pheed namespace is deprecated in favor of media rss.
com.google.gdata.data.photos.pheed.PheedThumbnail the pheed namespace is deprecated in favor of media rss.
com.google.gdata.data.photos.pheed.PheedVideoUrl the pheed namespace is deprecated in favor of media rss.
com.google.gdata.data.webmastertools.SitesEntry.Crawled This class is not used any more.
com.google.gdata.data.webmastertools.SitesEntry.Indexed This class is not used any more.
com.google.gdata.data.youtube.YtDescription This tag is only accepted in version 1 of the protocol. The tag `atom:summary` usually replaces `yt:description` in version 2 and later.
com.google.gdata.data.youtube.YtRacy in favor of `MediaRating` with `YouTubeNamespace.MEDIA_RATING_SCHEME`.

Deprecated Fields
com.google.gdata.util.Namespaces.atomPub Use `getAtomPubNs().getUri()` instead. Use `Namespaces.atomPubDraft` if you absolutely want the draft app namespace and not the standard one.
com.google.gdata.util.Namespaces.atomPubNs Use `Namespaces.getAtomPubNs()` instead. Use `Namespaces.atomPubDraftNs` if you absolutely want the draft app namespace and not the standard one.
com.google.gdata.util.httputil.FastURLEncoder.CPLUSPLUS_COMPAT_SAFE_OCTETS Use `CharEscapers.cppUriEscaper()`
com.google.gdata.data.ILink.Rel.MEDIA_EDIT_BACKCOMPAT use `ILink.Rel.MEDIA_EDIT` instead.
com.google.gdata.client.http.HttpGDataRequest.METHOD_OVERRIDE_HEADER Use `GDataProtocol.Header#METHOD_OVERRIDE` instead
com.google.gdata.util.Namespaces.openSearch Use `getOpenSearchNs().getUri()` instead. Use `Namespaces.openSearch1_0` if you absolutely want the namespace of opensearch 1.0 and not 1.1.
com.google.gdata.util.Namespaces.openSearchDesc Use `getOpenSearchDescNs().getUri()` instead.
com.google.gdata.util.Namespaces.openSearchDesc1_1 Use `getOpenSearchDescNs().getUri()` instead.
com.google.gdata.util.Namespaces.openSearchDesc1_1Ns Use `Namespaces.getOpenSearchDescNs()` instead.
com.google.gdata.util.Namespaces.openSearchDescNs Use `Namespaces.getOpenSearchDescNs()` instead.
com.google.gdata.util.Namespaces.openSearchNs Use `Namespaces.getOpenSearchNs()` instead. Use `Namespaces.openSearch1_0Ns` if you absolutely want the namespace of opensearch 1.0.
com.google.api.gbase.client.GoogleBaseAttributesExtension.TAX_PERCENT_ATTRIBUTE use `GoogleBaseAttributesExtension.TAX_ATTRIBUTE` instead
com.google.api.gbase.client.GoogleBaseAttributesExtension.TAX_REGION_ATTRIBUTE use `GoogleBaseAttributesExtension.TAX_ATTRIBUTE` instead
com.google.gdata.data.docs.DocumentListEntry.UNKNOWN_CATEGORY Use CATEGORY instead.
com.google.gdata.data.docs.DocumentListEntry.UNKNOWN_KIND Use KIND instead.
com.google.gdata.data.docs.DocumentListEntry.UNKNOWN_LABEL Use LABEL instead.

Deprecated Methods
com.google.api.gbase.client.GmAttributes.addAttribute(String, GoogleBaseAttributeType) use `GmAttributes.addAttribute(GoogleBaseAttributeId, GmAttribute.Importance)` instead. This method will be removed in a future release
com.google.gdata.data.docs.DocumentListEntry.addFolder(Person, String) use `BaseEntry.addLink(Link)` with link relation PARENT_NAMESPACE instead.
com.google.gdata.util.httputil.ParamMap.append(String, String) use `Multimap.put(name, value)`
com.google.gdata.util.httputil.FastURLEncoder.createSafeOctetBitSet() Use `CharEscapers.uriEscaper()`. or create an instance of `PercentEscaper`. See `FastURLEncoder` for more details.

com.google.gdata.data.ExtensionProfile.declareEntryExtension(Class<? extends Extension>)
Calls to this API should be replaced with calls to `ExtensionProfile.declare(Class,ExtensionDescription)` where the first argument is a specific `BaseEntry` subtype. The `BaseEntry` class should only be used for mix-in types that might appear in multiple entry types. Its use for all entry declarations can result in conflicts when mutiple feed types are declared into a single extension profile, a common practice in client library service initialization for services that return multiple entry types.

com.google.gdata.data.ExtensionProfile.declareEntryExtension(ExtensionDescription)
Calls to this API should be replaced with calls to `ExtensionProfile.declare(Class,ExtensionDescription)` where the first argument is a specific `BaseEntry` subtype. The `BaseEntry` class should only be used for mix-in types that might appear in multiple entry types. Its use for all entry declarations can result in conflicts when mutiple feed types are declared into a single extension profile, a common practice in client library service initialization for services that return multiple entry types.

com.google.gdata.data.ExtensionProfile.declareFeedExtension(Class<? extends Extension>)
Calls to this API should be replaced with calls to `ExtensionProfile.declare(Class,ExtensionDescription)` where the first argument is a specific `BaseFeed` subtype. The `BaseFeed` class should only be used for mix-in types that might appear in multiple feed types. Its use for all feed declarations can result in conflicts when mutiple feed types are declared into a single extension profile, a common practice in client library service initialization for services that return multiple feed types.

com.google.gdata.data.ExtensionProfile.declareFeedExtension(ExtensionDescription)
Calls to this API should be replaced with calls to `ExtensionProfile.declare(Class,ExtensionDescription)` where the first argument is a specific `BaseFeed` subtype. The `BaseFeed` class should only be used for mix-in types that might appear in multiple feed types. Its use for all feed declarations can result in conflicts when mutiple feed types are declared into a single extension profile, a common practice in client library service initialization for services that return multiple feed types.

com.google.gdata.util.httputil.FastURLEncoder.encode(String) Use `CharEscapers.uriEscaper()`.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, Appendable) Use `CharEscapers.uriEscaper()`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, BitSet, boolean) Use `CharEscapers.uriEscaper()`. or create an instance of `PercentEscaper`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, String) Use `CharEscapers.uriEscaper()`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, String, Appendable) Use `CharEscapers.uriEscaper()`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, String, BitSet, boolean) Use `CharEscapers.uriEscaper()` or create an instance of `PercentEscaper`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.FastURLEncoder.encode(String, String, BitSet, boolean, Appendable) Use `CharEscapers.uriEscaper()` or create an instance of `PercentEscaper`. See `FastURLEncoder` for more details.
com.google.gdata.util.httputil.ParamMap.get(String) Use `Multimap.get(name)` and convert to an array only if you absolutely have to.
com.google.api.gbase.client.ItemTypeDescription.getAttributeIds() use `ItemTypeDescription.getAttributes()` instead
com.google.api.gbase.client.GmAttributes.getAttributeIds() use `GmAttributes.getAttributes()` instead.
com.google.gdata.client.batch.BatchInterruptedException.getBatchInterrupted() Use `BatchInterruptedException.getIBatchInterrupted()` instead.
com.google.gdata.data.webmastertools.SitesEntry.getCrawled() This field is not used any more.
com.google.gdata.data.youtube.FeedLinkEntry.getDescription() Valid only in version 1. Replaced in version 2.0 with atom:summary.
com.google.gdata.data.youtube.UserProfileEntry.getDescription() Valid only in version 1. Replaced in version 2.0 with yt:aboutMe for the user self description and atom:summary for the user channel description
com.google.gdata.data.youtube.VideoMessageEntry.getDescription() Valid only in version 1. Replaced version 2.0 with atom:summary.
com.google.gdata.data.youtube.PlaylistEntry.getDescription() Valid only in version 1. Replaced version 2.0 with atom:summary.
com.google.gdata.client.batch.BatchInterruptedException.getFeed() Use `BatchInterruptedException.getIFeed()` instead.
com.google.gdata.data.youtube.FeedLinkEntry.getFeedLink() Starting with version 2, the feed link can be found in the content. See `FeedLinkEntry.getFeedUrl()` and `FeedLinkEntry.getCountHint()`.
com.google.gdata.data.docs.DocumentListEntry.getFolders() use `DocumentListEntry.getParentLinks()` instead.
com.google.gdata.data.photos.impl.AlbumDataImpl.getImageUrl() use the media:content element to get the image source.
com.google.gdata.client.youtube.YouTubeQuery.getIncludeRacy() Please use `YouTubeQuery.getSafeSearch()` instead.
com.google.gdata.data.webmastertools.SitesEntry.getIndexed() This field is not used any more.
com.google.gdata.data.docs.DocumentListEntry.getKey() use getResourceId() instead.
com.google.gdata.client.Service.getStreamFromLink(ILink) Use `Service.createLinkQueryRequest(ILink)` instead.
com.google.api.gbase.client.GoogleBaseAttributesExtension.getTaxPercent() use `GoogleBaseAttributesExtension.getTax()` instead
com.google.api.gbase.client.GoogleBaseAttributesExtension.getTaxRegion() use `GoogleBaseAttributesExtension.getTax()` instead
com.google.gdata.data.photos.impl.AlbumDataImpl.getThumbnail() use the media:thumbnail element to get thumbnails.
com.google.gdata.client.authn.oauth.OAuthHelper.getUserAuthorizationUrl(OAuthParameters) Call a combination of `OAuthHelper.getUnauthorizedRequestToken(com.google.gdata.client.authn.oauth.OAuthParameters)` and `OAuthHelper.createUserAuthorizationUrl(com.google.gdata.client.authn.oauth.OAuthParameters)` instead.
com.google.gdata.client.youtube.YouTubeQuery.getVideoQuery() Please use `Query.getFullTextQuery()` instead.
com.google.gdata.data.youtube.VideoEntry.isRacy() in favor of `MediaGroup#getRatings()` with scheme `YouTubeNamespace.MEDIA_RATING_SCHEME`. Removed in version 2
com.google.gdata.util.httputil.FormUrlDecoder.parse(String, ParamMap, String) Use `UriParameterMap.parse(query, encoding)`. To convert from the string to the `Charset` instance, see `Charsets`. Note that an encoding of null will default to ISO-8859-1 in this deprecated implementation, whereas the classes in common.net default to UTF-8 encoding.
com.google.gdata.util.httputil.FormUrlDecoder.parseWithCallback(String, String, FormUrlDecoder.Callback) Do not use. (Currently only needed internally by UriParameterMap.)
com.google.gdata.util.httputil.ParamMap.put(String, String[]) Use `Multimap.putAll(name, collection)`, first converting an array to a list with `Arrays.asList(values)` if the collection is not already available.
com.google.gdata.data.webmastertools.SitesEntry.setCrawled(DateTime) This field is not used any more.
com.google.gdata.data.youtube.FeedLinkEntry.setDescription(String) Valid only in version 1. Replaced in version 2.0 with atom:summary.
com.google.gdata.data.youtube.UserProfileEntry.setDescription(String) Valid only in version 1. Replaced in version 2.0 with yt:aboutMe for the user self description and atom:summary for the user channel description
com.google.gdata.data.youtube.VideoMessageEntry.setDescription(String) Valid only in version 1. Replaced version 2.0 with atom:summary.
com.google.gdata.data.youtube.PlaylistEntry.setDescription(String) Valid only in version 1. Replaced version 2.0 with atom:summary.
com.google.gdata.data.youtube.FeedLinkEntry.setFeedLink(FeedLink<?>) Starting with version 2, the feed link can be found in the content.
com.google.gdata.data.docs.DocumentListEntry.setFile(File) use setFile(File, String) instead.
com.google.gdata.client.uploader.ResumableHttpFileUploader.setHttpRequestMethod(ResumableHttpFileUploader.RequestMethod) Please use `ResumableHttpFileUploader.Builder#setRequestMethod(RequestMethod)`
com.google.gdata.data.photos.impl.AlbumDataImpl.setImageUrl(String) set the media:content element with the image source.
com.google.gdata.client.youtube.YouTubeQuery.setIncludeRacy(Boolean) Please use `#setSafeSearch(String)` instead.
com.google.gdata.data.webmastertools.SitesEntry.setIndexed(boolean) This field is not used any more.
com.google.gdata.util.ErrorDomain.ErrorCode.setInternalReason(String) Use `ErrorDomain.ErrorCode.withInternalReason(String)` instead.
com.google.gdata.data.youtube.VideoEntry.setRacy(boolean) in favor of `MediaGroup#getRatings()` with scheme `YouTubeNamespace.MEDIA_RATING_SCHEME`. Removed in version 2.
com.google.api.gbase.client.GoogleBaseAttributesExtension.setTaxPercent(float) use `GoogleBaseAttributesExtension.addTax(Tax)` instead
com.google.api.gbase.client.GoogleBaseAttributesExtension.setTaxRegion(String) use `GoogleBaseAttributesExtension.addTax(Tax)` instead
com.google.gdata.data.photos.impl.AlbumDataImpl.setThumbnail(String) use the media:thumbnail element to set thumbnails.
com.google.gdata.client.youtube.YouTubeQuery.setVideoQuery(String) Please use `Query#setFullTextQuery()` instead.
com.google.gdata.util.httputil.ParamMap.toMap() Use `Multimap.asMap()` to get a (String name) -> (Collection values) mapping and convert to an array only if you absolutely have to. Or, use the multimap directly.

Deprecated Constructors
com.google.gdata.client.authn.oauth.OAuthHelper(String, String, String, OAuthSigner)
com.google.gdata.client.authn.oauth.OAuthHelper(String, String, String, OAuthSigner, OAuthHttpClient)
com.google.gdata.client.uploader.ResumableHttpFileUploader(URL, File, ExecutorService, ProgressListener, long) Please use `ResumableHttpFileUploader.Builder`
com.google.gdata.client.uploader.ResumableHttpFileUploader(URL, File, ExecutorService, ProgressListener, long, long) Please use `ResumableHttpFileUploader.Builder`

Deprecated Enum Constants
com.google.gdata.client.youtube.YouTubeQuery.OrderBy.UPDATED use `YouTubeQuery.OrderBy.PUBLISHED` instead.