- Ресурс: Документ
- Вкладка
- TabProperties
- DocumentTab
- Тело
- StructuralElement
- Абзац
- ЭлементПараграфа
- TextRun
- TextStyle
- Дополнительный цвет
- Цвет
- RgbColor
- Измерение
- Единица
- WeightedFontFamily
- Смещение базовой линии
- Связь
- ЗакладкаСсылка
- ЗаголовокСсылка
- ПредложенныйТекстСтиль
- TextStyleSuggestionState
- Автотекст
- Тип
- PageBreak
- ColumnBreak
- СноскаСсылка
- Горизонтальное правило
- Уравнение
- InlineObjectElement
- Человек
- PersonProperties
- RichLink
- RichLinkProperties
- Стиль абзаца
- NamedStyleType
- Выравнивание
- ContentDirection
- SpacingMode
- Граница абзаца
- DashStyle
- TabStop
- TabStopAlignment
- Затенение
- Предложенныйстильабзаца
- ParagraphStyleSuggestionState
- ShadingSuggestionState
- Пуля
- SuggestedBullet
- BulletSuggestionState
- ObjectReferences
- РазделBreak
- SectionStyle
- РазделСвойстваКолонки
- СтильРазделителяКолонок
- SectionType
- Стол
- TableRow
- TableCell
- TableCellStyle
- TableCellBorder
- Выравнивание содержимого
- SuggestedTableCellStyle
- TableCellStyleSuggestionState
- TableRowStyle
- SuggestedTableRowStyle
- TableRowStyleSuggestionState
- TableStyle
- TableColumnProperties
- ТипШирины
- Оглавление
- Заголовок
- Нижний колонтитул
- Сноска
- DocumentStyle
- Фон
- Размер
- DocumentFormat
- DocumentMode
- Предложенныйстильдокумента
- DocumentStyleSuggestionState
- BackgroundSuggestionState
- РазмерПредложениеСостояние
- Именованные стили
- NamedStyle
- ПредложенныеИменованныеСтили
- NamedStylesSuggestionState
- NamedStyleSuggestionState
- Список
- ListProperties
- Уровень вложенности
- BulletAlignment
- GlyphType
- SuggestedListProperties
- ListPropertiesSuggestionState
- NestingLevelSuggestionState
- Именованныедиапазоны
- ИменованныйДиапазон
- Диапазон
- InlineObject
- InlineObjectProperties
- Встроенный объект
- EmbeddedDrawingProperties
- Свойства изображения
- CropProperties
- EmbeddedObjectBorder
- PropertyState
- LinkedContentReference
- SheetsChartReference
- ПредложенныеСвойстваВстроенногоОбъекта
- InlineObjectPropertiesSuggestionState
- EmbeddedObjectSuggestionState
- ВстроенныеСвойстваРисункаСостояниеПредложения
- ImagePropertiesSuggestionState
- CropPropertiesSuggestionState
- EmbeddedObjectBorderSuggestionState
- LinkedContentReferenceSuggestionState
- ЛистыДиаграммаСсылкаПредложениеСостояние
- PositionedObject
- PositionedObjectProperties
- PositionedObjectPositioning
- PositionedObjectLayout
- ПредложенныеПозиционированныеСвойстваОбъекта
- PositionedObjectPropertiesSuggestionState
- PositionedObjectPositioningSuggestionState
- ПредложенияРежим просмотра
- Методы
Ресурс: Документ
Документ Google Docs.
JSON-представление |
---|
{ "documentId": string, "title": string, "tabs": [ { object ( |
Поля | |
---|---|
documentId | Только вывод. Идентификатор документа. |
title | Название документа. |
tabs[] | Вкладки, являющиеся частью документа. Вкладки могут содержать дочерние вкладки, то есть вкладки, вложенные в другие вкладки. Дочерние вкладки представлены полем |
revisionId | Только вывод. Идентификатор версии документа. Может использоваться в запросах на обновление, чтобы указать, к какой версии документа следует применить обновления и как должен реагировать запрос, если документ был отредактирован после этой версии. Заполняется только в том случае, если у пользователя есть права на редактирование документа. Идентификатор ревизии — это не последовательный номер, а непрозрачная строка. Формат идентификатора ревизии может меняться со временем. Возвращённый идентификатор ревизии гарантированно действителен только в течение 24 часов после возврата и не может быть передан другим пользователям. Если идентификатор ревизии не изменился между вызовами, то документ не изменился. И наоборот, изменённый идентификатор (для того же документа и пользователя) обычно означает, что документ был обновлён. Однако изменение идентификатора может быть вызвано и внутренними факторами, такими как изменение формата идентификатора. |
suggestionsViewMode | Только вывод. К документу применен режим просмотра предложений. Примечание: при редактировании документа изменения должны основываться на документе с |
body | Только вывод. Основная часть документа. Устаревшее поле: вместо него используйте |
headers | Только вывод. Заголовки документа, упорядоченные по идентификатору заголовка. Устаревшее поле: вместо него используйте |
footers | Только вывод. Нижние колонтитулы в документе, определяемые по идентификатору нижнего колонтитула. Устаревшее поле: вместо него используйте |
footnotes | Только вывод. Сноски в документе, отсортированные по идентификатору сноски. Устаревшее поле: вместо него используйте |
documentStyle | Только вывод. Стиль документа. Устаревшее поле: вместо него используйте |
suggestedDocumentStyleChanges | Только вывод. Предлагаемые изменения стиля документа, определяемые идентификатором предложения. Устаревшее поле: вместо него используйте |
namedStyles | Только вывод. Именованные стили документа. Устаревшее поле: вместо него используйте |
suggestedNamedStylesChanges | Только вывод. Предлагаемые изменения в именованных стилях документа, определяемые по идентификатору предложения. Устаревшее поле: вместо него используйте |
lists | Только вывод. Списки в документе, упорядоченные по идентификатору списка. Устаревшее поле: вместо него используйте |
namedRanges | Только вывод. Именованные диапазоны в документе, ключи по имени. Устаревшее поле: вместо него используйте |
inlineObjects | Только вывод. Встроенные объекты в документе, ключ к которым — идентификатор объекта. Устаревшее поле: вместо него используйте |
positionedObjects | Только вывод. Позиционированные объекты в документе, определяемые по идентификатору объекта. Устаревшее поле: вместо него используйте |
Вкладка
Вкладка в документе.
JSON-представление |
---|
{ "tabProperties": { object ( |
Поля | |
---|---|
tabProperties | Свойства вкладки, такие как идентификатор и заголовок. |
childTabs[] | Дочерние вкладки, вложенные в данную вкладку. |
content поля объединения. content вкладки может быть только одним из следующих: | |
documentTab | Вкладка с содержимым документа, таким как текст и изображения. |
TabProperties
Свойства вкладки.
JSON-представление |
---|
{ "tabId": string, "title": string, "parentTabId": string, "index": integer, "nestingLevel": integer } |
Поля | |
---|---|
tabId | Только вывод. Идентификатор вкладки. Это поле нельзя изменить. |
title | Видимое пользователю название вкладки. |
parentTabId | Необязательный. Идентификатор родительской вкладки. Пустой, если текущая вкладка является корневой, то есть у неё нет родительских вкладок. |
index | Нулевой индекс вкладки внутри родительской вкладки. |
nestingLevel | Только вывод. Глубина вкладки в документе. Вкладки корневого уровня начинаются с 0. |
DocumentTab
Вкладка с содержимым документа.
JSON-представление |
---|
{ "body": { object ( |
Поля | |
---|---|
body | Основная часть вкладки документа. |
headers | Заголовки на вкладке документа, отсортированные по идентификатору заголовка. |
footers | Нижние колонтитулы на вкладке документа, определяемые идентификатором нижнего колонтитула. |
footnotes | Сноски во вкладке документа, отсортированные по идентификатору сноски. |
documentStyle | Стиль вкладки документа. |
suggestedDocumentStyleChanges | Предлагаемые изменения стиля вкладки документа, определяемые идентификатором предложения. |
namedStyles | Именованные стили вкладки документа. |
suggestedNamedStylesChanges | Предлагаемые изменения именованных стилей вкладки документа, определяемые идентификатором предложения. |
lists | Списки на вкладке документа, отсортированные по идентификатору списка. |
namedRanges | Именованные диапазоны на вкладке документа, упорядоченные по имени. |
inlineObjects | Встроенные объекты на вкладке документа, ключ к которым — идентификатор объекта. |
positionedObjects | Размещенные объекты на вкладке документа, обозначенные идентификатором объекта. |
Тело
Текст документа.
Тело обычно содержит все содержимое документа, за исключением headers
и footers
и footnotes
.
JSON-представление |
---|
{
"content": [
{
object ( |
Поля | |
---|---|
content[] | Содержимое тела. Индексы содержания тела начинаются с нуля. |
StructuralElement
Структурный элемент описывает содержимое, обеспечивающее структуру документа.
JSON-представление |
---|
{ "startIndex": integer, "endIndex": integer, // Union field |
Поля | |
---|---|
startIndex | Начальный индекс данного структурного элемента (начиная с нуля) в кодовых единицах UTF-16. |
endIndex | Конечный индекс данного структурного элемента (исключая нулевой) в кодовых единицах UTF-16. |
content поля объединения. Содержимое структурного элемента. content может быть только одним из следующих: | |
paragraph | Тип структурного элемента — абзац. |
sectionBreak | Тип структурного элемента — разрыв сечения. |
table | Тип структурного элемента — стол. |
tableOfContents | Тип оглавления структурного элемента. |
Абзац
StructuralElement
представляющий абзац. Абзац — это фрагмент текста, завершающийся символом новой строки.
JSON-представление |
---|
{ "elements": [ { object ( |
Поля | |
---|---|
elements[] | Содержание абзаца, разбитое на составные части. |
paragraphStyle | Стиль этого абзаца. |
suggestedParagraphStyleChanges | Предлагаемый стиль абзаца изменяется на этот абзац в соответствии с идентификатором предложения. |
bullet | Маркер для этого абзаца. Если отсутствует, абзац не принадлежит списку. |
suggestedBulletChanges | Предлагаемые изменения в маркированном списке этого параграфа. |
positionedObjectIds[] | Идентификаторы позиционируемых объектов, привязанных к этому абзацу. |
suggestedPositionedObjectIds | Идентификаторы позиционируемых объектов, предлагаемых для присоединения к данному абзацу, определяемые по идентификатору предложения. |
ЭлементПараграфа
Элемент ParagraphElement описывает содержимое Paragraph
.
JSON-представление |
---|
{ "startIndex": integer, "endIndex": integer, // Union field |
Поля | |
---|---|
startIndex | Начальный индекс этого элемента абзаца (начиная с нуля) в кодовых единицах UTF-16. |
endIndex | Нулевой конечный индекс этого элемента абзаца (исключая его) в кодовых единицах UTF-16. |
content поля объединения. Содержимое элемента абзаца. content может быть только одним из следующих: | |
textRun | Элемент абзаца текстовой строки. |
autoText | Элемент абзаца автоматического текста. |
pageBreak | Элемент абзаца разрыва страницы. |
columnBreak | Элемент абзаца разрыва столбца. |
footnoteReference | Элемент абзаца ссылки на сноску. |
horizontalRule | Элемент абзаца горизонтальной линии. |
equation | Элемент абзаца уравнения. |
inlineObjectElement | Элемент абзаца встроенного объекта. |
person | Элемент абзаца, ссылающийся на человека или адрес электронной почты. |
richLink | Элемент абзаца, ссылающийся на ресурс Google (например, файл на Google Диске, видео YouTube или событие в календаре). |
TextRun
ParagraphElement
, представляющий собой фрагмент текста, имеющий одинаковый стиль.
JSON-представление |
---|
{ "content": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
content | Текст этого выпуска. Любые нетекстовые элементы в строке заменяются символом Unicode U+E907. |
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. У |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого выпуска. |
suggestedTextStyleChanges | Предлагаемый стиль текста изменяется в соответствии с этим запуском, определяемым идентификатором предложения. |
TextStyle
Представляет стиль, который можно применить к тексту.
Унаследованные стили текста представлены в этом сообщении как неустановленные поля. Родительский элемент стиля текста зависит от того, где он определен:
- TextStyle текста в
Paragraph
наследуется от соответствующегоnamed style type
абзаца. - TextStyle
named style
наследуется отnormal text
именованного стиля. - TextStyle
normal text
с именем style наследует стиль текста по умолчанию в редакторе Docs. - TextStyle элемента
Paragraph
, содержащегося в таблице, может наследовать свой стиль текста от стиля таблицы.
Если стиль текста не наследуется от родителя, то при отмене установки полей стиль будет возвращен к значению, соответствующему значениям по умолчанию в редакторе документов.
JSON-представление |
---|
{ "bold": boolean, "italic": boolean, "underline": boolean, "strikethrough": boolean, "smallCaps": boolean, "backgroundColor": { object ( |
Поля | |
---|---|
bold | Выделяется ли текст жирным шрифтом. |
italic | Выделен ли текст курсивом. |
underline | Подчеркнут текст или нет. |
strikethrough | Зачеркнут текст или нет. |
smallCaps | Независимо от того, написан ли текст строчными заглавными буквами. |
backgroundColor | Цвет фона текста. Если задан, цвет может быть RGB-цветом или прозрачным, в зависимости от поля |
foregroundColor | Цвет переднего плана текста. Если задано, цвет может быть либо RGB-цветом, либо прозрачным, в зависимости от поля |
fontSize | Размер шрифта текста. |
weightedFontFamily | Семейство шрифтов и насыщенность текста. Если запрос на обновление указывает значения как Если Если задано |
baselineOffset | Вертикальное смещение текста относительно его обычного положения. Текст с |
link | Гиперссылка, на которую ссылается текст. Если не задано, ссылки нет. Ссылки не наследуются из родительского текста. Изменение ссылки в запросе на обновление приводит к некоторым другим изменениям стиля текста диапазона:
|
Дополнительный цвет
Цвет, который может быть либо полностью непрозрачным, либо полностью прозрачным.
JSON-представление |
---|
{
"color": {
object ( |
Поля | |
---|---|
color | Если задано, цвет будет непрозрачным. Если не задано, цвет будет прозрачным. |
Цвет
Сплошной цвет.
JSON-представление |
---|
{
"rgbColor": {
object ( |
Поля | |
---|---|
rgbColor | Значение цвета RGB. |
RgbColor
Цвет RGB.
JSON-представление |
---|
{ "red": number, "green": number, "blue": number } |
Поля | |
---|---|
red | Красная составляющая цвета, от 0,0 до 1,0. |
green | Зелёная составляющая цвета, от 0,0 до 1,0. |
blue | Синяя составляющая цвета, от 0,0 до 1,0. |
Измерение
Величина в одном направлении в указанных единицах.
JSON-представление |
---|
{
"magnitude": number,
"unit": enum ( |
Поля | |
---|---|
magnitude | Величина. |
unit | Единицы измерения величины. |
Единица
Единицы измерения.
Перечисления | |
---|---|
UNIT_UNSPECIFIED | Единицы измерения неизвестны. |
PT | Точка, 1/72 дюйма. |
WeightedFontFamily
Представляет семейство шрифтов и насыщенность текста.
JSON-представление |
---|
{ "fontFamily": string, "weight": integer } |
Поля | |
---|---|
fontFamily | Семейство шрифтов текста. Семейство шрифтов может быть любым из меню «Шрифт» в Документах или из Google Fonts . Если название шрифта не распознано, текст отображается |
weight | Насыщенность шрифта. Это поле может иметь любое значение, кратное Значение по умолчанию — Насыщенность шрифта — лишь один из компонентов насыщенности визуализированного шрифта. Сочетание
|
Смещение базовой линии
Способы смещения текста по вертикали относительно его обычного положения.
Перечисления | |
---|---|
BASELINE_OFFSET_UNSPECIFIED | Смещение базовой линии текста наследуется от родителя. |
NONE | Текст не смещен по вертикали. |
SUPERSCRIPT | Текст смещен по вертикали вверх (надстрочный). |
SUBSCRIPT | Текст смещен по вертикали вниз (подстрочный индекс). |
Связь
Ссылка на другую часть документа или внешний URL-ресурс.
JSON-представление |
---|
{ // Union field |
Поля | |
---|---|
Поле объединения destination . Назначение ссылки. destination может быть только одним из следующих: | |
url | Внешний URL-адрес. |
tabId | Идентификатор вкладки в этом документе. |
bookmark | Закладка в этом документе. В документах, содержащих одну вкладку, ссылки на закладки внутри этой вкладки продолжают возвращать |
heading | Заголовок в этом документе. В документах, содержащих одну вкладку, ссылки на заголовки внутри этой вкладки продолжают возвращать |
bookmarkId | Идентификатор закладки в этом документе. Устаревшее поле: вместо этого установите Если это поле используется в запросе на запись, считается, что закладка относится к вкладке с идентификатором, указанным в запросе. Если идентификатор вкладки в запросе не указан, считается, что закладка относится к первой вкладке документа. |
headingId | Идентификатор заголовка в этом документе. Устаревшее поле: вместо этого установите Если это поле используется в запросе на запись, заголовок считается взятым из вкладки с идентификатором, указанным в запросе. Если идентификатор вкладки в запросе не указан, заголовок считается взятым из первой вкладки документа. |
ЗакладкаСсылка
Ссылка на закладку в этом документе.
JSON-представление |
---|
{ "id": string, "tabId": string } |
Поля | |
---|---|
id | Идентификатор закладки в этом документе. |
tabId | Идентификатор вкладки, содержащей эту закладку. |
ЗаголовокСсылка
Ссылка на заголовок в этом документе.
JSON-представление |
---|
{ "id": string, "tabId": string } |
Поля | |
---|---|
id | Идентификатор заголовка в этом документе. |
tabId | Идентификатор вкладки, содержащей этот заголовок. |
ПредложенныйТекстСтиль
Предлагаемое изменение TextStyle
.
JSON-представление |
---|
{ "textStyle": { object ( |
Поля | |
---|---|
textStyle | |
textStyleSuggestionState | Маска, указывающая, какие поля базового |
TextStyleSuggestionState
Маска, указывающая, какие поля базового TextStyle
были изменены в этом предложении. Для любого поля, для которого задано значение true, предлагается новое предлагаемое значение.
JSON-представление |
---|
{ "boldSuggested": boolean, "italicSuggested": boolean, "underlineSuggested": boolean, "strikethroughSuggested": boolean, "smallCapsSuggested": boolean, "backgroundColorSuggested": boolean, "foregroundColorSuggested": boolean, "fontSizeSuggested": boolean, "weightedFontFamilySuggested": boolean, "baselineOffsetSuggested": boolean, "linkSuggested": boolean } |
Поля | |
---|---|
boldSuggested | Указывает, предлагалось ли изменить начертание |
italicSuggested | Указывает, предлагалось ли изменить начертание на |
underlineSuggested | Указывает, было ли предложено изменение для |
strikethroughSuggested | Указывает, было ли предложено изменить |
smallCapsSuggested | Указывает, было ли предложено изменить |
backgroundColorSuggested | Указывает, было ли предложено изменить |
foregroundColorSuggested | Указывает, было ли предложено изменить |
fontSizeSuggested | Указывает, было ли предложено изменить |
weightedFontFamilySuggested | Указывает, было ли предложено изменение |
baselineOffsetSuggested | Указывает, было ли предложено изменить |
linkSuggested | Указывает, было ли предложено изменение |
Автотекст
Элемент ParagraphElement
, представляющий место в тексте, которое динамически заменяется содержимым, которое может меняться со временем, например номером страницы.
JSON-представление |
---|
{ "type": enum ( |
Поля | |
---|---|
type | Тип этого автотекста. |
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого автотекста. |
suggestedTextStyleChanges | Предлагаемый стиль текста меняется на этот автотекст, определяемый идентификатором предложения. |
Тип
Типы автотекста.
Перечисления | |
---|---|
TYPE_UNSPECIFIED | Неуказанный тип автотекста. |
PAGE_NUMBER | Введите автоматический текст, представляющий номер текущей страницы. |
PAGE_COUNT | Введите автоматический текст, представляющий общее количество страниц в документе. |
PageBreak
ParagraphElement
, представляющий собой разрыв страницы. Разрыв страницы позволяет начать последующий текст с начала следующей страницы.
JSON-представление |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого PageBreak. Подобно текстовому содержимому, такому как текстовые блоки и сноски, стиль текста разрыва страницы может влиять на структуру содержимого, а также на стиль текста, вставленного рядом с ним. |
suggestedTextStyleChanges | Предлагаемый стиль текста изменяется на этот PageBreak, определяемый идентификатором предложения. |
ColumnBreak
ParagraphElement
представляющий разрыв столбца. Разрыв столбца заставляет последующий текст начинаться с начала следующего столбца.
JSON-представление |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого ColumnBreak. Подобно текстовому содержимому, такому как текстовые строки и сноски, стиль текста разрыва колонки может влиять на компоновку содержимого, а также на стиль текста, вставленного рядом с ним. |
suggestedTextStyleChanges | Предлагаемый стиль текста меняется на этот ColumnBreak, определяемый идентификатором предложения. |
СноскаСсылка
ParagraphElement
, представляющий ссылку на сноску. Ссылка на сноску — это встроенное содержимое, отображаемое с помощью номера и используемое для идентификации сноски.
JSON-представление |
---|
{ "footnoteId": string, "footnoteNumber": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
footnoteId | Идентификатор |
footnoteNumber | Отображенный номер этой сноски. |
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этой сноски. |
suggestedTextStyleChanges | Предлагаемый стиль текста изменяется на FootnoteReference, определяемый идентификатором предложения. |
Горизонтальное правило
ParagraphElement
представляющий горизонтальную линию.
JSON-представление |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого горизонтального правила. Подобно текстовому содержимому, такому как текстовые блоки и сноски, стиль текста горизонтальной линии может влиять на компоновку содержимого, а также на стиль текста, вставленного рядом с ней. |
suggestedTextStyleChanges | Предлагаемый стиль текста изменяется на это HorizontalRule, определяемое идентификатором предложения. |
Уравнение
ParagraphElement
представляющий уравнение.
JSON-представление |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ] } |
Поля | |
---|---|
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
InlineObjectElement
ParagraphElement
, содержащий InlineObject
.
JSON-представление |
---|
{ "inlineObjectId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
inlineObjectId | Идентификатор |
suggestedInsertionIds[] | Предлагаемые идентификаторы вставки. Элемент |
suggestedDeletionIds[] | Идентификаторы предлагаемых к удалению элементов. Если пусто, то для этого контента нет рекомендуемых к удалению элементов. |
textStyle | Стиль текста этого InlineObjectElement. Подобно текстовому содержимому, такому как текстовые блоки и сноски, стиль текста элемента встроенного объекта может влиять на компоновку содержимого, а также на стиль текста, вставленного рядом с ним. |
suggestedTextStyleChanges | Предлагаемый стиль текста изменяется на этот InlineObject, определяемый идентификатором предложения. |
Человек
Лицо или адрес электронной почты, упомянутые в документе. Эти упоминания рассматриваются как единый неизменяемый элемент, содержащий имя или адрес электронной почты лица.
JSON-представление |
---|
{ "personId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
personId | Только вывод. Уникальный идентификатор этой ссылки. |
suggestedInsertionIds[] | Идентификаторы для предложений, которые вставляют ссылку на этого человека в документ. У |
suggestedDeletionIds[] | Идентификаторы для предложений по удалению ссылки на этого человека из документа. У |
textStyle | Стиль текста этого |
suggestedTextStyleChanges | Предлагаемый стиль текста меняется на «Этот |
personProperties | Только вывод. Свойства данного |
PersonProperties
Свойства, специфичные для связанного Person
.
JSON-представление |
---|
{ "name": string, "email": string } |
Поля | |
---|---|
name | Имя человека, если оно отображается в тексте ссылки вместо адреса электронной почты человека. |
email | Адрес электронной почты, связанный с этим |
RichLink
Ссылка на ресурс Google (например, файл на Диске, видео на YouTube или событие в Календаре).
JSON-представление |
---|
{ "richLinkId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
Поля | |
---|---|
richLinkId | Только вывод. Идентификатор этой ссылки. |
suggestedInsertionIds[] | Идентификаторы для предложений, которые вставляют эту ссылку в документ. |
suggestedDeletionIds[] | Идентификаторы для предложений по удалению этой ссылки из документа. |
textStyle | Стиль текста этого |
suggestedTextStyleChanges | Предлагаемый стиль текста меняется на |
richLinkProperties | Только вывод. Свойства этого |
RichLinkProperties
Свойства, специфичные для RichLink
.
JSON-представление |
---|
{ "title": string, "uri": string, "mimeType": string } |
Поля | |
---|---|
title | Только вывод. Заголовок |
uri | Только вывод. URI |
mimeType | Только вывод. MIME-тип |
Стиль абзаца
Стили, применяемые ко всему абзацу.
Унаследованные стили абзацев представлены в этом сообщении как неустановленные поля. Родительский элемент стиля абзаца зависит от того, где он определён:
- ParagraphStyle для
Paragraph
наследуетnamed style type
абзаца. - ParagraphStyle
named style
наследует отnormal text
именованного стиля. - ParagraphStyle
normal text
с именем style наследует стиль абзаца по умолчанию в редакторе Docs. - ParagraphStyle элемента
Paragraph
, содержащегося в таблице, может наследовать стиль абзаца от стиля таблицы.
Если стиль абзаца не наследуется от родительского элемента, то при отмене установки полей стиль будет возвращен к значению, соответствующему значениям по умолчанию в редакторе документов.
JSON-представление |
---|
{ "headingId": string, "namedStyleType": enum ( |
Поля | |
---|---|
headingId | Идентификатор заголовка абзаца. Если пусто, то этот абзац не является заголовком. Это свойство доступно только для чтения. |
namedStyleType | Именованный тип стиля абзаца. Поскольку обновление именованного типа стиля влияет на другие свойства в ParagraphStyle, именованный тип стиля применяется до обновления других свойств. |
alignment | Выравнивание текста для этого абзаца. |
lineSpacing | Расстояние между строками в процентах от нормы, где норма принимается равной 100,0. Если не задано, значение наследуется от родительского элемента. |
direction | Направление текста этого абзаца. Если не задано, по умолчанию используется значение |
spacingMode | Режим интервала для абзаца. |
spaceAbove | Количество дополнительного пространства над абзацем. Если не задано, значение наследуется от родительского элемента. |
spaceBelow | Количество дополнительного пространства под абзацем. Если не задано, значение наследуется от родительского элемента. |
borderBetween | Граница между этим абзацем, следующим и предыдущим абзацами. Если не задано, значение наследуется от родительского элемента. Граница между абзацами отображается, когда соседний абзац имеет те же свойства границы и отступа. Границы абзацев не могут быть обновлены частично. При изменении границы абзаца новая граница должна быть указана полностью. |
borderTop | Граница в верхней части этого абзаца. Если не задано, значение наследуется от родительского элемента. Верхняя граница отображается, когда абзац выше имеет другие свойства границы и отступа. Границы абзацев не могут быть обновлены частично. При изменении границы абзаца новая граница должна быть указана полностью. |
borderBottom | Граница внизу этого абзаца. Если не задано, значение наследуется от родительского элемента. Нижняя граница отображается, когда абзац ниже имеет другие свойства границы и отступа. Границы абзацев не могут быть обновлены частично. При изменении границы абзаца новая граница должна быть указана полностью. |
borderLeft | Граница слева от этого абзаца. Если не задано, значение наследуется от родительского элемента. Границы абзацев не могут быть обновлены частично. При изменении границы абзаца новая граница должна быть указана полностью. |
borderRight | Граница справа от этого абзаца. Если не задано, значение наследуется от родительского элемента. Границы абзацев не могут быть обновлены частично. При изменении границы абзаца новая граница должна быть указана полностью. |
indentFirstLine | Величина отступа для первой строки абзаца. Если не задано, значение наследуется от родительского элемента. |
indentStart | Величина отступа для абзаца со стороны, соответствующей началу текста, в зависимости от текущего направления абзаца. Если не задано, значение наследуется от родительского элемента. |
indentEnd | Величина отступа для абзаца со стороны, соответствующей концу текста, в зависимости от текущего направления абзаца. Если не задано, значение наследуется от родительского элемента. |
tabStops[] | Список позиций табуляции для этого абзаца. Список позиций табуляции не наследуется. Это свойство доступно только для чтения. |
keepLinesTogether | Должны ли все строки абзаца располагаться на одной странице или в одном столбце, если это возможно. Если не задано, значение наследуется от родительского элемента. |
keepWithNext | Должна ли хотя бы часть этого абзаца располагаться на той же странице или в той же колонке, что и следующий абзац, если это возможно. Если не задано, значение наследуется от родительского элемента. |
avoidWidowAndOrphan | Следует ли избегать вдов и сирот в абзаце. Если не задано, значение наследуется от родительского элемента. |
shading | Заливка абзаца. Если не задано, значение наследуется от родителя. |
pageBreakBefore | Должен ли текущий абзац всегда начинаться с начала страницы. Если не задано, значение наследуется от родительского элемента. Попытка обновить |
NamedStyleType
Типы именованных стилей.
Перечисления | |
---|---|
NAMED_STYLE_TYPE_UNSPECIFIED | Тип названного стиля не указан. |
NORMAL_TEXT | Обычный текст. |
TITLE | Заголовок. |
SUBTITLE | Подзаголовок. |
HEADING_1 | Заголовок 1. |
HEADING_2 | Заголовок 2. |
HEADING_3 | Заголовок 3. |
HEADING_4 | Заголовок 4. |
HEADING_5 | Заголовок 5. |
HEADING_6 | Заголовок 6. |
Выравнивание
Типы выравнивания текста для абзаца.
Перечисления | |
---|---|
ALIGNMENT_UNSPECIFIED | Выравнивание абзаца наследуется от родителя. |
START | Абзац выравнивается по началу строки. Для текста LTR — по левому краю, в противном случае — по правому краю. |
CENTER | Абзац выравнивается по центру. |
END | Абзац выравнивается по концу строки. Для текста с LTR — по правому краю, в противном случае — по левому краю. |
JUSTIFIED | Абзац обоснован. |
ContentDirection
Направления, по которым может передаваться контент.
Перечисления | |
---|---|
CONTENT_DIRECTION_UNSPECIFIED | Направление содержания не определено. |
LEFT_TO_RIGHT | Содержимое идет слева направо. |
RIGHT_TO_LEFT | Содержимое идет справа налево. |
SpacingMode
Различные режимы интервалов между абзацами.
Перечисления | |
---|---|
SPACING_MODE_UNSPECIFIED | Режим интервала наследуется от родителя. |
NEVER_COLLAPSE | Интервал между абзацами всегда сохраняется. |
COLLAPSE_LISTS | Между элементами списка пропускается межабзацный интервал. |
Граница абзаца
Граница вокруг абзаца.
JSON-представление |
---|
{ "color": { object ( |
Поля | |
---|---|
color | Цвет границы. |
width | Ширина границы. |
padding | Заполнение границы. |
dashStyle | The dash style of the border. |
DashStyle
The kinds of dashes with which linear geometry can be rendered. These values are based on the "ST_PresetLineDashVal" simple type described in section 20.1.10.49 of "Office Open XML File Formats - Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition .
Перечисления | |
---|---|
DASH_STYLE_UNSPECIFIED | Unspecified dash style. |
SOLID | Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style. |
DOT | Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'. |
DASH | Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dash'. |
TabStop
A tab stop within a paragraph.
JSON-представление |
---|
{ "offset": { object ( |
Поля | |
---|---|
offset | The offset between this tab stop and the start margin. |
alignment | The alignment of this tab stop. If unset, the value defaults to |
TabStopAlignment
The alignment of the tab stop.
Перечисления | |
---|---|
TAB_STOP_ALIGNMENT_UNSPECIFIED | The tab stop alignment is unspecified. |
START | The tab stop is aligned to the start of the line. This is the default. |
CENTER | The tab stop is aligned to the center of the line. |
END | The tab stop is aligned to the end of the line. |
Затенение
The shading of a paragraph.
JSON-представление |
---|
{
"backgroundColor": {
object ( |
Поля | |
---|---|
backgroundColor | The background color of this paragraph shading. |
SuggestedParagraphStyle
A suggested change to a ParagraphStyle
.
JSON representation |
---|
{ "paragraphStyle": { object ( |
Поля | |
---|---|
paragraphStyle | A |
paragraphStyleSuggestionState | A mask that indicates which of the fields on the base |
ParagraphStyleSuggestionState
A mask that indicates which of the fields on the base ParagraphStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON-представление |
---|
{
"headingIdSuggested": boolean,
"namedStyleTypeSuggested": boolean,
"alignmentSuggested": boolean,
"lineSpacingSuggested": boolean,
"directionSuggested": boolean,
"spacingModeSuggested": boolean,
"spaceAboveSuggested": boolean,
"spaceBelowSuggested": boolean,
"borderBetweenSuggested": boolean,
"borderTopSuggested": boolean,
"borderBottomSuggested": boolean,
"borderLeftSuggested": boolean,
"borderRightSuggested": boolean,
"indentFirstLineSuggested": boolean,
"indentStartSuggested": boolean,
"indentEndSuggested": boolean,
"keepLinesTogetherSuggested": boolean,
"keepWithNextSuggested": boolean,
"avoidWidowAndOrphanSuggested": boolean,
"shadingSuggestionState": {
object ( |
Поля | |
---|---|
headingIdSuggested | Indicates if there was a suggested change to |
namedStyleTypeSuggested | Indicates if there was a suggested change to |
alignmentSuggested | Indicates if there was a suggested change to |
lineSpacingSuggested | Indicates if there was a suggested change to |
directionSuggested | Indicates if there was a suggested change to |
spacingModeSuggested | Indicates if there was a suggested change to |
spaceAboveSuggested | Indicates if there was a suggested change to |
spaceBelowSuggested | Indicates if there was a suggested change to |
borderBetweenSuggested | Indicates if there was a suggested change to |
borderTopSuggested | Indicates if there was a suggested change to |
borderBottomSuggested | Indicates if there was a suggested change to |
borderLeftSuggested | Indicates if there was a suggested change to |
borderRightSuggested | Indicates if there was a suggested change to |
indentFirstLineSuggested | Indicates if there was a suggested change to |
indentStartSuggested | Indicates if there was a suggested change to |
indentEndSuggested | Indicates if there was a suggested change to |
keepLinesTogetherSuggested | Indicates if there was a suggested change to |
keepWithNextSuggested | Indicates if there was a suggested change to |
avoidWidowAndOrphanSuggested | Indicates if there was a suggested change to |
shadingSuggestionState | A mask that indicates which of the fields in |
pageBreakBeforeSuggested | Indicates if there was a suggested change to |
ShadingSuggestionState
A mask that indicates which of the fields on the base Shading
have been changed in this suggested change. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "backgroundColorSuggested": boolean } |
Поля | |
---|---|
backgroundColorSuggested | Indicates if there was a suggested change to the |
Пуля
Describes the bullet of a paragraph.
JSON representation |
---|
{
"listId": string,
"nestingLevel": integer,
"textStyle": {
object ( |
Поля | |
---|---|
listId | The ID of the list this paragraph belongs to. |
nestingLevel | The nesting level of this paragraph in the list. |
textStyle | The paragraph-specific text style applied to this bullet. |
SuggestedBullet
A suggested change to a Bullet
.
JSON representation |
---|
{ "bullet": { object ( |
Поля | |
---|---|
bullet | A |
bulletSuggestionState | A mask that indicates which of the fields on the base |
BulletSuggestionState
A mask that indicates which of the fields on the base Bullet
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"listIdSuggested": boolean,
"nestingLevelSuggested": boolean,
"textStyleSuggestionState": {
object ( |
Поля | |
---|---|
listIdSuggested | Indicates if there was a suggested change to the |
nestingLevelSuggested | Indicates if there was a suggested change to the |
textStyleSuggestionState | A mask that indicates which of the fields in |
ObjectReferences
A collection of object IDs.
JSON representation |
---|
{ "objectIds": [ string ] } |
Поля | |
---|---|
objectIds[] | The object IDs. |
РазделBreak
A StructuralElement
representing a section break. A section is a range of content that has the same SectionStyle
. A section break represents the start of a new section, and the section style applies to the section after the section break.
The document body always begins with a section break.
JSON representation |
---|
{
"suggestedInsertionIds": [
string
],
"suggestedDeletionIds": [
string
],
"sectionStyle": {
object ( |
Поля | |
---|---|
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
sectionStyle | The style of the section after this section break. |
SectionStyle
The styling that applies to a section.
JSON representation |
---|
{ "columnProperties": [ { object ( |
Поля | |
---|---|
columnProperties[] | The section's columns properties. If empty, the section contains one column with the default properties in the Docs editor. A section can be updated to have no more than 3 columns. When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error. |
columnSeparatorStyle | The style of column separators. This style can be set even when there's one column in the section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
contentDirection | The content direction of this section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginTop | The top page margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginBottom | The bottom page margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginRight | The right page margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginLeft | The left page margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginHeader | The header margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginFooter | The footer margin of the section. If unset, the value defaults to If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
sectionType | Output only. The type of section. |
defaultHeaderId | The ID of the default header. If unset, the value inherits from the previous If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
defaultFooterId | The ID of the default footer. If unset, the value inherits from the previous If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
firstPageHeaderId | The ID of the header used only for the first page of the section. If If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
firstPageFooterId | The ID of the footer used only for the first page of the section. If If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
evenPageHeaderId | The ID of the header used only for even pages. If the value of DocumentStyle's If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
evenPageFooterId | The ID of the footer used only for even pages. If the value of DocumentStyle's If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
useFirstPageHeaderFooter | Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
pageNumberStart | The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
flipPageOrientation | Optional. Indicates whether to flip the dimensions of DocumentStyle's If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
SectionColumnProperties
Properties that apply to a section's column.
JSON-представление |
---|
{ "width": { object ( |
Поля | |
---|---|
width | Output only. The width of the column. |
paddingEnd | The padding at the end of the column. |
ColumnSeparatorStyle
The style of column separators between columns.
Перечисления | |
---|---|
COLUMN_SEPARATOR_STYLE_UNSPECIFIED | An unspecified column separator style. |
NONE | No column separator lines between columns. |
BETWEEN_EACH_COLUMN | Renders a column separator line between each column. |
SectionType
Represents how the start of the current section is positioned relative to the previous section.
Перечисления | |
---|---|
SECTION_TYPE_UNSPECIFIED | The section type is unspecified. |
CONTINUOUS | The section starts immediately after the last paragraph of the previous section. |
NEXT_PAGE | The section starts on the next page. |
Стол
A StructuralElement
representing a table.
JSON representation |
---|
{ "rows": integer, "columns": integer, "tableRows": [ { object ( |
Поля | |
---|---|
rows | Number of rows in the table. |
columns | Количество столбцов в таблице. It's possible for a table to be non-rectangular, so some rows may have a different number of cells. |
tableRows[] | The contents and style of each row. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
tableStyle | The style of the table. |
TableRow
The contents and style of a row in a Table
.
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer, "tableCells": [ { object ( |
Поля | |
---|---|
startIndex | The zero-based start index of this row, in UTF-16 code units. |
endIndex | The zero-based end index of this row, exclusive, in UTF-16 code units. |
tableCells[] | The contents and style of each cell in this row. It's possible for a table to be non-rectangular, so some rows may have a different number of cells than other rows in the same table. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
tableRowStyle | The style of the table row. |
suggestedTableRowStyleChanges | The suggested style changes to this row, keyed by suggestion ID. |
TableCell
The contents and style of a cell in a Table
.
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer, "content": [ { object ( |
Поля | |
---|---|
startIndex | The zero-based start index of this cell, in UTF-16 code units. |
endIndex | The zero-based end index of this cell, exclusive, in UTF-16 code units. |
content[] | The content of the cell. |
tableCellStyle | The style of the cell. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
suggestedTableCellStyleChanges | The suggested changes to the table cell style, keyed by suggestion ID. |
TableCellStyle
The style of a TableCell
.
Inherited table cell styles are represented as unset fields in this message. A table cell style can inherit from the table's style.
JSON representation |
---|
{ "rowSpan": integer, "columnSpan": integer, "backgroundColor": { object ( |
Поля | |
---|---|
rowSpan | Протяженность строки ячейки. Это свойство доступно только для чтения. |
columnSpan | The column span of the cell. Это свойство доступно только для чтения. |
backgroundColor | The background color of the cell. |
borderLeft | The left border of the cell. |
borderRight | The right border of the cell. |
borderTop | The top border of the cell. |
borderBottom | The bottom border of the cell. |
paddingLeft | The left padding of the cell. |
paddingRight | The right padding of the cell. |
paddingTop | The top padding of the cell. |
paddingBottom | The bottom padding of the cell. |
contentAlignment | The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Docs editor. |
TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make its width 0.
JSON representation |
---|
{ "color": { object ( |
Поля | |
---|---|
color | Цвет границы. This color cannot be transparent. |
width | Ширина границы. |
dashStyle | The dash style of the border. |
Выравнивание содержимого
The types of content alignment.
Derived from a subset of the values of the "ST_TextAnchoringType" simple type in section 20.1.10.60 of "Office Open XML File Formats - Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition .
Перечисления | |
---|---|
CONTENT_ALIGNMENT_UNSPECIFIED | An unspecified content alignment. The content alignment is inherited from the parent if one exists. |
CONTENT_ALIGNMENT_UNSUPPORTED | An unsupported content alignment. |
TOP | An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'. |
MIDDLE | An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'. |
BOTTOM | An alignment that aligns the content to the bottom of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'. |
SuggestedTableCellStyle
A suggested change to a TableCellStyle
.
JSON representation |
---|
{ "tableCellStyle": { object ( |
Поля | |
---|---|
tableCellStyle | A |
tableCellStyleSuggestionState | A mask that indicates which of the fields on the base |
TableCellStyleSuggestionState
A mask that indicates which of the fields on the base TableCellStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "rowSpanSuggested": boolean, "columnSpanSuggested": boolean, "backgroundColorSuggested": boolean, "borderLeftSuggested": boolean, "borderRightSuggested": boolean, "borderTopSuggested": boolean, "borderBottomSuggested": boolean, "paddingLeftSuggested": boolean, "paddingRightSuggested": boolean, "paddingTopSuggested": boolean, "paddingBottomSuggested": boolean, "contentAlignmentSuggested": boolean } |
Поля | |
---|---|
rowSpanSuggested | Indicates if there was a suggested change to |
columnSpanSuggested | Indicates if there was a suggested change to |
backgroundColorSuggested | Indicates if there was a suggested change to |
borderLeftSuggested | Indicates if there was a suggested change to |
borderRightSuggested | Indicates if there was a suggested change to |
borderTopSuggested | Indicates if there was a suggested change to |
borderBottomSuggested | Indicates if there was a suggested change to |
paddingLeftSuggested | Indicates if there was a suggested change to |
paddingRightSuggested | Indicates if there was a suggested change to |
paddingTopSuggested | Indicates if there was a suggested change to |
paddingBottomSuggested | Indicates if there was a suggested change to |
contentAlignmentSuggested | Indicates if there was a suggested change to |
TableRowStyle
Styles that apply to a table row.
JSON representation |
---|
{
"minRowHeight": {
object ( |
Поля | |
---|---|
minRowHeight | The minimum height of the row. The row will be rendered in the Docs editor at a height equal to or greater than this value in order to show all the content in the row's cells. |
tableHeader | Whether the row is a table header. |
preventOverflow | Whether the row cannot overflow across page or column boundaries. |
SuggestedTableRowStyle
A suggested change to a TableRowStyle
.
JSON representation |
---|
{ "tableRowStyle": { object ( |
Поля | |
---|---|
tableRowStyle | A |
tableRowStyleSuggestionState | A mask that indicates which of the fields on the base |
TableRowStyleSuggestionState
A mask that indicates which of the fields on the base TableRowStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "minRowHeightSuggested": boolean } |
Поля | |
---|---|
minRowHeightSuggested | Indicates if there was a suggested change to |
TableStyle
Styles that apply to a table.
JSON representation |
---|
{
"tableColumnProperties": [
{
object ( |
Поля | |
---|---|
tableColumnProperties[] | The properties of each column. Note that in Docs, tables contain rows and rows contain cells, similar to HTML. So the properties for a row can be found on the row's |
TableColumnProperties
The properties of a column in a table.
JSON representation |
---|
{ "widthType": enum ( |
Поля | |
---|---|
widthType | The width type of the column. |
width | The width of the column. Set when the column's |
WidthType
The type of width of the column.
Перечисления | |
---|---|
WIDTH_TYPE_UNSPECIFIED | The column width type is unspecified. |
EVENLY_DISTRIBUTED | The column width is evenly distributed among the other evenly distributed columns. The width of the column is automatically determined and will have an equal portion of the width remaining for the table after accounting for all columns with specified widths. |
FIXED_WIDTH | A fixed column width. The [width][ google.apps.docs.v1.TableColumnProperties.width property contains the column's width. |
Оглавление
A StructuralElement
representing a table of contents.
JSON representation |
---|
{
"content": [
{
object ( |
Поля | |
---|---|
content[] | The content of the table of contents. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
Заголовок
A document header.
JSON representation |
---|
{
"headerId": string,
"content": [
{
object ( |
Поля | |
---|---|
headerId | The ID of the header. |
content[] | The contents of the header. The indexes for a header's content begin at zero. |
Сноска
A document footnote.
JSON representation |
---|
{
"footnoteId": string,
"content": [
{
object ( |
Поля | |
---|---|
footnoteId | The ID of the footnote. |
content[] | The contents of the footnote. The indexes for a footnote's content begin at zero. |
DocumentStyle
The style of the document.
JSON representation |
---|
{ "background": { object ( |
Поля | |
---|---|
background | The background of the document. Documents cannot have a transparent background color. |
defaultHeaderId | The ID of the default header. If not set, there's no default header. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
defaultFooterId | The ID of the default footer. If not set, there's no default footer. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
evenPageHeaderId | The ID of the header used only for even pages. The value of If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
evenPageFooterId | The ID of the footer used only for even pages. The value of If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
firstPageHeaderId | The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
firstPageFooterId | The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
useFirstPageHeaderFooter | Indicates whether to use the first page header / footer IDs for the first page. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
useEvenPageHeaderFooter | Indicates whether to use the even page header / footer IDs for the even pages. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
pageNumberStart | The page number from which to start counting the number of pages. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginTop | The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginBottom | The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginRight | The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginLeft | The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
pageSize | The size of a page in the document. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginHeader | The amount of space between the top of the page and the contents of the header. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
marginFooter | The amount of space between the bottom of the page and the contents of the footer. If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
useCustomHeaderFooterMargins | Indicates whether DocumentStyle If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is Это свойство доступно только для чтения. |
flipPageOrientation | Optional. Indicates whether to flip the dimensions of the If [DocumentMode][google.apps.docs.v1.DocumentStyle.document_format.document_mode] is |
documentFormat | Specifies document-level format settings, such as the document mode (pages vs pageless). |
Фон
Represents the background of a document.
JSON-представление |
---|
{
"color": {
object ( |
Поля | |
---|---|
color | The background color. |
Размер
A width and height.
JSON representation |
---|
{ "height": { object ( |
Поля | |
---|---|
height | The height of the object. |
width | The width of the object. |
DocumentFormat
Represents document-level format settings.
JSON representation |
---|
{
"documentMode": enum ( |
Поля | |
---|---|
documentMode | Whether the document has pages or is pageless. |
DocumentMode
Whether the document has pages or is pageless.
Перечисления | |
---|---|
DOCUMENT_MODE_UNSPECIFIED | The document mode is unspecified. |
PAGES | The document has pages. |
PAGELESS | The document is pageless. |
SuggestedDocumentStyle
A suggested change to the DocumentStyle
.
JSON representation |
---|
{ "documentStyle": { object ( |
Поля | |
---|---|
documentStyle | A |
documentStyleSuggestionState | A mask that indicates which of the fields on the base |
DocumentStyleSuggestionState
A mask that indicates which of the fields on the base DocumentStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "backgroundSuggestionState": { object ( |
Поля | |
---|---|
backgroundSuggestionState | A mask that indicates which of the fields in |
defaultHeaderIdSuggested | Indicates if there was a suggested change to |
defaultFooterIdSuggested | Indicates if there was a suggested change to |
evenPageHeaderIdSuggested | Indicates if there was a suggested change to |
evenPageFooterIdSuggested | Indicates if there was a suggested change to |
firstPageHeaderIdSuggested | Indicates if there was a suggested change to |
firstPageFooterIdSuggested | Indicates if there was a suggested change to |
useFirstPageHeaderFooterSuggested | Indicates if there was a suggested change to |
useEvenPageHeaderFooterSuggested | Indicates if there was a suggested change to |
pageNumberStartSuggested | Indicates if there was a suggested change to |
marginTopSuggested | Indicates if there was a suggested change to |
marginBottomSuggested | Indicates if there was a suggested change to |
marginRightSuggested | Indicates if there was a suggested change to |
marginLeftSuggested | Indicates if there was a suggested change to |
pageSizeSuggestionState | A mask that indicates which of the fields in [size] [google.apps.docs.v1.DocumentStyle.size] have been changed in this suggestion. |
marginHeaderSuggested | Indicates if there was a suggested change to |
marginFooterSuggested | Indicates if there was a suggested change to |
useCustomHeaderFooterMarginsSuggested | Indicates if there was a suggested change to |
flipPageOrientationSuggested | Optional. Indicates if there was a suggested change to |
BackgroundSuggestionState
A mask that indicates which of the fields on the base Background
have been changed in this suggestion. For any field set to true, the Backgound
has a new suggested value.
JSON representation |
---|
{ "backgroundColorSuggested": boolean } |
Поля | |
---|---|
backgroundColorSuggested | Indicates whether the current background color has been modified in this suggestion. |
SizeSuggestionState
A mask that indicates which of the fields on the base Size
have been changed in this suggestion. For any field set to true, the Size
has a new suggested value.
JSON representation |
---|
{ "heightSuggested": boolean, "widthSuggested": boolean } |
Поля | |
---|---|
heightSuggested | Indicates if there was a suggested change to |
widthSuggested | Indicates if there was a suggested change to |
NamedStyles
The named styles. Paragraphs in the document can inherit their TextStyle
and ParagraphStyle
from these named styles.
JSON representation |
---|
{
"styles": [
{
object ( |
Поля | |
---|---|
styles[] | The named styles. There's an entry for each of the possible |
NamedStyle
A named style. Paragraphs in the document can inherit their TextStyle
and ParagraphStyle
from this named style when they have the same named style type.
JSON representation |
---|
{ "namedStyleType": enum ( |
Поля | |
---|---|
namedStyleType | The type of this named style. |
textStyle | The text style of this named style. |
paragraphStyle | The paragraph style of this named style. |
SuggestedNamedStyles
A suggested change to the NamedStyles
.
JSON representation |
---|
{ "namedStyles": { object ( |
Поля | |
---|---|
namedStyles | A |
namedStylesSuggestionState | A mask that indicates which of the fields on the base |
NamedStylesSuggestionState
The suggestion state of a NamedStyles
message.
JSON representation |
---|
{
"stylesSuggestionStates": [
{
object ( |
Поля | |
---|---|
stylesSuggestionStates[] | A mask that indicates which of the fields on the corresponding The order of these named style suggestion states matches the order of the corresponding named style within the |
NamedStyleSuggestionState
A suggestion state of a NamedStyle
message.
JSON representation |
---|
{ "namedStyleType": enum ( |
Поля | |
---|---|
namedStyleType | The named style type that this suggestion state corresponds to. This field is provided as a convenience for matching the NamedStyleSuggestionState with its corresponding |
textStyleSuggestionState | A mask that indicates which of the fields in |
paragraphStyleSuggestionState | A mask that indicates which of the fields in |
Список
A List represents the list attributes for a group of paragraphs that all belong to the same list. A paragraph that's part of a list has a reference to the list's ID in its bullet
.
JSON representation |
---|
{ "listProperties": { object ( |
Поля | |
---|---|
listProperties | The properties of the list. |
suggestedListPropertiesChanges | The suggested changes to the list properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this list. |
ListProperties
The properties of a list
that describe the look and feel of bullets belonging to paragraphs associated with a list.
JSON representation |
---|
{
"nestingLevels": [
{
object ( |
Поля | |
---|---|
nestingLevels[] | Describes the properties of the bullets at the associated level. A list has at most 9 levels of nesting with nesting level 0 corresponding to the top-most level and nesting level 8 corresponding to the most nested level. The nesting levels are returned in ascending order with the least nested returned first. |
NestingLevel
Contains properties describing the look and feel of a list bullet at a given level of nesting.
JSON-представление |
---|
{ "bulletAlignment": enum ( |
Поля | |
---|---|
bulletAlignment | The alignment of the bullet within the space allotted for rendering the bullet. |
glyphFormat | The format string used by bullets at this level of nesting. The glyph format contains one or more placeholders, and these placeholders are replaced with the appropriate values depending on the For example, the glyph format The glyph format can contain placeholders for the current nesting level as well as placeholders for parent nesting levels. For example, a list can have a glyph format of For nesting levels that are ordered, the string that replaces a placeholder in the glyph format for a particular paragraph depends on the paragraph's order within the list. |
indentFirstLine | The amount of indentation for the first line of paragraphs at this level of nesting. |
indentStart | The amount of indentation for paragraphs at this level of nesting. Applied to the side that corresponds to the start of the text, based on the paragraph's content direction. |
textStyle | The text style of bullets at this level of nesting. |
startNumber | The number of the first list item at this nesting level. A value of 0 is treated as a value of 1 for lettered lists and Roman numeral lists. For values of both 0 and 1, lettered and Roman numeral lists will begin at This value is ignored for nesting levels with unordered glyphs. |
Union field glyph_kind . The kind of glyph used by bullets. This defines the bullet glyph that replaces the placeholders in the glyph_format . glyph_kind can be only one of the following: | |
glyphType | The type of glyph used by bullets when paragraphs at this level of nesting is ordered. The glyph type determines the type of glyph used to replace placeholders within the |
glyphSymbol | A custom glyph symbol used by bullets when paragraphs at this level of nesting is unordered. The glyph symbol replaces placeholders within the |
BulletAlignment
The types of alignment for a bullet.
Перечисления | |
---|---|
BULLET_ALIGNMENT_UNSPECIFIED | The bullet alignment is unspecified. |
START | The bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text, right-aligned otherwise. |
CENTER | The bullet is aligned to the center of the space allotted for rendering the bullet. |
END | The bullet is aligned to the end of the space allotted for rendering the bullet. Right-aligned for LTR text, left-aligned otherwise. |
GlyphType
The types of glyphs used by bullets when paragraphs at this level of nesting is ordered.
Перечисления | |
---|---|
GLYPH_TYPE_UNSPECIFIED | The glyph type is unspecified or unsupported. |
NONE | Пустая строка. |
DECIMAL | A number, like 1 , 2 , or 3 . |
ZERO_DECIMAL | A number where single digit numbers are prefixed with a zero, like 01 , 02 , or 03 . Numbers with more than one digit are not prefixed with a zero. |
UPPER_ALPHA | An uppercase letter, like A , B , or C . |
ALPHA | A lowercase letter, like a , b , or c . |
UPPER_ROMAN | An uppercase Roman numeral, like I , II , or III . |
ROMAN | A lowercase Roman numeral, like i , ii , or iii . |
SuggestedListProperties
A suggested change to ListProperties
.
JSON representation |
---|
{ "listProperties": { object ( |
Поля | |
---|---|
listProperties | A |
listPropertiesSuggestionState | A mask that indicates which of the fields on the base |
ListPropertiesSuggestionState
A mask that indicates which of the fields on the base ListProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"nestingLevelsSuggestionStates": [
{
object ( |
Поля | |
---|---|
nestingLevelsSuggestionStates[] | A mask that indicates which of the fields on the corresponding The nesting level suggestion states are returned in ascending order of the nesting level with the least nested returned first. |
NestingLevelSuggestionState
A mask that indicates which of the fields on the base NestingLevel
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"bulletAlignmentSuggested": boolean,
"glyphTypeSuggested": boolean,
"glyphFormatSuggested": boolean,
"glyphSymbolSuggested": boolean,
"indentFirstLineSuggested": boolean,
"indentStartSuggested": boolean,
"textStyleSuggestionState": {
object ( |
Поля | |
---|---|
bulletAlignmentSuggested | Indicates if there was a suggested change to |
glyphTypeSuggested | Indicates if there was a suggested change to |
glyphFormatSuggested | Indicates if there was a suggested change to |
glyphSymbolSuggested | Indicates if there was a suggested change to |
indentFirstLineSuggested | Indicates if there was a suggested change to |
indentStartSuggested | Indicates if there was a suggested change to |
textStyleSuggestionState | A mask that indicates which of the fields in |
startNumberSuggested | Indicates if there was a suggested change to |
NamedRanges
A collection of all the NamedRange
s in the document that share a given name.
JSON representation |
---|
{
"name": string,
"namedRanges": [
{
object ( |
Поля | |
---|---|
name | The name that all the |
namedRanges[] | The |
NamedRange
A collection of Range
s with the same named range ID.
Named ranges allow developers to associate parts of a document with an arbitrary user-defined label so their contents can be programmatically read or edited later. A document can contain multiple named ranges with the same name, but every named range has a unique ID.
A named range is created with a single Range
, and content inserted inside a named range generally expands that range. However, certain document changes can cause the range to be split into multiple ranges.
Named ranges are not private. All applications and collaborators that have access to the document can see its named ranges.
JSON representation |
---|
{
"namedRangeId": string,
"name": string,
"ranges": [
{
object ( |
Поля | |
---|---|
namedRangeId | The ID of the named range. |
name | The name of the named range. |
ranges[] | The ranges that belong to this named range. |
Диапазон
Specifies a contiguous range of text.
JSON-представление |
---|
{ "segmentId": string, "startIndex": integer, "endIndex": integer, "tabId": string } |
Поля | |
---|---|
segmentId | The ID of the header, footer, or footnote that this range is contained in. An empty segment ID signifies the document's body. |
startIndex | The zero-based start index of this range, in UTF-16 code units. In all current uses, a start index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
endIndex | The zero-based end index of this range, exclusive, in UTF-16 code units. In all current uses, an end index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
tabId | The tab that contains this range. When omitted, the request applies to the first tab. In a document containing a single tab:
In a document containing multiple tabs:
|
InlineObject
An object that appears inline with text. An InlineObject contains an EmbeddedObject
such as an image.
JSON representation |
---|
{ "objectId": string, "inlineObjectProperties": { object ( |
Поля | |
---|---|
objectId | The ID of this inline object. Can be used to update an object's properties. |
inlineObjectProperties | The properties of this inline object. |
suggestedInlineObjectPropertiesChanges | The suggested changes to the inline object properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
InlineObjectProperties
Properties of an InlineObject
.
JSON representation |
---|
{
"embeddedObject": {
object ( |
Поля | |
---|---|
embeddedObject | The embedded object of this inline object. |
EmbeddedObject
An embedded object in the document.
JSON representation |
---|
{ "title": string, "description": string, "embeddedObjectBorder": { object ( |
Поля | |
---|---|
title | The title of the embedded object. The |
description | The description of the embedded object. The |
embeddedObjectBorder | The border of the embedded object. |
size | The visible size of the image after cropping. |
marginTop | The top margin of the embedded object. |
marginBottom | The bottom margin of the embedded object. |
marginRight | The right margin of the embedded object. |
marginLeft | The left margin of the embedded object. |
linkedContentReference | A reference to the external linked source content. For example, it contains a reference to the source Google Sheets chart when the embedded object is a linked chart. If unset, then the embedded object is not linked. |
Union field properties . The properties that are specific to each embedded object type. properties can be only one of the following: | |
embeddedDrawingProperties | The properties of an embedded drawing. |
imageProperties | The properties of an image. |
EmbeddedDrawingProperties
Этот тип не имеет полей.
The properties of an embedded drawing and used to differentiate the object type. An embedded drawing is one that's created and edited within a document. Note that extensive details are not supported.
ImageProperties
The properties of an image.
JSON representation |
---|
{
"contentUri": string,
"sourceUri": string,
"brightness": number,
"contrast": number,
"transparency": number,
"cropProperties": {
object ( |
Поля | |
---|---|
contentUri | A URI to the image with a default lifetime of 30 minutes. This URI is tagged with the account of the requester. Anyone with the URI effectively accesses the image as the original requester. Access to the image may be lost if the document's sharing settings change. |
sourceUri | The source URI is the URI used to insert the image. The source URI can be empty. |
brightness | The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. |
contrast | The contrast effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. |
transparency | The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means transparent. |
cropProperties | The crop properties of the image. |
angle | The clockwise rotation angle of the image, in radians. |
CropProperties
The crop properties of an image.
The crop rectangle is represented using fractional offsets from the original content's 4 edges.
- If the offset is in the interval (0, 1), the corresponding edge of crop rectangle is positioned inside of the image's original bounding rectangle.
- If the offset is negative or greater than 1, the corresponding edge of crop rectangle is positioned outside of the image's original bounding rectangle.
- If all offsets and rotation angles are 0, the image is not cropped.
JSON representation |
---|
{ "offsetLeft": number, "offsetRight": number, "offsetTop": number, "offsetBottom": number, "angle": number } |
Поля | |
---|---|
offsetLeft | The offset specifies how far inwards the left edge of the crop rectangle is from the left edge of the original content as a fraction of the original content's width. |
offsetRight | The offset specifies how far inwards the right edge of the crop rectangle is from the right edge of the original content as a fraction of the original content's width. |
offsetTop | The offset specifies how far inwards the top edge of the crop rectangle is from the top edge of the original content as a fraction of the original content's height. |
offsetBottom | The offset specifies how far inwards the bottom edge of the crop rectangle is from the bottom edge of the original content as a fraction of the original content's height. |
angle | The clockwise rotation angle of the crop rectangle around its center, in radians. Rotation is applied after the offsets. |
EmbeddedObjectBorder
A border around an EmbeddedObject
.
JSON representation |
---|
{ "color": { object ( |
Поля | |
---|---|
color | Цвет границы. |
width | Ширина границы. |
dashStyle | The dash style of the border. |
propertyState | The property state of the border property. |
PropertyState
The possible states of a property.
Перечисления | |
---|---|
RENDERED | If a property's state is RENDERED, then the element has the corresponding property when rendered in the document. This is the default value. |
NOT_RENDERED | If a property's state is NOT_RENDERED, then the element does not have the corresponding property when rendered in the document. |
LinkedContentReference
A reference to the external linked source content.
JSON representation |
---|
{ // Union field |
Поля | |
---|---|
Union field reference . The reference specific to the type of linked content. reference can be only one of the following: | |
sheetsChartReference | A reference to the linked chart. |
SheetsChartReference
A reference to a linked chart embedded from Google Sheets.
JSON representation |
---|
{ "spreadsheetId": string, "chartId": integer } |
Поля | |
---|---|
spreadsheetId | The ID of the Google Sheets spreadsheet that contains the source chart. |
chartId | The ID of the specific chart in the Google Sheets spreadsheet that's embedded. |
SuggestedInlineObjectProperties
A suggested change to InlineObjectProperties
.
JSON representation |
---|
{ "inlineObjectProperties": { object ( |
Поля | |
---|---|
inlineObjectProperties | An |
inlineObjectPropertiesSuggestionState | A mask that indicates which of the fields on the base |
InlineObjectPropertiesSuggestionState
A mask that indicates which of the fields on the base InlineObjectProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"embeddedObjectSuggestionState": {
object ( |
Поля | |
---|---|
embeddedObjectSuggestionState | A mask that indicates which of the fields in |
EmbeddedObjectSuggestionState
A mask that indicates which of the fields on the base EmbeddedObject
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "embeddedDrawingPropertiesSuggestionState": { object ( |
Поля | |
---|---|
embeddedDrawingPropertiesSuggestionState | A mask that indicates which of the fields in |
imagePropertiesSuggestionState | A mask that indicates which of the fields in |
titleSuggested | Indicates if there was a suggested change to |
descriptionSuggested | Indicates if there was a suggested change to |
embeddedObjectBorderSuggestionState | A mask that indicates which of the fields in |
sizeSuggestionState | A mask that indicates which of the fields in |
marginLeftSuggested | Indicates if there was a suggested change to |
marginRightSuggested | Indicates if there was a suggested change to |
marginTopSuggested | Indicates if there was a suggested change to |
marginBottomSuggested | Indicates if there was a suggested change to |
linkedContentReferenceSuggestionState | A mask that indicates which of the fields in |
EmbeddedDrawingPropertiesSuggestionState
Этот тип не имеет полей.
A mask that indicates which of the fields on the base EmbeddedDrawingProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
ImagePropertiesSuggestionState
A mask that indicates which of the fields on the base ImageProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"contentUriSuggested": boolean,
"sourceUriSuggested": boolean,
"brightnessSuggested": boolean,
"contrastSuggested": boolean,
"transparencySuggested": boolean,
"cropPropertiesSuggestionState": {
object ( |
Поля | |
---|---|
contentUriSuggested | Indicates if there was a suggested change to |
sourceUriSuggested | Indicates if there was a suggested change to [sourceUri] [google.apps.docs.v1.EmbeddedObject.source_uri]. |
brightnessSuggested | Indicates if there was a suggested change to [brightness] [google.apps.docs.v1.EmbeddedObject.brightness]. |
contrastSuggested | Indicates if there was a suggested change to [contrast] [google.apps.docs.v1.EmbeddedObject.contrast]. |
transparencySuggested | Indicates if there was a suggested change to [transparency] [google.apps.docs.v1.EmbeddedObject.transparency]. |
cropPropertiesSuggestionState | A mask that indicates which of the fields in |
angleSuggested | Indicates if there was a suggested change to [angle] [google.apps.docs.v1.EmbeddedObject.angle]. |
CropPropertiesSuggestionState
A mask that indicates which of the fields on the base CropProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "offsetLeftSuggested": boolean, "offsetRightSuggested": boolean, "offsetTopSuggested": boolean, "offsetBottomSuggested": boolean, "angleSuggested": boolean } |
Поля | |
---|---|
offsetLeftSuggested | Indicates if there was a suggested change to |
offsetRightSuggested | Indicates if there was a suggested change to |
offsetTopSuggested | Indicates if there was a suggested change to |
offsetBottomSuggested | Indicates if there was a suggested change to |
angleSuggested | Indicates if there was a suggested change to |
EmbeddedObjectBorderSuggestionState
A mask that indicates which of the fields on the base EmbeddedObjectBorder
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "colorSuggested": boolean, "widthSuggested": boolean, "dashStyleSuggested": boolean, "propertyStateSuggested": boolean } |
Поля | |
---|---|
colorSuggested | Indicates if there was a suggested change to [color] [google.apps.docs.v1.EmbeddedBorderObject.color]. |
widthSuggested | Indicates if there was a suggested change to [width] [google.apps.docs.v1.EmbeddedBorderObject.width]. |
dashStyleSuggested | Indicates if there was a suggested change to [dashStyle] [google.apps.docs.v1.EmbeddedBorderObject.dash_style]. |
propertyStateSuggested | Indicates if there was a suggested change to [propertyState] [google.apps.docs.v1.EmbeddedBorderObject.property_state]. |
LinkedContentReferenceSuggestionState
A mask that indicates which of the fields on the base LinkedContentReference
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON-представление |
---|
{
"sheetsChartReferenceSuggestionState": {
object ( |
Поля | |
---|---|
sheetsChartReferenceSuggestionState | A mask that indicates which of the fields in |
SheetsChartReferenceSuggestionState
A mask that indicates which of the fields on the base SheetsChartReference
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "spreadsheetIdSuggested": boolean, "chartIdSuggested": boolean } |
Поля | |
---|---|
spreadsheetIdSuggested | Indicates if there was a suggested change to |
chartIdSuggested | Indicates if there was a suggested change to |
PositionedObject
An object that's tethered to a Paragraph
and positioned relative to the beginning of the paragraph. A PositionedObject contains an EmbeddedObject
such as an image.
JSON representation |
---|
{ "objectId": string, "positionedObjectProperties": { object ( |
Поля | |
---|---|
objectId | The ID of this positioned object. |
positionedObjectProperties | The properties of this positioned object. |
suggestedPositionedObjectPropertiesChanges | The suggested changes to the positioned object properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
PositionedObjectProperties
Properties of a PositionedObject
.
JSON representation |
---|
{ "positioning": { object ( |
Поля | |
---|---|
positioning | The positioning of this positioned object relative to the newline of the |
embeddedObject | The embedded object of this positioned object. |
PositionedObjectPositioning
The positioning of a PositionedObject
. The positioned object is positioned relative to the beginning of the Paragraph
it's tethered to.
JSON-представление |
---|
{ "layout": enum ( |
Поля | |
---|---|
layout | The layout of this positioned object. |
leftOffset | The offset of the left edge of the positioned object relative to the beginning of the |
topOffset | The offset of the top edge of the positioned object relative to the beginning of the |
PositionedObjectLayout
The possible layouts of a [PositionedObject][google.aps.docs.v1.PositionedObject].
Перечисления | |
---|---|
POSITIONED_OBJECT_LAYOUT_UNSPECIFIED | The layout is unspecified. |
WRAP_TEXT | The text wraps around the positioned object. |
BREAK_LEFT | Breaks text such that the positioned object is on the left and text is on the right. |
BREAK_RIGHT | Breaks text such that the positioned object is on the right and text is on the left. |
BREAK_LEFT_RIGHT | Breaks text such that there's no text on the left or right of the positioned object. |
IN_FRONT_OF_TEXT | The positioned object is in front of the text. |
BEHIND_TEXT | The positioned object is behind the text. |
SuggestedPositionedObjectProperties
A suggested change to PositionedObjectProperties
.
JSON representation |
---|
{ "positionedObjectProperties": { object ( |
Поля | |
---|---|
positionedObjectProperties | A |
positionedObjectPropertiesSuggestionState | A mask that indicates which of the fields on the base |
PositionedObjectPropertiesSuggestionState
A mask that indicates which of the fields on the base PositionedObjectProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "positioningSuggestionState": { object ( |
Поля | |
---|---|
positioningSuggestionState | A mask that indicates which of the fields in |
embeddedObjectSuggestionState | A mask that indicates which of the fields in |
PositionedObjectPositioningSuggestionState
A mask that indicates which of the fields on the base PositionedObjectPositioning
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "layoutSuggested": boolean, "leftOffsetSuggested": boolean, "topOffsetSuggested": boolean } |
Поля | |
---|---|
layoutSuggested | Indicates if there was a suggested change to |
leftOffsetSuggested | Indicates if there was a suggested change to |
topOffsetSuggested | Indicates if there was a suggested change to |
SuggestionsViewMode
The suggestions view mode applied to the document that indicates how suggested changes are represented. It provides options for reading the document with all suggestions inline, accepted, or rejected.
Перечисления | |
---|---|
DEFAULT_FOR_CURRENT_ACCESS | The SuggestionsViewMode applied to the returned document depends on the user's current access level. If the user only has view access, PREVIEW_WITHOUT_SUGGESTIONS is applied. Otherwise, SUGGESTIONS_INLINE is applied. This is the default suggestions view mode. |
SUGGESTIONS_INLINE | The returned document has suggestions inline. Suggested changes will be differentiated from base content within the document. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes. |
PREVIEW_SUGGESTIONS_ACCEPTED | The returned document is a preview with all suggested changes accepted. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes. |
PREVIEW_WITHOUT_SUGGESTIONS | The returned document is a preview with all suggested changes rejected if there are any suggestions in the document. |
Методы | |
---|---|
| Applies one or more updates to the document. |
| Creates a blank document using the title given in the request. |
| Gets the latest version of the specified document. |