You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Get 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.</p>
<pre>Get 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.
92
+
93
+
Args:
94
+
name: string, Required. The name of this particular hash list. It may be a threat list, or it may be the Global Cache. (required)
95
+
sizeConstraints_maxDatabaseEntries: integer, 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.
96
+
sizeConstraints_maxUpdateEntries: integer, 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.
97
+
version: string, 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.
98
+
x__xgafv: string, V1 error format.
99
+
Allowed values
100
+
1 - v1 error format
101
+
2 - v2 error format
102
+
103
+
Returns:
104
+
An object of the form:
105
+
106
+
{ # A list of hashes identified by its name.
107
+
"additionsEightBytes": { # Same as `RiceDeltaEncoded32Bit` except this encodes 64-bit numbers. # The 8-byte additions.
108
+
"encodedData": "A String", # The encoded deltas that are encoded using the Golomb-Rice coder.
109
+
"entriesCount": 42, # 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`.
110
+
"firstValue": "A String", # 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.
111
+
"riceParameter": 42, # The Golomb-Rice parameter. This parameter is guaranteed to be between 35 and 62, inclusive.
112
+
},
113
+
"additionsFourBytes": { # The Rice-Golomb encoded data. Used for either hashes or removal indices. It is guaranteed that every hash or index here has the same length, and this length is exactly 32 bits. Generally speaking, if we sort all the entries lexicographically, we will find that the higher order bits tend not to change as frequently as lower order bits. This means that if we also take the adjacent difference between entries, the higher order bits have a high probability of being zero. This exploits this high probability of zero by essentially choosing a certain number of bits; all bits more significant than this are likely to be zero so we use unary encoding. See the `rice_parameter` field. Historical note: the Rice-delta encoding was first used in V4 of this API. In V5, two significant improvements were made: firstly, the Rice-delta encoding is now available with hash prefixes longer than 4 bytes; secondly, the encoded data are now treated as big-endian so as to avoid a costly sorting step. # The 4-byte additions.
114
+
"encodedData": "A String", # The encoded deltas that are encoded using the Golomb-Rice coder.
115
+
"entriesCount": 42, # 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`.
116
+
"firstValue": 42, # 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.
117
+
"riceParameter": 42, # The Golomb-Rice parameter. This parameter is guaranteed to be between 3 and 30, inclusive.
118
+
},
119
+
"additionsSixteenBytes": { # Same as `RiceDeltaEncoded32Bit` except this encodes 128-bit numbers. # The 16-byte additions.
120
+
"encodedData": "A String", # The encoded deltas that are encoded using the Golomb-Rice coder.
121
+
"entriesCount": 42, # 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`.
122
+
"firstValueHi": "A String", # 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.
123
+
"firstValueLo": "A String", # 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.
124
+
"riceParameter": 42, # The Golomb-Rice parameter. This parameter is guaranteed to be between 99 and 126, inclusive.
125
+
},
126
+
"additionsThirtyTwoBytes": { # Same as `RiceDeltaEncoded32Bit` except this encodes 256-bit numbers. # The 32-byte additions.
127
+
"encodedData": "A String", # The encoded deltas that are encoded using the Golomb-Rice coder.
128
+
"entriesCount": 42, # 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`.
129
+
"firstValueFirstPart": "A String", # 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.
130
+
"firstValueFourthPart": "A String", # 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.
131
+
"firstValueSecondPart": "A String", # 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.
132
+
"firstValueThirdPart": "A String", # 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.
133
+
"riceParameter": 42, # The Golomb-Rice parameter. This parameter is guaranteed to be between 227 and 254, inclusive.
134
+
},
135
+
"compressedRemovals": { # The Rice-Golomb encoded data. Used for either hashes or removal indices. It is guaranteed that every hash or index here has the same length, and this length is exactly 32 bits. Generally speaking, if we sort all the entries lexicographically, we will find that the higher order bits tend not to change as frequently as lower order bits. This means that if we also take the adjacent difference between entries, the higher order bits have a high probability of being zero. This exploits this high probability of zero by essentially choosing a certain number of bits; all bits more significant than this are likely to be zero so we use unary encoding. See the `rice_parameter` field. Historical note: the Rice-delta encoding was first used in V4 of this API. In V5, two significant improvements were made: firstly, the Rice-delta encoding is now available with hash prefixes longer than 4 bytes; secondly, the encoded data are now treated as big-endian so as to avoid a costly sorting step. # 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.
136
+
"encodedData": "A String", # The encoded deltas that are encoded using the Golomb-Rice coder.
137
+
"entriesCount": 42, # 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`.
138
+
"firstValue": 42, # 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.
139
+
"riceParameter": 42, # The Golomb-Rice parameter. This parameter is guaranteed to be between 3 and 30, inclusive.
140
+
},
141
+
"metadata": { # Metadata about a particular hash list. # Metadata about the hash list. This is not populated by the `GetHashList` method, but this is populated by the `ListHashLists` method.
142
+
"description": "A String", # A human-readable description about this list. Written in English.
143
+
"hashLength": "A String", # 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.
144
+
"likelySafeTypes": [ # 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.
145
+
"A String",
146
+
],
147
+
"threatTypes": [ # 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.
148
+
"A String",
149
+
],
150
+
},
151
+
"minimumWaitDuration": "A String", # 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.
152
+
"name": "A String", # The name of the hash list. Note that the Global Cache is also just a hash list and can be referred to here.
153
+
"partialUpdate": True or False, # 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.
154
+
"sha256Checksum": "A String", # 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.
155
+
"version": "A String", # The version of the hash list. The client MUST NOT manipulate those bytes.
0 commit comments