Method: hashLists.list
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
      
        列出哈希列表。
在 V5 API 中,Google 绝不会移除此方法所返回的哈希列表。这样一来,客户端便可以跳过此方法,只需对所需的所有哈希列表进行硬编码即可。
这是 https://google.aip.dev/132 定义的标准 List 方法,HTTP 方法是 GET。
      
      
        
          HTTP 请求
          GET https://safebrowsing.googleapis.com/v5alpha1/hashLists
网址采用 gRPC 转码语法。
        
        
          查询参数
          
            
              
              
            
            
              
                | 参数 | 
            
            
              
                | pageSize | integer
 要返回的哈希列表的数量上限。服务返回的值可能小于此值。如果未指定,服务器将选择一个页面大小,该大小可能大于哈希列表的数量,因此不需要进行分页。 | 
              
                | pageToken | string
 从之前的 hashLists.list调用接收的页面令牌。利用其进行后续页面检索。 | 
            
          
        
        
        
          响应正文
          
            
              包含哈希列表元数据的响应。
              如果成功,响应正文将包含结构如下的数据:
            
            
              
                
                  
                    | JSON 表示法 | 
                
                
                  
                    | {
  "hashLists": [
    {
      object (HashList)
    }
  ],
  "nextPageToken": string
} | 
                
              
            
            
              
                
                  
                  
                
                
                  
                    | 字段 | 
                
                
                  
                    | hashLists[] | object (HashList)
 按任意顺序排列的哈希列表。其中仅包含关于哈希列表的元数据,不包含内容。 | 
                  
                    | nextPageToken | string
 可作为 pageToken发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。 | 
                
              
            
          
        
      
    
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-25。
  
  
  
    
      [[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[],["This document details the process for retrieving metadata about hash lists using the V5 API's `hashLists.list` method.  It uses an HTTP GET request to `https://safebrowsing.googleapis.com/v5alpha1/hashLists`.  Optional query parameters include `pageSize` to limit results and `pageToken` for pagination. The request body must be empty. The response body includes an array of `hashLists` and an optional `nextPageToken` for subsequent pages. The API never removes returned hash lists.\n"]]