📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/GoogleHealthAPI
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 ActiveMinutes.php
▶ Open 📄 View Source
🐘 ActiveMinutesByActivityLevel.php
▶ Open 📄 View Source
🐘 ActiveMinutesRollupByActivityLevel.php
▶ Open 📄 View Source
🐘 ActiveMinutesRollupValue.php
▶ Open 📄 View Source
🐘 ActiveZoneMinutes.php
▶ Open 📄 View Source
🐘 ActiveZoneMinutesRollupValue.php
▶ Open 📄 View Source
🐘 ActivityLevel.php
▶ Open 📄 View Source
🐘 ActivityLevelRollupByActivityLevelType.php
▶ Open 📄 View Source
🐘 ActivityLevelRollupValue.php
▶ Open 📄 View Source
🐘 Altitude.php
▶ Open 📄 View Source
🐘 AltitudeRollupValue.php
▶ Open 📄 View Source
🐘 Application.php
▶ Open 📄 View Source
🐘 BatchDeleteDataPointsRequest.php
▶ Open 📄 View Source
🐘 BodyFat.php
▶ Open 📄 View Source
🐘 BodyFatRollupValue.php
▶ Open 📄 View Source
🐘 CaloriesInHeartRateZoneRollupValue.php
▶ Open 📄 View Source
🐘 CaloriesInHeartRateZoneValue.php
▶ Open 📄 View Source
🐘 CivilDateTime.php
▶ Open 📄 View Source
🐘 CivilTimeInterval.php
▶ Open 📄 View Source
🐘 CreateSubscriberPayload.php
▶ Open 📄 View Source
🐘 DailyHeartRateVariability.php
▶ Open 📄 View Source
🐘 DailyHeartRateZones.php
▶ Open 📄 View Source
🐘 DailyOxygenSaturation.php
▶ Open 📄 View Source
🐘 DailyRespiratoryRate.php
▶ Open 📄 View Source
🐘 DailyRestingHeartRate.php
▶ Open 📄 View Source
🐘 DailyRestingHeartRateMetadata.php
▶ Open 📄 View Source
🐘 DailyRollUpDataPointsRequest.php
▶ Open 📄 View Source
🐘 DailyRollUpDataPointsResponse.php
▶ Open 📄 View Source
🐘 DailyRollupDataPoint.php
▶ Open 📄 View Source
🐘 DailySleepTemperatureDerivations.php
▶ Open 📄 View Source
🐘 DailyVO2Max.php
▶ Open 📄 View Source
🐘 DataPoint.php
▶ Open 📄 View Source
🐘 DataSource.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DateTime.php
▶ Open 📄 View Source
🐘 Device.php
▶ Open 📄 View Source
🐘 Distance.php
▶ Open 📄 View Source
🐘 DistanceRollupValue.php
▶ Open 📄 View Source
🐘 EndpointAuthorization.php
▶ Open 📄 View Source
🐘 Exercise.php
▶ Open 📄 View Source
🐘 ExerciseEvent.php
▶ Open 📄 View Source
🐘 ExerciseMetadata.php
▶ Open 📄 View Source
🐘 ExportExerciseTcxResponse.php
▶ Open 📄 View Source
🐘 Floors.php
▶ Open 📄 View Source
🐘 FloorsRollupValue.php
▶ Open 📄 View Source
🐘 GoogleDevicesandservicesHealthV4DataType.php
▶ Open 📄 View Source
🐘 HeartRate.php
▶ Open 📄 View Source
🐘 HeartRateMetadata.php
▶ Open 📄 View Source
🐘 HeartRateRollupValue.php
▶ Open 📄 View Source
🐘 HeartRateVariability.php
▶ Open 📄 View Source
🐘 HeartRateVariabilityPersonalRangeRollupValue.php
▶ Open 📄 View Source
🐘 HeartRateZone.php
▶ Open 📄 View Source
🐘 Height.php
▶ Open 📄 View Source
🐘 HttpHeader.php
▶ Open 📄 View Source
🐘 HttpResponse.php
▶ Open 📄 View Source
🐘 HydrationLog.php
▶ Open 📄 View Source
🐘 HydrationLogRollupValue.php
▶ Open 📄 View Source
🐘 Identity.php
▶ Open 📄 View Source
🐘 Interval.php
▶ Open 📄 View Source
🐘 ListDataPointsResponse.php
▶ Open 📄 View Source
🐘 ListSubscribersResponse.php
▶ Open 📄 View Source
🐘 MetricsSummary.php
▶ Open 📄 View Source
🐘 MobilityMetrics.php
▶ Open 📄 View Source
🐘 ObservationSampleTime.php
▶ Open 📄 View Source
🐘 ObservationTimeInterval.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OutOfBedSegment.php
▶ Open 📄 View Source
🐘 OxygenSaturation.php
▶ Open 📄 View Source
🐘 Profile.php
▶ Open 📄 View Source
🐘 ReconcileDataPointsResponse.php
▶ Open 📄 View Source
🐘 ReconciledDataPoint.php
▶ Open 📄 View Source
🐘 RespiratoryRateSleepSummary.php
▶ Open 📄 View Source
🐘 RespiratoryRateSleepSummaryStatistics.php
▶ Open 📄 View Source
🐘 RestingHeartRatePersonalRangeRollupValue.php
▶ Open 📄 View Source
🐘 RollUpDataPointsRequest.php
▶ Open 📄 View Source
🐘 RollUpDataPointsResponse.php
▶ Open 📄 View Source
🐘 RollupDataPoint.php
▶ Open 📄 View Source
🐘 RunVO2Max.php
▶ Open 📄 View Source
🐘 RunVO2MaxRollupValue.php
▶ Open 📄 View Source
🐘 SedentaryPeriod.php
▶ Open 📄 View Source
🐘 SedentaryPeriodRollupValue.php
▶ Open 📄 View Source
🐘 SessionTimeInterval.php
▶ Open 📄 View Source
🐘 Settings.php
▶ Open 📄 View Source
🐘 Sleep.php
▶ Open 📄 View Source
🐘 SleepMetadata.php
▶ Open 📄 View Source
🐘 SleepStage.php
▶ Open 📄 View Source
🐘 SleepSummary.php
▶ Open 📄 View Source
🐘 SplitSummary.php
▶ Open 📄 View Source
🐘 StageSummary.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Steps.php
▶ Open 📄 View Source
🐘 StepsRollupValue.php
▶ Open 📄 View Source
🐘 Subscriber.php
▶ Open 📄 View Source
🐘 SubscriberConfig.php
▶ Open 📄 View Source
🐘 SwimLengthsData.php
▶ Open 📄 View Source
🐘 SwimLengthsDataRollupValue.php
▶ Open 📄 View Source
🐘 TimeInHeartRateZone.php
▶ Open 📄 View Source
🐘 TimeInHeartRateZoneRollupValue.php
▶ Open 📄 View Source
🐘 TimeInHeartRateZoneValue.php
▶ Open 📄 View Source
🐘 TimeInHeartRateZones.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 TimeZone.php
▶ Open 📄 View Source
🐘 TotalCaloriesRollupValue.php
▶ Open 📄 View Source
🐘 VO2Max.php
▶ Open 📄 View Source
🐘 VolumeQuantity.php
▶ Open 📄 View Source
🐘 VolumeQuantityRollup.php
▶ Open 📄 View Source
🐘 WebhookNotificationCloudLog.php
▶ Open 📄 View Source
🐘 Weight.php
▶ Open 📄 View Source
🐘 WeightRollupValue.php
▶ Open 📄 View Source

