Documentation
¶
Overview ¶
Package health provides access to the Google Health API.
For product documentation, see: https://developers.google.com/health
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/health/v4" ... ctx := context.Background() healthService, err := health.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use google.golang.org/api/option.WithScopes:
healthService, err := health.NewService(ctx, option.WithScopes(health.GooglehealthSleepWriteonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
healthService, err := health.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
healthService, err := health.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type ActiveEnergyBurned
- type ActiveEnergyBurnedRollupValue
- type ActiveMinutes
- type ActiveMinutesByActivityLevel
- type ActiveMinutesRollupByActivityLevel
- type ActiveMinutesRollupValue
- type ActiveZoneMinutes
- type ActiveZoneMinutesRollupValue
- type ActivityLevel
- type ActivityLevelRollupByActivityLevelType
- type ActivityLevelRollupValue
- type AlertWindow
- type Altitude
- type AltitudeRollupValue
- type Application
- type BasalEnergyBurned
- type BatchDeleteDataPointsRequest
- type BloodGlucose
- type BloodGlucoseRollupValue
- type BodyFat
- type BodyFatRollupValue
- type CaloriesInHeartRateZoneRollupValue
- type CaloriesInHeartRateZoneValue
- type CivilDateTime
- type CivilTimeInterval
- type CoreBodyTemperature
- type CoreBodyTemperatureRollupValue
- type CreateSubscriberPayload
- type CreateSubscriptionPayload
- type DailyHeartRateVariability
- type DailyHeartRateZones
- type DailyOxygenSaturation
- type DailyRespiratoryRate
- type DailyRestingHeartRate
- type DailyRestingHeartRateMetadata
- type DailyRollUpDataPointsRequest
- type DailyRollUpDataPointsResponse
- type DailyRollupDataPoint
- type DailySleepTemperatureDerivations
- type DailyVO2Max
- type DataPoint
- type DataSource
- type Date
- type DateTime
- type Device
- type Distance
- type DistanceRollupValue
- type Electrocardiogram
- type Empty
- type EndpointAuthorization
- type EnergyQuantity
- type EnergyQuantityRollup
- type Exercise
- type ExerciseEvent
- type ExerciseMetadata
- type ExportExerciseTcxResponse
- type Floors
- type FloorsRollupValue
- type Food
- type FoodMeasurementUnit
- type FoodServing
- type GoogleDevicesandservicesHealthV4DataType
- type GoogleDevicesandservicesHealthV4User
- type GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog
- type HeartBeat
- type HeartRate
- type HeartRateMetadata
- type HeartRateRollupValue
- type HeartRateVariability
- type HeartRateVariabilityPersonalRangeRollupValue
- type HeartRateZone
- type Height
- type HttpBody
- type HttpHeader
- type HttpResponse
- type HydrationLog
- type HydrationLogRollupValue
- type Identity
- type Interval
- type IrnProfile
- type IrregularRhythmNotification
- type ListDataPointsResponse
- type ListPairedDevicesResponse
- type ListSubscribersResponse
- type ListSubscriptionsResponse
- type ManifestParams
- type MedicalDeviceInfo
- type MenstrualPeriod
- type MetricsSummary
- type MobilityMetrics
- type Moods
- type NutrientQuantity
- type NutrientQuantityRollup
- type NutritionLog
- type NutritionLogRollupValue
- type ObservationSampleTime
- type ObservationTimeInterval
- type Operation
- type OutOfBedSegment
- type OvulationTest
- type OxygenSaturation
- type PairedDevice
- type Profile
- type ProjectsService
- type ProjectsSubscribersCreateCall
- func (c *ProjectsSubscribersCreateCall) Context(ctx context.Context) *ProjectsSubscribersCreateCall
- func (c *ProjectsSubscribersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSubscribersCreateCall) Fields(s ...googleapi.Field) *ProjectsSubscribersCreateCall
- func (c *ProjectsSubscribersCreateCall) Header() http.Header
- func (c *ProjectsSubscribersCreateCall) SubscriberId(subscriberId string) *ProjectsSubscribersCreateCall
- type ProjectsSubscribersDeleteCall
- func (c *ProjectsSubscribersDeleteCall) Context(ctx context.Context) *ProjectsSubscribersDeleteCall
- func (c *ProjectsSubscribersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSubscribersDeleteCall) Fields(s ...googleapi.Field) *ProjectsSubscribersDeleteCall
- func (c *ProjectsSubscribersDeleteCall) Force(force bool) *ProjectsSubscribersDeleteCall
- func (c *ProjectsSubscribersDeleteCall) Header() http.Header
- type ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) Context(ctx context.Context) *ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) Do(opts ...googleapi.CallOption) (*ListSubscribersResponse, error)
- func (c *ProjectsSubscribersListCall) Fields(s ...googleapi.Field) *ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) Header() http.Header
- func (c *ProjectsSubscribersListCall) IfNoneMatch(entityTag string) *ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) PageSize(pageSize int64) *ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) PageToken(pageToken string) *ProjectsSubscribersListCall
- func (c *ProjectsSubscribersListCall) Pages(ctx context.Context, f func(*ListSubscribersResponse) error) error
- type ProjectsSubscribersPatchCall
- func (c *ProjectsSubscribersPatchCall) Context(ctx context.Context) *ProjectsSubscribersPatchCall
- func (c *ProjectsSubscribersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSubscribersPatchCall) Fields(s ...googleapi.Field) *ProjectsSubscribersPatchCall
- func (c *ProjectsSubscribersPatchCall) Header() http.Header
- func (c *ProjectsSubscribersPatchCall) UpdateMask(updateMask string) *ProjectsSubscribersPatchCall
- type ProjectsSubscribersService
- func (r *ProjectsSubscribersService) Create(parent string, createsubscriberpayload *CreateSubscriberPayload) *ProjectsSubscribersCreateCall
- func (r *ProjectsSubscribersService) Delete(name string) *ProjectsSubscribersDeleteCall
- func (r *ProjectsSubscribersService) List(parent string) *ProjectsSubscribersListCall
- func (r *ProjectsSubscribersService) Patch(name string, subscriber *Subscriber) *ProjectsSubscribersPatchCall
- type ProjectsSubscribersSubscriptionsCreateCall
- func (c *ProjectsSubscribersSubscriptionsCreateCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsCreateCall
- func (c *ProjectsSubscribersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Subscription, error)
- func (c *ProjectsSubscribersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsCreateCall
- func (c *ProjectsSubscribersSubscriptionsCreateCall) Header() http.Header
- func (c *ProjectsSubscribersSubscriptionsCreateCall) SubscriptionId(subscriptionId string) *ProjectsSubscribersSubscriptionsCreateCall
- type ProjectsSubscribersSubscriptionsDeleteCall
- func (c *ProjectsSubscribersSubscriptionsDeleteCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsDeleteCall
- func (c *ProjectsSubscribersSubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSubscribersSubscriptionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsDeleteCall
- func (c *ProjectsSubscribersSubscriptionsDeleteCall) Header() http.Header
- type ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*ListSubscriptionsResponse, error)
- func (c *ProjectsSubscribersSubscriptionsListCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) Filter(filter string) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) Header() http.Header
- func (c *ProjectsSubscribersSubscriptionsListCall) IfNoneMatch(entityTag string) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) PageSize(pageSize int64) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) PageToken(pageToken string) *ProjectsSubscribersSubscriptionsListCall
- func (c *ProjectsSubscribersSubscriptionsListCall) Pages(ctx context.Context, f func(*ListSubscriptionsResponse) error) error
- type ProjectsSubscribersSubscriptionsPatchCall
- func (c *ProjectsSubscribersSubscriptionsPatchCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsPatchCall
- func (c *ProjectsSubscribersSubscriptionsPatchCall) Do(opts ...googleapi.CallOption) (*Subscription, error)
- func (c *ProjectsSubscribersSubscriptionsPatchCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsPatchCall
- func (c *ProjectsSubscribersSubscriptionsPatchCall) Header() http.Header
- func (c *ProjectsSubscribersSubscriptionsPatchCall) UpdateMask(updateMask string) *ProjectsSubscribersSubscriptionsPatchCall
- type ProjectsSubscribersSubscriptionsService
- func (r *ProjectsSubscribersSubscriptionsService) Create(parent string, createsubscriptionpayload *CreateSubscriptionPayload) *ProjectsSubscribersSubscriptionsCreateCall
- func (r *ProjectsSubscribersSubscriptionsService) Delete(name string) *ProjectsSubscribersSubscriptionsDeleteCall
- func (r *ProjectsSubscribersSubscriptionsService) List(parent string) *ProjectsSubscribersSubscriptionsListCall
- func (r *ProjectsSubscribersSubscriptionsService) Patch(name string, subscription *Subscription) *ProjectsSubscribersSubscriptionsPatchCall
- type ReconcileDataPointsResponse
- type ReconciledDataPoint
- type RespiratoryRateSleepSummary
- type RespiratoryRateSleepSummaryStatistics
- type RestingHeartRatePersonalRangeRollupValue
- type RollUpDataPointsRequest
- type RollUpDataPointsResponse
- type RollupDataPoint
- type RunVO2Max
- type RunVO2MaxRollupValue
- type SedentaryPeriod
- type SedentaryPeriodRollupValue
- type Service
- type Serving
- type SessionTimeInterval
- type Settings
- type ShlMGetShlManifestCall
- func (c *ShlMGetShlManifestCall) Context(ctx context.Context) *ShlMGetShlManifestCall
- func (c *ShlMGetShlManifestCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
- func (c *ShlMGetShlManifestCall) Fields(s ...googleapi.Field) *ShlMGetShlManifestCall
- func (c *ShlMGetShlManifestCall) Header() http.Header
- type ShlMService
- type ShlRGetCall
- func (c *ShlRGetCall) Context(ctx context.Context) *ShlRGetCall
- func (c *ShlRGetCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
- func (c *ShlRGetCall) Fields(s ...googleapi.Field) *ShlRGetCall
- func (c *ShlRGetCall) Header() http.Header
- func (c *ShlRGetCall) IfNoneMatch(entityTag string) *ShlRGetCall
- type ShlRService
- type ShlService
- type Sleep
- type SleepMetadata
- type SleepStage
- type SleepSummary
- type SplitSummary
- type StageSummary
- type Status
- type Steps
- type StepsRollupValue
- type Subscriber
- type SubscriberConfig
- type Subscription
- type SwimLengthsData
- type SwimLengthsDataRollupValue
- type Symptoms
- type TimeInHeartRateZone
- type TimeInHeartRateZoneRollupValue
- type TimeInHeartRateZoneValue
- type TimeInHeartRateZones
- type TimeOfDay
- type TimeZone
- type TotalCaloriesRollupValue
- type UsersDataTypesDataPointsBatchDeleteCall
- func (c *UsersDataTypesDataPointsBatchDeleteCall) Context(ctx context.Context) *UsersDataTypesDataPointsBatchDeleteCall
- func (c *UsersDataTypesDataPointsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UsersDataTypesDataPointsBatchDeleteCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsBatchDeleteCall
- func (c *UsersDataTypesDataPointsBatchDeleteCall) Header() http.Header
- type UsersDataTypesDataPointsCreateCall
- func (c *UsersDataTypesDataPointsCreateCall) Context(ctx context.Context) *UsersDataTypesDataPointsCreateCall
- func (c *UsersDataTypesDataPointsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UsersDataTypesDataPointsCreateCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsCreateCall
- func (c *UsersDataTypesDataPointsCreateCall) Header() http.Header
- type UsersDataTypesDataPointsDailyRollUpCall
- func (c *UsersDataTypesDataPointsDailyRollUpCall) Context(ctx context.Context) *UsersDataTypesDataPointsDailyRollUpCall
- func (c *UsersDataTypesDataPointsDailyRollUpCall) Do(opts ...googleapi.CallOption) (*DailyRollUpDataPointsResponse, error)
- func (c *UsersDataTypesDataPointsDailyRollUpCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsDailyRollUpCall
- func (c *UsersDataTypesDataPointsDailyRollUpCall) Header() http.Header
- type UsersDataTypesDataPointsExportExerciseTcxCall
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Context(ctx context.Context) *UsersDataTypesDataPointsExportExerciseTcxCall
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Do(opts ...googleapi.CallOption) (*ExportExerciseTcxResponse, error)
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsExportExerciseTcxCall
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Header() http.Header
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsExportExerciseTcxCall
- func (c *UsersDataTypesDataPointsExportExerciseTcxCall) PartialData(partialData bool) *UsersDataTypesDataPointsExportExerciseTcxCall
- type UsersDataTypesDataPointsGetCall
- func (c *UsersDataTypesDataPointsGetCall) Context(ctx context.Context) *UsersDataTypesDataPointsGetCall
- func (c *UsersDataTypesDataPointsGetCall) Do(opts ...googleapi.CallOption) (*DataPoint, error)
- func (c *UsersDataTypesDataPointsGetCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsGetCall
- func (c *UsersDataTypesDataPointsGetCall) Header() http.Header
- func (c *UsersDataTypesDataPointsGetCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsGetCall
- type UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) Context(ctx context.Context) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) Do(opts ...googleapi.CallOption) (*ListDataPointsResponse, error)
- func (c *UsersDataTypesDataPointsListCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) Filter(filter string) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) Header() http.Header
- func (c *UsersDataTypesDataPointsListCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) PageSize(pageSize int64) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) PageToken(pageToken string) *UsersDataTypesDataPointsListCall
- func (c *UsersDataTypesDataPointsListCall) Pages(ctx context.Context, f func(*ListDataPointsResponse) error) error
- type UsersDataTypesDataPointsPatchCall
- func (c *UsersDataTypesDataPointsPatchCall) Context(ctx context.Context) *UsersDataTypesDataPointsPatchCall
- func (c *UsersDataTypesDataPointsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *UsersDataTypesDataPointsPatchCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsPatchCall
- func (c *UsersDataTypesDataPointsPatchCall) Header() http.Header
- type UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) Context(ctx context.Context) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) DataSourceFamily(dataSourceFamily string) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) Do(opts ...googleapi.CallOption) (*ReconcileDataPointsResponse, error)
- func (c *UsersDataTypesDataPointsReconcileCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) Filter(filter string) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) Header() http.Header
- func (c *UsersDataTypesDataPointsReconcileCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) PageSize(pageSize int64) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) PageToken(pageToken string) *UsersDataTypesDataPointsReconcileCall
- func (c *UsersDataTypesDataPointsReconcileCall) Pages(ctx context.Context, f func(*ReconcileDataPointsResponse) error) error
- type UsersDataTypesDataPointsRollUpCall
- func (c *UsersDataTypesDataPointsRollUpCall) Context(ctx context.Context) *UsersDataTypesDataPointsRollUpCall
- func (c *UsersDataTypesDataPointsRollUpCall) Do(opts ...googleapi.CallOption) (*RollUpDataPointsResponse, error)
- func (c *UsersDataTypesDataPointsRollUpCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsRollUpCall
- func (c *UsersDataTypesDataPointsRollUpCall) Header() http.Header
- func (c *UsersDataTypesDataPointsRollUpCall) Pages(ctx context.Context, f func(*RollUpDataPointsResponse) error) error
- type UsersDataTypesDataPointsService
- func (r *UsersDataTypesDataPointsService) BatchDelete(parent string, batchdeletedatapointsrequest *BatchDeleteDataPointsRequest) *UsersDataTypesDataPointsBatchDeleteCall
- func (r *UsersDataTypesDataPointsService) Create(parent string, datapoint *DataPoint) *UsersDataTypesDataPointsCreateCall
- func (r *UsersDataTypesDataPointsService) DailyRollUp(parent string, dailyrollupdatapointsrequest *DailyRollUpDataPointsRequest) *UsersDataTypesDataPointsDailyRollUpCall
- func (r *UsersDataTypesDataPointsService) ExportExerciseTcx(name string) *UsersDataTypesDataPointsExportExerciseTcxCall
- func (r *UsersDataTypesDataPointsService) Get(name string) *UsersDataTypesDataPointsGetCall
- func (r *UsersDataTypesDataPointsService) List(parent string) *UsersDataTypesDataPointsListCall
- func (r *UsersDataTypesDataPointsService) Patch(nameid string, datapoint *DataPoint) *UsersDataTypesDataPointsPatchCall
- func (r *UsersDataTypesDataPointsService) Reconcile(parent string) *UsersDataTypesDataPointsReconcileCall
- func (r *UsersDataTypesDataPointsService) RollUp(parent string, rollupdatapointsrequest *RollUpDataPointsRequest) *UsersDataTypesDataPointsRollUpCall
- type UsersDataTypesService
- type UsersGetIdentityCall
- func (c *UsersGetIdentityCall) Context(ctx context.Context) *UsersGetIdentityCall
- func (c *UsersGetIdentityCall) Do(opts ...googleapi.CallOption) (*Identity, error)
- func (c *UsersGetIdentityCall) Fields(s ...googleapi.Field) *UsersGetIdentityCall
- func (c *UsersGetIdentityCall) Header() http.Header
- func (c *UsersGetIdentityCall) IfNoneMatch(entityTag string) *UsersGetIdentityCall
- type UsersGetIrnProfileCall
- func (c *UsersGetIrnProfileCall) Context(ctx context.Context) *UsersGetIrnProfileCall
- func (c *UsersGetIrnProfileCall) Do(opts ...googleapi.CallOption) (*IrnProfile, error)
- func (c *UsersGetIrnProfileCall) Fields(s ...googleapi.Field) *UsersGetIrnProfileCall
- func (c *UsersGetIrnProfileCall) Header() http.Header
- func (c *UsersGetIrnProfileCall) IfNoneMatch(entityTag string) *UsersGetIrnProfileCall
- type UsersGetProfileCall
- func (c *UsersGetProfileCall) Context(ctx context.Context) *UsersGetProfileCall
- func (c *UsersGetProfileCall) Do(opts ...googleapi.CallOption) (*Profile, error)
- func (c *UsersGetProfileCall) Fields(s ...googleapi.Field) *UsersGetProfileCall
- func (c *UsersGetProfileCall) Header() http.Header
- func (c *UsersGetProfileCall) IfNoneMatch(entityTag string) *UsersGetProfileCall
- type UsersGetSettingsCall
- func (c *UsersGetSettingsCall) Context(ctx context.Context) *UsersGetSettingsCall
- func (c *UsersGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error)
- func (c *UsersGetSettingsCall) Fields(s ...googleapi.Field) *UsersGetSettingsCall
- func (c *UsersGetSettingsCall) Header() http.Header
- func (c *UsersGetSettingsCall) IfNoneMatch(entityTag string) *UsersGetSettingsCall
- type UsersPairedDevicesGetCall
- func (c *UsersPairedDevicesGetCall) Context(ctx context.Context) *UsersPairedDevicesGetCall
- func (c *UsersPairedDevicesGetCall) Do(opts ...googleapi.CallOption) (*PairedDevice, error)
- func (c *UsersPairedDevicesGetCall) Fields(s ...googleapi.Field) *UsersPairedDevicesGetCall
- func (c *UsersPairedDevicesGetCall) Header() http.Header
- func (c *UsersPairedDevicesGetCall) IfNoneMatch(entityTag string) *UsersPairedDevicesGetCall
- type UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) Context(ctx context.Context) *UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) Do(opts ...googleapi.CallOption) (*ListPairedDevicesResponse, error)
- func (c *UsersPairedDevicesListCall) Fields(s ...googleapi.Field) *UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) Header() http.Header
- func (c *UsersPairedDevicesListCall) IfNoneMatch(entityTag string) *UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) PageSize(pageSize int64) *UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) PageToken(pageToken string) *UsersPairedDevicesListCall
- func (c *UsersPairedDevicesListCall) Pages(ctx context.Context, f func(*ListPairedDevicesResponse) error) error
- type UsersPairedDevicesService
- type UsersService
- func (r *UsersService) GetIdentity(name string) *UsersGetIdentityCall
- func (r *UsersService) GetIrnProfile(name string) *UsersGetIrnProfileCall
- func (r *UsersService) GetProfile(name string) *UsersGetProfileCall
- func (r *UsersService) GetSettings(name string) *UsersGetSettingsCall
- func (r *UsersService) UpdateProfile(name string, profile *Profile) *UsersUpdateProfileCall
- func (r *UsersService) UpdateSettings(name string, settings *Settings) *UsersUpdateSettingsCall
- type UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Context(ctx context.Context) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*Profile, error)
- func (c *UsersUpdateProfileCall) Fields(s ...googleapi.Field) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Header() http.Header
- func (c *UsersUpdateProfileCall) UpdateMask(updateMask string) *UsersUpdateProfileCall
- type UsersUpdateSettingsCall
- func (c *UsersUpdateSettingsCall) Context(ctx context.Context) *UsersUpdateSettingsCall
- func (c *UsersUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error)
- func (c *UsersUpdateSettingsCall) Fields(s ...googleapi.Field) *UsersUpdateSettingsCall
- func (c *UsersUpdateSettingsCall) Header() http.Header
- func (c *UsersUpdateSettingsCall) UpdateMask(updateMask string) *UsersUpdateSettingsCall
- type VO2Max
- type VolumeQuantity
- type VolumeQuantityRollup
- type Weight
- type WeightQuantity
- type WeightQuantityRollup
- type WeightRollupValue
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the email // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // See your Google Health activity and fitness data GooglehealthActivityAndFitnessReadonlyScope = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly" // Add activity and fitness data to Google Health, and edit or delete the data // it adds. GooglehealthActivityAndFitnessWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly" // See your Google Health ECG data GooglehealthEcgReadonlyScope = "https://www.googleapis.com/auth/googlehealth.ecg.readonly" // See your Google Health health metrics and measurement data GooglehealthHealthMetricsAndMeasurementsReadonlyScope = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly" // Add health metric and measurements data to Google Health, and edit or delete // the data it adds. GooglehealthHealthMetricsAndMeasurementsWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly" // See your Google Health Irregular Rhythm Notifications data GooglehealthIrnReadonlyScope = "https://www.googleapis.com/auth/googlehealth.irn.readonly" // See exercise GPS location data in Google Health GooglehealthLocationReadonlyScope = "https://www.googleapis.com/auth/googlehealth.location.readonly" // Add exercise GPS location data to Google Health, and edit or delete the data // it adds. GooglehealthLocationWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.location.writeonly" // Add logged symptoms data to Google Health, and edit or delete the data it // adds GooglehealthLoggedSymptomsWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly" // Add mindfulness data to Google Health, and edit or delete the data it adds GooglehealthMindfulnessWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly" // Add nutrition data to Google Health, and edit or delete the data it adds. GooglehealthNutritionWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly" // See your Google Health profile data GooglehealthProfileReadonlyScope = "https://www.googleapis.com/auth/googlehealth.profile.readonly" // Add profile data to Google Health, and edit or delete the data it adds. GooglehealthProfileWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.profile.writeonly" // Add reproductive health data to Google Health, and edit or delete the data // it adds GooglehealthReproductiveHealthWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly" // See your Google Health settings GooglehealthSettingsReadonlyScope = "https://www.googleapis.com/auth/googlehealth.settings.readonly" // Add settings data to Google Health, and edit or delete the data it adds. GooglehealthSettingsWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.settings.writeonly" // See your Google Health sleep data GooglehealthSleepReadonlyScope = "https://www.googleapis.com/auth/googlehealth.sleep.readonly" // Add sleep data to Google Health, and edit or delete the data it adds. GooglehealthSleepWriteonlyScope = "https://www.googleapis.com/auth/googlehealth.sleep.writeonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveEnergyBurned ¶ added in v0.283.0
type ActiveEnergyBurned struct {
// Interval: Required. Observed interval
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// Kcal: Required. Energy burned during an activity, measured in kilocalories.
Kcal float64 `json:"kcal,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveEnergyBurned: Energy burned as part of an activity, excluding the basal energy burn.
func (ActiveEnergyBurned) MarshalJSON ¶ added in v0.283.0
func (s ActiveEnergyBurned) MarshalJSON() ([]byte, error)
func (*ActiveEnergyBurned) UnmarshalJSON ¶ added in v0.283.0
func (s *ActiveEnergyBurned) UnmarshalJSON(data []byte) error
type ActiveEnergyBurnedRollupValue ¶ added in v0.283.0
type ActiveEnergyBurnedRollupValue struct {
// KcalSum: Output only. Sum of the active energy burned in kilocalories.
KcalSum float64 `json:"kcalSum,omitempty"`
// ForceSendFields is a list of field names (e.g. "KcalSum") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "KcalSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveEnergyBurnedRollupValue: Represents the result of the rollup of active energy burned.
func (ActiveEnergyBurnedRollupValue) MarshalJSON ¶ added in v0.283.0
func (s ActiveEnergyBurnedRollupValue) MarshalJSON() ([]byte, error)
func (*ActiveEnergyBurnedRollupValue) UnmarshalJSON ¶ added in v0.283.0
func (s *ActiveEnergyBurnedRollupValue) UnmarshalJSON(data []byte) error
type ActiveMinutes ¶
type ActiveMinutes struct {
// ActiveMinutesByActivityLevel: Required. Active minutes by activity level. At
// most one record per activity level is allowed.
ActiveMinutesByActivityLevel []*ActiveMinutesByActivityLevel `json:"activeMinutesByActivityLevel,omitempty"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ActiveMinutesByActivityLevel") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
// for more details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveMinutesByActivityLevel") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveMinutes: Record of active minutes in a given time interval.
func (ActiveMinutes) MarshalJSON ¶
func (s ActiveMinutes) MarshalJSON() ([]byte, error)
type ActiveMinutesByActivityLevel ¶
type ActiveMinutesByActivityLevel struct {
// ActiveMinutes: Required. Number of whole minutes spent in activity.
ActiveMinutes int64 `json:"activeMinutes,omitempty,string"`
// ActivityLevel: Required. The level of activity.
//
// Possible values:
// "ACTIVITY_LEVEL_UNSPECIFIED" - Activity level is unspecified.
// "LIGHT" - Light activity level.
// "MODERATE" - Moderate activity level.
// "VIGOROUS" - Vigorous activity level.
ActivityLevel string `json:"activityLevel,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveMinutes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveMinutes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveMinutesByActivityLevel: Active minutes at a given activity level.
func (ActiveMinutesByActivityLevel) MarshalJSON ¶
func (s ActiveMinutesByActivityLevel) MarshalJSON() ([]byte, error)
type ActiveMinutesRollupByActivityLevel ¶
type ActiveMinutesRollupByActivityLevel struct {
// ActiveMinutesSum: Number of whole minutes spent in activity.
ActiveMinutesSum int64 `json:"activeMinutesSum,omitempty,string"`
// ActivityLevel: The level of activity.
//
// Possible values:
// "ACTIVITY_LEVEL_UNSPECIFIED" - Activity level is unspecified.
// "LIGHT" - Light activity level.
// "MODERATE" - Moderate activity level.
// "VIGOROUS" - Vigorous activity level.
ActivityLevel string `json:"activityLevel,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveMinutesSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveMinutesSum") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveMinutesRollupByActivityLevel: Active minutes by activity level.
func (ActiveMinutesRollupByActivityLevel) MarshalJSON ¶
func (s ActiveMinutesRollupByActivityLevel) MarshalJSON() ([]byte, error)
type ActiveMinutesRollupValue ¶
type ActiveMinutesRollupValue struct {
// ActiveMinutesRollupByActivityLevel: Active minutes by activity level. At
// most one record per activity level is allowed.
ActiveMinutesRollupByActivityLevel []*ActiveMinutesRollupByActivityLevel `json:"activeMinutesRollupByActivityLevel,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ActiveMinutesRollupByActivityLevel") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ActiveMinutesRollupByActivityLevel") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
// more details.
NullFields []string `json:"-"`
}
ActiveMinutesRollupValue: Represents the result of the rollup of the active minutes data type.
func (ActiveMinutesRollupValue) MarshalJSON ¶
func (s ActiveMinutesRollupValue) MarshalJSON() ([]byte, error)
type ActiveZoneMinutes ¶
type ActiveZoneMinutes struct {
// ActiveZoneMinutes: Required. Number of Active Zone Minutes earned in the
// given time interval. Note: active_zone_minutes equals to 1 for low intensity
// (fat burn) zones or 2 for high intensity zones (cardio, peak).
ActiveZoneMinutes int64 `json:"activeZoneMinutes,omitempty,string"`
// HeartRateZone: Required. Heart rate zone in which the active zone minutes
// have been earned, in the given time interval.
//
// Possible values:
// "HEART_RATE_ZONE_UNSPECIFIED" - Unspecified heart rate zone.
// "FAT_BURN" - The fat burn heart rate zone.
// "CARDIO" - The cardio heart rate zone.
// "PEAK" - The peak heart rate zone.
HeartRateZone string `json:"heartRateZone,omitempty"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveZoneMinutes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveZoneMinutes") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveZoneMinutes: Record of active zone minutes in a given time interval.
func (ActiveZoneMinutes) MarshalJSON ¶
func (s ActiveZoneMinutes) MarshalJSON() ([]byte, error)
type ActiveZoneMinutesRollupValue ¶
type ActiveZoneMinutesRollupValue struct {
// SumInCardioHeartZone: Active zone minutes in `HeartRateZone.CARDIO`.
SumInCardioHeartZone int64 `json:"sumInCardioHeartZone,omitempty,string"`
// SumInFatBurnHeartZone: Active zone minutes in `HeartRateZone.FAT_BURN`.
SumInFatBurnHeartZone int64 `json:"sumInFatBurnHeartZone,omitempty,string"`
// SumInPeakHeartZone: Active zone minutes in `HeartRateZone.PEAK`.
SumInPeakHeartZone int64 `json:"sumInPeakHeartZone,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "SumInCardioHeartZone") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SumInCardioHeartZone") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActiveZoneMinutesRollupValue: Represents the result of the rollup of the active zone minutes data type.
func (ActiveZoneMinutesRollupValue) MarshalJSON ¶
func (s ActiveZoneMinutesRollupValue) MarshalJSON() ([]byte, error)
type ActivityLevel ¶
type ActivityLevel struct {
// ActivityLevelType: Required. Activity level type in the given time interval.
//
// Possible values:
// "ACTIVITY_LEVEL_TYPE_UNSPECIFIED" - Unspecified activity level type.
// "SEDENTARY" - Sedentary activity level.
// "LIGHTLY_ACTIVE" - Lightly active activity level.
// "MODERATELY_ACTIVE" - Moderately active activity level.
// "VERY_ACTIVE" - Very active activity level.
ActivityLevelType string `json:"activityLevelType,omitempty"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActivityLevelType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActivityLevelType") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActivityLevel: Internal type to capture activity level during a certain time interval.
func (ActivityLevel) MarshalJSON ¶
func (s ActivityLevel) MarshalJSON() ([]byte, error)
type ActivityLevelRollupByActivityLevelType ¶
type ActivityLevelRollupByActivityLevelType struct {
// ActivityLevelType: Activity level type.
//
// Possible values:
// "ACTIVITY_LEVEL_TYPE_UNSPECIFIED" - Unspecified activity level type.
// "SEDENTARY" - Sedentary activity level.
// "LIGHTLY_ACTIVE" - Lightly active activity level.
// "MODERATELY_ACTIVE" - Moderately active activity level.
// "VERY_ACTIVE" - Very active activity level.
ActivityLevelType string `json:"activityLevelType,omitempty"`
// TotalDuration: Total duration in the activity level type.
TotalDuration string `json:"totalDuration,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActivityLevelType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActivityLevelType") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActivityLevelRollupByActivityLevelType: Represents the total duration in a specific activity level type.
func (ActivityLevelRollupByActivityLevelType) MarshalJSON ¶
func (s ActivityLevelRollupByActivityLevelType) MarshalJSON() ([]byte, error)
type ActivityLevelRollupValue ¶
type ActivityLevelRollupValue struct {
// ActivityLevelRollupsByActivityLevelType: List of total durations in each
// activity level type.
ActivityLevelRollupsByActivityLevelType []*ActivityLevelRollupByActivityLevelType `json:"activityLevelRollupsByActivityLevelType,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ActivityLevelRollupsByActivityLevelType") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ActivityLevelRollupsByActivityLevelType") to include in API requests with
// the JSON null value. By default, fields with empty values are omitted from
// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
// for more details.
NullFields []string `json:"-"`
}
ActivityLevelRollupValue: Represents the result of the rollup of the activity level data type.
func (ActivityLevelRollupValue) MarshalJSON ¶
func (s ActivityLevelRollupValue) MarshalJSON() ([]byte, error)
type AlertWindow ¶ added in v0.283.0
type AlertWindow struct {
// CivilEndTime: Output only. Observed interval end time in civil time in the
// timezone the subject is in at the end of the observed interval
CivilEndTime *CivilDateTime `json:"civilEndTime,omitempty"`
// CivilStartTime: Output only. Observed interval start time in civil time in
// the timezone the subject is in at the start of the observed interval
CivilStartTime *CivilDateTime `json:"civilStartTime,omitempty"`
// EndTime: Required. The end time of the analysis window.
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. The UTC offset of the user's timezone when the
// analysis window ended.
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// HeartBeats: Optional. All heart beats in the interval contained in this
// analysis window.
HeartBeats []*HeartBeat `json:"heartBeats,omitempty"`
// Positive: Optional. Flag indicating whether the window was positive for AFib
// or not. A `true` value indicates that AFib was detected in this window. A
// `false` value means AFib was not detected, but does not guarantee the
// absence of AFib.
Positive bool `json:"positive,omitempty"`
// StartTime: Required. Observed interval. The start time of the analysis
// window.
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. The UTC offset of the user's timezone when the
// analysis window started.
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "CivilEndTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CivilEndTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AlertWindow: An analysis window evaluated for AFib. Note: The current version of the algorithm will only produce alerts if all windows are positive. So anything returned from the API will always have the positive bit set to true. Internally, windows can be negative, however. We never save "inconclusive" windows (they aren't produced by the algorithm).
func (AlertWindow) MarshalJSON ¶ added in v0.283.0
func (s AlertWindow) MarshalJSON() ([]byte, error)
type Altitude ¶
type Altitude struct {
// GainMillimeters: Required. Altitude gain in millimeters over the observed
// interval.
GainMillimeters int64 `json:"gainMillimeters,omitempty,string"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "GainMillimeters") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GainMillimeters") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Altitude: Captures the altitude gain (i.e. deltas), and not level above sea, for a user in millimeters.
func (Altitude) MarshalJSON ¶
type AltitudeRollupValue ¶
type AltitudeRollupValue struct {
// GainMillimetersSum: Sum of the altitude gain in millimeters.
GainMillimetersSum int64 `json:"gainMillimetersSum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "GainMillimetersSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GainMillimetersSum") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AltitudeRollupValue: Represents the result of the rollup of the user's altitude.
func (AltitudeRollupValue) MarshalJSON ¶
func (s AltitudeRollupValue) MarshalJSON() ([]byte, error)
type Application ¶
type Application struct {
// GoogleWebClientId: Output only. The Google OAuth 2.0 client ID of the web
// application or service that recorded the data. This is the client ID used
// during the Google OAuth flow to obtain user credentials. This field is
// system-populated when the data is uploaded from Google Web API.
GoogleWebClientId string `json:"googleWebClientId,omitempty"`
// PackageName: Output only. A unique identifier for the mobile application
// that was the source of the data. This is typically the application's package
// name on Android (e.g., `com.google.fitbit`) or the bundle ID on iOS. This
// field is informational and helps trace data origin. This field is
// system-populated when the data is uploaded from the Fitbit mobile
// application, Health Connect or Health Kit.
PackageName string `json:"packageName,omitempty"`
// WebClientId: Output only. The client ID of the application that recorded the
// data. This ID is a legacy Fitbit API client ID, which is different from a
// Google OAuth client ID. Example format: `ABC123`. This field is
// system-populated and used for tracing data from legacy Fitbit API
// integrations. This field is system-populated when the data is uploaded from
// a legacy Fitbit API integration.
WebClientId string `json:"webClientId,omitempty"`
// ForceSendFields is a list of field names (e.g. "GoogleWebClientId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GoogleWebClientId") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Application: Optional metadata for the application that provided this data.
func (Application) MarshalJSON ¶
func (s Application) MarshalJSON() ([]byte, error)
type BasalEnergyBurned ¶ added in v0.278.0
type BasalEnergyBurned struct {
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// Kcal: Required. Number of calories burned due to basal metabolic rate in
// kilocalories over the observed interval.
Kcal float64 `json:"kcal,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BasalEnergyBurned: Number of calories burned due to basal metabolic rate (BMR) over a period of time.
func (BasalEnergyBurned) MarshalJSON ¶ added in v0.278.0
func (s BasalEnergyBurned) MarshalJSON() ([]byte, error)
func (*BasalEnergyBurned) UnmarshalJSON ¶ added in v0.278.0
func (s *BasalEnergyBurned) UnmarshalJSON(data []byte) error
type BatchDeleteDataPointsRequest ¶
type BatchDeleteDataPointsRequest struct {
// Names: Required. The names of the DataPoints to delete. A maximum of 10000
// data points can be deleted in a single request.
Names []string `json:"names,omitempty"`
// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Names") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BatchDeleteDataPointsRequest: Request to delete a batch of identifiable data points.
func (BatchDeleteDataPointsRequest) MarshalJSON ¶
func (s BatchDeleteDataPointsRequest) MarshalJSON() ([]byte, error)
type BloodGlucose ¶ added in v0.283.0
type BloodGlucose struct {
// BloodGlucoseMilligramsPerDeciliter: Required. Blood glucose level
// concentration in mg/dL.
BloodGlucoseMilligramsPerDeciliter float64 `json:"bloodGlucoseMilligramsPerDeciliter,omitempty"`
// MealType: Optional. Meal type of the measurement.
//
// Possible values:
// "MEAL_TYPE_UNSPECIFIED" - Unspecified meal type.
// "BREAKFAST" - Breakfast.
// "LUNCH" - Lunch.
// "DINNER" - Dinner.
// "SNACK" - Snack.
MealType string `json:"mealType,omitempty"`
// MeasurementSource: Optional. Source of the measurement.
//
// Possible values:
// "MEASUREMENT_SOURCE_UNSPECIFIED" - Unspecified measurement source.
// "SELF_MONITORING_BLOOD_GLUCOSE" - Self-monitoring of blood glucose (Blood
// glucose meter)
// "CONTINUOUS_GLUCOSE_MONITORING" - Continuous glucose monitoring device
// "LAB_TEST" - Laboratory test
MeasurementSource string `json:"measurementSource,omitempty"`
// MeasurementTiming: Optional. Timing of the measurement.
//
// Possible values:
// "MEASUREMENT_TIMING_UNSPECIFIED" - Unspecified measurement timing.
// "AFTER_MEAL" - Measurement taken after meal.
// "BEFORE_MEAL" - Measurement taken before meal.
// "FASTING" - Measurement taken while fasting.
// "GENERAL" - General measurement (not associated with a meal or time of
// day).
// "BEFORE_BED" - Measurement taken before bed.
// "OVER_NIGHT" - Measurement taken over night.
MeasurementTiming string `json:"measurementTiming,omitempty"`
// Notes: Optional. Standard free-form notes captured at manual logging.
Notes string `json:"notes,omitempty"`
// SampleTime: Required. The time at which blood glucose was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// Specimen: Optional. Type of body fluid used to measure the blood glucose.
//
// Possible values:
// "SPECIMEN_UNSPECIFIED" - Unspecified specimen.
// "CAPILLARY_BLOOD" - Capillary blood.
// "INTERSTITIAL_FLUID" - Interstitial fluid.
// "PLASMA" - Plasma.
// "SERUM" - Serum.
// "TEARS" - Tears.
// "WHOLE_BLOOD" - Whole blood.
Specimen string `json:"specimen,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BloodGlucoseMilligramsPerDeciliter") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "BloodGlucoseMilligramsPerDeciliter") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
// more details.
NullFields []string `json:"-"`
}
BloodGlucose: Represents a blood glucose level measurement. LINT: LEGACY_NAMES
func (BloodGlucose) MarshalJSON ¶ added in v0.283.0
func (s BloodGlucose) MarshalJSON() ([]byte, error)
func (*BloodGlucose) UnmarshalJSON ¶ added in v0.283.0
func (s *BloodGlucose) UnmarshalJSON(data []byte) error
type BloodGlucoseRollupValue ¶ added in v0.283.0
type BloodGlucoseRollupValue struct {
// BloodGlucoseMilligramsPerDeciliterAvg: Average blood glucose level in mg/dL.
BloodGlucoseMilligramsPerDeciliterAvg float64 `json:"bloodGlucoseMilligramsPerDeciliterAvg,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BloodGlucoseMilligramsPerDeciliterAvg") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "BloodGlucoseMilligramsPerDeciliterAvg") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
// more details.
NullFields []string `json:"-"`
}
BloodGlucoseRollupValue: Represents the result of the rollup of the blood glucose data type. LINT: LEGACY_NAMES
func (BloodGlucoseRollupValue) MarshalJSON ¶ added in v0.283.0
func (s BloodGlucoseRollupValue) MarshalJSON() ([]byte, error)
func (*BloodGlucoseRollupValue) UnmarshalJSON ¶ added in v0.283.0
func (s *BloodGlucoseRollupValue) UnmarshalJSON(data []byte) error
type BodyFat ¶
type BodyFat struct {
// Percentage: Required. Body fat percentage, in range [0, 100].
Percentage float64 `json:"percentage,omitempty"`
// SampleTime: Required. The time at which body fat was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Percentage") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Percentage") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BodyFat: Body fat measurement.
func (BodyFat) MarshalJSON ¶
func (*BodyFat) UnmarshalJSON ¶
type BodyFatRollupValue ¶
type BodyFatRollupValue struct {
// BodyFatPercentageAvg: Average body fat percentage.
BodyFatPercentageAvg float64 `json:"bodyFatPercentageAvg,omitempty"`
// ForceSendFields is a list of field names (e.g. "BodyFatPercentageAvg") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BodyFatPercentageAvg") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BodyFatRollupValue: Represents the result of the rollup of the body fat data type.
func (BodyFatRollupValue) MarshalJSON ¶
func (s BodyFatRollupValue) MarshalJSON() ([]byte, error)
func (*BodyFatRollupValue) UnmarshalJSON ¶
func (s *BodyFatRollupValue) UnmarshalJSON(data []byte) error
type CaloriesInHeartRateZoneRollupValue ¶
type CaloriesInHeartRateZoneRollupValue struct {
// CaloriesInHeartRateZones: List of calories burned in each heart rate zone.
CaloriesInHeartRateZones []*CaloriesInHeartRateZoneValue `json:"caloriesInHeartRateZones,omitempty"`
// ForceSendFields is a list of field names (e.g. "CaloriesInHeartRateZones")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CaloriesInHeartRateZones") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CaloriesInHeartRateZoneRollupValue: Represents the result of the rollup of the calories in heart rate zone data type.
func (CaloriesInHeartRateZoneRollupValue) MarshalJSON ¶
func (s CaloriesInHeartRateZoneRollupValue) MarshalJSON() ([]byte, error)
type CaloriesInHeartRateZoneValue ¶
type CaloriesInHeartRateZoneValue struct {
// HeartRateZone: The heart rate zone.
//
// Possible values:
// "HEART_RATE_ZONE_TYPE_UNSPECIFIED" - Unspecified heart rate zone.
// "LIGHT" - The light heart rate zone.
// "MODERATE" - The moderate heart rate zone.
// "VIGOROUS" - The vigorous heart rate zone.
// "PEAK" - The peak heart rate zone.
HeartRateZone string `json:"heartRateZone,omitempty"`
// Kcal: The amount of kilocalories burned in the specified heart rate zone.
Kcal float64 `json:"kcal,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeartRateZone") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeartRateZone") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CaloriesInHeartRateZoneValue: Represents the amount of kilocalories burned in a specific heart rate zone.
func (CaloriesInHeartRateZoneValue) MarshalJSON ¶
func (s CaloriesInHeartRateZoneValue) MarshalJSON() ([]byte, error)
func (*CaloriesInHeartRateZoneValue) UnmarshalJSON ¶
func (s *CaloriesInHeartRateZoneValue) UnmarshalJSON(data []byte) error
type CivilDateTime ¶
type CivilDateTime struct {
// Date: Required. Calendar date.
Date *Date `json:"date,omitempty"`
// Time: Optional. Time of day. Defaults to the start of the day, at midnight
// if omitted.
Time *TimeOfDay `json:"time,omitempty"`
// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Date") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CivilDateTime: Civil time representation similar to google.type.DateTime, but ensures that neither the timezone nor the UTC offset can be set to avoid confusion between civil and physical time queries.
func (CivilDateTime) MarshalJSON ¶
func (s CivilDateTime) MarshalJSON() ([]byte, error)
type CivilTimeInterval ¶
type CivilTimeInterval struct {
// End: Required. The exclusive end of the range.
End *CivilDateTime `json:"end,omitempty"`
// Start: Required. The inclusive start of the range.
Start *CivilDateTime `json:"start,omitempty"`
// ForceSendFields is a list of field names (e.g. "End") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "End") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CivilTimeInterval: Counterpart of google.type.Interval, but using CivilDateTime.
func (CivilTimeInterval) MarshalJSON ¶
func (s CivilTimeInterval) MarshalJSON() ([]byte, error)
type CoreBodyTemperature ¶ added in v0.283.0
type CoreBodyTemperature struct {
// Id: Optional. The unique identifier of the core body temperature
// measurement.
Id string `json:"id,omitempty"`
// MeasurementLocation: Optional. The location of the core body temperature
// measurement.
//
// Possible values:
// "MEASUREMENT_LOCATION_UNSPECIFIED" - Measurement location is unspecified.
// "OTHER" - Other measurement location.
// "ARMPIT" - Armpit measurement location.
// "BODY" - Body measurement location.
// "EAR" - Ear measurement location.
// "FINGER" - Finger measurement location.
// "GASTRO_INTESTINAL" - Gastro-intestinal measurement location.
// "MOUTH" - Mouth measurement location.
// "RECTUM" - Rectum measurement location.
// "TOE" - Toe measurement location.
// "EAR_DRUM" - Ear drum measurement location.
// "TEMPORAL_ARTERY" - Temporal artery measurement location.
// "FOREHEAD" - Forehead measurement location.
// "URINARY_BLADDER" - Urinary bladder measurement location.
// "NASAL" - Nasal measurement location.
// "NASOPHARYNGEAL" - Nasopharyngeal measurement location.
// "WRIST" - Wrist measurement location.
// "VAGINA" - Vagina measurement location.
MeasurementLocation string `json:"measurementLocation,omitempty"`
// SampleTime: Required. The time at which core body temperature was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// TemperatureCelsius: Required. The core body temperature in Celsius.
TemperatureCelsius float64 `json:"temperatureCelsius,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CoreBodyTemperature: Core body temperature measurement, distinct from peripheral body temperature, reflects the temperature of the body's internal organs.
func (CoreBodyTemperature) MarshalJSON ¶ added in v0.283.0
func (s CoreBodyTemperature) MarshalJSON() ([]byte, error)
func (*CoreBodyTemperature) UnmarshalJSON ¶ added in v0.283.0
func (s *CoreBodyTemperature) UnmarshalJSON(data []byte) error
type CoreBodyTemperatureRollupValue ¶ added in v0.283.0
type CoreBodyTemperatureRollupValue struct {
// TemperatureCelsiusAvg: Average core body temperature in Celsius.
TemperatureCelsiusAvg float64 `json:"temperatureCelsiusAvg,omitempty"`
// TemperatureCelsiusMax: Maximum core body temperature in Celsius.
TemperatureCelsiusMax float64 `json:"temperatureCelsiusMax,omitempty"`
// TemperatureCelsiusMin: Minimum core body temperature in Celsius.
TemperatureCelsiusMin float64 `json:"temperatureCelsiusMin,omitempty"`
// ForceSendFields is a list of field names (e.g. "TemperatureCelsiusAvg") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TemperatureCelsiusAvg") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CoreBodyTemperatureRollupValue: Represents the result of the rollup of the core body temperature data type.
func (CoreBodyTemperatureRollupValue) MarshalJSON ¶ added in v0.283.0
func (s CoreBodyTemperatureRollupValue) MarshalJSON() ([]byte, error)
func (*CoreBodyTemperatureRollupValue) UnmarshalJSON ¶ added in v0.283.0
func (s *CoreBodyTemperatureRollupValue) UnmarshalJSON(data []byte) error
type CreateSubscriberPayload ¶ added in v0.277.0
type CreateSubscriberPayload struct {
// EndpointAuthorization: Required. Authorization mechanism for the subscriber
// endpoint. The `secret` within this message is crucial for endpoint
// verification and for securing webhook notifications.
EndpointAuthorization *EndpointAuthorization `json:"endpointAuthorization,omitempty"`
// EndpointUri: Required. The full HTTPS URI where update notifications will be
// sent. The URI must be a valid URL and use HTTPS as the scheme. This endpoint
// will be verified during the `CreateSubscriber` call. See CreateSubscriber
// RPC documentation for verification details.
EndpointUri string `json:"endpointUri,omitempty"`
// SubscriberConfigs: Optional. Configuration for the subscriber.
SubscriberConfigs []*SubscriberConfig `json:"subscriberConfigs,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndpointAuthorization") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndpointAuthorization") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CreateSubscriberPayload: Payload for creating a subscriber.
func (CreateSubscriberPayload) MarshalJSON ¶ added in v0.277.0
func (s CreateSubscriberPayload) MarshalJSON() ([]byte, error)
type CreateSubscriptionPayload ¶ added in v0.283.0
type CreateSubscriptionPayload struct {
// DataTypes: Optional. Data types subscribed to.
DataTypes []string `json:"dataTypes,omitempty"`
// User: Required. Immutable. The resource name of the user for whom this
// subscription is active. Format: `users/{user}` where `{user}` is the public
// `healthUserId` as returned by the `GetIdentity` action in the profile PAPI
// (see
// `google.devicesandservices.health.v4main.HealthProfileService.GetIdentity`).
User string `json:"user,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataTypes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataTypes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CreateSubscriptionPayload: Payload for creating a subscription.
func (CreateSubscriptionPayload) MarshalJSON ¶ added in v0.283.0
func (s CreateSubscriptionPayload) MarshalJSON() ([]byte, error)
type DailyHeartRateVariability ¶
type DailyHeartRateVariability struct {
// AverageHeartRateVariabilityMilliseconds: Optional. A user's average heart
// rate variability calculated using the root mean square of successive
// differences (RMSSD) in times between heartbeats.
AverageHeartRateVariabilityMilliseconds float64 `json:"averageHeartRateVariabilityMilliseconds,omitempty"`
// Date: Required. Date (in the user's timezone) of heart rate variability
// measurement.
Date *Date `json:"date,omitempty"`
// DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds: Optional. The
// root mean square of successive differences (RMSSD) value during deep sleep.
DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds float64 `json:"deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds,omitempty"`
// Entropy: Optional. The Shanon entropy of heartbeat intervals. Entropy
// quantifies randomness or disorder in a system. High entropy indicates high
// HRV. Entropy is measured from the histogram of time interval between
// successive heart beats values measured during sleep.
Entropy float64 `json:"entropy,omitempty"`
// NonRemHeartRateBeatsPerMinute: Optional. Non-REM heart rate
NonRemHeartRateBeatsPerMinute int64 `json:"nonRemHeartRateBeatsPerMinute,omitempty,string"`
// ForceSendFields is a list of field names (e.g.
// "AverageHeartRateVariabilityMilliseconds") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AverageHeartRateVariabilityMilliseconds") to include in API requests with
// the JSON null value. By default, fields with empty values are omitted from
// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
// for more details.
NullFields []string `json:"-"`
}
DailyHeartRateVariability: Represents the daily heart rate variability data type. At least one of the following fields must be set: - `average_heart_rate_variability_milliseconds` - `non_rem_heart_rate_beats_per_minute` - `entropy` - `deep_sleep_root_mean_square_of_successive_differences_milliseconds`
func (DailyHeartRateVariability) MarshalJSON ¶
func (s DailyHeartRateVariability) MarshalJSON() ([]byte, error)
func (*DailyHeartRateVariability) UnmarshalJSON ¶
func (s *DailyHeartRateVariability) UnmarshalJSON(data []byte) error
type DailyHeartRateZones ¶
type DailyHeartRateZones struct {
// Date: Required. Date (in user's timezone) of the heart rate zones record.
Date *Date `json:"date,omitempty"`
// HeartRateZones: Required. The heart rate zones.
HeartRateZones []*HeartRateZone `json:"heartRateZones,omitempty"`
// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Date") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyHeartRateZones: User's heart rate zone thresholds based on the Karvonen algorithm for a specific day.
func (DailyHeartRateZones) MarshalJSON ¶
func (s DailyHeartRateZones) MarshalJSON() ([]byte, error)
type DailyOxygenSaturation ¶
type DailyOxygenSaturation struct {
// AveragePercentage: Required. The average value of the oxygen saturation
// samples during the sleep.
AveragePercentage float64 `json:"averagePercentage,omitempty"`
// Date: Required. Date (in user's timezone) of the daily oxygen saturation
// record.
Date *Date `json:"date,omitempty"`
// LowerBoundPercentage: Required. The lower bound of the confidence interval
// of oxygen saturation samples during sleep.
LowerBoundPercentage float64 `json:"lowerBoundPercentage,omitempty"`
// StandardDeviationPercentage: Optional. Standard deviation of the daily
// oxygen saturation averages from the past 7-30 days.
StandardDeviationPercentage float64 `json:"standardDeviationPercentage,omitempty"`
// UpperBoundPercentage: Required. The upper bound of the confidence interval
// of oxygen saturation samples during sleep.
UpperBoundPercentage float64 `json:"upperBoundPercentage,omitempty"`
// ForceSendFields is a list of field names (e.g. "AveragePercentage") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AveragePercentage") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyOxygenSaturation: A daily oxygen saturation (SpO2) record. Represents the user's daily oxygen saturation summary, typically calculated during sleep.
func (DailyOxygenSaturation) MarshalJSON ¶
func (s DailyOxygenSaturation) MarshalJSON() ([]byte, error)
func (*DailyOxygenSaturation) UnmarshalJSON ¶
func (s *DailyOxygenSaturation) UnmarshalJSON(data []byte) error
type DailyRespiratoryRate ¶
type DailyRespiratoryRate struct {
// BreathsPerMinute: Required. The average number of breaths taken per minute.
BreathsPerMinute float64 `json:"breathsPerMinute,omitempty"`
// Date: Required. The date on which the respiratory rate was measured.
Date *Date `json:"date,omitempty"`
// ForceSendFields is a list of field names (e.g. "BreathsPerMinute") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BreathsPerMinute") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRespiratoryRate: A daily average respiratory rate (breaths per minute) for a day of the year. One data point per day calculated for the main sleep.
func (DailyRespiratoryRate) MarshalJSON ¶
func (s DailyRespiratoryRate) MarshalJSON() ([]byte, error)
func (*DailyRespiratoryRate) UnmarshalJSON ¶
func (s *DailyRespiratoryRate) UnmarshalJSON(data []byte) error
type DailyRestingHeartRate ¶
type DailyRestingHeartRate struct {
// BeatsPerMinute: Required. The resting heart rate value in beats per minute.
BeatsPerMinute int64 `json:"beatsPerMinute,omitempty,string"`
// DailyRestingHeartRateMetadata: Optional. Metadata for the daily resting
// heart rate.
DailyRestingHeartRateMetadata *DailyRestingHeartRateMetadata `json:"dailyRestingHeartRateMetadata,omitempty"`
// Date: Required. Date (in the user's timezone) of the resting heart rate
// measurement.
Date *Date `json:"date,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinute") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinute") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRestingHeartRate: Measures the daily resting heart rate for a user, calculated using the all day heart rate measurements.
func (DailyRestingHeartRate) MarshalJSON ¶
func (s DailyRestingHeartRate) MarshalJSON() ([]byte, error)
type DailyRestingHeartRateMetadata ¶
type DailyRestingHeartRateMetadata struct {
// CalculationMethod: Required. The method used to calculate the resting heart
// rate.
//
// Possible values:
// "CALCULATION_METHOD_UNSPECIFIED" - The calculation method is unspecified.
// "WITH_SLEEP" - The resting heart rate is calculated using the sleep data.
// "ONLY_WITH_AWAKE_DATA" - The resting heart rate is calculated using only
// awake data.
CalculationMethod string `json:"calculationMethod,omitempty"`
// ForceSendFields is a list of field names (e.g. "CalculationMethod") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CalculationMethod") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRestingHeartRateMetadata: Metadata for the daily resting heart rate.
func (DailyRestingHeartRateMetadata) MarshalJSON ¶
func (s DailyRestingHeartRateMetadata) MarshalJSON() ([]byte, error)
type DailyRollUpDataPointsRequest ¶
type DailyRollUpDataPointsRequest struct {
// DataSourceFamily: Optional. The data source family name to roll up. If
// empty, data points from all available data sources will be rolled up.
// Format: `users/me/dataSourceFamilies/{data_source_family}` The supported
// values are: - `users/me/dataSourceFamilies/all-sources` - Default value.
// Includes data from all available data sources. -
// `users/me/dataSourceFamilies/google-wearables` - Includes data from Google
// and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch).
// Excludes manually logged data. -
// `users/me/dataSourceFamilies/google-sources` - Includes first-party Google
// data, such as data from tracker devices, manually logged data, and Health
// Connect.
DataSourceFamily string `json:"dataSourceFamily,omitempty"`
// PageSize: Optional. The maximum number of data points to return. If
// unspecified, at most 1440 data points will be returned. The maximum page
// size is 10000; values above that will be truncated accordingly.
PageSize int64 `json:"pageSize,omitempty"`
// PageToken: Optional. The `next_page_token` from a previous request, if any.
// All other request fields need to be the same as in the initial request when
// the page token is specified.
PageToken string `json:"pageToken,omitempty"`
// Range: Required. Closed-open range of data points that will be rolled up.
// The start time must be aligned with the aggregation window. The maximum
// range for `calories-in-heart-rate-zone`, `heart-rate`, `active-minutes` and
// `total-calories` is 14 days. The maximum range for all other data types is
// 90 days.
Range *CivilTimeInterval `json:"range,omitempty"`
// WindowSizeDays: Optional. Aggregation window size, in number of days.
// Defaults to 1 if not specified.
WindowSizeDays int64 `json:"windowSizeDays,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataSourceFamily") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataSourceFamily") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRollUpDataPointsRequest: Request to roll up data points by civil time intervals.
func (DailyRollUpDataPointsRequest) MarshalJSON ¶
func (s DailyRollUpDataPointsRequest) MarshalJSON() ([]byte, error)
type DailyRollUpDataPointsResponse ¶
type DailyRollUpDataPointsResponse struct {
// RollupDataPoints: Values for each aggregation time window.
RollupDataPoints []*DailyRollupDataPoint `json:"rollupDataPoints,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "RollupDataPoints") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RollupDataPoints") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRollUpDataPointsResponse: Response containing the list of rolled up data points.
func (DailyRollUpDataPointsResponse) MarshalJSON ¶
func (s DailyRollUpDataPointsResponse) MarshalJSON() ([]byte, error)
type DailyRollupDataPoint ¶
type DailyRollupDataPoint struct {
// ActiveEnergyBurned: Returned by default when rolling up data points from the
// `active-energy-burned` data type.
ActiveEnergyBurned *ActiveEnergyBurnedRollupValue `json:"activeEnergyBurned,omitempty"`
// ActiveMinutes: Returned by default when rolling up data points from the
// `active-minutes` data type, or when requested explicitly using the
// `active-minutes` rollup type identifier.
ActiveMinutes *ActiveMinutesRollupValue `json:"activeMinutes,omitempty"`
// ActiveZoneMinutes: Returned by default when rolling up data points from the
// `active-zone-minutes` data type, or when requested explicitly using the
// `active-zone-minutes` rollup type identifier.
ActiveZoneMinutes *ActiveZoneMinutesRollupValue `json:"activeZoneMinutes,omitempty"`
// ActivityLevel: Returned by default when rolling up data points from the
// `activity-level` data type, or when requested explicitly using the
// `activity-level` rollup type identifier.
ActivityLevel *ActivityLevelRollupValue `json:"activityLevel,omitempty"`
// Altitude: Returned by default when rolling up data points from the
// `altitude` data type, or when requested explicitly using the `altitude`
// rollup type identifier.
Altitude *AltitudeRollupValue `json:"altitude,omitempty"`
// BloodGlucose: Returned by default when rolling up data points from the
// `blood-glucose` data type.
BloodGlucose *BloodGlucoseRollupValue `json:"bloodGlucose,omitempty"`
// BodyFat: Returned by default when rolling up data points from the `body-fat`
// data type, or when requested explicitly using the `body-fat` rollup type
// identifier.
BodyFat *BodyFatRollupValue `json:"bodyFat,omitempty"`
// CaloriesInHeartRateZone: Returned by default when rolling up data points
// from the `calories-in-heart-rate-zone` data type, or when requested
// explicitly using the `calories-in-heart-rate-zone` rollup type identifier.
CaloriesInHeartRateZone *CaloriesInHeartRateZoneRollupValue `json:"caloriesInHeartRateZone,omitempty"`
// CivilEndTime: End time of the window this value aggregates over
CivilEndTime *CivilDateTime `json:"civilEndTime,omitempty"`
// CivilStartTime: Start time of the window this value aggregates over
CivilStartTime *CivilDateTime `json:"civilStartTime,omitempty"`
// CoreBodyTemperature: Returned by default when rolling up data points from
// the `core-body-temperature` data type, or when requested explicitly using
// the `core-body-temperature` rollup type identifier.
CoreBodyTemperature *CoreBodyTemperatureRollupValue `json:"coreBodyTemperature,omitempty"`
// Distance: Returned by default when rolling up data points from the
// `distance` data type, or when requested explicitly using the `distance`
// rollup type identifier.
Distance *DistanceRollupValue `json:"distance,omitempty"`
// Floors: Returned by default when rolling up data points from the `floors`
// data type, or when requested explicitly using the `floors` rollup type
// identifier.
Floors *FloorsRollupValue `json:"floors,omitempty"`
// HeartRate: Returned by default when rolling up data points from the
// `heart-rate` data type, or when requested explicitly using the `heart-rate`
// rollup type identifier.
HeartRate *HeartRateRollupValue `json:"heartRate,omitempty"`
// HeartRateVariabilityPersonalRange: Returned by default when rolling up data
// points from the `daily-heart-rate-variability` data type, or when requested
// explicitly using the `heart-rate-variability-personal-range` rollup type
// identifier.
HeartRateVariabilityPersonalRange *HeartRateVariabilityPersonalRangeRollupValue `json:"heartRateVariabilityPersonalRange,omitempty"`
// HydrationLog: Returned by default when rolling up data points from the
// `hydration-log` data type, or when requested explicitly using the
// `hydration-log` rollup type identifier.
HydrationLog *HydrationLogRollupValue `json:"hydrationLog,omitempty"`
// NutritionLog: Returned by default when rolling up data points from the
// `nutrition-log` data type, or when requested explicitly using the
// `nutrition-log` rollup type identifier.
NutritionLog *NutritionLogRollupValue `json:"nutritionLog,omitempty"`
// RestingHeartRatePersonalRange: Returned by default when rolling up data
// points from the `daily-resting-heart-rate` data type, or when requested
// explicitly using the `resting-heart-rate-personal-range` rollup type
// identifier.
RestingHeartRatePersonalRange *RestingHeartRatePersonalRangeRollupValue `json:"restingHeartRatePersonalRange,omitempty"`
// RunVo2Max: Returned by default when rolling up data points from the
// `run-vo2-max` data type, or when requested explicitly using the
// `run-vo2-max` rollup type identifier.
RunVo2Max *RunVO2MaxRollupValue `json:"runVo2Max,omitempty"`
// SedentaryPeriod: Returned by default when rolling up data points from the
// `sedentary-period` data type, or when requested explicitly using the
// `sedentary-period` rollup type identifier.
SedentaryPeriod *SedentaryPeriodRollupValue `json:"sedentaryPeriod,omitempty"`
// Steps: Returned by default when rolling up data points from the `steps` data
// type, or when requested explicitly using the `steps` rollup type identifier.
Steps *StepsRollupValue `json:"steps,omitempty"`
// SwimLengthsData: Returned by default when rolling up data points from the
// `swim-lengths-data` data type, or when requested explicitly using the
// `swim-lengths-data` rollup type identifier.
SwimLengthsData *SwimLengthsDataRollupValue `json:"swimLengthsData,omitempty"`
// TimeInHeartRateZone: Returned by default when rolling up data points from
// the `time-in-heart-rate-zone` data type, or when requested explicitly using
// the `time-in-heart-rate-zone` rollup type identifier.
TimeInHeartRateZone *TimeInHeartRateZoneRollupValue `json:"timeInHeartRateZone,omitempty"`
// TotalCalories: Returned by default when rolling up data points from the
// `total-calories` data type, or when requested explicitly using the
// `total-calories` rollup type identifier.
TotalCalories *TotalCaloriesRollupValue `json:"totalCalories,omitempty"`
// Weight: Returned by default when rolling up data points from the `weight`
// data type, or when requested explicitly using the `weight` rollup type
// identifier.
Weight *WeightRollupValue `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveEnergyBurned") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveEnergyBurned") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyRollupDataPoint: Value of a daily rollup for a single civil time interval (aggregation window) of reconciled data points from all data sources, excluding those data points that are identified as recorded by wearables in intervals when they were not actually worn.
func (DailyRollupDataPoint) MarshalJSON ¶
func (s DailyRollupDataPoint) MarshalJSON() ([]byte, error)
type DailySleepTemperatureDerivations ¶
type DailySleepTemperatureDerivations struct {
// BaselineTemperatureCelsius: Optional. The user's baseline skin temperature.
// It is the median of the user's nightly skin temperature over the past 30
// days.
BaselineTemperatureCelsius float64 `json:"baselineTemperatureCelsius,omitempty"`
// Date: Required. Date for which the sleep temperature derivations are
// calculated.
Date *Date `json:"date,omitempty"`
// NightlyTemperatureCelsius: Required. The user's nightly skin temperature. It
// is the mean of skin temperature samples taken from the user’s sleep.
NightlyTemperatureCelsius float64 `json:"nightlyTemperatureCelsius,omitempty"`
// RelativeNightlyStddev30dCelsius: Optional. The standard deviation of the
// user’s relative nightly skin temperature (temperature - baseline) over the
// past 30 days.
RelativeNightlyStddev30dCelsius float64 `json:"relativeNightlyStddev30dCelsius,omitempty"`
// ForceSendFields is a list of field names (e.g. "BaselineTemperatureCelsius")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BaselineTemperatureCelsius") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailySleepTemperatureDerivations: Provides derived sleep temperature values, calculated from skin or internal device temperature readings during sleep.
func (DailySleepTemperatureDerivations) MarshalJSON ¶
func (s DailySleepTemperatureDerivations) MarshalJSON() ([]byte, error)
func (*DailySleepTemperatureDerivations) UnmarshalJSON ¶
func (s *DailySleepTemperatureDerivations) UnmarshalJSON(data []byte) error
type DailyVO2Max ¶
type DailyVO2Max struct {
// CardioFitnessLevel: Optional. Represents the user's cardio fitness level
// based on their VO2 max.
//
// Possible values:
// "CARDIO_FITNESS_LEVEL_UNSPECIFIED" - Unspecified cardio fitness level.
// "POOR" - Poor cardio fitness level.
// "FAIR" - Fair cardio fitness level.
// "AVERAGE" - Average cardio fitness level.
// "GOOD" - Good cardio fitness level.
// "VERY_GOOD" - Very good cardio fitness level.
// "EXCELLENT" - Excellent cardio fitness level.
CardioFitnessLevel string `json:"cardioFitnessLevel,omitempty"`
// Date: Required. The date for which the Daily VO2 max was measured.
Date *Date `json:"date,omitempty"`
// Estimated: Optional. An estimated field is added to indicate when the
// confidence has decreased sufficiently to consider the value an estimation.
Estimated bool `json:"estimated,omitempty"`
// Vo2Max: Required. Daily VO2 max value measured as in ml consumed oxygen / kg
// of body weight / min.
Vo2Max float64 `json:"vo2Max,omitempty"`
// Vo2MaxCovariance: Optional. The covariance of the VO2 max value.
Vo2MaxCovariance float64 `json:"vo2MaxCovariance,omitempty"`
// ForceSendFields is a list of field names (e.g. "CardioFitnessLevel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CardioFitnessLevel") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DailyVO2Max: Contains a daily summary of the user's VO2 max (cardio fitness score), which is the maximum rate of oxygen the body can use during exercise.
func (DailyVO2Max) MarshalJSON ¶
func (s DailyVO2Max) MarshalJSON() ([]byte, error)
func (*DailyVO2Max) UnmarshalJSON ¶
func (s *DailyVO2Max) UnmarshalJSON(data []byte) error
type DataPoint ¶
type DataPoint struct {
// ActiveEnergyBurned: Optional. Data for points in the `active-energy-burned`
// interval data type collection.
ActiveEnergyBurned *ActiveEnergyBurned `json:"activeEnergyBurned,omitempty"`
// ActiveMinutes: Optional. Data for points in the `active-minutes` interval
// data type collection.
ActiveMinutes *ActiveMinutes `json:"activeMinutes,omitempty"`
// ActiveZoneMinutes: Optional. Data for points in the `active-zone-minutes`
// interval data type collection, measured in minutes.
ActiveZoneMinutes *ActiveZoneMinutes `json:"activeZoneMinutes,omitempty"`
// ActivityLevel: Optional. Data for points in the `activity-level` daily data
// type collection.
ActivityLevel *ActivityLevel `json:"activityLevel,omitempty"`
// Altitude: Optional. Data for points in the `altitude` interval data type
// collection.
Altitude *Altitude `json:"altitude,omitempty"`
// BasalEnergyBurned: Optional. Data for points in the `basal-energy-burned`
// interval data type collection.
BasalEnergyBurned *BasalEnergyBurned `json:"basalEnergyBurned,omitempty"`
// BloodGlucose: Optional. Data for points in the `blood-glucose` sample data
// type collection.
BloodGlucose *BloodGlucose `json:"bloodGlucose,omitempty"`
// BodyFat: Optional. Data for points in the `body-fat` sample data type
// collection.
BodyFat *BodyFat `json:"bodyFat,omitempty"`
// CoreBodyTemperature: Optional. Data for points in the
// `core-body-temperature` sample data type collection.
CoreBodyTemperature *CoreBodyTemperature `json:"coreBodyTemperature,omitempty"`
// DailyHeartRateVariability: Optional. Data for points in the
// `daily-heart-rate-variability` daily data type collection.
DailyHeartRateVariability *DailyHeartRateVariability `json:"dailyHeartRateVariability,omitempty"`
// DailyHeartRateZones: Optional. Data for points in the
// `daily-heart-rate-zones` daily data type collection.
DailyHeartRateZones *DailyHeartRateZones `json:"dailyHeartRateZones,omitempty"`
// DailyOxygenSaturation: Optional. Data for points in the
// `daily-oxygen-saturation` daily data type collection.
DailyOxygenSaturation *DailyOxygenSaturation `json:"dailyOxygenSaturation,omitempty"`
// DailyRespiratoryRate: Optional. Data for points in the
// `daily-respiratory-rate` daily data type collection.
DailyRespiratoryRate *DailyRespiratoryRate `json:"dailyRespiratoryRate,omitempty"`
// DailyRestingHeartRate: Optional. Data for points in the
// `daily-resting-heart-rate` daily data type collection.
DailyRestingHeartRate *DailyRestingHeartRate `json:"dailyRestingHeartRate,omitempty"`
// DailySleepTemperatureDerivations: Optional. Data for points in the
// `daily-sleep-temperature-derivations` daily data type collection.
DailySleepTemperatureDerivations *DailySleepTemperatureDerivations `json:"dailySleepTemperatureDerivations,omitempty"`
// DailyVo2Max: Optional. Data for points in the `daily-vo2-max` daily data
// type collection.
DailyVo2Max *DailyVO2Max `json:"dailyVo2Max,omitempty"`
// DataSource: Optional. Data source information for the metric
DataSource *DataSource `json:"dataSource,omitempty"`
// Distance: Optional. Data for points in the `distance` interval data type
// collection.
Distance *Distance `json:"distance,omitempty"`
// Electrocardiogram: Optional. Data for points in the `electrocardiogram`
// session data type collection.
Electrocardiogram *Electrocardiogram `json:"electrocardiogram,omitempty"`
// Exercise: Optional. Data for points in the `exercise` session data type
// collection.
Exercise *Exercise `json:"exercise,omitempty"`
// Floors: Optional. Data for points in the `floors` interval data type
// collection.
Floors *Floors `json:"floors,omitempty"`
// Food: Optional. The food details.
Food *Food `json:"food,omitempty"`
// FoodMeasurementUnit: Optional. The food measurement unit details.
FoodMeasurementUnit *FoodMeasurementUnit `json:"foodMeasurementUnit,omitempty"`
// HeartRate: Optional. Data for points in the `heart-rate` sample data type
// collection.
HeartRate *HeartRate `json:"heartRate,omitempty"`
// HeartRateVariability: Optional. Data for points in the
// `heart-rate-variability` sample data type collection.
HeartRateVariability *HeartRateVariability `json:"heartRateVariability,omitempty"`
// Height: Optional. Data for points in the `height` sample data type
// collection.
Height *Height `json:"height,omitempty"`
// HydrationLog: Optional. Data for points in the `hydration-log` session data
// type collection.
HydrationLog *HydrationLog `json:"hydrationLog,omitempty"`
// IrregularRhythmNotification: Optional. Data for points in the
// `irregular-rhythm-notification` session data type collection.
IrregularRhythmNotification *IrregularRhythmNotification `json:"irregularRhythmNotification,omitempty"`
// MenstrualPeriod: Optional. Data for points in the `menstrual-period`
// interval data type collection.
MenstrualPeriod *MenstrualPeriod `json:"menstrualPeriod,omitempty"`
// Moods: Optional. Data for points in the `moods` sample data type collection.
Moods *Moods `json:"moods,omitempty"`
// Name: Identifier. Data point name, only supported for the subset of
// identifiable data types. For the majority of the data types, individual data
// points do not need to be identified and this field would be empty. Format:
// `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` Example:
// `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcd
// ef` The `{user}` ID is a system-generated identifier, as described in
// Identity.health_user_id. The `{data_type}` ID corresponds to the kebab-case
// version of the field names in the DataPoint data union field, e.g.
// `heart-rate` for the `heart_rate` field. The `{data_point}` ID can be
// client-provided or system-generated. If client-provided, it must be a string
// of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
Name string `json:"name,omitempty"`
// NutritionLog: Optional. Data for points in the `nutrition-log` session data
// type collection.
NutritionLog *NutritionLog `json:"nutritionLog,omitempty"`
// OvulationTest: Optional. Data for points in the `ovulation-test` sample data
// type collection.
OvulationTest *OvulationTest `json:"ovulationTest,omitempty"`
// OxygenSaturation: Optional. Data for points in the `oxygen-saturation`
// sample data type collection.
OxygenSaturation *OxygenSaturation `json:"oxygenSaturation,omitempty"`
// RespiratoryRateSleepSummary: Optional. Data for points in the
// `respiratory-rate-sleep-summary` sample data type collection.
RespiratoryRateSleepSummary *RespiratoryRateSleepSummary `json:"respiratoryRateSleepSummary,omitempty"`
// RunVo2Max: Optional. Data for points in the `run-vo2-max` sample data type
// collection.
RunVo2Max *RunVO2Max `json:"runVo2Max,omitempty"`
// SedentaryPeriod: Optional. Data for points in the `sedentary-period`
// interval data type collection.
SedentaryPeriod *SedentaryPeriod `json:"sedentaryPeriod,omitempty"`
// Sleep: Optional. Data for points in the `sleep` session data type
// collection.
Sleep *Sleep `json:"sleep,omitempty"`
// Steps: Optional. Data for points in the `steps` interval data type
// collection.
Steps *Steps `json:"steps,omitempty"`
// SwimLengthsData: Optional. Data for points in the `swim-lengths-data`
// interval data type collection.
SwimLengthsData *SwimLengthsData `json:"swimLengthsData,omitempty"`
// Symptoms: Optional. Data for points in the `symptoms` sample data type
// collection.
Symptoms *Symptoms `json:"symptoms,omitempty"`
// TimeInHeartRateZone: Optional. Data for points in the
// `time-in-heart-rate-zone` interval data type collection.
TimeInHeartRateZone *TimeInHeartRateZone `json:"timeInHeartRateZone,omitempty"`
// Vo2Max: Optional. Data for points in the `vo2-max` sample data type
// collection.
Vo2Max *VO2Max `json:"vo2Max,omitempty"`
// Weight: Optional. Data for points in the `weight` sample data type
// collection.
Weight *Weight `json:"weight,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ActiveEnergyBurned") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveEnergyBurned") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataPoint: A computed or recorded metric.
func (DataPoint) MarshalJSON ¶
type DataSource ¶
type DataSource struct {
// Application: Output only. Captures metadata for the application that
// provided this data.
Application *Application `json:"application,omitempty"`
// Device: Optional. Captures metadata for raw data points originating from
// devices. We expect this data source to be used for data points written on
// device sync.
Device *Device `json:"device,omitempty"`
// Platform: Output only. Captures the platform that uploaded the data.
//
// Possible values:
// "PLATFORM_UNSPECIFIED" - The platform is unspecified.
// "FITBIT" - The data was uploaded from Fitbit.
// "HEALTH_CONNECT" - The data was uploaded from Health Connect.
// "HEALTH_KIT" - The data was uploaded from Health Kit.
// "FIT" - The data was uploaded from Google Fit.
// "FITBIT_WEB_API" - The data was uploaded from Fitbit legacy Web API.
// "NEST" - The data was uploaded from Nest devices.
// "GOOGLE_WEB_API" - The data was uploaded from Google Health API.
// "GOOGLE_PARTNER_INTEGRATION" - The data was uploaded from Google Partner
// Integrations.
Platform string `json:"platform,omitempty"`
// RecordingMethod: Optional. Captures how the data was recorded.
//
// Possible values:
// "RECORDING_METHOD_UNSPECIFIED" - The recording method is unspecified.
// "MANUAL" - The data was manually entered by the user.
// "PASSIVELY_MEASURED" - The data was passively measured by a device.
// "DERIVED" - The data was derived from other data, e.g., by an algorithm in
// the backend.
// "ACTIVELY_MEASURED" - The data was actively measured by a device.
// "UNKNOWN" - The recording method is unknown. This is set when the data is
// uploaded from a third party app that does not provide this information.
RecordingMethod string `json:"recordingMethod,omitempty"`
// ForceSendFields is a list of field names (e.g. "Application") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Application") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataSource: Data Source definition to track the origin of data. Each health data point, regardless of the complexity or data model (whether a simple step count or a detailed sleep session) must retain information about its source of origin (e.g. the device or app that collected it).
func (DataSource) MarshalJSON ¶
func (s DataSource) MarshalJSON() ([]byte, error)
type Date ¶
type Date struct {
// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
// or 0 to specify a year by itself or a year and month where the day isn't
// significant.
Day int64 `json:"day,omitempty"`
// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
// a month and day.
Month int64 `json:"month,omitempty"`
// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
// without a year.
Year int64 `json:"year,omitempty"`
// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Day") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
func (Date) MarshalJSON ¶
type DateTime ¶
type DateTime struct {
// Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and
// month, or 0 if specifying a datetime without a day.
Day int64 `json:"day,omitempty"`
// Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23,
// defaults to 0 (midnight). An API may choose to allow the value "24:00:00"
// for scenarios like business closing time.
Hours int64 `json:"hours,omitempty"`
// Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to
// 0.
Minutes int64 `json:"minutes,omitempty"`
// Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
// datetime without a month.
Month int64 `json:"month,omitempty"`
// Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to
// 999,999,999, defaults to 0.
Nanos int64 `json:"nanos,omitempty"`
// Seconds: Optional. Seconds of minutes of the time. Must normally be from 0
// to 59, defaults to 0. An API may allow the value 60 if it allows
// leap-seconds.
Seconds int64 `json:"seconds,omitempty"`
// TimeZone: Time zone.
TimeZone *TimeZone `json:"timeZone,omitempty"`
// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18
// hours. For example, a UTC offset of -4:00 would be represented as { seconds:
// -14400 }.
UtcOffset string `json:"utcOffset,omitempty"`
// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
// datetime without a year.
Year int64 `json:"year,omitempty"`
// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Day") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DateTime: Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.
func (DateTime) MarshalJSON ¶
type Device ¶
type Device struct {
// DisplayName: Optional. An optional name for the device.
DisplayName string `json:"displayName,omitempty"`
// FormFactor: Optional. Captures the form factor of the device.
//
// Possible values:
// "FORM_FACTOR_UNSPECIFIED" - The form factor is unspecified.
// "FITNESS_BAND" - The device is a fitness band.
// "WATCH" - The device is a watch.
// "PHONE" - The device is a phone.
// "RING" - The device is a ring.
// "CHEST_STRAP" - The device is a chest strap.
// "SCALE" - The device is a scale.
// "TABLET" - The device is a tablet.
// "HEAD_MOUNTED" - The device is a head mounted device.
// "SMART_DISPLAY" - The device is a smart display.
FormFactor string `json:"formFactor,omitempty"`
// Manufacturer: Optional. An optional manufacturer of the device.
Manufacturer string `json:"manufacturer,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Device: Captures metadata about the device that recorded the measurement.
func (Device) MarshalJSON ¶
type Distance ¶
type Distance struct {
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// Millimeters: Required. Distance in millimeters over the observed interval.
Millimeters int64 `json:"millimeters,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Distance: Distance traveled over an interval of time.
func (Distance) MarshalJSON ¶
type DistanceRollupValue ¶
type DistanceRollupValue struct {
// MillimetersSum: Sum of the distance in millimeters.
MillimetersSum int64 `json:"millimetersSum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "MillimetersSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MillimetersSum") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DistanceRollupValue: Result of the rollup of the user's distance.
func (DistanceRollupValue) MarshalJSON ¶
func (s DistanceRollupValue) MarshalJSON() ([]byte, error)
type Electrocardiogram ¶ added in v0.283.0
type Electrocardiogram struct {
// BeatsPerMinuteAvg: Optional. Average heart rate recorded during ECG reading
// in beats per minute.
BeatsPerMinuteAvg int64 `json:"beatsPerMinuteAvg,omitempty,string"`
// Interval: Required. Observed interval. NOTE: Historical ECG data lacks
// timezone offsets, so `start_utc_offset` and `end_utc_offset` will be missing
// or default to zero. As a result, the civil time fields within this interval
// will default to UTC. It is recommended to use physical time fields instead
// for accurate time referencing. NOTE: The `start_time` and `end_time` of the
// interval are equal, representing the reading time.
Interval *SessionTimeInterval `json:"interval,omitempty"`
// LeadNumber: Optional. The number of leads used for ECG reading.
LeadNumber int64 `json:"leadNumber,omitempty"`
// MedicalDeviceInfo: Output only. The meta information for the compatible
// device used to conduct the measurement. ECG measurements typically populate
// `firmware_version`, `feature_version`, and `device_model`.
MedicalDeviceInfo *MedicalDeviceInfo `json:"medicalDeviceInfo,omitempty"`
// MillivoltsScalingFactor: Optional. The factor by which to divide waveform
// samples to get voltage in millivolts: millivolts = waveform_sample /
// millivolts_scaling_factor.
MillivoltsScalingFactor int64 `json:"millivoltsScalingFactor,omitempty"`
// ResultClassification: Optional. The result classification of the ECG
// reading.
//
// Possible values:
// "RESULT_CLASSIFICATION_UNSPECIFIED" - Unspecified result classification.
// "NORMAL_SINUS_RHYTHM" - Heart rhythm appears normal. Corresponds to result
// "Normal Sinus Rhythm".
// "ATRIAL_FIBRILLATION" - Signs of Atrial Fibrillation detected. Corresponds
// to result "Atrial Fibrillation".
// "INCONCLUSIVE" - The reading is inconclusive as it could not be
// classified. Corresponds to result "Inconclusive".
// "INCONCLUSIVE_HIGH_HEART_RATE" - The reading is inconclusive as it could
// not be classified because heart rate is high (>120bpm). Corresponds to
// result "Inconclusive: High heart rate".
// "INCONCLUSIVE_LOW_HEART_RATE" - The reading is inconclusive as it could
// not be classified because heart rate is low (<50bpm). Corresponds to result
// "Inconclusive: Low heart rate".
// "UNREADABLE" - The reading is unreadable.
// "NOT_ANALYZED" - The reading was not analyzed.
ResultClassification string `json:"resultClassification,omitempty"`
// SamplingFrequencyHertz: Optional. The sampling frequency of waveform samples
// in hertz.
SamplingFrequencyHertz int64 `json:"samplingFrequencyHertz,omitempty"`
// WaveformSamples: Optional. An array of voltage values representing lead I
// ECG values. Each sample represents voltage difference in ECG graph. The
// first value in array corresponds to the start of the reading.
WaveformSamples []int64 `json:"waveformSamples,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinuteAvg") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinuteAvg") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Electrocardiogram: Represents an Electrocardiogram (ECG) measurement session. This data type is based on SaMD feature and any changes to it may require additional review.
func (Electrocardiogram) MarshalJSON ¶ added in v0.283.0
func (s Electrocardiogram) MarshalJSON() ([]byte, error)
type Empty ¶ added in v0.283.0
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
}
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type EndpointAuthorization ¶ added in v0.277.0
type EndpointAuthorization struct {
// Secret: Required. Input only. Provides a client-provided secret that will be
// sent with each notification to the subscriber endpoint using the
// "Authorization" header. The value must include the authorization scheme,
// e.g., "Bearer " or "Basic ", as it will be used as the full Authorization
// header value. This secret is used by the API to test the endpoint during
// `CreateSubscriber` and `UpdateSubscriber` calls, and will be sent in the
// `Authorization` header for all subsequent webhook notifications to this
// endpoint.
Secret string `json:"secret,omitempty"`
// SecretSet: Output only. Whether the secret is set.
SecretSet bool `json:"secretSet,omitempty"`
// ForceSendFields is a list of field names (e.g. "Secret") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Secret") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndpointAuthorization: Authorization mechanism for a subscriber endpoint. For all requests sent by the Webhooks service, the JSON payload is cryptographically signed. The signature is delivered in the `GOOGLE-HEALTH-API-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) signature of the JSON payload. Clients must verify this signature using Google Health API's public key to confirm the payload was sent by the Health API.
func (EndpointAuthorization) MarshalJSON ¶ added in v0.277.0
func (s EndpointAuthorization) MarshalJSON() ([]byte, error)
type EnergyQuantity ¶ added in v0.283.0
type EnergyQuantity struct {
// Kcal: Required. The energy value in kilocalories.
Kcal float64 `json:"kcal,omitempty"`
// UserProvidedUnit: Optional. Value representing the user provided unit.
//
// Possible values:
// "ENERGY_UNIT_UNSPECIFIED" - Unspecified energy unit.
// "JOULE" - Value representing joule.
// "KILOJOULE" - Value representing kilojoule.
// "KILOCALORIE" - Value representing kilocalorie.
// "SMALL_CALORIE" - Value representing small calorie.
// "CALORIE" - Value representing calorie.
UserProvidedUnit string `json:"userProvidedUnit,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kcal") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kcal") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EnergyQuantity: Represents the energy quantity.
func (EnergyQuantity) MarshalJSON ¶ added in v0.283.0
func (s EnergyQuantity) MarshalJSON() ([]byte, error)
func (*EnergyQuantity) UnmarshalJSON ¶ added in v0.283.0
func (s *EnergyQuantity) UnmarshalJSON(data []byte) error
type EnergyQuantityRollup ¶ added in v0.283.0
type EnergyQuantityRollup struct {
// KcalSum: Required. The sum of the energy in kilocalories.
KcalSum float64 `json:"kcalSum,omitempty"`
// UserProvidedUnitLast: Optional. The user provided unit on the last element.
//
// Possible values:
// "ENERGY_UNIT_UNSPECIFIED" - Unspecified energy unit.
// "JOULE" - Value representing joule.
// "KILOJOULE" - Value representing kilojoule.
// "KILOCALORIE" - Value representing kilocalorie.
// "SMALL_CALORIE" - Value representing small calorie.
// "CALORIE" - Value representing calorie.
UserProvidedUnitLast string `json:"userProvidedUnitLast,omitempty"`
// ForceSendFields is a list of field names (e.g. "KcalSum") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "KcalSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EnergyQuantityRollup: Rollup for the energy quantity.
func (EnergyQuantityRollup) MarshalJSON ¶ added in v0.283.0
func (s EnergyQuantityRollup) MarshalJSON() ([]byte, error)
func (*EnergyQuantityRollup) UnmarshalJSON ¶ added in v0.283.0
func (s *EnergyQuantityRollup) UnmarshalJSON(data []byte) error
type Exercise ¶
type Exercise struct {
// ActiveDuration: Optional. Duration excluding pauses.
ActiveDuration string `json:"activeDuration,omitempty"`
// CreateTime: Output only. Represents the timestamp of the creation of the
// exercise.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Required. The localized, human-readable name of the exercise.
// For all exercise types other than `OTHER`, the system ignores client input
// and overrides this field with a generated name based on `exercise_type`
// (e.g., "Walking" for `WALKING`). If `exercise_type` is `OTHER`, this field
// can contain the user's custom, free-form display name.
DisplayName string `json:"displayName,omitempty"`
// ExerciseEvents: Optional. Exercise events that happen during an exercise,
// such as pause & restarts.
ExerciseEvents []*ExerciseEvent `json:"exerciseEvents,omitempty"`
// ExerciseMetadata: Optional. Additional exercise metadata.
ExerciseMetadata *ExerciseMetadata `json:"exerciseMetadata,omitempty"`
// ExerciseType: Required. The type of activity performed during an exercise.
//
// Possible values:
// "EXERCISE_TYPE_UNSPECIFIED" - Exercise type is unspecified.
// "AEROBIC_WORKOUT" - Aerobic workout type.
// "ARCHERY" - Archery type.
// "ASSAULT_BIKE" - Assault bike type.
// "BACKPACKING" - Backpacking type.
// "BADMINTON" - Badminton type.
// "BALLET" - Ballet type.
// "BALLROOM_DANCE" - Ballroom dance type.
// "BARRE_CLASS" - Barre class type.
// "BASEBALL" - Baseball type.
// "BASKETBALL" - Basketball type.
// "BIKING" - Biking type.
// "BILLIARDS" - Billiards type.
// "BODY_WEIGHT" - Body weight type.
// "BOOTCAMP" - Bootcamp type.
// "BOWLING" - Bowling type.
// "BOXING" - Boxing type.
// "BREAKDANCING" - Breakdancing type.
// "CALISTHENICS" - Calisthenics type.
// "CANOEING" - Canoeing type.
// "CARDIO_SCULPT" - Cardio sculpt type.
// "CARDIO_WORKOUT" - Cardio workout type.
// "CARPENTRY" - Carpentry type.
// "CHEERLEADING" - Cheerleading type.
// "CIRCUIT_TRAINING" - Circuit training type.
// "CLEANING" - Cleaning type.
// "CLIMBING" - Climbing type.
// "CORE_TRAINING" - Core training type.
// "CRICKET" - Cricket type.
// "CROQUET" - Croquet type.
// "CROSS_COUNTRY_SKI" - Cross country ski type.
// "CROSS_TRAINING" - Cross training type.
// "CROSSFIT" - Crossfit type.
// "CURLING" - Curling type.
// "DANCING" - Dancing type.
// "DIVING" - Diving type.
// "ELECTRIC_BIKE" - Electric bike type.
// "ELECTRIC_SCOOTER" - Electric scooter type.
// "ELLIPTICAL" - Elliptical type.
// "EQUESTRIAN_SPORTS" - Equestrian sports type.
// "EXERCISE_CLASS" - Exercise class type.
// "FENCING" - Fencing type.
// "FIELD_HOCKEY" - Field hockey type.
// "FISHING" - Fishing type.
// "FITNESS_GAMING" - Fitness gaming type.
// "FOILING" - Foiling type.
// "FOOTBALL_AMERICAN" - Football american type.
// "FOOTBALL_AUSTRALIAN" - Football australian type.
// "FREE_WEIGHTS" - Free weights type.
// "FRISBEE_PLAYING_GENERAL" - Frisbee playing general type.
// "FUNCTIONAL_STRENGTH_TRAINING" - Functional strength training type.
// "GARDENING" - Gardening type.
// "GOLF" - Golf type.
// "GYMNASTICS" - Gymnastics type.
// "HANDBALL" - Handball type.
// "HAND_CYCLING" - Hand cycling type.
// "HIIT" - Hiit type.
// "HIKING" - Hiking type.
// "HIP_HOP" - Hip hop type.
// "HOCKEY" - Hockey type.
// "HOEING" - Hoeing type.
// "HOUSEHOLD_CHORES" - Household chores type.
// "HUNTING" - Hunting type.
// "ICE_SKATING" - Ice skating type.
// "INCLINE_RUN" - Incline run type.
// "INCLINE_WALK" - Incline walk type.
// "INDOOR_CLIMBING" - Indoor climbing type.
// "INTERVAL_WORKOUT" - Interval workout type.
// "JAZZ_DANCE" - Jazz dance type.
// "JIU_JITSU" - Jiu jitsu type.
// "JUMPING_ROPE" - Jumping rope type.
// "KARATE" - Karate type.
// "KAYAKING" - Kayaking type.
// "KICKBOXING" - Kickboxing type.
// "KITESURFING" - Kitesurfing type.
// "LACROSSE" - Lacrosse type.
// "MARTIAL_ARTS" - Martial arts type.
// "MEDITATE" - Meditate type.
// "MODERN_DANCE" - Modern dance type.
// "MOTOCROSS" - Motocross type.
// "MOTORCYCLE" - Motorcycle type.
// "MOUNTAIN_BIKE" - Mountain bike type.
// "MOWING_LAWN" - Mowing lawn type.
// "MUAY_THAI" - Muay thai type.
// "MULTISPORT" - Multisport type.
// "MUSICAL_PERFORMANCE" - Musical performance type.
// "NORDIC_WALKING" - Nordic walking type.
// "ORIENTEERING" - Orienteering type.
// "OTHER" - Other type.
// "OUTDOOR_BIKE" - Outdoor bike type.
// "OUTDOOR_WORKOUT" - Outdoor workout type.
// "PADDLEBOARDING" - Paddleboarding type.
// "PADEL" - Padel type.
// "PAINTING" - Painting type.
// "PARAGLIDING" - Paragliding type.
// "PARKOUR" - Parkour type.
// "PICKELBALL" - Pickelball type.
// "PILATES" - Pilates type.
// "POLO" - Polo type.
// "POWERLIFTING" - Powerlifting type.
// "POWER_WALKING" - Power walking type.
// "RACKET_SPORTS" - Racket sports type.
// "RACQUETBALL" - Racquetball type.
// "RESISTANCE_BANDS" - Resistance bands type.
// "ROCK_CLIMBING" - Rock climbing type.
// "ROLLERBLADING" - Rollerblading type.
// "ROLLER_SKATING" - Roller skating type.
// "ROWING" - Rowing type.
// "ROWING_MACHINE" - Rowing machine type.
// "RUCKING" - Rucking type.
// "RUGBY" - Rugby type.
// "RUNNING" - Running type.
// "SAILING" - Sailing type.
// "SCOOTERING" - Scootering type.
// "SCUBA_DIVING" - Scuba diving type.
// "SHOOTING" - Shooting type.
// "SHOVELING" - Shoveling type.
// "SKATEBOARDING" - Skateboarding type.
// "SKATING" - Skating type.
// "SKIING" - Skiing type.
// "SKYDIVING" - Skydiving type.
// "SNORKELING" - Snorkeling type.
// "SNOWBOARDING" - Snowboarding type.
// "SNOWMOBILING" - Snowmobiling type.
// "SNOWSHOEING" - Snowshoeing type.
// "SNOW_SPORT" - Snow sport type.
// "SOCCER" - Soccer type.
// "SOFTBALL" - Softball type.
// "SPEED_SKATING" - Speed skating type.
// "SPINNING" - Spinning type.
// "SPORT" - Sport type.
// "SQUASH" - Squash type.
// "STAIRCLIMBER" - Stairclimber type.
// "STATIONARY_BIKE" - Stationary bike type.
// "STEP_TRAINING" - Step training type.
// "STRENGTH_TRAINING" - Strength training type.
// "STRETCHING" - Stretching type.
// "STROLLER_WALK" - Stroller walk type.
// "SURFING" - Surfing type.
// "SWIMMING" - Swimming type.
// "SWIMMING_OPEN_WATER" - Swimming open water type.
// "SWIMMING_POOL" - Swimming pool type.
// "SYNCHRONIZED_SWIMMING" - Synchronized swimming type.
// "TABATA_WORKOUT" - Tabata workout type.
// "TABLE_TENNIS" - Table tennis type.
// "TAEKWONDO" - Taekwondo type.
// "TAI_CHI" - Tai chi type.
// "TANGO" - Tango type.
// "TENNIS" - Tennis type.
// "TRACK_AND_FIELD" - Track and field type.
// "TRAIL_RUN" - Trail run type.
// "TRAMPOLINE" - Trampoline type.
// "TREADMILL" - Treadmill type.
// "TREADMILL_WALK" - Treadmill walk type.
// "TRX" - Trx type.
// "ULTIMATE_FRISBEE" - Ultimate frisbee type.
// "UNICYCLING" - Unicycling type.
// "VOLLEYBALL" - Volleyball type.
// "VOLLEYBALL_BEACH" - Volleyball beach type.
// "WAKEBOARDING" - Wakeboarding type.
// "WALKING" - Walking type.
// "WALK_WITH_WEIGHTS" - Walk with weights type.
// "WATER_AEROBICS" - Water aerobics type.
// "WATER_JOGGING" - Water jogging type.
// "WATER_POLO" - Water polo type.
// "WATER_SKIING" - Water skiing type.
// "WATER_SPORT" - Water sport type.
// "WATER_VOLLEYBALL" - Water volleyball type.
// "WEEDING" - Weeding type.
// "WEIGHTLIFTING" - Weightlifting type.
// "WEIGHT_MACHINES" - Weight machines type.
// "WEIGHTS" - Weights type.
// "WHEELCHAIR" - Wheelchair type.
// "WINDSURFING" - Windsurfing type.
// "WORKOUT" - Workout type.
// "WRESTLING" - Wrestling type.
// "YOGA" - Yoga type.
// "YOGA_BIKRAM" - Yoga bikram type.
// "YOGA_HATHA" - Yoga hatha type.
// "YOGA_POWER" - Yoga power type.
// "YOGA_VINYASA" - Yoga vinyasa type.
// "ZUMBA" - Zumba type.
ExerciseType string `json:"exerciseType,omitempty"`
// Interval: Required. Observed exercise interval
Interval *SessionTimeInterval `json:"interval,omitempty"`
// MetricsSummary: Required. Summary metrics for this exercise ( )
MetricsSummary *MetricsSummary `json:"metricsSummary,omitempty"`
// Notes: Optional. Standard free-form notes captured at manual logging.
Notes string `json:"notes,omitempty"`
// SplitSummaries: Optional. Laps or splits recorded within an exercise. Laps
// could be split based on distance or other criteria (duration, etc.) Laps
// should not be overlapping with each other.
SplitSummaries []*SplitSummary `json:"splitSummaries,omitempty"`
// Splits: Optional. The default split is 1 km or 1 mile. - if the movement
// distance is less than the default, then there are no splits - if the
// movement distance is greater than or equal to the default, then we have
// splits
Splits []*SplitSummary `json:"splits,omitempty"`
// UpdateTime: Output only. This is the timestamp of the last update to the
// exercise.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveDuration") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveDuration") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Exercise: An exercise that stores information about a physical activity.
func (Exercise) MarshalJSON ¶
type ExerciseEvent ¶
type ExerciseEvent struct {
// EventTime: Required. Exercise event time
EventTime string `json:"eventTime,omitempty"`
// EventUtcOffset: Required. Exercise event time offset from UTC
EventUtcOffset string `json:"eventUtcOffset,omitempty"`
// ExerciseEventType: Required. The type of the event, such as start, stop,
// pause, resume.
//
// Possible values:
// "EXERCISE_EVENT_TYPE_UNSPECIFIED" - Exercise event type is unspecified.
// "START" - Exercise start event.
// "STOP" - Exercise stop event.
// "PAUSE" - Exercise pause event.
// "RESUME" - Exercise resume event.
// "AUTO_PAUSE" - Exercise auto-pause event.
// "AUTO_RESUME" - Exercise auto-resume event.
ExerciseEventType string `json:"exerciseEventType,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EventTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExerciseEvent: Represents instantaneous events that happen during an exercise, such as start, stop, pause, split.
func (ExerciseEvent) MarshalJSON ¶
func (s ExerciseEvent) MarshalJSON() ([]byte, error)
type ExerciseMetadata ¶
type ExerciseMetadata struct {
// HasGps: Optional. Whether the exercise had GPS tracking.
HasGps bool `json:"hasGps,omitempty"`
// PoolLengthMillimeters: Optional. Pool length in millimeters. Only present in
// the swimming exercises.
PoolLengthMillimeters int64 `json:"poolLengthMillimeters,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "HasGps") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HasGps") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExerciseMetadata: Additional exercise metadata.
func (ExerciseMetadata) MarshalJSON ¶
func (s ExerciseMetadata) MarshalJSON() ([]byte, error)
type ExportExerciseTcxResponse ¶
type ExportExerciseTcxResponse struct {
// TcxData: Contains the exported TCX data. This field is intended for gRPC
// clients, as media download integration is not supported for gRPC. HTTP
// clients should instead use the `alt=media` query parameter to download the
// raw binary TCX file.
TcxData string `json:"tcxData,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "TcxData") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TcxData") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExportExerciseTcxResponse: Represents a Response for exporting exercise data in TCX format.
func (ExportExerciseTcxResponse) MarshalJSON ¶
func (s ExportExerciseTcxResponse) MarshalJSON() ([]byte, error)
type Floors ¶
type Floors struct {
// Count: Required. Number of floors in the recorded interval
Count int64 `json:"count,omitempty,string"`
// Interval: Required. Observed interval
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Count") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Floors: Gained elevation measured in floors over the time interval
func (Floors) MarshalJSON ¶
type FloorsRollupValue ¶
type FloorsRollupValue struct {
// CountSum: Sum of the floors count.
CountSum int64 `json:"countSum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "CountSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CountSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
FloorsRollupValue: Represents the result of the rollup of the user's floors.
func (FloorsRollupValue) MarshalJSON ¶
func (s FloorsRollupValue) MarshalJSON() ([]byte, error)
type Food ¶ added in v0.283.0
type Food struct {
// AccessLevel: Required. The access level of the food.
//
// Possible values:
// "FOOD_ACCESS_LEVEL_UNSPECIFIED" - Unspecified food access level.
// "FOOD_ACCESS_LEVEL_PUBLIC" - Public food access level.
// "FOOD_ACCESS_LEVEL_PRIVATE" - Private food access level.
AccessLevel string `json:"accessLevel,omitempty"`
// Brand: Optional. The brand of the food.
Brand string `json:"brand,omitempty"`
// DefaultServing: Required. Value representing the default serving of the
// food.
DefaultServing *FoodServing `json:"defaultServing,omitempty"`
// Description: Optional. The description of the food.
Description string `json:"description,omitempty"`
// DisplayName: Required. The display name of the food.
DisplayName string `json:"displayName,omitempty"`
// EnergyAvg: Optional. Value representing the average energy of the food for
// the default serving.
EnergyAvg *EnergyQuantity `json:"energyAvg,omitempty"`
// EnergyFromFat: Optional. Value representing the energy from fat of the food
// for the default serving.
EnergyFromFat *EnergyQuantity `json:"energyFromFat,omitempty"`
// EnergyMax: Optional. Value representing the maximum energy of the food for
// the default serving.
EnergyMax *EnergyQuantity `json:"energyMax,omitempty"`
// EnergyMin: Optional. Value representing the minimum energy of the food for
// the default serving.
EnergyMin *EnergyQuantity `json:"energyMin,omitempty"`
// LanguageCode: Optional. The language code where the food is available in
// format xx-XX. Supported values are defined in Settings.food_language_code.
LanguageCode string `json:"languageCode,omitempty"`
// MealType: Optional. The meal type associated with this food.
//
// Possible values:
// "MEAL_TYPE_UNSPECIFIED" - Unspecified meal type.
// "BEFORE_BREAKFAST" - Value representing a meal before breakfast.
// "BREAKFAST" - Value representing a breakfast.
// "BEFORE_LUNCH" - Value representing a morning snack.
// "LUNCH" - Value representing a lunch.
// "BEFORE_DINNER" - Value representing an afternoon snack.
// "DINNER" - Value representing dinner.
// "AFTER_DINNER" - Value representing an evening snack.
// "SNACK" - Value representing any meal outside of the usual three meals per
// day.
// "ANYTIME" - Value representing any time (legacy NA).
MealType string `json:"mealType,omitempty"`
// Nutrients: Optional. Value representing the nutrients of the food for the
// default serving.
Nutrients []*NutrientQuantity `json:"nutrients,omitempty"`
// Servings: Optional. The serving of the food.
Servings []*FoodServing `json:"servings,omitempty"`
// TotalCarbohydrate: Optional. Value representing the total carbohydrate of
// the food for the default serving.
TotalCarbohydrate *WeightQuantity `json:"totalCarbohydrate,omitempty"`
// TotalFat: Optional. Value representing the total fat of the food for the
// default serving.
TotalFat *WeightQuantity `json:"totalFat,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccessLevel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccessLevel") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Food: Represents a food item.
func (Food) MarshalJSON ¶ added in v0.283.0
type FoodMeasurementUnit ¶ added in v0.283.0
type FoodMeasurementUnit struct {
// DisplayName: Required. The display name of the food measurement unit (e.g.,
// "gram", "piece").
DisplayName string `json:"displayName,omitempty"`
// PluralDisplayName: Optional. The plural display name of the food measurement
// unit (e.g., "grams", "pieces").
PluralDisplayName string `json:"pluralDisplayName,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
FoodMeasurementUnit: Represents a food measurement unit.
func (FoodMeasurementUnit) MarshalJSON ¶ added in v0.283.0
func (s FoodMeasurementUnit) MarshalJSON() ([]byte, error)
type FoodServing ¶ added in v0.283.0
type FoodServing struct {
// Amount: Optional. Amount of food consumed, fractional values are supported.
Amount float64 `json:"amount,omitempty"`
// FoodMeasurementUnit: Required. Food measurement unit
FoodMeasurementUnit string `json:"foodMeasurementUnit,omitempty"`
// FoodMeasurementUnitDisplayName: Output only. Legacy measurement unit for
// serving size in singular form (e.g. "piece", "gram").
FoodMeasurementUnitDisplayName string `json:"foodMeasurementUnitDisplayName,omitempty"`
// FoodMeasurementUnitDisplayNamePlural: Output only. Legacy measurement unit
// for serving size in plural form (e.g. "pieces", "grams").
FoodMeasurementUnitDisplayNamePlural string `json:"foodMeasurementUnitDisplayNamePlural,omitempty"`
// Multiplier: Optional. Value representing the multiplier used to compute the
// energy when using this serving instead of the default serving.
Multiplier float64 `json:"multiplier,omitempty"`
// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Amount") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
FoodServing: Represents different properties and information about the serving of a specific food.
func (FoodServing) MarshalJSON ¶ added in v0.283.0
func (s FoodServing) MarshalJSON() ([]byte, error)
func (*FoodServing) UnmarshalJSON ¶ added in v0.283.0
func (s *FoodServing) UnmarshalJSON(data []byte) error
type GoogleDevicesandservicesHealthV4DataType ¶
type GoogleDevicesandservicesHealthV4DataType struct {
// Name: Identifier. The resource name of the data type. Format:
// `users/{user}/dataTypes/{data_type}` See DataPoint.name for examples and
// possible values.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleDevicesandservicesHealthV4DataType: Represents a type of health data a user can have data points recorded for. It matches the parent resource of collection containing data points of the given type. Clients currently do not need to interact with this resource directly.
func (GoogleDevicesandservicesHealthV4DataType) MarshalJSON ¶
func (s GoogleDevicesandservicesHealthV4DataType) MarshalJSON() ([]byte, error)
type GoogleDevicesandservicesHealthV4User ¶ added in v0.283.0
type GoogleDevicesandservicesHealthV4User struct {
// Name: Identifier. The resource name of the user. The `{user}` ID is a
// system-generated identifier, as described in Identity.health_user_id.
// Format: `users/{user}`
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleDevicesandservicesHealthV4User: Represents a user in the Google Health API. It matches the parent resource of collections owned by the user. Clients currently do not need to interact with this resource directly.
func (GoogleDevicesandservicesHealthV4User) MarshalJSON ¶ added in v0.283.0
func (s GoogleDevicesandservicesHealthV4User) MarshalJSON() ([]byte, error)
type GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog ¶ added in v0.278.0
type GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog struct {
// HttpResponse: Required. Represents the HTTP response. This message includes
// the status code, reason phrase, headers, and body.
HttpResponse *HttpResponse `json:"httpResponse,omitempty"`
// ForceSendFields is a list of field names (e.g. "HttpResponse") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HttpResponse") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog: Log message for a webhook notification sent by the Google Health API to a subscriber's endpoint. Includes the HTTP response received from the endpoint.
func (GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog) MarshalJSON ¶ added in v0.278.0
func (s GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog) MarshalJSON() ([]byte, error)
type HeartBeat ¶ added in v0.283.0
type HeartBeat struct {
// BeatsPerMinute: Required. The beats-per-minute value extrapolated from the
// time before the following heart beat. This is calculated as 60000 / rr,
// where rr is the gap between heart beats in milliseconds (IBI - Interbeat
// Interval).
BeatsPerMinute int64 `json:"beatsPerMinute,omitempty"`
// CivilTime: Output only. The civil time in the timezone the subject is in at
// the time of the observation.
CivilTime *CivilDateTime `json:"civilTime,omitempty"`
// PhysicalTime: Required. The time of the heart beat measurement.
PhysicalTime string `json:"physicalTime,omitempty"`
// UtcOffset: Required. The UTC offset of the user's timezone when the heart
// beat measurement occurred.
UtcOffset string `json:"utcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinute") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinute") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartBeat: A single heart beat measurement.
func (HeartBeat) MarshalJSON ¶ added in v0.283.0
type HeartRate ¶
type HeartRate struct {
// BeatsPerMinute: Required. The heart rate value in beats per minute.
BeatsPerMinute int64 `json:"beatsPerMinute,omitempty,string"`
// Metadata: Optional. Metadata about the heart rate sample.
Metadata *HeartRateMetadata `json:"metadata,omitempty"`
// SampleTime: Required. Observation time
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinute") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinute") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRate: A heart rate measurement.
func (HeartRate) MarshalJSON ¶
type HeartRateMetadata ¶
type HeartRateMetadata struct {
// MotionContext: Optional. Indicates the user’s level of activity when the
// heart rate sample was measured
//
// Possible values:
// "MOTION_CONTEXT_UNSPECIFIED" - The default value when no data is
// available.
// "ACTIVE" - The user is active.
// "SEDENTARY" - The user is inactive.
MotionContext string `json:"motionContext,omitempty"`
// SensorLocation: Optional. Indicates the location of the sensor that measured
// the heart rate.
//
// Possible values:
// "SENSOR_LOCATION_UNSPECIFIED" - The default value when no data is
// available.
// "CHEST" - Chest sensor.
// "WRIST" - Wrist sensor.
// "FINGER" - Finger sensor.
// "HAND" - Hand sensor.
// "EAR_LOBE" - Ear lobe sensor.
// "FOOT" - Foot sensor.
SensorLocation string `json:"sensorLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "MotionContext") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MotionContext") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRateMetadata: Heart rate metadata.
func (HeartRateMetadata) MarshalJSON ¶
func (s HeartRateMetadata) MarshalJSON() ([]byte, error)
type HeartRateRollupValue ¶
type HeartRateRollupValue struct {
// BeatsPerMinuteAvg: The average heart rate value in the interval.
BeatsPerMinuteAvg float64 `json:"beatsPerMinuteAvg,omitempty"`
// BeatsPerMinuteMax: The maximum heart rate value in the interval.
BeatsPerMinuteMax float64 `json:"beatsPerMinuteMax,omitempty"`
// BeatsPerMinuteMin: The minimum heart rate value in the interval.
BeatsPerMinuteMin float64 `json:"beatsPerMinuteMin,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinuteAvg") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinuteAvg") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRateRollupValue: Represents the result of the rollup of the heart rate data type.
func (HeartRateRollupValue) MarshalJSON ¶
func (s HeartRateRollupValue) MarshalJSON() ([]byte, error)
func (*HeartRateRollupValue) UnmarshalJSON ¶
func (s *HeartRateRollupValue) UnmarshalJSON(data []byte) error
type HeartRateVariability ¶
type HeartRateVariability struct {
// RootMeanSquareOfSuccessiveDifferencesMilliseconds: Optional. The root mean
// square of successive differences between normal heartbeats. This is a
// measure of heart rate variability used by Google Health.
RootMeanSquareOfSuccessiveDifferencesMilliseconds float64 `json:"rootMeanSquareOfSuccessiveDifferencesMilliseconds,omitempty"`
// SampleTime: Required. The time of the heart rate variability measurement.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// StandardDeviationMilliseconds: Optional. The standard deviation of the heart
// rate variability measurement.
StandardDeviationMilliseconds float64 `json:"standardDeviationMilliseconds,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "RootMeanSquareOfSuccessiveDifferencesMilliseconds") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "RootMeanSquareOfSuccessiveDifferencesMilliseconds") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRateVariability: Captures user's heart rate variability (HRV) as measured by the root mean square of successive differences (RMSSD) between normal heartbeats or by standard deviation of the inter-beat intervals (SDNN).
func (HeartRateVariability) MarshalJSON ¶
func (s HeartRateVariability) MarshalJSON() ([]byte, error)
func (*HeartRateVariability) UnmarshalJSON ¶
func (s *HeartRateVariability) UnmarshalJSON(data []byte) error
type HeartRateVariabilityPersonalRangeRollupValue ¶
type HeartRateVariabilityPersonalRangeRollupValue struct {
// AverageHeartRateVariabilityMillisecondsMax: The upper bound of the user's
// average heart rate variability personal range.
AverageHeartRateVariabilityMillisecondsMax float64 `json:"averageHeartRateVariabilityMillisecondsMax,omitempty"`
// AverageHeartRateVariabilityMillisecondsMin: The lower bound of the user's
// average heart rate variability personal range.
AverageHeartRateVariabilityMillisecondsMin float64 `json:"averageHeartRateVariabilityMillisecondsMin,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AverageHeartRateVariabilityMillisecondsMax") to unconditionally include in
// API requests. By default, fields with empty or default values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AverageHeartRateVariabilityMillisecondsMax") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRateVariabilityPersonalRangeRollupValue: Represents the result of the rollup of the user's daily heart rate variability personal range.
func (HeartRateVariabilityPersonalRangeRollupValue) MarshalJSON ¶
func (s HeartRateVariabilityPersonalRangeRollupValue) MarshalJSON() ([]byte, error)
func (*HeartRateVariabilityPersonalRangeRollupValue) UnmarshalJSON ¶
func (s *HeartRateVariabilityPersonalRangeRollupValue) UnmarshalJSON(data []byte) error
type HeartRateZone ¶
type HeartRateZone struct {
// HeartRateZoneType: Required. The heart rate zone type.
//
// Possible values:
// "HEART_RATE_ZONE_TYPE_UNSPECIFIED" - Unspecified heart rate zone.
// "LIGHT" - The light heart rate zone.
// "MODERATE" - The moderate heart rate zone.
// "VIGOROUS" - The vigorous heart rate zone.
// "PEAK" - The peak heart rate zone.
HeartRateZoneType string `json:"heartRateZoneType,omitempty"`
// MaxBeatsPerMinute: Required. Maximum heart rate for this zone in beats per
// minute.
MaxBeatsPerMinute int64 `json:"maxBeatsPerMinute,omitempty,string"`
// MinBeatsPerMinute: Required. Minimum heart rate for this zone in beats per
// minute.
MinBeatsPerMinute int64 `json:"minBeatsPerMinute,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "HeartRateZoneType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeartRateZoneType") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HeartRateZone: The heart rate zone.
func (HeartRateZone) MarshalJSON ¶
func (s HeartRateZone) MarshalJSON() ([]byte, error)
type Height ¶ added in v0.277.0
type Height struct {
// HeightMillimeters: Required. Height of the user in millimeters.
HeightMillimeters int64 `json:"heightMillimeters,omitempty,string"`
// SampleTime: Required. The time at which the height was recorded.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeightMillimeters") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeightMillimeters") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Height: Body height measurement.
func (Height) MarshalJSON ¶ added in v0.277.0
type HttpBody ¶ added in v0.289.0
type HttpBody struct {
// ContentType: The HTTP Content-Type header value specifying the content type
// of the body.
ContentType string `json:"contentType,omitempty"`
// Data: The HTTP request/response body as raw binary.
Data string `json:"data,omitempty"`
// Extensions: Application specific response metadata. Must be set in the first
// response for streaming APIs.
Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ContentType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ContentType") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HttpBody: Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
func (HttpBody) MarshalJSON ¶ added in v0.289.0
type HttpHeader ¶ added in v0.277.0
type HttpHeader struct {
// Key: The HTTP header key. It is case insensitive.
Key string `json:"key,omitempty"`
// Value: The HTTP header value.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Key") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HttpHeader: Represents an HTTP header.
func (HttpHeader) MarshalJSON ¶ added in v0.277.0
func (s HttpHeader) MarshalJSON() ([]byte, error)
type HttpResponse ¶ added in v0.277.0
type HttpResponse struct {
// Body: The HTTP response body. If the body is not expected, it should be
// empty.
Body string `json:"body,omitempty"`
// Headers: The HTTP response headers. The ordering of the headers is
// significant. Multiple headers with the same key may present for the
// response.
Headers []*HttpHeader `json:"headers,omitempty"`
// Reason: The HTTP reason phrase, such as "OK" or "Not Found".
Reason string `json:"reason,omitempty"`
// Status: The HTTP status code, such as 200 or 404.
Status int64 `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Body") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HttpResponse: Represents an HTTP response.
func (HttpResponse) MarshalJSON ¶ added in v0.277.0
func (s HttpResponse) MarshalJSON() ([]byte, error)
type HydrationLog ¶
type HydrationLog struct {
// AmountConsumed: Required. Amount of liquid (ex. water) consumed.
AmountConsumed *VolumeQuantity `json:"amountConsumed,omitempty"`
// Interval: Required. Observed interval.
Interval *SessionTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "AmountConsumed") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AmountConsumed") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HydrationLog: Holds information about a user logged hydration.
func (HydrationLog) MarshalJSON ¶
func (s HydrationLog) MarshalJSON() ([]byte, error)
type HydrationLogRollupValue ¶
type HydrationLogRollupValue struct {
// AmountConsumed: Rollup for amount consumed.
AmountConsumed *VolumeQuantityRollup `json:"amountConsumed,omitempty"`
// ForceSendFields is a list of field names (e.g. "AmountConsumed") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AmountConsumed") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
HydrationLogRollupValue: Represents the result of the rollup of the hydration log data type.
func (HydrationLogRollupValue) MarshalJSON ¶
func (s HydrationLogRollupValue) MarshalJSON() ([]byte, error)
type Identity ¶
type Identity struct {
// HealthUserId: Output only. The Google User Identifier in the Google Health
// APIs. It matches the `{user}` resource ID segment in the resource name
// paths, e.g. `users/{user}/dataTypes/steps`. Valid values are strings of 1-63
// characters, and valid characters are lowercase and uppercase letters,
// numbers, and hyphens.
HealthUserId string `json:"healthUserId,omitempty"`
// LegacyUserId: Output only. The legacy Fitbit User identifier. This is the
// Fitbit ID used in the legacy Fitbit APIs (v1-v3). It can be referenced by
// clients migrating from the legacy Fitbit APIs to map their existing
// identifiers to the new Google user ID. It **must not** be used for any other
// purpose. It is not of any use for new clients using only the Google Health
// APIs. Valid values are strings of 1-63 characters, and valid characters are
// lowercase and uppercase letters, numbers, and hyphens.
LegacyUserId string `json:"legacyUserId,omitempty"`
// Name: Identifier. The resource name of this Identity resource. Format:
// `users/me/identity`
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "HealthUserId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HealthUserId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Identity: Represents details about the Google user's identity.
func (Identity) MarshalJSON ¶
type Interval ¶
type Interval struct {
// EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp
// matching this interval will have to be before the end.
EndTime string `json:"endTime,omitempty"`
// StartTime: Optional. Inclusive start of the interval. If specified, a
// Timestamp matching this interval will have to be the same or after the
// start.
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Interval: Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
func (Interval) MarshalJSON ¶
type IrnProfile ¶ added in v0.283.0
type IrnProfile struct {
// EnrollmentStatus: Required. Whether or not the user is currently enrolled in
// having their data processed for IRN alerts.
EnrollmentStatus bool `json:"enrollmentStatus,omitempty"`
// Name: Identifier. The resource name of this IrnProfile resource. Format:
// `users/{user}/irnProfile` Example: `users/1234567890/irnProfile` or
// `users/me/irnProfile` The {user} ID is a system-generated Google Health API
// user ID, a string of 1-63 characters consisting of lowercase and uppercase
// letters, numbers, and hyphens. The literal `me` can also be used to refer to
// the authenticated user.
Name string `json:"name,omitempty"`
// OnboardingStatus: Required. Whether or not the user has onboarded onto the
// IRN feature.
OnboardingStatus bool `json:"onboardingStatus,omitempty"`
// UpdateTime: Output only. The timestamp of the last piece of analyzable data
// synced by the user.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "EnrollmentStatus") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EnrollmentStatus") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
IrnProfile: Irregular Rhythm Notifications (IRN) Profile details. The Irregular Rhythm Notifications (IRN) feature checks for signs of atrial fibrillation (AFib). The IrnProfile details include information about the user's onboarding status, enrollment status, and the last update time of analyzable data for this feature.
func (IrnProfile) MarshalJSON ¶ added in v0.283.0
func (s IrnProfile) MarshalJSON() ([]byte, error)
type IrregularRhythmNotification ¶ added in v0.283.0
type IrregularRhythmNotification struct {
// AlertWindows: Optional. The overlapping analysis windows that were used to
// evaluate rhythm for potential AFib, containing specific information about
// the user's heart rhythm.
AlertWindows []*AlertWindow `json:"alertWindows,omitempty"`
// Interval: Required. Observed interval.
Interval *SessionTimeInterval `json:"interval,omitempty"`
// MedicalDeviceInfo: Output only. The meta information for the compatible
// device used to conduct the measurement. Irregular Rhythm Notification
// measurements typically populate `algorithm_version`, `service_version`, and
// `device_model`.
MedicalDeviceInfo *MedicalDeviceInfo `json:"medicalDeviceInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "AlertWindows") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AlertWindows") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
IrregularRhythmNotification: Represents an Irregular Rhythm Notification alert, indicating a potential sign of atrial fibrillation (AFib). This data type is based on SaMD feature and any changes to it may require additional review.
func (IrregularRhythmNotification) MarshalJSON ¶ added in v0.283.0
func (s IrregularRhythmNotification) MarshalJSON() ([]byte, error)
type ListDataPointsResponse ¶
type ListDataPointsResponse struct {
// DataPoints: Data points matching the query
DataPoints []*DataPoint `json:"dataPoints,omitempty"`
// NextPageToken: Next page token, empty if the response is complete
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DataPoints") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataPoints") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListDataPointsResponse: Response containing raw data points matching the query
func (ListDataPointsResponse) MarshalJSON ¶
func (s ListDataPointsResponse) MarshalJSON() ([]byte, error)
type ListPairedDevicesResponse ¶ added in v0.283.0
type ListPairedDevicesResponse struct {
// NextPageToken: A token, which can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// PairedDevices: The paired devices of the user.
PairedDevices []*PairedDevice `json:"pairedDevices,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListPairedDevicesResponse: Response message for ListPairedDevices.
func (ListPairedDevicesResponse) MarshalJSON ¶ added in v0.283.0
func (s ListPairedDevicesResponse) MarshalJSON() ([]byte, error)
type ListSubscribersResponse ¶ added in v0.277.0
type ListSubscribersResponse struct {
// NextPageToken: A token, which can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Subscribers: Subscribers from the specified project.
Subscribers []*Subscriber `json:"subscribers,omitempty"`
// TotalSize: The total number of subscribers matching the request.
TotalSize int64 `json:"totalSize,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListSubscribersResponse: Response message for ListSubscribers.
func (ListSubscribersResponse) MarshalJSON ¶ added in v0.277.0
func (s ListSubscribersResponse) MarshalJSON() ([]byte, error)
type ListSubscriptionsResponse ¶ added in v0.283.0
type ListSubscriptionsResponse struct {
// NextPageToken: A token, which can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Subscriptions: The subscriptions from the specified subscriber.
Subscriptions []*Subscription `json:"subscriptions,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListSubscriptionsResponse: Response message for ListSubscriptions.
func (ListSubscriptionsResponse) MarshalJSON ¶ added in v0.283.0
func (s ListSubscriptionsResponse) MarshalJSON() ([]byte, error)
type ManifestParams ¶ added in v0.289.0
type ManifestParams struct {
// EmbeddedLengthMax: Optional. Integer upper bound on the length of embedded
// payloads
EmbeddedLengthMax int64 `json:"embeddedLengthMax,omitempty"`
// Passcode: Optional.
Passcode string `json:"passcode,omitempty"`
// Recipient: Required. A string describing the recipient (e.g.,the name of an
// organization or person) suitable for display to the Receiving User
Recipient string `json:"recipient,omitempty"`
// ForceSendFields is a list of field names (e.g. "EmbeddedLengthMax") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EmbeddedLengthMax") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ManifestParams: Represents the POST body contained in a GetShlManifestRequest This message is nested to represent that See https://build.fhir.org/ig/HL7/smart-health-cards-and-links/links-specification.html#smart-health-link-manifest-request
func (ManifestParams) MarshalJSON ¶ added in v0.289.0
func (s ManifestParams) MarshalJSON() ([]byte, error)
type MedicalDeviceInfo ¶ added in v0.283.0
type MedicalDeviceInfo struct {
// AlgorithmVersion: Output only. The algorithm version used by the feature.
AlgorithmVersion string `json:"algorithmVersion,omitempty"`
// DeviceModel: Output only. The model name or device type of the compatible
// device used to collect the data.
DeviceModel string `json:"deviceModel,omitempty"`
// FeatureVersion: Output only. The version of the feature/app running on the
// device.
FeatureVersion string `json:"featureVersion,omitempty"`
// FirmwareVersion: Output only. The firmware version running on the compatible
// device used to collect the data.
FirmwareVersion string `json:"firmwareVersion,omitempty"`
// ServiceVersion: Output only. The service version used by the feature.
ServiceVersion string `json:"serviceVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "AlgorithmVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AlgorithmVersion") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MedicalDeviceInfo: Software as Medical Device (SaMD) metadata. Used to construct the Unique Device Identifier (UDI).
func (MedicalDeviceInfo) MarshalJSON ¶ added in v0.283.0
func (s MedicalDeviceInfo) MarshalJSON() ([]byte, error)
type MenstrualPeriod ¶ added in v0.292.0
type MenstrualPeriod struct {
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// Notes: Optional. Standard free-form notes captured at manual logging.
Notes string `json:"notes,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MenstrualPeriod: Menstrual period record.
func (MenstrualPeriod) MarshalJSON ¶ added in v0.292.0
func (s MenstrualPeriod) MarshalJSON() ([]byte, error)
type MetricsSummary ¶
type MetricsSummary struct {
// ActiveZoneMinutes: Optional. Total active zone minutes for the exercise.
ActiveZoneMinutes int64 `json:"activeZoneMinutes,omitempty,string"`
// AverageHeartRateBeatsPerMinute: Optional. Average heart rate during the
// exercise.
AverageHeartRateBeatsPerMinute int64 `json:"averageHeartRateBeatsPerMinute,omitempty,string"`
// AveragePaceSecondsPerMeter: Optional. Average pace in seconds per meter.
AveragePaceSecondsPerMeter float64 `json:"averagePaceSecondsPerMeter,omitempty"`
// AverageSpeedMillimetersPerSecond: Optional. Average speed in millimeters per
// second.
AverageSpeedMillimetersPerSecond float64 `json:"averageSpeedMillimetersPerSecond,omitempty"`
// CaloriesKcal: Optional. Total calories burned by the user during the
// exercise.
CaloriesKcal float64 `json:"caloriesKcal,omitempty"`
// DistanceMillimeters: Optional. Total distance covered by the user during the
// exercise.
DistanceMillimeters float64 `json:"distanceMillimeters,omitempty"`
// ElevationGainMillimeters: Optional. Total elevation gain during the
// exercise.
ElevationGainMillimeters float64 `json:"elevationGainMillimeters,omitempty"`
// HeartRateZoneDurations: Optional. Time spent in each heart rate zone.
HeartRateZoneDurations *TimeInHeartRateZones `json:"heartRateZoneDurations,omitempty"`
// MobilityMetrics: Optional. Mobility workouts specific metrics. Only present
// in the advanced running exercises.
MobilityMetrics *MobilityMetrics `json:"mobilityMetrics,omitempty"`
// RunVo2Max: Optional. Run VO2 max value for the exercise. Only present in the
// running exercises at the top level as in the summary of the whole exercise.
RunVo2Max float64 `json:"runVo2Max,omitempty"`
// Steps: Optional. Total steps taken during the exercise.
Steps int64 `json:"steps,omitempty,string"`
// TotalSwimLengths: Optional. Number of full pool lengths completed during the
// exercise. Only present in the swimming exercises at the top level as in the
// summary of the whole exercise.
TotalSwimLengths float64 `json:"totalSwimLengths,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveZoneMinutes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveZoneMinutes") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MetricsSummary: Summary metrics for an exercise.
func (MetricsSummary) MarshalJSON ¶
func (s MetricsSummary) MarshalJSON() ([]byte, error)
func (*MetricsSummary) UnmarshalJSON ¶
func (s *MetricsSummary) UnmarshalJSON(data []byte) error
type MobilityMetrics ¶
type MobilityMetrics struct {
// AvgCadenceStepsPerMinute: Optional. Cadence is a measure of the frequency of
// your foot strikes. Steps / min in real time during workout.
AvgCadenceStepsPerMinute float64 `json:"avgCadenceStepsPerMinute,omitempty"`
// AvgGroundContactTimeDuration: Optional. The ground contact time for a
// particular stride is the amount of time for which the foot was in contact
// with the ground on that stride
AvgGroundContactTimeDuration string `json:"avgGroundContactTimeDuration,omitempty"`
// AvgStrideLengthMillimeters: Optional. Stride length is a measure of the
// distance covered by a single stride
AvgStrideLengthMillimeters int64 `json:"avgStrideLengthMillimeters,omitempty,string"`
// AvgVerticalOscillationMillimeters: Optional. Distance off the ground your
// center of mass moves with each stride while running
AvgVerticalOscillationMillimeters int64 `json:"avgVerticalOscillationMillimeters,omitempty,string"`
// AvgVerticalRatio: Optional. Vertical oscillation/stride length between [5.0,
// 11.0].
AvgVerticalRatio float64 `json:"avgVerticalRatio,omitempty"`
// ForceSendFields is a list of field names (e.g. "AvgCadenceStepsPerMinute")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AvgCadenceStepsPerMinute") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MobilityMetrics: Mobility workouts specific metrics
func (MobilityMetrics) MarshalJSON ¶
func (s MobilityMetrics) MarshalJSON() ([]byte, error)
func (*MobilityMetrics) UnmarshalJSON ¶
func (s *MobilityMetrics) UnmarshalJSON(data []byte) error
type Moods ¶ added in v0.292.0
type Moods struct {
// Moods: Required. The moods logged.
//
// Possible values:
// "MOOD_UNSPECIFIED" - Unspecified mood.
// "AMAZED" - Amazed.
// "AMUSED" - Amused.
// "ANGRY" - Angry.
// "ANNOYED" - Annoyed.
// "ANXIOUS" - Anxious.
// "HAPPY" - Happy.
// "CONTENT" - Content.
// "SAD" - Sad.
// "WORRIED" - Worried.
// "FRUSTRATED" - Frustrated.
// "EXCITED" - Excited.
// "CALM" - Calm.
// "STRESSED" - Stressed.
// "ASHAMED" - Ashamed.
// "BRAVE" - Brave.
// "CONFIDENT" - Confident.
// "DISAPPOINTED" - Disappointed.
// "DISCOURAGED" - Discouraged.
// "DISGUSTED" - Disgusted.
// "DRAINED" - Drained.
// "EMBARRASSED" - Embarrassed.
// "GRATEFUL" - Grateful.
// "GUILTY" - Guilty.
// "HOPEFUL" - Hopeful.
// "HOPELESS" - Hopeless.
// "INDIFFERENT" - Indifferent.
// "IRRITATED" - Irritated.
// "JEALOUS" - Jealous.
// "JOYFUL" - Joyful.
// "LONELY" - Lonely.
// "OVERWHELMED" - Overwhelmed.
// "PASSIONATE" - Passionate.
// "PEACEFUL" - Peaceful.
// "PROUD" - Proud.
// "RELIEVED" - Relieved.
// "SATISFIED" - Satisfied.
// "SCARED" - Scared.
// "SURPRISED" - Surprised.
// "ENERGIZED" - Energized.
// "FATIGUED" - Fatigued.
// "VERY_CALM" - Very calm.
// "VERY_STRESSED" - Very stressed.
// "NEUTRAL" - Neutral.
// "AFRAID" - Afraid.
// "HURTING" - Hurting.
// "BORED" - Bored.
// "BITTER" - Bitter.
// "ENVIOUS" - Envious.
// "CONFUSED" - Confused.
// "CURIOUS" - Curious.
// "AWESTRUCK" - Awestruck.
// "INSPIRED" - Inspired.
// "LONGING" - Longing.
// "ACCOMPLISHED" - Accomplished.
// "LOVING" - Loving.
// "COMPASSIONATE" - Compassionate.
Moods []string `json:"moods,omitempty"`
// SampleTime: Required. The time at which moods were measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// Valences: Optional. The valences.
//
// Possible values:
// "VALENCE_UNSPECIFIED" - Unspecified valence.
// "UNPLEASANT" - Unpleasant.
// "BASELINE" - Baseline.
// "PLEASANT" - Pleasant.
Valences []string `json:"valences,omitempty"`
// ForceSendFields is a list of field names (e.g. "Moods") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Moods") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Moods: Moods record.
func (Moods) MarshalJSON ¶ added in v0.292.0
type NutrientQuantity ¶ added in v0.283.0
type NutrientQuantity struct {
// Nutrient: Required. The nutrient type.
//
// Possible values:
// "NUTRIENT_UNSPECIFIED" - Unspecified nutrient.
// "BIOTIN" - Value representing biotin nutrient.
// "CAFFEINE" - Value representing caffeine nutrient.
// "CALCIUM" - Value representing calcium nutrient.
// "CHLORIDE" - Value representing chloride nutrient.
// "CARBOHYDRATES" - Value representing carbohydrates nutrient.
// "CHOLESTEROL" - Value representing cholesterol nutrient.
// "CHROMIUM" - Value representing chromium nutrient.
// "COPPER" - Value representing copper nutrient.
// "DIETARY_FIBER" - Value representing dietary fiber nutrient.
// "FOLIC_ACID" - Value representing folic acid nutrient.
// "IODINE" - Value representing iodine nutrient.
// "IRON" - Value representing iron nutrient.
// "MAGNESIUM" - Value representing magnesium nutrient.
// "MANGANESE" - Value representing manganese nutrient.
// "MOLYBDENUM" - Value representing molybdenum nutrient.
// "MONOUNSATURATED_FAT" - Value representing monounsaturated fat nutrient.
// "NIACIN" - Value representing niacin nutrient.
// "PANTOTHENIC_ACID" - Value representing pantothenic acid nutrient.
// "PHOSPHORUS" - Value representing phosphorus nutrient.
// "POLYUNSATURATED_FAT" - Value representing polyunsaturated fat nutrient.
// "POTASSIUM" - Value representing potassium nutrient.
// "PROTEIN" - Value representing protein nutrient.
// "RIBOFLAVIN" - Value representing riboflavin nutrient.
// "SATURATED_FAT" - Value representing saturated fat nutrient.
// "SELENIUM" - Value representing selenium nutrient.
// "SODIUM" - Value representing sodium nutrient.
// "SUGAR" - Value representing sugar nutrient.
// "THIAMIN" - Value representing thiamin nutrient.
// "TRANS_FAT" - Value representing trans fat nutrient.
// "UNSATURATED_FAT" - Value representing unsaturated fat nutrient.
// "VITAMIN_A" - Value representing vitamin A nutrient.
// "VITAMIN_B12" - Value representing vitamin B12 nutrient.
// "VITAMIN_B6" - Value representing vitamin B6 nutrient.
// "VITAMIN_C" - Value representing vitamin C nutrient.
// "VITAMIN_D" - Value representing vitamin D nutrient.
// "VITAMIN_E" - Value representing vitamin E nutrient.
// "VITAMIN_K" - Value representing vitamin K nutrient.
// "ZINC" - Value representing zinc nutrient.
// "FOLATE" - Value representing folate nutrient.
Nutrient string `json:"nutrient,omitempty"`
// Quantity: Required. The quantity of the nutrient, measured in grams.
Quantity *WeightQuantity `json:"quantity,omitempty"`
// ForceSendFields is a list of field names (e.g. "Nutrient") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Nutrient") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
NutrientQuantity: Represents the quantity of a nutrient.
func (NutrientQuantity) MarshalJSON ¶ added in v0.283.0
func (s NutrientQuantity) MarshalJSON() ([]byte, error)
type NutrientQuantityRollup ¶ added in v0.283.0
type NutrientQuantityRollup struct {
// Nutrient: Required. Aggregated nutrient.
//
// Possible values:
// "NUTRIENT_UNSPECIFIED" - Unspecified nutrient.
// "BIOTIN" - Value representing biotin nutrient.
// "CAFFEINE" - Value representing caffeine nutrient.
// "CALCIUM" - Value representing calcium nutrient.
// "CHLORIDE" - Value representing chloride nutrient.
// "CARBOHYDRATES" - Value representing carbohydrates nutrient.
// "CHOLESTEROL" - Value representing cholesterol nutrient.
// "CHROMIUM" - Value representing chromium nutrient.
// "COPPER" - Value representing copper nutrient.
// "DIETARY_FIBER" - Value representing dietary fiber nutrient.
// "FOLIC_ACID" - Value representing folic acid nutrient.
// "IODINE" - Value representing iodine nutrient.
// "IRON" - Value representing iron nutrient.
// "MAGNESIUM" - Value representing magnesium nutrient.
// "MANGANESE" - Value representing manganese nutrient.
// "MOLYBDENUM" - Value representing molybdenum nutrient.
// "MONOUNSATURATED_FAT" - Value representing monounsaturated fat nutrient.
// "NIACIN" - Value representing niacin nutrient.
// "PANTOTHENIC_ACID" - Value representing pantothenic acid nutrient.
// "PHOSPHORUS" - Value representing phosphorus nutrient.
// "POLYUNSATURATED_FAT" - Value representing polyunsaturated fat nutrient.
// "POTASSIUM" - Value representing potassium nutrient.
// "PROTEIN" - Value representing protein nutrient.
// "RIBOFLAVIN" - Value representing riboflavin nutrient.
// "SATURATED_FAT" - Value representing saturated fat nutrient.
// "SELENIUM" - Value representing selenium nutrient.
// "SODIUM" - Value representing sodium nutrient.
// "SUGAR" - Value representing sugar nutrient.
// "THIAMIN" - Value representing thiamin nutrient.
// "TRANS_FAT" - Value representing trans fat nutrient.
// "UNSATURATED_FAT" - Value representing unsaturated fat nutrient.
// "VITAMIN_A" - Value representing vitamin A nutrient.
// "VITAMIN_B12" - Value representing vitamin B12 nutrient.
// "VITAMIN_B6" - Value representing vitamin B6 nutrient.
// "VITAMIN_C" - Value representing vitamin C nutrient.
// "VITAMIN_D" - Value representing vitamin D nutrient.
// "VITAMIN_E" - Value representing vitamin E nutrient.
// "VITAMIN_K" - Value representing vitamin K nutrient.
// "ZINC" - Value representing zinc nutrient.
// "FOLATE" - Value representing folate nutrient.
Nutrient string `json:"nutrient,omitempty"`
// Quantity: Required. Aggregated nutrient weight.
Quantity *WeightQuantityRollup `json:"quantity,omitempty"`
// ForceSendFields is a list of field names (e.g. "Nutrient") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Nutrient") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
NutrientQuantityRollup: Nutrient quantity rollup.
func (NutrientQuantityRollup) MarshalJSON ¶ added in v0.283.0
func (s NutrientQuantityRollup) MarshalJSON() ([]byte, error)
type NutritionLog ¶ added in v0.283.0
type NutritionLog struct {
// Energy: Optional. The total energy of the food, measured in kilocalories
// (`kcal`).
Energy *EnergyQuantity `json:"energy,omitempty"`
// EnergyFromFat: Optional. The energy from fat, measured in kilocalories
// (`kcal`).
EnergyFromFat *EnergyQuantity `json:"energyFromFat,omitempty"`
// Food: Optional. The resource name of the Food item. Required when creating a
// nutrition log from an identified food. For anonymous food logs, use the
// `food_display_name` field instead.
Food string `json:"food,omitempty"`
// FoodDisplayName: The display name of the food. For identified food logs,
// this is populated automatically from the referenced food.
FoodDisplayName string `json:"foodDisplayName,omitempty"`
// Interval: Required. The time window when the food was logged.
Interval *SessionTimeInterval `json:"interval,omitempty"`
// MealType: Optional. The meal category. One of `BREAKFAST`, `LUNCH`,
// `DINNER`, or `SNACK`.
//
// Possible values:
// "MEAL_TYPE_UNSPECIFIED" - Unspecified meal type.
// "BEFORE_BREAKFAST" - Value representing a meal before breakfast.
// "BREAKFAST" - Value representing a breakfast.
// "BEFORE_LUNCH" - Value representing a morning snack.
// "LUNCH" - Value representing a lunch.
// "BEFORE_DINNER" - Value representing an afternoon snack.
// "DINNER" - Value representing dinner.
// "AFTER_DINNER" - Value representing an evening snack.
// "SNACK" - Value representing any meal outside of the usual three meals per
// day.
// "ANYTIME" - Value representing any time (legacy NA).
MealType string `json:"mealType,omitempty"`
// Nutrients: Optional. An array of individual nutrient values for the
// nutrition log.
Nutrients []*NutrientQuantity `json:"nutrients,omitempty"`
// Serving: Optional. The serving information for the logged food.
Serving *Serving `json:"serving,omitempty"`
// TotalCarbohydrate: Optional. The total carbohydrate content, measured in
// grams.
TotalCarbohydrate *WeightQuantity `json:"totalCarbohydrate,omitempty"`
// TotalFat: Optional. The total fat content, measured in grams.
TotalFat *WeightQuantity `json:"totalFat,omitempty"`
// ForceSendFields is a list of field names (e.g. "Energy") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Energy") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
NutritionLog: Holds information about food logged by a user. There are two ways of creating a nutrition log based on the food type: 1. Identified food: Using the food field, which is a reference to a Food resource. In this case fields `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat`, `food_display_name` will be populated based on the referenced food. 2. Anonymous food: Using the `food_display_name` field and setting the `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat` fields manually. The identified food is preferred over the anonymous food. Nutrition logs created from anonymous food are not editable.
func (NutritionLog) MarshalJSON ¶ added in v0.283.0
func (s NutritionLog) MarshalJSON() ([]byte, error)
type NutritionLogRollupValue ¶ added in v0.283.0
type NutritionLogRollupValue struct {
// Energy: Energy rollup.
Energy *EnergyQuantityRollup `json:"energy,omitempty"`
// EnergyFromFat: Value Energy from fat rollup.
EnergyFromFat *EnergyQuantityRollup `json:"energyFromFat,omitempty"`
// Nutrients: List of the nutrient roll-ups by the nutrient type.
Nutrients []*NutrientQuantityRollup `json:"nutrients,omitempty"`
// TotalCarbohydrate: Total carbohydrate rollup.
TotalCarbohydrate *WeightQuantityRollup `json:"totalCarbohydrate,omitempty"`
// TotalFat: Total fat rollup.
TotalFat *WeightQuantityRollup `json:"totalFat,omitempty"`
// ForceSendFields is a list of field names (e.g. "Energy") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Energy") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
NutritionLogRollupValue: Represents the result of the rollup of the nutrition log data type.
func (NutritionLogRollupValue) MarshalJSON ¶ added in v0.283.0
func (s NutritionLogRollupValue) MarshalJSON() ([]byte, error)
type ObservationSampleTime ¶
type ObservationSampleTime struct {
// CivilTime: Output only. The civil time in the timezone the subject is in at
// the time of the observation.
CivilTime *CivilDateTime `json:"civilTime,omitempty"`
// PhysicalTime: Required. The time of the observation.
PhysicalTime string `json:"physicalTime,omitempty"`
// UtcOffset: Required. The offset of the user's local time during the
// observation relative to the Coordinated Universal Time (UTC).
UtcOffset string `json:"utcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "CivilTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CivilTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ObservationSampleTime: Represents a sample time of an observed data point.
func (ObservationSampleTime) MarshalJSON ¶
func (s ObservationSampleTime) MarshalJSON() ([]byte, error)
type ObservationTimeInterval ¶
type ObservationTimeInterval struct {
// CivilEndTime: Output only. Observed interval end time in civil time in the
// timezone the subject is in at the end of the observed interval
CivilEndTime *CivilDateTime `json:"civilEndTime,omitempty"`
// CivilStartTime: Output only. Observed interval start time in civil time in
// the timezone the subject is in at the start of the observed interval
CivilStartTime *CivilDateTime `json:"civilStartTime,omitempty"`
// EndTime: Required. Observed interval end time.
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. The offset of the user's local time at the end of
// the observation relative to the Coordinated Universal Time (UTC).
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// StartTime: Required. Observed interval start time.
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. The offset of the user's local time at the start
// of the observation relative to the Coordinated Universal Time (UTC).
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "CivilEndTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CivilEndTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ObservationTimeInterval: Represents a time interval of an observed data point.
func (ObservationTimeInterval) MarshalJSON ¶
func (s ObservationTimeInterval) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct {
// Done: If the value is `false`, it means the operation is still in progress.
// If `true`, the operation is completed, and either `error` or `response` is
// available.
Done bool `json:"done,omitempty"`
// Error: The error result of the operation in case of failure or cancellation.
Error *Status `json:"error,omitempty"`
// Metadata: Service-specific metadata associated with the operation. It
// typically contains progress information and common metadata such as create
// time. Some services might not provide such metadata. Any method that returns
// a long-running operation should document the metadata type, if any.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: The server-assigned name, which is only unique within the same service
// that originally returns it. If you use the default HTTP mapping, the `name`
// should be a resource name ending with `operations/{unique_id}`.
Name string `json:"name,omitempty"`
// Response: The normal, successful response of the operation. If the original
// method returns no data on success, such as `Delete`, the response is
// `google.protobuf.Empty`. If the original method is standard
// `Get`/`Create`/`Update`, the response should be the resource. For other
// methods, the response should have the type `XxxResponse`, where `Xxx` is the
// original method name. For example, if the original method name is
// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Response googleapi.RawMessage `json:"response,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Done") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Operation: This resource represents a long-running operation that is the result of a network API call.
func (Operation) MarshalJSON ¶
type OutOfBedSegment ¶
type OutOfBedSegment struct {
// EndTime: Required. Segment end time.
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. The offset of the user's local time at the end of
// the segment relative to the Coordinated Universal Time (UTC).
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// StartTime: Required. Segment tart time.
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. The offset of the user's local time at the start
// of the segment relative to the Coordinated Universal Time (UTC).
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OutOfBedSegment: A time interval to represent an out-of-bed segment.
func (OutOfBedSegment) MarshalJSON ¶
func (s OutOfBedSegment) MarshalJSON() ([]byte, error)
type OvulationTest ¶ added in v0.292.0
type OvulationTest struct {
// Result: Required. The result of the ovulation test.
//
// Possible values:
// "OVULATION_TEST_RESULT_UNSPECIFIED" - Unspecified result.
// "NEGATIVE" - Negative result.
// "LUTEINIZING_HORMONE_SURGE" - Luteinizing hormone surge.
// "ESTROGEN_SURGE" - Estrogen surge.
// "POSITIVE" - Positive result.
// "INDETERMINATE" - Indeterminate result.
Result string `json:"result,omitempty"`
// SampleTime: Required. The time at which ovulation test was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Result") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OvulationTest: Ovulation test record.
func (OvulationTest) MarshalJSON ¶ added in v0.292.0
func (s OvulationTest) MarshalJSON() ([]byte, error)
type OxygenSaturation ¶
type OxygenSaturation struct {
// Percentage: Required. The oxygen saturation percentage. Valid values are
// from 0 to 100.
Percentage float64 `json:"percentage,omitempty"`
// SampleTime: Required. The time at which oxygen saturation was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Percentage") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Percentage") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OxygenSaturation: Captures the user's instantaneous oxygen saturation percentage (SpO2).
func (OxygenSaturation) MarshalJSON ¶
func (s OxygenSaturation) MarshalJSON() ([]byte, error)
func (*OxygenSaturation) UnmarshalJSON ¶
func (s *OxygenSaturation) UnmarshalJSON(data []byte) error
type PairedDevice ¶ added in v0.283.0
type PairedDevice struct {
// BatteryLevel: Output only. The battery level of the device.
BatteryLevel int64 `json:"batteryLevel,omitempty"`
// BatteryStatus: Output only. The battery status of the device. Supported:
// High | Medium | Low | Empty
BatteryStatus string `json:"batteryStatus,omitempty"`
// DeviceType: Output only. The device type. Supported: TRACKER | SCALE
//
// Possible values:
// "DEVICE_TYPE_UNSPECIFIED" - Device type is not specified.
// "TRACKER" - Device type is tracker.
// "SCALE" - Device type is scale.
DeviceType string `json:"deviceType,omitempty"`
// DeviceVersion: Output only. The product name of the device
DeviceVersion string `json:"deviceVersion,omitempty"`
// Features: Output only. Lists of unique features supported by the device.
// Comprehensive list of supported features: **Fitness Tracking** -
// `ACTIVE_MINUTES`: Legacy active minutes. - `AUTOSTRIDE`: Automatic stride
// length calculation. - `BIKE_ONBOARDING`: Cycling UI support. - `CALORIES`:
// Daily burned calories. - `DISTANCE`: Daily distance tracking. - `ELEVATION`:
// Floors climbed. - `INACTIVITY_ALERTS`: Reminders to move. -
// `SEDENTARY_TIME`: Tracks inactive time. - `STEPS`: Daily steps. - `SWIM`:
// Swim tracking (laps/strokes). - `AUTORUN`: Automatic run detection. -
// `ACTIVE_ZONE_MINUTES`: Active Zone Minutes (AZM). **Heart Rate & Health** -
// `HEART_RATE`: Continuous heart rate (PPG). - `BAT_SIGNAL`: High/Low Heart
// Rate Alerts. **Advanced Sensors** - `SPO2`: Blood oxygen saturation. -
// `NIGHTTIME_OXYGEN_SATURATION`: Sleep SpO2. - `ESTIMATED_OXYGEN_VARIATION`:
// Estimated Oxygen Variation. - `EDA`: Electrodermal Activity (stress). -
// `SKIN_TEMPERATURE`: Skin temperature variation. -
// `INTERNAL_DEVICE_TEMPERATURE`: Internal device temperature. **Sleep &
// Wellness** - `SLEEP`: Basic sleep tracking. - `SMART_SLEEP`: Advanced sleep
// tracking (stages/score). - `BEDTIME_REMINDER`: Bedtime reminders. -
// `SOUNDSCAPE`: Snore and noise detection. **Advanced Workouts** - `WB`:
// Custom Workout Builder. - `AUTOCUES`: Auto Cues / Auto Lap. - `DWR_RUN`:
// Daily Run Recommendations. - `ADVANCED_RUNNING`: Advanced Running Dynamics
// (e.g., GCT, VO). **GPS & Location** - `GPS`: Built-in GPS. -
// `CONNECTED_GPS`: Connected GPS (uses phone). - `LOCATION_HINT`: Location
// helper. **Payments & NFC** - `PAYMENTS`: NFC payments (Fitbit Pay/Google
// Wallet). - `FELICA`: FeliCa support (Japan payments/transit). **Activity
// Detection** - `GROK`: SmartTrack automatic activity detection. - `RETRO_AR`:
// Retroactive Activity Recognition prompts. **Smart Features & UI** -
// `ALARMS`: Silent alarms. - `BLE_MUSIC_CONTROL`: BLE music control. -
// `MUSIC`: Direct music storage/control. - `YOUTUBE_MUSIC_SUPPORTED`: YouTube
// Music support. - `GALLERY`: App Gallery. - `TUTORIAL_SUPPORTED`: On-screen
// tutorials. - `SMILEY_EMOTE`: Legacy Zip face. - `MOBILE_TO_DEVICE_DEEPLINK`:
// Mobile to device settings deep link. - `HIDE_GALLERY`: Option to hide
// Gallery. - `HIDE_GOAL_SELECTION`: Option to hide goal selection. -
// `DIGITAL_WARRANTY_SUPPORTED`: Digital warranty display. -
// `DIRECT_DEVICE_SETTINGS_SUPPORTED`: Direct device settings management. **Gym
// HR Broadcasting** - `ASPEN_SUPPORTED`: Broadcast HR to gym equipment. -
// `ASPEN_REMOTE_UI_SUPPORTED`: Remote UI for HR sharing. **Privacy &
// Security** - `FINITE_IMPROBABILITY`: BLE Resolvable Private Address (RPA)
// privacy. - `DOMAIN_KEY_SYNC`: Domain key synchronization. **BLE Protocol** -
// `BONDING`: Secure BLE bonding. - `ADVERTISES_SERIAL`: Advertises serial
// number. - `STATUS_CHARACTERISTIC`: BLE Status Characteristic. -
// `TRACKER_CHANNEL_CHARACTERISTIC`: BLE Tracker Channel Characteristic. -
// `PING_CHARACTERISTIC`: BLE Ping Characteristic. **Cellular & Wi-Fi** -
// `MOBILE_DATA`: LTE cellular support. - `SINGLE_AP_WIFI`: Single AP Wi-Fi. -
// `MULTI_AP_WIFI`: Multi AP Wi-Fi. - `WIFI_FWUP`: Firmware updates over Wi-Fi.
// **Data Sync & Transfer** - `APP_SYNC`: Background app sync. - `LIVE_DATA`:
// Real-time data streaming. - `EVENT_BASED_SYNC_SUPPORTED`: Event-based sync.
// - `TIME_SERVICE`: Time synchronization service. - `REMOTE_FILE_PROVIDER`:
// Remote file transfer. - `DIRECT_COMMS_ALARMS`: Direct communication for
// alarms. - `DIRECT_COMMS_EXERCISE`: Direct communication for exercise. -
// `DIRECT_COMMS_BATTERY_ALERTS`: Direct communication for battery alerts.
// **Google Integrations** - `PARROT_TREE_SUPPORTED`: Find My Device support.
Features []string `json:"features,omitempty"`
// LastSyncTime: Output only. The time of last sync with the Fitbit mobile
// application.
LastSyncTime string `json:"lastSyncTime,omitempty"`
// MacAddress: Output only. Mac ID number of the device.
MacAddress string `json:"macAddress,omitempty"`
// Name: Identifier. The resource name of this Device resource. Format:
// `users/{user}/pairedDevices/{paired_device}` Example:
// `users/1234567890/pairedDevices/123` or `users/me/pairedDevices/123`
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BatteryLevel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BatteryLevel") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
PairedDevice: User's Paired 1P Device The PairedDevice details include information about the device type, battery status, battery level, last sync time, device version, mac address, and features.
func (PairedDevice) MarshalJSON ¶ added in v0.283.0
func (s PairedDevice) MarshalJSON() ([]byte, error)
type Profile ¶
type Profile struct {
// Age: Optional. The age in years based on the user's birth date. Updates to
// this field are currently not supported.
Age int64 `json:"age,omitempty"`
// AutoRunningStrideLengthMm: Output only. The automatically calculated running
// stride length, in millimeters. The user must consent to one of the following
// access scopes to access this field: -
// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
AutoRunningStrideLengthMm int64 `json:"autoRunningStrideLengthMm,omitempty"`
// AutoWalkingStrideLengthMm: Output only. The automatically calculated walking
// stride length, in millimeters. The user must consent to one of the following
// access scopes to access this field: -
// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
AutoWalkingStrideLengthMm int64 `json:"autoWalkingStrideLengthMm,omitempty"`
// MembershipStartDate: Output only. The date the user created their account.
// Updates to this field are currently not supported.
MembershipStartDate *Date `json:"membershipStartDate,omitempty"`
// Name: Identifier. The resource name of this Profile resource. Format:
// `users/{user}/profile` Example: `users/1234567890/profile` or
// `users/me/profile` The {user} ID is a system-generated Google Health API
// user ID, a string of 1-63 characters consisting of lowercase and uppercase
// letters, numbers, and hyphens. The literal `me` can also be used to refer to
// the authenticated user.
Name string `json:"name,omitempty"`
// UserConfiguredRunningStrideLengthMm: Optional. The user's user configured
// running stride length, in millimeters. The user must consent to one of the
// following access scopes to access this field: -
// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
UserConfiguredRunningStrideLengthMm int64 `json:"userConfiguredRunningStrideLengthMm,omitempty"`
// UserConfiguredWalkingStrideLengthMm: Optional. The user's user configured
// walking stride length, in millimeters. The user must consent to one of the
// following access scopes to access this field: -
// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
UserConfiguredWalkingStrideLengthMm int64 `json:"userConfiguredWalkingStrideLengthMm,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Age") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Age") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Profile: Profile details.
func (Profile) MarshalJSON ¶
type ProjectsService ¶ added in v0.277.0
type ProjectsService struct {
Subscribers *ProjectsSubscribersService
// contains filtered or unexported fields
}
func NewProjectsService ¶ added in v0.277.0
func NewProjectsService(s *Service) *ProjectsService
type ProjectsSubscribersCreateCall ¶ added in v0.277.0
type ProjectsSubscribersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersCreateCall) Context ¶ added in v0.277.0
func (c *ProjectsSubscribersCreateCall) Context(ctx context.Context) *ProjectsSubscribersCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersCreateCall) Do ¶ added in v0.277.0
func (c *ProjectsSubscribersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.projects.subscribers.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersCreateCall) Fields ¶ added in v0.277.0
func (c *ProjectsSubscribersCreateCall) Fields(s ...googleapi.Field) *ProjectsSubscribersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersCreateCall) Header ¶ added in v0.277.0
func (c *ProjectsSubscribersCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersCreateCall) SubscriberId ¶ added in v0.277.0
func (c *ProjectsSubscribersCreateCall) SubscriberId(subscriberId string) *ProjectsSubscribersCreateCall
SubscriberId sets the optional parameter "subscriberId": The ID to use for the subscriber, which will become the final component of the subscriber's resource name. This value should be 4-36 characters, and valid characters are /a-z ([a-z0-9-]{2,34}[a-z0-9])/.
type ProjectsSubscribersDeleteCall ¶ added in v0.277.0
type ProjectsSubscribersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersDeleteCall) Context ¶ added in v0.277.0
func (c *ProjectsSubscribersDeleteCall) Context(ctx context.Context) *ProjectsSubscribersDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersDeleteCall) Do ¶ added in v0.277.0
func (c *ProjectsSubscribersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.projects.subscribers.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersDeleteCall) Fields ¶ added in v0.277.0
func (c *ProjectsSubscribersDeleteCall) Fields(s ...googleapi.Field) *ProjectsSubscribersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersDeleteCall) Force ¶ added in v0.277.0
func (c *ProjectsSubscribersDeleteCall) Force(force bool) *ProjectsSubscribersDeleteCall
Force sets the optional parameter "force": If set to true, any child resources (e.g., subscriptions) will also be deleted. If false (default) and child resources exist, the request will fail.
func (*ProjectsSubscribersDeleteCall) Header ¶ added in v0.277.0
func (c *ProjectsSubscribersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsSubscribersListCall ¶ added in v0.277.0
type ProjectsSubscribersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersListCall) Context ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) Context(ctx context.Context) *ProjectsSubscribersListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersListCall) Do ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) Do(opts ...googleapi.CallOption) (*ListSubscribersResponse, error)
Do executes the "health.projects.subscribers.list" call. Any non-2xx status code is an error. Response headers are in either *ListSubscribersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersListCall) Fields ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) Fields(s ...googleapi.Field) *ProjectsSubscribersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersListCall) Header ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersListCall) IfNoneMatch ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) IfNoneMatch(entityTag string) *ProjectsSubscribersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsSubscribersListCall) PageSize ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) PageSize(pageSize int64) *ProjectsSubscribersListCall
PageSize sets the optional parameter "pageSize": The maximum number of subscribers to return. The service may return fewer than this value. If unspecified, at most 50 subscribers will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*ProjectsSubscribersListCall) PageToken ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) PageToken(pageToken string) *ProjectsSubscribersListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListSubscribers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscribers` must match the call that provided the page token.
func (*ProjectsSubscribersListCall) Pages ¶ added in v0.277.0
func (c *ProjectsSubscribersListCall) Pages(ctx context.Context, f func(*ListSubscribersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsSubscribersPatchCall ¶ added in v0.277.0
type ProjectsSubscribersPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersPatchCall) Context ¶ added in v0.277.0
func (c *ProjectsSubscribersPatchCall) Context(ctx context.Context) *ProjectsSubscribersPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersPatchCall) Do ¶ added in v0.277.0
func (c *ProjectsSubscribersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.projects.subscribers.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersPatchCall) Fields ¶ added in v0.277.0
func (c *ProjectsSubscribersPatchCall) Fields(s ...googleapi.Field) *ProjectsSubscribersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersPatchCall) Header ¶ added in v0.277.0
func (c *ProjectsSubscribersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersPatchCall) UpdateMask ¶ added in v0.277.0
func (c *ProjectsSubscribersPatchCall) UpdateMask(updateMask string) *ProjectsSubscribersPatchCall
UpdateMask sets the optional parameter "updateMask": A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields: - endpoint_uri - subscriber_configs - endpoint_authorization
type ProjectsSubscribersService ¶ added in v0.277.0
type ProjectsSubscribersService struct {
Subscriptions *ProjectsSubscribersSubscriptionsService
// contains filtered or unexported fields
}
func NewProjectsSubscribersService ¶ added in v0.277.0
func NewProjectsSubscribersService(s *Service) *ProjectsSubscribersService
func (*ProjectsSubscribersService) Create ¶ added in v0.277.0
func (r *ProjectsSubscribersService) Create(parent string, createsubscriberpayload *CreateSubscriberPayload) *ProjectsSubscribersCreateCall
Create: Registers a new subscriber endpoint to receive notifications. A subscriber represents an application or service that wishes to receive data change notifications for users who have granted consent. **Endpoint Verification:** For a subscriber to be successfully created, the provided `endpoint_uri` must be a valid HTTPS endpoint and must pass an automated verification check. The backend will send two HTTP POST requests to the `endpoint_uri`: 1. **Verification with Authorization:** * **Headers:** Includes `Content-Type: application/json` and `Authorization` (with the exact value from `CreateSubscriberPayload.endpoint_authorization.secret`). * **Body:** `{"type": "verification"}` * **Expected Response:** HTTP `201 Created`. 2. **Verification without Authorization:** * **Headers:** Includes `Content-Type: application/json`. The `Authorization` header is OMITTED. * **Body:** `{"type": "verification"}` * **Expected Response:** HTTP `401 Unauthorized` or `403 Forbidden`. Both tests must pass for the subscriber creation to succeed. If verification fails, the operation will not be completed and an error will be returned. This process ensures the endpoint is reachable and correctly validates the `Authorization` header.
- parent: The parent resource where this subscriber will be created. Format: projects/{project_number} Example: projects/1234567890.
func (*ProjectsSubscribersService) Delete ¶ added in v0.277.0
func (r *ProjectsSubscribersService) Delete(name string) *ProjectsSubscribersDeleteCall
Delete: Deletes a subscriber registration. This will stop all notifications to the subscriber's endpoint.
- name: The name of the subscriber to delete. Format: projects/{project}/subscribers/{subscriber} Example: projects/my-project/subscribers/my-subscriber-123 The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) or system-generated if not provided during creation.
func (*ProjectsSubscribersService) List ¶ added in v0.277.0
func (r *ProjectsSubscribersService) List(parent string) *ProjectsSubscribersListCall
List: Lists all subscribers registered within the owned Google Cloud Project.
- parent: The parent, which owns this collection of subscribers. Format: projects/{project}.
func (*ProjectsSubscribersService) Patch ¶ added in v0.277.0
func (r *ProjectsSubscribersService) Patch(name string, subscriber *Subscriber) *ProjectsSubscribersPatchCall
Patch: Updates the configuration of an existing subscriber, such as the endpoint URI or the data types it's interested in. **Endpoint Verification:** If the `endpoint_uri` or `endpoint_authorization` field is included in the `update_mask`, the backend will re-verify the endpoint. The verification process is the same as described in `CreateSubscriber`: 1. **Verification with Authorization:** POST to the new or existing `endpoint_uri` with the new or existing `Authorization` secret. Expects HTTP `201 Created`. 2. **Verification without Authorization:** POST to the `endpoint_uri` without the `Authorization` header. Expects HTTP `401 Unauthorized` or `403 Forbidden`. Both tests must pass using the potentially updated values for the subscriber update to succeed. If verification fails, the update will not be applied, and an error will be returned.
- name: Identifier. The resource name of the Subscriber. Format: projects/{project}/subscribers/{subscriber} The {project} ID is a Google Cloud Project ID or Project Number. The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise (e.g., a UUID). Example (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123 Example (System-generated subscriber ID): projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef.
type ProjectsSubscribersSubscriptionsCreateCall ¶ added in v0.283.0
type ProjectsSubscribersSubscriptionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersSubscriptionsCreateCall) Context ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsCreateCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersSubscriptionsCreateCall) Do ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Subscription, error)
Do executes the "health.projects.subscribers.subscriptions.create" call. Any non-2xx status code is an error. Response headers are in either *Subscription.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersSubscriptionsCreateCall) Fields ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersSubscriptionsCreateCall) Header ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersSubscriptionsCreateCall) SubscriptionId ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsCreateCall) SubscriptionId(subscriptionId string) *ProjectsSubscribersSubscriptionsCreateCall
SubscriptionId sets the optional parameter "subscriptionId": The {subscription_id} is user-settable (4-36 chars, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
type ProjectsSubscribersSubscriptionsDeleteCall ¶ added in v0.283.0
type ProjectsSubscribersSubscriptionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersSubscriptionsDeleteCall) Context ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsDeleteCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersSubscriptionsDeleteCall) Do ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "health.projects.subscribers.subscriptions.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersSubscriptionsDeleteCall) Fields ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersSubscriptionsDeleteCall) Header ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsSubscribersSubscriptionsListCall ¶ added in v0.283.0
type ProjectsSubscribersSubscriptionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersSubscriptionsListCall) Context ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersSubscriptionsListCall) Do ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*ListSubscriptionsResponse, error)
Do executes the "health.projects.subscribers.subscriptions.list" call. Any non-2xx status code is an error. Response headers are in either *ListSubscriptionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersSubscriptionsListCall) Fields ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersSubscriptionsListCall) Filter ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Filter(filter string) *ProjectsSubscribersSubscriptionsListCall
Filter sets the optional parameter "filter": A filter to apply to the list of subscriptions. The filter syntax is described in https://google.aip.dev/160. The filter can be applied to the following fields: - `user` - `data_type` The `user` identifier (e.g., `user1` in `users/user1`) refers to the public `health_user_id` Example: user = "users/user1" Example: user = "users/user1" OR user = "users/user2" Example: user = "users/user1" AND (data_type = "sleep" OR data_type = "weight")
func (*ProjectsSubscribersSubscriptionsListCall) Header ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersSubscriptionsListCall) IfNoneMatch ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) IfNoneMatch(entityTag string) *ProjectsSubscribersSubscriptionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsSubscribersSubscriptionsListCall) PageSize ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) PageSize(pageSize int64) *ProjectsSubscribersSubscriptionsListCall
PageSize sets the optional parameter "pageSize": The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*ProjectsSubscribersSubscriptionsListCall) PageToken ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) PageToken(pageToken string) *ProjectsSubscribersSubscriptionsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match the call that provided the page token.
func (*ProjectsSubscribersSubscriptionsListCall) Pages ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsListCall) Pages(ctx context.Context, f func(*ListSubscriptionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsSubscribersSubscriptionsPatchCall ¶ added in v0.283.0
type ProjectsSubscribersSubscriptionsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSubscribersSubscriptionsPatchCall) Context ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsPatchCall) Context(ctx context.Context) *ProjectsSubscribersSubscriptionsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSubscribersSubscriptionsPatchCall) Do ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsPatchCall) Do(opts ...googleapi.CallOption) (*Subscription, error)
Do executes the "health.projects.subscribers.subscriptions.patch" call. Any non-2xx status code is an error. Response headers are in either *Subscription.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSubscribersSubscriptionsPatchCall) Fields ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsPatchCall) Fields(s ...googleapi.Field) *ProjectsSubscribersSubscriptionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsSubscribersSubscriptionsPatchCall) Header ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsSubscribersSubscriptionsPatchCall) UpdateMask ¶ added in v0.283.0
func (c *ProjectsSubscribersSubscriptionsPatchCall) UpdateMask(updateMask string) *ProjectsSubscribersSubscriptionsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update.
type ProjectsSubscribersSubscriptionsService ¶ added in v0.283.0
type ProjectsSubscribersSubscriptionsService struct {
// contains filtered or unexported fields
}
func NewProjectsSubscribersSubscriptionsService ¶ added in v0.283.0
func NewProjectsSubscribersSubscriptionsService(s *Service) *ProjectsSubscribersSubscriptionsService
func (*ProjectsSubscribersSubscriptionsService) Create ¶ added in v0.283.0
func (r *ProjectsSubscribersSubscriptionsService) Create(parent string, createsubscriptionpayload *CreateSubscriptionPayload) *ProjectsSubscribersSubscriptionsCreateCall
Create: Creates a subscription for a specific user to a specific subscriber. This method requires the subscriber to have a `SubscriptionCreatePolicy` set to `MANUAL` for the given data types.
- parent: The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise.
func (*ProjectsSubscribersSubscriptionsService) Delete ¶ added in v0.283.0
func (r *ProjectsSubscribersSubscriptionsService) Delete(name string) *ProjectsSubscribersSubscriptionsDeleteCall
Delete: Deletes a specific user subscription, stopping notifications for this user to this subscriber.
- name: The resource name of the subscription to delete. Format: `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}` Example: `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscri ption-456` The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise. The {subscription} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) or system-generated if not provided during creation.
func (*ProjectsSubscribersSubscriptionsService) List ¶ added in v0.283.0
func (r *ProjectsSubscribersSubscriptionsService) List(parent string) *ProjectsSubscribersSubscriptionsListCall
List: Lists all active subscriptions for a given subscriber. This can be filtered, for example, by user or data type.
- parent: The parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise.
func (*ProjectsSubscribersSubscriptionsService) Patch ¶ added in v0.283.0
func (r *ProjectsSubscribersSubscriptionsService) Patch(name string, subscription *Subscription) *ProjectsSubscribersSubscriptionsPatchCall
Patch: Updates the data types for an existing user subscription.
- name: Identifier. The resource name of the Subscription. Format: `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}` Example: `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscri ption-456` The {project} ID is mandatory (6-30 characters, matching /a-z{6,30}/) The {subscriber} ID is user-settable (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise. The {subscription} ID is user-settable (4-36 chars, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) or system-generated otherwise.
type ReconcileDataPointsResponse ¶
type ReconcileDataPointsResponse struct {
// DataPoints: Data points matching the query
DataPoints []*ReconciledDataPoint `json:"dataPoints,omitempty"`
// NextPageToken: Next page token, empty if the response is complete
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DataPoints") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataPoints") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ReconcileDataPointsResponse: Response containing the list of reconciled DataPoints.
func (ReconcileDataPointsResponse) MarshalJSON ¶
func (s ReconcileDataPointsResponse) MarshalJSON() ([]byte, error)
type ReconciledDataPoint ¶
type ReconciledDataPoint struct {
// ActiveEnergyBurned: Data for points in the `active-energy-burned` interval
// data type collection.
ActiveEnergyBurned *ActiveEnergyBurned `json:"activeEnergyBurned,omitempty"`
// ActiveMinutes: Data for points in the `active-minutes` interval data type
// collection.
ActiveMinutes *ActiveMinutes `json:"activeMinutes,omitempty"`
// ActiveZoneMinutes: Data for points in the `active-zone-minutes` interval
// data type collection, measured in minutes.
ActiveZoneMinutes *ActiveZoneMinutes `json:"activeZoneMinutes,omitempty"`
// ActivityLevel: Data for points in the `activity-level` daily data type
// collection.
ActivityLevel *ActivityLevel `json:"activityLevel,omitempty"`
// Altitude: Data for points in the `altitude` interval data type collection.
Altitude *Altitude `json:"altitude,omitempty"`
// BasalEnergyBurned: Data for points in the `basal-energy-burned` interval
// data type collection.
BasalEnergyBurned *BasalEnergyBurned `json:"basalEnergyBurned,omitempty"`
// BloodGlucose: Data for points in the `blood-glucose` sample data type
// collection.
BloodGlucose *BloodGlucose `json:"bloodGlucose,omitempty"`
// BodyFat: Data for points in the `body-fat` sample data type collection.
BodyFat *BodyFat `json:"bodyFat,omitempty"`
// CoreBodyTemperature: Data for points in the `core-body-temperature` sample
// data type collection.
CoreBodyTemperature *CoreBodyTemperature `json:"coreBodyTemperature,omitempty"`
// DailyHeartRateVariability: Data for points in the
// `daily-heart-rate-variability` daily data type collection.
DailyHeartRateVariability *DailyHeartRateVariability `json:"dailyHeartRateVariability,omitempty"`
// DailyHeartRateZones: Data for points in the `daily-heart-rate-zones` daily
// data type collection.
DailyHeartRateZones *DailyHeartRateZones `json:"dailyHeartRateZones,omitempty"`
// DailyOxygenSaturation: Data for points in the `daily-oxygen-saturation`
// daily data type collection.
DailyOxygenSaturation *DailyOxygenSaturation `json:"dailyOxygenSaturation,omitempty"`
// DailyRespiratoryRate: Data for points in the `daily-respiratory-rate` daily
// data type collection.
DailyRespiratoryRate *DailyRespiratoryRate `json:"dailyRespiratoryRate,omitempty"`
// DailyRestingHeartRate: Data for points in the `daily-resting-heart-rate`
// daily data type collection.
DailyRestingHeartRate *DailyRestingHeartRate `json:"dailyRestingHeartRate,omitempty"`
// DailySleepTemperatureDerivations: Data for points in the
// `daily-sleep-temperature-derivations` daily data type collection.
DailySleepTemperatureDerivations *DailySleepTemperatureDerivations `json:"dailySleepTemperatureDerivations,omitempty"`
// DailyVo2Max: Data for points in the `daily-vo2-max` daily data type
// collection.
DailyVo2Max *DailyVO2Max `json:"dailyVo2Max,omitempty"`
// DataPointName: Identifier. Data point name, only supported for the subset of
// identifiable data types. For the majority of the data types, individual data
// points do not need to be identified and this field would be empty. Format:
// `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` Example:
// `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcd
// ef` The `{user}` ID is a system-generated identifier, as described in
// Identity.health_user_id. The `{data_type}` ID corresponds to the kebab-case
// version of the field names in the DataPoint data union field, e.g.
// `heart-rate` for the `heart_rate` field. The `{data_point}` ID can be
// client-provided or system-generated. If client-provided, it must be a string
// of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
DataPointName string `json:"dataPointName,omitempty"`
// Distance: Data for points in the `distance` interval data type collection.
Distance *Distance `json:"distance,omitempty"`
// Exercise: Data for points in the `exercise` session data type collection.
Exercise *Exercise `json:"exercise,omitempty"`
// Floors: Data for points in the `floors` interval data type collection.
Floors *Floors `json:"floors,omitempty"`
// HeartRate: Data for points in the `heart-rate` sample data type collection.
HeartRate *HeartRate `json:"heartRate,omitempty"`
// HeartRateVariability: Data for points in the `heart-rate-variability` sample
// data type collection.
HeartRateVariability *HeartRateVariability `json:"heartRateVariability,omitempty"`
// Height: Data for points in the `height` sample data type collection.
Height *Height `json:"height,omitempty"`
// HydrationLog: Data for points in the `hydration-log` session data type
// collection.
HydrationLog *HydrationLog `json:"hydrationLog,omitempty"`
// NutritionLog: Data for points in the `nutrition-log` session data type
// collection.
NutritionLog *NutritionLog `json:"nutritionLog,omitempty"`
// OxygenSaturation: Data for points in the `oxygen-saturation` sample data
// type collection.
OxygenSaturation *OxygenSaturation `json:"oxygenSaturation,omitempty"`
// RespiratoryRateSleepSummary: Data for points in the
// `respiratory-rate-sleep-summary` sample data type collection.
RespiratoryRateSleepSummary *RespiratoryRateSleepSummary `json:"respiratoryRateSleepSummary,omitempty"`
// RunVo2Max: Data for points in the `run-vo2-max` sample data type collection.
RunVo2Max *RunVO2Max `json:"runVo2Max,omitempty"`
// SedentaryPeriod: Data for points in the `sedentary-period` interval data
// type collection.
SedentaryPeriod *SedentaryPeriod `json:"sedentaryPeriod,omitempty"`
// Sleep: Data for points in the `sleep` session data type collection.
Sleep *Sleep `json:"sleep,omitempty"`
// Steps: Data for points in the `steps` interval data type collection.
Steps *Steps `json:"steps,omitempty"`
// SwimLengthsData: Data for points in the `swim-lengths-data` interval data
// type collection.
SwimLengthsData *SwimLengthsData `json:"swimLengthsData,omitempty"`
// TimeInHeartRateZone: Data for points in the `time-in-heart-rate-zone`
// interval data type collection.
TimeInHeartRateZone *TimeInHeartRateZone `json:"timeInHeartRateZone,omitempty"`
// Vo2Max: Data for points in the `vo2-max` sample data type collection.
Vo2Max *VO2Max `json:"vo2Max,omitempty"`
// Weight: Data for points in the `weight` sample data type collection.
Weight *Weight `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveEnergyBurned") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveEnergyBurned") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ReconciledDataPoint: A reconciled computed or recorded metric.
func (ReconciledDataPoint) MarshalJSON ¶
func (s ReconciledDataPoint) MarshalJSON() ([]byte, error)
type RespiratoryRateSleepSummary ¶
type RespiratoryRateSleepSummary struct {
// DeepSleepStats: Optional. Respiratory rate statistics for deep sleep.
DeepSleepStats *RespiratoryRateSleepSummaryStatistics `json:"deepSleepStats,omitempty"`
// FullSleepStats: Required. Full respiratory rate statistics.
FullSleepStats *RespiratoryRateSleepSummaryStatistics `json:"fullSleepStats,omitempty"`
// LightSleepStats: Optional. Respiratory rate statistics for light sleep.
LightSleepStats *RespiratoryRateSleepSummaryStatistics `json:"lightSleepStats,omitempty"`
// RemSleepStats: Optional. Respiratory rate statistics for REM sleep.
RemSleepStats *RespiratoryRateSleepSummaryStatistics `json:"remSleepStats,omitempty"`
// SampleTime: Required. The time at which respiratory rate was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeepSleepStats") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DeepSleepStats") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RespiratoryRateSleepSummary: Records respiratory rate details during sleep. Can have multiple per day if the user sleeps multiple times.
func (RespiratoryRateSleepSummary) MarshalJSON ¶
func (s RespiratoryRateSleepSummary) MarshalJSON() ([]byte, error)
type RespiratoryRateSleepSummaryStatistics ¶
type RespiratoryRateSleepSummaryStatistics struct {
// BreathsPerMinute: Required. Average breaths per minute.
BreathsPerMinute float64 `json:"breathsPerMinute,omitempty"`
// SignalToNoise: Optional. How trustworthy the data is for the computation.
SignalToNoise float64 `json:"signalToNoise,omitempty"`
// StandardDeviation: Optional. Standard deviation of the respiratory rate
// during sleep.
StandardDeviation float64 `json:"standardDeviation,omitempty"`
// ForceSendFields is a list of field names (e.g. "BreathsPerMinute") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BreathsPerMinute") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RespiratoryRateSleepSummaryStatistics: Respiratory rate statistics for a given sleep stage.
func (RespiratoryRateSleepSummaryStatistics) MarshalJSON ¶
func (s RespiratoryRateSleepSummaryStatistics) MarshalJSON() ([]byte, error)
func (*RespiratoryRateSleepSummaryStatistics) UnmarshalJSON ¶
func (s *RespiratoryRateSleepSummaryStatistics) UnmarshalJSON(data []byte) error
type RestingHeartRatePersonalRangeRollupValue ¶
type RestingHeartRatePersonalRangeRollupValue struct {
// BeatsPerMinuteMax: The upper bound of the user's daily resting heart rate
// personal range.
BeatsPerMinuteMax float64 `json:"beatsPerMinuteMax,omitempty"`
// BeatsPerMinuteMin: The lower bound of the user's daily resting heart rate
// personal range.
BeatsPerMinuteMin float64 `json:"beatsPerMinuteMin,omitempty"`
// ForceSendFields is a list of field names (e.g. "BeatsPerMinuteMax") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BeatsPerMinuteMax") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RestingHeartRatePersonalRangeRollupValue: Represents the rollup value for the daily resting heart rate data type.
func (RestingHeartRatePersonalRangeRollupValue) MarshalJSON ¶
func (s RestingHeartRatePersonalRangeRollupValue) MarshalJSON() ([]byte, error)
func (*RestingHeartRatePersonalRangeRollupValue) UnmarshalJSON ¶
func (s *RestingHeartRatePersonalRangeRollupValue) UnmarshalJSON(data []byte) error
type RollUpDataPointsRequest ¶
type RollUpDataPointsRequest struct {
// DataSourceFamily: Optional. The data source family name to roll up. If
// empty, data points from all available data sources will be rolled up.
// Format: `users/me/dataSourceFamilies/{data_source_family}` The supported
// values are: - `users/me/dataSourceFamilies/all-sources` - Default value.
// Includes data from all available data sources. -
// `users/me/dataSourceFamilies/google-wearables` - Includes data from Google
// and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch).
// Excludes manually logged data. -
// `users/me/dataSourceFamilies/google-sources` - Includes first-party Google
// data, such as data from tracker devices, manually logged data, and Health
// Connect.
DataSourceFamily string `json:"dataSourceFamily,omitempty"`
// PageSize: Optional. The maximum number of data points to return. If
// unspecified, at most 1440 data points will be returned. The maximum page
// size is 10000; values above that will be truncated accordingly.
PageSize int64 `json:"pageSize,omitempty"`
// PageToken: Optional. The next_page_token from a previous request, if any.
// All other request fields need to be the same as in the initial request when
// the page token is specified.
PageToken string `json:"pageToken,omitempty"`
// Range: Required. Closed-open range of data points that will be rolled up.
// The maximum range for `calories-in-heart-rate-zone`, `heart-rate`,
// `active-minutes` and `total-calories` is 14 days. The maximum range for all
// other data types is 90 days.
Range *Interval `json:"range,omitempty"`
// WindowSize: Required. The size of the time window to group data points into
// before applying the aggregation functions. Must be at least 1 second.
WindowSize string `json:"windowSize,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataSourceFamily") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataSourceFamily") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RollUpDataPointsRequest: Request to roll up data points by physical time intervals.
func (RollUpDataPointsRequest) MarshalJSON ¶
func (s RollUpDataPointsRequest) MarshalJSON() ([]byte, error)
type RollUpDataPointsResponse ¶
type RollUpDataPointsResponse struct {
// NextPageToken: A token, which can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// RollupDataPoints: Values for each aggregation time window.
RollupDataPoints []*RollupDataPoint `json:"rollupDataPoints,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RollUpDataPointsResponse: Response containing the list of rolled up data points.
func (RollUpDataPointsResponse) MarshalJSON ¶
func (s RollUpDataPointsResponse) MarshalJSON() ([]byte, error)
type RollupDataPoint ¶
type RollupDataPoint struct {
// ActiveEnergyBurned: Returned by default when rolling up data points from the
// `active-energy-burned` data type.
ActiveEnergyBurned *ActiveEnergyBurnedRollupValue `json:"activeEnergyBurned,omitempty"`
// ActiveMinutes: Returned by default when rolling up data points from the
// `active-minutes` data type, or when requested explicitly using the
// `active-minutes` rollup type identifier.
ActiveMinutes *ActiveMinutesRollupValue `json:"activeMinutes,omitempty"`
// ActiveZoneMinutes: Returned by default when rolling up data points from the
// `active-zone-minutes` data type, or when requested explicitly using the
// `active-zone-minutes` rollup type identifier.
ActiveZoneMinutes *ActiveZoneMinutesRollupValue `json:"activeZoneMinutes,omitempty"`
// ActivityLevel: Returned by default when rolling up data points from the
// `activity-level` data type, or when requested explicitly using the
// `activity-level` rollup type identifier.
ActivityLevel *ActivityLevelRollupValue `json:"activityLevel,omitempty"`
// Altitude: Returned by default when rolling up data points from the
// `altitude` data type, or when requested explicitly using the `altitude`
// rollup type identifier.
Altitude *AltitudeRollupValue `json:"altitude,omitempty"`
// BloodGlucose: Returned by default when rolling up data points from the
// `blood-glucose` data type.
BloodGlucose *BloodGlucoseRollupValue `json:"bloodGlucose,omitempty"`
// BodyFat: Returned by default when rolling up data points from the `body-fat`
// data type, or when requested explicitly using the `body-fat` rollup type
// identifier.
BodyFat *BodyFatRollupValue `json:"bodyFat,omitempty"`
// CaloriesInHeartRateZone: Returned by default when rolling up data points
// from the `calories-in-heart-rate-zone` data type, or when requested
// explicitly using the `calories-in-heart-rate-zone` rollup type identifier.
CaloriesInHeartRateZone *CaloriesInHeartRateZoneRollupValue `json:"caloriesInHeartRateZone,omitempty"`
// CoreBodyTemperature: Returned by default when rolling up data points from
// the `core-body-temperature` data type, or when requested explicitly using
// the `core-body-temperature` rollup type identifier.
CoreBodyTemperature *CoreBodyTemperatureRollupValue `json:"coreBodyTemperature,omitempty"`
// Distance: Returned by default when rolling up data points from the
// `distance` data type, or when requested explicitly using the `distance`
// rollup type identifier.
Distance *DistanceRollupValue `json:"distance,omitempty"`
// EndTime: End time of the window this value aggregates over
EndTime string `json:"endTime,omitempty"`
// Floors: Returned by default when rolling up data points from the `floors`
// data type, or when requested explicitly using the `floors` rollup type
// identifier.
Floors *FloorsRollupValue `json:"floors,omitempty"`
// HeartRate: Returned by default when rolling up data points from the
// `heart-rate` data type, or when requested explicitly using the `heart-rate`
// rollup type identifier.
HeartRate *HeartRateRollupValue `json:"heartRate,omitempty"`
// HydrationLog: Returned by default when rolling up data points from the
// `hydration-log` data type, or when requested explicitly using the
// `hydration-log` rollup type identifier.
HydrationLog *HydrationLogRollupValue `json:"hydrationLog,omitempty"`
// NutritionLog: Returned by default when rolling up data points from the
// `nutrition-log` data type, or when requested explicitly using the
// `nutrition-log` rollup type identifier.
NutritionLog *NutritionLogRollupValue `json:"nutritionLog,omitempty"`
// RunVo2Max: Returned by default when rolling up data points from the
// `run-vo2-max` data type, or when requested explicitly using the
// `run-vo2-max` rollup type identifier.
RunVo2Max *RunVO2MaxRollupValue `json:"runVo2Max,omitempty"`
// SedentaryPeriod: Returned by default when rolling up data points from the
// `sedentary-period` data type, or when requested explicitly using the
// `sedentary-period` rollup type identifier.
SedentaryPeriod *SedentaryPeriodRollupValue `json:"sedentaryPeriod,omitempty"`
// StartTime: Start time of the window this value aggregates over
StartTime string `json:"startTime,omitempty"`
// Steps: Returned by default when rolling up data points from the `steps` data
// type, or when requested explicitly using the `steps` rollup type identifier.
Steps *StepsRollupValue `json:"steps,omitempty"`
// SwimLengthsData: Returned by default when rolling up data points from the
// `swim-lengths-data` data type, or when requested explicitly using the
// `swim-lengths-data` rollup type identifier.
SwimLengthsData *SwimLengthsDataRollupValue `json:"swimLengthsData,omitempty"`
// TimeInHeartRateZone: Returned by default when rolling up data points from
// the `time-in-heart-rate-zone` data type, or when requested explicitly using
// the `time-in-heart-rate-zone` rollup type identifier.
TimeInHeartRateZone *TimeInHeartRateZoneRollupValue `json:"timeInHeartRateZone,omitempty"`
// TotalCalories: Returned by default when rolling up data points from the
// `total-calories` data type, or when requested explicitly using the
// `total-calories` rollup type identifier.
TotalCalories *TotalCaloriesRollupValue `json:"totalCalories,omitempty"`
// Weight: Returned by default when rolling up data points from the `weight`
// data type, or when requested explicitly using the `weight` rollup type
// identifier.
Weight *WeightRollupValue `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveEnergyBurned") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveEnergyBurned") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RollupDataPoint: Value of a rollup for a single physical time interval (aggregation window) of reconciled data points from all data sources, excluding those data points that are identified as recorded by wearables in intervals when they were not actually worn.
func (RollupDataPoint) MarshalJSON ¶
func (s RollupDataPoint) MarshalJSON() ([]byte, error)
type RunVO2Max ¶
type RunVO2Max struct {
// RunVo2Max: Required. Run VO2 max value in ml/kg/min.
RunVo2Max float64 `json:"runVo2Max,omitempty"`
// SampleTime: Required. The time at which the metric was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "RunVo2Max") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RunVo2Max") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RunVO2Max: VO2 max value calculated based on the user's running activity. Value stored in ml/kg/min.
func (RunVO2Max) MarshalJSON ¶
func (*RunVO2Max) UnmarshalJSON ¶
type RunVO2MaxRollupValue ¶
type RunVO2MaxRollupValue struct {
// RateAvg: Average value of run VO2 max in the interval.
RateAvg float64 `json:"rateAvg,omitempty"`
// RateMax: Maximum value of run VO2 max in the interval.
RateMax float64 `json:"rateMax,omitempty"`
// RateMin: Minimum value of run VO2 max in the interval..
RateMin float64 `json:"rateMin,omitempty"`
// ForceSendFields is a list of field names (e.g. "RateAvg") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RateAvg") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RunVO2MaxRollupValue: Represents the result of the rollup of the user's daily heart rate variability personal range.
func (RunVO2MaxRollupValue) MarshalJSON ¶
func (s RunVO2MaxRollupValue) MarshalJSON() ([]byte, error)
func (*RunVO2MaxRollupValue) UnmarshalJSON ¶
func (s *RunVO2MaxRollupValue) UnmarshalJSON(data []byte) error
type SedentaryPeriod ¶
type SedentaryPeriod struct {
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SedentaryPeriod: SedentaryPeriod SedentaryPeriod data represents the periods of time that the user was sedentary (i.e. not moving while wearing the device).
func (SedentaryPeriod) MarshalJSON ¶
func (s SedentaryPeriod) MarshalJSON() ([]byte, error)
type SedentaryPeriodRollupValue ¶
type SedentaryPeriodRollupValue struct {
// DurationSum: The total time user spent sedentary during the interval.
DurationSum string `json:"durationSum,omitempty"`
// ForceSendFields is a list of field names (e.g. "DurationSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DurationSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SedentaryPeriodRollupValue: Represents the result of the rollup of the user's sedentary periods.
func (SedentaryPeriodRollupValue) MarshalJSON ¶
func (s SedentaryPeriodRollupValue) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct {
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
Shl *ShlService
Users *UsersService
// contains filtered or unexported fields
}
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type Serving ¶ added in v0.283.0
type Serving struct {
// Amount: Optional. The number of servings.
Amount float64 `json:"amount,omitempty"`
// FoodMeasurementUnit: Required. Food measurement unit
FoodMeasurementUnit string `json:"foodMeasurementUnit,omitempty"`
// FoodMeasurementUnitDisplayName: Output only. Legacy measurement unit for
// serving size in singular form (e.g. "piece", "gram").
FoodMeasurementUnitDisplayName string `json:"foodMeasurementUnitDisplayName,omitempty"`
// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Amount") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Serving: Represents different properties and information about the serving of a specific food.
func (Serving) MarshalJSON ¶ added in v0.283.0
func (*Serving) UnmarshalJSON ¶ added in v0.283.0
type SessionTimeInterval ¶
type SessionTimeInterval struct {
// CivilEndTime: Output only. Session end time in civil time in the timezone
// the subject is in at the end of the session.
CivilEndTime *CivilDateTime `json:"civilEndTime,omitempty"`
// CivilStartTime: Output only. Session start time in civil time in the
// timezone the subject is in at the start of the session.
CivilStartTime *CivilDateTime `json:"civilStartTime,omitempty"`
// EndTime: Required. The end time of the observed session.
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. The offset of the user's local time at the end of
// the session relative to the Coordinated Universal Time (UTC).
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// StartTime: Required. The start time of the observed session.
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. The offset of the user's local time at the start
// of the session relative to the Coordinated Universal Time (UTC).
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "CivilEndTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CivilEndTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionTimeInterval: Represents a time interval of session data point, which bundles multiple observed metrics together.
func (SessionTimeInterval) MarshalJSON ¶
func (s SessionTimeInterval) MarshalJSON() ([]byte, error)
type Settings ¶
type Settings struct {
// AutoStrideEnabled: Optional. True if the user's stride length is determined
// automatically. Updates to this field are currently not supported.
AutoStrideEnabled bool `json:"autoStrideEnabled,omitempty"`
// DistanceUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "DISTANCE_UNIT_UNSPECIFIED" - Distance unit is not specified.
// "DISTANCE_UNIT_MILES" - Distance unit is miles.
// "DISTANCE_UNIT_KILOMETERS" - Distance unit is kilometers.
DistanceUnit string `json:"distanceUnit,omitempty"`
// FoodLanguageCode: Output only. The food language code derived from the
// user's food database. Possible values: `'en-US'`, `'en-GB'`, `'de-DE'`,
// `'es-ES'`, `'fr-FR'`, `'zh-CN'`, `'zh-TW'`, `'ja-JP'`, `'en-AU'`, `'en-CA'`,
// `'it-IT'`, `'ko-KR'`, `'es-MX'`, `'en-IN'`, `'en-SG'`, `'en-PH'`, `'en-IE'`,
// `'fr-CA'`. Updates to this field are currently not supported.
FoodLanguageCode string `json:"foodLanguageCode,omitempty"`
// GlucoseUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "GLUCOSE_UNIT_UNSPECIFIED" - Glucose unit is not specified.
// "GLUCOSE_UNIT_MG_DL" - Glucose unit is mg/dL.
// "GLUCOSE_UNIT_MMOL_L" - Glucose unit is mmol/l.
GlucoseUnit string `json:"glucoseUnit,omitempty"`
// HeightUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "HEIGHT_UNIT_UNSPECIFIED" - Height unit is not specified.
// "HEIGHT_UNIT_INCHES" - Height unit is inches.
// "HEIGHT_UNIT_CENTIMETERS" - Height unit is cm.
HeightUnit string `json:"heightUnit,omitempty"`
// LanguageLocale: Optional. The locale defined in the user's account settings.
// Updates to this field are currently not supported.
LanguageLocale string `json:"languageLocale,omitempty"`
// Name: Identifier. The resource name of this Settings resource. Format:
// `users/{user}/settings` Example: `users/1234567890/settings` or
// `users/me/settings` The {user} ID is a system-generated Google Health API
// user ID, a string of 1-63 characters consisting of lowercase and uppercase
// letters, numbers, and hyphens. The literal `me` can also be used to refer to
// the authenticated user.
Name string `json:"name,omitempty"`
// StrideLengthRunningType: Optional. The stride length type defined in the
// user's account settings for running. Updates to this field are currently not
// supported.
//
// Possible values:
// "STRIDE_LENGTH_TYPE_UNSPECIFIED" - Stride length type is not specified.
// "STRIDE_LENGTH_TYPE_DEFAULT" - Stride length type is computed based on the
// user's gender and height.
// "STRIDE_LENGTH_TYPE_MANUAL" - Stride length type is manually set by the
// user.
// "STRIDE_LENGTH_TYPE_AUTO" - Stride length type is determined
// automatically.
StrideLengthRunningType string `json:"strideLengthRunningType,omitempty"`
// StrideLengthWalkingType: Optional. The stride length type defined in the
// user's account settings for walking. Updates to this field are currently not
// supported.
//
// Possible values:
// "STRIDE_LENGTH_TYPE_UNSPECIFIED" - Stride length type is not specified.
// "STRIDE_LENGTH_TYPE_DEFAULT" - Stride length type is computed based on the
// user's gender and height.
// "STRIDE_LENGTH_TYPE_MANUAL" - Stride length type is manually set by the
// user.
// "STRIDE_LENGTH_TYPE_AUTO" - Stride length type is determined
// automatically.
StrideLengthWalkingType string `json:"strideLengthWalkingType,omitempty"`
// SwimUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "SWIM_UNIT_UNSPECIFIED" - Swim unit is not specified.
// "SWIM_UNIT_METERS" - Swim unit is meters.
// "SWIM_UNIT_YARDS" - Swim unit is yards.
SwimUnit string `json:"swimUnit,omitempty"`
// TemperatureUnit: Optional. The measurement unit defined in the user's
// account settings.
//
// Possible values:
// "TEMPERATURE_UNIT_UNSPECIFIED" - Temperature unit is not specified.
// "TEMPERATURE_UNIT_CELSIUS" - Temperature unit is Celsius.
// "TEMPERATURE_UNIT_FAHRENHEIT" - Temperature unit is Fahrenheit.
TemperatureUnit string `json:"temperatureUnit,omitempty"`
// TimeZone: Optional. The timezone defined in the user's account settings.
// This follows the IANA Time Zone Database (https://www.iana.org/time-zones).
// Updates to this field are currently not supported.
TimeZone string `json:"timeZone,omitempty"`
// UtcOffset: Optional. The user's timezone offset relative to UTC. Updates to
// this field are currently not supported.
UtcOffset string `json:"utcOffset,omitempty"`
// WaterUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "WATER_UNIT_UNSPECIFIED" - Water unit is not specified.
// "WATER_UNIT_ML" - Water unit is milliliters.
// "WATER_UNIT_FL_OZ" - Water unit is fluid ounces.
// "WATER_UNIT_CUP" - Water unit is cups.
WaterUnit string `json:"waterUnit,omitempty"`
// WeightUnit: Optional. The measurement unit defined in the user's account
// settings.
//
// Possible values:
// "WEIGHT_UNIT_UNSPECIFIED" - Weight unit is not specified.
// "WEIGHT_UNIT_POUNDS" - Weight unit is pounds.
// "WEIGHT_UNIT_STONE" - Weight unit is stones.
// "WEIGHT_UNIT_KILOGRAMS" - Weight unit is kilograms.
WeightUnit string `json:"weightUnit,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AutoStrideEnabled") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AutoStrideEnabled") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Settings: Settings details.
func (Settings) MarshalJSON ¶
type ShlMGetShlManifestCall ¶ added in v0.289.0
type ShlMGetShlManifestCall struct {
// contains filtered or unexported fields
}
func (*ShlMGetShlManifestCall) Context ¶ added in v0.289.0
func (c *ShlMGetShlManifestCall) Context(ctx context.Context) *ShlMGetShlManifestCall
Context sets the context to be used in this call's Do method.
func (*ShlMGetShlManifestCall) Do ¶ added in v0.289.0
func (c *ShlMGetShlManifestCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
Do executes the "health.shl.m.getShlManifest" call. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ShlMGetShlManifestCall) Fields ¶ added in v0.289.0
func (c *ShlMGetShlManifestCall) Fields(s ...googleapi.Field) *ShlMGetShlManifestCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ShlMGetShlManifestCall) Header ¶ added in v0.289.0
func (c *ShlMGetShlManifestCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ShlMService ¶ added in v0.289.0
type ShlMService struct {
// contains filtered or unexported fields
}
func NewShlMService ¶ added in v0.289.0
func NewShlMService(s *Service) *ShlMService
func (*ShlMService) GetShlManifest ¶ added in v0.289.0
func (r *ShlMService) GetShlManifest(externalShlId string, manifestparams *ManifestParams) *ShlMGetShlManifestCall
GetShlManifest: Forward a manifest request for a given SHL
- externalShlId: External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q.
type ShlRGetCall ¶ added in v0.289.0
type ShlRGetCall struct {
// contains filtered or unexported fields
}
func (*ShlRGetCall) Context ¶ added in v0.289.0
func (c *ShlRGetCall) Context(ctx context.Context) *ShlRGetCall
Context sets the context to be used in this call's Do method.
func (*ShlRGetCall) Do ¶ added in v0.289.0
func (c *ShlRGetCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
Do executes the "health.shl.r.get" call. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ShlRGetCall) Fields ¶ added in v0.289.0
func (c *ShlRGetCall) Fields(s ...googleapi.Field) *ShlRGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ShlRGetCall) Header ¶ added in v0.289.0
func (c *ShlRGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ShlRGetCall) IfNoneMatch ¶ added in v0.289.0
func (c *ShlRGetCall) IfNoneMatch(entityTag string) *ShlRGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ShlRService ¶ added in v0.289.0
type ShlRService struct {
// contains filtered or unexported fields
}
func NewShlRService ¶ added in v0.289.0
func NewShlRService(s *Service) *ShlRService
func (*ShlRService) Get ¶ added in v0.289.0
func (r *ShlRService) Get(externalShlId string, resourceToken string) *ShlRGetCall
Get: Forward a resource request for a given SHL
- externalShlId: External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q.
- resourceToken: Encoded, encrypted message containing resource access details.
type ShlService ¶ added in v0.289.0
type ShlService struct {
M *ShlMService
R *ShlRService
// contains filtered or unexported fields
}
func NewShlService ¶ added in v0.289.0
func NewShlService(s *Service) *ShlService
type Sleep ¶
type Sleep struct {
// CreateTime: Output only. Creation time of this sleep observation.
CreateTime string `json:"createTime,omitempty"`
// Interval: Required. Observed sleep interval.
Interval *SessionTimeInterval `json:"interval,omitempty"`
// Metadata: Optional. Sleep metadata: `processed`, `main_sleep`,
// `manually_edited`, and `stages_status`.
Metadata *SleepMetadata `json:"metadata,omitempty"`
// OutOfBedSegments: Optional. “Out of bed” segments that can overlap with
// sleep stages.
OutOfBedSegments []*OutOfBedSegment `json:"outOfBedSegments,omitempty"`
// ShortAwakenings: Output only. List of short awake segments (under a set
// threshold) that are part of the sleep session. These can overlap with sleep
// stages.
ShortAwakenings []*SleepStage `json:"shortAwakenings,omitempty"`
// Stages: Optional. List of non-overlapping contiguous sleep stage segments
// that cover the sleep period.
Stages []*SleepStage `json:"stages,omitempty"`
// Summary: Output only. Sleep summary: metrics and stages summary.
Summary *SleepSummary `json:"summary,omitempty"`
// Type: Optional. SleepType: classic or stages.
//
// Possible values:
// "SLEEP_TYPE_UNSPECIFIED" - Sleep type is unspecified.
// "CLASSIC" - Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS
// and ASLEEP.
// "STAGES" - On top of "classic" sleep stages an additional processing pass
// can calculate stages more precisely, overwriting the prior stages with
// AWAKE, LIGHT, REM and DEEP.
Type string `json:"type,omitempty"`
// UpdateTime: Output only. Last update time of this sleep observation.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Sleep: A sleep session possibly including stages.
func (Sleep) MarshalJSON ¶
type SleepMetadata ¶
type SleepMetadata struct {
// ExternalId: Optional. Sleep identifier relevant in the context of the data
// source.
ExternalId string `json:"externalId,omitempty"`
// MainSleep: Output only. `main_sleep`: the longest sleep session with stages
// within one day. If no sleep session has stages, then the longest sleep is
// the `main_sleep`. If there are multiple days of sleep in the response, there
// is one `main_sleep` per day.
MainSleep bool `json:"mainSleep,omitempty"`
// ManuallyEdited: Output only. Some sleeps autodetected by algorithms can be
// manually edited by users.
ManuallyEdited bool `json:"manuallyEdited,omitempty"`
// Nap: Output only. Naps are sleeps without stages and relatively short
// durations.
Nap bool `json:"nap,omitempty"`
// Processed: Output only. Sleep and sleep stages algorithms finished
// processing. A `true` value indicates whether all data processing for the
// session is complete. A `false` value means sleep period is detected but
// sleep stages is still processing.
Processed bool `json:"processed,omitempty"`
// StagesStatus: Output only. Sleep stages algorithm processing status.
//
// Possible values:
// "STAGES_STATE_UNSPECIFIED" - Output only. Sleep stages status is
// unspecified.
// "REJECTED_COVERAGE" - Output only. Sleep stages cannot be computed due to
// low RR coverage.
// "REJECTED_MAX_GAP" - Output only. Sleep stages cannot be computed due to
// the large middle gap (2h).
// "REJECTED_START_GAP" - Output only. Sleep stages cannot be computed due to
// the large start gap (1h).
// "REJECTED_END_GAP" - Output only. Sleep stages cannot be computed due to
// the large end gap (1h).
// "REJECTED_NAP" - Output only. Sleep stages cannot be computed because the
// sleep log is a nap (has < 3h duration).
// "REJECTED_SERVER" - Output only. Sleep stages cannot be computed because
// input data is not available (PPGV2, wake magnitude, etc).
// "TIMEOUT" - Output only. Sleep stages cannot be computed due to server
// timeout.
// "SUCCEEDED" - Output only. Sleep stages successfully computed.
// "PROCESSING_INTERNAL_ERROR" - Output only. Sleep stages cannot be computed
// due to server internal error.
StagesStatus string `json:"stagesStatus,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExternalId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExternalId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SleepMetadata: Additional information about how the sleep was processed.
func (SleepMetadata) MarshalJSON ¶
func (s SleepMetadata) MarshalJSON() ([]byte, error)
type SleepStage ¶
type SleepStage struct {
// CreateTime: Output only. Creation time of this sleep stages segment.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Required. Sleep stage end time.
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. The offset of the user's local time at the end of
// the sleep stage relative to the Coordinated Universal Time (UTC).
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// StartTime: Required. Sleep stage start time.
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. The offset of the user's local time at the start
// of the sleep stage relative to the Coordinated Universal Time (UTC).
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// Type: Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
//
// Possible values:
// "SLEEP_STAGE_TYPE_UNSPECIFIED" - The default unset value.
// "AWAKE" - Sleep stage AWAKE.
// "LIGHT" - Sleep stage LIGHT.
// "DEEP" - Sleep stage DEEP.
// "REM" - Sleep stage REM.
// "ASLEEP" - Sleep stage ASLEEP.
// "RESTLESS" - Sleep stage RESTLESS.
Type string `json:"type,omitempty"`
// UpdateTime: Output only. Last update time of this sleep stages segment.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SleepStage: Sleep stage segment.
func (SleepStage) MarshalJSON ¶
func (s SleepStage) MarshalJSON() ([]byte, error)
type SleepSummary ¶
type SleepSummary struct {
// MinutesAfterWakeUp: Output only. Minutes after wake up calculated by
// restlessness algorithm.
MinutesAfterWakeUp int64 `json:"minutesAfterWakeUp,omitempty,string"`
// MinutesAsleep: Output only. Total number of minutes asleep. For classic
// sleep it is the sum of ASLEEP stages (excluding AWAKE and RESTLESS). For
// "stages" sleep it is the sum of LIGHT, REM and DEEP stages (excluding
// AWAKE).
MinutesAsleep int64 `json:"minutesAsleep,omitempty,string"`
// MinutesAwake: Output only. Total number of minutes awake. It is a sum of all
// AWAKE stages.
MinutesAwake int64 `json:"minutesAwake,omitempty,string"`
// MinutesInSleepPeriod: Output only. Delta between wake time and bedtime. It
// is the sum of all stages.
MinutesInSleepPeriod int64 `json:"minutesInSleepPeriod,omitempty,string"`
// MinutesToFallAsleep: Output only. Minutes to fall asleep calculated by
// restlessness algorithm.
MinutesToFallAsleep int64 `json:"minutesToFallAsleep,omitempty,string"`
// StagesSummary: Output only. List of summaries (total duration and segment
// count) per each sleep stage type.
StagesSummary []*StageSummary `json:"stagesSummary,omitempty"`
// ForceSendFields is a list of field names (e.g. "MinutesAfterWakeUp") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MinutesAfterWakeUp") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SleepSummary: Sleep summary: metrics and stages summary.
func (SleepSummary) MarshalJSON ¶
func (s SleepSummary) MarshalJSON() ([]byte, error)
type SplitSummary ¶
type SplitSummary struct {
// ActiveDuration: Output only. Lap time excluding the pauses.
ActiveDuration string `json:"activeDuration,omitempty"`
// EndTime: Required. Lap end time
EndTime string `json:"endTime,omitempty"`
// EndUtcOffset: Required. Lap end time offset from UTC
EndUtcOffset string `json:"endUtcOffset,omitempty"`
// MetricsSummary: Required. Summary metrics for this split.
MetricsSummary *MetricsSummary `json:"metricsSummary,omitempty"`
// SplitType: Required. Method used to split the exercise laps. Users may
// manually mark the lap as complete even if the tracking is automatic.
//
// Possible values:
// "SPLIT_TYPE_UNSPECIFIED" - Split type is unspecified.
// "MANUAL" - Manual split.
// "DURATION" - Split by duration.
// "DISTANCE" - Split by distance.
// "CALORIES" - Split by calories.
SplitType string `json:"splitType,omitempty"`
// StartTime: Required. Lap start time
StartTime string `json:"startTime,omitempty"`
// StartUtcOffset: Required. Lap start time offset from UTC
StartUtcOffset string `json:"startUtcOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveDuration") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveDuration") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SplitSummary: Represents splits or laps recorded within an exercise. Lap events partition a workout into segments based on criteria like distance, time, or calories.
func (SplitSummary) MarshalJSON ¶
func (s SplitSummary) MarshalJSON() ([]byte, error)
type StageSummary ¶
type StageSummary struct {
// Count: Output only. Number of sleep stages segments.
Count int64 `json:"count,omitempty,string"`
// Minutes: Output only. Total duration in minutes of a sleep stage.
Minutes int64 `json:"minutes,omitempty,string"`
// Type: Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
//
// Possible values:
// "SLEEP_STAGE_TYPE_UNSPECIFIED" - The default unset value.
// "AWAKE" - Sleep stage AWAKE.
// "LIGHT" - Sleep stage LIGHT.
// "DEEP" - Sleep stage DEEP.
// "REM" - Sleep stage REM.
// "ASLEEP" - Sleep stage ASLEEP.
// "RESTLESS" - Sleep stage RESTLESS.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Count") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
StageSummary: Total duration and segment count for a stage.
func (StageSummary) MarshalJSON ¶
func (s StageSummary) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct {
// Code: The status code, which should be an enum value of google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There is a common
// set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in English. Any
// user-facing error message should be localized and sent in the
// google.rpc.Status.details field, or localized by the client.
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Code") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type Steps ¶
type Steps struct {
// Count: Required. Number of steps in the recorded interval.
Count int64 `json:"count,omitempty,string"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Count") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Steps: Step count over the time interval.
func (Steps) MarshalJSON ¶
type StepsRollupValue ¶
type StepsRollupValue struct {
// CountSum: Total number of steps in the interval.
CountSum int64 `json:"countSum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "CountSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CountSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
StepsRollupValue: Represents the result of the rollup of the steps data type.
func (StepsRollupValue) MarshalJSON ¶
func (s StepsRollupValue) MarshalJSON() ([]byte, error)
type Subscriber ¶ added in v0.277.0
type Subscriber struct {
// CreateTime: Output only. The time at which the subscriber was created.
CreateTime string `json:"createTime,omitempty"`
// EndpointAuthorization: Required. Authorization mechanism for a subscriber
// endpoint. This is required to ensure the endpoint can be verified.
EndpointAuthorization *EndpointAuthorization `json:"endpointAuthorization,omitempty"`
// EndpointUri: Required. The full HTTPS URI where update notifications will be
// sent. The URI must be a valid URL and use HTTPS as the scheme. This endpoint
// will be verified during CreateSubscriber and UpdateSubscriber calls. See RPC
// documentation for verification details.
EndpointUri string `json:"endpointUri,omitempty"`
// Name: Identifier. The resource name of the Subscriber. Format:
// projects/{project}/subscribers/{subscriber} The {project} ID is a Google
// Cloud Project ID or Project Number. The {subscriber} ID is user-settable
// (4-36 characters, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided
// during creation, or system-generated otherwise (e.g., a UUID). Example
// (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123
// Example (System-generated subscriber ID):
// projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef
Name string `json:"name,omitempty"`
// State: Output only. The state of the subscriber.
//
// Possible values:
// "STATE_UNSPECIFIED" - Represents an unspecified subscriber state.
// "UNVERIFIED" - Represents an unverified subscriber. This is the initial
// state of the subscriber when it is created. The backend will verify the
// subscriber's endpoint_uri.
// "ACTIVE" - Represents an active subscriber. The endpoint has been
// verified.
// "INACTIVE" - Represents an inactive subscriber.
State string `json:"state,omitempty"`
// SubscriberConfigs: Optional. Configuration for the subscriber.
SubscriberConfigs []*SubscriberConfig `json:"subscriberConfigs,omitempty"`
// UpdateTime: Output only. The time at which the subscriber was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Subscriber: -- Resource Messages -- A subscriber receives notifications from Google Health API.
func (Subscriber) MarshalJSON ¶ added in v0.277.0
func (s Subscriber) MarshalJSON() ([]byte, error)
type SubscriberConfig ¶ added in v0.277.0
type SubscriberConfig struct {
// DataTypes: Required. See Google Health API data types
// (https://developers.google.com/health/data-types) for the list of supported
// data types. Values should be in kebab-case.
DataTypes []string `json:"dataTypes,omitempty"`
// SubscriptionCreatePolicy: Required. Policy for subscription creation.
//
// Possible values:
// "SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED" - Represents an unspecified
// policy.
// "AUTOMATIC" - When using `AUTOMATIC`, individual subscriptions are not
// created or stored. Instead, eligibility for notifications is computed
// dynamically. When a data update occurs for a given data type, notifications
// are sent to all subscribers with an `AUTOMATIC` policy for that data type,
// provided the user has granted the necessary consents. This means you do not
// need to call `CreateSubscription` for each user; notifications are managed
// automatically based on user consents. As `Subscription` resources are not
// stored, they cannot be retrieved or managed through `GetSubscription`,
// `ListSubscriptions`, `UpdateSubscription`, or `DeleteSubscription`.
// "MANUAL" - Requires subscriptions to be created manually for new users.
// The developer needs to call CreateSubscription for new users.
SubscriptionCreatePolicy string `json:"subscriptionCreatePolicy,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataTypes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataTypes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SubscriberConfig: Configuration for a subscriber. A notification is sent to a subscription ONLY if the subscriber has a config for the data type.
func (SubscriberConfig) MarshalJSON ¶ added in v0.277.0
func (s SubscriberConfig) MarshalJSON() ([]byte, error)
type Subscription ¶ added in v0.283.0
type Subscription struct {
// DataTypes: Optional. Data types subscribed to. A subscriber will only
// receive notifications for data types that are declared here. A subscription
// can only subscribe to the data types of the subscriber. The values should be
// in the format "users/{health_user_id}/dataTypes/{data_type}" where
// `{data_type}` is one of "altitude", "distance", "floors", "sleep", "steps",
// "weight".
DataTypes []string `json:"dataTypes,omitempty"`
// Name: Identifier. The resource name of the Subscription. Format:
// `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}`
// Example:
// `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscript
// ion-456` The {project} ID is mandatory (6-30 characters, matching
// /a-z{6,30}/) The {subscriber} ID is user-settable (4-36 characters, matching
// /a-z ([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or
// system-generated otherwise. The {subscription} ID is user-settable (4-36
// chars, matching /a-z ([a-z0-9-]{2,34}[a-z0-9])/) or system-generated
// otherwise.
Name string `json:"name,omitempty"`
// User: Immutable. The resource name of the user for whom this subscription is
// active. Format: `users/{user}` where `{user}` is the public `healthUserId`
// as returned by the `GetIdentity` action in the profile PAPI (see
// `google.devicesandservices.health.v4main.HealthProfileService.GetIdentity`).
User string `json:"user,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DataTypes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataTypes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Subscription: A subscription to a data collection for a specific user, to be delivered to a subscriber.
func (Subscription) MarshalJSON ¶ added in v0.283.0
func (s Subscription) MarshalJSON() ([]byte, error)
type SwimLengthsData ¶ added in v0.277.0
type SwimLengthsData struct {
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// StrokeCount: Required. Number of strokes in the lap.
StrokeCount int64 `json:"strokeCount,omitempty,string"`
// SwimStrokeType: Required. Swim stroke type.
//
// Possible values:
// "SWIM_STROKE_TYPE_UNSPECIFIED" - Swim stroke type is unspecified.
// "FREESTYLE" - Freestyle swim stroke type.
// "BACKSTROKE" - Backstroke swim stroke type.
// "BREASTSTROKE" - Breaststroke swim stroke type.
// "BUTTERFLY" - Butterfly swim stroke type.
SwimStrokeType string `json:"swimStrokeType,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interval") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Interval") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SwimLengthsData: Swim lengths data over the time interval.
func (SwimLengthsData) MarshalJSON ¶ added in v0.277.0
func (s SwimLengthsData) MarshalJSON() ([]byte, error)
type SwimLengthsDataRollupValue ¶ added in v0.277.0
type SwimLengthsDataRollupValue struct {
// StrokeCountSum: Total number of swim strokes in the interval.
StrokeCountSum int64 `json:"strokeCountSum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "StrokeCountSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "StrokeCountSum") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SwimLengthsDataRollupValue: Represents the result of the rollup of the swim lengths data type.
func (SwimLengthsDataRollupValue) MarshalJSON ¶ added in v0.277.0
func (s SwimLengthsDataRollupValue) MarshalJSON() ([]byte, error)
type Symptoms ¶ added in v0.292.0
type Symptoms struct {
// SampleTime: Required. Time when the symptoms were logged.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// Symptoms: Required. List of symptoms experienced.
//
// Possible values:
// "SYMPTOM_VALUE_UNSPECIFIED" - Unspecified symptom value.
// "CRAMPS" - Abdominal cramps.
// "HEADACHE" - Headache.
// "TENDER_BREASTS" - Tender breasts.
// "ACNE" - Acne.
// "SICK" - Feeling sick or unwell.
// "BLOATED" - Bloating or abdominal swelling.
// "HOT_FLASHES" - Hot flashes.
// "PMS" - Premenstrual syndrome symptoms.
// "COUGH" - Coughing.
// "FEVER" - Fever or elevated body temperature.
// "DIFFICULTY_BREATHING" - Difficulty breathing or shortness of breath.
// "BACK_PAIN" - Back pain.
// "SHAKINESS" - Shakiness or tremors.
// "HUNGER" - Excessive hunger.
// "SWEATING" - Excessive sweating.
// "ANXIETY" - Anxiety or nervousness.
// "THIRST" - Excessive thirst.
// "FREQUENT_URINATION" - Frequent urination.
// "BLURRED_VISION" - Blurred vision.
// "OTHER" - Other symptoms.
// "SEX_DRIVE_HIGH" - High sex drive.
// "SEX_DRIVE_MEDIUM" - Medium sex drive.
// "SEX_DRIVE_LOW" - Low sex drive.
// "HEART_PALPITATIONS" - Heart palpitations or racing heart.
// "FAINTING" - Fainting or loss of consciousness.
// "CHEST_PAIN" - Chest pain or discomfort.
// "FATIGUE" - Fatigue or extreme tiredness.
// "CONFUSION" - Confusion or mental fogginess.
// "DIZZINESS" - Dizziness or lightheadedness.
Symptoms []string `json:"symptoms,omitempty"`
// ForceSendFields is a list of field names (e.g. "SampleTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SampleTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Symptoms: Symptoms logged by the user.
func (Symptoms) MarshalJSON ¶ added in v0.292.0
type TimeInHeartRateZone ¶
type TimeInHeartRateZone struct {
// HeartRateZoneType: Required. Heart rate zone type.
//
// Possible values:
// "HEART_RATE_ZONE_TYPE_UNSPECIFIED" - Unspecified heart rate zone.
// "LIGHT" - The light heart rate zone.
// "MODERATE" - The moderate heart rate zone.
// "VIGOROUS" - The vigorous heart rate zone.
// "PEAK" - The peak heart rate zone.
HeartRateZoneType string `json:"heartRateZoneType,omitempty"`
// Interval: Required. Observed interval.
Interval *ObservationTimeInterval `json:"interval,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeartRateZoneType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeartRateZoneType") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeInHeartRateZone: Time in heart rate zone record. It's an interval spent in specific heart rate zone.
func (TimeInHeartRateZone) MarshalJSON ¶
func (s TimeInHeartRateZone) MarshalJSON() ([]byte, error)
type TimeInHeartRateZoneRollupValue ¶
type TimeInHeartRateZoneRollupValue struct {
// TimeInHeartRateZones: List of time spent in each heart rate zone.
TimeInHeartRateZones []*TimeInHeartRateZoneValue `json:"timeInHeartRateZones,omitempty"`
// ForceSendFields is a list of field names (e.g. "TimeInHeartRateZones") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TimeInHeartRateZones") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeInHeartRateZoneRollupValue: Represents the result of the rollup of the time in heart rate zone data type.
func (TimeInHeartRateZoneRollupValue) MarshalJSON ¶
func (s TimeInHeartRateZoneRollupValue) MarshalJSON() ([]byte, error)
type TimeInHeartRateZoneValue ¶
type TimeInHeartRateZoneValue struct {
// Duration: The total time spent in the specified heart rate zone.
Duration string `json:"duration,omitempty"`
// HeartRateZone: The heart rate zone.
//
// Possible values:
// "HEART_RATE_ZONE_TYPE_UNSPECIFIED" - Unspecified heart rate zone.
// "LIGHT" - The light heart rate zone.
// "MODERATE" - The moderate heart rate zone.
// "VIGOROUS" - The vigorous heart rate zone.
// "PEAK" - The peak heart rate zone.
HeartRateZone string `json:"heartRateZone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Duration") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Duration") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeInHeartRateZoneValue: Represents the total time spent in a specific heart rate zone.
func (TimeInHeartRateZoneValue) MarshalJSON ¶
func (s TimeInHeartRateZoneValue) MarshalJSON() ([]byte, error)
type TimeInHeartRateZones ¶
type TimeInHeartRateZones struct {
// LightTime: Optional. Time spent in light heart rate zone.
LightTime string `json:"lightTime,omitempty"`
// ModerateTime: Optional. Time spent in moderate heart rate zone.
ModerateTime string `json:"moderateTime,omitempty"`
// PeakTime: Optional. Time spent in peak heart rate zone.
PeakTime string `json:"peakTime,omitempty"`
// VigorousTime: Optional. Time spent in vigorous heart rate zone.
VigorousTime string `json:"vigorousTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "LightTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LightTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeInHeartRateZones: Time spent in each heart rate zone.
func (TimeInHeartRateZones) MarshalJSON ¶
func (s TimeInHeartRateZones) MarshalJSON() ([]byte, error)
type TimeOfDay ¶
type TimeOfDay struct {
// Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0
// and typically must be less than or equal to 23. An API may choose to allow
// the value "24:00:00" for scenarios like business closing time.
Hours int64 `json:"hours,omitempty"`
// Minutes: Minutes of an hour. Must be greater than or equal to 0 and less
// than or equal to 59.
Minutes int64 `json:"minutes,omitempty"`
// Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal
// to 0 and less than or equal to 999,999,999.
Nanos int64 `json:"nanos,omitempty"`
// Seconds: Seconds of a minute. Must be greater than or equal to 0 and
// typically must be less than or equal to 59. An API may allow the value 60 if
// it allows leap-seconds.
Seconds int64 `json:"seconds,omitempty"`
// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Hours") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeOfDay: Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
func (TimeOfDay) MarshalJSON ¶
type TimeZone ¶
type TimeZone struct {
// Id: IANA Time Zone Database time zone. For example "America/New_York".
Id string `json:"id,omitempty"`
// Version: Optional. IANA Time Zone Database version number. For example
// "2019a".
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).
func (TimeZone) MarshalJSON ¶
type TotalCaloriesRollupValue ¶
type TotalCaloriesRollupValue struct {
// KcalSum: Sum of the total calories in kilocalories.
KcalSum float64 `json:"kcalSum,omitempty"`
// ForceSendFields is a list of field names (e.g. "KcalSum") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "KcalSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TotalCaloriesRollupValue: Represents the result of the rollup of the user's total calories. Note: Queries for the `total-calories` data type must include a time interval filter (such as `total_calories.interval.start_time` or `total_calories.interval.civil_start_time`). The maximum range is 14 days. Example filter query: `total_calories.interval.start_time >= "2026-04-20T00:00:00Z" AND total_calories.interval.start_time < "2026-04-21T00:00:00Z"
func (TotalCaloriesRollupValue) MarshalJSON ¶
func (s TotalCaloriesRollupValue) MarshalJSON() ([]byte, error)
func (*TotalCaloriesRollupValue) UnmarshalJSON ¶
func (s *TotalCaloriesRollupValue) UnmarshalJSON(data []byte) error
type UsersDataTypesDataPointsBatchDeleteCall ¶
type UsersDataTypesDataPointsBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsBatchDeleteCall) Context ¶
func (c *UsersDataTypesDataPointsBatchDeleteCall) Context(ctx context.Context) *UsersDataTypesDataPointsBatchDeleteCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsBatchDeleteCall) Do ¶
func (c *UsersDataTypesDataPointsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.users.dataTypes.dataPoints.batchDelete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsBatchDeleteCall) Fields ¶
func (c *UsersDataTypesDataPointsBatchDeleteCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsBatchDeleteCall) Header ¶
func (c *UsersDataTypesDataPointsBatchDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type UsersDataTypesDataPointsCreateCall ¶
type UsersDataTypesDataPointsCreateCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsCreateCall) Context ¶
func (c *UsersDataTypesDataPointsCreateCall) Context(ctx context.Context) *UsersDataTypesDataPointsCreateCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsCreateCall) Do ¶
func (c *UsersDataTypesDataPointsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.users.dataTypes.dataPoints.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsCreateCall) Fields ¶
func (c *UsersDataTypesDataPointsCreateCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsCreateCall) Header ¶
func (c *UsersDataTypesDataPointsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type UsersDataTypesDataPointsDailyRollUpCall ¶
type UsersDataTypesDataPointsDailyRollUpCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsDailyRollUpCall) Context ¶
func (c *UsersDataTypesDataPointsDailyRollUpCall) Context(ctx context.Context) *UsersDataTypesDataPointsDailyRollUpCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsDailyRollUpCall) Do ¶
func (c *UsersDataTypesDataPointsDailyRollUpCall) Do(opts ...googleapi.CallOption) (*DailyRollUpDataPointsResponse, error)
Do executes the "health.users.dataTypes.dataPoints.dailyRollUp" call. Any non-2xx status code is an error. Response headers are in either *DailyRollUpDataPointsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsDailyRollUpCall) Fields ¶
func (c *UsersDataTypesDataPointsDailyRollUpCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsDailyRollUpCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsDailyRollUpCall) Header ¶
func (c *UsersDataTypesDataPointsDailyRollUpCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type UsersDataTypesDataPointsExportExerciseTcxCall ¶
type UsersDataTypesDataPointsExportExerciseTcxCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsExportExerciseTcxCall) Context ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Context(ctx context.Context) *UsersDataTypesDataPointsExportExerciseTcxCall
Context sets the context to be used in this call's Do and Download methods.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) Do ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Do(opts ...googleapi.CallOption) (*ExportExerciseTcxResponse, error)
Do executes the "health.users.dataTypes.dataPoints.exportExerciseTcx" call. Any non-2xx status code is an error. Response headers are in either *ExportExerciseTcxResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) Download ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) Fields ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsExportExerciseTcxCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) Header ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) IfNoneMatch ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsExportExerciseTcxCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UsersDataTypesDataPointsExportExerciseTcxCall) PartialData ¶
func (c *UsersDataTypesDataPointsExportExerciseTcxCall) PartialData(partialData bool) *UsersDataTypesDataPointsExportExerciseTcxCall
PartialData sets the optional parameter "partialData": Indicates whether to include the TCX data points when the GPS data is not available. If not specified, defaults to `false` and partial data will not be included.
type UsersDataTypesDataPointsGetCall ¶ added in v0.277.0
type UsersDataTypesDataPointsGetCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsGetCall) Context ¶ added in v0.277.0
func (c *UsersDataTypesDataPointsGetCall) Context(ctx context.Context) *UsersDataTypesDataPointsGetCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsGetCall) Do ¶ added in v0.277.0
func (c *UsersDataTypesDataPointsGetCall) Do(opts ...googleapi.CallOption) (*DataPoint, error)
Do executes the "health.users.dataTypes.dataPoints.get" call. Any non-2xx status code is an error. Response headers are in either *DataPoint.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsGetCall) Fields ¶ added in v0.277.0
func (c *UsersDataTypesDataPointsGetCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsGetCall) Header ¶ added in v0.277.0
func (c *UsersDataTypesDataPointsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersDataTypesDataPointsGetCall) IfNoneMatch ¶ added in v0.277.0
func (c *UsersDataTypesDataPointsGetCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersDataTypesDataPointsListCall ¶
type UsersDataTypesDataPointsListCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsListCall) Context ¶
func (c *UsersDataTypesDataPointsListCall) Context(ctx context.Context) *UsersDataTypesDataPointsListCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsListCall) Do ¶
func (c *UsersDataTypesDataPointsListCall) Do(opts ...googleapi.CallOption) (*ListDataPointsResponse, error)
Do executes the "health.users.dataTypes.dataPoints.list" call. Any non-2xx status code is an error. Response headers are in either *ListDataPointsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsListCall) Fields ¶
func (c *UsersDataTypesDataPointsListCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsListCall) Filter ¶
func (c *UsersDataTypesDataPointsListCall) Filter(filter string) *UsersDataTypesDataPointsListCall
Filter sets the optional parameter "filter": Filter expression following https://google.aip.dev/160. A time range (either physical or civil) can be specified. The supported filter fields are: - Interval start time: - Pattern: `{interval_data_type}.interval.start_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time >= "2023-11-24T00:00:00Z" AND steps.interval.start_time < "2023-11-25T00:00:00Z" - `distance.interval.start_time >= "2024-08-14T12:34:56Z" - Interval civil start time: - Pattern: `{interval_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `steps.interval.civil_start_time >= "2023-11-24" AND steps.interval.civil_start_time < "2023-11-25" - `distance.interval.civil_start_time >= "2024-08-14T12:34:56" - Sample observation physical time: - Pattern: `{sample_data_type}.sample_time.physical_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time >= "2023-11-24T00:00:00Z" AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z" - `weight.sample_time.physical_time >= "2024-08-14T12:34:56Z" - Sample observation civil time: - Pattern: `{sample_data_type}.sample_time.civil_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `weight.sample_time.civil_time >= "2023-11-24" AND weight.sample_time.civil_time < "2023-11-25" - `weight.sample_time.civil_time >= "2024-08-14T12:34:56" - Daily summary date: - Pattern: `{daily_summary_data_type}.date` - Supported comparison operators: `>=`, `<` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date < "2024-08-15" - Session civil start time (**Excluding Sleep and ECG**): - Pattern: `{session_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `exercise.interval.civil_start_time >= "2023-11-24" AND exercise.interval.civil_start_time < "2023-11-25" - `exercise.interval.civil_start_time >= "2024-08-14T12:34:56" - Session start time (**ECG specific**): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `>=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time >= "2024-08-14T12:34:56Z" - Note: Only filtering by start time is supported for ECG. Filtering by end time (e.g., `electrocardiogram.interval.end_time`) is not supported. - Session end time (**Sleep specific**): - Pattern: `sleep.interval.end_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND sleep.interval.end_time < "2023-11-25T00:00:00Z" - Session civil end time (**Sleep specific**): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.civil_end_time >= "2023-11-24" AND sleep.interval.civil_end_time < "2023-11-25" Data points in the response will be ordered by the interval start time in descending order.
func (*UsersDataTypesDataPointsListCall) Header ¶
func (c *UsersDataTypesDataPointsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersDataTypesDataPointsListCall) IfNoneMatch ¶
func (c *UsersDataTypesDataPointsListCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UsersDataTypesDataPointsListCall) PageSize ¶
func (c *UsersDataTypesDataPointsListCall) PageSize(pageSize int64) *UsersDataTypesDataPointsListCall
PageSize sets the optional parameter "pageSize": The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
func (*UsersDataTypesDataPointsListCall) PageToken ¶
func (c *UsersDataTypesDataPointsListCall) PageToken(pageToken string) *UsersDataTypesDataPointsListCall
PageToken sets the optional parameter "pageToken": The `next_page_token` from a previous request, if any.
func (*UsersDataTypesDataPointsListCall) Pages ¶
func (c *UsersDataTypesDataPointsListCall) Pages(ctx context.Context, f func(*ListDataPointsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type UsersDataTypesDataPointsPatchCall ¶
type UsersDataTypesDataPointsPatchCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsPatchCall) Context ¶
func (c *UsersDataTypesDataPointsPatchCall) Context(ctx context.Context) *UsersDataTypesDataPointsPatchCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsPatchCall) Do ¶
func (c *UsersDataTypesDataPointsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "health.users.dataTypes.dataPoints.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsPatchCall) Fields ¶
func (c *UsersDataTypesDataPointsPatchCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsPatchCall) Header ¶
func (c *UsersDataTypesDataPointsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type UsersDataTypesDataPointsReconcileCall ¶
type UsersDataTypesDataPointsReconcileCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsReconcileCall) Context ¶
func (c *UsersDataTypesDataPointsReconcileCall) Context(ctx context.Context) *UsersDataTypesDataPointsReconcileCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsReconcileCall) DataSourceFamily ¶
func (c *UsersDataTypesDataPointsReconcileCall) DataSourceFamily(dataSourceFamily string) *UsersDataTypesDataPointsReconcileCall
DataSourceFamily sets the optional parameter "dataSourceFamily": The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/me/dataSourceFamilies/{data_source_family}` - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect.
func (*UsersDataTypesDataPointsReconcileCall) Do ¶
func (c *UsersDataTypesDataPointsReconcileCall) Do(opts ...googleapi.CallOption) (*ReconcileDataPointsResponse, error)
Do executes the "health.users.dataTypes.dataPoints.reconcile" call. Any non-2xx status code is an error. Response headers are in either *ReconcileDataPointsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsReconcileCall) Fields ¶
func (c *UsersDataTypesDataPointsReconcileCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsReconcileCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsReconcileCall) Filter ¶
func (c *UsersDataTypesDataPointsReconcileCall) Filter(filter string) *UsersDataTypesDataPointsReconcileCall
Filter sets the optional parameter "filter": Filter expression based on https://aip.dev/160. A time range, either physical or civil, can be specified. See the ListDataPointsRequest.filter for the supported fields and syntax.
func (*UsersDataTypesDataPointsReconcileCall) Header ¶
func (c *UsersDataTypesDataPointsReconcileCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersDataTypesDataPointsReconcileCall) IfNoneMatch ¶
func (c *UsersDataTypesDataPointsReconcileCall) IfNoneMatch(entityTag string) *UsersDataTypesDataPointsReconcileCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UsersDataTypesDataPointsReconcileCall) PageSize ¶
func (c *UsersDataTypesDataPointsReconcileCall) PageSize(pageSize int64) *UsersDataTypesDataPointsReconcileCall
PageSize sets the optional parameter "pageSize": The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
func (*UsersDataTypesDataPointsReconcileCall) PageToken ¶
func (c *UsersDataTypesDataPointsReconcileCall) PageToken(pageToken string) *UsersDataTypesDataPointsReconcileCall
PageToken sets the optional parameter "pageToken": The `next_page_token` from a previous request, if any.
func (*UsersDataTypesDataPointsReconcileCall) Pages ¶
func (c *UsersDataTypesDataPointsReconcileCall) Pages(ctx context.Context, f func(*ReconcileDataPointsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type UsersDataTypesDataPointsRollUpCall ¶
type UsersDataTypesDataPointsRollUpCall struct {
// contains filtered or unexported fields
}
func (*UsersDataTypesDataPointsRollUpCall) Context ¶
func (c *UsersDataTypesDataPointsRollUpCall) Context(ctx context.Context) *UsersDataTypesDataPointsRollUpCall
Context sets the context to be used in this call's Do method.
func (*UsersDataTypesDataPointsRollUpCall) Do ¶
func (c *UsersDataTypesDataPointsRollUpCall) Do(opts ...googleapi.CallOption) (*RollUpDataPointsResponse, error)
Do executes the "health.users.dataTypes.dataPoints.rollUp" call. Any non-2xx status code is an error. Response headers are in either *RollUpDataPointsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersDataTypesDataPointsRollUpCall) Fields ¶
func (c *UsersDataTypesDataPointsRollUpCall) Fields(s ...googleapi.Field) *UsersDataTypesDataPointsRollUpCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersDataTypesDataPointsRollUpCall) Header ¶
func (c *UsersDataTypesDataPointsRollUpCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersDataTypesDataPointsRollUpCall) Pages ¶
func (c *UsersDataTypesDataPointsRollUpCall) Pages(ctx context.Context, f func(*RollUpDataPointsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type UsersDataTypesDataPointsService ¶
type UsersDataTypesDataPointsService struct {
// contains filtered or unexported fields
}
func NewUsersDataTypesDataPointsService ¶
func NewUsersDataTypesDataPointsService(s *Service) *UsersDataTypesDataPointsService
func (*UsersDataTypesDataPointsService) BatchDelete ¶
func (r *UsersDataTypesDataPointsService) BatchDelete(parent string, batchdeletedatapointsrequest *BatchDeleteDataPointsRequest) *UsersDataTypesDataPointsBatchDeleteCall
BatchDelete: Delete a batch of identifyable data points.
- parent: Optional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a list of the supported data types see the DataPoint data union field. Deleting data points across multiple data type collections is supported following https://aip.dev/159. If this is set, the parent of all of the data points specified in `names` must match this field.
func (*UsersDataTypesDataPointsService) Create ¶
func (r *UsersDataTypesDataPointsService) Create(parent string, datapoint *DataPoint) *UsersDataTypesDataPointsCreateCall
Create: Creates a single identifiable data point.
- parent: The parent resource name where the data point will be created. Format: `users/{user}/dataTypes/{data_type}`.
func (*UsersDataTypesDataPointsService) DailyRollUp ¶
func (r *UsersDataTypesDataPointsService) DailyRollUp(parent string, dailyrollupdatapointsrequest *DailyRollUpDataPointsRequest) *UsersDataTypesDataPointsDailyRollUpCall
DailyRollUp: Roll up data points over civil time intervals for supported data types.
- parent: Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/distance` For a list of the supported data types see the DailyRollupDataPoint value union field.
func (*UsersDataTypesDataPointsService) ExportExerciseTcx ¶
func (r *UsersDataTypesDataPointsService) ExportExerciseTcx(name string) *UsersDataTypesDataPointsExportExerciseTcxCall
ExportExerciseTcx: Exports exercise data in TCX format. **IMPORTANT:** HTTP clients must append `?alt=media` to the request URL to download the raw TCX file. Example: `https://health.googleapis.com/v4/users/me/dataTypes/exercise/dataPoints/EXER CISE_ID:exportExerciseTcx?alt=media` Without `alt=media`, the server returns a JSON response (`ExportExerciseTcxResponse`) which is intended primarily for gRPC clients. **Note:** While the Authorization section below states that any one of the listed scopes is accepted, this specific method requires the user to provide both one of the `activity_and_fitness` scopes (`normal` or `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in their access token to succeed.
- name: The resource name of the exercise data point to export. Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias "me" currently. Future versions may support user IDs. The `{data_point}` ID maps to the exercise ID, which is a long integer.
func (*UsersDataTypesDataPointsService) Get ¶ added in v0.277.0
func (r *UsersDataTypesDataPointsService) Get(name string) *UsersDataTypesDataPointsGetCall
Get: Get a single identifyable data point.
- name: The name of the data point to retrieve. Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for examples and possible values.
func (*UsersDataTypesDataPointsService) List ¶
func (r *UsersDataTypesDataPointsService) List(parent string) *UsersDataTypesDataPointsListCall
List: Query user health and fitness data points.
- parent: Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the supported data types see the DataPoint data union field.
func (*UsersDataTypesDataPointsService) Patch ¶
func (r *UsersDataTypesDataPointsService) Patch(nameid string, datapoint *DataPoint) *UsersDataTypesDataPointsPatchCall
Patch: Updates a single identifiable data point. If a data point with the specified `name` is not found, the request will fail.
- name: Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890ab cdef` The `{user}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
func (*UsersDataTypesDataPointsService) Reconcile ¶
func (r *UsersDataTypesDataPointsService) Reconcile(parent string) *UsersDataTypesDataPointsReconcileCall
Reconcile: Reconcile data points from multiple data sources into a single data stream.
- parent: Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/heart-rate` For a list of the supported data types see the DataPoint data union field.
func (*UsersDataTypesDataPointsService) RollUp ¶
func (r *UsersDataTypesDataPointsService) RollUp(parent string, rollupdatapointsrequest *RollUpDataPointsRequest) *UsersDataTypesDataPointsRollUpCall
RollUp: Roll up data points over physical time intervals for supported data types.
- parent: Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/distance` For a list of the supported data types see the RollupDataPoint value union field.
type UsersDataTypesService ¶
type UsersDataTypesService struct {
DataPoints *UsersDataTypesDataPointsService
// contains filtered or unexported fields
}
func NewUsersDataTypesService ¶
func NewUsersDataTypesService(s *Service) *UsersDataTypesService
type UsersGetIdentityCall ¶
type UsersGetIdentityCall struct {
// contains filtered or unexported fields
}
func (*UsersGetIdentityCall) Context ¶
func (c *UsersGetIdentityCall) Context(ctx context.Context) *UsersGetIdentityCall
Context sets the context to be used in this call's Do method.
func (*UsersGetIdentityCall) Do ¶
func (c *UsersGetIdentityCall) Do(opts ...googleapi.CallOption) (*Identity, error)
Do executes the "health.users.getIdentity" call. Any non-2xx status code is an error. Response headers are in either *Identity.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGetIdentityCall) Fields ¶
func (c *UsersGetIdentityCall) Fields(s ...googleapi.Field) *UsersGetIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersGetIdentityCall) Header ¶
func (c *UsersGetIdentityCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersGetIdentityCall) IfNoneMatch ¶
func (c *UsersGetIdentityCall) IfNoneMatch(entityTag string) *UsersGetIdentityCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersGetIrnProfileCall ¶ added in v0.283.0
type UsersGetIrnProfileCall struct {
// contains filtered or unexported fields
}
func (*UsersGetIrnProfileCall) Context ¶ added in v0.283.0
func (c *UsersGetIrnProfileCall) Context(ctx context.Context) *UsersGetIrnProfileCall
Context sets the context to be used in this call's Do method.
func (*UsersGetIrnProfileCall) Do ¶ added in v0.283.0
func (c *UsersGetIrnProfileCall) Do(opts ...googleapi.CallOption) (*IrnProfile, error)
Do executes the "health.users.getIrnProfile" call. Any non-2xx status code is an error. Response headers are in either *IrnProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGetIrnProfileCall) Fields ¶ added in v0.283.0
func (c *UsersGetIrnProfileCall) Fields(s ...googleapi.Field) *UsersGetIrnProfileCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersGetIrnProfileCall) Header ¶ added in v0.283.0
func (c *UsersGetIrnProfileCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersGetIrnProfileCall) IfNoneMatch ¶ added in v0.283.0
func (c *UsersGetIrnProfileCall) IfNoneMatch(entityTag string) *UsersGetIrnProfileCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersGetProfileCall ¶
type UsersGetProfileCall struct {
// contains filtered or unexported fields
}
func (*UsersGetProfileCall) Context ¶
func (c *UsersGetProfileCall) Context(ctx context.Context) *UsersGetProfileCall
Context sets the context to be used in this call's Do method.
func (*UsersGetProfileCall) Do ¶
func (c *UsersGetProfileCall) Do(opts ...googleapi.CallOption) (*Profile, error)
Do executes the "health.users.getProfile" call. Any non-2xx status code is an error. Response headers are in either *Profile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGetProfileCall) Fields ¶
func (c *UsersGetProfileCall) Fields(s ...googleapi.Field) *UsersGetProfileCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersGetProfileCall) Header ¶
func (c *UsersGetProfileCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersGetProfileCall) IfNoneMatch ¶
func (c *UsersGetProfileCall) IfNoneMatch(entityTag string) *UsersGetProfileCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersGetSettingsCall ¶
type UsersGetSettingsCall struct {
// contains filtered or unexported fields
}
func (*UsersGetSettingsCall) Context ¶
func (c *UsersGetSettingsCall) Context(ctx context.Context) *UsersGetSettingsCall
Context sets the context to be used in this call's Do method.
func (*UsersGetSettingsCall) Do ¶
func (c *UsersGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error)
Do executes the "health.users.getSettings" call. Any non-2xx status code is an error. Response headers are in either *Settings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGetSettingsCall) Fields ¶
func (c *UsersGetSettingsCall) Fields(s ...googleapi.Field) *UsersGetSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersGetSettingsCall) Header ¶
func (c *UsersGetSettingsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersGetSettingsCall) IfNoneMatch ¶
func (c *UsersGetSettingsCall) IfNoneMatch(entityTag string) *UsersGetSettingsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersPairedDevicesGetCall ¶ added in v0.283.0
type UsersPairedDevicesGetCall struct {
// contains filtered or unexported fields
}
func (*UsersPairedDevicesGetCall) Context ¶ added in v0.283.0
func (c *UsersPairedDevicesGetCall) Context(ctx context.Context) *UsersPairedDevicesGetCall
Context sets the context to be used in this call's Do method.
func (*UsersPairedDevicesGetCall) Do ¶ added in v0.283.0
func (c *UsersPairedDevicesGetCall) Do(opts ...googleapi.CallOption) (*PairedDevice, error)
Do executes the "health.users.pairedDevices.get" call. Any non-2xx status code is an error. Response headers are in either *PairedDevice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersPairedDevicesGetCall) Fields ¶ added in v0.283.0
func (c *UsersPairedDevicesGetCall) Fields(s ...googleapi.Field) *UsersPairedDevicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersPairedDevicesGetCall) Header ¶ added in v0.283.0
func (c *UsersPairedDevicesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersPairedDevicesGetCall) IfNoneMatch ¶ added in v0.283.0
func (c *UsersPairedDevicesGetCall) IfNoneMatch(entityTag string) *UsersPairedDevicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type UsersPairedDevicesListCall ¶ added in v0.283.0
type UsersPairedDevicesListCall struct {
// contains filtered or unexported fields
}
func (*UsersPairedDevicesListCall) Context ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) Context(ctx context.Context) *UsersPairedDevicesListCall
Context sets the context to be used in this call's Do method.
func (*UsersPairedDevicesListCall) Do ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) Do(opts ...googleapi.CallOption) (*ListPairedDevicesResponse, error)
Do executes the "health.users.pairedDevices.list" call. Any non-2xx status code is an error. Response headers are in either *ListPairedDevicesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersPairedDevicesListCall) Fields ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) Fields(s ...googleapi.Field) *UsersPairedDevicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersPairedDevicesListCall) Header ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersPairedDevicesListCall) IfNoneMatch ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) IfNoneMatch(entityTag string) *UsersPairedDevicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*UsersPairedDevicesListCall) PageSize ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) PageSize(pageSize int64) *UsersPairedDevicesListCall
PageSize sets the optional parameter "pageSize": The maximum number of devices to return. The service may return fewer than this value. If unspecified, at most 5 devices will be returned. The maximum value is 100. values above 100 will be coerced to 100.
func (*UsersPairedDevicesListCall) PageToken ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) PageToken(pageToken string) *UsersPairedDevicesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListPairedDevices` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPairedDevices` must match the call that provided the page token.
func (*UsersPairedDevicesListCall) Pages ¶ added in v0.283.0
func (c *UsersPairedDevicesListCall) Pages(ctx context.Context, f func(*ListPairedDevicesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type UsersPairedDevicesService ¶ added in v0.283.0
type UsersPairedDevicesService struct {
// contains filtered or unexported fields
}
func NewUsersPairedDevicesService ¶ added in v0.283.0
func NewUsersPairedDevicesService(s *Service) *UsersPairedDevicesService
func (*UsersPairedDevicesService) Get ¶ added in v0.283.0
func (r *UsersPairedDevicesService) Get(name string) *UsersPairedDevicesGetCall
Get: Returns user's Device.
- name: The name of the device to retrieve. Format: users/{user}/devices/{device}.
func (*UsersPairedDevicesService) List ¶ added in v0.283.0
func (r *UsersPairedDevicesService) List(parent string) *UsersPairedDevicesListCall
List: Returns the user's list of paired 1P trackers and smartwatches.
- parent: The parent, which owns this collection of devices. Format: users/{user}.
type UsersService ¶
type UsersService struct {
DataTypes *UsersDataTypesService
PairedDevices *UsersPairedDevicesService
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(s *Service) *UsersService
func (*UsersService) GetIdentity ¶
func (r *UsersService) GetIdentity(name string) *UsersGetIdentityCall
GetIdentity: Gets the user's identity. It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
- name: The resource name of the Identity. Format: `users/me/identity`.
func (*UsersService) GetIrnProfile ¶ added in v0.283.0
func (r *UsersService) GetIrnProfile(name string) *UsersGetIrnProfileCall
GetIrnProfile: Returns user's IRN Profile details.
- name: The resource name of the IRN Profile. Format: `users/{user}/irnProfile` Example: `users/1234567890/irnProfile` or `users/me/irnProfile` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
func (*UsersService) GetProfile ¶
func (r *UsersService) GetProfile(name string) *UsersGetProfileCall
GetProfile: Returns user Profile details.
- name: The name of the Profile. Format: `users/me/profile`.
func (*UsersService) GetSettings ¶
func (r *UsersService) GetSettings(name string) *UsersGetSettingsCall
GetSettings: Returns user settings details.
- name: The name of the Settings. Format: `users/me/settings`.
func (*UsersService) UpdateProfile ¶
func (r *UsersService) UpdateProfile(name string, profile *Profile) *UsersUpdateProfileCall
UpdateProfile: Updates the user's profile details.
- name: Identifier. The resource name of this Profile resource. Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
func (*UsersService) UpdateSettings ¶
func (r *UsersService) UpdateSettings(name string, settings *Settings) *UsersUpdateSettingsCall
UpdateSettings: Updates the user's settings details.
- name: Identifier. The resource name of this Settings resource. Format: `users/{user}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
type UsersUpdateProfileCall ¶
type UsersUpdateProfileCall struct {
// contains filtered or unexported fields
}
func (*UsersUpdateProfileCall) Context ¶
func (c *UsersUpdateProfileCall) Context(ctx context.Context) *UsersUpdateProfileCall
Context sets the context to be used in this call's Do method.
func (*UsersUpdateProfileCall) Do ¶
func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*Profile, error)
Do executes the "health.users.updateProfile" call. Any non-2xx status code is an error. Response headers are in either *Profile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersUpdateProfileCall) Fields ¶
func (c *UsersUpdateProfileCall) Fields(s ...googleapi.Field) *UsersUpdateProfileCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersUpdateProfileCall) Header ¶
func (c *UsersUpdateProfileCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersUpdateProfileCall) UpdateMask ¶
func (c *UsersUpdateProfileCall) UpdateMask(updateMask string) *UsersUpdateProfileCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
type UsersUpdateSettingsCall ¶
type UsersUpdateSettingsCall struct {
// contains filtered or unexported fields
}
func (*UsersUpdateSettingsCall) Context ¶
func (c *UsersUpdateSettingsCall) Context(ctx context.Context) *UsersUpdateSettingsCall
Context sets the context to be used in this call's Do method.
func (*UsersUpdateSettingsCall) Do ¶
func (c *UsersUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error)
Do executes the "health.users.updateSettings" call. Any non-2xx status code is an error. Response headers are in either *Settings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersUpdateSettingsCall) Fields ¶
func (c *UsersUpdateSettingsCall) Fields(s ...googleapi.Field) *UsersUpdateSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*UsersUpdateSettingsCall) Header ¶
func (c *UsersUpdateSettingsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*UsersUpdateSettingsCall) UpdateMask ¶
func (c *UsersUpdateSettingsCall) UpdateMask(updateMask string) *UsersUpdateSettingsCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
type VO2Max ¶
type VO2Max struct {
// MeasurementMethod: Optional. The method used to measure the VO2 max value.
//
// Possible values:
// "MEASUREMENT_METHOD_UNSPECIFIED" - Unspecified measurement method.
// "FITBIT_RUN" - Fitbit specific, measures VO2 max rate during a run.
// "GOOGLE_DEMOGRAPHIC" - Google specific, measures VO2 max rate for a user
// based on their demographic data.
// "COOPER_TEST" - Run as far as possible for 12 minutes. Distance correlated
// with age and gender translates to a VO2 max value.
// "HEART_RATE_RATIO" - Maximum heart rate divided by the resting heart rate,
// with a multiplier applied. Does not require any exercise.
// "METABOLIC_CART" - Measured by a medical device called metabolic cart.
// "MULTISTAGE_FITNESS_TEST" - Continuous 20m back-and-forth runs with
// increasing difficulty, until exhaustion.
// "ROCKPORT_FITNESS_TEST" - Measured using walking exercise.
// "MAX_EXERCISE" - Healthkit specific, measures VO2 max rate by monitoring
// exercise to the user’s physical limit. Similar to COOPER_TEST or
// MULTISTAGE_FITNESS_TEST.
// "PREDICTION_SUB_MAX_EXERCISE" - Healthkit specific, estimates VO2 max rate
// based on low-intensity exercise. Similar to ROCKPORT_FITNESS_TEST.
// "PREDICTION_NON_EXERCISE" - Healthkit specific, estimates VO2 max rate
// without any exercise. Similar to HEART_RATE_RATIO.
// "OTHER" - Use when the method is not covered in this enum.
MeasurementMethod string `json:"measurementMethod,omitempty"`
// SampleTime: Required. The time at which VO2 max was measured.
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// Vo2Max: Required. VO2 max value measured as in ml consumed oxygen / kg of
// body weight / min.
Vo2Max float64 `json:"vo2Max,omitempty"`
// ForceSendFields is a list of field names (e.g. "MeasurementMethod") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MeasurementMethod") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
VO2Max: VO2 max measurement.
func (VO2Max) MarshalJSON ¶
func (*VO2Max) UnmarshalJSON ¶
type VolumeQuantity ¶
type VolumeQuantity struct {
// Milliliters: Required. Value representing the volume in milliliters.
Milliliters float64 `json:"milliliters,omitempty"`
// UserProvidedUnit: Optional. Value representing the user provided unit, used
// only for user-facing input and display purposes. In the API format, all
// volume quantities are converted to milliliters.
//
// Possible values:
// "VOLUME_UNIT_UNSPECIFIED" - Unspecified volume unit.
// "CUP_IMPERIAL" - Cup (imperial)
// "CUP_US" - Cup (US)
// "FLUID_OUNCE_IMPERIAL" - Fluid ounce (imperial)
// "FLUID_OUNCE_US" - Fluid ounce (US)
// "LITER" - Liter
// "MILLILITER" - Milliliter
// "PINT_IMPERIAL" - Pint (imperial)
// "PINT_US" - Pint (US)
UserProvidedUnit string `json:"userProvidedUnit,omitempty"`
// ForceSendFields is a list of field names (e.g. "Milliliters") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Milliliters") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
VolumeQuantity: Represents the volume quantity.
func (VolumeQuantity) MarshalJSON ¶
func (s VolumeQuantity) MarshalJSON() ([]byte, error)
func (*VolumeQuantity) UnmarshalJSON ¶
func (s *VolumeQuantity) UnmarshalJSON(data []byte) error
type VolumeQuantityRollup ¶
type VolumeQuantityRollup struct {
// MillilitersSum: Required. The sum of volume in milliliters.
MillilitersSum float64 `json:"millilitersSum,omitempty"`
// UserProvidedUnitLast: Optional. The user provided unit on the last element.
//
// Possible values:
// "VOLUME_UNIT_UNSPECIFIED" - Unspecified volume unit.
// "CUP_IMPERIAL" - Cup (imperial)
// "CUP_US" - Cup (US)
// "FLUID_OUNCE_IMPERIAL" - Fluid ounce (imperial)
// "FLUID_OUNCE_US" - Fluid ounce (US)
// "LITER" - Liter
// "MILLILITER" - Milliliter
// "PINT_IMPERIAL" - Pint (imperial)
// "PINT_US" - Pint (US)
UserProvidedUnitLast string `json:"userProvidedUnitLast,omitempty"`
// ForceSendFields is a list of field names (e.g. "MillilitersSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MillilitersSum") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
VolumeQuantityRollup: Rollup for volume quantity.
func (VolumeQuantityRollup) MarshalJSON ¶
func (s VolumeQuantityRollup) MarshalJSON() ([]byte, error)
func (*VolumeQuantityRollup) UnmarshalJSON ¶
func (s *VolumeQuantityRollup) UnmarshalJSON(data []byte) error
type Weight ¶
type Weight struct {
// Notes: Optional. Standard free-form notes captured at manual logging.
Notes string `json:"notes,omitempty"`
// SampleTime: Required. The time at which the weight was measured
SampleTime *ObservationSampleTime `json:"sampleTime,omitempty"`
// WeightGrams: Required. Weight of a user in grams.
WeightGrams float64 `json:"weightGrams,omitempty"`
// ForceSendFields is a list of field names (e.g. "Notes") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Notes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Weight: Body weight measurement.
func (Weight) MarshalJSON ¶
func (*Weight) UnmarshalJSON ¶
type WeightQuantity ¶ added in v0.283.0
type WeightQuantity struct {
// Grams: Required. The weight value in grams.
Grams float64 `json:"grams,omitempty"`
// UserProvidedUnit: Optional. Value representing the user provided unit.
//
// Possible values:
// "WEIGHT_UNIT_UNSPECIFIED" - Unspecified weight unit.
// "GRAM" - Value representing gram.
// "KILOGRAM" - Value representing kilogram.
// "OUNCE" - Value representing ounce.
// "POUND" - Value representing pound.
// "STONE" - Value representing stone.
// "MILLIGRAM" - Value representing milligram.
// "MICROGRAM" - Value representing microgram.
// "NANOGRAM" - Value representing nanogram.
UserProvidedUnit string `json:"userProvidedUnit,omitempty"`
// ForceSendFields is a list of field names (e.g. "Grams") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Grams") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WeightQuantity: Represents the weight quantity.
func (WeightQuantity) MarshalJSON ¶ added in v0.283.0
func (s WeightQuantity) MarshalJSON() ([]byte, error)
func (*WeightQuantity) UnmarshalJSON ¶ added in v0.283.0
func (s *WeightQuantity) UnmarshalJSON(data []byte) error
type WeightQuantityRollup ¶ added in v0.283.0
type WeightQuantityRollup struct {
// GramsSum: Required. The sum of the weight in grams.
GramsSum float64 `json:"gramsSum,omitempty"`
// UserProvidedUnitLast: Optional. The user provided unit on the last element.
//
// Possible values:
// "WEIGHT_UNIT_UNSPECIFIED" - Unspecified weight unit.
// "GRAM" - Value representing gram.
// "KILOGRAM" - Value representing kilogram.
// "OUNCE" - Value representing ounce.
// "POUND" - Value representing pound.
// "STONE" - Value representing stone.
// "MILLIGRAM" - Value representing milligram.
// "MICROGRAM" - Value representing microgram.
// "NANOGRAM" - Value representing nanogram.
UserProvidedUnitLast string `json:"userProvidedUnitLast,omitempty"`
// ForceSendFields is a list of field names (e.g. "GramsSum") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GramsSum") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WeightQuantityRollup: Rollup for the weight.
func (WeightQuantityRollup) MarshalJSON ¶ added in v0.283.0
func (s WeightQuantityRollup) MarshalJSON() ([]byte, error)
func (*WeightQuantityRollup) UnmarshalJSON ¶ added in v0.283.0
func (s *WeightQuantityRollup) UnmarshalJSON(data []byte) error
type WeightRollupValue ¶
type WeightRollupValue struct {
// WeightGramsAvg: Average weight in grams.
WeightGramsAvg float64 `json:"weightGramsAvg,omitempty"`
// ForceSendFields is a list of field names (e.g. "WeightGramsAvg") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "WeightGramsAvg") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WeightRollupValue: Represents the result of the rollup of the weight data type.
func (WeightRollupValue) MarshalJSON ¶
func (s WeightRollupValue) MarshalJSON() ([]byte, error)
func (*WeightRollupValue) UnmarshalJSON ¶
func (s *WeightRollupValue) UnmarshalJSON(data []byte) error