Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const CloudPlatformScope + type AndroidConfig struct + CollapseKey string + Data map[string]string + DirectBootOk bool + FcmOptions *AndroidFcmOptions + ForceSendFields []string + Notification *AndroidNotification + NullFields []string + Priority string + RestrictedPackageName string + Ttl string + func (s *AndroidConfig) MarshalJSON() ([]byte, error) + type AndroidFcmOptions struct + AnalyticsLabel string + ForceSendFields []string + NullFields []string + func (s *AndroidFcmOptions) MarshalJSON() ([]byte, error) + type AndroidNotification struct + Body string + BodyLocArgs []string + BodyLocKey string + ChannelId string + ClickAction string + Color string + DefaultLightSettings bool + DefaultSound bool + DefaultVibrateTimings bool + EventTime string + ForceSendFields []string + Icon string + Image string + LightSettings *LightSettings + LocalOnly bool + NotificationCount int64 + NotificationPriority string + NullFields []string + Sound string + Sticky bool + Tag string + Ticker string + Title string + TitleLocArgs []string + TitleLocKey string + VibrateTimings []string + Visibility string + func (s *AndroidNotification) MarshalJSON() ([]byte, error) + type ApnsConfig struct + FcmOptions *ApnsFcmOptions + ForceSendFields []string + Headers map[string]string + NullFields []string + Payload googleapi.RawMessage + func (s *ApnsConfig) MarshalJSON() ([]byte, error) + type ApnsFcmOptions struct + AnalyticsLabel string + ForceSendFields []string + Image string + NullFields []string + func (s *ApnsFcmOptions) MarshalJSON() ([]byte, error) + type Color struct + Alpha float64 + Blue float64 + ForceSendFields []string + Green float64 + NullFields []string + Red float64 + func (s *Color) MarshalJSON() ([]byte, error) + func (s *Color) UnmarshalJSON(data []byte) error + type FcmOptions struct + AnalyticsLabel string + ForceSendFields []string + NullFields []string + func (s *FcmOptions) MarshalJSON() ([]byte, error) + type LightSettings struct + Color *Color + ForceSendFields []string + LightOffDuration string + LightOnDuration string + NullFields []string + func (s *LightSettings) MarshalJSON() ([]byte, error) + type Message struct + Android *AndroidConfig + Apns *ApnsConfig + Condition string + Data map[string]string + FcmOptions *FcmOptions + ForceSendFields []string + Name string + Notification *Notification + NullFields []string + Token string + Topic string + Webpush *WebpushConfig + func (s *Message) MarshalJSON() ([]byte, error) + type Notification struct + Body string + ForceSendFields []string + Image string + NullFields []string + Title string + func (s *Notification) MarshalJSON() ([]byte, error) + type ProjectsMessagesSendCall struct + func (c *ProjectsMessagesSendCall) Context(ctx context.Context) *ProjectsMessagesSendCall + func (c *ProjectsMessagesSendCall) Do(opts ...googleapi.CallOption) (*Message, error) + func (c *ProjectsMessagesSendCall) Fields(s ...googleapi.Field) *ProjectsMessagesSendCall + func (c *ProjectsMessagesSendCall) Header() http.Header + type ProjectsMessagesService struct + func NewProjectsMessagesService(s *Service) *ProjectsMessagesService + func (r *ProjectsMessagesService) Send(parentid string, sendmessagerequest *SendMessageRequest) *ProjectsMessagesSendCall + type ProjectsService struct + Messages *ProjectsMessagesService + func NewProjectsService(s *Service) *ProjectsService + type SendMessageRequest struct + ForceSendFields []string + Message *Message + NullFields []string + ValidateOnly bool + func (s *SendMessageRequest) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Projects *ProjectsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type WebpushConfig struct + Data map[string]string + FcmOptions *WebpushFcmOptions + ForceSendFields []string + Headers map[string]string + Notification googleapi.RawMessage + NullFields []string + func (s *WebpushConfig) MarshalJSON() ([]byte, error) + type WebpushFcmOptions struct + AnalyticsLabel string + ForceSendFields []string + Link string + NullFields []string + func (s *WebpushFcmOptions) MarshalJSON() ([]byte, error)