📄 Source: Subscriber.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\GoogleHealthAPI;

class Subscriber extends \Google\Collection
{
  /**
   * Represents an unspecified subscriber state.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * 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.
   */
  public const STATE_UNVERIFIED = 'UNVERIFIED';
  /**
   * Represents an active subscriber. The endpoint has been verified.
   */
  public const STATE_ACTIVE = 'ACTIVE';
  /**
   * Represents an inactive subscriber.
   */
  public const STATE_INACTIVE = 'INACTIVE';
  protected $collection_key = 'subscriberConfigs';
  /**
   * Output only. The time at which the subscriber was created.
   *
   * @var string
   */
  public $createTime;
  protected $endpointAuthorizationType = EndpointAuthorization::class;
  protected $endpointAuthorizationDataType = '';
  /**
   * 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.
   *
   * @var string
   */
  public $endpointUri;
  /**
   * 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
   *
   * @var string
   */
  public $name;
  /**
   * Output only. The state of the subscriber.
   *
   * @var string
   */
  public $state;
  protected $subscriberConfigsType = SubscriberConfig::class;
  protected $subscriberConfigsDataType = 'array';
  /**
   * Output only. The time at which the subscriber was last updated.
   *
   * @var string
   */
  public $updateTime;

  /**
   * Output only. The time at which the subscriber was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Required. Authorization mechanism for a subscriber endpoint. This is
   * required to ensure the endpoint can be verified.
   *
   * @param EndpointAuthorization $endpointAuthorization
   */
  public function setEndpointAuthorization(EndpointAuthorization $endpointAuthorization)
  {
    $this->endpointAuthorization = $endpointAuthorization;
  }
  /**
   * @return EndpointAuthorization
   */
  public function getEndpointAuthorization()
  {
    return $this->endpointAuthorization;
  }
  /**
   * 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.
   *
   * @param string $endpointUri
   */
  public function setEndpointUri($endpointUri)
  {
    $this->endpointUri = $endpointUri;
  }
  /**
   * @return string
   */
  public function getEndpointUri()
  {
    return $this->endpointUri;
  }
  /**
   * 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
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. The state of the subscriber.
   *
   * Accepted values: STATE_UNSPECIFIED, UNVERIFIED, ACTIVE, INACTIVE
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Optional. Configuration for the subscriber.
   *
   * @param SubscriberConfig[] $subscriberConfigs
   */
  public function setSubscriberConfigs($subscriberConfigs)
  {
    $this->subscriberConfigs = $subscriberConfigs;
  }
  /**
   * @return SubscriberConfig[]
   */
  public function getSubscriberConfigs()
  {
    return $this->subscriberConfigs;
  }
  /**
   * Output only. The time at which the subscriber was last updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscriber::class, 'Google_Service_GoogleHealthAPI_Subscriber');
← Back