gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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 GoogleSecuritySafebrowsingV5BatchGetHashListsResponse extends \Google\Collection
{
protected $collection_key = 'hashLists';
protected $hashListsType = GoogleSecuritySafebrowsingV5HashList::class;
protected $hashListsDataType = 'array';
/**
* The hash lists in the same order given in the request.
*
* @param GoogleSecuritySafebrowsingV5HashList[] $hashLists
*/
public function setHashLists($hashLists)
{
$this->hashLists = $hashLists;
}
/**
* @return GoogleSecuritySafebrowsingV5HashList[]
*/
public function getHashLists()
{
return $this->hashLists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5BatchGetHashListsResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5BatchGetHashListsResponse');
@@ -0,0 +1,70 @@
<?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';
/**
* The matching full hash. This is the SHA256 hash. The length will be exactly
* 32 bytes.
*
* @var string
*/
public $fullHash;
protected $fullHashDetailsType = GoogleSecuritySafebrowsingV5FullHashFullHashDetail::class;
protected $fullHashDetailsDataType = 'array';
/**
* The matching full hash. This is the SHA256 hash. The length will be exactly
* 32 bytes.
*
* @param string $fullHash
*/
public function setFullHash($fullHash)
{
$this->fullHash = $fullHash;
}
/**
* @return string
*/
public function getFullHash()
{
return $this->fullHash;
}
/**
* Unordered list. A repeated field identifying the details relevant to this
* full hash.
*
* @param GoogleSecuritySafebrowsingV5FullHashFullHashDetail[] $fullHashDetails
*/
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');
@@ -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 GoogleSecuritySafebrowsingV5FullHashFullHashDetail extends \Google\Collection
{
/**
* Unknown threat type. If this is returned by the server, the client shall
* disregard the enclosing `FullHashDetail` altogether.
*/
public const THREAT_TYPE_THREAT_TYPE_UNSPECIFIED = 'THREAT_TYPE_UNSPECIFIED';
/**
* Malware threat type. Malware is any software or mobile application
* specifically designed to harm a computer, a mobile device, the software
* it's running, or its users. Malware exhibits malicious behavior that can
* include installing software without user consent and installing harmful
* software such as viruses. More information can be found
* [here](https://developers.google.com/search/docs/monitor-
* debug/security/malware).
*/
public const THREAT_TYPE_MALWARE = 'MALWARE';
/**
* Social engineering threat type. Social engineering pages falsely purport to
* act on behalf of a third party with the intention of confusing viewers into
* performing an action with which the viewer would only trust a true agent of
* that third party. Phishing is a type of social engineering that tricks the
* viewer into performing the specific action of providing information, such
* as login credentials. More information can be found
* [here](https://developers.google.com/search/docs/monitor-
* debug/security/social-engineering).
*/
public const THREAT_TYPE_SOCIAL_ENGINEERING = 'SOCIAL_ENGINEERING';
/**
* Unwanted software threat type. Unwanted software is any software that does
* not adhere to [Google's Software
* Principles](https://www.google.com/about/software-principles.html) but
* isn't malware.
*/
public const THREAT_TYPE_UNWANTED_SOFTWARE = 'UNWANTED_SOFTWARE';
/**
* Potentially harmful application threat type [as used by Google Play Protect
* for the Play Store](https://developers.google.com/android/play-
* protect/potentially-harmful-applications).
*/
public const THREAT_TYPE_POTENTIALLY_HARMFUL_APPLICATION = 'POTENTIALLY_HARMFUL_APPLICATION';
protected $collection_key = 'attributes';
/**
* Unordered list. Additional attributes about those full hashes. This may be
* empty.
*
* @var string[]
*/
public $attributes;
/**
* The type of threat. This field will never be empty.
*
* @var string
*/
public $threatType;
/**
* Unordered list. Additional attributes about those full hashes. This may be
* empty.
*
* @param string[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* The type of threat. This field will never be empty.
*
* Accepted values: THREAT_TYPE_UNSPECIFIED, MALWARE, SOCIAL_ENGINEERING,
* UNWANTED_SOFTWARE, POTENTIALLY_HARMFUL_APPLICATION
*
* @param self::THREAT_TYPE_* $threatType
*/
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
/**
* @return self::THREAT_TYPE_*
*/
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');
@@ -0,0 +1,275 @@
<?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 GoogleSecuritySafebrowsingV5HashList extends \Google\Model
{
protected $additionsEightBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit::class;
protected $additionsEightBytesDataType = '';
protected $additionsFourBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit::class;
protected $additionsFourBytesDataType = '';
protected $additionsSixteenBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit::class;
protected $additionsSixteenBytesDataType = '';
protected $additionsThirtyTwoBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit::class;
protected $additionsThirtyTwoBytesDataType = '';
protected $compressedRemovalsType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit::class;
protected $compressedRemovalsDataType = '';
protected $metadataType = GoogleSecuritySafebrowsingV5HashListMetadata::class;
protected $metadataDataType = '';
/**
* Clients should wait at least this long to get the hash list again. If
* omitted or zero, clients SHOULD fetch immediately because it indicates that
* the server has an additional update to be sent to the client, but could not
* due to the client-specified constraints.
*
* @var string
*/
public $minimumWaitDuration;
/**
* The name of the hash list. Note that the Global Cache is also just a hash
* list and can be referred to here.
*
* @var string
*/
public $name;
/**
* When true, this is a partial diff containing additions and removals based
* on what the client already has. When false, this is the complete hash list.
* When false, the client MUST delete any locally stored version for this hash
* list. This means that either the version possessed by the client is
* seriously out-of-date or the client data is believed to be corrupt. The
* `compressed_removals` field will be empty. When true, the client MUST apply
* an incremental update by applying removals and then additions.
*
* @var bool
*/
public $partialUpdate;
/**
* The sorted list of all hashes, hashed again with SHA256. This is the
* checksum for the sorted list of all hashes present in the database after
* applying the provided update. In the case that no updates were provided,
* the server will omit this field to indicate that the client should use the
* existing checksum.
*
* @var string
*/
public $sha256Checksum;
/**
* The version of the hash list. The client MUST NOT manipulate those bytes.
*
* @var string
*/
public $version;
/**
* The 8-byte additions.
*
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit $additionsEightBytes
*/
public function setAdditionsEightBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit $additionsEightBytes)
{
$this->additionsEightBytes = $additionsEightBytes;
}
/**
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit
*/
public function getAdditionsEightBytes()
{
return $this->additionsEightBytes;
}
/**
* The 4-byte additions.
*
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $additionsFourBytes
*/
public function setAdditionsFourBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $additionsFourBytes)
{
$this->additionsFourBytes = $additionsFourBytes;
}
/**
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
*/
public function getAdditionsFourBytes()
{
return $this->additionsFourBytes;
}
/**
* The 16-byte additions.
*
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit $additionsSixteenBytes
*/
public function setAdditionsSixteenBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit $additionsSixteenBytes)
{
$this->additionsSixteenBytes = $additionsSixteenBytes;
}
/**
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit
*/
public function getAdditionsSixteenBytes()
{
return $this->additionsSixteenBytes;
}
/**
* The 32-byte additions.
*
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit $additionsThirtyTwoBytes
*/
public function setAdditionsThirtyTwoBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit $additionsThirtyTwoBytes)
{
$this->additionsThirtyTwoBytes = $additionsThirtyTwoBytes;
}
/**
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit
*/
public function getAdditionsThirtyTwoBytes()
{
return $this->additionsThirtyTwoBytes;
}
/**
* The Rice-delta encoded version of removal indices. Since each hash list
* definitely has less than 2^32 entries, the indices are treated as 32-bit
* integers and encoded.
*
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $compressedRemovals
*/
public function setCompressedRemovals(GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $compressedRemovals)
{
$this->compressedRemovals = $compressedRemovals;
}
/**
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
*/
public function getCompressedRemovals()
{
return $this->compressedRemovals;
}
/**
* Metadata about the hash list. This is not populated by the `GetHashList`
* method, but this is populated by the `ListHashLists` method.
*
* @param GoogleSecuritySafebrowsingV5HashListMetadata $metadata
*/
public function setMetadata(GoogleSecuritySafebrowsingV5HashListMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return GoogleSecuritySafebrowsingV5HashListMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Clients should wait at least this long to get the hash list again. If
* omitted or zero, clients SHOULD fetch immediately because it indicates that
* the server has an additional update to be sent to the client, but could not
* due to the client-specified constraints.
*
* @param string $minimumWaitDuration
*/
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
/**
* @return string
*/
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
/**
* The name of the hash list. Note that the Global Cache is also just a hash
* list and can be referred to here.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* When true, this is a partial diff containing additions and removals based
* on what the client already has. When false, this is the complete hash list.
* When false, the client MUST delete any locally stored version for this hash
* list. This means that either the version possessed by the client is
* seriously out-of-date or the client data is believed to be corrupt. The
* `compressed_removals` field will be empty. When true, the client MUST apply
* an incremental update by applying removals and then additions.
*
* @param bool $partialUpdate
*/
public function setPartialUpdate($partialUpdate)
{
$this->partialUpdate = $partialUpdate;
}
/**
* @return bool
*/
public function getPartialUpdate()
{
return $this->partialUpdate;
}
/**
* The sorted list of all hashes, hashed again with SHA256. This is the
* checksum for the sorted list of all hashes present in the database after
* applying the provided update. In the case that no updates were provided,
* the server will omit this field to indicate that the client should use the
* existing checksum.
*
* @param string $sha256Checksum
*/
public function setSha256Checksum($sha256Checksum)
{
$this->sha256Checksum = $sha256Checksum;
}
/**
* @return string
*/
public function getSha256Checksum()
{
return $this->sha256Checksum;
}
/**
* The version of the hash list. The client MUST NOT manipulate those bytes.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5HashList::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5HashList');
@@ -0,0 +1,158 @@
<?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 GoogleSecuritySafebrowsingV5HashListMetadata extends \Google\Collection
{
/**
* Unspecified length.
*/
public const HASH_LENGTH_HASH_LENGTH_UNSPECIFIED = 'HASH_LENGTH_UNSPECIFIED';
/**
* Each hash is a four-byte prefix.
*/
public const HASH_LENGTH_FOUR_BYTES = 'FOUR_BYTES';
/**
* Each hash is an eight-byte prefix.
*/
public const HASH_LENGTH_EIGHT_BYTES = 'EIGHT_BYTES';
/**
* Each hash is a sixteen-byte prefix.
*/
public const HASH_LENGTH_SIXTEEN_BYTES = 'SIXTEEN_BYTES';
/**
* Each hash is a thirty-two-byte full hash.
*/
public const HASH_LENGTH_THIRTY_TWO_BYTES = 'THIRTY_TWO_BYTES';
protected $collection_key = 'threatTypes';
/**
* A human-readable description about this list. Written in English.
*
* @var string
*/
public $description;
/**
* The supported hash length for this hash list. Each hash list will support
* exactly one length. If a different hash length is introduced for the same
* set of threat types or safe types, it will be introduced as a separate list
* with a distinct name and respective hash length set.
*
* @var string
*/
public $hashLength;
/**
* Unordered list. If not empty, this specifies that the hash list represents
* a list of likely safe hashes, and this enumerates the ways they are
* considered likely safe. This field is mutually exclusive with the
* threat_types field.
*
* @var string[]
*/
public $likelySafeTypes;
/**
* Unordered list. If not empty, this specifies that the hash list is a kind
* of threat list, and this enumerates the kind of threats associated with
* hashes or hash prefixes in this hash list. May be empty if the entry does
* not represent a threat, i.e. in the case that it represents a likely safe
* type.
*
* @var string[]
*/
public $threatTypes;
/**
* A human-readable description about this list. Written in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The supported hash length for this hash list. Each hash list will support
* exactly one length. If a different hash length is introduced for the same
* set of threat types or safe types, it will be introduced as a separate list
* with a distinct name and respective hash length set.
*
* Accepted values: HASH_LENGTH_UNSPECIFIED, FOUR_BYTES, EIGHT_BYTES,
* SIXTEEN_BYTES, THIRTY_TWO_BYTES
*
* @param self::HASH_LENGTH_* $hashLength
*/
public function setHashLength($hashLength)
{
$this->hashLength = $hashLength;
}
/**
* @return self::HASH_LENGTH_*
*/
public function getHashLength()
{
return $this->hashLength;
}
/**
* Unordered list. If not empty, this specifies that the hash list represents
* a list of likely safe hashes, and this enumerates the ways they are
* considered likely safe. This field is mutually exclusive with the
* threat_types field.
*
* @param string[] $likelySafeTypes
*/
public function setLikelySafeTypes($likelySafeTypes)
{
$this->likelySafeTypes = $likelySafeTypes;
}
/**
* @return string[]
*/
public function getLikelySafeTypes()
{
return $this->likelySafeTypes;
}
/**
* Unordered list. If not empty, this specifies that the hash list is a kind
* of threat list, and this enumerates the kind of threats associated with
* hashes or hash prefixes in this hash list. May be empty if the entry does
* not represent a threat, i.e. in the case that it represents a likely safe
* type.
*
* @param string[] $threatTypes
*/
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(GoogleSecuritySafebrowsingV5HashListMetadata::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5HashListMetadata');
@@ -0,0 +1,70 @@
<?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 GoogleSecuritySafebrowsingV5ListHashListsResponse extends \Google\Collection
{
protected $collection_key = 'hashLists';
protected $hashListsType = GoogleSecuritySafebrowsingV5HashList::class;
protected $hashListsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The hash lists in an arbitrary order. Only metadata about the hash lists
* will be included, not the contents.
*
* @param GoogleSecuritySafebrowsingV5HashList[] $hashLists
*/
public function setHashLists($hashLists)
{
$this->hashLists = $hashLists;
}
/**
* @return GoogleSecuritySafebrowsingV5HashList[]
*/
public function getHashLists()
{
return $this->hashLists;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5ListHashListsResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5ListHashListsResponse');
@@ -0,0 +1,146 @@
<?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 GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit extends \Google\Model
{
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @var string
*/
public $encodedData;
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @var int
*/
public $entriesCount;
/**
* The upper 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the upper 64 bits are all zero.
*
* @var string
*/
public $firstValueHi;
/**
* The lower 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the lower 64 bits are all zero.
*
* @var string
*/
public $firstValueLo;
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 99
* and 126, inclusive.
*
* @var int
*/
public $riceParameter;
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @param int $entriesCount
*/
public function setEntriesCount($entriesCount)
{
$this->entriesCount = $entriesCount;
}
/**
* @return int
*/
public function getEntriesCount()
{
return $this->entriesCount;
}
/**
* The upper 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the upper 64 bits are all zero.
*
* @param string $firstValueHi
*/
public function setFirstValueHi($firstValueHi)
{
$this->firstValueHi = $firstValueHi;
}
/**
* @return string
*/
public function getFirstValueHi()
{
return $this->firstValueHi;
}
/**
* The lower 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the lower 64 bits are all zero.
*
* @param string $firstValueLo
*/
public function setFirstValueLo($firstValueLo)
{
$this->firstValueLo = $firstValueLo;
}
/**
* @return string
*/
public function getFirstValueLo()
{
return $this->firstValueLo;
}
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 99
* and 126, inclusive.
*
* @param int $riceParameter
*/
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(GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit');
@@ -0,0 +1,194 @@
<?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 GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit extends \Google\Model
{
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @var string
*/
public $encodedData;
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @var int
*/
public $entriesCount;
/**
* The first 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the first 64 bits are all zero.
*
* @var string
*/
public $firstValueFirstPart;
/**
* The last 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the last 64 bits are all zero.
*
* @var string
*/
public $firstValueFourthPart;
/**
* The 65 through 128th bits of the first entry in the encoded data (hashes).
* If the field is empty, the 65 through 128th bits are all zero.
*
* @var string
*/
public $firstValueSecondPart;
/**
* The 129 through 192th bits of the first entry in the encoded data (hashes).
* If the field is empty, the 129 through 192th bits are all zero.
*
* @var string
*/
public $firstValueThirdPart;
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 227
* and 254, inclusive.
*
* @var int
*/
public $riceParameter;
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @param int $entriesCount
*/
public function setEntriesCount($entriesCount)
{
$this->entriesCount = $entriesCount;
}
/**
* @return int
*/
public function getEntriesCount()
{
return $this->entriesCount;
}
/**
* The first 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the first 64 bits are all zero.
*
* @param string $firstValueFirstPart
*/
public function setFirstValueFirstPart($firstValueFirstPart)
{
$this->firstValueFirstPart = $firstValueFirstPart;
}
/**
* @return string
*/
public function getFirstValueFirstPart()
{
return $this->firstValueFirstPart;
}
/**
* The last 64 bits of the first entry in the encoded data (hashes). If the
* field is empty, the last 64 bits are all zero.
*
* @param string $firstValueFourthPart
*/
public function setFirstValueFourthPart($firstValueFourthPart)
{
$this->firstValueFourthPart = $firstValueFourthPart;
}
/**
* @return string
*/
public function getFirstValueFourthPart()
{
return $this->firstValueFourthPart;
}
/**
* The 65 through 128th bits of the first entry in the encoded data (hashes).
* If the field is empty, the 65 through 128th bits are all zero.
*
* @param string $firstValueSecondPart
*/
public function setFirstValueSecondPart($firstValueSecondPart)
{
$this->firstValueSecondPart = $firstValueSecondPart;
}
/**
* @return string
*/
public function getFirstValueSecondPart()
{
return $this->firstValueSecondPart;
}
/**
* The 129 through 192th bits of the first entry in the encoded data (hashes).
* If the field is empty, the 129 through 192th bits are all zero.
*
* @param string $firstValueThirdPart
*/
public function setFirstValueThirdPart($firstValueThirdPart)
{
$this->firstValueThirdPart = $firstValueThirdPart;
}
/**
* @return string
*/
public function getFirstValueThirdPart()
{
return $this->firstValueThirdPart;
}
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 227
* and 254, inclusive.
*
* @param int $riceParameter
*/
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(GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit');
@@ -0,0 +1,124 @@
<?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 GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit extends \Google\Model
{
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @var string
*/
public $encodedData;
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @var int
*/
public $entriesCount;
/**
* The first entry in the encoded data (hashes or indices), or, if only a
* single hash prefix or index was encoded, that entry's value. If the field
* is empty, the entry is zero.
*
* @var string
*/
public $firstValue;
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 3 and
* 30, inclusive.
*
* @var int
*/
public $riceParameter;
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @param int $entriesCount
*/
public function setEntriesCount($entriesCount)
{
$this->entriesCount = $entriesCount;
}
/**
* @return int
*/
public function getEntriesCount()
{
return $this->entriesCount;
}
/**
* The first entry in the encoded data (hashes or indices), or, if only a
* single hash prefix or index was encoded, that entry's value. If the field
* is empty, the entry is zero.
*
* @param string $firstValue
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 3 and
* 30, inclusive.
*
* @param int $riceParameter
*/
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(GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit');
@@ -0,0 +1,124 @@
<?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 GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit extends \Google\Model
{
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @var string
*/
public $encodedData;
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @var int
*/
public $entriesCount;
/**
* The first entry in the encoded data (hashes), or, if only a single hash
* prefix was encoded, that entry's value. If the field is empty, the entry is
* zero.
*
* @var string
*/
public $firstValue;
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 35
* and 62, inclusive.
*
* @var int
*/
public $riceParameter;
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @param int $entriesCount
*/
public function setEntriesCount($entriesCount)
{
$this->entriesCount = $entriesCount;
}
/**
* @return int
*/
public function getEntriesCount()
{
return $this->entriesCount;
}
/**
* The first entry in the encoded data (hashes), or, if only a single hash
* prefix was encoded, that entry's value. If the field is empty, the entry is
* zero.
*
* @param string $firstValue
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* The Golomb-Rice parameter. This parameter is guaranteed to be between 35
* and 62, inclusive.
*
* @param int $riceParameter
*/
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(GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit');
@@ -0,0 +1,89 @@
<?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';
/**
* The client-side cache duration. The client MUST add this duration to the
* current time to determine the expiration time. The expiration time then
* applies to every hash prefix queried by the client in the request,
* regardless of how many full hashes are returned in the response. Even if
* the server returns no full hashes for a particular hash prefix, this fact
* MUST also be cached by the client. If and only if the field `full_hashes`
* is empty, the client MAY increase the `cache_duration` to determine a new
* expiration that is later than that specified by the server. In any case,
* the increased cache duration must not be longer than 24 hours. Important:
* the client MUST NOT assume that the server will return the same cache
* duration for all responses. The server MAY choose different cache durations
* for different responses depending on the situation.
*
* @var string
*/
public $cacheDuration;
protected $fullHashesType = GoogleSecuritySafebrowsingV5FullHash::class;
protected $fullHashesDataType = 'array';
/**
* The client-side cache duration. The client MUST add this duration to the
* current time to determine the expiration time. The expiration time then
* applies to every hash prefix queried by the client in the request,
* regardless of how many full hashes are returned in the response. Even if
* the server returns no full hashes for a particular hash prefix, this fact
* MUST also be cached by the client. If and only if the field `full_hashes`
* is empty, the client MAY increase the `cache_duration` to determine a new
* expiration that is later than that specified by the server. In any case,
* the increased cache duration must not be longer than 24 hours. Important:
* the client MUST NOT assume that the server will return the same cache
* duration for all responses. The server MAY choose different cache durations
* for different responses depending on the situation.
*
* @param string $cacheDuration
*/
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
/**
* @return string
*/
public function getCacheDuration()
{
return $this->cacheDuration;
}
/**
* Unordered list. The unordered list of full hashes found.
*
* @param GoogleSecuritySafebrowsingV5FullHash[] $fullHashes
*/
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');
@@ -0,0 +1,92 @@
<?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 GoogleSecuritySafebrowsingV5SearchUrlsResponse extends \Google\Collection
{
protected $collection_key = 'threats';
/**
* The client-side cache duration. The client MUST add this duration to the
* current time to determine the expiration time. The expiration time then
* applies to every URL queried by the client in the request, regardless of
* how many URLs are returned in the response. Even if the server returns no
* matches for a particular URL, this fact MUST also be cached by the client.
* If and only if the field `threats` is empty, the client MAY increase the
* `cache_duration` to determine a new expiration that is later than that
* specified by the server. In any case, the increased cache duration must not
* be longer than 24 hours. Important: the client MUST NOT assume that the
* server will return the same cache duration for all responses. The server
* MAY choose different cache durations for different responses depending on
* the situation.
*
* @var string
*/
public $cacheDuration;
protected $threatsType = GoogleSecuritySafebrowsingV5ThreatUrl::class;
protected $threatsDataType = 'array';
/**
* The client-side cache duration. The client MUST add this duration to the
* current time to determine the expiration time. The expiration time then
* applies to every URL queried by the client in the request, regardless of
* how many URLs are returned in the response. Even if the server returns no
* matches for a particular URL, this fact MUST also be cached by the client.
* If and only if the field `threats` is empty, the client MAY increase the
* `cache_duration` to determine a new expiration that is later than that
* specified by the server. In any case, the increased cache duration must not
* be longer than 24 hours. Important: the client MUST NOT assume that the
* server will return the same cache duration for all responses. The server
* MAY choose different cache durations for different responses depending on
* the situation.
*
* @param string $cacheDuration
*/
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
/**
* @return string
*/
public function getCacheDuration()
{
return $this->cacheDuration;
}
/**
* Unordered list. The unordered list of threat matches found. Each entry
* contains a URL and the threat types that were found matching that URL. The
* list size can be greater than the number of URLs in the request as the all
* expressions of the URL would've been considered.
*
* @param GoogleSecuritySafebrowsingV5ThreatUrl[] $threats
*/
public function setThreats($threats)
{
$this->threats = $threats;
}
/**
* @return GoogleSecuritySafebrowsingV5ThreatUrl[]
*/
public function getThreats()
{
return $this->threats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSecuritySafebrowsingV5SearchUrlsResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5SearchUrlsResponse');
@@ -0,0 +1,71 @@
<?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 GoogleSecuritySafebrowsingV5ThreatUrl extends \Google\Collection
{
protected $collection_key = 'threatTypes';
/**
* Unordered list. The unordered list of threat that the URL is classified as.
*
* @var string[]
*/
public $threatTypes;
/**
* The requested URL that was matched by one or more threats.
*
* @var string
*/
public $url;
/**
* Unordered list. The unordered list of threat that the URL is classified as.
*
* @param string[] $threatTypes
*/
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
/**
* @return string[]
*/
public function getThreatTypes()
{
return $this->threatTypes;
}
/**
* The requested URL that was matched by one or more threats.
*
* @param string $url
*/
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(GoogleSecuritySafebrowsingV5ThreatUrl::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5ThreatUrl');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -0,0 +1,68 @@
<?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\GoogleSecuritySafebrowsingV5HashList;
/**
* The "hashList" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $hashList = $safebrowsingService->hashList;
* </code>
*/
class HashList extends \Google\Service\Resource
{
/**
* Gets the latest contents of a hash list. A hash list may either by a threat
* list or a non-threat list such as the Global Cache. This is a standard Get
* method as defined by https://google.aip.dev/131 and the HTTP method is also
* GET. (hashList.get)
*
* @param string $name Required. The name of this particular hash list. It may
* be a threat list, or it may be the Global Cache.
* @param array $optParams Optional parameters.
*
* @opt_param int sizeConstraints.maxDatabaseEntries Sets the maximum number of
* entries that the client is willing to have in the local database for the
* list. (The server MAY cause the client to store less than this number of
* entries.) If omitted or zero, no database size limit is set.
* @opt_param int sizeConstraints.maxUpdateEntries The maximum size in number of
* entries. The update will not contain more entries than this value, but it is
* possible that the update will contain fewer entries than this value. This
* MUST be at least 1024. If omitted or zero, no update size limit is set.
* @opt_param string version The version of the hash list that the client
* already has. If this is the first time the client is fetching the hash list,
* this field MUST be left empty. Otherwise, the client SHOULD supply the
* version previously received from the server. The client MUST NOT manipulate
* those bytes. **What's new in V5**: in V4 of the API, this was called
* `states`; it is now renamed to `version` for clarity.
* @return GoogleSecuritySafebrowsingV5HashList
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleSecuritySafebrowsingV5HashList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HashList::class, 'Google_Service_Safebrowsing_Resource_HashList');
@@ -0,0 +1,99 @@
<?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\GoogleSecuritySafebrowsingV5BatchGetHashListsResponse;
use Google\Service\Safebrowsing\GoogleSecuritySafebrowsingV5ListHashListsResponse;
/**
* The "hashLists" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $hashLists = $safebrowsingService->hashLists;
* </code>
*/
class HashLists extends \Google\Service\Resource
{
/**
* Gets multiple hash lists at once. It is very common for a client to need to
* get multiple hash lists. Using this method is preferred over using the
* regular Get method multiple times. This is a standard batch Get method as
* defined by https://google.aip.dev/231 and the HTTP method is also GET.
* (hashLists.batchGet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string names Required. The names of the particular hash lists. The
* list MAY be a threat list, or it may be the Global Cache. The names MUST NOT
* contain duplicates; if they did, the client will get an error.
* @opt_param int sizeConstraints.maxDatabaseEntries Sets the maximum number of
* entries that the client is willing to have in the local database for the
* list. (The server MAY cause the client to store less than this number of
* entries.) If omitted or zero, no database size limit is set.
* @opt_param int sizeConstraints.maxUpdateEntries The maximum size in number of
* entries. The update will not contain more entries than this value, but it is
* possible that the update will contain fewer entries than this value. This
* MUST be at least 1024. If omitted or zero, no update size limit is set.
* @opt_param string version The versions of the hash list that the client
* already has. If this is the first time the client is fetching the hash lists,
* the field should be left empty. Otherwise, the client should supply the
* versions previously received from the server. The client MUST NOT manipulate
* those bytes. The client need not send the versions in the same order as the
* corresponding list names. The client may send fewer or more versions in a
* request than there are names. However the client MUST NOT send multiple
* versions that correspond to the same name; if it did, the client will get an
* error. Historical note: in V4 of the API, this was called `states`; it is now
* renamed to `version` for clarity.
* @return GoogleSecuritySafebrowsingV5BatchGetHashListsResponse
* @throws \Google\Service\Exception
*/
public function batchGet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], GoogleSecuritySafebrowsingV5BatchGetHashListsResponse::class);
}
/**
* Lists hash lists. In the V5 API, Google will never remove a hash list that
* has ever been returned by this method. This enables clients to skip using
* this method and simply hard-code all hash lists they need. This is a standard
* List method as defined by https://google.aip.dev/132 and the HTTP method is
* GET. (hashLists.listHashLists)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of hash lists to return. The
* service may return fewer than this value. If unspecified, the server will
* choose a page size, which may be larger than the number of hash lists so that
* pagination is not necessary.
* @opt_param string pageToken A page token, received from a previous
* `ListHashLists` call. Provide this to retrieve the subsequent page.
* @return GoogleSecuritySafebrowsingV5ListHashListsResponse
* @throws \Google\Service\Exception
*/
public function listHashLists($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleSecuritySafebrowsingV5ListHashListsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HashLists::class, 'Google_Service_Safebrowsing_Resource_HashLists');
@@ -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
{
/**
* Searches 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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -0,0 +1,54 @@
<?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\GoogleSecuritySafebrowsingV5SearchUrlsResponse;
/**
* The "urls" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google\Service\Safebrowsing(...);
* $urls = $safebrowsingService->urls;
* </code>
*/
class Urls extends \Google\Service\Resource
{
/**
* Searches for URLs matching known threats. Each URL and it's host-suffix and
* path-prefix expressions (up to a limited depth) are checked. This means that
* the response may contain URLs that were not included in the request, but are
* expressions of the requested URLs. (urls.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string urls Required. The URLs to be looked up. Clients MUST NOT
* send more than 50 URLs.
* @return GoogleSecuritySafebrowsingV5SearchUrlsResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleSecuritySafebrowsingV5SearchUrlsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Urls::class, 'Google_Service_Safebrowsing_Resource_Urls');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');