autoStrideEnabled = $autoStrideEnabled; } /** * @return bool */ public function getAutoStrideEnabled() { return $this->autoStrideEnabled; } /** * Optional. The measurement unit defined in the user's account settings. * Updates to this field are currently not supported. * * Accepted values: DISTANCE_UNIT_UNSPECIFIED, DISTANCE_UNIT_MILES, * DISTANCE_UNIT_KILOMETERS * * @param self::DISTANCE_UNIT_* $distanceUnit */ public function setDistanceUnit($distanceUnit) { $this->distanceUnit = $distanceUnit; } /** * @return self::DISTANCE_UNIT_* */ public function getDistanceUnit() { return $this->distanceUnit; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: GLUCOSE_UNIT_UNSPECIFIED, GLUCOSE_UNIT_MG_DL, * GLUCOSE_UNIT_MMOL_L * * @param self::GLUCOSE_UNIT_* $glucoseUnit */ public function setGlucoseUnit($glucoseUnit) { $this->glucoseUnit = $glucoseUnit; } /** * @return self::GLUCOSE_UNIT_* */ public function getGlucoseUnit() { return $this->glucoseUnit; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: HEIGHT_UNIT_UNSPECIFIED, HEIGHT_UNIT_INCHES, * HEIGHT_UNIT_CENTIMETERS * * @param self::HEIGHT_UNIT_* $heightUnit */ public function setHeightUnit($heightUnit) { $this->heightUnit = $heightUnit; } /** * @return self::HEIGHT_UNIT_* */ public function getHeightUnit() { return $this->heightUnit; } /** * Optional. The locale defined in the user's account settings. Updates to * this field are currently not supported. * * @param string $languageLocale */ public function setLanguageLocale($languageLocale) { $this->languageLocale = $languageLocale; } /** * @return string */ public function getLanguageLocale() { return $this->languageLocale; } /** * 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. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Optional. The stride length type defined in the user's account settings for * running. Updates to this field are currently not supported. * * Accepted values: STRIDE_LENGTH_TYPE_UNSPECIFIED, * STRIDE_LENGTH_TYPE_DEFAULT, STRIDE_LENGTH_TYPE_MANUAL, * STRIDE_LENGTH_TYPE_AUTO * * @param self::STRIDE_LENGTH_RUNNING_TYPE_* $strideLengthRunningType */ public function setStrideLengthRunningType($strideLengthRunningType) { $this->strideLengthRunningType = $strideLengthRunningType; } /** * @return self::STRIDE_LENGTH_RUNNING_TYPE_* */ public function getStrideLengthRunningType() { return $this->strideLengthRunningType; } /** * Optional. The stride length type defined in the user's account settings for * walking. Updates to this field are currently not supported. * * Accepted values: STRIDE_LENGTH_TYPE_UNSPECIFIED, * STRIDE_LENGTH_TYPE_DEFAULT, STRIDE_LENGTH_TYPE_MANUAL, * STRIDE_LENGTH_TYPE_AUTO * * @param self::STRIDE_LENGTH_WALKING_TYPE_* $strideLengthWalkingType */ public function setStrideLengthWalkingType($strideLengthWalkingType) { $this->strideLengthWalkingType = $strideLengthWalkingType; } /** * @return self::STRIDE_LENGTH_WALKING_TYPE_* */ public function getStrideLengthWalkingType() { return $this->strideLengthWalkingType; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: SWIM_UNIT_UNSPECIFIED, SWIM_UNIT_METERS, SWIM_UNIT_YARDS * * @param self::SWIM_UNIT_* $swimUnit */ public function setSwimUnit($swimUnit) { $this->swimUnit = $swimUnit; } /** * @return self::SWIM_UNIT_* */ public function getSwimUnit() { return $this->swimUnit; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: TEMPERATURE_UNIT_UNSPECIFIED, TEMPERATURE_UNIT_CELSIUS, * TEMPERATURE_UNIT_FAHRENHEIT * * @param self::TEMPERATURE_UNIT_* $temperatureUnit */ public function setTemperatureUnit($temperatureUnit) { $this->temperatureUnit = $temperatureUnit; } /** * @return self::TEMPERATURE_UNIT_* */ public function getTemperatureUnit() { return $this->temperatureUnit; } /** * 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. * * @param string $timeZone */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } /** * Optional. The user's timezone offset relative to UTC. Updates to this field * are currently not supported. * * @param string $utcOffset */ public function setUtcOffset($utcOffset) { $this->utcOffset = $utcOffset; } /** * @return string */ public function getUtcOffset() { return $this->utcOffset; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: WATER_UNIT_UNSPECIFIED, WATER_UNIT_ML, WATER_UNIT_FL_OZ, * WATER_UNIT_CUP * * @param self::WATER_UNIT_* $waterUnit */ public function setWaterUnit($waterUnit) { $this->waterUnit = $waterUnit; } /** * @return self::WATER_UNIT_* */ public function getWaterUnit() { return $this->waterUnit; } /** * Optional. The measurement unit defined in the user's account settings. * * Accepted values: WEIGHT_UNIT_UNSPECIFIED, WEIGHT_UNIT_POUNDS, * WEIGHT_UNIT_STONE, WEIGHT_UNIT_KILOGRAMS * * @param self::WEIGHT_UNIT_* $weightUnit */ public function setWeightUnit($weightUnit) { $this->weightUnit = $weightUnit; } /** * @return self::WEIGHT_UNIT_* */ public function getWeightUnit() { return $this->weightUnit; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Settings::class, 'Google_Service_GoogleHealthAPI_Settings');