📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Bin.php
▶ Open 📄 View Source
🐘 CollectionPeriod.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 FractionTimeseries.php
▶ Open 📄 View Source
🐘 HistoryKey.php
▶ Open 📄 View Source
🐘 HistoryRecord.php
▶ Open 📄 View Source
🐘 Key.php
▶ Open 📄 View Source
🐘 Metric.php
▶ Open 📄 View Source
🐘 MetricTimeseries.php
▶ Open 📄 View Source
🐘 Percentiles.php
▶ Open 📄 View Source
🐘 QueryHistoryRequest.php
▶ Open 📄 View Source
🐘 QueryHistoryResponse.php
▶ Open 📄 View Source
🐘 QueryRequest.php
▶ Open 📄 View Source
🐘 QueryResponse.php
▶ Open 📄 View Source
🐘 Record.php
▶ Open 📄 View Source
🐘 TimeseriesBin.php
▶ Open 📄 View Source
🐘 TimeseriesPercentiles.php
▶ Open 📄 View Source
🐘 UrlNormalization.php
▶ Open 📄 View Source

📄 Source: QueryRequest.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\ChromeUXReport;

class QueryRequest extends \Google\Collection
{
  /**
   * The default value, representing all device classes.
   */
  public const FORM_FACTOR_ALL_FORM_FACTORS = 'ALL_FORM_FACTORS';
  /**
   * The device class representing a "mobile"/"phone" sized client.
   */
  public const FORM_FACTOR_PHONE = 'PHONE';
  /**
   * The device class representing a "desktop"/"laptop" type full size client.
   */
  public const FORM_FACTOR_DESKTOP = 'DESKTOP';
  /**
   * The device class representing a "tablet" type client.
   */
  public const FORM_FACTOR_TABLET = 'TABLET';
  protected $collection_key = 'metrics';
  /**
   * The effective connection type is a query dimension that specifies the
   * effective network class that the record's data should belong to. This field
   * uses the values ["offline", "slow-2G", "2G", "3G", "4G"] as specified in:
   * https://wicg.github.io/netinfo/#effective-connection-types Note: If no
   * effective connection type is specified, then a special record with
   * aggregated data over all effective connection types will be returned.
   *
   * @var string
   */
  public $effectiveConnectionType;
  /**
   * The form factor is a query dimension that specifies the device class that
   * the record's data should belong to. Note: If no form factor is specified,
   * then a special record with aggregated data over all form factors will be
   * returned.
   *
   * @var string
   */
  public $formFactor;
  /**
   * The metrics that should be included in the response. If none are specified
   * then any metrics found will be returned. Allowed values:
   * ["first_contentful_paint", "first_input_delay", "largest_contentful_paint",
   * "cumulative_layout_shift", "experimental_time_to_first_byte",
   * "experimental_interaction_to_next_paint"]
   *
   * @var string[]
   */
  public $metrics;
  /**
   * The url pattern "origin" refers to a url pattern that is the origin of a
   * website. Examples: "https://example.com", "https://cloud.google.com"
   *
   * @var string
   */
  public $origin;
  /**
   * The url pattern "url" refers to a url pattern that is any arbitrary url.
   * Examples: "https://example.com/", "https://cloud.google.com/why-google-
   * cloud/"
   *
   * @var string
   */
  public $url;

  /**
   * The effective connection type is a query dimension that specifies the
   * effective network class that the record's data should belong to. This field
   * uses the values ["offline", "slow-2G", "2G", "3G", "4G"] as specified in:
   * https://wicg.github.io/netinfo/#effective-connection-types Note: If no
   * effective connection type is specified, then a special record with
   * aggregated data over all effective connection types will be returned.
   *
   * @param string $effectiveConnectionType
   */
  public function setEffectiveConnectionType($effectiveConnectionType)
  {
    $this->effectiveConnectionType = $effectiveConnectionType;
  }
  /**
   * @return string
   */
  public function getEffectiveConnectionType()
  {
    return $this->effectiveConnectionType;
  }
  /**
   * The form factor is a query dimension that specifies the device class that
   * the record's data should belong to. Note: If no form factor is specified,
   * then a special record with aggregated data over all form factors will be
   * returned.
   *
   * Accepted values: ALL_FORM_FACTORS, PHONE, DESKTOP, TABLET
   *
   * @param self::FORM_FACTOR_* $formFactor
   */
  public function setFormFactor($formFactor)
  {
    $this->formFactor = $formFactor;
  }
  /**
   * @return self::FORM_FACTOR_*
   */
  public function getFormFactor()
  {
    return $this->formFactor;
  }
  /**
   * The metrics that should be included in the response. If none are specified
   * then any metrics found will be returned. Allowed values:
   * ["first_contentful_paint", "first_input_delay", "largest_contentful_paint",
   * "cumulative_layout_shift", "experimental_time_to_first_byte",
   * "experimental_interaction_to_next_paint"]
   *
   * @param string[] $metrics
   */
  public function setMetrics($metrics)
  {
    $this->metrics = $metrics;
  }
  /**
   * @return string[]
   */
  public function getMetrics()
  {
    return $this->metrics;
  }
  /**
   * The url pattern "origin" refers to a url pattern that is the origin of a
   * website. Examples: "https://example.com", "https://cloud.google.com"
   *
   * @param string $origin
   */
  public function setOrigin($origin)
  {
    $this->origin = $origin;
  }
  /**
   * @return string
   */
  public function getOrigin()
  {
    return $this->origin;
  }
  /**
   * The url pattern "url" refers to a url pattern that is any arbitrary url.
   * Examples: "https://example.com/", "https://cloud.google.com/why-google-
   * cloud/"
   *
   * @param string $url
   */
  public function setUrl($url)
  {
    $this->url = $url;
  }
  /**
   * @return string
   */
  public function getUrl()
  {
    return $this->url;
  }
}

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