GoogleSecuritySafebrowsingV4ThreatEntrySet.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. namespace Google\Service\Safebrowsing;
  18. class GoogleSecuritySafebrowsingV4ThreatEntrySet extends \Google\Model
  19. {
  20. /**
  21. * @var string
  22. */
  23. public $compressionType;
  24. protected $rawHashesType = GoogleSecuritySafebrowsingV4RawHashes::class;
  25. protected $rawHashesDataType = '';
  26. protected $rawIndicesType = GoogleSecuritySafebrowsingV4RawIndices::class;
  27. protected $rawIndicesDataType = '';
  28. protected $riceHashesType = GoogleSecuritySafebrowsingV4RiceDeltaEncoding::class;
  29. protected $riceHashesDataType = '';
  30. protected $riceIndicesType = GoogleSecuritySafebrowsingV4RiceDeltaEncoding::class;
  31. protected $riceIndicesDataType = '';
  32. /**
  33. * @param string
  34. */
  35. public function setCompressionType($compressionType)
  36. {
  37. $this->compressionType = $compressionType;
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getCompressionType()
  43. {
  44. return $this->compressionType;
  45. }
  46. /**
  47. * @param GoogleSecuritySafebrowsingV4RawHashes
  48. */
  49. public function setRawHashes(GoogleSecuritySafebrowsingV4RawHashes $rawHashes)
  50. {
  51. $this->rawHashes = $rawHashes;
  52. }
  53. /**
  54. * @return GoogleSecuritySafebrowsingV4RawHashes
  55. */
  56. public function getRawHashes()
  57. {
  58. return $this->rawHashes;
  59. }
  60. /**
  61. * @param GoogleSecuritySafebrowsingV4RawIndices
  62. */
  63. public function setRawIndices(GoogleSecuritySafebrowsingV4RawIndices $rawIndices)
  64. {
  65. $this->rawIndices = $rawIndices;
  66. }
  67. /**
  68. * @return GoogleSecuritySafebrowsingV4RawIndices
  69. */
  70. public function getRawIndices()
  71. {
  72. return $this->rawIndices;
  73. }
  74. /**
  75. * @param GoogleSecuritySafebrowsingV4RiceDeltaEncoding
  76. */
  77. public function setRiceHashes(GoogleSecuritySafebrowsingV4RiceDeltaEncoding $riceHashes)
  78. {
  79. $this->riceHashes = $riceHashes;
  80. }
  81. /**
  82. * @return GoogleSecuritySafebrowsingV4RiceDeltaEncoding
  83. */
  84. public function getRiceHashes()
  85. {
  86. return $this->riceHashes;
  87. }
  88. /**
  89. * @param GoogleSecuritySafebrowsingV4RiceDeltaEncoding
  90. */
  91. public function setRiceIndices(GoogleSecuritySafebrowsingV4RiceDeltaEncoding $riceIndices)
  92. {
  93. $this->riceIndices = $riceIndices;
  94. }
  95. /**
  96. * @return GoogleSecuritySafebrowsingV4RiceDeltaEncoding
  97. */
  98. public function getRiceIndices()
  99. {
  100. return $this->riceIndices;
  101. }
  102. }
  103. // Adding a class alias for backwards compatibility with the previous class name.
  104. class_alias(GoogleSecuritySafebrowsingV4ThreatEntrySet::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatEntrySet');