@googleapis/safebrowsing 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v4.d.ts CHANGED
@@ -77,10 +77,15 @@ export declare namespace safebrowsing_v4 {
77
77
  threatMatches: Resource$Threatmatches;
78
78
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
79
79
  }
80
+ /**
81
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
82
+ */
83
+ export interface Schema$GoogleProtobufEmpty {
84
+ }
80
85
  /**
81
86
  * The expected state of a client's local database.
82
87
  */
83
- export interface Schema$Checksum {
88
+ export interface Schema$GoogleSecuritySafebrowsingV4Checksum {
84
89
  /**
85
90
  * The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database.
86
91
  */
@@ -89,7 +94,7 @@ export declare namespace safebrowsing_v4 {
89
94
  /**
90
95
  * The client metadata associated with Safe Browsing API requests.
91
96
  */
92
- export interface Schema$ClientInfo {
97
+ export interface Schema$GoogleSecuritySafebrowsingV4ClientInfo {
93
98
  /**
94
99
  * A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
95
100
  */
@@ -99,10 +104,48 @@ export declare namespace safebrowsing_v4 {
99
104
  */
100
105
  clientVersion?: string | null;
101
106
  }
107
+ /**
108
+ * Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
109
+ */
110
+ export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest {
111
+ /**
112
+ * The client metadata.
113
+ */
114
+ client?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
115
+ /**
116
+ * The requested threat list updates.
117
+ */
118
+ listUpdateRequests?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[];
119
+ }
120
+ /**
121
+ * A single list update request.
122
+ */
123
+ export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest {
124
+ /**
125
+ * The constraints associated with this request.
126
+ */
127
+ constraints?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints;
128
+ /**
129
+ * The type of platform at risk by entries present in the list.
130
+ */
131
+ platformType?: string | null;
132
+ /**
133
+ * The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
134
+ */
135
+ state?: string | null;
136
+ /**
137
+ * The types of entries present in the list.
138
+ */
139
+ threatEntryType?: string | null;
140
+ /**
141
+ * The type of threat posed by entries present in the list.
142
+ */
143
+ threatType?: string | null;
144
+ }
102
145
  /**
103
146
  * The constraints for this update.
104
147
  */
105
- export interface Schema$Constraints {
148
+ export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints {
106
149
  /**
107
150
  * A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
108
151
  */
@@ -128,46 +171,65 @@ export declare namespace safebrowsing_v4 {
128
171
  */
129
172
  supportedCompressions?: string[] | null;
130
173
  }
131
- /**
132
- * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
133
- */
134
- export interface Schema$Empty {
174
+ export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse {
175
+ /**
176
+ * The list updates requested by the clients. The number of responses here may be less than the number of requests sent by clients. This is the case, for example, if the server has no updates for a particular list.
177
+ */
178
+ listUpdateResponses?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse[];
179
+ /**
180
+ * The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
181
+ */
182
+ minimumWaitDuration?: string | null;
135
183
  }
136
184
  /**
137
- * Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
185
+ * An update to an individual list.
138
186
  */
139
- export interface Schema$FetchThreatListUpdatesRequest {
187
+ export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse {
140
188
  /**
141
- * The client metadata.
189
+ * A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
142
190
  */
143
- client?: Schema$ClientInfo;
191
+ additions?: Schema$GoogleSecuritySafebrowsingV4ThreatEntrySet[];
144
192
  /**
145
- * The requested threat list updates.
193
+ * The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
146
194
  */
147
- listUpdateRequests?: Schema$ListUpdateRequest[];
148
- }
149
- export interface Schema$FetchThreatListUpdatesResponse {
195
+ checksum?: Schema$GoogleSecuritySafebrowsingV4Checksum;
150
196
  /**
151
- * The list updates requested by the clients. The number of responses here may be less than the number of requests sent by clients. This is the case, for example, if the server has no updates for a particular list.
197
+ * The new client state, in encrypted format. Opaque to clients.
152
198
  */
153
- listUpdateResponses?: Schema$ListUpdateResponse[];
199
+ newClientState?: string | null;
154
200
  /**
155
- * The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
201
+ * The platform type for which data is returned.
156
202
  */
157
- minimumWaitDuration?: string | null;
203
+ platformType?: string | null;
204
+ /**
205
+ * A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
206
+ */
207
+ removals?: Schema$GoogleSecuritySafebrowsingV4ThreatEntrySet[];
208
+ /**
209
+ * The type of response. This may indicate that an action is required by the client when the response is received.
210
+ */
211
+ responseType?: string | null;
212
+ /**
213
+ * The format of the threats.
214
+ */
215
+ threatEntryType?: string | null;
216
+ /**
217
+ * The threat type for which data is returned.
218
+ */
219
+ threatType?: string | null;
158
220
  }
159
221
  /**
160
222
  * Request to return full hashes matched by the provided hash prefixes.
161
223
  */
162
- export interface Schema$FindFullHashesRequest {
224
+ export interface Schema$GoogleSecuritySafebrowsingV4FindFullHashesRequest {
163
225
  /**
164
226
  * Client metadata associated with callers of higher-level APIs built on top of the client's implementation.
165
227
  */
166
- apiClient?: Schema$ClientInfo;
228
+ apiClient?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
167
229
  /**
168
230
  * The client metadata.
169
231
  */
170
- client?: Schema$ClientInfo;
232
+ client?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
171
233
  /**
172
234
  * The current client states for each of the client's local threat lists.
173
235
  */
@@ -175,13 +237,13 @@ export declare namespace safebrowsing_v4 {
175
237
  /**
176
238
  * The lists and hashes to be checked.
177
239
  */
178
- threatInfo?: Schema$ThreatInfo;
240
+ threatInfo?: Schema$GoogleSecuritySafebrowsingV4ThreatInfo;
179
241
  }
180
- export interface Schema$FindFullHashesResponse {
242
+ export interface Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse {
181
243
  /**
182
244
  * The full hashes that matched the requested prefixes.
183
245
  */
184
- matches?: Schema$ThreatMatch[];
246
+ matches?: Schema$GoogleSecuritySafebrowsingV4ThreatMatch[];
185
247
  /**
186
248
  * The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want.
187
249
  */
@@ -194,107 +256,32 @@ export declare namespace safebrowsing_v4 {
194
256
  /**
195
257
  * Request to check entries against lists.
196
258
  */
197
- export interface Schema$FindThreatMatchesRequest {
259
+ export interface Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesRequest {
198
260
  /**
199
261
  * The client metadata.
200
262
  */
201
- client?: Schema$ClientInfo;
263
+ client?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
202
264
  /**
203
265
  * The lists and entries to be checked for matches.
204
266
  */
205
- threatInfo?: Schema$ThreatInfo;
267
+ threatInfo?: Schema$GoogleSecuritySafebrowsingV4ThreatInfo;
206
268
  }
207
- export interface Schema$FindThreatMatchesResponse {
269
+ export interface Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse {
208
270
  /**
209
271
  * The threat list matches.
210
272
  */
211
- matches?: Schema$ThreatMatch[];
273
+ matches?: Schema$GoogleSecuritySafebrowsingV4ThreatMatch[];
212
274
  }
213
- export interface Schema$ListThreatListsResponse {
275
+ export interface Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse {
214
276
  /**
215
277
  * The lists available for download by the client.
216
278
  */
217
- threatLists?: Schema$ThreatListDescriptor[];
218
- }
219
- /**
220
- * A single list update request.
221
- */
222
- export interface Schema$ListUpdateRequest {
223
- /**
224
- * The constraints associated with this request.
225
- */
226
- constraints?: Schema$Constraints;
227
- /**
228
- * The type of platform at risk by entries present in the list.
229
- */
230
- platformType?: string | null;
231
- /**
232
- * The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
233
- */
234
- state?: string | null;
235
- /**
236
- * The types of entries present in the list.
237
- */
238
- threatEntryType?: string | null;
239
- /**
240
- * The type of threat posed by entries present in the list.
241
- */
242
- threatType?: string | null;
243
- }
244
- /**
245
- * An update to an individual list.
246
- */
247
- export interface Schema$ListUpdateResponse {
248
- /**
249
- * A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
250
- */
251
- additions?: Schema$ThreatEntrySet[];
252
- /**
253
- * The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
254
- */
255
- checksum?: Schema$Checksum;
256
- /**
257
- * The new client state, in encrypted format. Opaque to clients.
258
- */
259
- newClientState?: string | null;
260
- /**
261
- * The platform type for which data is returned.
262
- */
263
- platformType?: string | null;
264
- /**
265
- * A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
266
- */
267
- removals?: Schema$ThreatEntrySet[];
268
- /**
269
- * The type of response. This may indicate that an action is required by the client when the response is received.
270
- */
271
- responseType?: string | null;
272
- /**
273
- * The format of the threats.
274
- */
275
- threatEntryType?: string | null;
276
- /**
277
- * The threat type for which data is returned.
278
- */
279
- threatType?: string | null;
280
- }
281
- /**
282
- * A single metadata entry.
283
- */
284
- export interface Schema$MetadataEntry {
285
- /**
286
- * The metadata entry key. For JSON requests, the key is base64-encoded.
287
- */
288
- key?: string | null;
289
- /**
290
- * The metadata entry value. For JSON requests, the value is base64-encoded.
291
- */
292
- value?: string | null;
279
+ threatLists?: Schema$GoogleSecuritySafebrowsingV4ThreatListDescriptor[];
293
280
  }
294
281
  /**
295
282
  * The uncompressed threat entries in hash format of a particular prefix length. Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are lengthened if they collide with the hash of a popular URL. Used for sending ThreatEntrySet to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
296
283
  */
297
- export interface Schema$RawHashes {
284
+ export interface Schema$GoogleSecuritySafebrowsingV4RawHashes {
298
285
  /**
299
286
  * The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
300
287
  */
@@ -307,7 +294,7 @@ export declare namespace safebrowsing_v4 {
307
294
  /**
308
295
  * A set of raw indices to remove from a local list.
309
296
  */
310
- export interface Schema$RawIndices {
297
+ export interface Schema$GoogleSecuritySafebrowsingV4RawIndices {
311
298
  /**
312
299
  * The indices to remove from a lexicographically-sorted local list.
313
300
  */
@@ -316,7 +303,7 @@ export declare namespace safebrowsing_v4 {
316
303
  /**
317
304
  * The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
318
305
  */
319
- export interface Schema$RiceDeltaEncoding {
306
+ export interface Schema$GoogleSecuritySafebrowsingV4RiceDeltaEncoding {
320
307
  /**
321
308
  * The encoded deltas that are encoded using the Golomb-Rice coder.
322
309
  */
@@ -337,7 +324,7 @@ export declare namespace safebrowsing_v4 {
337
324
  /**
338
325
  * An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
339
326
  */
340
- export interface Schema$ThreatEntry {
327
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntry {
341
328
  /**
342
329
  * The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded.
343
330
  */
@@ -354,16 +341,29 @@ export declare namespace safebrowsing_v4 {
354
341
  /**
355
342
  * The metadata associated with a specific threat entry. The client is expected to know the metadata key/value pairs associated with each threat type.
356
343
  */
357
- export interface Schema$ThreatEntryMetadata {
344
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadata {
358
345
  /**
359
346
  * The metadata entries.
360
347
  */
361
- entries?: Schema$MetadataEntry[];
348
+ entries?: Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry[];
349
+ }
350
+ /**
351
+ * A single metadata entry.
352
+ */
353
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry {
354
+ /**
355
+ * The metadata entry key. For JSON requests, the key is base64-encoded.
356
+ */
357
+ key?: string | null;
358
+ /**
359
+ * The metadata entry value. For JSON requests, the value is base64-encoded.
360
+ */
361
+ value?: string | null;
362
362
  }
363
363
  /**
364
364
  * A set of threats that should be added or removed from a client's local database.
365
365
  */
366
- export interface Schema$ThreatEntrySet {
366
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntrySet {
367
367
  /**
368
368
  * The compression type for the entries in this set.
369
369
  */
@@ -371,29 +371,29 @@ export declare namespace safebrowsing_v4 {
371
371
  /**
372
372
  * The raw SHA256-formatted entries.
373
373
  */
374
- rawHashes?: Schema$RawHashes;
374
+ rawHashes?: Schema$GoogleSecuritySafebrowsingV4RawHashes;
375
375
  /**
376
376
  * The raw removal indices for a local list.
377
377
  */
378
- rawIndices?: Schema$RawIndices;
378
+ rawIndices?: Schema$GoogleSecuritySafebrowsingV4RawIndices;
379
379
  /**
380
380
  * The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
381
381
  */
382
- riceHashes?: Schema$RiceDeltaEncoding;
382
+ riceHashes?: Schema$GoogleSecuritySafebrowsingV4RiceDeltaEncoding;
383
383
  /**
384
384
  * The encoded local, lexicographically-sorted list indices, using a Golomb-Rice encoding. Used for sending compressed removal indices. The removal indices (uint32) are sorted in ascending order, then delta encoded and stored as encoded_data.
385
385
  */
386
- riceIndices?: Schema$RiceDeltaEncoding;
386
+ riceIndices?: Schema$GoogleSecuritySafebrowsingV4RiceDeltaEncoding;
387
387
  }
388
- export interface Schema$ThreatHit {
388
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatHit {
389
389
  /**
390
390
  * Client-reported identification.
391
391
  */
392
- clientInfo?: Schema$ClientInfo;
392
+ clientInfo?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
393
393
  /**
394
394
  * The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
395
395
  */
396
- entry?: Schema$ThreatEntry;
396
+ entry?: Schema$GoogleSecuritySafebrowsingV4ThreatEntry;
397
397
  /**
398
398
  * The platform type reported.
399
399
  */
@@ -401,7 +401,7 @@ export declare namespace safebrowsing_v4 {
401
401
  /**
402
402
  * The resources related to the threat hit.
403
403
  */
404
- resources?: Schema$ThreatSource[];
404
+ resources?: Schema$GoogleSecuritySafebrowsingV4ThreatHitThreatSource[];
405
405
  /**
406
406
  * The threat type reported.
407
407
  */
@@ -409,12 +409,46 @@ export declare namespace safebrowsing_v4 {
409
409
  /**
410
410
  * Details about the user that encountered the threat.
411
411
  */
412
- userInfo?: Schema$UserInfo;
412
+ userInfo?: Schema$GoogleSecuritySafebrowsingV4ThreatHitUserInfo;
413
+ }
414
+ /**
415
+ * A single resource related to a threat hit.
416
+ */
417
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitThreatSource {
418
+ /**
419
+ * Referrer of the resource. Only set if the referrer is available.
420
+ */
421
+ referrer?: string | null;
422
+ /**
423
+ * The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
424
+ */
425
+ remoteIp?: string | null;
426
+ /**
427
+ * The type of source reported.
428
+ */
429
+ type?: string | null;
430
+ /**
431
+ * The URL of the resource.
432
+ */
433
+ url?: string | null;
434
+ }
435
+ /**
436
+ * Details about the user that encountered the threat.
437
+ */
438
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitUserInfo {
439
+ /**
440
+ * The UN M.49 region code associated with the user's location.
441
+ */
442
+ regionCode?: string | null;
443
+ /**
444
+ * Unique user identifier defined by the client.
445
+ */
446
+ userId?: string | null;
413
447
  }
414
448
  /**
415
449
  * The information regarding one or more threats that a client submits when checking for matches in threat lists.
416
450
  */
417
- export interface Schema$ThreatInfo {
451
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatInfo {
418
452
  /**
419
453
  * The platform types to be checked.
420
454
  */
@@ -422,7 +456,7 @@ export declare namespace safebrowsing_v4 {
422
456
  /**
423
457
  * The threat entries to be checked.
424
458
  */
425
- threatEntries?: Schema$ThreatEntry[];
459
+ threatEntries?: Schema$GoogleSecuritySafebrowsingV4ThreatEntry[];
426
460
  /**
427
461
  * The entry types to be checked.
428
462
  */
@@ -435,7 +469,7 @@ export declare namespace safebrowsing_v4 {
435
469
  /**
436
470
  * Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.
437
471
  */
438
- export interface Schema$ThreatListDescriptor {
472
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatListDescriptor {
439
473
  /**
440
474
  * The platform type targeted by the list's entries.
441
475
  */
@@ -452,7 +486,7 @@ export declare namespace safebrowsing_v4 {
452
486
  /**
453
487
  * A match when checking a threat entry in the Safe Browsing threat lists.
454
488
  */
455
- export interface Schema$ThreatMatch {
489
+ export interface Schema$GoogleSecuritySafebrowsingV4ThreatMatch {
456
490
  /**
457
491
  * The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives.
458
492
  */
@@ -464,11 +498,11 @@ export declare namespace safebrowsing_v4 {
464
498
  /**
465
499
  * The threat matching this threat.
466
500
  */
467
- threat?: Schema$ThreatEntry;
501
+ threat?: Schema$GoogleSecuritySafebrowsingV4ThreatEntry;
468
502
  /**
469
503
  * Optional metadata associated with this threat.
470
504
  */
471
- threatEntryMetadata?: Schema$ThreatEntryMetadata;
505
+ threatEntryMetadata?: Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadata;
472
506
  /**
473
507
  * The threat entry type matching this threat.
474
508
  */
@@ -478,40 +512,6 @@ export declare namespace safebrowsing_v4 {
478
512
  */
479
513
  threatType?: string | null;
480
514
  }
481
- /**
482
- * A single resource related to a threat hit.
483
- */
484
- export interface Schema$ThreatSource {
485
- /**
486
- * Referrer of the resource. Only set if the referrer is available.
487
- */
488
- referrer?: string | null;
489
- /**
490
- * The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
491
- */
492
- remoteIp?: string | null;
493
- /**
494
- * The type of source reported.
495
- */
496
- type?: string | null;
497
- /**
498
- * The URL of the resource.
499
- */
500
- url?: string | null;
501
- }
502
- /**
503
- * Details about the user that encountered the threat.
504
- */
505
- export interface Schema$UserInfo {
506
- /**
507
- * The UN M.49 region code associated with the user's location.
508
- */
509
- regionCode?: string | null;
510
- /**
511
- * Unique user identifier defined by the client.
512
- */
513
- userId?: string | null;
514
- }
515
515
  export class Resource$Encodedfullhashes {
516
516
  context: APIRequestContext;
517
517
  constructor(context: APIRequestContext);
@@ -571,11 +571,11 @@ export declare namespace safebrowsing_v4 {
571
571
  * @returns A promise if used with async/await, or void if used with a callback.
572
572
  */
573
573
  get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
574
- get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): GaxiosPromise<Schema$FindFullHashesResponse>;
574
+ get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>;
575
575
  get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
576
- get(params: Params$Resource$Encodedfullhashes$Get, options: MethodOptions | BodyResponseCallback<Schema$FindFullHashesResponse>, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
577
- get(params: Params$Resource$Encodedfullhashes$Get, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
578
- get(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
576
+ get(params: Params$Resource$Encodedfullhashes$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
577
+ get(params: Params$Resource$Encodedfullhashes$Get, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
578
+ get(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
579
579
  }
580
580
  export interface Params$Resource$Encodedfullhashes$Get extends StandardParameters {
581
581
  /**
@@ -649,11 +649,11 @@ export declare namespace safebrowsing_v4 {
649
649
  * @returns A promise if used with async/await, or void if used with a callback.
650
650
  */
651
651
  get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
652
- get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
652
+ get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>;
653
653
  get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
654
- get(params: Params$Resource$Encodedupdates$Get, options: MethodOptions | BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
655
- get(params: Params$Resource$Encodedupdates$Get, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
656
- get(callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
654
+ get(params: Params$Resource$Encodedupdates$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
655
+ get(params: Params$Resource$Encodedupdates$Get, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
656
+ get(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
657
657
  }
658
658
  export interface Params$Resource$Encodedupdates$Get extends StandardParameters {
659
659
  /**
@@ -733,17 +733,17 @@ export declare namespace safebrowsing_v4 {
733
733
  * @returns A promise if used with async/await, or void if used with a callback.
734
734
  */
735
735
  find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
736
- find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): GaxiosPromise<Schema$FindFullHashesResponse>;
736
+ find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>;
737
737
  find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
738
- find(params: Params$Resource$Fullhashes$Find, options: MethodOptions | BodyResponseCallback<Schema$FindFullHashesResponse>, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
739
- find(params: Params$Resource$Fullhashes$Find, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
740
- find(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
738
+ find(params: Params$Resource$Fullhashes$Find, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
739
+ find(params: Params$Resource$Fullhashes$Find, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
740
+ find(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
741
741
  }
742
742
  export interface Params$Resource$Fullhashes$Find extends StandardParameters {
743
743
  /**
744
744
  * Request body metadata
745
745
  */
746
- requestBody?: Schema$FindFullHashesRequest;
746
+ requestBody?: Schema$GoogleSecuritySafebrowsingV4FindFullHashesRequest;
747
747
  }
748
748
  export class Resource$Threathits {
749
749
  context: APIRequestContext;
@@ -807,17 +807,17 @@ export declare namespace safebrowsing_v4 {
807
807
  * @returns A promise if used with async/await, or void if used with a callback.
808
808
  */
809
809
  create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
810
- create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
810
+ create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleProtobufEmpty>;
811
811
  create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
812
- create(params: Params$Resource$Threathits$Create, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
813
- create(params: Params$Resource$Threathits$Create, callback: BodyResponseCallback<Schema$Empty>): void;
814
- create(callback: BodyResponseCallback<Schema$Empty>): void;
812
+ create(params: Params$Resource$Threathits$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
813
+ create(params: Params$Resource$Threathits$Create, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
814
+ create(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
815
815
  }
816
816
  export interface Params$Resource$Threathits$Create extends StandardParameters {
817
817
  /**
818
818
  * Request body metadata
819
819
  */
820
- requestBody?: Schema$ThreatHit;
820
+ requestBody?: Schema$GoogleSecuritySafebrowsingV4ThreatHit;
821
821
  }
822
822
  export class Resource$Threatlists {
823
823
  context: APIRequestContext;
@@ -870,11 +870,11 @@ export declare namespace safebrowsing_v4 {
870
870
  * @returns A promise if used with async/await, or void if used with a callback.
871
871
  */
872
872
  list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
873
- list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): GaxiosPromise<Schema$ListThreatListsResponse>;
873
+ list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>;
874
874
  list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
875
- list(params: Params$Resource$Threatlists$List, options: MethodOptions | BodyResponseCallback<Schema$ListThreatListsResponse>, callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
876
- list(params: Params$Resource$Threatlists$List, callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
877
- list(callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
875
+ list(params: Params$Resource$Threatlists$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>): void;
876
+ list(params: Params$Resource$Threatlists$List, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>): void;
877
+ list(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>): void;
878
878
  }
879
879
  export interface Params$Resource$Threatlists$List extends StandardParameters {
880
880
  }
@@ -939,17 +939,17 @@ export declare namespace safebrowsing_v4 {
939
939
  * @returns A promise if used with async/await, or void if used with a callback.
940
940
  */
941
941
  fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions): GaxiosPromise<Readable>;
942
- fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
942
+ fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>;
943
943
  fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
944
- fetch(params: Params$Resource$Threatlistupdates$Fetch, options: MethodOptions | BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
945
- fetch(params: Params$Resource$Threatlistupdates$Fetch, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
946
- fetch(callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
944
+ fetch(params: Params$Resource$Threatlistupdates$Fetch, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
945
+ fetch(params: Params$Resource$Threatlistupdates$Fetch, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
946
+ fetch(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
947
947
  }
948
948
  export interface Params$Resource$Threatlistupdates$Fetch extends StandardParameters {
949
949
  /**
950
950
  * Request body metadata
951
951
  */
952
- requestBody?: Schema$FetchThreatListUpdatesRequest;
952
+ requestBody?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest;
953
953
  }
954
954
  export class Resource$Threatmatches {
955
955
  context: APIRequestContext;
@@ -1011,17 +1011,17 @@ export declare namespace safebrowsing_v4 {
1011
1011
  * @returns A promise if used with async/await, or void if used with a callback.
1012
1012
  */
1013
1013
  find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
1014
- find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): GaxiosPromise<Schema$FindThreatMatchesResponse>;
1014
+ find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>;
1015
1015
  find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1016
- find(params: Params$Resource$Threatmatches$Find, options: MethodOptions | BodyResponseCallback<Schema$FindThreatMatchesResponse>, callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
1017
- find(params: Params$Resource$Threatmatches$Find, callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
1018
- find(callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
1016
+ find(params: Params$Resource$Threatmatches$Find, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>): void;
1017
+ find(params: Params$Resource$Threatmatches$Find, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>): void;
1018
+ find(callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>): void;
1019
1019
  }
1020
1020
  export interface Params$Resource$Threatmatches$Find extends StandardParameters {
1021
1021
  /**
1022
1022
  * Request body metadata
1023
1023
  */
1024
- requestBody?: Schema$FindThreatMatchesRequest;
1024
+ requestBody?: Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesRequest;
1025
1025
  }
1026
1026
  export {};
1027
1027
  }