Class MediaResource
The "media" collection of methods.
Inherited Members
Namespace: Google.Apis.DeepReview.v1
Assembly: Google.Apis.DeepReview.v1.dll
Syntax
public class MediaResource
Constructors
MediaResource(IClientService)
Constructs a new resource.
Declaration
public MediaResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Download(string)
Downloads the original document content (PDF binary) via Scotty media streaming (AIP-136 custom method).
Declaration
public virtual MediaResource.DownloadRequest Download(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the document to download. Format: |
Returns
| Type | Description |
|---|---|
| MediaResource.DownloadRequest |
Upload(Document)
Creates a new Document resource and ingests the manuscript via Scotty or Google Drive.
Declaration
public virtual MediaResource.UploadRequest Upload(Document body)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| MediaResource.UploadRequest |
Upload(Document, Stream, string)
Creates a new Document resource and ingests the manuscript via Scotty or Google Drive.
Declaration
public virtual MediaResource.UploadMediaUpload Upload(Document body, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | body | The body of the request. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| MediaResource.UploadMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream