target.apidocs.com.google.api.services.youtube.YouTube.Watermarks.html Maven / Gradle / Ivy
YouTube.Watermarks (YouTube Data API v3 v3-rev20210410-1.31.0)
com.google.api.services.youtube
Class YouTube.Watermarks
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Watermarks
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.Watermarks.Set
class
YouTube.Watermarks.Unset
-
Constructor Summary
Constructors
Constructor and Description
Watermarks()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.Watermarks.Set
set(String channelId,
InvideoBranding content)
Allows upload of watermark image and setting it for a channel.
YouTube.Watermarks.Set
set(String channelId,
InvideoBranding content,
AbstractInputStreamContent mediaContent)
Allows upload of watermark image and setting it for a channel.
YouTube.Watermarks.Unset
unset(String channelId)
Allows removal of channel watermark.
-
-
Method Detail
-
set
public YouTube.Watermarks.Set set(String channelId,
InvideoBranding content)
throws IOException
Allows upload of watermark image and setting 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 AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
channelId
-
content
- the InvideoBranding
- Returns:
- the request
- Throws:
IOException
-
set
public YouTube.Watermarks.Set set(String channelId,
InvideoBranding content,
AbstractInputStreamContent mediaContent)
throws IOException
Allows upload of watermark image and setting it for a channel.
Create a request for the method "watermarks.set".
This request holds the parameters needed by the the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
- Parameters:
channelId
-
content
- the InvideoBranding
media metadata or null
if none
mediaContent
- The media HTTP content or null
if none.
- Returns:
- the request
- Throws:
IOException
- if the initialization of the request fails
-
unset
public YouTube.Watermarks.Unset unset(String channelId)
throws IOException
Allows removal of channel watermark.
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 AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
channelId
-
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2021 Google. All rights reserved.