public final class MessagePart
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 Gmail 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.Flags| Constructor and Description |
|---|
MessagePart() |
| Modifier and Type | Method and Description |
|---|---|
MessagePart |
clone() |
MessagePartBody |
getBody()
The message part body for this part, which may be empty for container MIME message parts.
|
java.lang.String |
getFilename()
The filename of the attachment.
|
java.util.List<MessagePartHeader> |
getHeaders()
List of headers on this message part.
|
java.lang.String |
getMimeType()
The MIME type of the message part.
|
java.lang.String |
getPartId()
The immutable ID of the message part.
|
java.util.List<MessagePart> |
getParts()
The child MIME message parts of this part.
|
MessagePart |
set(java.lang.String fieldName,
java.lang.Object value) |
MessagePart |
setBody(MessagePartBody body)
The message part body for this part, which may be empty for container MIME message parts.
|
MessagePart |
setFilename(java.lang.String filename)
The filename of the attachment.
|
MessagePart |
setHeaders(java.util.List<MessagePartHeader> headers)
List of headers on this message part.
|
MessagePart |
setMimeType(java.lang.String mimeType)
The MIME type of the message part.
|
MessagePart |
setPartId(java.lang.String partId)
The immutable ID of the message part.
|
MessagePart |
setParts(java.util.List<MessagePart> parts)
The child MIME message parts of this part.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic MessagePartBody getBody()
null for nonepublic MessagePart setBody(MessagePartBody body)
body - body or null for nonepublic java.lang.String getFilename()
null for nonepublic MessagePart setFilename(java.lang.String filename)
filename - filename or null for nonepublic java.util.List<MessagePartHeader> getHeaders()
null for nonepublic MessagePart setHeaders(java.util.List<MessagePartHeader> headers)
headers - headers or null for nonepublic java.lang.String getMimeType()
null for nonepublic MessagePart setMimeType(java.lang.String mimeType)
mimeType - mimeType or null for nonepublic java.lang.String getPartId()
null for nonepublic MessagePart setPartId(java.lang.String partId)
partId - partId or null for nonepublic java.util.List<MessagePart> getParts()
null for nonepublic MessagePart setParts(java.util.List<MessagePart> parts)
parts - parts or null for nonepublic MessagePart set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic MessagePart clone()
clone in class com.google.api.client.json.GenericJson