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() |
byte[] |
decodeFusionIdDetectionMetadata()
Metadata information from Fusion ID detection.
|
ContentTypeInfo |
encodeFusionIdDetectionMetadata(byte[] fusionIdDetectionMetadata)
Metadata information from Fusion ID detection.
|
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 |
getFromFusionId()
The content type of the file detected by Fusion ID.
|
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.
|
String |
getFusionIdDetectionMetadata()
Metadata information from Fusion ID detection.
|
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 |
setFromFusionId(String fromFusionId)
The content type of the file detected by Fusion ID.
|
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.
|
ContentTypeInfo |
setFusionIdDetectionMetadata(String fusionIdDetectionMetadata)
Metadata information from Fusion ID detection.
|
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 getFromFusionId()
null for nonepublic ContentTypeInfo setFromFusionId(String fromFusionId)
fromFusionId - fromFusionId 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 String getFusionIdDetectionMetadata()
null for nonedecodeFusionIdDetectionMetadata()public byte[] decodeFusionIdDetectionMetadata()
null for nonegetFusionIdDetectionMetadata()public ContentTypeInfo setFusionIdDetectionMetadata(String fusionIdDetectionMetadata)
fusionIdDetectionMetadata - fusionIdDetectionMetadata or null for none#encodeFusionIdDetectionMetadata()public ContentTypeInfo encodeFusionIdDetectionMetadata(byte[] fusionIdDetectionMetadata)
The value is encoded Base64 or {@code null} for none.
public 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–2026 Google. All rights reserved.