{
  "name": "health",
  "revision": "20261105",
  "ownerName": "Google",
  "canonicalName": "Google Health API",
  "description": "The Google Health API lets you view and manage health and fitness metrics and measurement data.",
  "kind": "discovery#restDescription",
  "documentationLink": "https://developers.google.com/health",
  "ownerDomain": "google.com",
  "batchPath": "batch",
  "schemas": {
    "Subscription": {
      "id": "Subscription",
      "type": "object",
      "description": "A subscription to a data collection for a specific user, to be delivered to a subscriber.",
      "properties": {
        "user": {
          "description": "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`).",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Identifier. The resource name of the Subscription. Format: `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}` Example: `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscription-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."
        },
        "dataTypes": {
          "type": "array",
          "description": "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\".",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DailyRollUpDataPointsResponse": {
      "description": "Response containing the list of rolled up data points.",
      "properties": {
        "rollupDataPoints": {
          "description": "Values for each aggregation time window.",
          "items": {
            "$ref": "DailyRollupDataPoint"
          },
          "type": "array"
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "DailyRollUpDataPointsResponse"
    },
    "Moods": {
      "description": "Moods record.",
      "id": "Moods",
      "properties": {
        "sampleTime": {
          "description": "Required. The time at which moods were measured.",
          "$ref": "ObservationSampleTime"
        },
        "moods": {
          "type": "array",
          "description": "Required. The moods logged.",
          "items": {
            "type": "string",
            "enum": [
              "MOOD_UNSPECIFIED",
              "AMAZED",
              "AMUSED",
              "ANGRY",
              "ANNOYED",
              "ANXIOUS",
              "HAPPY",
              "CONTENT",
              "SAD",
              "WORRIED",
              "FRUSTRATED",
              "EXCITED",
              "CALM",
              "STRESSED",
              "ASHAMED",
              "BRAVE",
              "CONFIDENT",
              "DISAPPOINTED",
              "DISCOURAGED",
              "DISGUSTED",
              "DRAINED",
              "EMBARRASSED",
              "GRATEFUL",
              "GUILTY",
              "HOPEFUL",
              "HOPELESS",
              "INDIFFERENT",
              "IRRITATED",
              "JEALOUS",
              "JOYFUL",
              "LONELY",
              "OVERWHELMED",
              "PASSIONATE",
              "PEACEFUL",
              "PROUD",
              "RELIEVED",
              "SATISFIED",
              "SCARED",
              "SURPRISED",
              "ENERGIZED",
              "FATIGUED",
              "VERY_CALM",
              "VERY_STRESSED",
              "NEUTRAL",
              "AFRAID",
              "HURTING",
              "BORED",
              "BITTER",
              "ENVIOUS",
              "CONFUSED",
              "CURIOUS",
              "AWESTRUCK",
              "INSPIRED",
              "LONGING",
              "ACCOMPLISHED",
              "LOVING",
              "COMPASSIONATE",
              "DEPRESSED",
              "GOOD",
              "LOW_ENERGY",
              "OBSESSIVE_THOUGHTS",
              "PANIC",
              "PLAYFUL",
              "PLEASED",
              "SENSITIVE",
              "SLEEPY",
              "SWINGS",
              "UNHAPPY",
              "VERY_SELF_CRITICAL"
            ],
            "enumDescriptions": [
              "Unspecified mood.",
              "Amazed.",
              "Amused.",
              "Angry.",
              "Annoyed.",
              "Anxious.",
              "Happy.",
              "Content.",
              "Sad.",
              "Worried.",
              "Frustrated.",
              "Excited.",
              "Calm.",
              "Stressed.",
              "Ashamed.",
              "Brave.",
              "Confident.",
              "Disappointed.",
              "Discouraged.",
              "Disgusted.",
              "Drained.",
              "Embarrassed.",
              "Grateful.",
              "Guilty.",
              "Hopeful.",
              "Hopeless.",
              "Indifferent.",
              "Irritated.",
              "Jealous.",
              "Joyful.",
              "Lonely.",
              "Overwhelmed.",
              "Passionate.",
              "Peaceful.",
              "Proud.",
              "Relieved.",
              "Satisfied.",
              "Scared.",
              "Surprised.",
              "Energized.",
              "Fatigued.",
              "Very calm.",
              "Very stressed.",
              "Neutral.",
              "Afraid.",
              "Hurting.",
              "Bored.",
              "Bitter.",
              "Envious.",
              "Confused.",
              "Curious.",
              "Awestruck.",
              "Inspired.",
              "Longing.",
              "Accomplished.",
              "Loving.",
              "Compassionate.",
              "Depressed.",
              "Good.",
              "Low energy.",
              "Obsessive thoughts.",
              "Panic.",
              "Playful.",
              "Pleased.",
              "Sensitive.",
              "Sleepy.",
              "Mood swings.",
              "Unhappy.",
              "Very self-critical."
            ]
          }
        },
        "valences": {
          "description": "Optional. The valences.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "VALENCE_UNSPECIFIED",
              "UNPLEASANT",
              "BASELINE",
              "PLEASANT"
            ],
            "enumDescriptions": [
              "Unspecified valence.",
              "Unpleasant.",
              "Baseline.",
              "Pleasant."
            ]
          }
        }
      },
      "type": "object"
    },
    "NutrientQuantity": {
      "properties": {
        "quantity": {
          "$ref": "WeightQuantity",
          "description": "Required. The quantity of the nutrient, measured in grams."
        },
        "nutrient": {
          "type": "string",
          "enum": [
            "NUTRIENT_UNSPECIFIED",
            "BIOTIN",
            "CAFFEINE",
            "CALCIUM",
            "CHLORIDE",
            "CARBOHYDRATES",
            "CHOLESTEROL",
            "CHROMIUM",
            "COPPER",
            "DIETARY_FIBER",
            "FOLIC_ACID",
            "IODINE",
            "IRON",
            "MAGNESIUM",
            "MANGANESE",
            "MOLYBDENUM",
            "MONOUNSATURATED_FAT",
            "NIACIN",
            "PANTOTHENIC_ACID",
            "PHOSPHORUS",
            "POLYUNSATURATED_FAT",
            "POTASSIUM",
            "PROTEIN",
            "RIBOFLAVIN",
            "SATURATED_FAT",
            "SELENIUM",
            "SODIUM",
            "SUGAR",
            "THIAMIN",
            "TRANS_FAT",
            "UNSATURATED_FAT",
            "VITAMIN_A",
            "VITAMIN_B12",
            "VITAMIN_B6",
            "VITAMIN_C",
            "VITAMIN_D",
            "VITAMIN_E",
            "VITAMIN_K",
            "ZINC",
            "FOLATE"
          ],
          "description": "Required. The nutrient type.",
          "enumDescriptions": [
            "Unspecified nutrient.",
            "Value representing biotin nutrient.",
            "Value representing caffeine nutrient.",
            "Value representing calcium nutrient.",
            "Value representing chloride nutrient.",
            "Value representing carbohydrates nutrient.",
            "Value representing cholesterol nutrient.",
            "Value representing chromium nutrient.",
            "Value representing copper nutrient.",
            "Value representing dietary fiber nutrient.",
            "Value representing folic acid nutrient.",
            "Value representing iodine nutrient.",
            "Value representing iron nutrient.",
            "Value representing magnesium nutrient.",
            "Value representing manganese nutrient.",
            "Value representing molybdenum nutrient.",
            "Value representing monounsaturated fat nutrient.",
            "Value representing niacin nutrient.",
            "Value representing pantothenic acid nutrient.",
            "Value representing phosphorus nutrient.",
            "Value representing polyunsaturated fat nutrient.",
            "Value representing potassium nutrient.",
            "Value representing protein nutrient.",
            "Value representing riboflavin nutrient.",
            "Value representing saturated fat nutrient.",
            "Value representing selenium nutrient.",
            "Value representing sodium nutrient.",
            "Value representing sugar nutrient.",
            "Value representing thiamin nutrient.",
            "Value representing trans fat nutrient.",
            "Value representing unsaturated fat nutrient.",
            "Value representing vitamin A nutrient.",
            "Value representing vitamin B12 nutrient.",
            "Value representing vitamin B6 nutrient.",
            "Value representing vitamin C nutrient.",
            "Value representing vitamin D nutrient.",
            "Value representing vitamin E nutrient.",
            "Value representing vitamin K nutrient.",
            "Value representing zinc nutrient.",
            "Value representing folate nutrient."
          ]
        }
      },
      "id": "NutrientQuantity",
      "description": "Represents the quantity of a nutrient.",
      "type": "object"
    },
    "ListPairedDevicesResponse": {
      "type": "object",
      "description": "Response message for ListPairedDevices.",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."
        },
        "pairedDevices": {
          "description": "The paired devices of the user.",
          "type": "array",
          "items": {
            "$ref": "PairedDevice"
          }
        }
      },
      "id": "ListPairedDevicesResponse"
    },
    "Distance": {
      "type": "object",
      "id": "Distance",
      "description": "Distance traveled over an interval of time.",
      "properties": {
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        },
        "millimeters": {
          "format": "int64",
          "description": "Required. Distance in millimeters over the observed interval. Must be in the range `[0, 1000000000]`.",
          "type": "string"
        }
      }
    },
    "EndpointAuthorization": {
      "id": "EndpointAuthorization",
      "description": "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.",
      "properties": {
        "secret": {
          "description": "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.",
          "type": "string"
        },
        "secretSet": {
          "type": "boolean",
          "readOnly": true,
          "description": "Output only. Whether the secret is set."
        }
      },
      "type": "object"
    },
    "ObservationSampleTime": {
      "description": "Represents a sample time of an observed data point.",
      "properties": {
        "physicalTime": {
          "format": "google-datetime",
          "description": "Required. The time of the observation.",
          "type": "string"
        },
        "utcOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC)."
        },
        "civilTime": {
          "$ref": "CivilDateTime",
          "description": "Output only. The civil time in the timezone the subject is in at the time of the observation.",
          "readOnly": true
        }
      },
      "id": "ObservationSampleTime",
      "type": "object"
    },
    "CreateSubscriptionPayload": {
      "id": "CreateSubscriptionPayload",
      "properties": {
        "user": {
          "description": "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`).",
          "type": "string"
        },
        "dataTypes": {
          "type": "array",
          "description": "Optional. Data types subscribed to.",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Payload for creating a subscription.",
      "type": "object"
    },
    "SwimLengthsDataRollupValue": {
      "id": "SwimLengthsDataRollupValue",
      "properties": {
        "strokeCountSum": {
          "format": "int64",
          "type": "string",
          "description": "Total number of swim strokes in the interval."
        }
      },
      "type": "object",
      "description": "Represents the result of the rollup of the swim lengths data type."
    },
    "SedentaryPeriod": {
      "description": "SedentaryPeriod SedentaryPeriod data represents the periods of time that the user was sedentary (i.e. not moving while wearing the device).",
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval."
        }
      },
      "id": "SedentaryPeriod"
    },
    "Operation": {
      "id": "Operation",
      "properties": {
        "name": {
          "type": "string",
          "description": "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}`."
        },
        "metadata": {
          "description": "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.",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          },
          "type": "object"
        },
        "error": {
          "description": "The error result of the operation in case of failure or cancellation.",
          "$ref": "Status"
        },
        "done": {
          "type": "boolean",
          "description": "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."
        },
        "response": {
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          },
          "description": "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`."
        }
      },
      "type": "object",
      "description": "This resource represents a long-running operation that is the result of a network API call."
    },
    "DailyRestingHeartRate": {
      "description": "Measures the daily resting heart rate for a user, calculated using the all day heart rate measurements.",
      "id": "DailyRestingHeartRate",
      "properties": {
        "beatsPerMinute": {
          "description": "Required. The resting heart rate value in beats per minute.",
          "format": "int64",
          "type": "string"
        },
        "dailyRestingHeartRateMetadata": {
          "$ref": "DailyRestingHeartRateMetadata",
          "description": "Optional. Metadata for the daily resting heart rate."
        },
        "date": {
          "description": "Required. Date (in the user's timezone) of the resting heart rate measurement.",
          "$ref": "Date"
        }
      },
      "type": "object"
    },
    "ActiveEnergyBurnedRollupValue": {
      "description": "Represents the result of the rollup of active energy burned.",
      "id": "ActiveEnergyBurnedRollupValue",
      "properties": {
        "kcalSum": {
          "format": "double",
          "type": "number",
          "readOnly": true,
          "description": "Output only. Sum of the active energy burned in kilocalories."
        }
      },
      "type": "object"
    },
    "DailySleepTemperatureDerivations": {
      "type": "object",
      "description": "Provides derived sleep temperature values, calculated from skin or internal device temperature readings during sleep.",
      "properties": {
        "nightlyTemperatureCelsius": {
          "format": "double",
          "type": "number",
          "description": "Required. The user's nightly skin temperature. It is the mean of skin temperature samples taken from the user’s sleep."
        },
        "baselineTemperatureCelsius": {
          "description": "Optional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days.",
          "type": "number",
          "format": "double"
        },
        "date": {
          "description": "Required. Date for which the sleep temperature derivations are calculated.",
          "$ref": "Date"
        },
        "relativeNightlyStddev30dCelsius": {
          "type": "number",
          "format": "double",
          "description": "Optional. The standard deviation of the user’s relative nightly skin temperature (temperature - baseline) over the past 30 days."
        }
      },
      "id": "DailySleepTemperatureDerivations"
    },
    "Food": {
      "description": "Represents a food item.",
      "properties": {
        "energyAvg": {
          "description": "Optional. Value representing the average energy of the food for the default serving.",
          "$ref": "EnergyQuantity"
        },
        "servings": {
          "type": "array",
          "description": "Optional. The serving of the food.",
          "items": {
            "$ref": "FoodServing"
          }
        },
        "description": {
          "type": "string",
          "description": "Optional. The description of the food."
        },
        "energyMax": {
          "description": "Optional. Value representing the maximum energy of the food for the default serving.",
          "$ref": "EnergyQuantity"
        },
        "energyMin": {
          "description": "Optional. Value representing the minimum energy of the food for the default serving.",
          "$ref": "EnergyQuantity"
        },
        "mealType": {
          "type": "string",
          "enum": [
            "MEAL_TYPE_UNSPECIFIED",
            "BEFORE_BREAKFAST",
            "BREAKFAST",
            "BEFORE_LUNCH",
            "LUNCH",
            "BEFORE_DINNER",
            "DINNER",
            "AFTER_DINNER",
            "SNACK",
            "ANYTIME"
          ],
          "description": "Optional. The meal type associated with this food.",
          "enumDescriptions": [
            "Unspecified meal type.",
            "Value representing a meal before breakfast.",
            "Value representing a breakfast.",
            "Value representing a morning snack.",
            "Value representing a lunch.",
            "Value representing an afternoon snack.",
            "Value representing dinner.",
            "Value representing an evening snack.",
            "Value representing any meal outside of the usual three meals per day.",
            "Value representing any time (legacy NA)."
          ]
        },
        "defaultServing": {
          "$ref": "FoodServing",
          "description": "Required. Value representing the default serving of the food."
        },
        "accessLevel": {
          "description": "Required. The access level of the food.",
          "enumDescriptions": [
            "Unspecified food access level.",
            "Public food access level.",
            "Private food access level."
          ],
          "type": "string",
          "enum": [
            "FOOD_ACCESS_LEVEL_UNSPECIFIED",
            "FOOD_ACCESS_LEVEL_PUBLIC",
            "FOOD_ACCESS_LEVEL_PRIVATE"
          ]
        },
        "displayName": {
          "type": "string",
          "description": "Required. The display name of the food."
        },
        "languageCode": {
          "type": "string",
          "description": "Optional. The language code where the food is available in format xx-XX. Supported values are defined in Settings.food_language_code."
        },
        "nutrients": {
          "items": {
            "$ref": "NutrientQuantity"
          },
          "type": "array",
          "description": "Optional. Value representing the nutrients of the food for the default serving."
        },
        "totalFat": {
          "$ref": "WeightQuantity",
          "description": "Optional. Value representing the total fat of the food for the default serving."
        },
        "energyFromFat": {
          "$ref": "EnergyQuantity",
          "description": "Optional. Value representing the energy from fat of the food for the default serving."
        },
        "totalCarbohydrate": {
          "$ref": "WeightQuantity",
          "description": "Optional. Value representing the total carbohydrate of the food for the default serving."
        },
        "brand": {
          "description": "Optional. The brand of the food.",
          "type": "string"
        }
      },
      "id": "Food",
      "type": "object"
    },
    "AlertWindow": {
      "properties": {
        "startUtcOffset": {
          "description": "Required. The UTC offset of the user's timezone when the analysis window started.",
          "type": "string",
          "format": "google-duration"
        },
        "civilStartTime": {
          "readOnly": true,
          "description": "Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval",
          "$ref": "CivilDateTime"
        },
        "endUtcOffset": {
          "type": "string",
          "description": "Required. The UTC offset of the user's timezone when the analysis window ended.",
          "format": "google-duration"
        },
        "heartBeats": {
          "items": {
            "$ref": "HeartBeat"
          },
          "type": "array",
          "description": "Optional. All heart beats in the interval contained in this analysis window."
        },
        "endTime": {
          "description": "Required. The end time of the analysis window.",
          "format": "google-datetime",
          "type": "string"
        },
        "civilEndTime": {
          "description": "Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval",
          "$ref": "CivilDateTime",
          "readOnly": true
        },
        "positive": {
          "type": "boolean",
          "description": "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."
        },
        "startTime": {
          "description": "Required. Observed interval. The start time of the analysis window.",
          "format": "google-datetime",
          "type": "string"
        }
      },
      "id": "AlertWindow",
      "description": "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).",
      "type": "object"
    },
    "TimeInHeartRateZones": {
      "properties": {
        "moderateTime": {
          "description": "Optional. Time spent in moderate heart rate zone.",
          "type": "string",
          "format": "google-duration"
        },
        "lightTime": {
          "description": "Optional. Time spent in light heart rate zone.",
          "type": "string",
          "format": "google-duration"
        },
        "vigorousTime": {
          "type": "string",
          "format": "google-duration",
          "description": "Optional. Time spent in vigorous heart rate zone."
        },
        "peakTime": {
          "description": "Optional. Time spent in peak heart rate zone.",
          "format": "google-duration",
          "type": "string"
        }
      },
      "id": "TimeInHeartRateZones",
      "type": "object",
      "description": "Time spent in each heart rate zone."
    },
    "Profile": {
      "description": "Profile details.",
      "properties": {
        "autoRunningStrideLengthMm": {
          "type": "integer",
          "description": "Output only. The automatically calculated running stride length, in millimeters. The user must consent to the following access scope to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`",
          "format": "int32",
          "readOnly": true
        },
        "autoWalkingStrideLengthMm": {
          "description": "Output only. The automatically calculated walking stride length, in millimeters. The user must consent to the following access scope to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`",
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "userConfiguredWalkingStrideLengthMm": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The user's user configured walking stride length, in millimeters. The user must consent to the following access scope to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`"
        },
        "membershipStartDate": {
          "description": "Output only. The date the user created their account. Updates to this field are currently not supported.",
          "$ref": "Date",
          "readOnly": true
        },
        "userConfiguredRunningStrideLengthMm": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The user's user configured running stride length, in millimeters. The user must consent to the following access scope to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`"
        },
        "age": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The age in years based on the user's birth date. Updates to this field are currently not supported."
        },
        "name": {
          "type": "string",
          "description": "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. This field is read-only."
        }
      },
      "id": "Profile",
      "type": "object"
    },
    "DataPoint": {
      "id": "DataPoint",
      "description": "A computed or recorded metric.",
      "properties": {
        "dailyRestingHeartRate": {
          "description": "Optional. Data for points in the `daily-resting-heart-rate` daily data type collection.",
          "$ref": "DailyRestingHeartRate"
        },
        "swimLengthsData": {
          "$ref": "SwimLengthsData",
          "description": "Optional. Data for points in the `swim-lengths-data` interval data type collection."
        },
        "activeEnergyBurned": {
          "$ref": "ActiveEnergyBurned",
          "description": "Optional. Data for points in the `active-energy-burned` interval data type collection."
        },
        "activityLevel": {
          "$ref": "ActivityLevel",
          "description": "Optional. Data for points in the `activity-level` daily data type collection."
        },
        "dailyRespiratoryRate": {
          "$ref": "DailyRespiratoryRate",
          "description": "Optional. Data for points in the `daily-respiratory-rate` daily data type collection."
        },
        "electrocardiogram": {
          "$ref": "Electrocardiogram",
          "description": "Optional. Data for points in the `electrocardiogram` session data type collection."
        },
        "runVo2Max": {
          "description": "Optional. Data for points in the `run-vo2-max` sample data type collection.",
          "$ref": "RunVO2Max"
        },
        "altitude": {
          "description": "Optional. Data for points in the `altitude` interval data type collection.",
          "$ref": "Altitude"
        },
        "coreBodyTemperature": {
          "description": "Optional. Data for points in the `core-body-temperature` sample data type collection.",
          "$ref": "CoreBodyTemperature"
        },
        "bodyFat": {
          "description": "Optional. Data for points in the `body-fat` sample data type collection.",
          "$ref": "BodyFat"
        },
        "food": {
          "$ref": "Food",
          "description": "Optional. The food details."
        },
        "distance": {
          "description": "Optional. Data for points in the `distance` interval data type collection.",
          "$ref": "Distance"
        },
        "foodMeasurementUnit": {
          "description": "Optional. The food measurement unit details.",
          "$ref": "FoodMeasurementUnit"
        },
        "symptoms": {
          "description": "Optional. Data for points in the `symptoms` sample data type collection.",
          "$ref": "Symptoms"
        },
        "activeMinutes": {
          "description": "Optional. Data for points in the `active-minutes` interval data type collection.",
          "$ref": "ActiveMinutes"
        },
        "vo2Max": {
          "description": "Optional. Data for points in the `vo2-max` sample data type collection.",
          "$ref": "VO2Max"
        },
        "moods": {
          "$ref": "Moods",
          "description": "Optional. Data for points in the `moods` sample data type collection."
        },
        "activeZoneMinutes": {
          "description": "Optional. Data for points in the `active-zone-minutes` interval data type collection, measured in minutes.",
          "$ref": "ActiveZoneMinutes"
        },
        "heartRateVariability": {
          "$ref": "HeartRateVariability",
          "description": "Optional. Data for points in the `heart-rate-variability` sample data type collection."
        },
        "dailyVo2Max": {
          "$ref": "DailyVO2Max",
          "description": "Optional. Data for points in the `daily-vo2-max` daily data type collection."
        },
        "timeInHeartRateZone": {
          "description": "Optional. Data for points in the `time-in-heart-rate-zone` interval data type collection.",
          "$ref": "TimeInHeartRateZone"
        },
        "irregularRhythmNotification": {
          "$ref": "IrregularRhythmNotification",
          "description": "Optional. Data for points in the `irregular-rhythm-notification` session data type collection."
        },
        "menstrualPeriod": {
          "description": "Optional. Data for points in the `menstrual-period` interval data type collection.",
          "$ref": "MenstrualPeriod"
        },
        "dailySleepTemperatureDerivations": {
          "description": "Optional. Data for points in the `daily-sleep-temperature-derivations` daily data type collection.",
          "$ref": "DailySleepTemperatureDerivations"
        },
        "name": {
          "description": "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}` ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, which can be retrieved by calling GetIdentity (see 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.",
          "type": "string"
        },
        "steps": {
          "description": "Optional. Data for points in the `steps` interval data type collection.",
          "$ref": "Steps"
        },
        "dailyHeartRateVariability": {
          "$ref": "DailyHeartRateVariability",
          "description": "Optional. Data for points in the `daily-heart-rate-variability` daily data type collection."
        },
        "dataSource": {
          "description": "Optional. Data source information for the metric",
          "$ref": "DataSource"
        },
        "oxygenSaturation": {
          "description": "Optional. Data for points in the `oxygen-saturation` sample data type collection.",
          "$ref": "OxygenSaturation"
        },
        "dailyHeartRateZones": {
          "$ref": "DailyHeartRateZones",
          "description": "Optional. Data for points in the `daily-heart-rate-zones` daily data type collection."
        },
        "sedentaryPeriod": {
          "description": "Optional. Data for points in the `sedentary-period` interval data type collection.",
          "$ref": "SedentaryPeriod"
        },
        "hydrationLog": {
          "$ref": "HydrationLog",
          "description": "Optional. Data for points in the `hydration-log` session data type collection."
        },
        "ovulationTest": {
          "description": "Optional. Data for points in the `ovulation-test` sample data type collection.",
          "$ref": "OvulationTest"
        },
        "bloodGlucose": {
          "$ref": "BloodGlucose",
          "description": "Optional. Data for points in the `blood-glucose` sample data type collection."
        },
        "exercise": {
          "$ref": "Exercise",
          "description": "Optional. Data for points in the `exercise` session data type collection."
        },
        "weight": {
          "description": "Optional. Data for points in the `weight` sample data type collection.",
          "$ref": "Weight"
        },
        "sleep": {
          "description": "Optional. Data for points in the `sleep` session data type collection.",
          "$ref": "Sleep"
        },
        "floors": {
          "$ref": "Floors",
          "description": "Optional. Data for points in the `floors` interval data type collection."
        },
        "basalEnergyBurned": {
          "$ref": "BasalEnergyBurned",
          "description": "Optional. Data for points in the `basal-energy-burned` interval data type collection."
        },
        "height": {
          "description": "Optional. Data for points in the `height` sample data type collection.",
          "$ref": "Height"
        },
        "dailyOxygenSaturation": {
          "$ref": "DailyOxygenSaturation",
          "description": "Optional. Data for points in the `daily-oxygen-saturation` daily data type collection."
        },
        "respiratoryRateSleepSummary": {
          "description": "Optional. Data for points in the `respiratory-rate-sleep-summary` sample data type collection.",
          "$ref": "RespiratoryRateSleepSummary"
        },
        "heartRate": {
          "$ref": "HeartRate",
          "description": "Optional. Data for points in the `heart-rate` sample data type collection."
        },
        "nutritionLog": {
          "$ref": "NutritionLog",
          "description": "Optional. Data for points in the `nutrition-log` session data type collection."
        }
      },
      "type": "object"
    },
    "TimeInHeartRateZoneRollupValue": {
      "description": "Represents the result of the rollup of the time in heart rate zone data type.",
      "properties": {
        "timeInHeartRateZones": {
          "items": {
            "$ref": "TimeInHeartRateZoneValue"
          },
          "type": "array",
          "description": "List of time spent in each heart rate zone."
        }
      },
      "type": "object",
      "id": "TimeInHeartRateZoneRollupValue"
    },
    "ListSubscribersResponse": {
      "id": "ListSubscribersResponse",
      "type": "object",
      "description": "Response message for ListSubscribers.",
      "properties": {
        "subscribers": {
          "type": "array",
          "description": "Subscribers from the specified project.",
          "items": {
            "$ref": "Subscriber"
          }
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        },
        "totalSize": {
          "description": "The total number of subscribers matching the request.",
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "GoogleDevicesandservicesHealthV4User": {
      "description": "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.",
      "properties": {
        "name": {
          "description": "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}`",
          "type": "string"
        }
      },
      "id": "GoogleDevicesandservicesHealthV4User",
      "type": "object"
    },
    "HttpHeader": {
      "id": "HttpHeader",
      "description": "Represents an HTTP header.",
      "properties": {
        "value": {
          "description": "The HTTP header value.",
          "type": "string"
        },
        "key": {
          "description": "The HTTP header key. It is case insensitive.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "VO2Max": {
      "id": "VO2Max",
      "type": "object",
      "properties": {
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. The time at which VO2 max was measured."
        },
        "measurementMethod": {
          "type": "string",
          "enum": [
            "MEASUREMENT_METHOD_UNSPECIFIED",
            "FITBIT_RUN",
            "GOOGLE_DEMOGRAPHIC",
            "COOPER_TEST",
            "HEART_RATE_RATIO",
            "METABOLIC_CART",
            "MULTISTAGE_FITNESS_TEST",
            "ROCKPORT_FITNESS_TEST",
            "MAX_EXERCISE",
            "PREDICTION_SUB_MAX_EXERCISE",
            "PREDICTION_NON_EXERCISE",
            "OTHER"
          ],
          "enumDescriptions": [
            "Unspecified measurement method.",
            "Fitbit specific, measures VO2 max rate during a run.",
            "Google specific, measures VO2 max rate for a user based on their demographic data.",
            "Run as far as possible for 12 minutes. Distance correlated with age and gender translates to a VO2 max value.",
            "Maximum heart rate divided by the resting heart rate, with a multiplier applied. Does not require any exercise.",
            "Measured by a medical device called metabolic cart.",
            "Continuous 20m back-and-forth runs with increasing difficulty, until exhaustion.",
            "Measured using walking exercise.",
            "Healthkit specific, measures VO2 max rate by monitoring exercise to the user’s physical limit. Similar to COOPER_TEST or MULTISTAGE_FITNESS_TEST.",
            "Healthkit specific, estimates VO2 max rate based on low-intensity exercise. Similar to ROCKPORT_FITNESS_TEST.",
            "Healthkit specific, estimates VO2 max rate without any exercise. Similar to HEART_RATE_RATIO.",
            "Use when the method is not covered in this enum."
          ],
          "description": "Optional. The method used to measure the VO2 max value."
        },
        "vo2Max": {
          "type": "number",
          "format": "double",
          "description": "Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`."
        }
      },
      "description": "VO2 max measurement."
    },
    "SleepSummary": {
      "type": "object",
      "properties": {
        "minutesInSleepPeriod": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. Delta between wake time and bedtime. It is the sum of all stages.",
          "type": "string"
        },
        "minutesAsleep": {
          "type": "string",
          "description": "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).",
          "format": "int64",
          "readOnly": true
        },
        "stagesSummary": {
          "description": "Output only. List of summaries (total duration and segment count) per each sleep stage type.",
          "type": "array",
          "items": {
            "$ref": "StageSummary"
          },
          "readOnly": true
        },
        "minutesAfterWakeUp": {
          "readOnly": true,
          "description": "Output only. Minutes after wake up calculated by restlessness algorithm.",
          "format": "int64",
          "type": "string"
        },
        "minutesToFallAsleep": {
          "format": "int64",
          "readOnly": true,
          "type": "string",
          "description": "Output only. Minutes to fall asleep calculated by restlessness algorithm."
        },
        "minutesAwake": {
          "format": "int64",
          "readOnly": true,
          "type": "string",
          "description": "Output only. Total number of minutes awake. It is a sum of all AWAKE stages."
        }
      },
      "description": " Sleep summary: metrics and stages summary.",
      "id": "SleepSummary"
    },
    "PairedDevice": {
      "description": "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.",
      "type": "object",
      "id": "PairedDevice",
      "properties": {
        "deviceType": {
          "enum": [
            "DEVICE_TYPE_UNSPECIFIED",
            "TRACKER",
            "SCALE"
          ],
          "enumDescriptions": [
            "Device type is not specified.",
            "Device type is tracker.",
            "Device type is scale."
          ],
          "readOnly": true,
          "type": "string",
          "description": "Output only. The device type. Supported: TRACKER | SCALE"
        },
        "macAddress": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Mac ID number of the device."
        },
        "name": {
          "type": "string",
          "description": "Identifier. The resource name of this Device resource. Format: `users/{user}/pairedDevices/{paired_device}` Example: `users/1234567890/pairedDevices/123` or `users/me/pairedDevices/123`"
        },
        "lastSyncTime": {
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The time of last sync with the Fitbit mobile application.",
          "type": "string"
        },
        "deviceVersion": {
          "readOnly": true,
          "description": "Output only. The product name of the device",
          "type": "string"
        },
        "features": {
          "readOnly": true,
          "description": "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.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "batteryStatus": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The battery status of the device. Supported: High | Medium | Low | Empty"
        },
        "batteryLevel": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. The battery level of the device.",
          "type": "integer"
        }
      }
    },
    "ListDataPointsResponse": {
      "properties": {
        "dataPoints": {
          "description": "Data points matching the query",
          "type": "array",
          "items": {
            "$ref": "DataPoint"
          }
        },
        "nextPageToken": {
          "description": "Next page token, empty if the response is complete",
          "type": "string"
        }
      },
      "id": "ListDataPointsResponse",
      "type": "object",
      "description": "Response containing raw data points matching the query"
    },
    "ActiveMinutesByActivityLevel": {
      "type": "object",
      "properties": {
        "activityLevel": {
          "description": "Required. The level of activity.",
          "enumDescriptions": [
            "Activity level is unspecified.",
            "Light activity level.",
            "Moderate activity level.",
            "Vigorous activity level."
          ],
          "type": "string",
          "enum": [
            "ACTIVITY_LEVEL_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS"
          ]
        },
        "activeMinutes": {
          "format": "int64",
          "description": "Required. Number of whole minutes spent in activity.",
          "type": "string"
        }
      },
      "description": "Active minutes at a given activity level.",
      "id": "ActiveMinutesByActivityLevel"
    },
    "ActivityLevel": {
      "id": "ActivityLevel",
      "properties": {
        "activityLevelType": {
          "description": "Required. Activity level type in the given time interval.",
          "type": "string",
          "enum": [
            "ACTIVITY_LEVEL_TYPE_UNSPECIFIED",
            "SEDENTARY",
            "LIGHTLY_ACTIVE",
            "MODERATELY_ACTIVE",
            "VERY_ACTIVE"
          ],
          "enumDescriptions": [
            "Unspecified activity level type.",
            "Sedentary activity level.",
            "Lightly active activity level.",
            "Moderately active activity level.",
            "Very active activity level."
          ]
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        }
      },
      "description": "Internal type to capture activity level during a certain time interval.",
      "type": "object"
    },
    "SubscriberConfig": {
      "description": "Configuration for a subscriber. A notification is sent to a subscription ONLY if the subscriber has a config for the data type.",
      "properties": {
        "subscriptionCreatePolicy": {
          "enumDescriptions": [
            "Represents an unspecified policy.",
            "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`.",
            "Requires subscriptions to be created manually for new users. The developer needs to call CreateSubscription for new users."
          ],
          "type": "string",
          "enum": [
            "SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED",
            "AUTOMATIC",
            "MANUAL"
          ],
          "description": "Required. Policy for subscription creation."
        },
        "dataTypes": {
          "items": {
            "type": "string"
          },
          "description": "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.",
          "type": "array"
        }
      },
      "id": "SubscriberConfig",
      "type": "object"
    },
    "NutritionLogRollupValue": {
      "id": "NutritionLogRollupValue",
      "properties": {
        "totalCarbohydrate": {
          "$ref": "WeightQuantityRollup",
          "description": "Total carbohydrate rollup."
        },
        "energy": {
          "description": "Energy rollup.",
          "$ref": "EnergyQuantityRollup"
        },
        "nutrients": {
          "description": "List of the nutrient roll-ups by the nutrient type.",
          "items": {
            "$ref": "NutrientQuantityRollup"
          },
          "type": "array"
        },
        "totalFat": {
          "description": "Total fat rollup.",
          "$ref": "WeightQuantityRollup"
        },
        "energyFromFat": {
          "description": "Value Energy from fat rollup.",
          "$ref": "EnergyQuantityRollup"
        }
      },
      "type": "object",
      "description": "Represents the result of the rollup of the nutrition log data type."
    },
    "Symptoms": {
      "id": "Symptoms",
      "description": "Symptoms logged by the user.",
      "properties": {
        "sampleTime": {
          "description": "Required. Time when the symptoms were logged.",
          "$ref": "ObservationSampleTime"
        },
        "symptoms": {
          "type": "array",
          "description": "Required. List of symptoms experienced.",
          "items": {
            "enumDescriptions": [
              "Unspecified symptom value.",
              "Abdominal cramps.",
              "Headache.",
              "Tender breasts.",
              "Acne.",
              "Feeling sick or unwell.",
              "Bloating or abdominal swelling.",
              "Hot flashes.",
              "Premenstrual syndrome symptoms.",
              "Coughing.",
              "Fever or elevated body temperature.",
              "Difficulty breathing or shortness of breath.",
              "Back pain.",
              "Shakiness or tremors.",
              "Excessive hunger.",
              "Excessive sweating.",
              "Anxiety or nervousness.",
              "Excessive thirst.",
              "Frequent urination.",
              "Blurred vision.",
              "Other symptoms.",
              "High sex drive.",
              "Medium sex drive.",
              "Low sex drive.",
              "Heart palpitations or racing heart.",
              "Fainting or loss of consciousness.",
              "Chest pain or discomfort.",
              "Fatigue or extreme tiredness.",
              "Confusion or mental fogginess.",
              "Dizziness or lightheadedness.",
              "Abdominal pain.",
              "Bladder leaks.",
              "Bleeding gums.",
              "Brain fog.",
              "Burning mouth.",
              "Constipation.",
              "Food cravings.",
              "Decreased appetite.",
              "Diarrhea.",
              "Drawing pain.",
              "Dry eyes.",
              "Dry hair.",
              "Dry skin.",
              "Exhaustion.",
              "Feeling good or well.",
              "Food aversions.",
              "Hair loss.",
              "Heartburn.",
              "Hyperpigmentation.",
              "Increased appetite.",
              "Increased appetite V2.",
              "Insomnia or difficulty sleeping.",
              "Joint pain.",
              "Leg cramps.",
              "Milky nipple discharge.",
              "Nausea.",
              "Night sweats.",
              "Normal digestion.",
              "Normal stool.",
              "Perineum pain.",
              "Sleepiness or drowsiness.",
              "Stretch marks.",
              "Swelling.",
              "Vaginal dryness.",
              "Vaginal itching.",
              "Vomiting."
            ],
            "type": "string",
            "enum": [
              "SYMPTOM_VALUE_UNSPECIFIED",
              "CRAMPS",
              "HEADACHE",
              "TENDER_BREASTS",
              "ACNE",
              "SICK",
              "BLOATED",
              "HOT_FLASHES",
              "PMS",
              "COUGH",
              "FEVER",
              "DIFFICULTY_BREATHING",
              "BACK_PAIN",
              "SHAKINESS",
              "HUNGER",
              "SWEATING",
              "ANXIETY",
              "THIRST",
              "FREQUENT_URINATION",
              "BLURRED_VISION",
              "OTHER",
              "SEX_DRIVE_HIGH",
              "SEX_DRIVE_MEDIUM",
              "SEX_DRIVE_LOW",
              "HEART_PALPITATIONS",
              "FAINTING",
              "CHEST_PAIN",
              "FATIGUE",
              "CONFUSION",
              "DIZZINESS",
              "ABDOMINAL_PAIN",
              "BLADDER_LEAKS",
              "BLEEDING_GUMS",
              "BRAIN_FOG",
              "BURNING_MOUTH",
              "CONSTIPATION",
              "CRAVINGS",
              "DECREASED_APPETITE",
              "DIARRHEA",
              "DRAWING_PAIN",
              "DRY_EYES",
              "DRY_HAIR",
              "DRY_SKIN",
              "EXHAUSTION",
              "FEEL_GOOD",
              "FOOD_AVERSIONS",
              "HAIR_LOSS",
              "HEARTBURN",
              "HYPERPIGMENTATION",
              "INCREASED_APPETITE",
              "INCREASED_APPETITE_V2",
              "INSOMNIA",
              "JOINT_PAIN",
              "LEG_CRAMPS",
              "MILKY_NIPPLE_DISCHARGE",
              "NAUSEA",
              "NIGHT_SWEATS",
              "NORMAL_DIGESTION",
              "NORMAL_STOOL",
              "PERINEUM_PAIN",
              "SLEEPINESS",
              "STRETCH_MARKS",
              "SWELLING",
              "VAGINAL_DRYNESS",
              "VAGINAL_ITCHING",
              "VOMITING"
            ]
          }
        }
      },
      "type": "object"
    },
    "Empty": {
      "description": "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": "object",
      "properties": {},
      "id": "Empty"
    },
    "BatchDeleteDataPointsRequest": {
      "id": "BatchDeleteDataPointsRequest",
      "type": "object",
      "description": "Request to delete a batch of identifiable data points.",
      "properties": {
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. The names of the DataPoints to delete. A maximum of 10000 data points can be deleted in a single request."
        }
      }
    },
    "HeartBeat": {
      "id": "HeartBeat",
      "type": "object",
      "properties": {
        "physicalTime": {
          "format": "google-datetime",
          "description": "Required. The time of the heart beat measurement.",
          "type": "string"
        },
        "utcOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Required. The UTC offset of the user's timezone when the heart beat measurement occurred."
        },
        "civilTime": {
          "$ref": "CivilDateTime",
          "description": "Output only. The civil time in the timezone the subject is in at the time of the observation.",
          "readOnly": true
        },
        "beatsPerMinute": {
          "type": "integer",
          "format": "int32",
          "description": "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)."
        }
      },
      "description": "A single heart beat measurement."
    },
    "DateTime": {
      "id": "DateTime",
      "type": "object",
      "description": "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.",
      "properties": {
        "hours": {
          "description": "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.",
          "type": "integer",
          "format": "int32"
        },
        "seconds": {
          "description": "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.",
          "format": "int32",
          "type": "integer"
        },
        "month": {
          "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.",
          "type": "integer",
          "format": "int32"
        },
        "day": {
          "format": "int32",
          "description": "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.",
          "type": "integer"
        },
        "nanos": {
          "format": "int32",
          "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.",
          "type": "integer"
        },
        "timeZone": {
          "description": "Time zone.",
          "$ref": "TimeZone"
        },
        "year": {
          "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.",
          "format": "int32",
          "type": "integer"
        },
        "minutes": {
          "type": "integer",
          "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.",
          "format": "int32"
        },
        "utcOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "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 }."
        }
      }
    },
    "ManifestParams": {
      "id": "ManifestParams",
      "type": "object",
      "description": "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",
      "properties": {
        "recipient": {
          "description": "Required. A string describing the recipient (e.g.,the name of an organization or person) suitable for display to the Receiving User",
          "type": "string"
        },
        "passcode": {
          "description": "Optional. ",
          "type": "string"
        },
        "embeddedLengthMax": {
          "description": "Optional. Integer upper bound on the length of embedded payloads",
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "RunVO2Max": {
      "id": "RunVO2Max",
      "type": "object",
      "description": "VO2 max value calculated based on the user's running activity. Value stored in ml/kg/min.",
      "properties": {
        "runVo2Max": {
          "format": "double",
          "type": "number",
          "description": "Required. Run VO2 max value in ml/kg/min. Must be in the range `[0, 100]`."
        },
        "sampleTime": {
          "description": "Required. The time at which the metric was measured.",
          "$ref": "ObservationSampleTime"
        }
      }
    },
    "Device": {
      "type": "object",
      "id": "Device",
      "description": "Captures metadata about the device that recorded the measurement.",
      "properties": {
        "manufacturer": {
          "description": "Optional. An optional manufacturer of the device.",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. An optional name for the device.",
          "type": "string"
        },
        "formFactor": {
          "type": "string",
          "enum": [
            "FORM_FACTOR_UNSPECIFIED",
            "FITNESS_BAND",
            "WATCH",
            "PHONE",
            "RING",
            "CHEST_STRAP",
            "SCALE",
            "TABLET",
            "HEAD_MOUNTED",
            "SMART_DISPLAY"
          ],
          "enumDescriptions": [
            "The form factor is unspecified.",
            "The device is a fitness band.",
            "The device is a watch.",
            "The device is a phone.",
            "The device is a ring.",
            "The device is a chest strap.",
            "The device is a scale.",
            "The device is a tablet.",
            "The device is a head mounted device.",
            "The device is a smart display."
          ],
          "description": "Optional. Captures the form factor of the device."
        }
      }
    },
    "ActiveMinutesRollupByActivityLevel": {
      "type": "object",
      "description": "Active minutes by activity level.",
      "properties": {
        "activeMinutesSum": {
          "format": "int64",
          "type": "string",
          "description": "Number of whole minutes spent in activity."
        },
        "activityLevel": {
          "description": "The level of activity.",
          "type": "string",
          "enum": [
            "ACTIVITY_LEVEL_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS"
          ],
          "enumDescriptions": [
            "Activity level is unspecified.",
            "Light activity level.",
            "Moderate activity level.",
            "Vigorous activity level."
          ]
        }
      },
      "id": "ActiveMinutesRollupByActivityLevel"
    },
    "ActiveMinutes": {
      "type": "object",
      "properties": {
        "activeMinutesByActivityLevel": {
          "items": {
            "$ref": "ActiveMinutesByActivityLevel"
          },
          "type": "array",
          "description": "Required. Active minutes by activity level. At most one record per activity level is allowed."
        },
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval."
        }
      },
      "id": "ActiveMinutes",
      "description": "Record of active minutes in a given time interval."
    },
    "SplitSummary": {
      "description": "Represents splits or laps recorded within an exercise. Lap events partition a workout into segments based on criteria like distance, time, or calories.",
      "properties": {
        "startTime": {
          "description": "Required. Lap start time",
          "format": "google-datetime",
          "type": "string"
        },
        "startUtcOffset": {
          "type": "string",
          "description": "Required. Lap start time offset from UTC",
          "format": "google-duration"
        },
        "metricsSummary": {
          "description": "Required. Summary metrics for this split.",
          "$ref": "MetricsSummary"
        },
        "splitType": {
          "enumDescriptions": [
            "Split type is unspecified.",
            "Manual split.",
            "Split by duration.",
            "Split by distance.",
            "Split by calories."
          ],
          "description": "Required. Method used to split the exercise laps. Users may manually mark the lap as complete even if the tracking is automatic.",
          "type": "string",
          "enum": [
            "SPLIT_TYPE_UNSPECIFIED",
            "MANUAL",
            "DURATION",
            "DISTANCE",
            "CALORIES"
          ]
        },
        "endTime": {
          "description": "Required. Lap end time",
          "format": "google-datetime",
          "type": "string"
        },
        "endUtcOffset": {
          "description": "Required. Lap end time offset from UTC",
          "format": "google-duration",
          "type": "string"
        },
        "activeDuration": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Lap time excluding the pauses.",
          "format": "google-duration"
        }
      },
      "id": "SplitSummary",
      "type": "object"
    },
    "Date": {
      "description": "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",
      "properties": {
        "month": {
          "format": "int32",
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "type": "integer"
        },
        "day": {
          "format": "int32",
          "description": "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.",
          "type": "integer"
        },
        "year": {
          "type": "integer",
          "format": "int32",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year."
        }
      },
      "type": "object",
      "id": "Date"
    },
    "IrnProfile": {
      "description": "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.",
      "properties": {
        "onboardingStatus": {
          "description": "Required. Whether or not the user has onboarded onto the IRN feature.",
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "description": "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."
        },
        "enrollmentStatus": {
          "description": "Required. Whether or not the user is currently enrolled in having their data processed for IRN alerts.",
          "type": "boolean"
        },
        "updateTime": {
          "type": "string",
          "description": "Output only. The timestamp of the last piece of analyzable data synced by the user.",
          "format": "google-datetime",
          "readOnly": true
        }
      },
      "type": "object",
      "id": "IrnProfile"
    },
    "BodyFat": {
      "properties": {
        "sampleTime": {
          "description": "Required. The time at which body fat was measured.",
          "$ref": "ObservationSampleTime"
        },
        "percentage": {
          "description": "Required. Body fat percentage. Must be in the range `[0, 100]`.",
          "type": "number",
          "format": "double"
        }
      },
      "id": "BodyFat",
      "description": "Body fat measurement.",
      "type": "object"
    },
    "StageSummary": {
      "properties": {
        "minutes": {
          "type": "string",
          "description": "Output only. Total duration in minutes of a sleep stage.",
          "readOnly": true,
          "format": "int64"
        },
        "type": {
          "enum": [
            "SLEEP_STAGE_TYPE_UNSPECIFIED",
            "AWAKE",
            "LIGHT",
            "DEEP",
            "REM",
            "ASLEEP",
            "RESTLESS"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "The default unset value.",
            "Sleep stage AWAKE.",
            "Sleep stage LIGHT.",
            "Sleep stage DEEP.",
            "Sleep stage REM.",
            "Sleep stage ASLEEP.",
            "Sleep stage RESTLESS."
          ],
          "description": "Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.",
          "type": "string"
        },
        "count": {
          "format": "int64",
          "description": "Output only. Number of sleep stages segments.",
          "readOnly": true,
          "type": "string"
        }
      },
      "description": "Total duration and segment count for a stage.",
      "id": "StageSummary",
      "type": "object"
    },
    "WeightQuantity": {
      "id": "WeightQuantity",
      "description": "Represents the weight quantity.",
      "properties": {
        "userProvidedUnit": {
          "type": "string",
          "enum": [
            "WEIGHT_UNIT_UNSPECIFIED",
            "GRAM",
            "KILOGRAM",
            "OUNCE",
            "POUND",
            "STONE",
            "MILLIGRAM",
            "MICROGRAM",
            "NANOGRAM"
          ],
          "description": "Optional. Value representing the user provided unit.",
          "enumDescriptions": [
            "Unspecified weight unit.",
            "Value representing gram.",
            "Value representing kilogram.",
            "Value representing ounce.",
            "Value representing pound.",
            "Value representing stone.",
            "Value representing milligram.",
            "Value representing microgram.",
            "Value representing nanogram."
          ]
        },
        "grams": {
          "type": "number",
          "format": "double",
          "description": "Required. The weight value in grams. Must be in the range `[0, 100000]`."
        }
      },
      "type": "object"
    },
    "BloodGlucose": {
      "properties": {
        "notes": {
          "type": "string",
          "description": "Optional. Standard free-form notes captured at manual logging."
        },
        "mealType": {
          "type": "string",
          "enum": [
            "MEAL_TYPE_UNSPECIFIED",
            "BREAKFAST",
            "LUNCH",
            "DINNER",
            "SNACK"
          ],
          "description": "Optional. Meal type of the measurement.",
          "enumDescriptions": [
            "Unspecified meal type.",
            "Breakfast.",
            "Lunch.",
            "Dinner.",
            "Snack."
          ]
        },
        "measurementSource": {
          "enumDescriptions": [
            "Unspecified measurement source.",
            "Self-monitoring of blood glucose (Blood glucose meter)",
            "Continuous glucose monitoring device",
            "Laboratory test"
          ],
          "type": "string",
          "enum": [
            "MEASUREMENT_SOURCE_UNSPECIFIED",
            "SELF_MONITORING_BLOOD_GLUCOSE",
            "CONTINUOUS_GLUCOSE_MONITORING",
            "LAB_TEST"
          ],
          "description": "Optional. Source of the measurement."
        },
        "measurementTiming": {
          "enumDescriptions": [
            "Unspecified measurement timing.",
            "Measurement taken after meal.",
            "Measurement taken before meal.",
            "Measurement taken while fasting.",
            "General measurement (not associated with a meal or time of day).",
            "Measurement taken before bed.",
            "Measurement taken over night."
          ],
          "type": "string",
          "enum": [
            "MEASUREMENT_TIMING_UNSPECIFIED",
            "AFTER_MEAL",
            "BEFORE_MEAL",
            "FASTING",
            "GENERAL",
            "BEFORE_BED",
            "OVER_NIGHT"
          ],
          "description": "Optional. Timing of the measurement."
        },
        "bloodGlucoseMilligramsPerDeciliter": {
          "description": "Required. Blood glucose level concentration in mg/dL. Must be in the range `[0, 900]`.",
          "format": "double",
          "type": "number"
        },
        "specimen": {
          "enumDescriptions": [
            "Unspecified specimen.",
            "Capillary blood.",
            "Interstitial fluid.",
            "Plasma.",
            "Serum.",
            "Tears.",
            "Whole blood."
          ],
          "description": "Optional. Type of body fluid used to measure the blood glucose.",
          "type": "string",
          "enum": [
            "SPECIMEN_UNSPECIFIED",
            "CAPILLARY_BLOOD",
            "INTERSTITIAL_FLUID",
            "PLASMA",
            "SERUM",
            "TEARS",
            "WHOLE_BLOOD"
          ]
        },
        "sampleTime": {
          "description": "Required. The time at which blood glucose was measured.",
          "$ref": "ObservationSampleTime"
        }
      },
      "type": "object",
      "id": "BloodGlucose",
      "description": "Represents a blood glucose level measurement. LINT: LEGACY_NAMES"
    },
    "HttpBody": {
      "type": "object",
      "id": "HttpBody",
      "properties": {
        "extensions": {
          "type": "array",
          "description": "Application specific response metadata. Must be set in the first response for streaming APIs.",
          "items": {
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            },
            "type": "object"
          }
        },
        "contentType": {
          "description": "The HTTP Content-Type header value specifying the content type of the body.",
          "type": "string"
        },
        "data": {
          "type": "string",
          "description": "The HTTP request/response body as raw binary.",
          "format": "byte"
        }
      },
      "description": "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."
    },
    "HttpResponse": {
      "description": "Represents an HTTP response.",
      "properties": {
        "reason": {
          "description": "The HTTP reason phrase, such as \"OK\" or \"Not Found\".",
          "type": "string"
        },
        "body": {
          "format": "byte",
          "description": "The HTTP response body. If the body is not expected, it should be empty.",
          "type": "string"
        },
        "status": {
          "format": "int32",
          "description": "The HTTP status code, such as 200 or 404.",
          "type": "integer"
        },
        "headers": {
          "description": "The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.",
          "type": "array",
          "items": {
            "$ref": "HttpHeader"
          }
        }
      },
      "id": "HttpResponse",
      "type": "object"
    },
    "ReconcileDataPointsResponse": {
      "description": "Response containing the list of reconciled DataPoints.",
      "properties": {
        "dataPoints": {
          "items": {
            "$ref": "ReconciledDataPoint"
          },
          "type": "array",
          "description": "Data points matching the query"
        },
        "nextPageToken": {
          "description": "Next page token, empty if the response is complete",
          "type": "string"
        }
      },
      "id": "ReconcileDataPointsResponse",
      "type": "object"
    },
    "Interval": {
      "properties": {
        "endTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end."
        },
        "startTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start."
        }
      },
      "type": "object",
      "description": "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.",
      "id": "Interval"
    },
    "DailyRollupDataPoint": {
      "type": "object",
      "id": "DailyRollupDataPoint",
      "properties": {
        "hydrationLog": {
          "description": "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.",
          "$ref": "HydrationLogRollupValue"
        },
        "bloodGlucose": {
          "description": "Returned by default when rolling up data points from the `blood-glucose` data type.",
          "$ref": "BloodGlucoseRollupValue"
        },
        "heartRate": {
          "$ref": "HeartRateRollupValue",
          "description": "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."
        },
        "activeZoneMinutes": {
          "$ref": "ActiveZoneMinutesRollupValue",
          "description": "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."
        },
        "nutritionLog": {
          "description": "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.",
          "$ref": "NutritionLogRollupValue"
        },
        "activeEnergyBurned": {
          "description": "Returned by default when rolling up data points from the `active-energy-burned` data type.",
          "$ref": "ActiveEnergyBurnedRollupValue"
        },
        "sedentaryPeriod": {
          "$ref": "SedentaryPeriodRollupValue",
          "description": "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."
        },
        "distance": {
          "$ref": "DistanceRollupValue",
          "description": "Returned by default when rolling up data points from the `distance` data type, or when requested explicitly using the `distance` rollup type identifier."
        },
        "bodyFat": {
          "description": "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.",
          "$ref": "BodyFatRollupValue"
        },
        "steps": {
          "$ref": "StepsRollupValue",
          "description": "Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier."
        },
        "timeInHeartRateZone": {
          "$ref": "TimeInHeartRateZoneRollupValue",
          "description": "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."
        },
        "caloriesInHeartRateZone": {
          "description": "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.",
          "$ref": "CaloriesInHeartRateZoneRollupValue"
        },
        "activeMinutes": {
          "description": "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.",
          "$ref": "ActiveMinutesRollupValue"
        },
        "altitude": {
          "description": "Returned by default when rolling up data points from the `altitude` data type, or when requested explicitly using the `altitude` rollup type identifier.",
          "$ref": "AltitudeRollupValue"
        },
        "runVo2Max": {
          "description": "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.",
          "$ref": "RunVO2MaxRollupValue"
        },
        "floors": {
          "description": "Returned by default when rolling up data points from the `floors` data type, or when requested explicitly using the `floors` rollup type identifier.",
          "$ref": "FloorsRollupValue"
        },
        "heartRateVariabilityPersonalRange": {
          "description": "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.",
          "$ref": "HeartRateVariabilityPersonalRangeRollupValue"
        },
        "restingHeartRatePersonalRange": {
          "$ref": "RestingHeartRatePersonalRangeRollupValue",
          "description": "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."
        },
        "weight": {
          "$ref": "WeightRollupValue",
          "description": "Returned by default when rolling up data points from the `weight` data type, or when requested explicitly using the `weight` rollup type identifier."
        },
        "civilStartTime": {
          "description": "Start time of the window this value aggregates over",
          "$ref": "CivilDateTime"
        },
        "swimLengthsData": {
          "$ref": "SwimLengthsDataRollupValue",
          "description": "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."
        },
        "totalCalories": {
          "$ref": "TotalCaloriesRollupValue",
          "description": "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."
        },
        "civilEndTime": {
          "description": "End time of the window this value aggregates over",
          "$ref": "CivilDateTime"
        },
        "coreBodyTemperature": {
          "$ref": "CoreBodyTemperatureRollupValue",
          "description": "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."
        },
        "activityLevel": {
          "description": "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.",
          "$ref": "ActivityLevelRollupValue"
        }
      },
      "description": "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."
    },
    "DailyHeartRateVariability": {
      "type": "object",
      "id": "DailyHeartRateVariability",
      "properties": {
        "nonRemHeartRateBeatsPerMinute": {
          "type": "string",
          "description": "Optional. Non-REM heart rate",
          "format": "int64"
        },
        "date": {
          "$ref": "Date",
          "description": "Required. Date (in the user's timezone) of heart rate variability measurement."
        },
        "entropy": {
          "format": "double",
          "description": "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.",
          "type": "number"
        },
        "averageHeartRateVariabilityMilliseconds": {
          "type": "number",
          "format": "double",
          "description": "Optional. A user's average heart rate variability calculated using the root mean square of successive differences (RMSSD) in times between heartbeats."
        },
        "deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds": {
          "type": "number",
          "description": "Optional. The root mean square of successive differences (RMSSD) value during deep sleep.",
          "format": "double"
        }
      },
      "description": "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`"
    },
    "MedicalDeviceInfo": {
      "id": "MedicalDeviceInfo",
      "type": "object",
      "properties": {
        "firmwareVersion": {
          "readOnly": true,
          "description": "Output only. The firmware version running on the compatible device used to collect the data.",
          "type": "string"
        },
        "serviceVersion": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The service version used by the feature."
        },
        "algorithmVersion": {
          "description": "Output only. The algorithm version used by the feature.",
          "type": "string",
          "readOnly": true
        },
        "featureVersion": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The version of the feature/app running on the device."
        },
        "deviceModel": {
          "description": "Output only. The model name or device type of the compatible device used to collect the data.",
          "type": "string",
          "readOnly": true
        }
      },
      "description": "Software as Medical Device (SaMD) metadata. Used to construct the Unique Device Identifier (UDI)."
    },
    "DailyRespiratoryRate": {
      "id": "DailyRespiratoryRate",
      "type": "object",
      "description": "A daily average respiratory rate (breaths per minute) for a day of the year. One data point per day calculated for the main sleep.",
      "properties": {
        "date": {
          "description": "Required. The date on which the respiratory rate was measured.",
          "$ref": "Date"
        },
        "breathsPerMinute": {
          "description": "Required. The average number of breaths taken per minute.",
          "format": "double",
          "type": "number"
        }
      }
    },
    "CivilTimeInterval": {
      "id": "CivilTimeInterval",
      "properties": {
        "end": {
          "description": "Required. The exclusive end of the range.",
          "$ref": "CivilDateTime"
        },
        "start": {
          "description": "Required. The inclusive start of the range.",
          "$ref": "CivilDateTime"
        }
      },
      "description": "Counterpart of google.type.Interval, but using CivilDateTime.",
      "type": "object"
    },
    "Exercise": {
      "type": "object",
      "properties": {
        "exerciseEvents": {
          "description": "Optional. Exercise events that happen during an exercise, such as pause & restarts.",
          "type": "array",
          "items": {
            "$ref": "ExerciseEvent"
          }
        },
        "activeDuration": {
          "description": "Optional. Duration excluding pauses.",
          "type": "string",
          "format": "google-duration"
        },
        "createTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. Represents the timestamp of the creation of the exercise.",
          "readOnly": true
        },
        "interval": {
          "description": "Required. Observed exercise interval",
          "$ref": "SessionTimeInterval"
        },
        "splitSummaries": {
          "items": {
            "$ref": "SplitSummary"
          },
          "type": "array",
          "description": "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."
        },
        "exerciseType": {
          "type": "string",
          "enum": [
            "EXERCISE_TYPE_UNSPECIFIED",
            "AEROBIC_WORKOUT",
            "ARCHERY",
            "ASSAULT_BIKE",
            "BACKPACKING",
            "BADMINTON",
            "BALLET",
            "BALLROOM_DANCE",
            "BARRE_CLASS",
            "BASEBALL",
            "BASKETBALL",
            "BIKING",
            "BILLIARDS",
            "BODY_WEIGHT",
            "BOOTCAMP",
            "BOWLING",
            "BOXING",
            "BREAKDANCING",
            "CALISTHENICS",
            "CANOEING",
            "CARDIO_SCULPT",
            "CARDIO_WORKOUT",
            "CARPENTRY",
            "CHEERLEADING",
            "CIRCUIT_TRAINING",
            "CLEANING",
            "CLIMBING",
            "CORE_TRAINING",
            "CRICKET",
            "CROQUET",
            "CROSS_COUNTRY_SKI",
            "CROSS_TRAINING",
            "CROSSFIT",
            "CURLING",
            "DANCING",
            "DIVING",
            "ELECTRIC_BIKE",
            "ELECTRIC_SCOOTER",
            "ELLIPTICAL",
            "EQUESTRIAN_SPORTS",
            "EXERCISE_CLASS",
            "FENCING",
            "FIELD_HOCKEY",
            "FISHING",
            "FITNESS_GAMING",
            "FOILING",
            "FOOTBALL_AMERICAN",
            "FOOTBALL_AUSTRALIAN",
            "FREE_WEIGHTS",
            "FRISBEE_PLAYING_GENERAL",
            "FUNCTIONAL_STRENGTH_TRAINING",
            "GARDENING",
            "GOLF",
            "GYMNASTICS",
            "HANDBALL",
            "HAND_CYCLING",
            "HIIT",
            "HIKING",
            "HIP_HOP",
            "HOCKEY",
            "HOEING",
            "HOUSEHOLD_CHORES",
            "HUNTING",
            "ICE_SKATING",
            "INCLINE_RUN",
            "INCLINE_WALK",
            "INDOOR_CLIMBING",
            "INTERVAL_WORKOUT",
            "JAZZ_DANCE",
            "JIU_JITSU",
            "JUMPING_ROPE",
            "KARATE",
            "KAYAKING",
            "KICKBOXING",
            "KITESURFING",
            "LACROSSE",
            "MARTIAL_ARTS",
            "MEDITATE",
            "MODERN_DANCE",
            "MOTOCROSS",
            "MOTORCYCLE",
            "MOUNTAIN_BIKE",
            "MOWING_LAWN",
            "MUAY_THAI",
            "MULTISPORT",
            "MUSICAL_PERFORMANCE",
            "NORDIC_WALKING",
            "ORIENTEERING",
            "OTHER",
            "OUTDOOR_BIKE",
            "OUTDOOR_WORKOUT",
            "PADDLEBOARDING",
            "PADEL",
            "PAINTING",
            "PARAGLIDING",
            "PARKOUR",
            "PICKELBALL",
            "PILATES",
            "POLO",
            "POWERLIFTING",
            "POWER_WALKING",
            "RACKET_SPORTS",
            "RACQUETBALL",
            "RESISTANCE_BANDS",
            "ROCK_CLIMBING",
            "ROLLERBLADING",
            "ROLLER_SKATING",
            "ROWING",
            "ROWING_MACHINE",
            "RUCKING",
            "RUGBY",
            "RUNNING",
            "SAILING",
            "SCOOTERING",
            "SCUBA_DIVING",
            "SHOOTING",
            "SHOVELING",
            "SKATEBOARDING",
            "SKATING",
            "SKIING",
            "SKYDIVING",
            "SNORKELING",
            "SNOWBOARDING",
            "SNOWMOBILING",
            "SNOWSHOEING",
            "SNOW_SPORT",
            "SOCCER",
            "SOFTBALL",
            "SPEED_SKATING",
            "SPINNING",
            "SPORT",
            "SQUASH",
            "STAIRCLIMBER",
            "STATIONARY_BIKE",
            "STEP_TRAINING",
            "STRENGTH_TRAINING",
            "STRETCHING",
            "STROLLER_WALK",
            "SURFING",
            "SWIMMING",
            "SWIMMING_OPEN_WATER",
            "SWIMMING_POOL",
            "SYNCHRONIZED_SWIMMING",
            "TABATA_WORKOUT",
            "TABLE_TENNIS",
            "TAEKWONDO",
            "TAI_CHI",
            "TANGO",
            "TENNIS",
            "TRACK_AND_FIELD",
            "TRAIL_RUN",
            "TRAMPOLINE",
            "TREADMILL",
            "TREADMILL_WALK",
            "TRX",
            "ULTIMATE_FRISBEE",
            "UNICYCLING",
            "VOLLEYBALL",
            "VOLLEYBALL_BEACH",
            "WAKEBOARDING",
            "WALKING",
            "WALK_WITH_WEIGHTS",
            "WATER_AEROBICS",
            "WATER_JOGGING",
            "WATER_POLO",
            "WATER_SKIING",
            "WATER_SPORT",
            "WATER_VOLLEYBALL",
            "WEEDING",
            "WEIGHTLIFTING",
            "WEIGHT_MACHINES",
            "WEIGHTS",
            "WHEELCHAIR",
            "WINDSURFING",
            "WORKOUT",
            "WRESTLING",
            "YOGA",
            "YOGA_BIKRAM",
            "YOGA_HATHA",
            "YOGA_POWER",
            "YOGA_VINYASA",
            "ZUMBA"
          ],
          "description": "Required. The type of activity performed during an exercise.",
          "enumDescriptions": [
            "Exercise type is unspecified.",
            "Aerobic workout type.",
            "Archery type.",
            "Assault bike type.",
            "Backpacking type.",
            "Badminton type.",
            "Ballet type.",
            "Ballroom dance type.",
            "Barre class type.",
            "Baseball type.",
            "Basketball type.",
            "Biking type.",
            "Billiards type.",
            "Body weight type.",
            "Bootcamp type.",
            "Bowling type.",
            "Boxing type.",
            "Breakdancing type.",
            "Calisthenics type.",
            "Canoeing type.",
            "Cardio sculpt type.",
            "Cardio workout type.",
            "Carpentry type.",
            "Cheerleading type.",
            "Circuit training type.",
            "Cleaning type.",
            "Climbing type.",
            "Core training type.",
            "Cricket type.",
            "Croquet type.",
            "Cross country ski type.",
            "Cross training type.",
            "Crossfit type.",
            "Curling type.",
            "Dancing type.",
            "Diving type.",
            "Electric bike type.",
            "Electric scooter type.",
            "Elliptical type.",
            "Equestrian sports type.",
            "Exercise class type.",
            "Fencing type.",
            "Field hockey type.",
            "Fishing type.",
            "Fitness gaming type.",
            "Foiling type.",
            "Football american type.",
            "Football australian type.",
            "Free weights type.",
            "Frisbee playing general type.",
            "Functional strength training type.",
            "Gardening type.",
            "Golf type.",
            "Gymnastics type.",
            "Handball type.",
            "Hand cycling type.",
            "Hiit type.",
            "Hiking type.",
            "Hip hop type.",
            "Hockey type.",
            "Hoeing type.",
            "Household chores type.",
            "Hunting type.",
            "Ice skating type.",
            "Incline run type.",
            "Incline walk type.",
            "Indoor climbing type.",
            "Interval workout type.",
            "Jazz dance type.",
            "Jiu jitsu type.",
            "Jumping rope type.",
            "Karate type.",
            "Kayaking type.",
            "Kickboxing type.",
            "Kitesurfing type.",
            "Lacrosse type.",
            "Martial arts type.",
            "Meditate type.",
            "Modern dance type.",
            "Motocross type.",
            "Motorcycle type.",
            "Mountain bike type.",
            "Mowing lawn type.",
            "Muay thai type.",
            "Multisport type.",
            "Musical performance type.",
            "Nordic walking type.",
            "Orienteering type.",
            "Other type.",
            "Outdoor bike type.",
            "Outdoor workout type.",
            "Paddleboarding type.",
            "Padel type.",
            "Painting type.",
            "Paragliding type.",
            "Parkour type.",
            "Pickelball type.",
            "Pilates type.",
            "Polo type.",
            "Powerlifting type.",
            "Power walking type.",
            "Racket sports type.",
            "Racquetball type.",
            "Resistance bands type.",
            "Rock climbing type.",
            "Rollerblading type.",
            "Roller skating type.",
            "Rowing type.",
            "Rowing machine type.",
            "Rucking type.",
            "Rugby type.",
            "Running type.",
            "Sailing type.",
            "Scootering type.",
            "Scuba diving type.",
            "Shooting type.",
            "Shoveling type.",
            "Skateboarding type.",
            "Skating type.",
            "Skiing type.",
            "Skydiving type.",
            "Snorkeling type.",
            "Snowboarding type.",
            "Snowmobiling type.",
            "Snowshoeing type.",
            "Snow sport type.",
            "Soccer type.",
            "Softball type.",
            "Speed skating type.",
            "Spinning type.",
            "Sport type.",
            "Squash type.",
            "Stairclimber type.",
            "Stationary bike type.",
            "Step training type.",
            "Strength training type.",
            "Stretching type.",
            "Stroller walk type.",
            "Surfing type.",
            "Swimming type.",
            "Swimming open water type.",
            "Swimming pool type.",
            "Synchronized swimming type.",
            "Tabata workout type.",
            "Table tennis type.",
            "Taekwondo type.",
            "Tai chi type.",
            "Tango type.",
            "Tennis type.",
            "Track and field type.",
            "Trail run type.",
            "Trampoline type.",
            "Treadmill type.",
            "Treadmill walk type.",
            "Trx type.",
            "Ultimate frisbee type.",
            "Unicycling type.",
            "Volleyball type.",
            "Volleyball beach type.",
            "Wakeboarding type.",
            "Walking type.",
            "Walk with weights type.",
            "Water aerobics type.",
            "Water jogging type.",
            "Water polo type.",
            "Water skiing type.",
            "Water sport type.",
            "Water volleyball type.",
            "Weeding type.",
            "Weightlifting type.",
            "Weight machines type.",
            "Weights type.",
            "Wheelchair type.",
            "Windsurfing type.",
            "Workout type.",
            "Wrestling type.",
            "Yoga type.",
            "Yoga bikram type.",
            "Yoga hatha type.",
            "Yoga power type.",
            "Yoga vinyasa type.",
            "Zumba type."
          ]
        },
        "displayName": {
          "type": "string",
          "description": "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."
        },
        "notes": {
          "description": "Optional. Standard free-form notes captured at manual logging.",
          "type": "string"
        },
        "exerciseMetadata": {
          "description": "Optional. Additional exercise metadata.",
          "$ref": "ExerciseMetadata"
        },
        "updateTime": {
          "type": "string",
          "description": "Output only. This is the timestamp of the last update to the exercise.",
          "format": "google-datetime",
          "readOnly": true
        },
        "splits": {
          "items": {
            "$ref": "SplitSummary"
          },
          "description": "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",
          "type": "array"
        },
        "metricsSummary": {
          "$ref": "MetricsSummary",
          "description": "Required. Summary metrics for this exercise ( )"
        }
      },
      "id": "Exercise",
      "description": "An exercise that stores information about a physical activity."
    },
    "DistanceRollupValue": {
      "type": "object",
      "description": "Result of the rollup of the user's distance.",
      "properties": {
        "millimetersSum": {
          "format": "int64",
          "description": "Sum of the distance in millimeters.",
          "type": "string"
        }
      },
      "id": "DistanceRollupValue"
    },
    "GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog": {
      "type": "object",
      "id": "GoogleDevicesandservicesHealthV4WebhookNotificationCloudLog",
      "properties": {
        "httpResponse": {
          "$ref": "HttpResponse",
          "description": "Required. Represents the HTTP response. This message includes the status code, reason phrase, headers, and body."
        }
      },
      "description": "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."
    },
    "EnergyQuantityRollup": {
      "type": "object",
      "description": "Rollup for the energy quantity.",
      "id": "EnergyQuantityRollup",
      "properties": {
        "kcalSum": {
          "description": "Required. The sum of the energy in kilocalories.",
          "type": "number",
          "format": "double"
        },
        "userProvidedUnitLast": {
          "description": "Optional. The user provided unit on the last element.",
          "enumDescriptions": [
            "Unspecified energy unit.",
            "Value representing joule.",
            "Value representing kilojoule.",
            "Value representing kilocalorie.",
            "Value representing small calorie.",
            "Value representing calorie."
          ],
          "type": "string",
          "enum": [
            "ENERGY_UNIT_UNSPECIFIED",
            "JOULE",
            "KILOJOULE",
            "KILOCALORIE",
            "SMALL_CALORIE",
            "CALORIE"
          ]
        }
      }
    },
    "CivilDateTime": {
      "properties": {
        "time": {
          "description": "Optional. Time of day. Defaults to the start of the day, at midnight if omitted.",
          "$ref": "TimeOfDay"
        },
        "date": {
          "description": "Required. Calendar date.",
          "$ref": "Date"
        }
      },
      "description": "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.",
      "type": "object",
      "id": "CivilDateTime"
    },
    "HeartRateZone": {
      "type": "object",
      "id": "HeartRateZone",
      "properties": {
        "heartRateZoneType": {
          "description": "Required. The heart rate zone type.",
          "type": "string",
          "enum": [
            "HEART_RATE_ZONE_TYPE_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS",
            "PEAK"
          ],
          "enumDescriptions": [
            "Unspecified heart rate zone.",
            "The light heart rate zone.",
            "The moderate heart rate zone.",
            "The vigorous heart rate zone.",
            "The peak heart rate zone."
          ]
        },
        "maxBeatsPerMinute": {
          "format": "int64",
          "description": "Required. Maximum heart rate for this zone in beats per minute.",
          "type": "string"
        },
        "minBeatsPerMinute": {
          "description": "Required. Minimum heart rate for this zone in beats per minute.",
          "type": "string",
          "format": "int64"
        }
      },
      "description": "The heart rate zone."
    },
    "BodyFatRollupValue": {
      "id": "BodyFatRollupValue",
      "description": "Represents the result of the rollup of the body fat data type.",
      "properties": {
        "bodyFatPercentageAvg": {
          "type": "number",
          "description": "Average body fat percentage.",
          "format": "double"
        }
      },
      "type": "object"
    },
    "SessionTimeInterval": {
      "properties": {
        "civilStartTime": {
          "$ref": "CivilDateTime",
          "description": "Output only. Session start time in civil time in the timezone the subject is in at the start of the session.",
          "readOnly": true
        },
        "endUtcOffset": {
          "type": "string",
          "description": "Required. The offset of the user's local time at the end of the session relative to the Coordinated Universal Time (UTC).",
          "format": "google-duration"
        },
        "endTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Required. The end time of the observed session."
        },
        "startUtcOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Required. The offset of the user's local time at the start of the session relative to the Coordinated Universal Time (UTC)."
        },
        "civilEndTime": {
          "readOnly": true,
          "description": "Output only. Session end time in civil time in the timezone the subject is in at the end of the session.",
          "$ref": "CivilDateTime"
        },
        "startTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Required. The start time of the observed session."
        }
      },
      "type": "object",
      "description": "Represents a time interval of session data point, which bundles multiple observed metrics together.",
      "id": "SessionTimeInterval"
    },
    "ReconciledDataPoint": {
      "description": "A reconciled computed or recorded metric.",
      "type": "object",
      "id": "ReconciledDataPoint",
      "properties": {
        "coreBodyTemperature": {
          "description": "Data for points in the `core-body-temperature` sample data type collection.",
          "$ref": "CoreBodyTemperature"
        },
        "weight": {
          "description": "Data for points in the `weight` sample data type collection.",
          "$ref": "Weight"
        },
        "exercise": {
          "$ref": "Exercise",
          "description": "Data for points in the `exercise` session data type collection."
        },
        "steps": {
          "description": "Data for points in the `steps` interval data type collection.",
          "$ref": "Steps"
        },
        "dataPointName": {
          "type": "string",
          "description": "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}` ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, which can be retrieved by calling GetIdentity (see 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."
        },
        "swimLengthsData": {
          "description": "Data for points in the `swim-lengths-data` interval data type collection.",
          "$ref": "SwimLengthsData"
        },
        "dailyRespiratoryRate": {
          "description": "Data for points in the `daily-respiratory-rate` daily data type collection.",
          "$ref": "DailyRespiratoryRate"
        },
        "runVo2Max": {
          "$ref": "RunVO2Max",
          "description": "Data for points in the `run-vo2-max` sample data type collection."
        },
        "dailyOxygenSaturation": {
          "description": "Data for points in the `daily-oxygen-saturation` daily data type collection.",
          "$ref": "DailyOxygenSaturation"
        },
        "oxygenSaturation": {
          "description": "Data for points in the `oxygen-saturation` sample data type collection.",
          "$ref": "OxygenSaturation"
        },
        "timeInHeartRateZone": {
          "$ref": "TimeInHeartRateZone",
          "description": "Data for points in the `time-in-heart-rate-zone` interval data type collection."
        },
        "activeZoneMinutes": {
          "description": "Data for points in the `active-zone-minutes` interval data type collection, measured in minutes.",
          "$ref": "ActiveZoneMinutes"
        },
        "activeEnergyBurned": {
          "$ref": "ActiveEnergyBurned",
          "description": "Data for points in the `active-energy-burned` interval data type collection."
        },
        "height": {
          "$ref": "Height",
          "description": "Data for points in the `height` sample data type collection."
        },
        "heartRateVariability": {
          "description": "Data for points in the `heart-rate-variability` sample data type collection.",
          "$ref": "HeartRateVariability"
        },
        "respiratoryRateSleepSummary": {
          "$ref": "RespiratoryRateSleepSummary",
          "description": "Data for points in the `respiratory-rate-sleep-summary` sample data type collection."
        },
        "floors": {
          "$ref": "Floors",
          "description": "Data for points in the `floors` interval data type collection."
        },
        "dailySleepTemperatureDerivations": {
          "description": "Data for points in the `daily-sleep-temperature-derivations` daily data type collection.",
          "$ref": "DailySleepTemperatureDerivations"
        },
        "distance": {
          "description": "Data for points in the `distance` interval data type collection.",
          "$ref": "Distance"
        },
        "hydrationLog": {
          "description": "Data for points in the `hydration-log` session data type collection.",
          "$ref": "HydrationLog"
        },
        "bodyFat": {
          "$ref": "BodyFat",
          "description": "Data for points in the `body-fat` sample data type collection."
        },
        "bloodGlucose": {
          "description": "Data for points in the `blood-glucose` sample data type collection.",
          "$ref": "BloodGlucose"
        },
        "dailyHeartRateZones": {
          "$ref": "DailyHeartRateZones",
          "description": "Data for points in the `daily-heart-rate-zones` daily data type collection."
        },
        "dailyRestingHeartRate": {
          "$ref": "DailyRestingHeartRate",
          "description": "Data for points in the `daily-resting-heart-rate` daily data type collection."
        },
        "altitude": {
          "$ref": "Altitude",
          "description": "Data for points in the `altitude` interval data type collection."
        },
        "sedentaryPeriod": {
          "$ref": "SedentaryPeriod",
          "description": "Data for points in the `sedentary-period` interval data type collection."
        },
        "activeMinutes": {
          "description": "Data for points in the `active-minutes` interval data type collection.",
          "$ref": "ActiveMinutes"
        },
        "sleep": {
          "description": "Data for points in the `sleep` session data type collection.",
          "$ref": "Sleep"
        },
        "heartRate": {
          "description": "Data for points in the `heart-rate` sample data type collection.",
          "$ref": "HeartRate"
        },
        "dailyVo2Max": {
          "$ref": "DailyVO2Max",
          "description": "Data for points in the `daily-vo2-max` daily data type collection."
        },
        "basalEnergyBurned": {
          "description": "Data for points in the `basal-energy-burned` interval data type collection.",
          "$ref": "BasalEnergyBurned"
        },
        "nutritionLog": {
          "$ref": "NutritionLog",
          "description": "Data for points in the `nutrition-log` session data type collection."
        },
        "dailyHeartRateVariability": {
          "description": "Data for points in the `daily-heart-rate-variability` daily data type collection.",
          "$ref": "DailyHeartRateVariability"
        },
        "activityLevel": {
          "description": "Data for points in the `activity-level` daily data type collection.",
          "$ref": "ActivityLevel"
        },
        "vo2Max": {
          "description": "Data for points in the `vo2-max` sample data type collection.",
          "$ref": "VO2Max"
        }
      }
    },
    "Height": {
      "properties": {
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. The time at which the height was recorded."
        },
        "heightMillimeters": {
          "description": "Required. Height of the user in millimeters. Must be in the range `[0, 3000]`.",
          "type": "string",
          "format": "int64"
        }
      },
      "id": "Height",
      "description": "Body height measurement.",
      "type": "object"
    },
    "RunVO2MaxRollupValue": {
      "description": "Represents the result of the rollup of the user's daily heart rate variability personal range.",
      "id": "RunVO2MaxRollupValue",
      "properties": {
        "rateMax": {
          "format": "double",
          "description": "Maximum value of run VO2 max in the interval.",
          "type": "number"
        },
        "rateAvg": {
          "format": "double",
          "description": "Average value of run VO2 max in the interval.",
          "type": "number"
        },
        "rateMin": {
          "format": "double",
          "description": "Minimum value of run VO2 max in the interval..",
          "type": "number"
        }
      },
      "type": "object"
    },
    "Weight": {
      "type": "object",
      "properties": {
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. The time at which the weight was measured"
        },
        "notes": {
          "description": "Optional. Standard free-form notes captured at manual logging.",
          "type": "string"
        },
        "weightGrams": {
          "type": "number",
          "format": "double",
          "description": "Required. Weight of a user in grams. Must be in the range `[0, 1000000]`."
        }
      },
      "description": "Body weight measurement.",
      "id": "Weight"
    },
    "DailyOxygenSaturation": {
      "id": "DailyOxygenSaturation",
      "properties": {
        "standardDeviationPercentage": {
          "type": "number",
          "description": "Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.",
          "format": "double"
        },
        "averagePercentage": {
          "description": "Required. The average value of the oxygen saturation samples during the sleep. Must be in the range `[0, 100]`.",
          "type": "number",
          "format": "double"
        },
        "date": {
          "$ref": "Date",
          "description": "Required. Date (in user's timezone) of the daily oxygen saturation record."
        },
        "lowerBoundPercentage": {
          "type": "number",
          "format": "double",
          "description": "Required. The lower bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`."
        },
        "upperBoundPercentage": {
          "type": "number",
          "description": "Required. The upper bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.",
          "format": "double"
        }
      },
      "description": "A daily oxygen saturation (SpO2) record. Represents the user's daily oxygen saturation summary, typically calculated during sleep.",
      "type": "object"
    },
    "DailyVO2Max": {
      "type": "object",
      "description": "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.",
      "id": "DailyVO2Max",
      "properties": {
        "vo2Max": {
          "format": "double",
          "type": "number",
          "description": "Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`."
        },
        "cardioFitnessLevel": {
          "description": "Optional. Represents the user's cardio fitness level based on their VO2 max.",
          "enumDescriptions": [
            "Unspecified cardio fitness level.",
            "Poor cardio fitness level.",
            "Fair cardio fitness level.",
            "Average cardio fitness level.",
            "Good cardio fitness level.",
            "Very good cardio fitness level.",
            "Excellent cardio fitness level."
          ],
          "type": "string",
          "enum": [
            "CARDIO_FITNESS_LEVEL_UNSPECIFIED",
            "POOR",
            "FAIR",
            "AVERAGE",
            "GOOD",
            "VERY_GOOD",
            "EXCELLENT"
          ]
        },
        "estimated": {
          "description": "Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation.",
          "type": "boolean"
        },
        "vo2MaxCovariance": {
          "type": "number",
          "format": "double",
          "description": "Optional. The covariance of the VO2 max value."
        },
        "date": {
          "$ref": "Date",
          "description": "Required. The date for which the Daily VO2 max was measured."
        }
      }
    },
    "CaloriesInHeartRateZoneValue": {
      "id": "CaloriesInHeartRateZoneValue",
      "description": "Represents the amount of kilocalories burned in a specific heart rate zone.",
      "properties": {
        "heartRateZone": {
          "type": "string",
          "enum": [
            "HEART_RATE_ZONE_TYPE_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS",
            "PEAK"
          ],
          "enumDescriptions": [
            "Unspecified heart rate zone.",
            "The light heart rate zone.",
            "The moderate heart rate zone.",
            "The vigorous heart rate zone.",
            "The peak heart rate zone."
          ],
          "description": "The heart rate zone."
        },
        "kcal": {
          "description": "The amount of kilocalories burned in the specified heart rate zone.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    },
    "DataSource": {
      "id": "DataSource",
      "description": "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).",
      "properties": {
        "platform": {
          "enum": [
            "PLATFORM_UNSPECIFIED",
            "FITBIT",
            "HEALTH_CONNECT",
            "HEALTH_KIT",
            "FIT",
            "FITBIT_WEB_API",
            "NEST",
            "GOOGLE_WEB_API",
            "GOOGLE_PARTNER_INTEGRATION"
          ],
          "enumDescriptions": [
            "The platform is unspecified.",
            "The data was uploaded from Fitbit.",
            "The data was uploaded from Health Connect.",
            "The data was uploaded from Health Kit.",
            "The data was uploaded from Google Fit.",
            "The data was uploaded from Fitbit legacy Web API.",
            "The data was uploaded from Nest devices.",
            "The data was uploaded from Google Health API.",
            "The data was uploaded from Google Partner Integrations."
          ],
          "description": "Output only. Captures the platform that uploaded the data.",
          "type": "string",
          "readOnly": true
        },
        "device": {
          "description": "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.",
          "$ref": "Device"
        },
        "application": {
          "description": "Output only. Captures metadata for the application that provided this data.",
          "$ref": "Application",
          "readOnly": true
        },
        "recordingMethod": {
          "type": "string",
          "enum": [
            "RECORDING_METHOD_UNSPECIFIED",
            "MANUAL",
            "PASSIVELY_MEASURED",
            "DERIVED",
            "ACTIVELY_MEASURED",
            "UNKNOWN"
          ],
          "description": "Optional. Captures how the data was recorded.",
          "enumDescriptions": [
            "The recording method is unspecified.",
            "The data was manually entered by the user.",
            "The data was passively measured by a device.",
            "The data was derived from other data, e.g., by an algorithm in the backend.",
            "The data was actively measured by a device.",
            "The recording method is unknown. This is set when the data is uploaded from a third party app that does not provide this information."
          ]
        }
      },
      "type": "object"
    },
    "TimeZone": {
      "properties": {
        "id": {
          "type": "string",
          "description": "IANA Time Zone Database time zone. For example \"America/New_York\"."
        },
        "version": {
          "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".",
          "type": "string"
        }
      },
      "id": "TimeZone",
      "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).",
      "type": "object"
    },
    "HydrationLogRollupValue": {
      "description": "Represents the result of the rollup of the hydration log data type.",
      "type": "object",
      "id": "HydrationLogRollupValue",
      "properties": {
        "amountConsumed": {
          "$ref": "VolumeQuantityRollup",
          "description": "Rollup for amount consumed."
        }
      }
    },
    "CoreBodyTemperature": {
      "description": "Core body temperature measurement, distinct from peripheral body temperature, reflects the temperature of the body's internal organs.",
      "id": "CoreBodyTemperature",
      "type": "object",
      "properties": {
        "measurementLocation": {
          "description": "Optional. The location of the core body temperature measurement.",
          "enumDescriptions": [
            "Measurement location is unspecified.",
            "Other measurement location.",
            "Armpit measurement location.",
            "Body measurement location.",
            "Ear measurement location.",
            "Finger measurement location.",
            "Gastro-intestinal measurement location.",
            "Mouth measurement location.",
            "Rectum measurement location.",
            "Toe measurement location.",
            "Ear drum measurement location.",
            "Temporal artery measurement location.",
            "Forehead measurement location.",
            "Urinary bladder measurement location.",
            "Nasal measurement location.",
            "Nasopharyngeal measurement location.",
            "Wrist measurement location.",
            "Vagina measurement location."
          ],
          "type": "string",
          "enum": [
            "MEASUREMENT_LOCATION_UNSPECIFIED",
            "OTHER",
            "ARMPIT",
            "BODY",
            "EAR",
            "FINGER",
            "GASTRO_INTESTINAL",
            "MOUTH",
            "RECTUM",
            "TOE",
            "EAR_DRUM",
            "TEMPORAL_ARTERY",
            "FOREHEAD",
            "URINARY_BLADDER",
            "NASAL",
            "NASOPHARYNGEAL",
            "WRIST",
            "VAGINA"
          ]
        },
        "temperatureCelsius": {
          "format": "double",
          "description": "Required. The core body temperature in Celsius. Must be in the range `[0, 100]`.",
          "type": "number"
        },
        "id": {
          "type": "string",
          "description": "Optional. The unique identifier of the core body temperature measurement."
        },
        "sampleTime": {
          "description": "Required. The time at which core body temperature was measured.",
          "$ref": "ObservationSampleTime"
        }
      }
    },
    "SwimLengthsData": {
      "properties": {
        "strokeCount": {
          "type": "string",
          "format": "int64",
          "description": "Required. Number of strokes in the lap."
        },
        "swimStrokeType": {
          "description": "Required. Swim stroke type.",
          "enumDescriptions": [
            "Swim stroke type is unspecified.",
            "Freestyle swim stroke type.",
            "Backstroke swim stroke type.",
            "Breaststroke swim stroke type.",
            "Butterfly swim stroke type."
          ],
          "type": "string",
          "enum": [
            "SWIM_STROKE_TYPE_UNSPECIFIED",
            "FREESTYLE",
            "BACKSTROKE",
            "BREASTSTROKE",
            "BUTTERFLY"
          ]
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        }
      },
      "type": "object",
      "description": "Swim lengths data over the time interval.",
      "id": "SwimLengthsData"
    },
    "HydrationLog": {
      "type": "object",
      "properties": {
        "amountConsumed": {
          "description": "Required. Amount of liquid (ex. water) consumed.",
          "$ref": "VolumeQuantity"
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "SessionTimeInterval"
        }
      },
      "description": "Holds information about a user logged hydration.",
      "id": "HydrationLog"
    },
    "EnergyQuantity": {
      "properties": {
        "kcal": {
          "type": "number",
          "description": "Required. The energy value in kilocalories. Must be in the range `[0, 100000]`.",
          "format": "double"
        },
        "userProvidedUnit": {
          "enumDescriptions": [
            "Unspecified energy unit.",
            "Value representing joule.",
            "Value representing kilojoule.",
            "Value representing kilocalorie.",
            "Value representing small calorie.",
            "Value representing calorie."
          ],
          "description": "Optional. Value representing the user provided unit.",
          "type": "string",
          "enum": [
            "ENERGY_UNIT_UNSPECIFIED",
            "JOULE",
            "KILOJOULE",
            "KILOCALORIE",
            "SMALL_CALORIE",
            "CALORIE"
          ]
        }
      },
      "description": "Represents the energy quantity.",
      "id": "EnergyQuantity",
      "type": "object"
    },
    "VolumeQuantity": {
      "type": "object",
      "description": "Represents the volume quantity.",
      "properties": {
        "milliliters": {
          "type": "number",
          "description": "Required. Value representing the volume in milliliters. Must be in the range `[0, 100000]`.",
          "format": "double"
        },
        "userProvidedUnit": {
          "enumDescriptions": [
            "Unspecified volume unit.",
            "Cup (imperial)",
            "Cup (US)",
            "Fluid ounce (imperial)",
            "Fluid ounce (US)",
            "Liter",
            "Milliliter",
            "Pint (imperial)",
            "Pint (US)"
          ],
          "description": "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.",
          "type": "string",
          "enum": [
            "VOLUME_UNIT_UNSPECIFIED",
            "CUP_IMPERIAL",
            "CUP_US",
            "FLUID_OUNCE_IMPERIAL",
            "FLUID_OUNCE_US",
            "LITER",
            "MILLILITER",
            "PINT_IMPERIAL",
            "PINT_US"
          ]
        }
      },
      "id": "VolumeQuantity"
    },
    "WeightRollupValue": {
      "id": "WeightRollupValue",
      "properties": {
        "weightGramsAvg": {
          "format": "double",
          "description": "Average weight in grams.",
          "type": "number"
        }
      },
      "type": "object",
      "description": "Represents the result of the rollup of the weight data type."
    },
    "Settings": {
      "description": "Settings details.",
      "id": "Settings",
      "type": "object",
      "properties": {
        "waterUnit": {
          "enumDescriptions": [
            "Water unit is not specified.",
            "Water unit is milliliters.",
            "Water unit is fluid ounces.",
            "Water unit is cups."
          ],
          "type": "string",
          "enum": [
            "WATER_UNIT_UNSPECIFIED",
            "WATER_UNIT_ML",
            "WATER_UNIT_FL_OZ",
            "WATER_UNIT_CUP"
          ],
          "description": "Optional. The measurement unit defined in the user's account settings."
        },
        "heightUnit": {
          "description": "Optional. The measurement unit defined in the user's account settings.",
          "enumDescriptions": [
            "Height unit is not specified.",
            "Height unit is inches.",
            "Height unit is cm."
          ],
          "type": "string",
          "enum": [
            "HEIGHT_UNIT_UNSPECIFIED",
            "HEIGHT_UNIT_INCHES",
            "HEIGHT_UNIT_CENTIMETERS"
          ]
        },
        "swimUnit": {
          "description": "Optional. The measurement unit defined in the user's account settings.",
          "enumDescriptions": [
            "Swim unit is not specified.",
            "Swim unit is meters.",
            "Swim unit is yards."
          ],
          "type": "string",
          "enum": [
            "SWIM_UNIT_UNSPECIFIED",
            "SWIM_UNIT_METERS",
            "SWIM_UNIT_YARDS"
          ]
        },
        "glucoseUnit": {
          "enumDescriptions": [
            "Glucose unit is not specified.",
            "Glucose unit is mg/dL.",
            "Glucose unit is mmol/l."
          ],
          "type": "string",
          "enum": [
            "GLUCOSE_UNIT_UNSPECIFIED",
            "GLUCOSE_UNIT_MG_DL",
            "GLUCOSE_UNIT_MMOL_L"
          ],
          "description": "Optional. The measurement unit defined in the user's account settings."
        },
        "foodLanguageCode": {
          "description": "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.",
          "type": "string",
          "readOnly": true
        },
        "strideLengthWalkingType": {
          "type": "string",
          "enum": [
            "STRIDE_LENGTH_TYPE_UNSPECIFIED",
            "STRIDE_LENGTH_TYPE_DEFAULT",
            "STRIDE_LENGTH_TYPE_MANUAL",
            "STRIDE_LENGTH_TYPE_AUTO"
          ],
          "description": "Optional. The stride length type defined in the user's account settings for walking. Updates to this field are currently not supported.",
          "enumDescriptions": [
            "Stride length type is not specified.",
            "Stride length type is computed based on the user's gender and height.",
            "Stride length type is manually set by the user.",
            "Stride length type is determined automatically."
          ]
        },
        "strideLengthRunningType": {
          "enumDescriptions": [
            "Stride length type is not specified.",
            "Stride length type is computed based on the user's gender and height.",
            "Stride length type is manually set by the user.",
            "Stride length type is determined automatically."
          ],
          "type": "string",
          "enum": [
            "STRIDE_LENGTH_TYPE_UNSPECIFIED",
            "STRIDE_LENGTH_TYPE_DEFAULT",
            "STRIDE_LENGTH_TYPE_MANUAL",
            "STRIDE_LENGTH_TYPE_AUTO"
          ],
          "description": "Optional. The stride length type defined in the user's account settings for running. Updates to this field are currently not supported."
        },
        "distanceUnit": {
          "description": "Optional. The measurement unit defined in the user's account settings.",
          "type": "string",
          "enum": [
            "DISTANCE_UNIT_UNSPECIFIED",
            "DISTANCE_UNIT_MILES",
            "DISTANCE_UNIT_KILOMETERS"
          ],
          "enumDescriptions": [
            "Distance unit is not specified.",
            "Distance unit is miles.",
            "Distance unit is kilometers."
          ]
        },
        "temperatureUnit": {
          "type": "string",
          "enum": [
            "TEMPERATURE_UNIT_UNSPECIFIED",
            "TEMPERATURE_UNIT_CELSIUS",
            "TEMPERATURE_UNIT_FAHRENHEIT"
          ],
          "description": "Optional. The measurement unit defined in the user's account settings.",
          "enumDescriptions": [
            "Temperature unit is not specified.",
            "Temperature unit is Celsius.",
            "Temperature unit is Fahrenheit."
          ]
        },
        "name": {
          "type": "string",
          "description": "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. This field is read-only."
        },
        "languageLocale": {
          "description": "Optional. The locale defined in the user's account settings. Updates to this field are currently not supported.",
          "type": "string"
        },
        "weightUnit": {
          "enumDescriptions": [
            "Weight unit is not specified.",
            "Weight unit is pounds.",
            "Weight unit is stones.",
            "Weight unit is kilograms."
          ],
          "description": "Optional. The measurement unit defined in the user's account settings.",
          "type": "string",
          "enum": [
            "WEIGHT_UNIT_UNSPECIFIED",
            "WEIGHT_UNIT_POUNDS",
            "WEIGHT_UNIT_STONE",
            "WEIGHT_UNIT_KILOGRAMS"
          ]
        },
        "timeZone": {
          "description": "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.",
          "type": "string"
        },
        "autoStrideEnabled": {
          "description": "Optional. True if the user's stride length is determined automatically. Updates to this field are currently not supported.",
          "type": "boolean"
        },
        "utcOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Optional. The user's timezone offset relative to UTC. Updates to this field are currently not supported."
        }
      }
    },
    "MobilityMetrics": {
      "type": "object",
      "description": "Mobility workouts specific metrics",
      "id": "MobilityMetrics",
      "properties": {
        "avgGroundContactTimeDuration": {
          "description": "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",
          "type": "string",
          "format": "google-duration"
        },
        "avgVerticalRatio": {
          "type": "number",
          "description": "Optional. Vertical oscillation/stride length between [5.0, 11.0].",
          "format": "double"
        },
        "avgCadenceStepsPerMinute": {
          "format": "double",
          "type": "number",
          "description": "Optional. Cadence is a measure of the frequency of your foot strikes. Steps / min in real time during workout."
        },
        "avgVerticalOscillationMillimeters": {
          "type": "string",
          "description": "Optional. Distance off the ground your center of mass moves with each stride while running",
          "format": "int64"
        },
        "avgStrideLengthMillimeters": {
          "type": "string",
          "format": "int64",
          "description": "Optional. Stride length is a measure of the distance covered by a single stride"
        }
      }
    },
    "CoreBodyTemperatureRollupValue": {
      "properties": {
        "temperatureCelsiusAvg": {
          "format": "double",
          "type": "number",
          "description": "Average core body temperature in Celsius."
        },
        "temperatureCelsiusMin": {
          "description": "Minimum core body temperature in Celsius.",
          "format": "double",
          "type": "number"
        },
        "temperatureCelsiusMax": {
          "format": "double",
          "description": "Maximum core body temperature in Celsius.",
          "type": "number"
        }
      },
      "description": "Represents the result of the rollup of the core body temperature data type.",
      "type": "object",
      "id": "CoreBodyTemperatureRollupValue"
    },
    "RollUpDataPointsRequest": {
      "properties": {
        "pageToken": {
          "description": "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.",
          "type": "string"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32",
          "description": "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."
        },
        "dataSourceFamily": {
          "description": "Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/{user}/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.",
          "type": "string"
        },
        "windowSize": {
          "type": "string",
          "description": "Required. The size of the time window to group data points into before applying the aggregation functions. Must be at least 1 second. If the requested range is not an exact multiple of `window_size`, the final bucket chronologically will be truncated at the upper endpoint of the range and will cover a duration shorter than `window_size`.",
          "format": "google-duration"
        },
        "range": {
          "$ref": "Interval",
          "description": "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."
        }
      },
      "description": "Request to roll up data points by physical time intervals.",
      "type": "object",
      "id": "RollUpDataPointsRequest"
    },
    "TimeInHeartRateZoneValue": {
      "description": "Represents the total time spent in a specific heart rate zone.",
      "type": "object",
      "id": "TimeInHeartRateZoneValue",
      "properties": {
        "heartRateZone": {
          "description": "The heart rate zone.",
          "enumDescriptions": [
            "Unspecified heart rate zone.",
            "The light heart rate zone.",
            "The moderate heart rate zone.",
            "The vigorous heart rate zone.",
            "The peak heart rate zone."
          ],
          "type": "string",
          "enum": [
            "HEART_RATE_ZONE_TYPE_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS",
            "PEAK"
          ]
        },
        "duration": {
          "type": "string",
          "format": "google-duration",
          "description": "The total time spent in the specified heart rate zone."
        }
      }
    },
    "ListSubscriptionsResponse": {
      "type": "object",
      "id": "ListSubscriptionsResponse",
      "description": "Response message for ListSubscriptions.",
      "properties": {
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        },
        "subscriptions": {
          "type": "array",
          "description": "The subscriptions from the specified subscriber.",
          "items": {
            "$ref": "Subscription"
          }
        }
      }
    },
    "GoogleDevicesandservicesHealthV4betaUser": {
      "description": "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.",
      "id": "GoogleDevicesandservicesHealthV4betaUser",
      "properties": {
        "name": {
          "description": "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}`",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MenstrualPeriod": {
      "properties": {
        "notes": {
          "type": "string",
          "description": "Optional. Standard free-form notes captured at manual logging."
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        }
      },
      "description": "Menstrual period record.",
      "id": "MenstrualPeriod",
      "type": "object"
    },
    "HeartRate": {
      "properties": {
        "beatsPerMinute": {
          "format": "int64",
          "description": "Required. The heart rate value in beats per minute. Must be in the range `[1, 300]`.",
          "type": "string"
        },
        "metadata": {
          "description": "Optional. Metadata about the heart rate sample.",
          "$ref": "HeartRateMetadata"
        },
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. Observation time"
        }
      },
      "type": "object",
      "id": "HeartRate",
      "description": "A heart rate measurement."
    },
    "FoodServing": {
      "type": "object",
      "properties": {
        "foodMeasurementUnitDisplayNamePlural": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Legacy measurement unit for serving size in plural form (e.g. \"pieces\", \"grams\")."
        },
        "amount": {
          "description": "Optional. Amount of food consumed, fractional values are supported.",
          "format": "double",
          "type": "number"
        },
        "foodMeasurementUnitDisplayName": {
          "readOnly": true,
          "description": "Output only. Legacy measurement unit for serving size in singular form (e.g. \"piece\", \"gram\").",
          "type": "string"
        },
        "multiplier": {
          "description": "Optional. Value representing the multiplier used to compute the energy when using this serving instead of the default serving.",
          "format": "double",
          "type": "number"
        },
        "foodMeasurementUnit": {
          "type": "string",
          "description": "Required. Food measurement unit"
        }
      },
      "description": "Represents different properties and information about the serving of a specific food.",
      "id": "FoodServing"
    },
    "HeartRateVariabilityMetadata": {
      "properties": {
        "lowFrequencyPower": {
          "format": "double",
          "description": "Optional. The power in interbeat interval fluctuations within the low frequency band (0.04 Hz - 0.15 Hz).",
          "type": "number"
        },
        "highFrequencyPower": {
          "type": "number",
          "description": "Optional. The power in interbeat interval fluctuations within the high frequency band (0.15 Hz - 0.4 Hz).",
          "format": "double"
        }
      },
      "description": "Metadata for HeartRateVariability.",
      "type": "object",
      "id": "HeartRateVariabilityMetadata"
    },
    "RespiratoryRateSleepSummaryStatistics": {
      "properties": {
        "signalToNoise": {
          "description": "Optional. How trustworthy the data is for the computation.",
          "type": "number",
          "format": "double"
        },
        "breathsPerMinute": {
          "format": "double",
          "description": "Required. Average breaths per minute.",
          "type": "number"
        },
        "standardDeviation": {
          "format": "double",
          "description": "Optional. Standard deviation of the respiratory rate during sleep.",
          "type": "number"
        }
      },
      "description": "Respiratory rate statistics for a given sleep stage.",
      "type": "object",
      "id": "RespiratoryRateSleepSummaryStatistics"
    },
    "HeartRateRollupValue": {
      "id": "HeartRateRollupValue",
      "description": "Represents the result of the rollup of the heart rate data type.",
      "type": "object",
      "properties": {
        "beatsPerMinuteMax": {
          "type": "number",
          "description": "The maximum heart rate value in the interval.",
          "format": "double"
        },
        "beatsPerMinuteAvg": {
          "type": "number",
          "description": "The average heart rate value in the interval.",
          "format": "double"
        },
        "beatsPerMinuteMin": {
          "description": "The minimum heart rate value in the interval.",
          "type": "number",
          "format": "double"
        }
      }
    },
    "Application": {
      "id": "Application",
      "properties": {
        "webClientId": {
          "readOnly": true,
          "description": "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.",
          "type": "string"
        },
        "packageName": {
          "description": "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.",
          "type": "string",
          "readOnly": true
        },
        "googleWebClientId": {
          "type": "string",
          "description": "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.",
          "readOnly": true
        }
      },
      "description": "Optional metadata for the application that provided this data.",
      "type": "object"
    },
    "RespiratoryRateSleepSummary": {
      "id": "RespiratoryRateSleepSummary",
      "properties": {
        "fullSleepStats": {
          "$ref": "RespiratoryRateSleepSummaryStatistics",
          "description": "Required. Full respiratory rate statistics."
        },
        "sampleTime": {
          "description": "Required. The time at which respiratory rate was measured.",
          "$ref": "ObservationSampleTime"
        },
        "lightSleepStats": {
          "$ref": "RespiratoryRateSleepSummaryStatistics",
          "description": "Optional. Respiratory rate statistics for light sleep."
        },
        "remSleepStats": {
          "$ref": "RespiratoryRateSleepSummaryStatistics",
          "description": "Optional. Respiratory rate statistics for REM sleep."
        },
        "deepSleepStats": {
          "$ref": "RespiratoryRateSleepSummaryStatistics",
          "description": "Optional. Respiratory rate statistics for deep sleep."
        }
      },
      "description": "Records respiratory rate details during sleep. Can have multiple per day if the user sleeps multiple times.",
      "type": "object"
    },
    "SleepMetadata": {
      "description": "Additional information about how the sleep was processed.",
      "properties": {
        "processed": {
          "description": "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.",
          "type": "boolean",
          "readOnly": true
        },
        "externalId": {
          "description": "Optional. Sleep identifier relevant in the context of the data source.",
          "type": "string"
        },
        "manuallyEdited": {
          "description": "Output only. Some sleeps autodetected by algorithms can be manually edited by users.",
          "readOnly": true,
          "type": "boolean"
        },
        "nap": {
          "description": "Output only. Naps are sleeps without stages and relatively short durations.",
          "readOnly": true,
          "type": "boolean"
        },
        "mainSleep": {
          "readOnly": true,
          "description": "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.",
          "type": "boolean"
        },
        "stagesStatus": {
          "enum": [
            "STAGES_STATE_UNSPECIFIED",
            "REJECTED_COVERAGE",
            "REJECTED_MAX_GAP",
            "REJECTED_START_GAP",
            "REJECTED_END_GAP",
            "REJECTED_NAP",
            "REJECTED_SERVER",
            "TIMEOUT",
            "SUCCEEDED",
            "PROCESSING_INTERNAL_ERROR"
          ],
          "enumDescriptions": [
            "Output only. Sleep stages status is unspecified.",
            "Output only. Sleep stages cannot be computed due to low RR coverage.",
            "Output only. Sleep stages cannot be computed due to the large middle gap (2h).",
            "Output only. Sleep stages cannot be computed due to the large start gap (1h).",
            "Output only. Sleep stages cannot be computed due to the large end gap (1h).",
            "Output only. Sleep stages cannot be computed because the sleep log is a nap (has \u003c 3h duration).",
            "Output only. Sleep stages cannot be computed because input data is not available (PPGV2, wake magnitude, etc).",
            "Output only. Sleep stages cannot be computed due to server timeout.",
            "Output only. Sleep stages successfully computed.",
            "Output only. Sleep stages cannot be computed due to server internal error."
          ],
          "description": "Output only. Sleep stages algorithm processing status.",
          "readOnly": true,
          "type": "string"
        }
      },
      "id": "SleepMetadata",
      "type": "object"
    },
    "SedentaryPeriodRollupValue": {
      "id": "SedentaryPeriodRollupValue",
      "type": "object",
      "properties": {
        "durationSum": {
          "description": "The total time user spent sedentary during the interval.",
          "format": "google-duration",
          "type": "string"
        }
      },
      "description": "Represents the result of the rollup of the user's sedentary periods."
    },
    "NutritionLog": {
      "properties": {
        "food": {
          "description": "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.",
          "type": "string"
        },
        "foodDisplayName": {
          "type": "string",
          "description": "The display name of the food. For identified food logs, this is populated automatically from the referenced food."
        },
        "serving": {
          "description": "Optional. The serving information for the logged food.",
          "$ref": "Serving"
        },
        "totalCarbohydrate": {
          "description": "Optional. The total carbohydrate content, measured in grams.",
          "$ref": "WeightQuantity"
        },
        "totalFat": {
          "description": "Optional. The total fat content, measured in grams.",
          "$ref": "WeightQuantity"
        },
        "interval": {
          "description": "Required. The time window when the food was logged.",
          "$ref": "SessionTimeInterval"
        },
        "energyFromFat": {
          "description": "Optional. The energy from fat, measured in kilocalories (`kcal`).",
          "$ref": "EnergyQuantity"
        },
        "energy": {
          "description": "Optional. The total energy of the food, measured in kilocalories (`kcal`).",
          "$ref": "EnergyQuantity"
        },
        "nutrients": {
          "items": {
            "$ref": "NutrientQuantity"
          },
          "type": "array",
          "description": "Optional. An array of individual nutrient values for the nutrition log."
        },
        "mealType": {
          "type": "string",
          "enum": [
            "MEAL_TYPE_UNSPECIFIED",
            "BEFORE_BREAKFAST",
            "BREAKFAST",
            "BEFORE_LUNCH",
            "LUNCH",
            "BEFORE_DINNER",
            "DINNER",
            "AFTER_DINNER",
            "SNACK",
            "ANYTIME"
          ],
          "description": "Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or `SNACK`.",
          "enumDescriptions": [
            "Unspecified meal type.",
            "Value representing a meal before breakfast.",
            "Value representing a breakfast.",
            "Value representing a morning snack.",
            "Value representing a lunch.",
            "Value representing an afternoon snack.",
            "Value representing dinner.",
            "Value representing an evening snack.",
            "Value representing any meal outside of the usual three meals per day.",
            "Value representing any time (legacy NA)."
          ]
        }
      },
      "id": "NutritionLog",
      "type": "object",
      "description": "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."
    },
    "DailyHeartRateZones": {
      "description": "User's heart rate zone thresholds based on the Karvonen algorithm for a specific day.",
      "type": "object",
      "properties": {
        "heartRateZones": {
          "description": "Required. The heart rate zones.",
          "items": {
            "$ref": "HeartRateZone"
          },
          "type": "array"
        },
        "date": {
          "$ref": "Date",
          "description": "Required. Date (in user's timezone) of the heart rate zones record."
        }
      },
      "id": "DailyHeartRateZones"
    },
    "BloodGlucoseRollupValue": {
      "id": "BloodGlucoseRollupValue",
      "type": "object",
      "properties": {
        "bloodGlucoseMilligramsPerDeciliterAvg": {
          "format": "double",
          "type": "number",
          "description": "Average blood glucose level in mg/dL."
        }
      },
      "description": "Represents the result of the rollup of the blood glucose data type. LINT: LEGACY_NAMES"
    },
    "ExerciseEvent": {
      "type": "object",
      "id": "ExerciseEvent",
      "properties": {
        "eventUtcOffset": {
          "type": "string",
          "description": "Required. Exercise event time offset from UTC",
          "format": "google-duration"
        },
        "eventTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Required. Exercise event time"
        },
        "exerciseEventType": {
          "description": "Required. The type of the event, such as start, stop, pause, resume.",
          "type": "string",
          "enum": [
            "EXERCISE_EVENT_TYPE_UNSPECIFIED",
            "START",
            "STOP",
            "PAUSE",
            "RESUME",
            "AUTO_PAUSE",
            "AUTO_RESUME"
          ],
          "enumDescriptions": [
            "Exercise event type is unspecified.",
            "Exercise start event.",
            "Exercise stop event.",
            "Exercise pause event.",
            "Exercise resume event.",
            "Exercise auto-pause event.",
            "Exercise auto-resume event."
          ]
        }
      },
      "description": "Represents instantaneous events that happen during an exercise, such as start, stop, pause, split."
    },
    "ObservationTimeInterval": {
      "id": "ObservationTimeInterval",
      "type": "object",
      "description": "Represents a time interval of an observed data point.",
      "properties": {
        "endUtcOffset": {
          "format": "google-duration",
          "description": "Required. The offset of the user's local time at the end of the observation relative to the Coordinated Universal Time (UTC).",
          "type": "string"
        },
        "startTime": {
          "format": "google-datetime",
          "description": "Required. Observed interval start time.",
          "type": "string"
        },
        "civilEndTime": {
          "$ref": "CivilDateTime",
          "readOnly": true,
          "description": "Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval"
        },
        "endTime": {
          "type": "string",
          "description": "Required. Observed interval end time.",
          "format": "google-datetime"
        },
        "startUtcOffset": {
          "format": "google-duration",
          "description": "Required. The offset of the user's local time at the start of the observation relative to the Coordinated Universal Time (UTC).",
          "type": "string"
        },
        "civilStartTime": {
          "readOnly": true,
          "$ref": "CivilDateTime",
          "description": "Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval"
        }
      }
    },
    "Electrocardiogram": {
      "id": "Electrocardiogram",
      "description": "Represents an Electrocardiogram (ECG) measurement session. This data type is based on SaMD feature and any changes to it may require additional review.",
      "properties": {
        "waveformSamples": {
          "items": {
            "format": "int32",
            "type": "integer"
          },
          "description": "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.",
          "type": "array"
        },
        "medicalDeviceInfo": {
          "readOnly": true,
          "$ref": "MedicalDeviceInfo",
          "description": "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`."
        },
        "interval": {
          "description": "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.",
          "$ref": "SessionTimeInterval"
        },
        "leadNumber": {
          "description": "Optional. The number of leads used for ECG reading.",
          "format": "int32",
          "type": "integer"
        },
        "millivoltsScalingFactor": {
          "description": "Optional. The factor by which to divide waveform samples to get voltage in millivolts: millivolts = waveform_sample / millivolts_scaling_factor.",
          "format": "int32",
          "type": "integer"
        },
        "beatsPerMinuteAvg": {
          "description": "Optional. Average heart rate recorded during ECG reading in beats per minute.",
          "type": "string",
          "format": "int64"
        },
        "samplingFrequencyHertz": {
          "format": "int32",
          "description": "Optional. The sampling frequency of waveform samples in hertz.",
          "type": "integer"
        },
        "resultClassification": {
          "description": "Optional. The result classification of the ECG reading.",
          "enumDescriptions": [
            "Unspecified result classification.",
            "Heart rhythm appears normal. Corresponds to result \"Normal Sinus Rhythm\".",
            "Signs of Atrial Fibrillation detected. Corresponds to result \"Atrial Fibrillation\".",
            "The reading is inconclusive as it could not be classified. Corresponds to result \"Inconclusive\".",
            "The reading is inconclusive as it could not be classified because heart rate is high (\u003e120bpm). Corresponds to result \"Inconclusive: High heart rate\".",
            "The reading is inconclusive as it could not be classified because heart rate is low (\u003c50bpm). Corresponds to result \"Inconclusive: Low heart rate\".",
            "The reading is unreadable.",
            "The reading was not analyzed."
          ],
          "type": "string",
          "enum": [
            "RESULT_CLASSIFICATION_UNSPECIFIED",
            "NORMAL_SINUS_RHYTHM",
            "ATRIAL_FIBRILLATION",
            "INCONCLUSIVE",
            "INCONCLUSIVE_HIGH_HEART_RATE",
            "INCONCLUSIVE_LOW_HEART_RATE",
            "UNREADABLE",
            "NOT_ANALYZED"
          ]
        }
      },
      "type": "object"
    },
    "Steps": {
      "description": "Step count over the time interval.",
      "properties": {
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        },
        "count": {
          "format": "int64",
          "type": "string",
          "description": "Required. Number of steps in the recorded interval. Must be in the range `[0, 1000000]`."
        }
      },
      "type": "object",
      "id": "Steps"
    },
    "ActiveZoneMinutes": {
      "type": "object",
      "description": "Record of active zone minutes in a given time interval.",
      "properties": {
        "heartRateZone": {
          "description": "Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.",
          "type": "string",
          "enum": [
            "HEART_RATE_ZONE_UNSPECIFIED",
            "FAT_BURN",
            "CARDIO",
            "PEAK"
          ],
          "enumDescriptions": [
            "Unspecified heart rate zone.",
            "The fat burn heart rate zone.",
            "The cardio heart rate zone.",
            "The peak heart rate zone."
          ]
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        },
        "activeZoneMinutes": {
          "description": "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).",
          "format": "int64",
          "type": "string"
        }
      },
      "id": "ActiveZoneMinutes"
    },
    "SleepStage": {
      "description": "Sleep stage segment.",
      "type": "object",
      "properties": {
        "startTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Required. Sleep stage start time."
        },
        "endTime": {
          "description": "Required. Sleep stage end time.",
          "format": "google-datetime",
          "type": "string"
        },
        "createTime": {
          "description": "Output only. Creation time of this sleep stages segment.",
          "readOnly": true,
          "format": "google-datetime",
          "type": "string"
        },
        "updateTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. Last update time of this sleep stages segment."
        },
        "startUtcOffset": {
          "format": "google-duration",
          "description": "Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).",
          "type": "string"
        },
        "endUtcOffset": {
          "type": "string",
          "description": "Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).",
          "format": "google-duration"
        },
        "type": {
          "enumDescriptions": [
            "The default unset value.",
            "Sleep stage AWAKE.",
            "Sleep stage LIGHT.",
            "Sleep stage DEEP.",
            "Sleep stage REM.",
            "Sleep stage ASLEEP.",
            "Sleep stage RESTLESS."
          ],
          "description": "Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.",
          "type": "string",
          "enum": [
            "SLEEP_STAGE_TYPE_UNSPECIFIED",
            "AWAKE",
            "LIGHT",
            "DEEP",
            "REM",
            "ASLEEP",
            "RESTLESS"
          ]
        }
      },
      "id": "SleepStage"
    },
    "MetricsSummary": {
      "type": "object",
      "description": "Summary metrics for an exercise.",
      "properties": {
        "totalSwimLengths": {
          "format": "double",
          "type": "number",
          "description": "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."
        },
        "distanceMillimeters": {
          "type": "number",
          "format": "double",
          "description": "Optional. Total distance covered by the user during the exercise."
        },
        "averageHeartRateBeatsPerMinute": {
          "type": "string",
          "format": "int64",
          "description": "Optional. Average heart rate during the exercise."
        },
        "runVo2Max": {
          "description": "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.",
          "type": "number",
          "format": "double"
        },
        "steps": {
          "type": "string",
          "description": "Optional. Total steps taken during the exercise.",
          "format": "int64"
        },
        "mobilityMetrics": {
          "$ref": "MobilityMetrics",
          "description": "Optional. Mobility workouts specific metrics. Only present in the advanced running exercises."
        },
        "averagePaceSecondsPerMeter": {
          "type": "number",
          "format": "double",
          "description": "Optional. Average pace in seconds per meter."
        },
        "heartRateZoneDurations": {
          "description": "Optional. Time spent in each heart rate zone.",
          "$ref": "TimeInHeartRateZones"
        },
        "caloriesKcal": {
          "format": "double",
          "type": "number",
          "description": "Optional. Total calories burned by the user during the exercise."
        },
        "elevationGainMillimeters": {
          "type": "number",
          "description": "Optional. Total elevation gain during the exercise.",
          "format": "double"
        },
        "activeZoneMinutes": {
          "format": "int64",
          "type": "string",
          "description": "Optional. Total active zone minutes for the exercise."
        },
        "averageSpeedMillimetersPerSecond": {
          "description": "Optional. Average speed in millimeters per second.",
          "format": "double",
          "type": "number"
        }
      },
      "id": "MetricsSummary"
    },
    "RollUpDataPointsResponse": {
      "type": "object",
      "description": "Response containing the list of rolled up data points.",
      "properties": {
        "rollupDataPoints": {
          "items": {
            "$ref": "RollupDataPoint"
          },
          "type": "array",
          "description": "Values for each aggregation time window."
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."
        }
      },
      "id": "RollUpDataPointsResponse"
    },
    "RollupDataPoint": {
      "type": "object",
      "id": "RollupDataPoint",
      "description": "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.",
      "properties": {
        "swimLengthsData": {
          "description": "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.",
          "$ref": "SwimLengthsDataRollupValue"
        },
        "activityLevel": {
          "$ref": "ActivityLevelRollupValue",
          "description": "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."
        },
        "distance": {
          "$ref": "DistanceRollupValue",
          "description": "Returned by default when rolling up data points from the `distance` data type, or when requested explicitly using the `distance` rollup type identifier."
        },
        "runVo2Max": {
          "$ref": "RunVO2MaxRollupValue",
          "description": "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."
        },
        "caloriesInHeartRateZone": {
          "$ref": "CaloriesInHeartRateZoneRollupValue",
          "description": "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."
        },
        "floors": {
          "$ref": "FloorsRollupValue",
          "description": "Returned by default when rolling up data points from the `floors` data type, or when requested explicitly using the `floors` rollup type identifier."
        },
        "bloodGlucose": {
          "description": "Returned by default when rolling up data points from the `blood-glucose` data type.",
          "$ref": "BloodGlucoseRollupValue"
        },
        "sedentaryPeriod": {
          "description": "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.",
          "$ref": "SedentaryPeriodRollupValue"
        },
        "altitude": {
          "$ref": "AltitudeRollupValue",
          "description": "Returned by default when rolling up data points from the `altitude` data type, or when requested explicitly using the `altitude` rollup type identifier."
        },
        "totalCalories": {
          "$ref": "TotalCaloriesRollupValue",
          "description": "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."
        },
        "endTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "End time of the window this value aggregates over"
        },
        "hydrationLog": {
          "description": "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.",
          "$ref": "HydrationLogRollupValue"
        },
        "timeInHeartRateZone": {
          "$ref": "TimeInHeartRateZoneRollupValue",
          "description": "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."
        },
        "startTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Start time of the window this value aggregates over"
        },
        "activeMinutes": {
          "description": "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.",
          "$ref": "ActiveMinutesRollupValue"
        },
        "bodyFat": {
          "$ref": "BodyFatRollupValue",
          "description": "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."
        },
        "steps": {
          "$ref": "StepsRollupValue",
          "description": "Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier."
        },
        "coreBodyTemperature": {
          "description": "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.",
          "$ref": "CoreBodyTemperatureRollupValue"
        },
        "weight": {
          "description": "Returned by default when rolling up data points from the `weight` data type, or when requested explicitly using the `weight` rollup type identifier.",
          "$ref": "WeightRollupValue"
        },
        "heartRate": {
          "$ref": "HeartRateRollupValue",
          "description": "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."
        },
        "activeZoneMinutes": {
          "description": "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.",
          "$ref": "ActiveZoneMinutesRollupValue"
        },
        "nutritionLog": {
          "$ref": "NutritionLogRollupValue",
          "description": "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."
        },
        "activeEnergyBurned": {
          "$ref": "ActiveEnergyBurnedRollupValue",
          "description": "Returned by default when rolling up data points from the `active-energy-burned` data type."
        }
      }
    },
    "HeartRateVariabilityPersonalRangeRollupValue": {
      "description": "Represents the result of the rollup of the user's daily heart rate variability personal range.",
      "properties": {
        "averageHeartRateVariabilityMillisecondsMax": {
          "description": "The upper bound of the user's average heart rate variability personal range.",
          "format": "double",
          "type": "number"
        },
        "averageHeartRateVariabilityMillisecondsMin": {
          "description": "The lower bound of the user's average heart rate variability personal range.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object",
      "id": "HeartRateVariabilityPersonalRangeRollupValue"
    },
    "ActiveZoneMinutesRollupValue": {
      "id": "ActiveZoneMinutesRollupValue",
      "type": "object",
      "properties": {
        "sumInCardioHeartZone": {
          "type": "string",
          "format": "int64",
          "description": "Active zone minutes in `HeartRateZone.CARDIO`."
        },
        "sumInFatBurnHeartZone": {
          "format": "int64",
          "type": "string",
          "description": "Active zone minutes in `HeartRateZone.FAT_BURN`."
        },
        "sumInPeakHeartZone": {
          "type": "string",
          "description": "Active zone minutes in `HeartRateZone.PEAK`.",
          "format": "int64"
        }
      },
      "description": "Represents the result of the rollup of the active zone minutes data type."
    },
    "Sleep": {
      "properties": {
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. Creation time of this sleep observation."
        },
        "type": {
          "description": "Optional. SleepType: classic or stages.",
          "enumDescriptions": [
            "Sleep type is unspecified.",
            "Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.",
            "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",
          "enum": [
            "SLEEP_TYPE_UNSPECIFIED",
            "CLASSIC",
            "STAGES"
          ]
        },
        "metadata": {
          "description": "Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.",
          "$ref": "SleepMetadata"
        },
        "summary": {
          "readOnly": true,
          "description": "Output only. Sleep summary: metrics and stages summary.",
          "$ref": "SleepSummary"
        },
        "stages": {
          "description": "Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.",
          "type": "array",
          "items": {
            "$ref": "SleepStage"
          }
        },
        "interval": {
          "description": "Required. Observed sleep interval.",
          "$ref": "SessionTimeInterval"
        },
        "outOfBedSegments": {
          "description": "Optional. “Out of bed” segments that can overlap with sleep stages.",
          "items": {
            "$ref": "OutOfBedSegment"
          },
          "type": "array"
        },
        "updateTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. Last update time of this sleep observation.",
          "readOnly": true
        },
        "shortAwakenings": {
          "items": {
            "$ref": "SleepStage"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. List of short awake segments (under a set threshold) that are part of the sleep session. These can overlap with sleep stages."
        }
      },
      "description": "A sleep session possibly including stages.",
      "type": "object",
      "id": "Sleep"
    },
    "Subscriber": {
      "id": "Subscriber",
      "type": "object",
      "properties": {
        "subscriberConfigs": {
          "items": {
            "$ref": "SubscriberConfig"
          },
          "type": "array",
          "description": "Optional. Configuration for the subscriber."
        },
        "endpointAuthorization": {
          "$ref": "EndpointAuthorization",
          "description": "Required. Authorization mechanism for a subscriber endpoint. This is required to ensure the endpoint can be verified."
        },
        "endpointUri": {
          "type": "string",
          "description": "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."
        },
        "updateTime": {
          "description": "Output only. The time at which the subscriber was last updated.",
          "format": "google-datetime",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "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": "string"
        },
        "state": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "UNVERIFIED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "Output only. The state of the subscriber.",
          "enumDescriptions": [
            "Represents an unspecified subscriber state.",
            "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.",
            "Represents an active subscriber. The endpoint has been verified.",
            "Represents an inactive subscriber."
          ]
        },
        "createTime": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The time at which the subscriber was created.",
          "format": "google-datetime"
        }
      },
      "description": "-- Resource Messages -- A subscriber receives notifications from Google Health API."
    },
    "TimeOfDay": {
      "type": "object",
      "id": "TimeOfDay",
      "description": "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`.",
      "properties": {
        "minutes": {
          "type": "integer",
          "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.",
          "format": "int32"
        },
        "nanos": {
          "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.",
          "type": "integer",
          "format": "int32"
        },
        "seconds": {
          "format": "int32",
          "description": "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.",
          "type": "integer"
        },
        "hours": {
          "description": "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.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "HeartRateMetadata": {
      "id": "HeartRateMetadata",
      "description": "Heart rate metadata.",
      "type": "object",
      "properties": {
        "motionContext": {
          "type": "string",
          "enum": [
            "MOTION_CONTEXT_UNSPECIFIED",
            "ACTIVE",
            "SEDENTARY"
          ],
          "description": "Optional. Indicates the user’s level of activity when the heart rate sample was measured",
          "enumDescriptions": [
            "The default value when no data is available.",
            "The user is active.",
            "The user is inactive."
          ]
        },
        "sensorLocation": {
          "enumDescriptions": [
            "The default value when no data is available.",
            "Chest sensor.",
            "Wrist sensor.",
            "Finger sensor.",
            "Hand sensor.",
            "Ear lobe sensor.",
            "Foot sensor."
          ],
          "type": "string",
          "enum": [
            "SENSOR_LOCATION_UNSPECIFIED",
            "CHEST",
            "WRIST",
            "FINGER",
            "HAND",
            "EAR_LOBE",
            "FOOT"
          ],
          "description": "Optional. Indicates the location of the sensor that measured the heart rate."
        }
      }
    },
    "StepsRollupValue": {
      "id": "StepsRollupValue",
      "description": "Represents the result of the rollup of the steps data type.",
      "properties": {
        "countSum": {
          "format": "int64",
          "description": "Total number of steps in the interval.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CaloriesInHeartRateZoneRollupValue": {
      "type": "object",
      "id": "CaloriesInHeartRateZoneRollupValue",
      "description": "Represents the result of the rollup of the calories in heart rate zone data type.",
      "properties": {
        "caloriesInHeartRateZones": {
          "description": "List of calories burned in each heart rate zone.",
          "type": "array",
          "items": {
            "$ref": "CaloriesInHeartRateZoneValue"
          }
        }
      }
    },
    "TimeInHeartRateZone": {
      "id": "TimeInHeartRateZone",
      "type": "object",
      "description": "Time in heart rate zone record. It's an interval spent in specific heart rate zone.",
      "properties": {
        "heartRateZoneType": {
          "description": "Required. Heart rate zone type.",
          "enumDescriptions": [
            "Unspecified heart rate zone.",
            "The light heart rate zone.",
            "The moderate heart rate zone.",
            "The vigorous heart rate zone.",
            "The peak heart rate zone."
          ],
          "type": "string",
          "enum": [
            "HEART_RATE_ZONE_TYPE_UNSPECIFIED",
            "LIGHT",
            "MODERATE",
            "VIGOROUS",
            "PEAK"
          ]
        },
        "interval": {
          "description": "Required. Observed interval.",
          "$ref": "ObservationTimeInterval"
        }
      }
    },
    "ActivityLevelRollupValue": {
      "type": "object",
      "id": "ActivityLevelRollupValue",
      "description": "Represents the result of the rollup of the activity level data type.",
      "properties": {
        "activityLevelRollupsByActivityLevelType": {
          "type": "array",
          "description": "List of total durations in each activity level type.",
          "items": {
            "$ref": "ActivityLevelRollupByActivityLevelType"
          }
        }
      }
    },
    "CreateSubscriberPayload": {
      "description": "Payload for creating a subscriber.",
      "type": "object",
      "properties": {
        "endpointUri": {
          "description": "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.",
          "type": "string"
        },
        "endpointAuthorization": {
          "description": "Required. Authorization mechanism for the subscriber endpoint. The `secret` within this message is crucial for endpoint verification and for securing webhook notifications.",
          "$ref": "EndpointAuthorization"
        },
        "subscriberConfigs": {
          "type": "array",
          "description": "Optional. Configuration for the subscriber.",
          "items": {
            "$ref": "SubscriberConfig"
          }
        }
      },
      "id": "CreateSubscriberPayload"
    },
    "IrregularRhythmNotification": {
      "type": "object",
      "description": "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.",
      "properties": {
        "alertWindows": {
          "type": "array",
          "description": "Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.",
          "items": {
            "$ref": "AlertWindow"
          }
        },
        "interval": {
          "$ref": "SessionTimeInterval",
          "description": "Required. Observed interval."
        },
        "medicalDeviceInfo": {
          "description": "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`.",
          "readOnly": true,
          "$ref": "MedicalDeviceInfo"
        }
      },
      "id": "IrregularRhythmNotification"
    },
    "ActiveEnergyBurned": {
      "description": "Energy burned as part of an activity, excluding the basal energy burn.",
      "id": "ActiveEnergyBurned",
      "properties": {
        "kcal": {
          "format": "double",
          "description": "Required. Energy burned during an activity, measured in kilocalories. Must be in the range `[0, 1000000]`.",
          "type": "number"
        },
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval"
        }
      },
      "type": "object"
    },
    "FoodMeasurementUnit": {
      "id": "FoodMeasurementUnit",
      "description": "Represents a food measurement unit.",
      "type": "object",
      "properties": {
        "displayName": {
          "description": "Required. The display name of the food measurement unit (e.g., \"gram\", \"piece\").",
          "type": "string"
        },
        "pluralDisplayName": {
          "description": "Optional. The plural display name of the food measurement unit (e.g., \"grams\", \"pieces\").",
          "type": "string"
        }
      }
    },
    "Status": {
      "description": "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).",
      "properties": {
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string",
          "description": "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."
        },
        "details": {
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            }
          },
          "type": "array"
        }
      },
      "type": "object",
      "id": "Status"
    },
    "FloorsRollupValue": {
      "type": "object",
      "id": "FloorsRollupValue",
      "description": "Represents the result of the rollup of the user's floors.",
      "properties": {
        "countSum": {
          "format": "int64",
          "type": "string",
          "description": "Sum of the floors count."
        }
      }
    },
    "VolumeQuantityRollup": {
      "id": "VolumeQuantityRollup",
      "type": "object",
      "properties": {
        "millilitersSum": {
          "description": "Required. The sum of volume in milliliters.",
          "format": "double",
          "type": "number"
        },
        "userProvidedUnitLast": {
          "description": "Optional. The user provided unit on the last element.",
          "enumDescriptions": [
            "Unspecified volume unit.",
            "Cup (imperial)",
            "Cup (US)",
            "Fluid ounce (imperial)",
            "Fluid ounce (US)",
            "Liter",
            "Milliliter",
            "Pint (imperial)",
            "Pint (US)"
          ],
          "type": "string",
          "enum": [
            "VOLUME_UNIT_UNSPECIFIED",
            "CUP_IMPERIAL",
            "CUP_US",
            "FLUID_OUNCE_IMPERIAL",
            "FLUID_OUNCE_US",
            "LITER",
            "MILLILITER",
            "PINT_IMPERIAL",
            "PINT_US"
          ]
        }
      },
      "description": "Rollup for volume quantity."
    },
    "Identity": {
      "description": "Represents details about the Google user's identity.",
      "properties": {
        "healthUserId": {
          "description": "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.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "Identifier. The resource name of this Identity resource. Format: `users/me/identity`",
          "type": "string"
        },
        "legacyUserId": {
          "type": "string",
          "description": "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.",
          "readOnly": true
        }
      },
      "type": "object",
      "id": "Identity"
    },
    "NutrientQuantityRollup": {
      "description": "Nutrient quantity rollup.",
      "id": "NutrientQuantityRollup",
      "properties": {
        "quantity": {
          "$ref": "WeightQuantityRollup",
          "description": "Required. Aggregated nutrient weight."
        },
        "nutrient": {
          "enumDescriptions": [
            "Unspecified nutrient.",
            "Value representing biotin nutrient.",
            "Value representing caffeine nutrient.",
            "Value representing calcium nutrient.",
            "Value representing chloride nutrient.",
            "Value representing carbohydrates nutrient.",
            "Value representing cholesterol nutrient.",
            "Value representing chromium nutrient.",
            "Value representing copper nutrient.",
            "Value representing dietary fiber nutrient.",
            "Value representing folic acid nutrient.",
            "Value representing iodine nutrient.",
            "Value representing iron nutrient.",
            "Value representing magnesium nutrient.",
            "Value representing manganese nutrient.",
            "Value representing molybdenum nutrient.",
            "Value representing monounsaturated fat nutrient.",
            "Value representing niacin nutrient.",
            "Value representing pantothenic acid nutrient.",
            "Value representing phosphorus nutrient.",
            "Value representing polyunsaturated fat nutrient.",
            "Value representing potassium nutrient.",
            "Value representing protein nutrient.",
            "Value representing riboflavin nutrient.",
            "Value representing saturated fat nutrient.",
            "Value representing selenium nutrient.",
            "Value representing sodium nutrient.",
            "Value representing sugar nutrient.",
            "Value representing thiamin nutrient.",
            "Value representing trans fat nutrient.",
            "Value representing unsaturated fat nutrient.",
            "Value representing vitamin A nutrient.",
            "Value representing vitamin B12 nutrient.",
            "Value representing vitamin B6 nutrient.",
            "Value representing vitamin C nutrient.",
            "Value representing vitamin D nutrient.",
            "Value representing vitamin E nutrient.",
            "Value representing vitamin K nutrient.",
            "Value representing zinc nutrient.",
            "Value representing folate nutrient."
          ],
          "description": "Required. Aggregated nutrient.",
          "type": "string",
          "enum": [
            "NUTRIENT_UNSPECIFIED",
            "BIOTIN",
            "CAFFEINE",
            "CALCIUM",
            "CHLORIDE",
            "CARBOHYDRATES",
            "CHOLESTEROL",
            "CHROMIUM",
            "COPPER",
            "DIETARY_FIBER",
            "FOLIC_ACID",
            "IODINE",
            "IRON",
            "MAGNESIUM",
            "MANGANESE",
            "MOLYBDENUM",
            "MONOUNSATURATED_FAT",
            "NIACIN",
            "PANTOTHENIC_ACID",
            "PHOSPHORUS",
            "POLYUNSATURATED_FAT",
            "POTASSIUM",
            "PROTEIN",
            "RIBOFLAVIN",
            "SATURATED_FAT",
            "SELENIUM",
            "SODIUM",
            "SUGAR",
            "THIAMIN",
            "TRANS_FAT",
            "UNSATURATED_FAT",
            "VITAMIN_A",
            "VITAMIN_B12",
            "VITAMIN_B6",
            "VITAMIN_C",
            "VITAMIN_D",
            "VITAMIN_E",
            "VITAMIN_K",
            "ZINC",
            "FOLATE"
          ]
        }
      },
      "type": "object"
    },
    "GoogleDevicesandservicesHealthV4betaWebhookNotificationCloudLog": {
      "id": "GoogleDevicesandservicesHealthV4betaWebhookNotificationCloudLog",
      "type": "object",
      "properties": {
        "httpResponse": {
          "$ref": "HttpResponse",
          "description": "Required. Represents the HTTP response. This message includes the status code, reason phrase, headers, and body."
        }
      },
      "description": "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."
    },
    "GoogleDevicesandservicesHealthV4betaDataType": {
      "id": "GoogleDevicesandservicesHealthV4betaDataType",
      "description": "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.",
      "type": "object",
      "properties": {
        "name": {
          "description": "Identifier. The resource name of the data type. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values.",
          "type": "string"
        }
      }
    },
    "Serving": {
      "id": "Serving",
      "properties": {
        "foodMeasurementUnitDisplayName": {
          "readOnly": true,
          "description": "Output only. Legacy measurement unit for serving size in singular form (e.g. \"piece\", \"gram\").",
          "type": "string"
        },
        "amount": {
          "format": "double",
          "type": "number",
          "description": "Optional. The number of servings."
        },
        "foodMeasurementUnit": {
          "description": "Required. Food measurement unit",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Represents different properties and information about the serving of a specific food."
    },
    "OvulationTest": {
      "id": "OvulationTest",
      "description": "Ovulation test record.",
      "properties": {
        "result": {
          "enumDescriptions": [
            "Unspecified result.",
            "Negative result.",
            "Luteinizing hormone surge.",
            "Estrogen surge.",
            "Positive result.",
            "Indeterminate result."
          ],
          "type": "string",
          "enum": [
            "OVULATION_TEST_RESULT_UNSPECIFIED",
            "NEGATIVE",
            "LUTEINIZING_HORMONE_SURGE",
            "ESTROGEN_SURGE",
            "POSITIVE",
            "INDETERMINATE"
          ],
          "description": "Required. The result of the ovulation test."
        },
        "sampleTime": {
          "description": "Required. The time at which ovulation test was measured.",
          "$ref": "ObservationSampleTime"
        }
      },
      "type": "object"
    },
    "TotalCaloriesRollupValue": {
      "properties": {
        "kcalSum": {
          "format": "double",
          "type": "number",
          "description": "Sum of the total calories in kilocalories."
        }
      },
      "description": "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 \u003e= \"2026-04-20T00:00:00Z\" AND total_calories.interval.start_time \u003c \"2026-04-21T00:00:00Z\"`",
      "id": "TotalCaloriesRollupValue",
      "type": "object"
    },
    "ExportExerciseTcxResponse": {
      "description": "Represents a Response for exporting exercise data in TCX format.",
      "type": "object",
      "id": "ExportExerciseTcxResponse",
      "properties": {
        "tcxData": {
          "description": "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.",
          "type": "string"
        }
      }
    },
    "ExerciseMetadata": {
      "properties": {
        "hasGps": {
          "type": "boolean",
          "description": "Optional. Whether the exercise had GPS tracking."
        },
        "poolLengthMillimeters": {
          "type": "string",
          "description": "Optional. Pool length in millimeters. Only present in the swimming exercises.",
          "format": "int64"
        }
      },
      "description": "Additional exercise metadata.",
      "type": "object",
      "id": "ExerciseMetadata"
    },
    "AltitudeRollupValue": {
      "properties": {
        "gainMillimetersSum": {
          "format": "int64",
          "type": "string",
          "description": "Sum of the altitude gain in millimeters."
        }
      },
      "description": "Represents the result of the rollup of the user's altitude.",
      "id": "AltitudeRollupValue",
      "type": "object"
    },
    "Floors": {
      "id": "Floors",
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval"
        },
        "count": {
          "description": "Required. Number of floors in the recorded interval. Must be in the range `[0, 1000000]`.",
          "type": "string",
          "format": "int64"
        }
      },
      "description": "Gained elevation measured in floors over the time interval"
    },
    "ActivityLevelRollupByActivityLevelType": {
      "description": "Represents the total duration in a specific activity level type.",
      "type": "object",
      "properties": {
        "totalDuration": {
          "type": "string",
          "description": "Total duration in the activity level type.",
          "format": "google-duration"
        },
        "activityLevelType": {
          "description": "Activity level type.",
          "enumDescriptions": [
            "Unspecified activity level type.",
            "Sedentary activity level.",
            "Lightly active activity level.",
            "Moderately active activity level.",
            "Very active activity level."
          ],
          "type": "string",
          "enum": [
            "ACTIVITY_LEVEL_TYPE_UNSPECIFIED",
            "SEDENTARY",
            "LIGHTLY_ACTIVE",
            "MODERATELY_ACTIVE",
            "VERY_ACTIVE"
          ]
        }
      },
      "id": "ActivityLevelRollupByActivityLevelType"
    },
    "OutOfBedSegment": {
      "properties": {
        "startUtcOffset": {
          "description": "Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).",
          "format": "google-duration",
          "type": "string"
        },
        "endTime": {
          "format": "google-datetime",
          "description": "Required. Segment end time.",
          "type": "string"
        },
        "startTime": {
          "type": "string",
          "description": "Required. Segment tart time.",
          "format": "google-datetime"
        },
        "endUtcOffset": {
          "description": "Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).",
          "type": "string",
          "format": "google-duration"
        }
      },
      "id": "OutOfBedSegment",
      "type": "object",
      "description": "A time interval to represent an out-of-bed segment."
    },
    "BasalEnergyBurned": {
      "description": "Number of calories burned due to basal metabolic rate (BMR) over a period of time.",
      "id": "BasalEnergyBurned",
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval."
        },
        "kcal": {
          "type": "number",
          "description": "Required. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.",
          "format": "double"
        }
      }
    },
    "HeartRateVariability": {
      "type": "object",
      "id": "HeartRateVariability",
      "properties": {
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. The time of the heart rate variability measurement."
        },
        "rootMeanSquareOfSuccessiveDifferencesMilliseconds": {
          "format": "double",
          "type": "number",
          "description": "Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health. Must be in the range `[1, 200]`."
        },
        "metadata": {
          "description": "Optional. Additional information about the heart rate variability measurement.",
          "$ref": "HeartRateVariabilityMetadata"
        },
        "standardDeviationMilliseconds": {
          "description": "Optional. The standard deviation of the heart rate variability measurement.",
          "type": "number",
          "format": "double"
        }
      },
      "description": "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)."
    },
    "DailyRestingHeartRateMetadata": {
      "id": "DailyRestingHeartRateMetadata",
      "description": "Metadata for the daily resting heart rate.",
      "properties": {
        "calculationMethod": {
          "type": "string",
          "enum": [
            "CALCULATION_METHOD_UNSPECIFIED",
            "WITH_SLEEP",
            "ONLY_WITH_AWAKE_DATA"
          ],
          "description": "Required. The method used to calculate the resting heart rate.",
          "enumDescriptions": [
            "The calculation method is unspecified.",
            "The resting heart rate is calculated using the sleep data.",
            "The resting heart rate is calculated using only awake data."
          ]
        }
      },
      "type": "object"
    },
    "Altitude": {
      "id": "Altitude",
      "description": "Captures the altitude gain (i.e. deltas), and not level above sea, for a user in millimeters.",
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "ObservationTimeInterval",
          "description": "Required. Observed interval."
        },
        "gainMillimeters": {
          "type": "string",
          "format": "int64",
          "description": "Required. Altitude gain in millimeters over the observed interval. Must be in the range `[-1000000000, 1000000000]`."
        }
      }
    },
    "RestingHeartRatePersonalRangeRollupValue": {
      "type": "object",
      "id": "RestingHeartRatePersonalRangeRollupValue",
      "description": "Represents the rollup value for the daily resting heart rate data type.",
      "properties": {
        "beatsPerMinuteMax": {
          "format": "double",
          "type": "number",
          "description": "The upper bound of the user's daily resting heart rate personal range."
        },
        "beatsPerMinuteMin": {
          "type": "number",
          "description": "The lower bound of the user's daily resting heart rate personal range.",
          "format": "double"
        }
      }
    },
    "OxygenSaturation": {
      "properties": {
        "sampleTime": {
          "$ref": "ObservationSampleTime",
          "description": "Required. The time at which oxygen saturation was measured."
        },
        "percentage": {
          "type": "number",
          "format": "double",
          "description": "Required. The oxygen saturation percentage. Must be in the range `[0, 100]`."
        }
      },
      "type": "object",
      "description": "Captures the user's instantaneous oxygen saturation percentage (SpO2).",
      "id": "OxygenSaturation"
    },
    "ActiveMinutesRollupValue": {
      "description": "Represents the result of the rollup of the active minutes data type.",
      "type": "object",
      "properties": {
        "activeMinutesRollupByActivityLevel": {
          "items": {
            "$ref": "ActiveMinutesRollupByActivityLevel"
          },
          "type": "array",
          "description": "Active minutes by activity level. At most one record per activity level is allowed."
        }
      },
      "id": "ActiveMinutesRollupValue"
    },
    "WeightQuantityRollup": {
      "description": "Rollup for the weight.",
      "id": "WeightQuantityRollup",
      "type": "object",
      "properties": {
        "gramsSum": {
          "description": "Required. The sum of the weight in grams.",
          "type": "number",
          "format": "double"
        },
        "userProvidedUnitLast": {
          "description": "Optional. The user provided unit on the last element.",
          "type": "string",
          "enum": [
            "WEIGHT_UNIT_UNSPECIFIED",
            "GRAM",
            "KILOGRAM",
            "OUNCE",
            "POUND",
            "STONE",
            "MILLIGRAM",
            "MICROGRAM",
            "NANOGRAM"
          ],
          "enumDescriptions": [
            "Unspecified weight unit.",
            "Value representing gram.",
            "Value representing kilogram.",
            "Value representing ounce.",
            "Value representing pound.",
            "Value representing stone.",
            "Value representing milligram.",
            "Value representing microgram.",
            "Value representing nanogram."
          ]
        }
      }
    },
    "GoogleDevicesandservicesHealthV4DataType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier. The resource name of the data type. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values."
        }
      },
      "description": "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.",
      "id": "GoogleDevicesandservicesHealthV4DataType"
    },
    "DailyRollUpDataPointsRequest": {
      "type": "object",
      "properties": {
        "pageToken": {
          "type": "string",
          "description": "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."
        },
        "windowSizeDays": {
          "format": "int32",
          "description": "Optional. Aggregation window size, in number of days. Defaults to 1 if not specified. If the requested range is not an exact multiple of `window_size_days`, the final bucket chronologically will be truncated at the upper endpoint of the range and will cover a duration shorter than `window_size_days`.",
          "type": "integer"
        },
        "dataSourceFamily": {
          "type": "string",
          "description": "Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/{user}/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error."
        },
        "range": {
          "description": "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.",
          "$ref": "CivilTimeInterval"
        },
        "pageSize": {
          "description": "Optional. The maximum number of data points to return. If unspecified, at most `90` data points will be returned. The maximum page size is `90`. For `calories-in-heart-rate-zone`, `heart-rate`, `active-minutes`, and `total-calories`, the default and maximum page size is `14`.",
          "format": "int32",
          "type": "integer"
        }
      },
      "description": "Request to roll up data points by civil time intervals.",
      "id": "DailyRollUpDataPointsRequest"
    }
  },
  "basePath": "",
  "discoveryVersion": "v1",
  "title": "Google Health API",
  "protocol": "rest",
  "resources": {
    "projects": {
      "resources": {
        "subscribers": {
          "methods": {
            "list": {
              "flatPath": "v4/projects/{projectsId}/subscribers",
              "parameterOrder": [
                "parent"
              ],
              "parameters": {
                "parent": {
                  "description": "Required. The parent, which owns this collection of subscribers. Format: projects/{project}",
                  "required": true,
                  "type": "string",
                  "pattern": "^projects/[^/]+$",
                  "location": "path"
                },
                "pageSize": {
                  "format": "int32",
                  "type": "integer",
                  "location": "query",
                  "description": "Optional. 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."
                },
                "pageToken": {
                  "type": "string",
                  "description": "Optional. 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.",
                  "location": "query"
                }
              },
              "path": "v4/{+parent}/subscribers",
              "id": "health.projects.subscribers.list",
              "description": "Lists all subscribers registered within the owned Google Cloud Project.",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "response": {
                "$ref": "ListSubscribersResponse"
              },
              "httpMethod": "GET"
            },
            "patch": {
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Operation"
              },
              "id": "health.projects.subscribers.patch",
              "request": {
                "$ref": "Subscriber"
              },
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "httpMethod": "PATCH",
              "description": "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.",
              "path": "v4/{+name}",
              "parameters": {
                "updateMask": {
                  "description": "Optional. 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",
                  "location": "query",
                  "format": "google-fieldmask",
                  "type": "string"
                },
                "name": {
                  "description": "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",
                  "location": "path",
                  "required": true,
                  "pattern": "^projects/[^/]+/subscribers/[^/]+$",
                  "type": "string"
                }
              },
              "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}"
            },
            "delete": {
              "response": {
                "$ref": "Operation"
              },
              "id": "health.projects.subscribers.delete",
              "httpMethod": "DELETE",
              "parameters": {
                "name": {
                  "location": "path",
                  "description": "Required. 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.",
                  "pattern": "^projects/[^/]+/subscribers/[^/]+$",
                  "type": "string",
                  "required": true
                },
                "force": {
                  "type": "boolean",
                  "location": "query",
                  "description": "Optional. 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."
                }
              },
              "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}",
              "path": "v4/{+name}",
              "parameterOrder": [
                "name"
              ],
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "description": "Deletes a subscriber registration. This will stop all notifications to the subscriber's endpoint."
            },
            "create": {
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "parameterOrder": [
                "parent"
              ],
              "parameters": {
                "subscriberId": {
                  "type": "string",
                  "location": "query",
                  "description": "Optional. 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])/."
                },
                "parent": {
                  "description": "Required. The parent resource where this subscriber will be created. Format: projects/{project_number} Example: projects/1234567890",
                  "required": true,
                  "type": "string",
                  "pattern": "^projects/[^/]+$",
                  "location": "path"
                }
              },
              "id": "health.projects.subscribers.create",
              "flatPath": "v4/projects/{projectsId}/subscribers",
              "httpMethod": "POST",
              "request": {
                "$ref": "CreateSubscriberPayload"
              },
              "description": "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.",
              "response": {
                "$ref": "Operation"
              },
              "path": "v4/{+parent}/subscribers"
            }
          },
          "resources": {
            "subscriptions": {
              "methods": {
                "create": {
                  "httpMethod": "POST",
                  "response": {
                    "$ref": "Subscription"
                  },
                  "id": "health.projects.subscribers.subscriptions.create",
                  "path": "v4/{+parent}/subscriptions",
                  "parameterOrder": [
                    "parent"
                  ],
                  "description": "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.",
                  "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}/subscriptions",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "parent": {
                      "location": "path",
                      "pattern": "^projects/[^/]+/subscribers/[^/]+$",
                      "type": "string",
                      "description": "Required. 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.",
                      "required": true
                    },
                    "subscriptionId": {
                      "location": "query",
                      "description": "Optional. 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": "string"
                    }
                  },
                  "request": {
                    "$ref": "CreateSubscriptionPayload"
                  }
                },
                "patch": {
                  "description": "Updates the data types for an existing user subscription.",
                  "parameterOrder": [
                    "name"
                  ],
                  "request": {
                    "$ref": "Subscription"
                  },
                  "response": {
                    "$ref": "Subscription"
                  },
                  "id": "health.projects.subscribers.subscriptions.patch",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "PATCH",
                  "parameters": {
                    "updateMask": {
                      "description": "Optional. The list of fields to update.",
                      "location": "query",
                      "format": "google-fieldmask",
                      "type": "string"
                    },
                    "name": {
                      "pattern": "^projects/[^/]+/subscribers/[^/]+/subscriptions/[^/]+$",
                      "location": "path",
                      "description": "Identifier. The resource name of the Subscription. Format: `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}` Example: `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscription-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": "string",
                      "required": true
                    }
                  },
                  "path": "v4/{+name}",
                  "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}/subscriptions/{subscriptionsId}"
                },
                "delete": {
                  "description": "Deletes a specific user subscription, stopping notifications for this user to this subscriber.",
                  "parameters": {
                    "name": {
                      "required": true,
                      "description": "Required. 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-subscription-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.",
                      "type": "string",
                      "pattern": "^projects/[^/]+/subscribers/[^/]+/subscriptions/[^/]+$",
                      "location": "path"
                    }
                  },
                  "path": "v4/{+name}",
                  "id": "health.projects.subscribers.subscriptions.delete",
                  "parameterOrder": [
                    "name"
                  ],
                  "response": {
                    "$ref": "Empty"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}/subscriptions/{subscriptionsId}",
                  "httpMethod": "DELETE"
                },
                "list": {
                  "description": "Lists all active subscriptions for a given subscriber. This can be filtered, for example, by user or data type.",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "GET",
                  "flatPath": "v4/projects/{projectsId}/subscribers/{subscribersId}/subscriptions",
                  "id": "health.projects.subscribers.subscriptions.list",
                  "parameterOrder": [
                    "parent"
                  ],
                  "path": "v4/{+parent}/subscriptions",
                  "response": {
                    "$ref": "ListSubscriptionsResponse"
                  },
                  "parameters": {
                    "parent": {
                      "location": "path",
                      "pattern": "^projects/[^/]+/subscribers/[^/]+$",
                      "required": true,
                      "type": "string",
                      "description": "Required. 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."
                    },
                    "filter": {
                      "description": "Optional. 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\")",
                      "location": "query",
                      "type": "string"
                    },
                    "pageToken": {
                      "type": "string",
                      "location": "query",
                      "description": "Optional. 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."
                    },
                    "pageSize": {
                      "description": "Optional. 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.",
                      "type": "integer",
                      "location": "query",
                      "format": "int32"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "shl": {
      "resources": {
        "m": {
          "methods": {
            "getShlManifest": {
              "httpMethod": "POST",
              "response": {
                "$ref": "HttpBody"
              },
              "path": "v4/shl/m/{externalShlId}",
              "request": {
                "$ref": "ManifestParams"
              },
              "flatPath": "v4/shl/m/{externalShlId}",
              "parameterOrder": [
                "externalShlId"
              ],
              "parameters": {
                "externalShlId": {
                  "type": "string",
                  "description": "Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q",
                  "location": "path",
                  "required": true
                }
              },
              "description": "Forward a manifest request for a given SHL",
              "id": "health.shl.m.getShlManifest"
            }
          }
        },
        "r": {
          "methods": {
            "get": {
              "path": "v4/shl/r/{externalShlId}/{resourceToken}",
              "parameterOrder": [
                "externalShlId",
                "resourceToken"
              ],
              "flatPath": "v4/shl/r/{externalShlId}/{resourceToken}",
              "httpMethod": "GET",
              "response": {
                "$ref": "HttpBody"
              },
              "id": "health.shl.r.get",
              "description": "Forward a resource request for a given SHL",
              "parameters": {
                "resourceToken": {
                  "location": "path",
                  "required": true,
                  "description": "Required. Encoded, encrypted message containing resource access details",
                  "type": "string"
                },
                "externalShlId": {
                  "location": "path",
                  "required": true,
                  "type": "string",
                  "description": "Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q"
                }
              }
            }
          }
        }
      }
    },
    "users": {
      "methods": {
        "getProfile": {
          "description": "Returns user Profile details.",
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "Profile"
          },
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.profile.readonly"
          ],
          "parameters": {
            "name": {
              "required": true,
              "pattern": "^users/[^/]+/profile$",
              "type": "string",
              "location": "path",
              "description": "Required. The name of the Profile. Format: `users/me/profile`."
            }
          },
          "id": "health.users.getProfile",
          "httpMethod": "GET",
          "flatPath": "v4/users/{usersId}/profile",
          "path": "v4/{+name}"
        },
        "getSettings": {
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.settings.readonly"
          ],
          "id": "health.users.getSettings",
          "flatPath": "v4/users/{usersId}/settings",
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^users/[^/]+/settings$",
              "description": "Required. The name of the Settings. Format: `users/me/settings`.",
              "required": true,
              "type": "string"
            }
          },
          "httpMethod": "GET",
          "description": "Returns user settings details.",
          "response": {
            "$ref": "Settings"
          },
          "parameterOrder": [
            "name"
          ],
          "path": "v4/{+name}"
        },
        "getIdentity": {
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
            "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
            "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
            "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
            "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
            "https://www.googleapis.com/auth/googlehealth.irn.readonly",
            "https://www.googleapis.com/auth/googlehealth.location.readonly",
            "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
            "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
            "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
            "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
            "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
            "https://www.googleapis.com/auth/googlehealth.profile.readonly",
            "https://www.googleapis.com/auth/googlehealth.profile.writeonly",
            "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
            "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
            "https://www.googleapis.com/auth/googlehealth.settings.readonly",
            "https://www.googleapis.com/auth/googlehealth.settings.writeonly",
            "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
            "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
          ],
          "description": "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.",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "GET",
          "response": {
            "$ref": "Identity"
          },
          "id": "health.users.getIdentity",
          "path": "v4/{+name}",
          "parameters": {
            "name": {
              "location": "path",
              "required": true,
              "type": "string",
              "description": "Required. The resource name of the Identity. Format: `users/me/identity`",
              "pattern": "^users/[^/]+/identity$"
            }
          },
          "flatPath": "v4/users/{usersId}/identity"
        },
        "updateSettings": {
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.settings.writeonly"
          ],
          "parameterOrder": [
            "name"
          ],
          "id": "health.users.updateSettings",
          "httpMethod": "PATCH",
          "response": {
            "$ref": "Settings"
          },
          "description": "Updates the user's settings details.",
          "parameters": {
            "name": {
              "description": "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. This field is read-only.",
              "required": true,
              "type": "string",
              "pattern": "^users/[^/]+/settings$",
              "location": "path"
            },
            "updateMask": {
              "type": "string",
              "description": "Optional. The list of fields to be updated.",
              "format": "google-fieldmask",
              "location": "query"
            }
          },
          "path": "v4/{+name}",
          "request": {
            "$ref": "Settings"
          },
          "flatPath": "v4/users/{usersId}/settings"
        },
        "updateProfile": {
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH",
          "id": "health.users.updateProfile",
          "description": "Updates the user's profile details.",
          "request": {
            "$ref": "Profile"
          },
          "path": "v4/{+name}",
          "flatPath": "v4/users/{usersId}/profile",
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.profile.writeonly"
          ],
          "parameters": {
            "name": {
              "description": "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. This field is read-only.",
              "required": true,
              "type": "string",
              "pattern": "^users/[^/]+/profile$",
              "location": "path"
            },
            "updateMask": {
              "type": "string",
              "description": "Optional. The list of fields to be updated.",
              "format": "google-fieldmask",
              "location": "query"
            }
          },
          "response": {
            "$ref": "Profile"
          }
        },
        "getIrnProfile": {
          "path": "v4/{+name}",
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^users/[^/]+/irnProfile$",
              "description": "Required. 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.",
              "required": true,
              "type": "string"
            }
          },
          "flatPath": "v4/users/{usersId}/irnProfile",
          "scopes": [
            "https://www.googleapis.com/auth/googlehealth.irn.readonly"
          ],
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "IrnProfile"
          },
          "description": "Returns user's IRN Profile details.",
          "httpMethod": "GET",
          "id": "health.users.getIrnProfile"
        }
      },
      "resources": {
        "pairedDevices": {
          "methods": {
            "get": {
              "description": "Returns user's Device.",
              "parameters": {
                "name": {
                  "required": true,
                  "description": "Required. The name of the device to retrieve. Format: users/{user}/devices/{device}",
                  "type": "string",
                  "location": "path",
                  "pattern": "^users/[^/]+/pairedDevices/[^/]+$"
                }
              },
              "response": {
                "$ref": "PairedDevice"
              },
              "parameterOrder": [
                "name"
              ],
              "scopes": [
                "https://www.googleapis.com/auth/googlehealth.settings.readonly"
              ],
              "flatPath": "v4/users/{usersId}/pairedDevices/{pairedDevicesId}",
              "path": "v4/{+name}",
              "httpMethod": "GET",
              "id": "health.users.pairedDevices.get"
            },
            "list": {
              "path": "v4/{+parent}/pairedDevices",
              "httpMethod": "GET",
              "flatPath": "v4/users/{usersId}/pairedDevices",
              "description": "Returns the user's list of paired 1P trackers and smartwatches.",
              "response": {
                "$ref": "ListPairedDevicesResponse"
              },
              "parameterOrder": [
                "parent"
              ],
              "scopes": [
                "https://www.googleapis.com/auth/googlehealth.settings.readonly"
              ],
              "id": "health.users.pairedDevices.list",
              "parameters": {
                "parent": {
                  "description": "Required. The parent, which owns this collection of devices. Format: users/{user}",
                  "location": "path",
                  "type": "string",
                  "pattern": "^users/[^/]+$",
                  "required": true
                },
                "pageToken": {
                  "description": "Optional. 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.",
                  "location": "query",
                  "type": "string"
                },
                "pageSize": {
                  "format": "int32",
                  "description": "Optional. 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.",
                  "location": "query",
                  "type": "integer"
                }
              }
            }
          }
        },
        "dataTypes": {
          "resources": {
            "dataPoints": {
              "methods": {
                "batchDelete": {
                  "path": "v4/{+parent}/dataPoints:batchDelete",
                  "httpMethod": "POST",
                  "description": "Delete a batch of identifyable data points.",
                  "response": {
                    "$ref": "Operation"
                  },
                  "parameters": {
                    "parent": {
                      "required": true,
                      "type": "string",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$",
                      "location": "path",
                      "description": "Optional. Parent (data type) for the Data Point collection Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). 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."
                    }
                  },
                  "request": {
                    "$ref": "BatchDeleteDataPointsRequest"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "id": "health.users.dataTypes.dataPoints.batchDelete",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints:batchDelete",
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ]
                },
                "reconcile": {
                  "response": {
                    "$ref": "ReconcileDataPointsResponse"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "path": "v4/{+parent}/dataPoints:reconcile",
                  "parameters": {
                    "pageToken": {
                      "location": "query",
                      "description": "Optional. The `next_page_token` from a previous request, if any.",
                      "type": "string"
                    },
                    "parent": {
                      "required": true,
                      "type": "string",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$",
                      "location": "path",
                      "description": "Required. Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types see the DataPoint data union field."
                    },
                    "filter": {
                      "description": "Optional. 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.",
                      "type": "string",
                      "location": "query"
                    },
                    "pageSize": {
                      "type": "integer",
                      "description": "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. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.",
                      "location": "query",
                      "format": "int32"
                    },
                    "dataSourceFamily": {
                      "description": "Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/{user}/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.",
                      "type": "string",
                      "location": "query"
                    }
                  },
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.irn.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "description": "Reconcile data points from multiple data sources into a single data stream.",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints:reconcile",
                  "id": "health.users.dataTypes.dataPoints.reconcile"
                },
                "dailyRollUp": {
                  "description": "Roll up data points over civil time intervals for supported data types.",
                  "request": {
                    "$ref": "DailyRollUpDataPointsRequest"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "path": "v4/{+parent}/dataPoints:dailyRollUp",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints:dailyRollUp",
                  "httpMethod": "POST",
                  "id": "health.users.dataTypes.dataPoints.dailyRollUp",
                  "parameters": {
                    "parent": {
                      "location": "path",
                      "type": "string",
                      "description": "Required. Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types see the DailyRollupDataPoint value union field.",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$",
                      "required": true
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.irn.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "response": {
                    "$ref": "DailyRollUpDataPointsResponse"
                  }
                },
                "get": {
                  "parameters": {
                    "name": {
                      "location": "path",
                      "required": true,
                      "pattern": "^users/[^/]+/dataTypes/[^/]+/dataPoints/[^/]+$",
                      "description": "Required. The name of the data point to retrieve. Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values.",
                      "type": "string"
                    }
                  },
                  "description": "Get a single identifyable data point.",
                  "parameterOrder": [
                    "name"
                  ],
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints/{dataPointsId}",
                  "id": "health.users.dataTypes.dataPoints.get",
                  "path": "v4/{+name}",
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.irn.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "response": {
                    "$ref": "DataPoint"
                  }
                },
                "rollUp": {
                  "httpMethod": "POST",
                  "path": "v4/{+parent}/dataPoints:rollUp",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints:rollUp",
                  "request": {
                    "$ref": "RollUpDataPointsRequest"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.irn.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "description": "Roll up data points over physical time intervals for supported data types.",
                  "id": "health.users.dataTypes.dataPoints.rollUp",
                  "parameterOrder": [
                    "parent"
                  ],
                  "parameters": {
                    "parent": {
                      "required": true,
                      "type": "string",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$",
                      "description": "Required. Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types see the RollupDataPoint value union field.",
                      "location": "path"
                    }
                  },
                  "response": {
                    "$ref": "RollUpDataPointsResponse"
                  }
                },
                "exportExerciseTcx": {
                  "useMediaDownloadService": true,
                  "httpMethod": "GET",
                  "response": {
                    "$ref": "ExportExerciseTcxResponse"
                  },
                  "path": "v4/{+name}:exportExerciseTcx",
                  "supportsMediaDownload": true,
                  "description": "Exports exercise data in TCX format. **IMPORTANT:** HTTP clients must append `?alt=media` to the request URL to download the raw TCX file. ## Examples: ## `https://health.googleapis.com/v4/users/me/dataTypes/exercise/dataPoints/EXERCISE_ID:exportExerciseTcx?alt=media` `https://health.googleapis.com/v4/users/1234567890/dataTypes/exercise/dataPoints/EXERCISE_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.",
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly"
                  ],
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints/{dataPointsId}:exportExerciseTcx",
                  "id": "health.users.dataTypes.dataPoints.exportExerciseTcx",
                  "parameters": {
                    "name": {
                      "description": "Required. The resource name of the exercise data point to export. Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long integer.",
                      "required": true,
                      "type": "string",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+/dataPoints/[^/]+$",
                      "location": "path"
                    },
                    "partialData": {
                      "location": "query",
                      "type": "boolean",
                      "description": "Optional. 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."
                    }
                  }
                },
                "list": {
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.ecg.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.irn.readonly",
                    "https://www.googleapis.com/auth/googlehealth.location.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.readonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "response": {
                    "$ref": "ListDataPointsResponse"
                  },
                  "path": "v4/{+parent}/dataPoints",
                  "parameterOrder": [
                    "parent"
                  ],
                  "parameters": {
                    "dataSourceFamily": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. The data source family name to filter by. If empty, data points from all available data sources will be returned. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/{user}/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data types may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error. Filtering by data source family is not supported for the `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing implementation cannot restrict results by data source. Such requests fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For `sleep`, use ReconcileDataPoints instead."
                    },
                    "pageToken": {
                      "description": "Optional. The `next_page_token` from a previous request, if any.",
                      "type": "string",
                      "location": "query"
                    },
                    "pageSize": {
                      "location": "query",
                      "description": "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. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.",
                      "format": "int32",
                      "type": "integer"
                    },
                    "parent": {
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$",
                      "type": "string",
                      "location": "path",
                      "description": "Required. Parent data type of the Data Point collection. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types see the DataPoint data union field.",
                      "required": true
                    },
                    "filter": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. 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: `\u003e=`, `\u003c` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time \u003e= \"2023-11-24T00:00:00Z\" AND steps.interval.start_time \u003c \"2023-11-25T00:00:00Z\"` - `distance.interval.start_time \u003e= \"2024-08-14T12:34:56Z\"` - Interval civil start time: - Pattern: `{interval_data_type}.interval.civil_start_time` - Supported comparison operators: `\u003e=`, `\u003c` - 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 \u003e= \"2023-11-24\" AND steps.interval.civil_start_time \u003c \"2023-11-25\"` - `distance.interval.civil_start_time \u003e= \"2024-08-14T12:34:56\"` - Sample observation physical time: - Pattern: `{sample_data_type}.sample_time.physical_time` - Supported comparison operators: `\u003e=`, `\u003c` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time \u003e= \"2023-11-24T00:00:00Z\" AND weight.sample_time.physical_time \u003c \"2023-11-25T00:00:00Z\"` - `weight.sample_time.physical_time \u003e= \"2024-08-14T12:34:56Z\"` - Sample observation civil time: - Pattern: `{sample_data_type}.sample_time.civil_time` - Supported comparison operators: `\u003e=`, `\u003c` - 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 \u003e= \"2023-11-24\" AND weight.sample_time.civil_time \u003c \"2023-11-25\"` - `weight.sample_time.civil_time \u003e= \"2024-08-14T12:34:56\"` - Daily summary date: - Pattern: `{daily_summary_data_type}.date` - Supported comparison operators: `\u003e=`, `\u003c` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date \u003c \"2024-08-15\"` - Session civil start time (**Excluding Sleep and ECG**): - Pattern: `{session_data_type}.interval.civil_start_time` - Supported comparison operators: `\u003e=`, `\u003c` - 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 \u003e= \"2023-11-24\" AND exercise.interval.civil_start_time \u003c \"2023-11-25\"` - `exercise.interval.civil_start_time \u003e= \"2024-08-14T12:34:56\"` - Session start time (**ECG specific**): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `\u003e=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time \u003e= \"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: `\u003e=`, `\u003c` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time \u003e= \"2023-11-24T00:00:00Z\" AND sleep.interval.end_time \u003c \"2023-11-25T00:00:00Z\"` - Session civil end time (**Sleep specific**): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `\u003e=`, `\u003c` - 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 \u003e= \"2023-11-24\" AND sleep.interval.civil_end_time \u003c \"2023-11-25\"` Data points in the response will be ordered by the interval start time in descending order."
                    }
                  },
                  "description": "Query user health and fitness data points.",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints",
                  "httpMethod": "GET",
                  "id": "health.users.dataTypes.dataPoints.list"
                },
                "patch": {
                  "description": "Updates a single identifiable data point. If a data point with the specified `name` is not found, the request will fail.",
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "httpMethod": "PATCH",
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints/{dataPointsId}",
                  "request": {
                    "$ref": "DataPoint"
                  },
                  "parameterOrder": [
                    "name"
                  ],
                  "parameters": {
                    "name": {
                      "pattern": "^users/[^/]+/dataTypes/[^/]+/dataPoints/[^/]+$",
                      "type": "string",
                      "location": "path",
                      "description": "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}` ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, which can be retrieved by calling GetIdentity (see 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.",
                      "required": true
                    }
                  },
                  "id": "health.users.dataTypes.dataPoints.patch",
                  "path": "v4/{+name}",
                  "response": {
                    "$ref": "Operation"
                  }
                },
                "create": {
                  "httpMethod": "POST",
                  "scopes": [
                    "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly",
                    "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"
                  ],
                  "flatPath": "v4/users/{usersId}/dataTypes/{dataTypesId}/dataPoints",
                  "id": "health.users.dataTypes.dataPoints.create",
                  "description": "Creates a single identifiable data point.",
                  "request": {
                    "$ref": "DataPoint"
                  },
                  "path": "v4/{+parent}/dataPoints",
                  "parameters": {
                    "parent": {
                      "required": true,
                      "description": "Required. The parent resource name where the data point will be created. Format: `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity).",
                      "type": "string",
                      "location": "path",
                      "pattern": "^users/[^/]+/dataTypes/[^/]+$"
                    }
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "Operation"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "rootUrl": "https://health.googleapis.com/",
  "id": "health:v4",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "servicePath": "",
  "parameters": {
    "upload_protocol": {
      "location": "query",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "type": "string"
    },
    "prettyPrint": {
      "location": "query",
      "default": "true",
      "description": "Returns response with indentations and line breaks.",
      "type": "boolean"
    },
    "callback": {
      "location": "query",
      "description": "JSONP",
      "type": "string"
    },
    "$.xgafv": {
      "location": "query",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "enum": [
        "1",
        "2"
      ],
      "description": "V1 error format.",
      "type": "string"
    },
    "key": {
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "type": "string",
      "location": "query"
    },
    "alt": {
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "default": "json",
      "description": "Data format for response.",
      "type": "string"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "fields": {
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query",
      "type": "string"
    },
    "access_token": {
      "description": "OAuth access token.",
      "location": "query",
      "type": "string"
    },
    "quotaUser": {
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "location": "query",
      "type": "string"
    },
    "uploadType": {
      "type": "string",
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    }
  },
  "version": "v4",
  "mtlsRootUrl": "https://health.mtls.googleapis.com/",
  "version_module": true,
  "baseUrl": "https://health.googleapis.com/",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly": {
          "description": "See your Google Health mindfulness data"
        },
        "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly": {
          "description": "See your Google Health logged symptoms data"
        },
        "https://www.googleapis.com/auth/googlehealth.sleep.readonly": {
          "description": "See your Google Health sleep data"
        },
        "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly": {
          "description": "See your Google Health activity and fitness data"
        },
        "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly": {
          "description": "Add logged symptoms data to Google Health, and edit or delete the data it adds"
        },
        "https://www.googleapis.com/auth/googlehealth.irn.readonly": {
          "description": "See your Google Health Irregular Rhythm Notifications data"
        },
        "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly": {
          "description": "Add nutrition data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly": {
          "description": "See your Google Health reproductive health data"
        },
        "https://www.googleapis.com/auth/googlehealth.ecg.readonly": {
          "description": "See your Google Health ECG data"
        },
        "https://www.googleapis.com/auth/googlehealth.settings.readonly": {
          "description": "See your Google Health settings"
        },
        "https://www.googleapis.com/auth/googlehealth.profile.readonly": {
          "description": "See your Google Health profile data"
        },
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        },
        "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly": {
          "description": "See your Google Health health metrics and measurement data"
        },
        "https://www.googleapis.com/auth/googlehealth.sleep.writeonly": {
          "description": "Add sleep data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.location.readonly": {
          "description": "See exercise GPS location data in Google Health"
        },
        "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly": {
          "description": "Add activity and fitness data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.profile.writeonly": {
          "description": "Add profile data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly": {
          "description": "Add health metric and measurements data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.settings.writeonly": {
          "description": "Add settings data to Google Health, and edit or delete the data it adds."
        },
        "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly": {
          "description": "Add mindfulness data to Google Health, and edit or delete the data it adds"
        },
        "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly": {
          "description": "Add reproductive health data to Google Health, and edit or delete the data it adds"
        }
      }
    }
  },
  "fullyEncodeReservedExpansion": true
}
