public static final class RestMethod.MediaUpload extends GenericJson
| Modifier and Type | Class and Description |
|---|---|
static class |
RestMethod.MediaUpload.Protocols
Supported upload protocols.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MediaUpload() |
| Modifier and Type | Method and Description |
|---|---|
RestMethod.MediaUpload |
clone() |
List<String> |
getAccept()
MIME Media Ranges for acceptable media uploads to this method.
|
String |
getMaxSize()
Maximum size of a media upload, such as "1MB", "2GB" or "3TB".
|
RestMethod.MediaUpload.Protocols |
getProtocols()
Supported upload protocols.
|
RestMethod.MediaUpload |
set(String fieldName,
Object value) |
RestMethod.MediaUpload |
setAccept(List<String> accept)
MIME Media Ranges for acceptable media uploads to this method.
|
RestMethod.MediaUpload |
setMaxSize(String maxSize)
Maximum size of a media upload, such as "1MB", "2GB" or "3TB".
|
RestMethod.MediaUpload |
setProtocols(RestMethod.MediaUpload.Protocols protocols)
Supported upload protocols.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<String> getAccept()
null for nonepublic RestMethod.MediaUpload setAccept(List<String> accept)
accept - accept or null for nonepublic String getMaxSize()
null for nonepublic RestMethod.MediaUpload setMaxSize(String maxSize)
maxSize - maxSize or null for nonepublic RestMethod.MediaUpload.Protocols getProtocols()
null for nonepublic RestMethod.MediaUpload setProtocols(RestMethod.MediaUpload.Protocols protocols)
protocols - protocols or null for nonepublic RestMethod.MediaUpload set(String fieldName, Object value)
set in class GenericJsonpublic RestMethod.MediaUpload clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.