Versions in this module Expand all Collapse all v0 v0.196.2 Sep 10, 2024 Changes in this version + const GlassLocationScope + const GlassTimelineScope + type Account struct + AuthTokens []*AuthToken + Features []string + ForceSendFields []string + NullFields []string + Password string + UserData []*UserData + func (s *Account) MarshalJSON() ([]byte, error) + type AccountsInsertCall struct + func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall + func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) + func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall + func (c *AccountsInsertCall) Header() http.Header + type AccountsService struct + func NewAccountsService(s *Service) *AccountsService + func (r *AccountsService) Insert(userToken string, accountType string, accountName string, account *Account) *AccountsInsertCall + type Attachment struct + ContentType string + ContentUrl string + ForceSendFields []string + Id string + IsProcessingContent bool + NullFields []string + func (s *Attachment) MarshalJSON() ([]byte, error) + type AttachmentsListResponse struct + ForceSendFields []string + Items []*Attachment + Kind string + NullFields []string + func (s *AttachmentsListResponse) MarshalJSON() ([]byte, error) + type AuthToken struct + AuthToken string + ForceSendFields []string + NullFields []string + Type string + func (s *AuthToken) MarshalJSON() ([]byte, error) + type Command struct + ForceSendFields []string + NullFields []string + Type string + func (s *Command) MarshalJSON() ([]byte, error) + type Contact struct + AcceptCommands []*Command + AcceptTypes []string + DisplayName string + ForceSendFields []string + Id string + ImageUrls []string + Kind string + NullFields []string + PhoneNumber string + Priority int64 + SharingFeatures []string + Source string + SpeakableName string + Type string + func (s *Contact) MarshalJSON() ([]byte, error) + type ContactsDeleteCall struct + func (c *ContactsDeleteCall) Context(ctx context.Context) *ContactsDeleteCall + func (c *ContactsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *ContactsDeleteCall) Fields(s ...googleapi.Field) *ContactsDeleteCall + func (c *ContactsDeleteCall) Header() http.Header + type ContactsGetCall struct + func (c *ContactsGetCall) Context(ctx context.Context) *ContactsGetCall + func (c *ContactsGetCall) Do(opts ...googleapi.CallOption) (*Contact, error) + func (c *ContactsGetCall) Fields(s ...googleapi.Field) *ContactsGetCall + func (c *ContactsGetCall) Header() http.Header + func (c *ContactsGetCall) IfNoneMatch(entityTag string) *ContactsGetCall + type ContactsInsertCall struct + func (c *ContactsInsertCall) Context(ctx context.Context) *ContactsInsertCall + func (c *ContactsInsertCall) Do(opts ...googleapi.CallOption) (*Contact, error) + func (c *ContactsInsertCall) Fields(s ...googleapi.Field) *ContactsInsertCall + func (c *ContactsInsertCall) Header() http.Header + type ContactsListCall struct + func (c *ContactsListCall) Context(ctx context.Context) *ContactsListCall + func (c *ContactsListCall) Do(opts ...googleapi.CallOption) (*ContactsListResponse, error) + func (c *ContactsListCall) Fields(s ...googleapi.Field) *ContactsListCall + func (c *ContactsListCall) Header() http.Header + func (c *ContactsListCall) IfNoneMatch(entityTag string) *ContactsListCall + type ContactsListResponse struct + ForceSendFields []string + Items []*Contact + Kind string + NullFields []string + func (s *ContactsListResponse) MarshalJSON() ([]byte, error) + type ContactsPatchCall struct + func (c *ContactsPatchCall) Context(ctx context.Context) *ContactsPatchCall + func (c *ContactsPatchCall) Do(opts ...googleapi.CallOption) (*Contact, error) + func (c *ContactsPatchCall) Fields(s ...googleapi.Field) *ContactsPatchCall + func (c *ContactsPatchCall) Header() http.Header + type ContactsService struct + func NewContactsService(s *Service) *ContactsService + func (r *ContactsService) Delete(id string) *ContactsDeleteCall + func (r *ContactsService) Get(id string) *ContactsGetCall + func (r *ContactsService) Insert(contact *Contact) *ContactsInsertCall + func (r *ContactsService) List() *ContactsListCall + func (r *ContactsService) Patch(id string, contact *Contact) *ContactsPatchCall + func (r *ContactsService) Update(id string, contact *Contact) *ContactsUpdateCall + type ContactsUpdateCall struct + func (c *ContactsUpdateCall) Context(ctx context.Context) *ContactsUpdateCall + func (c *ContactsUpdateCall) Do(opts ...googleapi.CallOption) (*Contact, error) + func (c *ContactsUpdateCall) Fields(s ...googleapi.Field) *ContactsUpdateCall + func (c *ContactsUpdateCall) Header() http.Header + type Location struct + Accuracy float64 + Address string + DisplayName string + ForceSendFields []string + Id string + Kind string + Latitude float64 + Longitude float64 + NullFields []string + Timestamp string + func (s *Location) MarshalJSON() ([]byte, error) + func (s *Location) UnmarshalJSON(data []byte) error + type LocationsGetCall struct + func (c *LocationsGetCall) Context(ctx context.Context) *LocationsGetCall + func (c *LocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) + func (c *LocationsGetCall) Fields(s ...googleapi.Field) *LocationsGetCall + func (c *LocationsGetCall) Header() http.Header + func (c *LocationsGetCall) IfNoneMatch(entityTag string) *LocationsGetCall + type LocationsListCall struct + func (c *LocationsListCall) Context(ctx context.Context) *LocationsListCall + func (c *LocationsListCall) Do(opts ...googleapi.CallOption) (*LocationsListResponse, error) + func (c *LocationsListCall) Fields(s ...googleapi.Field) *LocationsListCall + func (c *LocationsListCall) Header() http.Header + func (c *LocationsListCall) IfNoneMatch(entityTag string) *LocationsListCall + type LocationsListResponse struct + ForceSendFields []string + Items []*Location + Kind string + NullFields []string + func (s *LocationsListResponse) MarshalJSON() ([]byte, error) + type LocationsService struct + func NewLocationsService(s *Service) *LocationsService + func (r *LocationsService) Get(id string) *LocationsGetCall + func (r *LocationsService) List() *LocationsListCall + type MenuItem struct + Action string + ContextualCommand string + ForceSendFields []string + Id string + NullFields []string + Payload string + RemoveWhenSelected bool + Values []*MenuValue + func (s *MenuItem) MarshalJSON() ([]byte, error) + type MenuValue struct + DisplayName string + ForceSendFields []string + IconUrl string + NullFields []string + State string + func (s *MenuValue) MarshalJSON() ([]byte, error) + type Notification struct + Collection string + ForceSendFields []string + ItemId string + NullFields []string + Operation string + UserActions []*UserAction + UserToken string + VerifyToken string + func (s *Notification) MarshalJSON() ([]byte, error) + type NotificationConfig struct + DeliveryTime string + ForceSendFields []string + Level string + NullFields []string + func (s *NotificationConfig) MarshalJSON() ([]byte, error) + type Service struct + Accounts *AccountsService + BasePath string + Contacts *ContactsService + Locations *LocationsService + Settings *SettingsService + Subscriptions *SubscriptionsService + Timeline *TimelineService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type Setting struct + ForceSendFields []string + Id string + Kind string + NullFields []string + Value string + func (s *Setting) MarshalJSON() ([]byte, error) + type SettingsGetCall struct + func (c *SettingsGetCall) Context(ctx context.Context) *SettingsGetCall + func (c *SettingsGetCall) Do(opts ...googleapi.CallOption) (*Setting, error) + func (c *SettingsGetCall) Fields(s ...googleapi.Field) *SettingsGetCall + func (c *SettingsGetCall) Header() http.Header + func (c *SettingsGetCall) IfNoneMatch(entityTag string) *SettingsGetCall + type SettingsService struct + func NewSettingsService(s *Service) *SettingsService + func (r *SettingsService) Get(id string) *SettingsGetCall + type Subscription struct + CallbackUrl string + Collection string + ForceSendFields []string + Id string + Kind string + Notification *Notification + NullFields []string + Operation []string + Updated string + UserToken string + VerifyToken string + func (s *Subscription) MarshalJSON() ([]byte, error) + type SubscriptionsDeleteCall struct + func (c *SubscriptionsDeleteCall) Context(ctx context.Context) *SubscriptionsDeleteCall + func (c *SubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *SubscriptionsDeleteCall) Fields(s ...googleapi.Field) *SubscriptionsDeleteCall + func (c *SubscriptionsDeleteCall) Header() http.Header + type SubscriptionsInsertCall struct + func (c *SubscriptionsInsertCall) Context(ctx context.Context) *SubscriptionsInsertCall + func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscription, error) + func (c *SubscriptionsInsertCall) Fields(s ...googleapi.Field) *SubscriptionsInsertCall + func (c *SubscriptionsInsertCall) Header() http.Header + type SubscriptionsListCall struct + func (c *SubscriptionsListCall) Context(ctx context.Context) *SubscriptionsListCall + func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*SubscriptionsListResponse, error) + func (c *SubscriptionsListCall) Fields(s ...googleapi.Field) *SubscriptionsListCall + func (c *SubscriptionsListCall) Header() http.Header + func (c *SubscriptionsListCall) IfNoneMatch(entityTag string) *SubscriptionsListCall + type SubscriptionsListResponse struct + ForceSendFields []string + Items []*Subscription + Kind string + NullFields []string + func (s *SubscriptionsListResponse) MarshalJSON() ([]byte, error) + type SubscriptionsService struct + func NewSubscriptionsService(s *Service) *SubscriptionsService + func (r *SubscriptionsService) Delete(id string) *SubscriptionsDeleteCall + func (r *SubscriptionsService) Insert(subscription *Subscription) *SubscriptionsInsertCall + func (r *SubscriptionsService) List() *SubscriptionsListCall + func (r *SubscriptionsService) Update(id string, subscription *Subscription) *SubscriptionsUpdateCall + type SubscriptionsUpdateCall struct + func (c *SubscriptionsUpdateCall) Context(ctx context.Context) *SubscriptionsUpdateCall + func (c *SubscriptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Subscription, error) + func (c *SubscriptionsUpdateCall) Fields(s ...googleapi.Field) *SubscriptionsUpdateCall + func (c *SubscriptionsUpdateCall) Header() http.Header + type TimelineAttachmentsDeleteCall struct + func (c *TimelineAttachmentsDeleteCall) Context(ctx context.Context) *TimelineAttachmentsDeleteCall + func (c *TimelineAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *TimelineAttachmentsDeleteCall) Fields(s ...googleapi.Field) *TimelineAttachmentsDeleteCall + func (c *TimelineAttachmentsDeleteCall) Header() http.Header + type TimelineAttachmentsGetCall struct + func (c *TimelineAttachmentsGetCall) Context(ctx context.Context) *TimelineAttachmentsGetCall + func (c *TimelineAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*Attachment, error) + func (c *TimelineAttachmentsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) + func (c *TimelineAttachmentsGetCall) Fields(s ...googleapi.Field) *TimelineAttachmentsGetCall + func (c *TimelineAttachmentsGetCall) Header() http.Header + func (c *TimelineAttachmentsGetCall) IfNoneMatch(entityTag string) *TimelineAttachmentsGetCall + type TimelineAttachmentsInsertCall struct + func (c *TimelineAttachmentsInsertCall) Context(ctx context.Context) *TimelineAttachmentsInsertCall + func (c *TimelineAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Attachment, error) + func (c *TimelineAttachmentsInsertCall) Fields(s ...googleapi.Field) *TimelineAttachmentsInsertCall + func (c *TimelineAttachmentsInsertCall) Header() http.Header + func (c *TimelineAttachmentsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineAttachmentsInsertCall + func (c *TimelineAttachmentsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineAttachmentsInsertCall + func (c *TimelineAttachmentsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineAttachmentsInsertCall + type TimelineAttachmentsListCall struct + func (c *TimelineAttachmentsListCall) Context(ctx context.Context) *TimelineAttachmentsListCall + func (c *TimelineAttachmentsListCall) Do(opts ...googleapi.CallOption) (*AttachmentsListResponse, error) + func (c *TimelineAttachmentsListCall) Fields(s ...googleapi.Field) *TimelineAttachmentsListCall + func (c *TimelineAttachmentsListCall) Header() http.Header + func (c *TimelineAttachmentsListCall) IfNoneMatch(entityTag string) *TimelineAttachmentsListCall + type TimelineAttachmentsService struct + func NewTimelineAttachmentsService(s *Service) *TimelineAttachmentsService + func (r *TimelineAttachmentsService) Delete(itemId string, attachmentId string) *TimelineAttachmentsDeleteCall + func (r *TimelineAttachmentsService) Get(itemId string, attachmentId string) *TimelineAttachmentsGetCall + func (r *TimelineAttachmentsService) Insert(itemId string) *TimelineAttachmentsInsertCall + func (r *TimelineAttachmentsService) List(itemId string) *TimelineAttachmentsListCall + type TimelineDeleteCall struct + func (c *TimelineDeleteCall) Context(ctx context.Context) *TimelineDeleteCall + func (c *TimelineDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *TimelineDeleteCall) Fields(s ...googleapi.Field) *TimelineDeleteCall + func (c *TimelineDeleteCall) Header() http.Header + type TimelineGetCall struct + func (c *TimelineGetCall) Context(ctx context.Context) *TimelineGetCall + func (c *TimelineGetCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) + func (c *TimelineGetCall) Fields(s ...googleapi.Field) *TimelineGetCall + func (c *TimelineGetCall) Header() http.Header + func (c *TimelineGetCall) IfNoneMatch(entityTag string) *TimelineGetCall + type TimelineInsertCall struct + func (c *TimelineInsertCall) Context(ctx context.Context) *TimelineInsertCall + func (c *TimelineInsertCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) + func (c *TimelineInsertCall) Fields(s ...googleapi.Field) *TimelineInsertCall + func (c *TimelineInsertCall) Header() http.Header + func (c *TimelineInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineInsertCall + func (c *TimelineInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineInsertCall + func (c *TimelineInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineInsertCall + type TimelineItem struct + Attachments []*Attachment + BundleId string + CanonicalUrl string + Created string + Creator *Contact + DisplayTime string + Etag string + ForceSendFields []string + Html string + Id string + InReplyTo string + IsBundleCover bool + IsDeleted bool + IsPinned bool + Kind string + Location *Location + MenuItems []*MenuItem + Notification *NotificationConfig + NullFields []string + PinScore int64 + Recipients []*Contact + SelfLink string + SourceItemId string + SpeakableText string + SpeakableType string + Text string + Title string + Updated string + func (s *TimelineItem) MarshalJSON() ([]byte, error) + type TimelineListCall struct + func (c *TimelineListCall) BundleId(bundleId string) *TimelineListCall + func (c *TimelineListCall) Context(ctx context.Context) *TimelineListCall + func (c *TimelineListCall) Do(opts ...googleapi.CallOption) (*TimelineListResponse, error) + func (c *TimelineListCall) Fields(s ...googleapi.Field) *TimelineListCall + func (c *TimelineListCall) Header() http.Header + func (c *TimelineListCall) IfNoneMatch(entityTag string) *TimelineListCall + func (c *TimelineListCall) IncludeDeleted(includeDeleted bool) *TimelineListCall + func (c *TimelineListCall) MaxResults(maxResults int64) *TimelineListCall + func (c *TimelineListCall) OrderBy(orderBy string) *TimelineListCall + func (c *TimelineListCall) PageToken(pageToken string) *TimelineListCall + func (c *TimelineListCall) Pages(ctx context.Context, f func(*TimelineListResponse) error) error + func (c *TimelineListCall) PinnedOnly(pinnedOnly bool) *TimelineListCall + func (c *TimelineListCall) SourceItemId(sourceItemId string) *TimelineListCall + type TimelineListResponse struct + ForceSendFields []string + Items []*TimelineItem + Kind string + NextPageToken string + NullFields []string + func (s *TimelineListResponse) MarshalJSON() ([]byte, error) + type TimelinePatchCall struct + func (c *TimelinePatchCall) Context(ctx context.Context) *TimelinePatchCall + func (c *TimelinePatchCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) + func (c *TimelinePatchCall) Fields(s ...googleapi.Field) *TimelinePatchCall + func (c *TimelinePatchCall) Header() http.Header + type TimelineService struct + Attachments *TimelineAttachmentsService + func NewTimelineService(s *Service) *TimelineService + func (r *TimelineService) Delete(id string) *TimelineDeleteCall + func (r *TimelineService) Get(id string) *TimelineGetCall + func (r *TimelineService) Insert(timelineitem *TimelineItem) *TimelineInsertCall + func (r *TimelineService) List() *TimelineListCall + func (r *TimelineService) Patch(id string, timelineitem *TimelineItem) *TimelinePatchCall + func (r *TimelineService) Update(id string, timelineitem *TimelineItem) *TimelineUpdateCall + type TimelineUpdateCall struct + func (c *TimelineUpdateCall) Context(ctx context.Context) *TimelineUpdateCall + func (c *TimelineUpdateCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) + func (c *TimelineUpdateCall) Fields(s ...googleapi.Field) *TimelineUpdateCall + func (c *TimelineUpdateCall) Header() http.Header + func (c *TimelineUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineUpdateCall + func (c *TimelineUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineUpdateCall + func (c *TimelineUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineUpdateCall + type UserAction struct + ForceSendFields []string + NullFields []string + Payload string + Type string + func (s *UserAction) MarshalJSON() ([]byte, error) + type UserData struct + ForceSendFields []string + Key string + NullFields []string + Value string + func (s *UserData) MarshalJSON() ([]byte, error)