All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.displayvideo.v4.DisplayVideo.Media.html Maven / Gradle / Ivy







DisplayVideo.Media (Display & Video 360 API v4-rev20240118-2.0.0)












com.google.api.services.displayvideo.v4

Class DisplayVideo.Media

  • Enclosing class:
    DisplayVideo


    public class DisplayVideo.Media
    extends Object
    The "media" collection of methods.
    • Constructor Detail

      • Media

        public Media()
    • Method Detail

      • download

        public DisplayVideo.Media.Download download(String resourceName)
                                             throws IOException
        Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string. Create a request for the method "media.download". This request holds the parameters needed by the displayvideo server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.
        Returns:
        the request
        Throws:
        IOException
      • upload

        public DisplayVideo.Media.Upload upload(String resourceName,
                                                GoogleBytestreamMedia content)
                                         throws IOException
        Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string. Create a request for the method "media.upload". This request holds the parameters needed by the displayvideo server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.
        content - the GoogleBytestreamMedia
        Returns:
        the request
        Throws:
        IOException
      • upload

        public DisplayVideo.Media.Upload upload(String resourceName,
                                                GoogleBytestreamMedia content,
                                                com.google.api.client.http.AbstractInputStreamContent mediaContent)
                                         throws IOException
        Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string. Create a request for the method "media.upload". This request holds the parameters needed by the the displayvideo 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:
        resourceName - Name of the media that is being downloaded. See ReadRequest.resource_name.
        content - the GoogleBytestreamMedia media metadata or null if none
        mediaContent - The media HTTP content.
        Returns:
        the request
        Throws:
        IOException - if the initialization of the request fails

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy