Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + const FitnessActivityReadScope + const FitnessActivityWriteScope + const FitnessBloodGlucoseReadScope + const FitnessBloodGlucoseWriteScope + const FitnessBloodPressureReadScope + const FitnessBloodPressureWriteScope + const FitnessBodyReadScope + const FitnessBodyTemperatureReadScope + const FitnessBodyTemperatureWriteScope + const FitnessBodyWriteScope + const FitnessHeartRateReadScope + const FitnessHeartRateWriteScope + const FitnessLocationReadScope + const FitnessLocationWriteScope + const FitnessNutritionReadScope + const FitnessNutritionWriteScope + const FitnessOxygenSaturationReadScope + const FitnessOxygenSaturationWriteScope + const FitnessReproductiveHealthReadScope + const FitnessReproductiveHealthWriteScope + const FitnessSleepReadScope + const FitnessSleepWriteScope + type AggregateBucket struct + Activity int64 + Dataset []*Dataset + EndTimeMillis int64 + ForceSendFields []string + NullFields []string + Session *Session + StartTimeMillis int64 + Type string + func (s *AggregateBucket) MarshalJSON() ([]byte, error) + type AggregateBy struct + DataSourceId string + DataTypeName string + ForceSendFields []string + NullFields []string + func (s *AggregateBy) MarshalJSON() ([]byte, error) + type AggregateRequest struct + AggregateBy []*AggregateBy + BucketByActivitySegment *BucketByActivity + BucketByActivityType *BucketByActivity + BucketBySession *BucketBySession + BucketByTime *BucketByTime + EndTimeMillis int64 + FilteredDataQualityStandard []string + ForceSendFields []string + NullFields []string + StartTimeMillis int64 + func (s *AggregateRequest) MarshalJSON() ([]byte, error) + type AggregateResponse struct + Bucket []*AggregateBucket + ForceSendFields []string + NullFields []string + func (s *AggregateResponse) MarshalJSON() ([]byte, error) + type Application struct + DetailsUrl string + ForceSendFields []string + Name string + NullFields []string + PackageName string + Version string + func (s *Application) MarshalJSON() ([]byte, error) + type BucketByActivity struct + ActivityDataSourceId string + ForceSendFields []string + MinDurationMillis int64 + NullFields []string + func (s *BucketByActivity) MarshalJSON() ([]byte, error) + type BucketBySession struct + ForceSendFields []string + MinDurationMillis int64 + NullFields []string + func (s *BucketBySession) MarshalJSON() ([]byte, error) + type BucketByTime struct + DurationMillis int64 + ForceSendFields []string + NullFields []string + Period *BucketByTimePeriod + func (s *BucketByTime) MarshalJSON() ([]byte, error) + type BucketByTimePeriod struct + ForceSendFields []string + NullFields []string + TimeZoneId string + Type string + Value int64 + func (s *BucketByTimePeriod) MarshalJSON() ([]byte, error) + type DataPoint struct + ComputationTimeMillis int64 + DataTypeName string + EndTimeNanos int64 + ForceSendFields []string + ModifiedTimeMillis int64 + NullFields []string + OriginDataSourceId string + RawTimestampNanos int64 + StartTimeNanos int64 + Value []*Value + func (s *DataPoint) MarshalJSON() ([]byte, error) + type DataSource struct + Application *Application + DataQualityStandard []string + DataStreamId string + DataStreamName string + DataType *DataType + Device *Device + ForceSendFields []string + Name string + NullFields []string + Type string + func (s *DataSource) MarshalJSON() ([]byte, error) + type DataType struct + Field []*DataTypeField + ForceSendFields []string + Name string + NullFields []string + func (s *DataType) MarshalJSON() ([]byte, error) + type DataTypeField struct + ForceSendFields []string + Format string + Name string + NullFields []string + Optional bool + func (s *DataTypeField) MarshalJSON() ([]byte, error) + type Dataset struct + DataSourceId string + ForceSendFields []string + MaxEndTimeNs int64 + MinStartTimeNs int64 + NextPageToken string + NullFields []string + Point []*DataPoint + func (s *Dataset) MarshalJSON() ([]byte, error) + type Device struct + ForceSendFields []string + Manufacturer string + Model string + NullFields []string + Type string + Uid string + Version string + func (s *Device) MarshalJSON() ([]byte, error) + type ListDataPointChangesResponse struct + DataSourceId string + DeletedDataPoint []*DataPoint + ForceSendFields []string + InsertedDataPoint []*DataPoint + NextPageToken string + NullFields []string + func (s *ListDataPointChangesResponse) MarshalJSON() ([]byte, error) + type ListDataSourcesResponse struct + DataSource []*DataSource + ForceSendFields []string + NullFields []string + func (s *ListDataSourcesResponse) MarshalJSON() ([]byte, error) + type ListSessionsResponse struct + DeletedSession []*Session + ForceSendFields []string + HasMoreData bool + NextPageToken string + NullFields []string + Session []*Session + func (s *ListSessionsResponse) MarshalJSON() ([]byte, error) + type MapValue struct + ForceSendFields []string + FpVal float64 + NullFields []string + func (s *MapValue) MarshalJSON() ([]byte, error) + func (s *MapValue) UnmarshalJSON(data []byte) error + type Service struct + BasePath string + UserAgent string + Users *UsersService + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type Session struct + ActiveTimeMillis int64 + ActivityType int64 + Application *Application + Description string + EndTimeMillis int64 + ForceSendFields []string + Id string + ModifiedTimeMillis int64 + Name string + NullFields []string + StartTimeMillis int64 + func (s *Session) MarshalJSON() ([]byte, error) + type UsersDataSourcesCreateCall struct + func (c *UsersDataSourcesCreateCall) Context(ctx context.Context) *UsersDataSourcesCreateCall + func (c *UsersDataSourcesCreateCall) Do(opts ...googleapi.CallOption) (*DataSource, error) + func (c *UsersDataSourcesCreateCall) Fields(s ...googleapi.Field) *UsersDataSourcesCreateCall + func (c *UsersDataSourcesCreateCall) Header() http.Header + type UsersDataSourcesDataPointChangesListCall struct + func (c *UsersDataSourcesDataPointChangesListCall) Context(ctx context.Context) *UsersDataSourcesDataPointChangesListCall + func (c *UsersDataSourcesDataPointChangesListCall) Do(opts ...googleapi.CallOption) (*ListDataPointChangesResponse, error) + func (c *UsersDataSourcesDataPointChangesListCall) Fields(s ...googleapi.Field) *UsersDataSourcesDataPointChangesListCall + func (c *UsersDataSourcesDataPointChangesListCall) Header() http.Header + func (c *UsersDataSourcesDataPointChangesListCall) IfNoneMatch(entityTag string) *UsersDataSourcesDataPointChangesListCall + func (c *UsersDataSourcesDataPointChangesListCall) Limit(limit int64) *UsersDataSourcesDataPointChangesListCall + func (c *UsersDataSourcesDataPointChangesListCall) PageToken(pageToken string) *UsersDataSourcesDataPointChangesListCall + func (c *UsersDataSourcesDataPointChangesListCall) Pages(ctx context.Context, f func(*ListDataPointChangesResponse) error) error + type UsersDataSourcesDataPointChangesService struct + func NewUsersDataSourcesDataPointChangesService(s *Service) *UsersDataSourcesDataPointChangesService + func (r *UsersDataSourcesDataPointChangesService) List(userId string, dataSourceId string) *UsersDataSourcesDataPointChangesListCall + type UsersDataSourcesDatasetsDeleteCall struct + func (c *UsersDataSourcesDatasetsDeleteCall) Context(ctx context.Context) *UsersDataSourcesDatasetsDeleteCall + func (c *UsersDataSourcesDatasetsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *UsersDataSourcesDatasetsDeleteCall) Fields(s ...googleapi.Field) *UsersDataSourcesDatasetsDeleteCall + func (c *UsersDataSourcesDatasetsDeleteCall) Header() http.Header + type UsersDataSourcesDatasetsGetCall struct + func (c *UsersDataSourcesDatasetsGetCall) Context(ctx context.Context) *UsersDataSourcesDatasetsGetCall + func (c *UsersDataSourcesDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) + func (c *UsersDataSourcesDatasetsGetCall) Fields(s ...googleapi.Field) *UsersDataSourcesDatasetsGetCall + func (c *UsersDataSourcesDatasetsGetCall) Header() http.Header + func (c *UsersDataSourcesDatasetsGetCall) IfNoneMatch(entityTag string) *UsersDataSourcesDatasetsGetCall + func (c *UsersDataSourcesDatasetsGetCall) Limit(limit int64) *UsersDataSourcesDatasetsGetCall + func (c *UsersDataSourcesDatasetsGetCall) PageToken(pageToken string) *UsersDataSourcesDatasetsGetCall + func (c *UsersDataSourcesDatasetsGetCall) Pages(ctx context.Context, f func(*Dataset) error) error + type UsersDataSourcesDatasetsPatchCall struct + func (c *UsersDataSourcesDatasetsPatchCall) Context(ctx context.Context) *UsersDataSourcesDatasetsPatchCall + func (c *UsersDataSourcesDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) + func (c *UsersDataSourcesDatasetsPatchCall) Fields(s ...googleapi.Field) *UsersDataSourcesDatasetsPatchCall + func (c *UsersDataSourcesDatasetsPatchCall) Header() http.Header + func (c *UsersDataSourcesDatasetsPatchCall) Pages(ctx context.Context, f func(*Dataset) error) error + type UsersDataSourcesDatasetsService struct + func NewUsersDataSourcesDatasetsService(s *Service) *UsersDataSourcesDatasetsService + func (r *UsersDataSourcesDatasetsService) Delete(userId string, dataSourceId string, datasetId string) *UsersDataSourcesDatasetsDeleteCall + func (r *UsersDataSourcesDatasetsService) Get(userId string, dataSourceId string, datasetId string) *UsersDataSourcesDatasetsGetCall + func (r *UsersDataSourcesDatasetsService) Patch(userId string, dataSourceId string, datasetId string, dataset *Dataset) *UsersDataSourcesDatasetsPatchCall + type UsersDataSourcesDeleteCall struct + func (c *UsersDataSourcesDeleteCall) Context(ctx context.Context) *UsersDataSourcesDeleteCall + func (c *UsersDataSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*DataSource, error) + func (c *UsersDataSourcesDeleteCall) Fields(s ...googleapi.Field) *UsersDataSourcesDeleteCall + func (c *UsersDataSourcesDeleteCall) Header() http.Header + type UsersDataSourcesGetCall struct + func (c *UsersDataSourcesGetCall) Context(ctx context.Context) *UsersDataSourcesGetCall + func (c *UsersDataSourcesGetCall) Do(opts ...googleapi.CallOption) (*DataSource, error) + func (c *UsersDataSourcesGetCall) Fields(s ...googleapi.Field) *UsersDataSourcesGetCall + func (c *UsersDataSourcesGetCall) Header() http.Header + func (c *UsersDataSourcesGetCall) IfNoneMatch(entityTag string) *UsersDataSourcesGetCall + type UsersDataSourcesListCall struct + func (c *UsersDataSourcesListCall) Context(ctx context.Context) *UsersDataSourcesListCall + func (c *UsersDataSourcesListCall) DataTypeName(dataTypeName ...string) *UsersDataSourcesListCall + func (c *UsersDataSourcesListCall) Do(opts ...googleapi.CallOption) (*ListDataSourcesResponse, error) + func (c *UsersDataSourcesListCall) Fields(s ...googleapi.Field) *UsersDataSourcesListCall + func (c *UsersDataSourcesListCall) Header() http.Header + func (c *UsersDataSourcesListCall) IfNoneMatch(entityTag string) *UsersDataSourcesListCall + type UsersDataSourcesService struct + DataPointChanges *UsersDataSourcesDataPointChangesService + Datasets *UsersDataSourcesDatasetsService + func NewUsersDataSourcesService(s *Service) *UsersDataSourcesService + func (r *UsersDataSourcesService) Create(userId string, datasource *DataSource) *UsersDataSourcesCreateCall + func (r *UsersDataSourcesService) Delete(userId string, dataSourceId string) *UsersDataSourcesDeleteCall + func (r *UsersDataSourcesService) Get(userId string, dataSourceId string) *UsersDataSourcesGetCall + func (r *UsersDataSourcesService) List(userId string) *UsersDataSourcesListCall + func (r *UsersDataSourcesService) Update(userId string, dataSourceId string, datasource *DataSource) *UsersDataSourcesUpdateCall + type UsersDataSourcesUpdateCall struct + func (c *UsersDataSourcesUpdateCall) Context(ctx context.Context) *UsersDataSourcesUpdateCall + func (c *UsersDataSourcesUpdateCall) Do(opts ...googleapi.CallOption) (*DataSource, error) + func (c *UsersDataSourcesUpdateCall) Fields(s ...googleapi.Field) *UsersDataSourcesUpdateCall + func (c *UsersDataSourcesUpdateCall) Header() http.Header + type UsersDatasetAggregateCall struct + func (c *UsersDatasetAggregateCall) Context(ctx context.Context) *UsersDatasetAggregateCall + func (c *UsersDatasetAggregateCall) Do(opts ...googleapi.CallOption) (*AggregateResponse, error) + func (c *UsersDatasetAggregateCall) Fields(s ...googleapi.Field) *UsersDatasetAggregateCall + func (c *UsersDatasetAggregateCall) Header() http.Header + type UsersDatasetService struct + func NewUsersDatasetService(s *Service) *UsersDatasetService + func (r *UsersDatasetService) Aggregate(userId string, aggregaterequest *AggregateRequest) *UsersDatasetAggregateCall + type UsersService struct + DataSources *UsersDataSourcesService + Dataset *UsersDatasetService + Sessions *UsersSessionsService + func NewUsersService(s *Service) *UsersService + type UsersSessionsDeleteCall struct + func (c *UsersSessionsDeleteCall) Context(ctx context.Context) *UsersSessionsDeleteCall + func (c *UsersSessionsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *UsersSessionsDeleteCall) Fields(s ...googleapi.Field) *UsersSessionsDeleteCall + func (c *UsersSessionsDeleteCall) Header() http.Header + type UsersSessionsListCall struct + func (c *UsersSessionsListCall) ActivityType(activityType ...int64) *UsersSessionsListCall + func (c *UsersSessionsListCall) Context(ctx context.Context) *UsersSessionsListCall + func (c *UsersSessionsListCall) Do(opts ...googleapi.CallOption) (*ListSessionsResponse, error) + func (c *UsersSessionsListCall) EndTime(endTime string) *UsersSessionsListCall + func (c *UsersSessionsListCall) Fields(s ...googleapi.Field) *UsersSessionsListCall + func (c *UsersSessionsListCall) Header() http.Header + func (c *UsersSessionsListCall) IfNoneMatch(entityTag string) *UsersSessionsListCall + func (c *UsersSessionsListCall) IncludeDeleted(includeDeleted bool) *UsersSessionsListCall + func (c *UsersSessionsListCall) PageToken(pageToken string) *UsersSessionsListCall + func (c *UsersSessionsListCall) Pages(ctx context.Context, f func(*ListSessionsResponse) error) error + func (c *UsersSessionsListCall) StartTime(startTime string) *UsersSessionsListCall + type UsersSessionsService struct + func NewUsersSessionsService(s *Service) *UsersSessionsService + func (r *UsersSessionsService) Delete(userId string, sessionId string) *UsersSessionsDeleteCall + func (r *UsersSessionsService) List(userId string) *UsersSessionsListCall + func (r *UsersSessionsService) Update(userId string, sessionId string, session *Session) *UsersSessionsUpdateCall + type UsersSessionsUpdateCall struct + func (c *UsersSessionsUpdateCall) Context(ctx context.Context) *UsersSessionsUpdateCall + func (c *UsersSessionsUpdateCall) Do(opts ...googleapi.CallOption) (*Session, error) + func (c *UsersSessionsUpdateCall) Fields(s ...googleapi.Field) *UsersSessionsUpdateCall + func (c *UsersSessionsUpdateCall) Header() http.Header + type Value struct + ForceSendFields []string + FpVal float64 + IntVal int64 + MapVal []*ValueMapValEntry + NullFields []string + StringVal string + func (s *Value) MarshalJSON() ([]byte, error) + func (s *Value) UnmarshalJSON(data []byte) error + type ValueMapValEntry struct + ForceSendFields []string + Key string + NullFields []string + Value *MapValue + func (s *ValueMapValEntry) MarshalJSON() ([]byte, error)