Class UploadMediaItemRequest
- java.lang.Object
-
- com.google.photos.library.v1.upload.UploadMediaItemRequest
-
public final class UploadMediaItemRequest extends java.lang.Object
Represents an upload request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UploadMediaItemRequest.Builder
Builder forUploadMediaItemRequest
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChunkSize()
Returns the chunk size where the file will be split.java.util.Optional<java.lang.String>
getFileName()
Returns the file name to be uploaded.long
getFileSize()
Returns the total size of the file.java.util.Optional<java.lang.String>
getMimeType()
Returns the mime type for the file to be uploaded.java.util.Optional<java.lang.String>
getUploadUrl()
Returns the url where this file will be uploaded.static UploadMediaItemRequest.Builder
newBuilder()
-
-
-
Method Detail
-
getFileName
public java.util.Optional<java.lang.String> getFileName()
Returns the file name to be uploaded.
-
getMimeType
public java.util.Optional<java.lang.String> getMimeType()
Returns the mime type for the file to be uploaded.
-
getUploadUrl
public java.util.Optional<java.lang.String> getUploadUrl()
Returns the url where this file will be uploaded.
-
getChunkSize
public int getChunkSize()
Returns the chunk size where the file will be split.
-
getFileSize
public long getFileSize() throws java.io.IOException
Returns the total size of the file.- Throws:
java.io.IOException
-
newBuilder
public static UploadMediaItemRequest.Builder newBuilder()
-
-