Sin descripción

ThreatMatch.php 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_Safebrowsing_ThreatMatch extends Google_Model
  18. {
  19. public $cacheDuration;
  20. public $platformType;
  21. protected $threatDataType = '';
  22. protected $threatEntryMetadataType = 'Google_Service_Safebrowsing_ThreatEntryMetadata';
  23. protected $threatEntryMetadataDataType = '';
  24. public $threatEntryType;
  25. public $threatType;
  26. public function setCacheDuration($cacheDuration)
  27. {
  28. $this->cacheDuration = $cacheDuration;
  29. }
  30. public function getCacheDuration()
  31. {
  32. return $this->cacheDuration;
  33. }
  34. public function setPlatformType($platformType)
  35. {
  36. $this->platformType = $platformType;
  37. }
  38. public function getPlatformType()
  39. {
  40. return $this->platformType;
  41. }
  42. /**
  43. * @param Google_Service_Safebrowsing_ThreatEntry
  44. */
  45. public function setThreat(Google_Service_Safebrowsing_ThreatEntry $threat)
  46. {
  47. $this->threat = $threat;
  48. }
  49. /**
  50. * @return Google_Service_Safebrowsing_ThreatEntry
  51. */
  52. public function getThreat()
  53. {
  54. return $this->threat;
  55. }
  56. /**
  57. * @param Google_Service_Safebrowsing_ThreatEntryMetadata
  58. */
  59. public function setThreatEntryMetadata(Google_Service_Safebrowsing_ThreatEntryMetadata $threatEntryMetadata)
  60. {
  61. $this->threatEntryMetadata = $threatEntryMetadata;
  62. }
  63. /**
  64. * @return Google_Service_Safebrowsing_ThreatEntryMetadata
  65. */
  66. public function getThreatEntryMetadata()
  67. {
  68. return $this->threatEntryMetadata;
  69. }
  70. public function setThreatEntryType($threatEntryType)
  71. {
  72. $this->threatEntryType = $threatEntryType;
  73. }
  74. public function getThreatEntryType()
  75. {
  76. return $this->threatEntryType;
  77. }
  78. public function setThreatType($threatType)
  79. {
  80. $this->threatType = $threatType;
  81. }
  82. public function getThreatType()
  83. {
  84. return $this->threatType;
  85. }
  86. }