1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Gmail;
19
20class History extends \Google\Collection
21{
22  protected $collection_key = 'messagesDeleted';
23  /**
24   * @var string
25   */
26  public $id;
27  protected $labelsAddedType = HistoryLabelAdded::class;
28  protected $labelsAddedDataType = 'array';
29  protected $labelsRemovedType = HistoryLabelRemoved::class;
30  protected $labelsRemovedDataType = 'array';
31  protected $messagesType = Message::class;
32  protected $messagesDataType = 'array';
33  protected $messagesAddedType = HistoryMessageAdded::class;
34  protected $messagesAddedDataType = 'array';
35  protected $messagesDeletedType = HistoryMessageDeleted::class;
36  protected $messagesDeletedDataType = 'array';
37
38  /**
39   * @param string
40   */
41  public function setId($id)
42  {
43    $this->id = $id;
44  }
45  /**
46   * @return string
47   */
48  public function getId()
49  {
50    return $this->id;
51  }
52  /**
53   * @param HistoryLabelAdded[]
54   */
55  public function setLabelsAdded($labelsAdded)
56  {
57    $this->labelsAdded = $labelsAdded;
58  }
59  /**
60   * @return HistoryLabelAdded[]
61   */
62  public function getLabelsAdded()
63  {
64    return $this->labelsAdded;
65  }
66  /**
67   * @param HistoryLabelRemoved[]
68   */
69  public function setLabelsRemoved($labelsRemoved)
70  {
71    $this->labelsRemoved = $labelsRemoved;
72  }
73  /**
74   * @return HistoryLabelRemoved[]
75   */
76  public function getLabelsRemoved()
77  {
78    return $this->labelsRemoved;
79  }
80  /**
81   * @param Message[]
82   */
83  public function setMessages($messages)
84  {
85    $this->messages = $messages;
86  }
87  /**
88   * @return Message[]
89   */
90  public function getMessages()
91  {
92    return $this->messages;
93  }
94  /**
95   * @param HistoryMessageAdded[]
96   */
97  public function setMessagesAdded($messagesAdded)
98  {
99    $this->messagesAdded = $messagesAdded;
100  }
101  /**
102   * @return HistoryMessageAdded[]
103   */
104  public function getMessagesAdded()
105  {
106    return $this->messagesAdded;
107  }
108  /**
109   * @param HistoryMessageDeleted[]
110   */
111  public function setMessagesDeleted($messagesDeleted)
112  {
113    $this->messagesDeleted = $messagesDeleted;
114  }
115  /**
116   * @return HistoryMessageDeleted[]
117   */
118  public function getMessagesDeleted()
119  {
120    return $this->messagesDeleted;
121  }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(History::class, 'Google_Service_Gmail_History');
126