public final class TextElement
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 Slides 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 |
---|
TextElement() |
Modifier and Type | Method and Description |
---|---|
TextElement |
clone() |
AutoText |
getAutoText()
A TextElement representing a spot in the text that is dynamically replaced with content that
can change over time.
|
java.lang.Integer |
getEndIndex()
The zero-based end index of this text element, exclusive, in Unicode code units.
|
ParagraphMarker |
getParagraphMarker()
A marker representing the beginning of a new paragraph.
|
java.lang.Integer |
getStartIndex()
The zero-based start index of this text element, in Unicode code units.
|
TextRun |
getTextRun()
A TextElement representing a run of text where all of the characters in the run have the same
TextStyle.
|
TextElement |
set(java.lang.String fieldName,
java.lang.Object value) |
TextElement |
setAutoText(AutoText autoText)
A TextElement representing a spot in the text that is dynamically replaced with content that
can change over time.
|
TextElement |
setEndIndex(java.lang.Integer endIndex)
The zero-based end index of this text element, exclusive, in Unicode code units.
|
TextElement |
setParagraphMarker(ParagraphMarker paragraphMarker)
A marker representing the beginning of a new paragraph.
|
TextElement |
setStartIndex(java.lang.Integer startIndex)
The zero-based start index of this text element, in Unicode code units.
|
TextElement |
setTextRun(TextRun textRun)
A TextElement representing a run of text where all of the characters in the run have the same
TextStyle.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public AutoText getAutoText()
null
for nonepublic TextElement setAutoText(AutoText autoText)
autoText
- autoText or null
for nonepublic java.lang.Integer getEndIndex()
null
for nonepublic TextElement setEndIndex(java.lang.Integer endIndex)
endIndex
- endIndex or null
for nonepublic ParagraphMarker getParagraphMarker()
null
for nonepublic TextElement setParagraphMarker(ParagraphMarker paragraphMarker)
paragraphMarker
- paragraphMarker or null
for nonepublic java.lang.Integer getStartIndex()
null
for nonepublic TextElement setStartIndex(java.lang.Integer startIndex)
startIndex
- startIndex or null
for nonepublic TextRun getTextRun()
null
for nonepublic TextElement setTextRun(TextRun textRun)
textRun
- textRun or null
for nonepublic TextElement set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TextElement clone()
clone
in class com.google.api.client.json.GenericJson