public class DisplayVideo.Media extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DisplayVideo.Media.Download |
class |
DisplayVideo.Media.Upload |
| Constructor and Description |
|---|
Media() |
| Modifier and Type | Method and Description |
|---|---|
DisplayVideo.Media.Download |
download(String resourceName)
Downloads media.
|
DisplayVideo.Media.Upload |
upload(String resourceName,
GoogleBytestreamMedia content)
Uploads media.
|
DisplayVideo.Media.Upload |
upload(String resourceName,
GoogleBytestreamMedia content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Uploads media.
|
public DisplayVideo.Media.Download download(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.IOExceptionpublic DisplayVideo.Media.Upload upload(String resourceName, GoogleBytestreamMedia content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.content - the GoogleBytestreamMediaIOExceptionpublic DisplayVideo.Media.Upload upload(String resourceName, GoogleBytestreamMedia content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
This method should be used for uploading media content.
resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.content - the GoogleBytestreamMedia media metadata or null if nonemediaContent - The media HTTP content.IOException - if the initialization of the request failsCopyright © 2011–2026 Google. All rights reserved.