<?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\Analytics;

class Segments extends \Google\Collection
{
  protected $collection_key = 'items';
  protected $itemsType = Segment::class;
  protected $itemsDataType = 'array';
  /**
   * The maximum number of resources the response can contain, regardless of the
   * actual number of resources returned. Its value ranges from 1 to 1000 with a
   * value of 1000 by default, or otherwise specified by the max-results query
   * parameter.
   *
   * @var int
   */
  public $itemsPerPage;
  /**
   * Collection type for segments.
   *
   * @var string
   */
  public $kind;
  /**
   * Link to next page for this segment collection.
   *
   * @var string
   */
  public $nextLink;
  /**
   * Link to previous page for this segment collection.
   *
   * @var string
   */
  public $previousLink;
  /**
   * The starting index of the resources, which is 1 by default or otherwise
   * specified by the start-index query parameter.
   *
   * @var int
   */
  public $startIndex;
  /**
   * The total number of results for the query, regardless of the number of
   * results in the response.
   *
   * @var int
   */
  public $totalResults;
  /**
   * Email ID of the authenticated user
   *
   * @var string
   */
  public $username;

  /**
   * A list of segments.
   *
   * @param Segment[] $items
   */
  public function setItems($items)
  {
    $this->items = $items;
  }
  /**
   * @return Segment[]
   */
  public function getItems()
  {
    return $this->items;
  }
  /**
   * The maximum number of resources the response can contain, regardless of the
   * actual number of resources returned. Its value ranges from 1 to 1000 with a
   * value of 1000 by default, or otherwise specified by the max-results query
   * parameter.
   *
   * @param int $itemsPerPage
   */
  public function setItemsPerPage($itemsPerPage)
  {
    $this->itemsPerPage = $itemsPerPage;
  }
  /**
   * @return int
   */
  public function getItemsPerPage()
  {
    return $this->itemsPerPage;
  }
  /**
   * Collection type for segments.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Link to next page for this segment collection.
   *
   * @param string $nextLink
   */
  public function setNextLink($nextLink)
  {
    $this->nextLink = $nextLink;
  }
  /**
   * @return string
   */
  public function getNextLink()
  {
    return $this->nextLink;
  }
  /**
   * Link to previous page for this segment collection.
   *
   * @param string $previousLink
   */
  public function setPreviousLink($previousLink)
  {
    $this->previousLink = $previousLink;
  }
  /**
   * @return string
   */
  public function getPreviousLink()
  {
    return $this->previousLink;
  }
  /**
   * The starting index of the resources, which is 1 by default or otherwise
   * specified by the start-index query parameter.
   *
   * @param int $startIndex
   */
  public function setStartIndex($startIndex)
  {
    $this->startIndex = $startIndex;
  }
  /**
   * @return int
   */
  public function getStartIndex()
  {
    return $this->startIndex;
  }
  /**
   * The total number of results for the query, regardless of the number of
   * results in the response.
   *
   * @param int $totalResults
   */
  public function setTotalResults($totalResults)
  {
    $this->totalResults = $totalResults;
  }
  /**
   * @return int
   */
  public function getTotalResults()
  {
    return $this->totalResults;
  }
  /**
   * Email ID of the authenticated user
   *
   * @param string $username
   */
  public function setUsername($username)
  {
    $this->username = $username;
  }
  /**
   * @return string
   */
  public function getUsername()
  {
    return $this->username;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Segments::class, 'Google_Service_Analytics_Segments');
