Nav apraksta

Message.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. class Google_Service_Gmail_Message extends Google_Collection
  18. {
  19. protected $collection_key = 'labelIds';
  20. public $historyId;
  21. public $id;
  22. public $internalDate;
  23. public $labelIds;
  24. protected $payloadType = 'Google_Service_Gmail_MessagePart';
  25. protected $payloadDataType = '';
  26. public $raw;
  27. public $sizeEstimate;
  28. public $snippet;
  29. public $threadId;
  30. public function setHistoryId($historyId)
  31. {
  32. $this->historyId = $historyId;
  33. }
  34. public function getHistoryId()
  35. {
  36. return $this->historyId;
  37. }
  38. public function setId($id)
  39. {
  40. $this->id = $id;
  41. }
  42. public function getId()
  43. {
  44. return $this->id;
  45. }
  46. public function setInternalDate($internalDate)
  47. {
  48. $this->internalDate = $internalDate;
  49. }
  50. public function getInternalDate()
  51. {
  52. return $this->internalDate;
  53. }
  54. public function setLabelIds($labelIds)
  55. {
  56. $this->labelIds = $labelIds;
  57. }
  58. public function getLabelIds()
  59. {
  60. return $this->labelIds;
  61. }
  62. /**
  63. * @param Google_Service_Gmail_MessagePart
  64. */
  65. public function setPayload(Google_Service_Gmail_MessagePart $payload)
  66. {
  67. $this->payload = $payload;
  68. }
  69. /**
  70. * @return Google_Service_Gmail_MessagePart
  71. */
  72. public function getPayload()
  73. {
  74. return $this->payload;
  75. }
  76. public function setRaw($raw)
  77. {
  78. $this->raw = $raw;
  79. }
  80. public function getRaw()
  81. {
  82. return $this->raw;
  83. }
  84. public function setSizeEstimate($sizeEstimate)
  85. {
  86. $this->sizeEstimate = $sizeEstimate;
  87. }
  88. public function getSizeEstimate()
  89. {
  90. return $this->sizeEstimate;
  91. }
  92. public function setSnippet($snippet)
  93. {
  94. $this->snippet = $snippet;
  95. }
  96. public function getSnippet()
  97. {
  98. return $this->snippet;
  99. }
  100. public function setThreadId($threadId)
  101. {
  102. $this->threadId = $threadId;
  103. }
  104. public function getThreadId()
  105. {
  106. return $this->threadId;
  107. }
  108. }