blob: e1aa34e6a504b690992b53aa896b0c168a1972af [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="safebrowsing_v4.html">Safe Browsing API</a> . <a href="safebrowsing_v4.encodedUpdates.html">encodedUpdates</a></h1>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#get">get(encodedRequest, clientId=None, clientVersion=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline"></p>
80<h3>Method Details</h3>
81<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070082 <code class="details" id="get">get(encodedRequest, clientId=None, clientVersion=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040083 <pre>
84
85Args:
86 encodedRequest: string, A serialized FetchThreatListUpdatesRequest proto. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087 clientId: string, A client ID that uniquely identifies the client implementation of the Safe
88Browsing API.
Bu Sun Kim65020912020-05-20 12:08:20 -070089 clientVersion: string, The version of the client implementation.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040090 x__xgafv: string, V1 error format.
91 Allowed values
92 1 - v1 error format
93 2 - v2 error format
94
95Returns:
96 An object of the form:
97
98 {
Bu Sun Kim65020912020-05-20 12:08:20 -070099 &quot;listUpdateResponses&quot;: [ # The list updates requested by the clients.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100 { # An update to an individual list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700101 &quot;platformType&quot;: &quot;A String&quot;, # The platform type for which data is returned.
102 &quot;threatEntryType&quot;: &quot;A String&quot;, # The format of the threats.
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 &quot;additions&quot;: [ # A set of entries to add to a local threat type&#x27;s list. Repeated to allow
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400104 # for a combination of compressed and raw data to be sent in a single
105 # response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700106 { # A set of threats that should be added or removed from a client&#x27;s local
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400107 # database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;rawHashes&quot;: { # The uncompressed threat entries in hash format of a particular prefix length. # The raw SHA256-formatted entries.
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 # Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
110 # bytes, but some hashes are lengthened if they collide with the hash of a
111 # popular URL.
112 #
113 # Used for sending ThreatEntrySet to clients that do not support compression,
114 # or when sending non-4-byte hashes to clients that do support compression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;rawHashes&quot;: &quot;A String&quot;, # The hashes, in binary format, concatenated into one long string. Hashes are
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 # sorted in lexicographic order. For JSON API users, hashes are
117 # base64-encoded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;prefixSize&quot;: 42, # The number of bytes for each prefix encoded below. This field can be
119 # anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
120 },
121 &quot;riceHashes&quot;: { # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # The encoded 4-byte prefixes of SHA256-formatted entries, using a
122 # Golomb-Rice encoding. The hashes are converted to uint32, sorted in
123 # ascending order, then delta encoded and stored as encoded_data.
124 # compressed removal indices.
125 &quot;firstValue&quot;: &quot;A String&quot;, # The offset of the first entry in the encoded data, or, if only a single
126 # integer was encoded, that single integer&#x27;s value. If the field is empty or
127 # missing, assume zero.
128 &quot;encodedData&quot;: &quot;A String&quot;, # The encoded deltas that are encoded using the Golomb-Rice coder.
129 &quot;numEntries&quot;: 42, # The number of entries that are delta encoded in the encoded data. If only a
130 # single integer was encoded, this will be zero and the single value will be
131 # stored in `first_value`.
132 &quot;riceParameter&quot;: 42, # The Golomb-Rice parameter, which is a number between 2 and 28. This field
133 # is missing (that is, zero) if `num_entries` is zero.
Dan O'Mearadd494642020-05-01 07:42:23 -0700134 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700135 &quot;compressionType&quot;: &quot;A String&quot;, # The compression type for the entries in this set.
136 &quot;riceIndices&quot;: { # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # The encoded local, lexicographically-sorted list indices, using a
137 # Golomb-Rice encoding. Used for sending compressed removal indices. The
138 # removal indices (uint32) are sorted in ascending order, then delta encoded
139 # and stored as encoded_data.
140 # compressed removal indices.
141 &quot;firstValue&quot;: &quot;A String&quot;, # The offset of the first entry in the encoded data, or, if only a single
142 # integer was encoded, that single integer&#x27;s value. If the field is empty or
143 # missing, assume zero.
144 &quot;encodedData&quot;: &quot;A String&quot;, # The encoded deltas that are encoded using the Golomb-Rice coder.
145 &quot;numEntries&quot;: 42, # The number of entries that are delta encoded in the encoded data. If only a
146 # single integer was encoded, this will be zero and the single value will be
147 # stored in `first_value`.
148 &quot;riceParameter&quot;: 42, # The Golomb-Rice parameter, which is a number between 2 and 28. This field
149 # is missing (that is, zero) if `num_entries` is zero.
150 },
151 &quot;rawIndices&quot;: { # A set of raw indices to remove from a local list. # The raw removal indices for a local list.
152 &quot;indices&quot;: [ # The indices to remove from a lexicographically-sorted local list.
153 42,
154 ],
155 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400156 },
157 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;checksum&quot;: { # The expected state of a client&#x27;s local database. # The expected SHA256 hash of the client state; that is, of the sorted list
159 # of all hashes present in the database after applying the provided update.
160 # If the client state doesn&#x27;t match the expected state, the client must
161 # disregard this update and retry later.
162 &quot;sha256&quot;: &quot;A String&quot;, # The SHA256 hash of the client state; that is, of the sorted list of all
163 # hashes present in the database.
164 },
165 &quot;responseType&quot;: &quot;A String&quot;, # The type of response. This may indicate that an action is required by the
166 # client when the response is received.
167 &quot;threatType&quot;: &quot;A String&quot;, # The threat type for which data is returned.
168 &quot;removals&quot;: [ # A set of entries to remove from a local threat type&#x27;s list. In practice,
169 # this field is empty or contains exactly one ThreatEntrySet.
170 { # A set of threats that should be added or removed from a client&#x27;s local
171 # database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;rawHashes&quot;: { # The uncompressed threat entries in hash format of a particular prefix length. # The raw SHA256-formatted entries.
173 # Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
174 # bytes, but some hashes are lengthened if they collide with the hash of a
175 # popular URL.
176 #
177 # Used for sending ThreatEntrySet to clients that do not support compression,
178 # or when sending non-4-byte hashes to clients that do support compression.
179 &quot;rawHashes&quot;: &quot;A String&quot;, # The hashes, in binary format, concatenated into one long string. Hashes are
180 # sorted in lexicographic order. For JSON API users, hashes are
181 # base64-encoded.
182 &quot;prefixSize&quot;: 42, # The number of bytes for each prefix encoded below. This field can be
183 # anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
184 },
185 &quot;riceHashes&quot;: { # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # The encoded 4-byte prefixes of SHA256-formatted entries, using a
186 # Golomb-Rice encoding. The hashes are converted to uint32, sorted in
187 # ascending order, then delta encoded and stored as encoded_data.
188 # compressed removal indices.
189 &quot;firstValue&quot;: &quot;A String&quot;, # The offset of the first entry in the encoded data, or, if only a single
190 # integer was encoded, that single integer&#x27;s value. If the field is empty or
191 # missing, assume zero.
192 &quot;encodedData&quot;: &quot;A String&quot;, # The encoded deltas that are encoded using the Golomb-Rice coder.
193 &quot;numEntries&quot;: 42, # The number of entries that are delta encoded in the encoded data. If only a
194 # single integer was encoded, this will be zero and the single value will be
195 # stored in `first_value`.
196 &quot;riceParameter&quot;: 42, # The Golomb-Rice parameter, which is a number between 2 and 28. This field
197 # is missing (that is, zero) if `num_entries` is zero.
198 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700199 &quot;compressionType&quot;: &quot;A String&quot;, # The compression type for the entries in this set.
200 &quot;riceIndices&quot;: { # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # The encoded local, lexicographically-sorted list indices, using a
201 # Golomb-Rice encoding. Used for sending compressed removal indices. The
202 # removal indices (uint32) are sorted in ascending order, then delta encoded
203 # and stored as encoded_data.
204 # compressed removal indices.
205 &quot;firstValue&quot;: &quot;A String&quot;, # The offset of the first entry in the encoded data, or, if only a single
206 # integer was encoded, that single integer&#x27;s value. If the field is empty or
207 # missing, assume zero.
208 &quot;encodedData&quot;: &quot;A String&quot;, # The encoded deltas that are encoded using the Golomb-Rice coder.
209 &quot;numEntries&quot;: 42, # The number of entries that are delta encoded in the encoded data. If only a
210 # single integer was encoded, this will be zero and the single value will be
211 # stored in `first_value`.
212 &quot;riceParameter&quot;: 42, # The Golomb-Rice parameter, which is a number between 2 and 28. This field
213 # is missing (that is, zero) if `num_entries` is zero.
214 },
215 &quot;rawIndices&quot;: { # A set of raw indices to remove from a local list. # The raw removal indices for a local list.
216 &quot;indices&quot;: [ # The indices to remove from a lexicographically-sorted local list.
217 42,
218 ],
219 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 },
221 ],
222 &quot;newClientState&quot;: &quot;A String&quot;, # The new client state, in encrypted format. Opaque to clients.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400223 },
224 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;minimumWaitDuration&quot;: &quot;A String&quot;, # The minimum duration the client must wait before issuing any update
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400226 # request. If this field is not set clients may update as soon as they want.
227 }</pre>
228</div>
229
230</body></html>