OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file includes Safe Browsing V4 API blacklist request and response | 5 // This file includes Safe Browsing V4 API blacklist request and response |
6 // protocol buffers. They should be kept in sync with the server implementation. | 6 // protocol buffers. They should be kept in sync with the server implementation. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // The type of response. This may indicate that an action is required by the | 143 // The type of response. This may indicate that an action is required by the |
144 // client when the response is received. | 144 // client when the response is received. |
145 optional ResponseType response_type = 4; | 145 optional ResponseType response_type = 4; |
146 | 146 |
147 // A set of entries to add to a local threat type's list. Repeated to allow | 147 // A set of entries to add to a local threat type's list. Repeated to allow |
148 // for a combination of compressed and raw data to be sent in a single | 148 // for a combination of compressed and raw data to be sent in a single |
149 // response. | 149 // response. |
150 repeated ThreatEntrySet additions = 5; | 150 repeated ThreatEntrySet additions = 5; |
151 | 151 |
152 // A set of entries to remove from a local threat type's list. Repeated for | 152 // A set of entries to remove from a local threat type's list. In practice, |
153 // the same reason as above. | 153 // this field is empty or contains exactly one ThreatEntrySet. |
154 repeated ThreatEntrySet removals = 6; | 154 repeated ThreatEntrySet removals = 6; |
155 | 155 |
156 // The new client state, in encrypted format. Opaque to clients. | 156 // The new client state, in encrypted format. Opaque to clients. |
157 optional bytes new_client_state = 7; | 157 optional bytes new_client_state = 7; |
158 | 158 |
159 // The expected SHA256 hash of the client state; that is, of the sorted list | 159 // The expected SHA256 hash of the client state; that is, of the sorted list |
160 // of all hashes present in the database after applying the provided update. | 160 // of all hashes present in the database after applying the provided update. |
161 // If the client state doesn't match the expected state, the client must | 161 // If the client state doesn't match the expected state, the client must |
162 // disregard this update and retry later. | 162 // disregard this update and retry later. |
163 optional Checksum checksum = 8; | 163 optional Checksum checksum = 8; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 optional int64 seconds = 1; | 464 optional int64 seconds = 1; |
465 | 465 |
466 // Signed fractions of a second at nanosecond resolution of the span | 466 // Signed fractions of a second at nanosecond resolution of the span |
467 // of time. Durations less than one second are represented with a 0 | 467 // of time. Durations less than one second are represented with a 0 |
468 // `seconds` field and a positive or negative `nanos` field. For durations | 468 // `seconds` field and a positive or negative `nanos` field. For durations |
469 // of one second or more, a non-zero value for the `nanos` field must be | 469 // of one second or more, a non-zero value for the `nanos` field must be |
470 // of the same sign as the `seconds` field. Must be from -999,999,999 | 470 // of the same sign as the `seconds` field. Must be from -999,999,999 |
471 // to +999,999,999 inclusive. | 471 // to +999,999,999 inclusive. |
472 optional int32 nanos = 2; | 472 optional int32 nanos = 2; |
473 } | 473 } |
OLD | NEW |