public class HangoutsChat.Media extends Object
Modifier and Type | Class and Description |
---|---|
class |
HangoutsChat.Media.Download |
class |
HangoutsChat.Media.Upload |
Constructor and Description |
---|
Media() |
Modifier and Type | Method and Description |
---|---|
HangoutsChat.Media.Download |
download(String resourceName)
Downloads media.
|
HangoutsChat.Media.Upload |
upload(String parent,
UploadAttachmentRequest content)
Uploads an attachment.
|
HangoutsChat.Media.Upload |
upload(String parent,
UploadAttachmentRequest content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Uploads an attachment.
|
public HangoutsChat.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.IOException
public HangoutsChat.Media.Upload upload(String parent, UploadAttachmentRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. Resource name of the Chat space in which the attachment is uploaded. Format
"spaces/{space}".content
- the UploadAttachmentRequest
IOException
public HangoutsChat.Media.Upload upload(String parent, UploadAttachmentRequest 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.
parent
- Required. Resource name of the Chat space in which the attachment is uploaded. Format
"spaces/{space}".content
- the UploadAttachmentRequest
media metadata or null
if nonemediaContent
- The media HTTP content.IOException
- if the initialization of the request failsCopyright © 2011–2024 Google. All rights reserved.