public final class ContentTypeInfo
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Wallet API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ContentTypeInfo() |
| Modifier and Type | Method and Description |
|---|---|
ContentTypeInfo |
clone() |
String |
getBestGuess()
Scotty's best guess of what the content type of the file is.
|
String |
getFromBytes()
The content type of the file derived by looking at specific bytes (i.e.
|
String |
getFromFileName()
The content type of the file derived from the file extension of the original file name used by
the client.
|
String |
getFromHeader()
The content type of the file as specified in the request headers, multipart headers, or RUPIO
start request.
|
String |
getFromUrlPath()
The content type of the file derived from the file extension of the URL path.
|
ContentTypeInfo |
set(String fieldName,
Object value) |
ContentTypeInfo |
setBestGuess(String bestGuess)
Scotty's best guess of what the content type of the file is.
|
ContentTypeInfo |
setFromBytes(String fromBytes)
The content type of the file derived by looking at specific bytes (i.e.
|
ContentTypeInfo |
setFromFileName(String fromFileName)
The content type of the file derived from the file extension of the original file name used by
the client.
|
ContentTypeInfo |
setFromHeader(String fromHeader)
The content type of the file as specified in the request headers, multipart headers, or RUPIO
start request.
|
ContentTypeInfo |
setFromUrlPath(String fromUrlPath)
The content type of the file derived from the file extension of the URL path.
|
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 String getBestGuess()
null for nonepublic ContentTypeInfo setBestGuess(String bestGuess)
bestGuess - bestGuess or null for nonepublic String getFromBytes()
null for nonepublic ContentTypeInfo setFromBytes(String fromBytes)
fromBytes - fromBytes or null for nonepublic String getFromFileName()
null for nonepublic ContentTypeInfo setFromFileName(String fromFileName)
fromFileName - fromFileName or null for nonepublic String getFromHeader()
null for nonepublic ContentTypeInfo setFromHeader(String fromHeader)
fromHeader - fromHeader or null for nonepublic String getFromUrlPath()
null for nonepublic ContentTypeInfo setFromUrlPath(String fromUrlPath)
fromUrlPath - fromUrlPath or null for nonepublic ContentTypeInfo set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic ContentTypeInfo clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.