Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + type ActionParameter struct + ForceSendFields []string + Key string + NullFields []string + Value string + func (s *ActionParameter) MarshalJSON() ([]byte, error) + type ActionResponse struct + ForceSendFields []string + NullFields []string + Type string + Url string + func (s *ActionResponse) MarshalJSON() ([]byte, error) + type Annotation struct + ForceSendFields []string + Length int64 + NullFields []string + SlashCommand *SlashCommandMetadata + StartIndex int64 + Type string + UserMention *UserMentionMetadata + func (s *Annotation) MarshalJSON() ([]byte, error) + type Attachment struct + AttachmentDataRef *AttachmentDataRef + ContentName string + ContentType string + DownloadUri string + DriveDataRef *DriveDataRef + ForceSendFields []string + Name string + NullFields []string + Source string + ThumbnailUri string + func (s *Attachment) MarshalJSON() ([]byte, error) + type AttachmentDataRef struct + ForceSendFields []string + NullFields []string + ResourceName string + func (s *AttachmentDataRef) MarshalJSON() ([]byte, error) + type Button struct + ForceSendFields []string + ImageButton *ImageButton + NullFields []string + TextButton *TextButton + func (s *Button) MarshalJSON() ([]byte, error) + type Card struct + CardActions []*CardAction + ForceSendFields []string + Header *CardHeader + Name string + NullFields []string + Sections []*Section + func (s *Card) MarshalJSON() ([]byte, error) + type CardAction struct + ActionLabel string + ForceSendFields []string + NullFields []string + OnClick *OnClick + func (s *CardAction) MarshalJSON() ([]byte, error) + type CardHeader struct + ForceSendFields []string + ImageStyle string + ImageUrl string + NullFields []string + Subtitle string + Title string + func (s *CardHeader) MarshalJSON() ([]byte, error) + type DeprecatedEvent struct + Action *FormAction + ConfigCompleteRedirectUrl string + EventTime string + ForceSendFields []string + Message *Message + NullFields []string + Space *Space + ThreadKey string + Token string + Type string + User *User + func (s *DeprecatedEvent) MarshalJSON() ([]byte, error) + type DmsConversationsMessagesCall struct + func (c *DmsConversationsMessagesCall) Context(ctx context.Context) *DmsConversationsMessagesCall + func (c *DmsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *DmsConversationsMessagesCall) Fields(s ...googleapi.Field) *DmsConversationsMessagesCall + func (c *DmsConversationsMessagesCall) Header() http.Header + func (c *DmsConversationsMessagesCall) ThreadKey(threadKey string) *DmsConversationsMessagesCall + type DmsConversationsService struct + func NewDmsConversationsService(s *Service) *DmsConversationsService + func (r *DmsConversationsService) Messages(parent string, message *Message) *DmsConversationsMessagesCall + type DmsMessagesCall struct + func (c *DmsMessagesCall) Context(ctx context.Context) *DmsMessagesCall + func (c *DmsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *DmsMessagesCall) Fields(s ...googleapi.Field) *DmsMessagesCall + func (c *DmsMessagesCall) Header() http.Header + func (c *DmsMessagesCall) ThreadKey(threadKey string) *DmsMessagesCall + type DmsService struct + Conversations *DmsConversationsService + func NewDmsService(s *Service) *DmsService + func (r *DmsService) Messages(parent string, message *Message) *DmsMessagesCall + type DriveDataRef struct + DriveFileId string + ForceSendFields []string + NullFields []string + func (s *DriveDataRef) MarshalJSON() ([]byte, error) + type Empty struct + type FormAction struct + ActionMethodName string + ForceSendFields []string + NullFields []string + Parameters []*ActionParameter + func (s *FormAction) MarshalJSON() ([]byte, error) + type Image struct + AspectRatio float64 + ForceSendFields []string + ImageUrl string + NullFields []string + OnClick *OnClick + func (s *Image) MarshalJSON() ([]byte, error) + func (s *Image) UnmarshalJSON(data []byte) error + type ImageButton struct + ForceSendFields []string + Icon string + IconUrl string + Name string + NullFields []string + OnClick *OnClick + func (s *ImageButton) MarshalJSON() ([]byte, error) + type KeyValue struct + BottomLabel string + Button *Button + Content string + ContentMultiline bool + ForceSendFields []string + Icon string + IconUrl string + NullFields []string + OnClick *OnClick + TopLabel string + func (s *KeyValue) MarshalJSON() ([]byte, error) + type ListMembershipsResponse struct + ForceSendFields []string + Memberships []*Membership + NextPageToken string + NullFields []string + func (s *ListMembershipsResponse) MarshalJSON() ([]byte, error) + type ListSpacesResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Spaces []*Space + func (s *ListSpacesResponse) MarshalJSON() ([]byte, error) + type Media struct + ForceSendFields []string + NullFields []string + ResourceName string + func (s *Media) MarshalJSON() ([]byte, error) + type MediaDownloadCall struct + func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall + func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) + func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error) + func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall + func (c *MediaDownloadCall) Header() http.Header + func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall + type MediaService struct + func NewMediaService(s *Service) *MediaService + func (r *MediaService) Download(resourceName string) *MediaDownloadCall + type Membership struct + CreateTime string + ForceSendFields []string + Member *User + Name string + NullFields []string + State string + func (s *Membership) MarshalJSON() ([]byte, error) + type Message struct + ActionResponse *ActionResponse + Annotations []*Annotation + ArgumentText string + Attachment []*Attachment + Cards []*Card + CreateTime string + FallbackText string + ForceSendFields []string + Name string + NullFields []string + PreviewText string + Sender *User + SlashCommand *SlashCommand + Space *Space + Text string + Thread *Thread + func (s *Message) MarshalJSON() ([]byte, error) + type OnClick struct + Action *FormAction + ForceSendFields []string + NullFields []string + OpenLink *OpenLink + func (s *OnClick) MarshalJSON() ([]byte, error) + type OpenLink struct + ForceSendFields []string + NullFields []string + Url string + func (s *OpenLink) MarshalJSON() ([]byte, error) + type RoomsConversationsMessagesCall struct + func (c *RoomsConversationsMessagesCall) Context(ctx context.Context) *RoomsConversationsMessagesCall + func (c *RoomsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *RoomsConversationsMessagesCall) Fields(s ...googleapi.Field) *RoomsConversationsMessagesCall + func (c *RoomsConversationsMessagesCall) Header() http.Header + func (c *RoomsConversationsMessagesCall) ThreadKey(threadKey string) *RoomsConversationsMessagesCall + type RoomsConversationsService struct + func NewRoomsConversationsService(s *Service) *RoomsConversationsService + func (r *RoomsConversationsService) Messages(parent string, message *Message) *RoomsConversationsMessagesCall + type RoomsMessagesCall struct + func (c *RoomsMessagesCall) Context(ctx context.Context) *RoomsMessagesCall + func (c *RoomsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *RoomsMessagesCall) Fields(s ...googleapi.Field) *RoomsMessagesCall + func (c *RoomsMessagesCall) Header() http.Header + func (c *RoomsMessagesCall) ThreadKey(threadKey string) *RoomsMessagesCall + type RoomsService struct + Conversations *RoomsConversationsService + func NewRoomsService(s *Service) *RoomsService + func (r *RoomsService) Messages(parent string, message *Message) *RoomsMessagesCall + type Section struct + ForceSendFields []string + Header string + NullFields []string + Widgets []*WidgetMarkup + func (s *Section) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Dms *DmsService + Media *MediaService + Rooms *RoomsService + Spaces *SpacesService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SlashCommand struct + CommandId int64 + ForceSendFields []string + NullFields []string + func (s *SlashCommand) MarshalJSON() ([]byte, error) + type SlashCommandMetadata struct + Bot *User + CommandId int64 + CommandName string + ForceSendFields []string + NullFields []string + TriggersDialog bool + Type string + func (s *SlashCommandMetadata) MarshalJSON() ([]byte, error) + type Space struct + DisplayName string + ForceSendFields []string + Name string + NullFields []string + SingleUserBotDm bool + Threaded bool + Type string + func (s *Space) MarshalJSON() ([]byte, error) + type SpacesGetCall struct + func (c *SpacesGetCall) Context(ctx context.Context) *SpacesGetCall + func (c *SpacesGetCall) Do(opts ...googleapi.CallOption) (*Space, error) + func (c *SpacesGetCall) Fields(s ...googleapi.Field) *SpacesGetCall + func (c *SpacesGetCall) Header() http.Header + func (c *SpacesGetCall) IfNoneMatch(entityTag string) *SpacesGetCall + type SpacesListCall struct + func (c *SpacesListCall) Context(ctx context.Context) *SpacesListCall + func (c *SpacesListCall) Do(opts ...googleapi.CallOption) (*ListSpacesResponse, error) + func (c *SpacesListCall) Fields(s ...googleapi.Field) *SpacesListCall + func (c *SpacesListCall) Header() http.Header + func (c *SpacesListCall) IfNoneMatch(entityTag string) *SpacesListCall + func (c *SpacesListCall) PageSize(pageSize int64) *SpacesListCall + func (c *SpacesListCall) PageToken(pageToken string) *SpacesListCall + func (c *SpacesListCall) Pages(ctx context.Context, f func(*ListSpacesResponse) error) error + type SpacesMembersGetCall struct + func (c *SpacesMembersGetCall) Context(ctx context.Context) *SpacesMembersGetCall + func (c *SpacesMembersGetCall) Do(opts ...googleapi.CallOption) (*Membership, error) + func (c *SpacesMembersGetCall) Fields(s ...googleapi.Field) *SpacesMembersGetCall + func (c *SpacesMembersGetCall) Header() http.Header + func (c *SpacesMembersGetCall) IfNoneMatch(entityTag string) *SpacesMembersGetCall + type SpacesMembersListCall struct + func (c *SpacesMembersListCall) Context(ctx context.Context) *SpacesMembersListCall + func (c *SpacesMembersListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error) + func (c *SpacesMembersListCall) Fields(s ...googleapi.Field) *SpacesMembersListCall + func (c *SpacesMembersListCall) Header() http.Header + func (c *SpacesMembersListCall) IfNoneMatch(entityTag string) *SpacesMembersListCall + func (c *SpacesMembersListCall) PageSize(pageSize int64) *SpacesMembersListCall + func (c *SpacesMembersListCall) PageToken(pageToken string) *SpacesMembersListCall + func (c *SpacesMembersListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error + type SpacesMembersService struct + func NewSpacesMembersService(s *Service) *SpacesMembersService + func (r *SpacesMembersService) Get(name string) *SpacesMembersGetCall + func (r *SpacesMembersService) List(parent string) *SpacesMembersListCall + type SpacesMessagesAttachmentsGetCall struct + func (c *SpacesMessagesAttachmentsGetCall) Context(ctx context.Context) *SpacesMessagesAttachmentsGetCall + func (c *SpacesMessagesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*Attachment, error) + func (c *SpacesMessagesAttachmentsGetCall) Fields(s ...googleapi.Field) *SpacesMessagesAttachmentsGetCall + func (c *SpacesMessagesAttachmentsGetCall) Header() http.Header + func (c *SpacesMessagesAttachmentsGetCall) IfNoneMatch(entityTag string) *SpacesMessagesAttachmentsGetCall + type SpacesMessagesAttachmentsService struct + func NewSpacesMessagesAttachmentsService(s *Service) *SpacesMessagesAttachmentsService + func (r *SpacesMessagesAttachmentsService) Get(name string) *SpacesMessagesAttachmentsGetCall + type SpacesMessagesCreateCall struct + func (c *SpacesMessagesCreateCall) Context(ctx context.Context) *SpacesMessagesCreateCall + func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *SpacesMessagesCreateCall) Fields(s ...googleapi.Field) *SpacesMessagesCreateCall + func (c *SpacesMessagesCreateCall) Header() http.Header + func (c *SpacesMessagesCreateCall) ThreadKey(threadKey string) *SpacesMessagesCreateCall + type SpacesMessagesDeleteCall struct + func (c *SpacesMessagesDeleteCall) Context(ctx context.Context) *SpacesMessagesDeleteCall + func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *SpacesMessagesDeleteCall) Fields(s ...googleapi.Field) *SpacesMessagesDeleteCall + func (c *SpacesMessagesDeleteCall) Header() http.Header + type SpacesMessagesGetCall struct + func (c *SpacesMessagesGetCall) Context(ctx context.Context) *SpacesMessagesGetCall + func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *SpacesMessagesGetCall) Fields(s ...googleapi.Field) *SpacesMessagesGetCall + func (c *SpacesMessagesGetCall) Header() http.Header + func (c *SpacesMessagesGetCall) IfNoneMatch(entityTag string) *SpacesMessagesGetCall + type SpacesMessagesService struct + Attachments *SpacesMessagesAttachmentsService + func NewSpacesMessagesService(s *Service) *SpacesMessagesService + func (r *SpacesMessagesService) Create(parent string, message *Message) *SpacesMessagesCreateCall + func (r *SpacesMessagesService) Delete(name string) *SpacesMessagesDeleteCall + func (r *SpacesMessagesService) Get(name string) *SpacesMessagesGetCall + func (r *SpacesMessagesService) Update(name string, message *Message) *SpacesMessagesUpdateCall + type SpacesMessagesUpdateCall struct + func (c *SpacesMessagesUpdateCall) Context(ctx context.Context) *SpacesMessagesUpdateCall + func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *SpacesMessagesUpdateCall) Fields(s ...googleapi.Field) *SpacesMessagesUpdateCall + func (c *SpacesMessagesUpdateCall) Header() http.Header + func (c *SpacesMessagesUpdateCall) UpdateMask(updateMask string) *SpacesMessagesUpdateCall + type SpacesService struct + Members *SpacesMembersService + Messages *SpacesMessagesService + func NewSpacesService(s *Service) *SpacesService + func (r *SpacesService) Get(name string) *SpacesGetCall + func (r *SpacesService) List() *SpacesListCall + type TextButton struct + ForceSendFields []string + NullFields []string + OnClick *OnClick + Text string + func (s *TextButton) MarshalJSON() ([]byte, error) + type TextParagraph struct + ForceSendFields []string + NullFields []string + Text string + func (s *TextParagraph) MarshalJSON() ([]byte, error) + type Thread struct + ForceSendFields []string + Name string + NullFields []string + func (s *Thread) MarshalJSON() ([]byte, error) + type User struct + DisplayName string + DomainId string + ForceSendFields []string + IsAnonymous bool + Name string + NullFields []string + Type string + func (s *User) MarshalJSON() ([]byte, error) + type UserMentionMetadata struct + ForceSendFields []string + NullFields []string + Type string + User *User + func (s *UserMentionMetadata) MarshalJSON() ([]byte, error) + type WidgetMarkup struct + Buttons []*Button + ForceSendFields []string + Image *Image + KeyValue *KeyValue + NullFields []string + TextParagraph *TextParagraph + func (s *WidgetMarkup) MarshalJSON() ([]byte, error)