[f9c482b] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Safebrowsing;
|
---|
| 19 |
|
---|
| 20 | class FindFullHashesRequest extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'clientStates';
|
---|
| 23 | protected $apiClientType = ClientInfo::class;
|
---|
| 24 | protected $apiClientDataType = '';
|
---|
| 25 | public $apiClient;
|
---|
| 26 | protected $clientType = ClientInfo::class;
|
---|
| 27 | protected $clientDataType = '';
|
---|
| 28 | public $client;
|
---|
| 29 | /**
|
---|
| 30 | * @var string[]
|
---|
| 31 | */
|
---|
| 32 | public $clientStates;
|
---|
| 33 | protected $threatInfoType = ThreatInfo::class;
|
---|
| 34 | protected $threatInfoDataType = '';
|
---|
| 35 | public $threatInfo;
|
---|
| 36 |
|
---|
| 37 | /**
|
---|
| 38 | * @param ClientInfo
|
---|
| 39 | */
|
---|
| 40 | public function setApiClient(ClientInfo $apiClient)
|
---|
| 41 | {
|
---|
| 42 | $this->apiClient = $apiClient;
|
---|
| 43 | }
|
---|
| 44 | /**
|
---|
| 45 | * @return ClientInfo
|
---|
| 46 | */
|
---|
| 47 | public function getApiClient()
|
---|
| 48 | {
|
---|
| 49 | return $this->apiClient;
|
---|
| 50 | }
|
---|
| 51 | /**
|
---|
| 52 | * @param ClientInfo
|
---|
| 53 | */
|
---|
| 54 | public function setClient(ClientInfo $client)
|
---|
| 55 | {
|
---|
| 56 | $this->client = $client;
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * @return ClientInfo
|
---|
| 60 | */
|
---|
| 61 | public function getClient()
|
---|
| 62 | {
|
---|
| 63 | return $this->client;
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * @param string[]
|
---|
| 67 | */
|
---|
| 68 | public function setClientStates($clientStates)
|
---|
| 69 | {
|
---|
| 70 | $this->clientStates = $clientStates;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @return string[]
|
---|
| 74 | */
|
---|
| 75 | public function getClientStates()
|
---|
| 76 | {
|
---|
| 77 | return $this->clientStates;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @param ThreatInfo
|
---|
| 81 | */
|
---|
| 82 | public function setThreatInfo(ThreatInfo $threatInfo)
|
---|
| 83 | {
|
---|
| 84 | $this->threatInfo = $threatInfo;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @return ThreatInfo
|
---|
| 88 | */
|
---|
| 89 | public function getThreatInfo()
|
---|
| 90 | {
|
---|
| 91 | return $this->threatInfo;
|
---|
| 92 | }
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 96 | class_alias(FindFullHashesRequest::class, 'Google_Service_Safebrowsing_FindFullHashesRequest');
|
---|