chat.v1 library Null safety

Google Chat API - v1

Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.

For more information, see developers.google.com/hangouts/chat

Create an instance of HangoutsChatApi to access these resources:

Classes

ActionParameter
List of string parameters to supply when the action method is invoked. [...]
ActionResponse
Parameters that a bot can use to configure how it's response is posted.
ActionStatus
ActionStatus represents status of a request from the bot developer's side. [...]
Annotation
Annotations associated with the plain-text body of the message. [...]
Attachment
An attachment in Hangouts Chat.
AttachmentDataRef
A reference to the data of an attachment.
Button
A button. [...]
ByteRange
Specifies a range of media.
Card
A card is a UI element that can contain UI widgets such as texts, images.
CardAction
A card action is the action associated with the card. [...]
CardHeader
Color
Represents a color in the RGBA color space. [...]
CommonEventObject
Next available ID = 8
DateInput
Input Parameter for Date Picker widget.
DateTimeInput
Input Parameter for Date and Time Picker widget.
DeprecatedEvent
Google Chat events.
Dialog
Wrapper around the card body of the dialog.
DialogAction
Contains dialog if present as well as the ActionStatus for the request sent from user.
DmsConversationsResource
DmsResource
DownloadOptions
Represents options for downloading media. [...]
DriveDataRef
A reference to the data of a drive attachment.
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. [...]
FormAction
A form action describes the behavior when the form is submitted. [...]
GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted. [...]
GoogleAppsCardV1ActionParameter
List of string parameters to supply when the action method is invoked. [...]
GoogleAppsCardV1BorderStyle
Represents the complete border style applied to widgets.
GoogleAppsCardV1Button
A button. [...]
GoogleAppsCardV1ButtonList
A list of buttons layed out horizontally.
GoogleAppsCardV1Card
A card is a UI element that can contain UI widgets such as text and images. [...]
GoogleAppsCardV1CardAction
A card action is the action associated with the card. [...]
GoogleAppsCardV1CardFixedFooter
A persistent (sticky) footer that is added to the bottom of the card.
GoogleAppsCardV1CardHeader
GoogleAppsCardV1DateTimePicker
The widget that lets users to specify a date and time.
GoogleAppsCardV1DecoratedText
A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.
GoogleAppsCardV1Divider
A divider that appears in between widgets.
GoogleAppsCardV1Grid
Represents a Grid widget that displays items in a configurable grid layout.
GoogleAppsCardV1GridItem
Represents a single item in the grid layout.
GoogleAppsCardV1Icon
GoogleAppsCardV1Image
An image that is specified by a URL and can have an onClick action.
GoogleAppsCardV1ImageComponent
GoogleAppsCardV1ImageCropStyle
Represents the crop style applied to an image.
GoogleAppsCardV1OnClick
GoogleAppsCardV1Section
A section contains a collection of widgets that are rendered vertically in the order that they are specified. [...]
GoogleAppsCardV1SelectionInput
A widget that creates a UI item (for example, a drop-down list) with options for users to select.
GoogleAppsCardV1SelectionItem
The item in the switch control. [...]
GoogleAppsCardV1SuggestionItem
A suggestion item. [...]
GoogleAppsCardV1Suggestions
A container wrapping elements necessary for showing suggestion items used in text input autocomplete.
GoogleAppsCardV1SwitchControl
GoogleAppsCardV1TextInput
A text input is a UI item where users can input text. [...]
GoogleAppsCardV1TextParagraph
A paragraph of text that supports formatting. [...]
GoogleAppsCardV1Widget
A widget is a UI element that presents texts, images, etc.
HangoutsChatApi
Enables bots to fetch information and perform actions in Google Chat. [...]
Image
An image that is specified by a URL and can have an onclick action.
ImageButton
An image button with an onclick action.
Inputs
The inputs with widgets.
KeyValue
A UI element contains a key (label) and a value (content). [...]
ListMembershipsResponse
ListSpacesResponse
Media
Media resource.
MediaResource
Membership
Represents a membership relation in Hangouts Chat.
Message
A message in Hangouts Chat.
OnClick
An onclick action (e.g. open a link).
A link that opens a new window.
PartialDownloadOptions
Options for downloading a Media.
ResumableUploadOptions
Specifies options for resumable uploads.
RoomsConversationsResource
RoomsResource
Section
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. [...]
SlashCommand
A Slash Command in Chat.
SlashCommandMetadata
Annotation metadata for slash commands (/).
Space
A room or DM in Hangouts Chat.
SpacesMembersResource
SpacesMessagesAttachmentsResource
SpacesMessagesResource
SpacesResource
StringInputs
Input parameter for regular widgets. [...]
TextButton
A button with text and onclick action.
TextParagraph
A paragraph of text. [...]
Thread
A thread in Hangouts Chat.
TimeInput
Input Parameter for Time Picker widget.
TimeZone
The timezone id and offset. [...]
UploadOptions
Represents options for uploading a Media.
User
A user in Google Chat.
UserMentionMetadata
Annotation metadata for user mentions (@).
WidgetMarkup
A widget is a UI element that presents texts, images, etc.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.