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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
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.
|
String |
getFilename()
The filename of the attachment.
|
List<MessagePartHeader> |
getHeaders()
List of headers on this message part.
|
String |
getMimeType()
The MIME type of the message part.
|
String |
getPartId()
The immutable ID of the message part.
|
List<MessagePart> |
getParts()
The child MIME message parts of this part.
|
MessagePart |
set(String fieldName,
Object value) |
MessagePart |
setBody(MessagePartBody body)
The message part body for this part, which may be empty for container MIME message parts.
|
MessagePart |
setFilename(String filename)
The filename of the attachment.
|
MessagePart |
setHeaders(List<MessagePartHeader> headers)
List of headers on this message part.
|
MessagePart |
setMimeType(String mimeType)
The MIME type of the message part.
|
MessagePart |
setPartId(String partId)
The immutable ID of the message part.
|
MessagePart |
setParts(List<MessagePart> parts)
The child MIME message parts of this part.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public MessagePartBody getBody()
null
for nonepublic MessagePart setBody(MessagePartBody body)
body
- body or null
for nonepublic String getFilename()
null
for nonepublic MessagePart setFilename(String filename)
filename
- filename or null
for nonepublic List<MessagePartHeader> getHeaders()
null
for nonepublic MessagePart setHeaders(List<MessagePartHeader> headers)
headers
- headers or null
for nonepublic String getMimeType()
null
for nonepublic MessagePart setMimeType(String mimeType)
mimeType
- mimeType or null
for nonepublic String getPartId()
null
for nonepublic MessagePart setPartId(String partId)
partId
- partId or null
for nonepublic List<MessagePart> getParts()
null
for nonepublic MessagePart setParts(List<MessagePart> parts)
parts
- parts or null
for nonepublic MessagePart set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public MessagePart clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.