Page Summary
-
Google Workspace Add-ons utilize markup elements to define actions and data sources for interactions within various host applications like Gmail, Calendar, Drive, and Chat.
-
These markup elements enable add-ons to modify data, trigger application-specific actions, handle custom function results in Sheets, and manage user interface components.
-
Developers can use
GmailClientActionMarkupto create and update drafts,CalendarClientActionMarkupto modify calendar events, andChatClientDataSourceMarkupfor selection inputs in Google Chat apps. -
SheetsClientActionMarkupallows add-ons to define return values for custom functions, whileHostAppDataActionMarkup, currently in Developer Preview, enables data updates within Google Workspace. -
The structure and fields within each markup element provide a standardized way to define add-on behavior and data interactions, streamlining development across different Google Workspace applications.
Index
CalendarClientActionMarkup(message)CalendarClientActionMarkup.AddAttachmentsActionMarkup(message)CalendarClientActionMarkup.AddAttachmentsActionMarkup.AddonAttachment(message)CalendarClientActionMarkup.CalendarSubscriptionActionMarkup(message)CalendarClientActionMarkup.CalendarSubscriptionActionMarkup.Operation(enum)CalendarClientActionMarkup.ConferenceDataMarkup(message)CalendarClientActionMarkup.ConferenceDataMarkup.EntryPointMarkup(message)CalendarClientActionMarkup.ConferenceDataMarkup.EntryPointMarkup.Feature(enum)CalendarClientActionMarkup.ConferenceDataMarkup.EntryPointMarkup.Type(enum)CalendarClientActionMarkup.ConferenceDataMarkup.Error(message)CalendarClientActionMarkup.ConferenceDataMarkup.Error.Type(enum)CalendarClientActionMarkup.ConferenceDataMarkup.Parameter(message)CalendarClientActionMarkup.CreateConferenceDataActionMarkup(message)CalendarClientActionMarkup.CreateConferenceSettingUrlActionMarkup(message)CalendarClientActionMarkup.EditAttendeesActionMarkup(message)CalendarClientActionMarkup.EditConferenceDataActionMarkup(message)ChatClientDataSourceMarkup(message)ChatClientDataSourceMarkup.SpaceDataSource(message)ChatDataActionMarkup(message)ChatDataActionMarkup.CreateMessageAction(message)ChatDataActionMarkup.UpdateInlinePreviewAction(message)ChatDataActionMarkup.UpdateMessageAction(message)DriveClientActionMarkup(message)DriveClientActionMarkup.RequestFileScope(message)EditorClientActionMarkup(message)EditorClientActionMarkup.RequestFileScopeForActiveDocument(message)GmailClientActionMarkup(message)GmailClientActionMarkup.AddonComposeUiActionMarkup(message)GmailClientActionMarkup.AddonComposeUiActionMarkup.AddonComposeUiActionType(enum)GmailClientActionMarkup.OpenCreatedDraftActionMarkup(message)GmailClientActionMarkup.TaskActionMarkup(message)GmailClientActionMarkup.UpdateDraftActionMarkup(message)GmailClientActionMarkup.UpdateDraftActionMarkup.Recipient(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBccRecipients(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBody(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBody.ContentType(enum)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBody.EmailMimeType(enum)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBody.InsertContent(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateBody.Type(enum)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateCcRecipients(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateSubject(message)GmailClientActionMarkup.UpdateDraftActionMarkup.UpdateToRecipients(message)HostAppActionMarkup(message)HostAppDataActionMarkup(message)HostAppDataSourceMarkup(message)SheetsClientActionMarkup(message)SheetsClientActionMarkup.CustomFunctionReturnValueMarkup(message)WorkflowClientActionMarkup(message)WorkflowClientActionMarkup.ResourceData(message)WorkflowClientActionMarkup.ResourceFieldsDefinitionRetrievedAction(message)WorkflowClientActionMarkup.ResourceFieldsDefinitionRetrievedAction.DynamicResourceDefinition(message)WorkflowClientActionMarkup.ResourceFieldsDefinitionRetrievedAction.ResourceField(message)WorkflowClientActionMarkup.ResourceRetrievedAction(message)WorkflowClientActionMarkup.ReturnElementErrorAction(message)WorkflowClientActionMarkup.ReturnElementErrorAction.ErrorActionability(enum)WorkflowClientActionMarkup.ReturnElementErrorAction.Retryability(enum)WorkflowClientActionMarkup.ReturnOutputVariablesAction(message)WorkflowClientActionMarkup.SaveWorkflowAction(message)WorkflowClientActionMarkup.SourceResourceReference(message)WorkflowClientActionMarkup.SourceResourceType(message)WorkflowClientActionMarkup.VariableData(message)WorkflowClientActionMarkup.WorkflowValidationErrorAction(message)WorkflowClientActionMarkup.WorkflowValidationErrorAction.Severity(enum)WorkflowDataSourceMarkup(message)WorkflowDataSourceMarkup.Type(enum)WorkflowTextFormatMarkup(message)WorkflowTextFormatMarkup.Chip(message)WorkflowTextFormatMarkup.Icon(message)WorkflowTextFormatMarkup.TextFormatElement(message)WorkflowTextFormatMarkup.TextFormatElement.Hyperlink(message)WorkflowTextFormatMarkup.TextFormatElement.ListContainer(message)WorkflowTextFormatMarkup.TextFormatElement.ListContainer.ListItem(message)WorkflowTextFormatMarkup.TextFormatElement.ListContainer.ListType(enum)WorkflowTextFormatMarkup.TextFormatElement.StyledText(message)WorkflowTextFormatMarkup.TextFormatElement.StyledText.FontWeight(enum)WorkflowTextFormatMarkup.TextFormatElement.StyledText.Style(enum)WorkflowTextFormatMarkup.TextFormatElement.StyledText.WrapStyle(enum)
CalendarClientActionMarkup
| Fields | |
|---|---|
editAttendeesActionMarkup |
An action that adds attendees to the Google Calendar event. |
editConferenceDataActionMarkup |
An action that adds conference data to the Google Calendar event. Third-party conferencing add-ons can only be built in Apps Script. |
addAttachmentsActionMarkup |
An action that adds attachments to the Google Calendar event. |
createConferenceDataActionMarkup |
An action that shows conference data when create a Google Calendar event. |
createConferenceSettingUrlActionMarkup |
An action that generates generate createconference setting url. |
calendarSubscriptionActionMarkup |
An action that manages a calendar subscription. Supports subscription creation in HTTP endpoints add-ons only. Not applicable to Apps Script add-ons. |
AddAttachmentsActionMarkup
| Fields | |
|---|---|
addonAttachments[] |
|
AddonAttachment
| Fields | |
|---|---|
resourceUrl |
|
title |
Title of the attachment. |
mimeType |
MIME type of the content in resourceUrl. |
iconUrl |
Link to the resource's icon. |
CalendarSubscriptionActionMarkup
An action that manages a calendar subscription for the current user.
Creating a subscription is idempotent: if the user is already subscribed to the specified calendar under this add-on deployment, returning this action ensures the subscription remains active without creating duplicate subscriptions or duplicate event notifications. You don't need to check for existing subscriptions before returning this action.
Supports subscription creation in HTTP endpoints add-ons only. Not applicable to Apps Script add-ons.
| Fields | |
|---|---|
operation |
The operation to perform. Currently only |
calendarId |
The calendar id to subscribe to. |
Operation
| Enums | |
|---|---|
OPERATION_UNSPECIFIED |
|
CREATE |
|
ConferenceDataMarkup
Markup that defines conference data associated to a Google Calendar event. Third-party conferencing add-ons can only be built in Apps Script.
| Fields | |
|---|---|
conferenceId |
Unique identifier for this conference data. Maximum 512 characters long. |
entryPoints[] |
Entry points to the conference. Maximum 300 entry points are allowed. |
parameters[] |
Additional add-on parameters. Maximum 300 parameters are allowed. |
error |
If set, it means an error occurred during conference creation. |
note |
Additional notes (such as instructions from the administrator, legal notices) to display to the user. Can contain HTML. Max length 2048 characters. |
conferenceSolutionId |
An identifier of the conferencing solution. Must match a value from the deployment's |
EntryPointMarkup
A way to join the conference. Third-party conferencing add-ons can only be built in Apps Script.
| Fields | |
|---|---|
type |
The type of the entry point. Required. |
uri |
A URI for joining the conference. Supports tel: and http(s): and should be at most 1300 characters long. Required. |
label |
The label of the entry point to display to the user. Maximum 512 characters long. |
meetingCode |
A meeting code for accessing the conference. Maximum 128 characters long. |
accessCode |
An access code for accessing the conference. Maximum 128 characters long. |
passcode |
A passcode for accessing the conference. Maximum 128 characters long. |
password |
A password for accessing the conference. Maximum 128 characters long. |
pin |
A PIN for accessing the conference. Maximum 128 characters long. |
regionCode |
The CLDR/ISO 3166 region code for the country associated with this entry point. Applicable only to |
features[] |
Features of the entry point, such as being toll or toll-free. One entry point can have multiple features. |
Feature
Features of the entry point. Some features might apply only to specific entry points.
| Enums | |
|---|---|
UNKNOWN_FEATURE |
Unknown feature. |
TOLL |
Applies to PHONE entry point. A call to a toll number is charged to the calling party. A number can't be toll and toll-free at the same time. |
TOLL_FREE |
Applies to PHONE entry point. For the calling party, a call to a toll-free number is free of charge. A number can't be toll and toll-free at the same time. |
Type
The type of the entry point. Third-party conferencing add-ons can only be built in Apps Script.
| Enums | |
|---|---|
UNKNOWN |
Unknown conference type. |
VIDEO |
A video conference. |
PHONE |
A phone conference. |
MORE |
Used to provide a link to further conference joining information. |
SIP |
A conference using Session Initiation Protocol |
Error
Represents an error that occurred during conference creation. Third-party conferencing add-ons can only be built in Apps Script.
| Fields | |
|---|---|
type |
The type of error. Required. |
authenticationUrl |
If the error type is |
Type
| Enums | |
|---|---|
UNKNOWN |
Unknown error. |
AUTHENTICATION |
An authentication error. |
TEMPORARY |
A temporary error. |
PERMANENT |
A permanent error. |
PERMISSION_DENIED |
The user isn't allowed to perform some action in the third-party conferencing system. |
CONFERENCE_SOLUTION_FORBIDDEN |
The user isn't allowed to use the selected conference solution (but might be allowed to use other solutions offered by the add-on). |
Parameter
Solution-specific parameters that are persisted with the event data and, if an update or delete is needed, are passed to the add-on. For example: [{key: 'sessionKey', value: '123'}, {key: 'meetingId', value: '456'}]
| Fields | |
|---|---|
key |
The key of the parameter. Maximum 50 characters long. Required. |
value |
The value of the parameter. Maximum 1024 characters long. Required. |
CreateConferenceDataActionMarkup
| Fields | |
|---|---|
createConferenceData |
The conference data to add to a Google Calendar event when creating it. |
CreateConferenceSettingUrlActionMarkup
| Fields | |
|---|---|
settingsUrl |
The uri for a settings page generated by the add-on. |
EditAttendeesActionMarkup
| Fields | |
|---|---|
addAttendeeEmails[] |
A list of attendees to add to the Google Calendar event. |
EditConferenceDataActionMarkup
| Fields | |
|---|---|
Union field
|
|
conferenceData |
The conference data to add to the Google Calendar event. Third-party conferencing add-ons can only be built in Apps Script. |
ChatClientDataSourceMarkup
For a widget that uses a multiselect menu, a data source from Google Chat. The data source populates selection items for the multiselect menu. For example, a user can select Google Chat spaces that they're a member of.SelectionInput
Available for Google Chat apps and unavailable for Google Workspace add-ons.
| Fields | |
|---|---|
Union field source. The Google Chat data source. source can be only one of the following: |
|
spaceDataSource |
Google Chat spaces that the user is a member of. |
SpaceDataSource
A data source that populates Google Chat spaces as selection items for a multiselect menu. Only populates spaces that the user is a member of.
Available for Google Chat apps and unavailable for Google Workspace add-ons.
| Fields | |
|---|---|
defaultToCurrentSpace |
If set to |
ChatDataActionMarkup
Creates or updates a message in Google Chat. For details, see Build Google Chat interfaces.
| Fields | |
|---|---|
Union field action. A Google Chat action. action can be only one of the following: |
|
createMessageAction |
Sends a message as a Google Chat app. |
updateMessageAction |
Updates a Google Chat app's message. |
updateInlinePreviewAction |
To preview links, adds one or more cards to a Google Chat user's message. |
CreateMessageAction
The Chat app sends a message. For details, see Send Google Chat messages.
| Fields | |
|---|---|
message |
The Google Chat message. |
UpdateInlinePreviewAction
The Chat app previews a link in a message by adding or updating one or more cards. For details, see Preview links in Google Chat messages.
| Fields | |
|---|---|
cardsV2[] |
An array of one or more cards. |
UpdateMessageAction
The Chat app updates text or cards in a message. For details, see Send Google Chat messages.
| Fields | |
|---|---|
message |
The updated message. |
DriveClientActionMarkup
| Fields | |
|---|---|
requestFileScope |
|
RequestFileScope
| Fields | |
|---|---|
itemId |
|
EditorClientActionMarkup
| Fields | |
|---|---|
Union field
|
|
requestFileScopeForActiveDocument |
|
RequestFileScopeForActiveDocument
This type has no fields.
GmailClientActionMarkup
| Fields | |
|---|---|
Union field
|
|
taskAction |
|
updateDraftActionMarkup |
|
openCreatedDraftActionMarkup |
|
addonComposeUiActionMarkup |
|
AddonComposeUiActionMarkup
| Fields | |
|---|---|
type |
|
AddonComposeUiActionType
| Enums | |
|---|---|
UNSPECIFIED |
Default. When unspecified, no action is taken. |
DISMISS |
Dismisses the add-on compose UI. |
OpenCreatedDraftActionMarkup
| Fields | |
|---|---|
draftId |
The ID of the newly created draft in the form "r123". |
draftStorageId |
The server storage ID in hex format, for example,"15e9fa622ce1029d". |
draftThreadServerPermId |
The server permanent ID for the draft's thread. This field isn't set anywhere, and it's ignored when processing OpenCreatedDraftActionMarkup. Supply and use draftThreadStorageId instead. |
draftThreadId |
The ID of the thread containing the newly created draft, for example, "15e9fa622ce1029d". |
TaskActionMarkup
| Fields | |
|---|---|
reloadTasks |
|
UpdateDraftActionMarkup
| Fields | |
|---|---|
updateBody |
A field that contains a series of update actions to perform on the draft body that the user is currently editing. |
updateToRecipients |
If set, replaces the existing To recipients of the draft the user is currently editing. |
updateCcRecipients |
If set, replaces the existing Cc recipients of the draft the user is currently editing. |
updateBccRecipients |
If set, replaces the existing Bcc recipients of the draft the user is currently editing. |
updateSubject |
If set, replaces the existing subject of the draft the user is currently editing. |
Recipient
| Fields | |
|---|---|
email |
|
UpdateBccRecipients
| Fields | |
|---|---|
bccRecipients[] |
|
UpdateBody
| Fields | |
|---|---|
insertContents[] |
A repeated field that contains a series of content to insert into the draft that the user is currently editing. The content can contain HTML content or plain text content. |
type |
|
ContentType
| Enums | |
|---|---|
UNSPECIFIED_CONTENT_TYPE |
Default value when nothing is set for ContentType. |
TEXT |
Specifies that the content is in plain text. |
MUTABLE_HTML |
Specifies that the content is in HTML and is mutable (can be edited). |
IMMUTABLE_HTML |
Specifies that the content is in HTML and is immutable (cannot be edited). |
EmailMimeType
EmailMimeType is deprecated. Please use ContentType.
| Enums | |
|---|---|
UNSPECIFIED_EMAIL_MIME_TYPE |
Default value when nothing is set for EmailMimeType. |
PLAIN_TEXT |
Specifies that the inserted content is in plain text. |
HTML |
Specifies that the inserted content is in HTML. |
InsertContent
| Fields | |
|---|---|
content |
The content to be inserted. |
mimeType |
|
contentType |
The type of inserted content. |
Type
| Enums | |
|---|---|
UNSPECIFIED_ACTION_TYPE |
Default value when nothing is set for Type. |
IN_PLACE_INSERT |
Indicates this action is to perform an in-place insertion. By default the content is inserted at the current cursor position, if there is selected content, it replaces the selected content. |
INSERT_AT_START |
Indicates this action is to perform insert at the start of the message body. |
INSERT_AT_END |
Indicates this action is to perform insert at the end of the message body. |
REPLACE |
Indicates this action is to replace the message body. |
UpdateCcRecipients
| Fields | |
|---|---|
ccRecipients[] |
|
UpdateSubject
| Fields | |
|---|---|
subject |
|
UpdateToRecipients
| Fields | |
|---|---|
toRecipients[] |
|
HostAppActionMarkup
Actions handled by individual host apps.
| Fields | |
|---|---|
Union field
|
|
gmailAction |
Actions handled by Gmail. |
calendarAction |
Actions handled by Calendar. |
driveAction |
Actions handled by Drive. |
editorAction |
Actions handled by Docs, Sheets, or Slides. |
sheetsAction |
Actions handled by Sheets. |
workflowAction |
Actions handled by Workspace Studio. |
HostAppDataActionMarkup
Defines how to update Google Workspace data.
| Fields | |
|---|---|
Union field action. The add-on action for a given Google Workspace host application. action can be only one of the following: |
|
chatDataAction |
A Google Chat action that creates or updates text or cards in a message. |
HostAppDataSourceMarkup
A data source from a Google Workspace application. The data source populates available items for a widget.
| Fields | |
|---|---|
Union field data_source. The Google Workspace application that populates available items for a widget. data_source can be only one of the following: |
|
chatDataSource |
A data source from Google Chat. |
workflowDataSource |
A data source from Google Workflow. |
SheetsClientActionMarkup
Next ID: 5.
| Fields | |
|---|---|
Union field
|
|
customFunctionReturnValueMarkup |
|
CustomFunctionReturnValueMarkup
The result of a user running a custom function.
| Fields | |
|---|---|
Union field result. The result of the custom function execution. result can be only one of the following: |
|
value |
The value that resulted from running the custom function. |
errorMessage |
The error message to show to the user if something went wrong. |
WorkflowClientActionMarkup
Client actions for Workspace Studio add-ons.
| Fields | |
|---|---|
Union field
|
|
saveWorkflowAction |
Action to initiate saving of the workflow. |
returnOutputVariablesAction |
Action containing output variables generated by an executed workflow action. |
resourceRetrievedAction |
Action containing a retrieved resource. |
resourceFieldsDefinitionRetrievedAction |
Action containing the definition of fields for a resource. |
returnElementErrorAction |
Action indicating an error occurred during element invocation. |
workflowValidationErrorAction |
Action indicating a workflow validation error. |
ResourceData
Application specific resource value.
| Fields | |
|---|---|
fields |
A map of the resource fields keyed by the field name. |
sourceResourceReference |
Deprecated. Use VariableData.variable_source_data instead. |
ResourceFieldsDefinitionRetrievedAction
Contains the definition of each field supported by a resource.
| Fields | |
|---|---|
dynamicResourceDefinitions[] |
Dynamic resource definitions. |
DynamicResourceDefinition
Contains the definition of each field supported by a dynamic resource.
| Fields | |
|---|---|
resourceId |
Unique identifier of the dynamic resource type. e.g. "FORM_RESPONSE_VALUES" |
fields[] |
List of fields supported by this dynamic resource. |
ResourceField
| Fields | |
|---|---|
selector |
The field's reference key used to retrieve its associated value. |
displayText |
The human-readable description of the field that is displayed to the end user during variable selection. |
dataType |
The data type of the field. |
cardinality |
The cardinality of the field. |
ResourceRetrievedAction
Contains the returned resource.
| Fields | |
|---|---|
resourceData |
Custom data in proto format. |
ReturnElementErrorAction
Indicates that an error occurred during element invocation.
| Fields | |
|---|---|
developerErrorMessage |
Developer-facing error message. |
errorLog |
The human-readable error message to be displayed to the end user. |
errorActionability |
Whether the error is actionable by the user. |
retryability |
Whether the error is retryable or not. |
ErrorActionability
Whether the user can attempt to fix the error.
| Enums | |
|---|---|
ERROR_ACTIONABILITY_UNSPECIFIED |
Unspecified error actionability. Do not use. |
ACTIONABLE |
The user can attempt to fix the error. |
NOT_ACTIONABLE |
The error is not fixable by the user. |
Retryability
Whether the error is retryable or not.
| Enums | |
|---|---|
RETRYABILITY_UNSPECIFIED |
Unspecified retryability. Do not use. |
RETRYABLE |
The error is retryable. |
NOT_RETRYABLE |
The error is not retryable. |
ReturnOutputVariablesAction
Contains output variables generated by the executed workflow action.
| Fields | |
|---|---|
variables |
Map of variables keyed by variable ID. |
log |
Log of the executed workflow action. |
SaveWorkflowAction
This type has no fields.
Indicates that the Builder should initiate saving of the workflow.
SourceResourceReference
Reference to a specific instance of a Workspace Resource
| Fields | |
|---|---|
sourceResourceType |
The type of the source resource. |
resourceId |
The unique ID of the resource (e.g., Drive file ID, Gmail message ID). |
SourceResourceType
The type of the source resource. This is used to identify the resource type and the workflow bundle that owns the resource type.
| Fields | |
|---|---|
workflowBundleId |
ID of the workflow bundle that owns this resource type. |
resourceDefinitionId |
The ID of the resource definition within the bundle (e.g., "spreadsheet", "gmailMessage"). |
VariableData
Represents variable data, which can hold multiple values of different types.
| Fields | |
|---|---|
booleanValues[] |
Boolean values. |
integerValues[] |
Integer values. |
stringValues[] |
String values. |
timestampValues[] |
Timestamp values. |
resourceReferences[] |
A list of resource IDs (e.g. "spaces/123"). |
resourceDataValues[] |
Resource data. |
emailAddressValues[] |
Email address values. |
googleUserValues[] |
Google user values in the format |
textFormatValues[] |
Workflow text format values. |
WorkflowValidationErrorAction
Indicates that validation of the workflow element failed with the specified severity.
| Fields | |
|---|---|
severity |
The severity of the validation error. |
Severity
| Enums | |
|---|---|
SEVERITY_UNSPECIFIED |
Unspecified severity. Do not use. |
WARNING |
The error is non-critical and is not blocking publish. |
CRITICAL |
The error is critical and must be fixed before publish. |
WorkflowDataSourceMarkup
* Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.
In a or TextInput widget with MULTI_SELECT type or a SelectionInput, provide data source from Google.DateTimePicker
| Fields | |
|---|---|
includeVariables |
Whether to include variables from the previous step in the data source. |
type |
The type of data source. |
Type
An enum that represents the type of the workflow data source.
| Enums | |
|---|---|
UNKNOWN |
Default value. Don't use. |
USER |
Google Workspace users. The user can only view and select users from their Google Workspace organization. |
SPACE |
Google Chat spaces that the user is a member of. |
USER_WITH_FREE_FORM |
Users can choose to view and select existing members from their Google Workspace organization or manually enter an email address or a valid domain. |
WorkflowTextFormatMarkup
A block of text with rich formatting options including styles, hyperlinks, and interactive elements.
| Fields | |
|---|---|
textFormatElements[] |
A collection of text format elements. |
Chip
A clickable chip in the text format.
| Fields | |
|---|---|
icon |
The icon displayed in the chip. |
label |
The text displayed in the chip. |
url |
The URL to navigate to when the chip is clicked. |
Icon
An icon in the chip.
| Fields | |
|---|---|
Union field icons. The icon displayed in the chip. icons can be only one of the following: |
|
iconUrl |
Display a custom icon hosted at an HTTPS URL. For example: Supported file types include |
materialIconName |
The icon name defined in the Google Material Icon, for example, |
TextFormatElement
A single element within a WorkflowTextFormatMarkup message, which can be a chip, styled text, a hyperlink, or a list container.
| Fields | |
|---|---|
Union field element. Element that represents one of several possible text format elements. element can be only one of the following: |
|
text |
Text in the text format. |
chip |
Clickable chip in the text format. |
styledText |
Styled text in the text format. |
hyperlink |
Hyperlink in the text format. |
listContainer |
List container in the text format. |
Hyperlink
Hyperlink element with text and link.
| Fields | |
|---|---|
link |
The destination URL of the hyperlink. |
text |
The text of the hyperlink. |
ListContainer
Container for list items, where each list item can contain multiple TextFormatElement's.
| Fields | |
|---|---|
listNestLevel |
The nest level of the list. Starts from 0 for the top level, and increases by 1 for each nested list. |
listType |
The type of the list. |
listItems[] |
A collection of list items. |
ListItem
A list item.
| Fields | |
|---|---|
textFormatElements[] |
A collection of text format elements. |
ListType
Enum for different list types.
| Enums | |
|---|---|
LIST_TYPE_UNSPECIFIED |
No list type specified. |
ORDERED |
Ordered list. |
UNORDERED |
Unordered list. |
BLOCKQUOTE |
Blockquote list. |
StyledText
Text element with styles such as bold, italic and color.
| Fields | |
|---|---|
text |
The main content of the text. |
styles[] |
A collection of styles applied to the text. |
fontWeight |
The font weight of the text. |
color |
The color of the text. |
wrapStyle |
The wrap style of the text. |
FontWeight
Enum for different font weights.
| Enums | |
|---|---|
FONT_WEIGHT_UNSPECIFIED |
Standard weight with normal thickness. |
LIGHT |
Lighter weight with reduced thickness. |
MEDIUM |
Intermediate weight between light and bold. |
BOLD |
Heavier weight with increased thickness. |
Style
Enum for different text styles such as italic, underline, etc.
| Enums | |
|---|---|
STYLE_UNSPECIFIED |
No style applied. |
ITALIC |
Italic style. |
UNDERLINE |
Underline style. |
STRIKETHROUGH |
Strikethrough style. |
LINE_BREAK |
Line break. |
UPPERCASE |
Uppercase style. |
CODE |
Code. |
CODE_BLOCK |
Code block. |
WrapStyle
Enum for different wrap styles.
| Enums | |
|---|---|
WRAP_STYLE_UNSPECIFIED |
No wrap style specified. |
NO_WRAP |
No wrap style. |