public class CloudSearch.Media
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudSearch.Media.Upload |
| Constructor and Description |
|---|
Media() |
| Modifier and Type | Method and Description |
|---|---|
CloudSearch.Media.Upload |
upload(java.lang.String resourceName,
Media content)
Uploads media for indexing.
|
CloudSearch.Media.Upload |
upload(java.lang.String resourceName,
Media content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Uploads media for indexing.
|
public CloudSearch.Media.Upload upload(java.lang.String resourceName, Media content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Name of the media that is being downloaded. See
ReadRequest.resource_name.content - the Mediajava.io.IOExceptionpublic CloudSearch.Media.Upload upload(java.lang.String resourceName, Media content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.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 Media media metadata or null if nonemediaContent - The media HTTP content or null if none.java.io.IOException - if the initialization of the request fails