Class GdataContentTypeInfo
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.GdataContentTypeInfo
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class GdataContentTypeInfo extends com.google.api.client.json.GenericJsonDetailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.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 RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Constructor Description GdataContentTypeInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdataContentTypeInfoclone()java.lang.StringgetBestGuess()Scotty's best guess of what the content type of the file is.java.lang.StringgetFromBytes()The content type of the file derived by looking at specific bytes (i.e.java.lang.StringgetFromFileName()The content type of the file derived from the file extension of the original file name used by the client.java.lang.StringgetFromHeader()The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.java.lang.StringgetFromUrlPath()The content type of the file derived from the file extension of the URL path.GdataContentTypeInfoset(java.lang.String fieldName, java.lang.Object value)GdataContentTypeInfosetBestGuess(java.lang.String bestGuess)Scotty's best guess of what the content type of the file is.GdataContentTypeInfosetFromBytes(java.lang.String fromBytes)The content type of the file derived by looking at specific bytes (i.e.GdataContentTypeInfosetFromFileName(java.lang.String fromFileName)The content type of the file derived from the file extension of the original file name used by the client.GdataContentTypeInfosetFromHeader(java.lang.String fromHeader)The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.GdataContentTypeInfosetFromUrlPath(java.lang.String fromUrlPath)The content type of the file derived from the file extension of the URL path.-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Method Detail
-
getBestGuess
public java.lang.String getBestGuess()
Scotty's best guess of what the content type of the file is.- Returns:
- value or
nullfor none
-
setBestGuess
public GdataContentTypeInfo setBestGuess(java.lang.String bestGuess)
Scotty's best guess of what the content type of the file is.- Parameters:
bestGuess- bestGuess ornullfor none
-
getFromBytes
public java.lang.String getFromBytes()
The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.- Returns:
- value or
nullfor none
-
setFromBytes
public GdataContentTypeInfo setFromBytes(java.lang.String fromBytes)
The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.- Parameters:
fromBytes- fromBytes ornullfor none
-
getFromFileName
public java.lang.String getFromFileName()
The content type of the file derived from the file extension of the original file name used by the client.- Returns:
- value or
nullfor none
-
setFromFileName
public GdataContentTypeInfo setFromFileName(java.lang.String fromFileName)
The content type of the file derived from the file extension of the original file name used by the client.- Parameters:
fromFileName- fromFileName ornullfor none
-
getFromHeader
public java.lang.String getFromHeader()
The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.- Returns:
- value or
nullfor none
-
setFromHeader
public GdataContentTypeInfo setFromHeader(java.lang.String fromHeader)
The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.- Parameters:
fromHeader- fromHeader ornullfor none
-
getFromUrlPath
public java.lang.String getFromUrlPath()
The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).- Returns:
- value or
nullfor none
-
setFromUrlPath
public GdataContentTypeInfo setFromUrlPath(java.lang.String fromUrlPath)
The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).- Parameters:
fromUrlPath- fromUrlPath ornullfor none
-
set
public GdataContentTypeInfo set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public GdataContentTypeInfo clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-