com.google.api.services.youtube.model.ActivityContentDetails Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2013-06-05 16:09:48 UTC)
* on 2013-06-12 at 00:00:52 UTC
* Modify at your own risk.
*/
package com.google.api.services.youtube.model;
/**
* Details about the content of an activity: the video that was shared, the channel that was
* subscribed to, etc.
*
* 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 YouTube Data API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ActivityContentDetails extends com.google.api.client.json.GenericJson {
/**
* The bulletin object contains details about a channel bulletin post. This object is only present
* if the snippet.type is bulletin.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Bulletin bulletin;
/**
* The channelItem object contains details about a resource which was added to a channel. This
* property is only present if the snippet.type is channelItem.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ChannelItem channelItem;
/**
* The comment object contains information about a resource that received a comment. This property
* is only present if the snippet.type is comment.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Comment comment;
/**
* The favorite object contains information about a video that was marked as a favorite video.
* This property is only present if the snippet.type is favorite.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Favorite favorite;
/**
* The like object contains information about a resource that received a positive (like) rating.
* This property is only present if the snippet.type is like.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Like like;
/**
* The playlistItem object contains information about a new playlist item. This property is only
* present if the snippet.type is playlistItem.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PlaylistItem playlistItem;
/**
* The promotedItem object contains details about a resource which is being promoted. This
* property is only present if the snippet.type is promotedItem.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PromotedItem promotedItem;
/**
* The recommendation object contains information about a recommended resource. This property is
* only present if the snippet.type is recommendation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Recommendation recommendation;
/**
* The social object contains details about a social network post. This property is only present
* if the snippet.type is social.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Social social;
/**
* The subscription object contains information about a channel that a user subscribed to. This
* property is only present if the snippet.type is subscription.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Subscription subscription;
/**
* The upload object contains information about the uploaded video. This property is only present
* if the snippet.type is upload.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Upload upload;
/**
* The bulletin object contains details about a channel bulletin post. This object is only present
* if the snippet.type is bulletin.
* @return value or {@code null} for none
*/
public Bulletin getBulletin() {
return bulletin;
}
/**
* The bulletin object contains details about a channel bulletin post. This object is only present
* if the snippet.type is bulletin.
* @param bulletin bulletin or {@code null} for none
*/
public ActivityContentDetails setBulletin(Bulletin bulletin) {
this.bulletin = bulletin;
return this;
}
/**
* The channelItem object contains details about a resource which was added to a channel. This
* property is only present if the snippet.type is channelItem.
* @return value or {@code null} for none
*/
public ChannelItem getChannelItem() {
return channelItem;
}
/**
* The channelItem object contains details about a resource which was added to a channel. This
* property is only present if the snippet.type is channelItem.
* @param channelItem channelItem or {@code null} for none
*/
public ActivityContentDetails setChannelItem(ChannelItem channelItem) {
this.channelItem = channelItem;
return this;
}
/**
* The comment object contains information about a resource that received a comment. This property
* is only present if the snippet.type is comment.
* @return value or {@code null} for none
*/
public Comment getComment() {
return comment;
}
/**
* The comment object contains information about a resource that received a comment. This property
* is only present if the snippet.type is comment.
* @param comment comment or {@code null} for none
*/
public ActivityContentDetails setComment(Comment comment) {
this.comment = comment;
return this;
}
/**
* The favorite object contains information about a video that was marked as a favorite video.
* This property is only present if the snippet.type is favorite.
* @return value or {@code null} for none
*/
public Favorite getFavorite() {
return favorite;
}
/**
* The favorite object contains information about a video that was marked as a favorite video.
* This property is only present if the snippet.type is favorite.
* @param favorite favorite or {@code null} for none
*/
public ActivityContentDetails setFavorite(Favorite favorite) {
this.favorite = favorite;
return this;
}
/**
* The like object contains information about a resource that received a positive (like) rating.
* This property is only present if the snippet.type is like.
* @return value or {@code null} for none
*/
public Like getLike() {
return like;
}
/**
* The like object contains information about a resource that received a positive (like) rating.
* This property is only present if the snippet.type is like.
* @param like like or {@code null} for none
*/
public ActivityContentDetails setLike(Like like) {
this.like = like;
return this;
}
/**
* The playlistItem object contains information about a new playlist item. This property is only
* present if the snippet.type is playlistItem.
* @return value or {@code null} for none
*/
public PlaylistItem getPlaylistItem() {
return playlistItem;
}
/**
* The playlistItem object contains information about a new playlist item. This property is only
* present if the snippet.type is playlistItem.
* @param playlistItem playlistItem or {@code null} for none
*/
public ActivityContentDetails setPlaylistItem(PlaylistItem playlistItem) {
this.playlistItem = playlistItem;
return this;
}
/**
* The promotedItem object contains details about a resource which is being promoted. This
* property is only present if the snippet.type is promotedItem.
* @return value or {@code null} for none
*/
public PromotedItem getPromotedItem() {
return promotedItem;
}
/**
* The promotedItem object contains details about a resource which is being promoted. This
* property is only present if the snippet.type is promotedItem.
* @param promotedItem promotedItem or {@code null} for none
*/
public ActivityContentDetails setPromotedItem(PromotedItem promotedItem) {
this.promotedItem = promotedItem;
return this;
}
/**
* The recommendation object contains information about a recommended resource. This property is
* only present if the snippet.type is recommendation.
* @return value or {@code null} for none
*/
public Recommendation getRecommendation() {
return recommendation;
}
/**
* The recommendation object contains information about a recommended resource. This property is
* only present if the snippet.type is recommendation.
* @param recommendation recommendation or {@code null} for none
*/
public ActivityContentDetails setRecommendation(Recommendation recommendation) {
this.recommendation = recommendation;
return this;
}
/**
* The social object contains details about a social network post. This property is only present
* if the snippet.type is social.
* @return value or {@code null} for none
*/
public Social getSocial() {
return social;
}
/**
* The social object contains details about a social network post. This property is only present
* if the snippet.type is social.
* @param social social or {@code null} for none
*/
public ActivityContentDetails setSocial(Social social) {
this.social = social;
return this;
}
/**
* The subscription object contains information about a channel that a user subscribed to. This
* property is only present if the snippet.type is subscription.
* @return value or {@code null} for none
*/
public Subscription getSubscription() {
return subscription;
}
/**
* The subscription object contains information about a channel that a user subscribed to. This
* property is only present if the snippet.type is subscription.
* @param subscription subscription or {@code null} for none
*/
public ActivityContentDetails setSubscription(Subscription subscription) {
this.subscription = subscription;
return this;
}
/**
* The upload object contains information about the uploaded video. This property is only present
* if the snippet.type is upload.
* @return value or {@code null} for none
*/
public Upload getUpload() {
return upload;
}
/**
* The upload object contains information about the uploaded video. This property is only present
* if the snippet.type is upload.
* @param upload upload or {@code null} for none
*/
public ActivityContentDetails setUpload(Upload upload) {
this.upload = upload;
return this;
}
@Override
public ActivityContentDetails set(String fieldName, Object value) {
return (ActivityContentDetails) super.set(fieldName, value);
}
@Override
public ActivityContentDetails clone() {
return (ActivityContentDetails) super.clone();
}
/**
* The bulletin object contains details about a channel bulletin post. This object is only present
* if the snippet.type is bulletin.
*/
public static final class Bulletin extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the resource associated with a
* bulletin post.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the resource associated with a
* bulletin post.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the resource associated with a
* bulletin post.
* @param resourceId resourceId or {@code null} for none
*/
public Bulletin setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public Bulletin set(String fieldName, Object value) {
return (Bulletin) super.set(fieldName, value);
}
@Override
public Bulletin clone() {
return (Bulletin) super.clone();
}
}
/**
* The channelItem object contains details about a resource which was added to a channel. This
* property is only present if the snippet.type is channelItem.
*/
public static final class ChannelItem extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the resource that was added to the
* channel.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the resource that was added to the
* channel.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the resource that was added to the
* channel.
* @param resourceId resourceId or {@code null} for none
*/
public ChannelItem setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public ChannelItem set(String fieldName, Object value) {
return (ChannelItem) super.set(fieldName, value);
}
@Override
public ChannelItem clone() {
return (ChannelItem) super.clone();
}
}
/**
* The comment object contains information about a resource that received a comment. This property
* is only present if the snippet.type is comment.
*/
public static final class Comment extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the resource associated with the
* comment.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the resource associated with the
* comment.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the resource associated with the
* comment.
* @param resourceId resourceId or {@code null} for none
*/
public Comment setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public Comment set(String fieldName, Object value) {
return (Comment) super.set(fieldName, value);
}
@Override
public Comment clone() {
return (Comment) super.clone();
}
}
/**
* The favorite object contains information about a video that was marked as a favorite video. This
* property is only present if the snippet.type is favorite.
*/
public static final class Favorite extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the resource that was marked as a
* favorite.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the resource that was marked as a
* favorite.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the resource that was marked as a
* favorite.
* @param resourceId resourceId or {@code null} for none
*/
public Favorite setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public Favorite set(String fieldName, Object value) {
return (Favorite) super.set(fieldName, value);
}
@Override
public Favorite clone() {
return (Favorite) super.clone();
}
}
/**
* The like object contains information about a resource that received a positive (like) rating.
* This property is only present if the snippet.type is like.
*/
public static final class Like extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the rated resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the rated resource.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the rated resource.
* @param resourceId resourceId or {@code null} for none
*/
public Like setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public Like set(String fieldName, Object value) {
return (Like) super.set(fieldName, value);
}
@Override
public Like clone() {
return (Like) super.clone();
}
}
/**
* The playlistItem object contains information about a new playlist item. This property is only
* present if the snippet.type is playlistItem.
*/
public static final class PlaylistItem extends com.google.api.client.json.GenericJson {
/**
* The value that YouTube uses to uniquely identify the playlist.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String playlistId;
/**
* ID of the item within the playlist.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String playlistItemId;
/**
* The resourceId object contains information about the resource that was added to the playlist.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The value that YouTube uses to uniquely identify the playlist.
* @return value or {@code null} for none
*/
public java.lang.String getPlaylistId() {
return playlistId;
}
/**
* The value that YouTube uses to uniquely identify the playlist.
* @param playlistId playlistId or {@code null} for none
*/
public PlaylistItem setPlaylistId(java.lang.String playlistId) {
this.playlistId = playlistId;
return this;
}
/**
* ID of the item within the playlist.
* @return value or {@code null} for none
*/
public java.lang.String getPlaylistItemId() {
return playlistItemId;
}
/**
* ID of the item within the playlist.
* @param playlistItemId playlistItemId or {@code null} for none
*/
public PlaylistItem setPlaylistItemId(java.lang.String playlistItemId) {
this.playlistItemId = playlistItemId;
return this;
}
/**
* The resourceId object contains information about the resource that was added to the playlist.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information about the resource that was added to the playlist.
* @param resourceId resourceId or {@code null} for none
*/
public PlaylistItem setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public PlaylistItem set(String fieldName, Object value) {
return (PlaylistItem) super.set(fieldName, value);
}
@Override
public PlaylistItem clone() {
return (PlaylistItem) super.clone();
}
}
/**
* The promotedItem object contains details about a resource which is being promoted. This property
* is only present if the snippet.type is promotedItem.
*/
public static final class PromotedItem extends com.google.api.client.json.GenericJson {
/**
* The URL the client should fetch to request a promoted item.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String adTag;
/**
* The URL the client should ping to indicate that the user clicked through on this promoted item.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String clickTrackingUrl;
/**
* The URL the client should ping to indicate that the user was shown this promoted item.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String creativeViewUrl;
/**
* The type of call-to-action, a message to the user indicating action that can be taken.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String ctaType;
/**
* The text description to accompany the promoted item.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String descriptionText;
/**
* The URL the client should direct the user to, if the user chooses to visit the advertiser's
* website.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String destinationUrl;
/**
* The ID that YouTube uses to uniquely identify the promoted video.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String videoId;
/**
* The URL the client should fetch to request a promoted item.
* @return value or {@code null} for none
*/
public java.lang.String getAdTag() {
return adTag;
}
/**
* The URL the client should fetch to request a promoted item.
* @param adTag adTag or {@code null} for none
*/
public PromotedItem setAdTag(java.lang.String adTag) {
this.adTag = adTag;
return this;
}
/**
* The URL the client should ping to indicate that the user clicked through on this promoted item.
* @return value or {@code null} for none
*/
public java.lang.String getClickTrackingUrl() {
return clickTrackingUrl;
}
/**
* The URL the client should ping to indicate that the user clicked through on this promoted item.
* @param clickTrackingUrl clickTrackingUrl or {@code null} for none
*/
public PromotedItem setClickTrackingUrl(java.lang.String clickTrackingUrl) {
this.clickTrackingUrl = clickTrackingUrl;
return this;
}
/**
* The URL the client should ping to indicate that the user was shown this promoted item.
* @return value or {@code null} for none
*/
public java.lang.String getCreativeViewUrl() {
return creativeViewUrl;
}
/**
* The URL the client should ping to indicate that the user was shown this promoted item.
* @param creativeViewUrl creativeViewUrl or {@code null} for none
*/
public PromotedItem setCreativeViewUrl(java.lang.String creativeViewUrl) {
this.creativeViewUrl = creativeViewUrl;
return this;
}
/**
* The type of call-to-action, a message to the user indicating action that can be taken.
* @return value or {@code null} for none
*/
public java.lang.String getCtaType() {
return ctaType;
}
/**
* The type of call-to-action, a message to the user indicating action that can be taken.
* @param ctaType ctaType or {@code null} for none
*/
public PromotedItem setCtaType(java.lang.String ctaType) {
this.ctaType = ctaType;
return this;
}
/**
* The text description to accompany the promoted item.
* @return value or {@code null} for none
*/
public java.lang.String getDescriptionText() {
return descriptionText;
}
/**
* The text description to accompany the promoted item.
* @param descriptionText descriptionText or {@code null} for none
*/
public PromotedItem setDescriptionText(java.lang.String descriptionText) {
this.descriptionText = descriptionText;
return this;
}
/**
* The URL the client should direct the user to, if the user chooses to visit the advertiser's
* website.
* @return value or {@code null} for none
*/
public java.lang.String getDestinationUrl() {
return destinationUrl;
}
/**
* The URL the client should direct the user to, if the user chooses to visit the advertiser's
* website.
* @param destinationUrl destinationUrl or {@code null} for none
*/
public PromotedItem setDestinationUrl(java.lang.String destinationUrl) {
this.destinationUrl = destinationUrl;
return this;
}
/**
* The ID that YouTube uses to uniquely identify the promoted video.
* @return value or {@code null} for none
*/
public java.lang.String getVideoId() {
return videoId;
}
/**
* The ID that YouTube uses to uniquely identify the promoted video.
* @param videoId videoId or {@code null} for none
*/
public PromotedItem setVideoId(java.lang.String videoId) {
this.videoId = videoId;
return this;
}
@Override
public PromotedItem set(String fieldName, Object value) {
return (PromotedItem) super.set(fieldName, value);
}
@Override
public PromotedItem clone() {
return (PromotedItem) super.clone();
}
}
/**
* The recommendation object contains information about a recommended resource. This property is
* only present if the snippet.type is recommendation.
*/
public static final class Recommendation extends com.google.api.client.json.GenericJson {
/**
* The reason that the resource is recommended to the user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reason;
/**
* The resourceId object contains information that identifies the recommended resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The seedResourceId object contains information about the resource that caused the
* recommendation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId seedResourceId;
/**
* The reason that the resource is recommended to the user.
* @return value or {@code null} for none
*/
public java.lang.String getReason() {
return reason;
}
/**
* The reason that the resource is recommended to the user.
* @param reason reason or {@code null} for none
*/
public Recommendation setReason(java.lang.String reason) {
this.reason = reason;
return this;
}
/**
* The resourceId object contains information that identifies the recommended resource.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the recommended resource.
* @param resourceId resourceId or {@code null} for none
*/
public Recommendation setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* The seedResourceId object contains information about the resource that caused the
* recommendation.
* @return value or {@code null} for none
*/
public ResourceId getSeedResourceId() {
return seedResourceId;
}
/**
* The seedResourceId object contains information about the resource that caused the
* recommendation.
* @param seedResourceId seedResourceId or {@code null} for none
*/
public Recommendation setSeedResourceId(ResourceId seedResourceId) {
this.seedResourceId = seedResourceId;
return this;
}
@Override
public Recommendation set(String fieldName, Object value) {
return (Recommendation) super.set(fieldName, value);
}
@Override
public Recommendation clone() {
return (Recommendation) super.clone();
}
}
/**
* The social object contains details about a social network post. This property is only present if
* the snippet.type is social.
*/
public static final class Social extends com.google.api.client.json.GenericJson {
/**
* The author of the social network post.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String author;
/**
* An image of the post's author.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String imageUrl;
/**
* The URL of the social network post.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referenceUrl;
/**
* The resourceId object encapsulates information that identifies the resource associated with a
* social network post.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The name of the social network.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The author of the social network post.
* @return value or {@code null} for none
*/
public java.lang.String getAuthor() {
return author;
}
/**
* The author of the social network post.
* @param author author or {@code null} for none
*/
public Social setAuthor(java.lang.String author) {
this.author = author;
return this;
}
/**
* An image of the post's author.
* @return value or {@code null} for none
*/
public java.lang.String getImageUrl() {
return imageUrl;
}
/**
* An image of the post's author.
* @param imageUrl imageUrl or {@code null} for none
*/
public Social setImageUrl(java.lang.String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* The URL of the social network post.
* @return value or {@code null} for none
*/
public java.lang.String getReferenceUrl() {
return referenceUrl;
}
/**
* The URL of the social network post.
* @param referenceUrl referenceUrl or {@code null} for none
*/
public Social setReferenceUrl(java.lang.String referenceUrl) {
this.referenceUrl = referenceUrl;
return this;
}
/**
* The resourceId object encapsulates information that identifies the resource associated with a
* social network post.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object encapsulates information that identifies the resource associated with a
* social network post.
* @param resourceId resourceId or {@code null} for none
*/
public Social setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* The name of the social network.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The name of the social network.
* @param type type or {@code null} for none
*/
public Social setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public Social set(String fieldName, Object value) {
return (Social) super.set(fieldName, value);
}
@Override
public Social clone() {
return (Social) super.clone();
}
}
/**
* The subscription object contains information about a channel that a user subscribed to. This
* property is only present if the snippet.type is subscription.
*/
public static final class Subscription extends com.google.api.client.json.GenericJson {
/**
* The resourceId object contains information that identifies the resource that the user
* subscribed to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResourceId resourceId;
/**
* The resourceId object contains information that identifies the resource that the user
* subscribed to.
* @return value or {@code null} for none
*/
public ResourceId getResourceId() {
return resourceId;
}
/**
* The resourceId object contains information that identifies the resource that the user
* subscribed to.
* @param resourceId resourceId or {@code null} for none
*/
public Subscription setResourceId(ResourceId resourceId) {
this.resourceId = resourceId;
return this;
}
@Override
public Subscription set(String fieldName, Object value) {
return (Subscription) super.set(fieldName, value);
}
@Override
public Subscription clone() {
return (Subscription) super.clone();
}
}
/**
* The upload object contains information about the uploaded video. This property is only present if
* the snippet.type is upload.
*/
public static final class Upload extends com.google.api.client.json.GenericJson {
/**
* The ID that YouTube uses to uniquely identify the uploaded video.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String videoId;
/**
* The ID that YouTube uses to uniquely identify the uploaded video.
* @return value or {@code null} for none
*/
public java.lang.String getVideoId() {
return videoId;
}
/**
* The ID that YouTube uses to uniquely identify the uploaded video.
* @param videoId videoId or {@code null} for none
*/
public Upload setVideoId(java.lang.String videoId) {
this.videoId = videoId;
return this;
}
@Override
public Upload set(String fieldName, Object value) {
return (Upload) super.set(fieldName, value);
}
@Override
public Upload clone() {
return (Upload) super.clone();
}
}
}