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\Safebrowsing; 19 20class GoogleSecuritySafebrowsingV4ThreatHit extends \Google\Collection 21{ 22 protected $collection_key = 'resources'; 23 protected $clientInfoType = GoogleSecuritySafebrowsingV4ClientInfo::class; 24 protected $clientInfoDataType = ''; 25 protected $entryType = GoogleSecuritySafebrowsingV4ThreatEntry::class; 26 protected $entryDataType = ''; 27 /** 28 * @var string 29 */ 30 public $platformType; 31 protected $resourcesType = GoogleSecuritySafebrowsingV4ThreatHitThreatSource::class; 32 protected $resourcesDataType = 'array'; 33 /** 34 * @var string 35 */ 36 public $threatType; 37 protected $userInfoType = GoogleSecuritySafebrowsingV4ThreatHitUserInfo::class; 38 protected $userInfoDataType = ''; 39 40 /** 41 * @param GoogleSecuritySafebrowsingV4ClientInfo 42 */ 43 public function setClientInfo(GoogleSecuritySafebrowsingV4ClientInfo $clientInfo) 44 { 45 $this->clientInfo = $clientInfo; 46 } 47 /** 48 * @return GoogleSecuritySafebrowsingV4ClientInfo 49 */ 50 public function getClientInfo() 51 { 52 return $this->clientInfo; 53 } 54 /** 55 * @param GoogleSecuritySafebrowsingV4ThreatEntry 56 */ 57 public function setEntry(GoogleSecuritySafebrowsingV4ThreatEntry $entry) 58 { 59 $this->entry = $entry; 60 } 61 /** 62 * @return GoogleSecuritySafebrowsingV4ThreatEntry 63 */ 64 public function getEntry() 65 { 66 return $this->entry; 67 } 68 /** 69 * @param string 70 */ 71 public function setPlatformType($platformType) 72 { 73 $this->platformType = $platformType; 74 } 75 /** 76 * @return string 77 */ 78 public function getPlatformType() 79 { 80 return $this->platformType; 81 } 82 /** 83 * @param GoogleSecuritySafebrowsingV4ThreatHitThreatSource[] 84 */ 85 public function setResources($resources) 86 { 87 $this->resources = $resources; 88 } 89 /** 90 * @return GoogleSecuritySafebrowsingV4ThreatHitThreatSource[] 91 */ 92 public function getResources() 93 { 94 return $this->resources; 95 } 96 /** 97 * @param string 98 */ 99 public function setThreatType($threatType) 100 { 101 $this->threatType = $threatType; 102 } 103 /** 104 * @return string 105 */ 106 public function getThreatType() 107 { 108 return $this->threatType; 109 } 110 /** 111 * @param GoogleSecuritySafebrowsingV4ThreatHitUserInfo 112 */ 113 public function setUserInfo(GoogleSecuritySafebrowsingV4ThreatHitUserInfo $userInfo) 114 { 115 $this->userInfo = $userInfo; 116 } 117 /** 118 * @return GoogleSecuritySafebrowsingV4ThreatHitUserInfo 119 */ 120 public function getUserInfo() 121 { 122 return $this->userInfo; 123 } 124} 125 126// Adding a class alias for backwards compatibility with the previous class name. 127class_alias(GoogleSecuritySafebrowsingV4ThreatHit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatHit'); 128