Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class Checksum extends \Google\Model
{
/**
* @var string
*/
public $sha256;
/**
* @param string
*/
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
/**
* @return string
*/
public function getSha256()
{
return $this->sha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Checksum::class, 'Google_Service_Safebrowsing_Checksum');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ClientInfo extends \Google\Model
{
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $clientVersion;
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientInfo::class, 'Google_Service_Safebrowsing_ClientInfo');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class Constraints extends \Google\Collection
{
protected $collection_key = 'supportedCompressions';
/**
* @var string
*/
public $deviceLocation;
/**
* @var string
*/
public $language;
/**
* @var int
*/
public $maxDatabaseEntries;
/**
* @var int
*/
public $maxUpdateEntries;
/**
* @var string
*/
public $region;
/**
* @var string[]
*/
public $supportedCompressions;
/**
* @param string
*/
public function setDeviceLocation($deviceLocation)
{
$this->deviceLocation = $deviceLocation;
}
/**
* @return string
*/
public function getDeviceLocation()
{
return $this->deviceLocation;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param int
*/
public function setMaxDatabaseEntries($maxDatabaseEntries)
{
$this->maxDatabaseEntries = $maxDatabaseEntries;
}
/**
* @return int
*/
public function getMaxDatabaseEntries()
{
return $this->maxDatabaseEntries;
}
/**
* @param int
*/
public function setMaxUpdateEntries($maxUpdateEntries)
{
$this->maxUpdateEntries = $maxUpdateEntries;
}
/**
* @return int
*/
public function getMaxUpdateEntries()
{
return $this->maxUpdateEntries;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param string[]
*/
public function setSupportedCompressions($supportedCompressions)
{
$this->supportedCompressions = $supportedCompressions;
}
/**
* @return string[]
*/
public function getSupportedCompressions()
{
return $this->supportedCompressions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Constraints::class, 'Google_Service_Safebrowsing_Constraints');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FetchThreatListUpdatesRequest extends \Google\Collection
{
protected $collection_key = 'listUpdateRequests';
protected $clientType = ClientInfo::class;
protected $clientDataType = '';
public $client;
protected $listUpdateRequestsType = ListUpdateRequest::class;
protected $listUpdateRequestsDataType = 'array';
public $listUpdateRequests;
/**
* @param ClientInfo
*/
public function setClient(ClientInfo $client)
{
$this->client = $client;
}
/**
* @return ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param ListUpdateRequest[]
*/
public function setListUpdateRequests($listUpdateRequests)
{
$this->listUpdateRequests = $listUpdateRequests;
}
/**
* @return ListUpdateRequest[]
*/
public function getListUpdateRequests()
{
return $this->listUpdateRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchThreatListUpdatesRequest::class, 'Google_Service_Safebrowsing_FetchThreatListUpdatesRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FetchThreatListUpdatesResponse extends \Google\Collection
{
protected $collection_key = 'listUpdateResponses';
protected $listUpdateResponsesType = ListUpdateResponse::class;
protected $listUpdateResponsesDataType = 'array';
public $listUpdateResponses;
/**
* @var string
*/
public $minimumWaitDuration;
/**
* @param ListUpdateResponse[]
*/
public function setListUpdateResponses($listUpdateResponses)
{
$this->listUpdateResponses = $listUpdateResponses;
}
/**
* @return ListUpdateResponse[]
*/
public function getListUpdateResponses()
{
return $this->listUpdateResponses;
}
/**
* @param string
*/
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
/**
* @return string
*/
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchThreatListUpdatesResponse::class, 'Google_Service_Safebrowsing_FetchThreatListUpdatesResponse');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FindFullHashesRequest extends \Google\Collection
{
protected $collection_key = 'clientStates';
protected $apiClientType = ClientInfo::class;
protected $apiClientDataType = '';
public $apiClient;
protected $clientType = ClientInfo::class;
protected $clientDataType = '';
public $client;
/**
* @var string[]
*/
public $clientStates;
protected $threatInfoType = ThreatInfo::class;
protected $threatInfoDataType = '';
public $threatInfo;
/**
* @param ClientInfo
*/
public function setApiClient(ClientInfo $apiClient)
{
$this->apiClient = $apiClient;
}
/**
* @return ClientInfo
*/
public function getApiClient()
{
return $this->apiClient;
}
/**
* @param ClientInfo
*/
public function setClient(ClientInfo $client)
{
$this->client = $client;
}
/**
* @return ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param string[]
*/
public function setClientStates($clientStates)
{
$this->clientStates = $clientStates;
}
/**
* @return string[]
*/
public function getClientStates()
{
return $this->clientStates;
}
/**
* @param ThreatInfo
*/
public function setThreatInfo(ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
/**
* @return ThreatInfo
*/
public function getThreatInfo()
{
return $this->threatInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindFullHashesRequest::class, 'Google_Service_Safebrowsing_FindFullHashesRequest');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FindFullHashesResponse extends \Google\Collection
{
protected $collection_key = 'matches';
protected $matchesType = ThreatMatch::class;
protected $matchesDataType = 'array';
public $matches;
/**
* @var string
*/
public $minimumWaitDuration;
/**
* @var string
*/
public $negativeCacheDuration;
/**
* @param ThreatMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return ThreatMatch[]
*/
public function getMatches()
{
return $this->matches;
}
/**
* @param string
*/
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
/**
* @return string
*/
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
/**
* @param string
*/
public function setNegativeCacheDuration($negativeCacheDuration)
{
$this->negativeCacheDuration = $negativeCacheDuration;
}
/**
* @return string
*/
public function getNegativeCacheDuration()
{
return $this->negativeCacheDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindFullHashesResponse::class, 'Google_Service_Safebrowsing_FindFullHashesResponse');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FindThreatMatchesRequest extends \Google\Model
{
protected $clientType = ClientInfo::class;
protected $clientDataType = '';
public $client;
protected $threatInfoType = ThreatInfo::class;
protected $threatInfoDataType = '';
public $threatInfo;
/**
* @param ClientInfo
*/
public function setClient(ClientInfo $client)
{
$this->client = $client;
}
/**
* @return ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param ThreatInfo
*/
public function setThreatInfo(ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
/**
* @return ThreatInfo
*/
public function getThreatInfo()
{
return $this->threatInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindThreatMatchesRequest::class, 'Google_Service_Safebrowsing_FindThreatMatchesRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class FindThreatMatchesResponse extends \Google\Collection
{
protected $collection_key = 'matches';
protected $matchesType = ThreatMatch::class;
protected $matchesDataType = 'array';
public $matches;
/**
* @param ThreatMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return ThreatMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindThreatMatchesResponse::class, 'Google_Service_Safebrowsing_FindThreatMatchesResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_Safebrowsing_GoogleProtobufEmpty');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4Checksum extends \Google\Model
{
/**
* @var string
*/
public $sha256;
/**
* @param string
*/
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
/**
* @return string
*/
public function getSha256()
{
return $this->sha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4Checksum::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4Checksum');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ClientInfo extends \Google\Model
{
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $clientVersion;
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ClientInfo::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ClientInfo');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest extends \Google\Collection
{
protected $collection_key = 'listUpdateRequests';
protected $clientType = GoogleSecuritySafebrowsingV4ClientInfo::class;
protected $clientDataType = '';
protected $listUpdateRequestsType = GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest::class;
protected $listUpdateRequestsDataType = 'array';
/**
* @param GoogleSecuritySafebrowsingV4ClientInfo
*/
public function setClient(GoogleSecuritySafebrowsingV4ClientInfo $client)
{
$this->client = $client;
}
/**
* @return GoogleSecuritySafebrowsingV4ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[]
*/
public function setListUpdateRequests($listUpdateRequests)
{
$this->listUpdateRequests = $listUpdateRequests;
}
/**
* @return GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[]
*/
public function getListUpdateRequests()
{
return $this->listUpdateRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest extends \Google\Model
{
protected $constraintsType = GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints::class;
protected $constraintsDataType = '';
/**
* @var string
*/
public $platformType;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
*/
public function setConstraints(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints $constraints)
{
$this->constraints = $constraints;
}
/**
* @return GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
*/
public function getConstraints()
{
return $this->constraints;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints extends \Google\Collection
{
protected $collection_key = 'supportedCompressions';
/**
* @var string
*/
public $deviceLocation;
/**
* @var string
*/
public $language;
/**
* @var int
*/
public $maxDatabaseEntries;
/**
* @var int
*/
public $maxUpdateEntries;
/**
* @var string
*/
public $region;
/**
* @var string[]
*/
public $supportedCompressions;
/**
* @param string
*/
public function setDeviceLocation($deviceLocation)
{
$this->deviceLocation = $deviceLocation;
}
/**
* @return string
*/
public function getDeviceLocation()
{
return $this->deviceLocation;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param int
*/
public function setMaxDatabaseEntries($maxDatabaseEntries)
{
$this->maxDatabaseEntries = $maxDatabaseEntries;
}
/**
* @return int
*/
public function getMaxDatabaseEntries()
{
return $this->maxDatabaseEntries;
}
/**
* @param int
*/
public function setMaxUpdateEntries($maxUpdateEntries)
{
$this->maxUpdateEntries = $maxUpdateEntries;
}
/**
* @return int
*/
public function getMaxUpdateEntries()
{
return $this->maxUpdateEntries;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param string[]
*/
public function setSupportedCompressions($supportedCompressions)
{
$this->supportedCompressions = $supportedCompressions;
}
/**
* @return string[]
*/
public function getSupportedCompressions()
{
return $this->supportedCompressions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse extends \Google\Collection
{
protected $collection_key = 'listUpdateResponses';
protected $listUpdateResponsesType = GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse::class;
protected $listUpdateResponsesDataType = 'array';
/**
* @var string
*/
public $minimumWaitDuration;
/**
* @param GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse[]
*/
public function setListUpdateResponses($listUpdateResponses)
{
$this->listUpdateResponses = $listUpdateResponses;
}
/**
* @return GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse[]
*/
public function getListUpdateResponses()
{
return $this->listUpdateResponses;
}
/**
* @param string
*/
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
/**
* @return string
*/
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse');

View File

@@ -0,0 +1,165 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse extends \Google\Collection
{
protected $collection_key = 'removals';
protected $additionsType = GoogleSecuritySafebrowsingV4ThreatEntrySet::class;
protected $additionsDataType = 'array';
protected $checksumType = GoogleSecuritySafebrowsingV4Checksum::class;
protected $checksumDataType = '';
/**
* @var string
*/
public $newClientState;
/**
* @var string
*/
public $platformType;
protected $removalsType = GoogleSecuritySafebrowsingV4ThreatEntrySet::class;
protected $removalsDataType = 'array';
/**
* @var string
*/
public $responseType;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntrySet[]
*/
public function setAdditions($additions)
{
$this->additions = $additions;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntrySet[]
*/
public function getAdditions()
{
return $this->additions;
}
/**
* @param GoogleSecuritySafebrowsingV4Checksum
*/
public function setChecksum(GoogleSecuritySafebrowsingV4Checksum $checksum)
{
$this->checksum = $checksum;
}
/**
* @return GoogleSecuritySafebrowsingV4Checksum
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* @param string
*/
public function setNewClientState($newClientState)
{
$this->newClientState = $newClientState;
}
/**
* @return string
*/
public function getNewClientState()
{
return $this->newClientState;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntrySet[]
*/
public function setRemovals($removals)
{
$this->removals = $removals;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntrySet[]
*/
public function getRemovals()
{
return $this->removals;
}
/**
* @param string
*/
public function setResponseType($responseType)
{
$this->responseType = $responseType;
}
/**
* @return string
*/
public function getResponseType()
{
return $this->responseType;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FindFullHashesRequest extends \Google\Collection
{
protected $collection_key = 'clientStates';
protected $apiClientType = GoogleSecuritySafebrowsingV4ClientInfo::class;
protected $apiClientDataType = '';
protected $clientType = GoogleSecuritySafebrowsingV4ClientInfo::class;
protected $clientDataType = '';
/**
* @var string[]
*/
public $clientStates;
protected $threatInfoType = GoogleSecuritySafebrowsingV4ThreatInfo::class;
protected $threatInfoDataType = '';
/**
* @param GoogleSecuritySafebrowsingV4ClientInfo
*/
public function setApiClient(GoogleSecuritySafebrowsingV4ClientInfo $apiClient)
{
$this->apiClient = $apiClient;
}
/**
* @return GoogleSecuritySafebrowsingV4ClientInfo
*/
public function getApiClient()
{
return $this->apiClient;
}
/**
* @param GoogleSecuritySafebrowsingV4ClientInfo
*/
public function setClient(GoogleSecuritySafebrowsingV4ClientInfo $client)
{
$this->client = $client;
}
/**
* @return GoogleSecuritySafebrowsingV4ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param string[]
*/
public function setClientStates($clientStates)
{
$this->clientStates = $clientStates;
}
/**
* @return string[]
*/
public function getClientStates()
{
return $this->clientStates;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatInfo
*/
public function setThreatInfo(GoogleSecuritySafebrowsingV4ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatInfo
*/
public function getThreatInfo()
{
return $this->threatInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FindFullHashesRequest::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FindFullHashesRequest');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FindFullHashesResponse extends \Google\Collection
{
protected $collection_key = 'matches';
protected $matchesType = GoogleSecuritySafebrowsingV4ThreatMatch::class;
protected $matchesDataType = 'array';
/**
* @var string
*/
public $minimumWaitDuration;
/**
* @var string
*/
public $negativeCacheDuration;
/**
* @param GoogleSecuritySafebrowsingV4ThreatMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatMatch[]
*/
public function getMatches()
{
return $this->matches;
}
/**
* @param string
*/
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
/**
* @return string
*/
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
/**
* @param string
*/
public function setNegativeCacheDuration($negativeCacheDuration)
{
$this->negativeCacheDuration = $negativeCacheDuration;
}
/**
* @return string
*/
public function getNegativeCacheDuration()
{
return $this->negativeCacheDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FindFullHashesResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FindFullHashesResponse');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest extends \Google\Model
{
protected $clientType = GoogleSecuritySafebrowsingV4ClientInfo::class;
protected $clientDataType = '';
protected $threatInfoType = GoogleSecuritySafebrowsingV4ThreatInfo::class;
protected $threatInfoDataType = '';
/**
* @param GoogleSecuritySafebrowsingV4ClientInfo
*/
public function setClient(GoogleSecuritySafebrowsingV4ClientInfo $client)
{
$this->client = $client;
}
/**
* @return GoogleSecuritySafebrowsingV4ClientInfo
*/
public function getClient()
{
return $this->client;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatInfo
*/
public function setThreatInfo(GoogleSecuritySafebrowsingV4ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatInfo
*/
public function getThreatInfo()
{
return $this->threatInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FindThreatMatchesRequest::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FindThreatMatchesRequest');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse extends \Google\Collection
{
protected $collection_key = 'matches';
protected $matchesType = GoogleSecuritySafebrowsingV4ThreatMatch::class;
protected $matchesDataType = 'array';
/**
* @param GoogleSecuritySafebrowsingV4ThreatMatch[]
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4FindThreatMatchesResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4FindThreatMatchesResponse');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ListThreatListsResponse extends \Google\Collection
{
protected $collection_key = 'threatLists';
protected $threatListsType = GoogleSecuritySafebrowsingV4ThreatListDescriptor::class;
protected $threatListsDataType = 'array';
/**
* @param GoogleSecuritySafebrowsingV4ThreatListDescriptor[]
*/
public function setThreatLists($threatLists)
{
$this->threatLists = $threatLists;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatListDescriptor[]
*/
public function getThreatLists()
{
return $this->threatLists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ListThreatListsResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ListThreatListsResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4RawHashes extends \Google\Model
{
/**
* @var int
*/
public $prefixSize;
/**
* @var string
*/
public $rawHashes;
/**
* @param int
*/
public function setPrefixSize($prefixSize)
{
$this->prefixSize = $prefixSize;
}
/**
* @return int
*/
public function getPrefixSize()
{
return $this->prefixSize;
}
/**
* @param string
*/
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return string
*/
public function getRawHashes()
{
return $this->rawHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4RawHashes::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4RawHashes');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4RawIndices extends \Google\Collection
{
protected $collection_key = 'indices';
/**
* @var int[]
*/
public $indices;
/**
* @param int[]
*/
public function setIndices($indices)
{
$this->indices = $indices;
}
/**
* @return int[]
*/
public function getIndices()
{
return $this->indices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4RawIndices::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4RawIndices');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4RiceDeltaEncoding extends \Google\Model
{
/**
* @var string
*/
public $encodedData;
/**
* @var string
*/
public $firstValue;
/**
* @var int
*/
public $numEntries;
/**
* @var int
*/
public $riceParameter;
/**
* @param string
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* @param string
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* @param int
*/
public function setNumEntries($numEntries)
{
$this->numEntries = $numEntries;
}
/**
* @return int
*/
public function getNumEntries()
{
return $this->numEntries;
}
/**
* @param int
*/
public function setRiceParameter($riceParameter)
{
$this->riceParameter = $riceParameter;
}
/**
* @return int
*/
public function getRiceParameter()
{
return $this->riceParameter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4RiceDeltaEncoding::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4RiceDeltaEncoding');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatEntry extends \Google\Model
{
/**
* @var string
*/
public $digest;
/**
* @var string
*/
public $hash;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatEntry::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatEntry');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatEntryMetadata extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry::class;
protected $entriesDataType = 'array';
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatEntryMetadata::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatEntryMetadata');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatEntrySet extends \Google\Model
{
/**
* @var string
*/
public $compressionType;
protected $rawHashesType = GoogleSecuritySafebrowsingV4RawHashes::class;
protected $rawHashesDataType = '';
protected $rawIndicesType = GoogleSecuritySafebrowsingV4RawIndices::class;
protected $rawIndicesDataType = '';
protected $riceHashesType = GoogleSecuritySafebrowsingV4RiceDeltaEncoding::class;
protected $riceHashesDataType = '';
protected $riceIndicesType = GoogleSecuritySafebrowsingV4RiceDeltaEncoding::class;
protected $riceIndicesDataType = '';
/**
* @param string
*/
public function setCompressionType($compressionType)
{
$this->compressionType = $compressionType;
}
/**
* @return string
*/
public function getCompressionType()
{
return $this->compressionType;
}
/**
* @param GoogleSecuritySafebrowsingV4RawHashes
*/
public function setRawHashes(GoogleSecuritySafebrowsingV4RawHashes $rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return GoogleSecuritySafebrowsingV4RawHashes
*/
public function getRawHashes()
{
return $this->rawHashes;
}
/**
* @param GoogleSecuritySafebrowsingV4RawIndices
*/
public function setRawIndices(GoogleSecuritySafebrowsingV4RawIndices $rawIndices)
{
$this->rawIndices = $rawIndices;
}
/**
* @return GoogleSecuritySafebrowsingV4RawIndices
*/
public function getRawIndices()
{
return $this->rawIndices;
}
/**
* @param GoogleSecuritySafebrowsingV4RiceDeltaEncoding
*/
public function setRiceHashes(GoogleSecuritySafebrowsingV4RiceDeltaEncoding $riceHashes)
{
$this->riceHashes = $riceHashes;
}
/**
* @return GoogleSecuritySafebrowsingV4RiceDeltaEncoding
*/
public function getRiceHashes()
{
return $this->riceHashes;
}
/**
* @param GoogleSecuritySafebrowsingV4RiceDeltaEncoding
*/
public function setRiceIndices(GoogleSecuritySafebrowsingV4RiceDeltaEncoding $riceIndices)
{
$this->riceIndices = $riceIndices;
}
/**
* @return GoogleSecuritySafebrowsingV4RiceDeltaEncoding
*/
public function getRiceIndices()
{
return $this->riceIndices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatEntrySet::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatEntrySet');

View File

@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatHit extends \Google\Collection
{
protected $collection_key = 'resources';
protected $clientInfoType = GoogleSecuritySafebrowsingV4ClientInfo::class;
protected $clientInfoDataType = '';
protected $entryType = GoogleSecuritySafebrowsingV4ThreatEntry::class;
protected $entryDataType = '';
/**
* @var string
*/
public $platformType;
protected $resourcesType = GoogleSecuritySafebrowsingV4ThreatHitThreatSource::class;
protected $resourcesDataType = 'array';
/**
* @var string
*/
public $threatType;
protected $userInfoType = GoogleSecuritySafebrowsingV4ThreatHitUserInfo::class;
protected $userInfoDataType = '';
/**
* @param GoogleSecuritySafebrowsingV4ClientInfo
*/
public function setClientInfo(GoogleSecuritySafebrowsingV4ClientInfo $clientInfo)
{
$this->clientInfo = $clientInfo;
}
/**
* @return GoogleSecuritySafebrowsingV4ClientInfo
*/
public function getClientInfo()
{
return $this->clientInfo;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntry
*/
public function setEntry(GoogleSecuritySafebrowsingV4ThreatEntry $entry)
{
$this->entry = $entry;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntry
*/
public function getEntry()
{
return $this->entry;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatHitThreatSource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatHitThreatSource[]
*/
public function getResources()
{
return $this->resources;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatHitUserInfo
*/
public function setUserInfo(GoogleSecuritySafebrowsingV4ThreatHitUserInfo $userInfo)
{
$this->userInfo = $userInfo;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatHitUserInfo
*/
public function getUserInfo()
{
return $this->userInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatHit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatHit');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatHitThreatSource extends \Google\Model
{
/**
* @var string
*/
public $referrer;
/**
* @var string
*/
public $remoteIp;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
/**
* @return string
*/
public function getReferrer()
{
return $this->referrer;
}
/**
* @param string
*/
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
/**
* @return string
*/
public function getRemoteIp()
{
return $this->remoteIp;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatHitThreatSource::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatHitThreatSource');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatHitUserInfo extends \Google\Model
{
/**
* @var string
*/
public $regionCode;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatHitUserInfo::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatHitUserInfo');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatInfo extends \Google\Collection
{
protected $collection_key = 'threatTypes';
/**
* @var string[]
*/
public $platformTypes;
protected $threatEntriesType = GoogleSecuritySafebrowsingV4ThreatEntry::class;
protected $threatEntriesDataType = 'array';
/**
* @var string[]
*/
public $threatEntryTypes;
/**
* @var string[]
*/
public $threatTypes;
/**
* @param string[]
*/
public function setPlatformTypes($platformTypes)
{
$this->platformTypes = $platformTypes;
}
/**
* @return string[]
*/
public function getPlatformTypes()
{
return $this->platformTypes;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntry[]
*/
public function setThreatEntries($threatEntries)
{
$this->threatEntries = $threatEntries;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntry[]
*/
public function getThreatEntries()
{
return $this->threatEntries;
}
/**
* @param string[]
*/
public function setThreatEntryTypes($threatEntryTypes)
{
$this->threatEntryTypes = $threatEntryTypes;
}
/**
* @return string[]
*/
public function getThreatEntryTypes()
{
return $this->threatEntryTypes;
}
/**
* @param string[]
*/
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
/**
* @return string[]
*/
public function getThreatTypes()
{
return $this->threatTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatInfo::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatInfo');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatListDescriptor extends \Google\Model
{
/**
* @var string
*/
public $platformType;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatListDescriptor::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatListDescriptor');

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV4ThreatMatch extends \Google\Model
{
/**
* @var string
*/
public $cacheDuration;
/**
* @var string
*/
public $platformType;
protected $threatDataType = '';
protected $threatEntryMetadataType = GoogleSecuritySafebrowsingV4ThreatEntryMetadata::class;
protected $threatEntryMetadataDataType = '';
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param string
*/
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
/**
* @return string
*/
public function getCacheDuration()
{
return $this->cacheDuration;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntry
*/
public function setThreat(GoogleSecuritySafebrowsingV4ThreatEntry $threat)
{
$this->threat = $threat;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntry
*/
public function getThreat()
{
return $this->threat;
}
/**
* @param GoogleSecuritySafebrowsingV4ThreatEntryMetadata
*/
public function setThreatEntryMetadata(GoogleSecuritySafebrowsingV4ThreatEntryMetadata $threatEntryMetadata)
{
$this->threatEntryMetadata = $threatEntryMetadata;
}
/**
* @return GoogleSecuritySafebrowsingV4ThreatEntryMetadata
*/
public function getThreatEntryMetadata()
{
return $this->threatEntryMetadata;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV4ThreatMatch::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV4ThreatMatch');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV5FullHash extends \Google\Collection
{
protected $collection_key = 'fullHashDetails';
/**
* @var string
*/
public $fullHash;
protected $fullHashDetailsType = GoogleSecuritySafebrowsingV5FullHashFullHashDetail::class;
protected $fullHashDetailsDataType = 'array';
/**
* @param string
*/
public function setFullHash($fullHash)
{
$this->fullHash = $fullHash;
}
/**
* @return string
*/
public function getFullHash()
{
return $this->fullHash;
}
/**
* @param GoogleSecuritySafebrowsingV5FullHashFullHashDetail[]
*/
public function setFullHashDetails($fullHashDetails)
{
$this->fullHashDetails = $fullHashDetails;
}
/**
* @return GoogleSecuritySafebrowsingV5FullHashFullHashDetail[]
*/
public function getFullHashDetails()
{
return $this->fullHashDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5FullHash::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5FullHash');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV5FullHashFullHashDetail extends \Google\Collection
{
protected $collection_key = 'attributes';
/**
* @var string[]
*/
public $attributes;
/**
* @var string
*/
public $threatType;
/**
* @param string[]
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5FullHashFullHashDetail::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5FullHashFullHashDetail');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class GoogleSecuritySafebrowsingV5SearchHashesResponse extends \Google\Collection
{
protected $collection_key = 'fullHashes';
/**
* @var string
*/
public $cacheDuration;
protected $fullHashesType = GoogleSecuritySafebrowsingV5FullHash::class;
protected $fullHashesDataType = 'array';
/**
* @param string
*/
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
/**
* @return string
*/
public function getCacheDuration()
{
return $this->cacheDuration;
}
/**
* @param GoogleSecuritySafebrowsingV5FullHash[]
*/
public function setFullHashes($fullHashes)
{
$this->fullHashes = $fullHashes;
}
/**
* @return GoogleSecuritySafebrowsingV5FullHash[]
*/
public function getFullHashes()
{
return $this->fullHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5SearchHashesResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5SearchHashesResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ListThreatListsResponse extends \Google\Collection
{
protected $collection_key = 'threatLists';
protected $threatListsType = ThreatListDescriptor::class;
protected $threatListsDataType = 'array';
public $threatLists;
/**
* @param ThreatListDescriptor[]
*/
public function setThreatLists($threatLists)
{
$this->threatLists = $threatLists;
}
/**
* @return ThreatListDescriptor[]
*/
public function getThreatLists()
{
return $this->threatLists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListThreatListsResponse::class, 'Google_Service_Safebrowsing_ListThreatListsResponse');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ListUpdateRequest extends \Google\Model
{
protected $constraintsType = Constraints::class;
protected $constraintsDataType = '';
public $constraints;
/**
* @var string
*/
public $platformType;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param Constraints
*/
public function setConstraints(Constraints $constraints)
{
$this->constraints = $constraints;
}
/**
* @return Constraints
*/
public function getConstraints()
{
return $this->constraints;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUpdateRequest::class, 'Google_Service_Safebrowsing_ListUpdateRequest');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ListUpdateResponse extends \Google\Collection
{
protected $collection_key = 'removals';
protected $additionsType = ThreatEntrySet::class;
protected $additionsDataType = 'array';
public $additions;
protected $checksumType = Checksum::class;
protected $checksumDataType = '';
public $checksum;
/**
* @var string
*/
public $newClientState;
/**
* @var string
*/
public $platformType;
protected $removalsType = ThreatEntrySet::class;
protected $removalsDataType = 'array';
public $removals;
/**
* @var string
*/
public $responseType;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param ThreatEntrySet[]
*/
public function setAdditions($additions)
{
$this->additions = $additions;
}
/**
* @return ThreatEntrySet[]
*/
public function getAdditions()
{
return $this->additions;
}
/**
* @param Checksum
*/
public function setChecksum(Checksum $checksum)
{
$this->checksum = $checksum;
}
/**
* @return Checksum
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* @param string
*/
public function setNewClientState($newClientState)
{
$this->newClientState = $newClientState;
}
/**
* @return string
*/
public function getNewClientState()
{
return $this->newClientState;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param ThreatEntrySet[]
*/
public function setRemovals($removals)
{
$this->removals = $removals;
}
/**
* @return ThreatEntrySet[]
*/
public function getRemovals()
{
return $this->removals;
}
/**
* @param string
*/
public function setResponseType($responseType)
{
$this->responseType = $responseType;
}
/**
* @return string
*/
public function getResponseType()
{
return $this->responseType;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUpdateResponse::class, 'Google_Service_Safebrowsing_ListUpdateResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class MetadataEntry extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetadataEntry::class, 'Google_Service_Safebrowsing_MetadataEntry');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class RawHashes extends \Google\Model
{
/**
* @var int
*/
public $prefixSize;
/**
* @var string
*/
public $rawHashes;
/**
* @param int
*/
public function setPrefixSize($prefixSize)
{
$this->prefixSize = $prefixSize;
}
/**
* @return int
*/
public function getPrefixSize()
{
return $this->prefixSize;
}
/**
* @param string
*/
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return string
*/
public function getRawHashes()
{
return $this->rawHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawHashes::class, 'Google_Service_Safebrowsing_RawHashes');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class RawIndices extends \Google\Collection
{
protected $collection_key = 'indices';
/**
* @var int[]
*/
public $indices;
/**
* @param int[]
*/
public function setIndices($indices)
{
$this->indices = $indices;
}
/**
* @return int[]
*/
public function getIndices()
{
return $this->indices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawIndices::class, 'Google_Service_Safebrowsing_RawIndices');

View File

@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FindFullHashesResponse;
/**
* The "encodedFullHashes" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $encodedFullHashes = $safebrowsingService->encodedFullHashes;
* </code>
*/
class EncodedFullHashes extends \Google\Service\Resource
{
/**
* (encodedFullHashes.get)
*
* @param string $encodedRequest A serialized FindFullHashesRequest proto.
* @param array $optParams Optional parameters.
*
* @opt_param string clientId A client ID that (hopefully) uniquely identifies
* the client implementation of the Safe Browsing API.
* @opt_param string clientVersion The version of the client implementation.
* @return GoogleSecuritySafebrowsingV4FindFullHashesResponse
*/
public function get($encodedRequest, $optParams = [])
{
$params = ['encodedRequest' => $encodedRequest];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleSecuritySafebrowsingV4FindFullHashesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncodedFullHashes::class, 'Google_Service_Safebrowsing_Resource_EncodedFullHashes');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse;
/**
* The "encodedUpdates" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $encodedUpdates = $safebrowsingService->encodedUpdates;
* </code>
*/
class EncodedUpdates extends \Google\Service\Resource
{
/**
* (encodedUpdates.get)
*
* @param string $encodedRequest A serialized FetchThreatListUpdatesRequest
* proto.
* @param array $optParams Optional parameters.
*
* @opt_param string clientId A client ID that uniquely identifies the client
* implementation of the Safe Browsing API.
* @opt_param string clientVersion The version of the client implementation.
* @return GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
*/
public function get($encodedRequest, $optParams = [])
{
$params = ['encodedRequest' => $encodedRequest];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncodedUpdates::class, 'Google_Service_Safebrowsing_Resource_EncodedUpdates');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FindFullHashesRequest;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FindFullHashesResponse;
/**
* The "fullHashes" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $fullHashes = $safebrowsingService->fullHashes;
* </code>
*/
class FullHashes extends \Google\Service\Resource
{
/**
* Finds the full hashes that match the requested hash prefixes.
* (fullHashes.find)
*
* @param GoogleSecuritySafebrowsingV4FindFullHashesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleSecuritySafebrowsingV4FindFullHashesResponse
*/
public function find(GoogleSecuritySafebrowsingV4FindFullHashesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('find', [$params], GoogleSecuritySafebrowsingV4FindFullHashesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FullHashes::class, 'Google_Service_Safebrowsing_Resource_FullHashes');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV5SearchHashesResponse;
/**
* The "hashes" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $hashes = $safebrowsingService->hashes;
* </code>
*/
class Hashes extends \Google\Service\Resource
{
/**
* Search for full hashes matching the specified prefixes. This is a custom
* method as defined by https://google.aip.dev/136 (the custom method refers to
* this method having a custom name within Google's general API development
* nomenclature; it does not refer to using a custom HTTP method).
* (hashes.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string hashPrefixes Required. The hash prefixes to be looked up.
* Clients MUST NOT send more than 1000 hash prefixes. However, following the
* URL processing procedure, clients SHOULD NOT need to send more than 30 hash
* prefixes. Currently each hash prefix is required to be exactly 4 bytes long.
* This MAY be relaxed in the future.
* @return GoogleSecuritySafebrowsingV5SearchHashesResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleSecuritySafebrowsingV5SearchHashesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Hashes::class, 'Google_Service_Safebrowsing_Resource_Hashes');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleProtobufEmpty;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4ThreatHit;
/**
* The "threatHits" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $threatHits = $safebrowsingService->threatHits;
* </code>
*/
class ThreatHits extends \Google\Service\Resource
{
/**
* Reports a Safe Browsing threat list hit to Google. Only projects with
* TRUSTED_REPORTER visibility can use this method. (threatHits.create)
*
* @param GoogleSecuritySafebrowsingV4ThreatHit $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
*/
public function create(GoogleSecuritySafebrowsingV4ThreatHit $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatHits::class, 'Google_Service_Safebrowsing_Resource_ThreatHits');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse;
/**
* The "threatListUpdates" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $threatListUpdates = $safebrowsingService->threatListUpdates;
* </code>
*/
class ThreatListUpdates extends \Google\Service\Resource
{
/**
* Fetches the most recent threat list updates. A client can request updates for
* multiple lists at once. (threatListUpdates.fetch)
*
* @param GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
*/
public function fetch(GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('fetch', [$params], GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatListUpdates::class, 'Google_Service_Safebrowsing_Resource_ThreatListUpdates');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4ListThreatListsResponse;
/**
* The "threatLists" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $threatLists = $safebrowsingService->threatLists;
* </code>
*/
class ThreatLists extends \Google\Service\Resource
{
/**
* Lists the Safe Browsing threat lists available for download.
* (threatLists.listThreatLists)
*
* @param array $optParams Optional parameters.
* @return GoogleSecuritySafebrowsingV4ListThreatListsResponse
*/
public function listThreatLists($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleSecuritySafebrowsingV4ListThreatListsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatLists::class, 'Google_Service_Safebrowsing_Resource_ThreatLists');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing\Resource;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FindThreatMatchesRequest;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV4FindThreatMatchesResponse;
/**
* The "threatMatches" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $threatMatches = $safebrowsingService->threatMatches;
* </code>
*/
class ThreatMatches extends \Google\Service\Resource
{
/**
* Finds the threat entries that match the Safe Browsing lists.
* (threatMatches.find)
*
* @param GoogleSecuritySafebrowsingV4FindThreatMatchesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleSecuritySafebrowsingV4FindThreatMatchesResponse
*/
public function find(GoogleSecuritySafebrowsingV4FindThreatMatchesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('find', [$params], GoogleSecuritySafebrowsingV4FindThreatMatchesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatMatches::class, 'Google_Service_Safebrowsing_Resource_ThreatMatches');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class RiceDeltaEncoding extends \Google\Model
{
/**
* @var string
*/
public $encodedData;
/**
* @var string
*/
public $firstValue;
/**
* @var int
*/
public $numEntries;
/**
* @var int
*/
public $riceParameter;
/**
* @param string
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* @param string
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* @param int
*/
public function setNumEntries($numEntries)
{
$this->numEntries = $numEntries;
}
/**
* @return int
*/
public function getNumEntries()
{
return $this->numEntries;
}
/**
* @param int
*/
public function setRiceParameter($riceParameter)
{
$this->riceParameter = $riceParameter;
}
/**
* @return int
*/
public function getRiceParameter()
{
return $this->riceParameter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RiceDeltaEncoding::class, 'Google_Service_Safebrowsing_RiceDeltaEncoding');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class SafebrowsingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SafebrowsingEmpty::class, 'Google_Service_Safebrowsing_SafebrowsingEmpty');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatEntry extends \Google\Model
{
/**
* @var string
*/
public $digest;
/**
* @var string
*/
public $hash;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatEntry::class, 'Google_Service_Safebrowsing_ThreatEntry');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatEntryMetadata extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = MetadataEntry::class;
protected $entriesDataType = 'array';
public $entries;
/**
* @param MetadataEntry[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return MetadataEntry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatEntryMetadata::class, 'Google_Service_Safebrowsing_ThreatEntryMetadata');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatEntrySet extends \Google\Model
{
/**
* @var string
*/
public $compressionType;
protected $rawHashesType = RawHashes::class;
protected $rawHashesDataType = '';
public $rawHashes;
protected $rawIndicesType = RawIndices::class;
protected $rawIndicesDataType = '';
public $rawIndices;
protected $riceHashesType = RiceDeltaEncoding::class;
protected $riceHashesDataType = '';
public $riceHashes;
protected $riceIndicesType = RiceDeltaEncoding::class;
protected $riceIndicesDataType = '';
public $riceIndices;
/**
* @param string
*/
public function setCompressionType($compressionType)
{
$this->compressionType = $compressionType;
}
/**
* @return string
*/
public function getCompressionType()
{
return $this->compressionType;
}
/**
* @param RawHashes
*/
public function setRawHashes(RawHashes $rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return RawHashes
*/
public function getRawHashes()
{
return $this->rawHashes;
}
/**
* @param RawIndices
*/
public function setRawIndices(RawIndices $rawIndices)
{
$this->rawIndices = $rawIndices;
}
/**
* @return RawIndices
*/
public function getRawIndices()
{
return $this->rawIndices;
}
/**
* @param RiceDeltaEncoding
*/
public function setRiceHashes(RiceDeltaEncoding $riceHashes)
{
$this->riceHashes = $riceHashes;
}
/**
* @return RiceDeltaEncoding
*/
public function getRiceHashes()
{
return $this->riceHashes;
}
/**
* @param RiceDeltaEncoding
*/
public function setRiceIndices(RiceDeltaEncoding $riceIndices)
{
$this->riceIndices = $riceIndices;
}
/**
* @return RiceDeltaEncoding
*/
public function getRiceIndices()
{
return $this->riceIndices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatEntrySet::class, 'Google_Service_Safebrowsing_ThreatEntrySet');

View File

@@ -0,0 +1,131 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatHit extends \Google\Collection
{
protected $collection_key = 'resources';
protected $clientInfoType = ClientInfo::class;
protected $clientInfoDataType = '';
public $clientInfo;
protected $entryType = ThreatEntry::class;
protected $entryDataType = '';
public $entry;
/**
* @var string
*/
public $platformType;
protected $resourcesType = ThreatSource::class;
protected $resourcesDataType = 'array';
public $resources;
/**
* @var string
*/
public $threatType;
protected $userInfoType = UserInfo::class;
protected $userInfoDataType = '';
public $userInfo;
/**
* @param ClientInfo
*/
public function setClientInfo(ClientInfo $clientInfo)
{
$this->clientInfo = $clientInfo;
}
/**
* @return ClientInfo
*/
public function getClientInfo()
{
return $this->clientInfo;
}
/**
* @param ThreatEntry
*/
public function setEntry(ThreatEntry $entry)
{
$this->entry = $entry;
}
/**
* @return ThreatEntry
*/
public function getEntry()
{
return $this->entry;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param ThreatSource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return ThreatSource[]
*/
public function getResources()
{
return $this->resources;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
/**
* @param UserInfo
*/
public function setUserInfo(UserInfo $userInfo)
{
$this->userInfo = $userInfo;
}
/**
* @return UserInfo
*/
public function getUserInfo()
{
return $this->userInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatHit::class, 'Google_Service_Safebrowsing_ThreatHit');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatInfo extends \Google\Collection
{
protected $collection_key = 'threatTypes';
/**
* @var string[]
*/
public $platformTypes;
protected $threatEntriesType = ThreatEntry::class;
protected $threatEntriesDataType = 'array';
public $threatEntries;
/**
* @var string[]
*/
public $threatEntryTypes;
/**
* @var string[]
*/
public $threatTypes;
/**
* @param string[]
*/
public function setPlatformTypes($platformTypes)
{
$this->platformTypes = $platformTypes;
}
/**
* @return string[]
*/
public function getPlatformTypes()
{
return $this->platformTypes;
}
/**
* @param ThreatEntry[]
*/
public function setThreatEntries($threatEntries)
{
$this->threatEntries = $threatEntries;
}
/**
* @return ThreatEntry[]
*/
public function getThreatEntries()
{
return $this->threatEntries;
}
/**
* @param string[]
*/
public function setThreatEntryTypes($threatEntryTypes)
{
$this->threatEntryTypes = $threatEntryTypes;
}
/**
* @return string[]
*/
public function getThreatEntryTypes()
{
return $this->threatEntryTypes;
}
/**
* @param string[]
*/
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
/**
* @return string[]
*/
public function getThreatTypes()
{
return $this->threatTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatInfo::class, 'Google_Service_Safebrowsing_ThreatInfo');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatListDescriptor extends \Google\Model
{
/**
* @var string
*/
public $platformType;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatListDescriptor::class, 'Google_Service_Safebrowsing_ThreatListDescriptor');

View File

@@ -0,0 +1,131 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatMatch extends \Google\Model
{
/**
* @var string
*/
public $cacheDuration;
/**
* @var string
*/
public $platformType;
protected $threatDataType = '';
public $threat;
protected $threatEntryMetadataType = ThreatEntryMetadata::class;
protected $threatEntryMetadataDataType = '';
public $threatEntryMetadata;
/**
* @var string
*/
public $threatEntryType;
/**
* @var string
*/
public $threatType;
/**
* @param string
*/
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
/**
* @return string
*/
public function getCacheDuration()
{
return $this->cacheDuration;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param ThreatEntry
*/
public function setThreat(ThreatEntry $threat)
{
$this->threat = $threat;
}
/**
* @return ThreatEntry
*/
public function getThreat()
{
return $this->threat;
}
/**
* @param ThreatEntryMetadata
*/
public function setThreatEntryMetadata(ThreatEntryMetadata $threatEntryMetadata)
{
$this->threatEntryMetadata = $threatEntryMetadata;
}
/**
* @return ThreatEntryMetadata
*/
public function getThreatEntryMetadata()
{
return $this->threatEntryMetadata;
}
/**
* @param string
*/
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
/**
* @return string
*/
public function getThreatEntryType()
{
return $this->threatEntryType;
}
/**
* @param string
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return string
*/
public function getThreatType()
{
return $this->threatType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatMatch::class, 'Google_Service_Safebrowsing_ThreatMatch');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class ThreatSource extends \Google\Model
{
/**
* @var string
*/
public $referrer;
/**
* @var string
*/
public $remoteIp;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
/**
* @return string
*/
public function getReferrer()
{
return $this->referrer;
}
/**
* @param string
*/
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
/**
* @return string
*/
public function getRemoteIp()
{
return $this->remoteIp;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatSource::class, 'Google_Service_Safebrowsing_ThreatSource');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Safebrowsing;
class UserInfo extends \Google\Model
{
/**
* @var string
*/
public $regionCode;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserInfo::class, 'Google_Service_Safebrowsing_UserInfo');