Skip to content

Commit 98932ff

Browse files
Regenerate safebrowsing client
1 parent c9fa9d7 commit 98932ff

11 files changed

+1126
-0
lines changed

src/Safebrowsing.php

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class Safebrowsing extends \Google\Service
4040
{
4141

4242

43+
public $hashList;
44+
public $hashLists;
4345
public $hashes;
4446
public $rootUrlTemplate;
4547

@@ -60,6 +62,84 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
6062
$this->version = 'v5';
6163
$this->serviceName = 'safebrowsing';
6264

65+
$this->hashList = new Safebrowsing\Resource\HashList(
66+
$this,
67+
$this->serviceName,
68+
'hashList',
69+
[
70+
'methods' => [
71+
'get' => [
72+
'path' => 'v5/hashList/{name}',
73+
'httpMethod' => 'GET',
74+
'parameters' => [
75+
'name' => [
76+
'location' => 'path',
77+
'type' => 'string',
78+
'required' => true,
79+
],
80+
'sizeConstraints.maxDatabaseEntries' => [
81+
'location' => 'query',
82+
'type' => 'integer',
83+
],
84+
'sizeConstraints.maxUpdateEntries' => [
85+
'location' => 'query',
86+
'type' => 'integer',
87+
],
88+
'version' => [
89+
'location' => 'query',
90+
'type' => 'string',
91+
],
92+
],
93+
],
94+
]
95+
]
96+
);
97+
$this->hashLists = new Safebrowsing\Resource\HashLists(
98+
$this,
99+
$this->serviceName,
100+
'hashLists',
101+
[
102+
'methods' => [
103+
'batchGet' => [
104+
'path' => 'v5/hashLists:batchGet',
105+
'httpMethod' => 'GET',
106+
'parameters' => [
107+
'names' => [
108+
'location' => 'query',
109+
'type' => 'string',
110+
'repeated' => true,
111+
],
112+
'sizeConstraints.maxDatabaseEntries' => [
113+
'location' => 'query',
114+
'type' => 'integer',
115+
],
116+
'sizeConstraints.maxUpdateEntries' => [
117+
'location' => 'query',
118+
'type' => 'integer',
119+
],
120+
'version' => [
121+
'location' => 'query',
122+
'type' => 'string',
123+
'repeated' => true,
124+
],
125+
],
126+
],'list' => [
127+
'path' => 'v5/hashLists',
128+
'httpMethod' => 'GET',
129+
'parameters' => [
130+
'pageSize' => [
131+
'location' => 'query',
132+
'type' => 'integer',
133+
],
134+
'pageToken' => [
135+
'location' => 'query',
136+
'type' => 'string',
137+
],
138+
],
139+
],
140+
]
141+
]
142+
);
63143
$this->hashes = new Safebrowsing\Resource\Hashes(
64144
$this,
65145
$this->serviceName,
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 GoogleSecuritySafebrowsingV5BatchGetHashListsResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'hashLists';
23+
protected $hashListsType = GoogleSecuritySafebrowsingV5HashList::class;
24+
protected $hashListsDataType = 'array';
25+
26+
/**
27+
* @param GoogleSecuritySafebrowsingV5HashList[]
28+
*/
29+
public function setHashLists($hashLists)
30+
{
31+
$this->hashLists = $hashLists;
32+
}
33+
/**
34+
* @return GoogleSecuritySafebrowsingV5HashList[]
35+
*/
36+
public function getHashLists()
37+
{
38+
return $this->hashLists;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleSecuritySafebrowsingV5BatchGetHashListsResponse::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5BatchGetHashListsResponse');
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
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 GoogleSecuritySafebrowsingV5HashList extends \Google\Model
21+
{
22+
protected $additionsEightBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit::class;
23+
protected $additionsEightBytesDataType = '';
24+
protected $additionsFourBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit::class;
25+
protected $additionsFourBytesDataType = '';
26+
protected $additionsSixteenBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit::class;
27+
protected $additionsSixteenBytesDataType = '';
28+
protected $additionsThirtyTwoBytesType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit::class;
29+
protected $additionsThirtyTwoBytesDataType = '';
30+
protected $compressedRemovalsType = GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit::class;
31+
protected $compressedRemovalsDataType = '';
32+
protected $metadataType = GoogleSecuritySafebrowsingV5HashListMetadata::class;
33+
protected $metadataDataType = '';
34+
/**
35+
* @var string
36+
*/
37+
public $minimumWaitDuration;
38+
/**
39+
* @var string
40+
*/
41+
public $name;
42+
/**
43+
* @var bool
44+
*/
45+
public $partialUpdate;
46+
/**
47+
* @var string
48+
*/
49+
public $sha256Checksum;
50+
/**
51+
* @var string
52+
*/
53+
public $version;
54+
55+
/**
56+
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit
57+
*/
58+
public function setAdditionsEightBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit $additionsEightBytes)
59+
{
60+
$this->additionsEightBytes = $additionsEightBytes;
61+
}
62+
/**
63+
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit
64+
*/
65+
public function getAdditionsEightBytes()
66+
{
67+
return $this->additionsEightBytes;
68+
}
69+
/**
70+
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
71+
*/
72+
public function setAdditionsFourBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $additionsFourBytes)
73+
{
74+
$this->additionsFourBytes = $additionsFourBytes;
75+
}
76+
/**
77+
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
78+
*/
79+
public function getAdditionsFourBytes()
80+
{
81+
return $this->additionsFourBytes;
82+
}
83+
/**
84+
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit
85+
*/
86+
public function setAdditionsSixteenBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit $additionsSixteenBytes)
87+
{
88+
$this->additionsSixteenBytes = $additionsSixteenBytes;
89+
}
90+
/**
91+
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit
92+
*/
93+
public function getAdditionsSixteenBytes()
94+
{
95+
return $this->additionsSixteenBytes;
96+
}
97+
/**
98+
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit
99+
*/
100+
public function setAdditionsThirtyTwoBytes(GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit $additionsThirtyTwoBytes)
101+
{
102+
$this->additionsThirtyTwoBytes = $additionsThirtyTwoBytes;
103+
}
104+
/**
105+
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit
106+
*/
107+
public function getAdditionsThirtyTwoBytes()
108+
{
109+
return $this->additionsThirtyTwoBytes;
110+
}
111+
/**
112+
* @param GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
113+
*/
114+
public function setCompressedRemovals(GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit $compressedRemovals)
115+
{
116+
$this->compressedRemovals = $compressedRemovals;
117+
}
118+
/**
119+
* @return GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
120+
*/
121+
public function getCompressedRemovals()
122+
{
123+
return $this->compressedRemovals;
124+
}
125+
/**
126+
* @param GoogleSecuritySafebrowsingV5HashListMetadata
127+
*/
128+
public function setMetadata(GoogleSecuritySafebrowsingV5HashListMetadata $metadata)
129+
{
130+
$this->metadata = $metadata;
131+
}
132+
/**
133+
* @return GoogleSecuritySafebrowsingV5HashListMetadata
134+
*/
135+
public function getMetadata()
136+
{
137+
return $this->metadata;
138+
}
139+
/**
140+
* @param string
141+
*/
142+
public function setMinimumWaitDuration($minimumWaitDuration)
143+
{
144+
$this->minimumWaitDuration = $minimumWaitDuration;
145+
}
146+
/**
147+
* @return string
148+
*/
149+
public function getMinimumWaitDuration()
150+
{
151+
return $this->minimumWaitDuration;
152+
}
153+
/**
154+
* @param string
155+
*/
156+
public function setName($name)
157+
{
158+
$this->name = $name;
159+
}
160+
/**
161+
* @return string
162+
*/
163+
public function getName()
164+
{
165+
return $this->name;
166+
}
167+
/**
168+
* @param bool
169+
*/
170+
public function setPartialUpdate($partialUpdate)
171+
{
172+
$this->partialUpdate = $partialUpdate;
173+
}
174+
/**
175+
* @return bool
176+
*/
177+
public function getPartialUpdate()
178+
{
179+
return $this->partialUpdate;
180+
}
181+
/**
182+
* @param string
183+
*/
184+
public function setSha256Checksum($sha256Checksum)
185+
{
186+
$this->sha256Checksum = $sha256Checksum;
187+
}
188+
/**
189+
* @return string
190+
*/
191+
public function getSha256Checksum()
192+
{
193+
return $this->sha256Checksum;
194+
}
195+
/**
196+
* @param string
197+
*/
198+
public function setVersion($version)
199+
{
200+
$this->version = $version;
201+
}
202+
/**
203+
* @return string
204+
*/
205+
public function getVersion()
206+
{
207+
return $this->version;
208+
}
209+
}
210+
211+
// Adding a class alias for backwards compatibility with the previous class name.
212+
class_alias(GoogleSecuritySafebrowsingV5HashList::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5HashList');

0 commit comments

Comments
 (0)