/** * Deletes a chat message. * * Create a request for the method "liveChatMessages.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the YouTube chat message ID of the resource that is being deleted. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Deletes a video stream. * * Create a request for the method "liveStreams.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the YouTube live stream ID for the resource that is being deleted. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Report abuse for a video. * * Create a request for the method "videos.reportAbuse". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link ReportAbuse#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.youtube.model.VideoAbuseReport} * @return the request */ public ReportAbuse reportAbuse(com.google.api.services.youtube.model.VideoAbuseReport content) throws java.io.IOException { ReportAbuse result = new ReportAbuse(content); initialize(result); return result; }
/** * Deletes a comment. * * Create a request for the method "comments.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the comment ID for the resource that is being deleted. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Deletes a broadcast. * * Create a request for the method "liveBroadcasts.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Deletes a channel's watermark image. * * Create a request for the method "watermarks.unset". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Unset#execute()} method to invoke the remote operation. * * @param channelId The channelId parameter specifies the YouTube channel ID for which the watermark is being unset. * @return the request */ public Unset unset(java.lang.String channelId) throws java.io.IOException { Unset result = new Unset(channelId); initialize(result); return result; }
/** * Deletes a specified caption track. * * Create a request for the method "captions.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter identifies the caption track that is being deleted. The value is a caption track ID * as identified by the id property in a caption resource. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Returns a list of comment threads that match the API request parameters. * * Create a request for the method "commentThreads.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies a comma-separated list of one or more commentThread resource properties * that the API response will include. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Removes a chat ban. * * Create a request for the method "liveChatBans.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter identifies the chat ban to remove. The value uniquely identifies both the ban and * the chat. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Returns a list of abuse reasons that can be used for reporting abusive videos. * * Create a request for the method "videoAbuseReportReasons.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies the videoCategory resource parts that the API response will include. * Supported values are id and snippet. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Removes a chat moderator. * * Create a request for the method "liveChatModerators.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter identifies the chat moderator to remove. The value uniquely identifies both the * moderator and the chat. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Uploads a custom video thumbnail to YouTube and sets it for a video. * * Create a request for the method "thumbnails.set". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Set#execute()} method to invoke the remote operation. * * @param videoId The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being * provided. * @return the request */ public Set set(java.lang.String videoId) throws java.io.IOException { Set result = new Set(videoId); initialize(result); return result; }
/** * Returns a list of comments that match the API request parameters. * * Create a request for the method "comments.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies a comma-separated list of one or more comment resource properties that * the API response will include. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Returns a list of application languages that the YouTube website supports. * * Create a request for the method "i18nLanguages.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies the i18nLanguage resource properties that the API response will * include. Set the parameter value to snippet. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Returns a list of content regions that the YouTube website supports. * * Create a request for the method "i18nRegions.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies the i18nRegion resource properties that the API response will include. * Set the parameter value to snippet. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Deletes a playlist item. * * Create a request for the method "playlistItems.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the YouTube playlist item ID for the playlist item that is being deleted. * In a playlistItem resource, the id property specifies the playlist item's ID. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }
/** * Lists sponsors for a channel. * * Create a request for the method "sponsors.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies the sponsor resource parts that the API response will include. * Supported values are id and snippet. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Lists Super Chat events for a channel. * * Create a request for the method "superChatEvents.list". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param part The part parameter specifies the superChatEvent resource parts that the API response will include. * Supported values are id and snippet. * @return the request */ public List list(java.lang.String part) throws java.io.IOException { List result = new List(part); initialize(result); return result; }
/** * Uploads a watermark image to YouTube and sets it for a channel. * * Create a request for the method "watermarks.set". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Set#execute()} method to invoke the remote operation. * * @param channelId The channelId parameter specifies the YouTube channel ID for which the watermark is being provided. * @param content the {@link com.google.api.services.youtube.model.InvideoBranding} * @return the request */ public Set set(java.lang.String channelId, com.google.api.services.youtube.model.InvideoBranding content) throws java.io.IOException { Set result = new Set(channelId, content); initialize(result); return result; }
/** * Deletes a subscription. * * Create a request for the method "subscriptions.delete". * * This request holds the parameters needed by the youtube server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param id The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a * subscription resource, the id property specifies the YouTube subscription ID. * @return the request */ public Delete delete(java.lang.String id) throws java.io.IOException { Delete result = new Delete(id); initialize(result); return result; }