UserFacingMessage
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
        提供包含语言区域信息的面向用户的消息。消息长度上限为 4096 个字符。
      
      
        
          
            
              | JSON 表示法 | 
          
          
            
              | {
  "localizedMessages": {
    string: string,
    ...
  },
  "defaultMessage": string
} | 
          
        
      
      
        
          
            
            
          
          
            
              | 字段 | 
          
          
            
              | localizedMessages | map (key: string, value: string)
 包含 <locale, message> 的地图对,其中语言区域是格式正确的 BCP 47 语言代码,例如 en-US、es-ES 或 fr。 包含一系列 "key": value对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。 | 
            
              | defaultMessage | string
 如果未指定本地化消息或用户的语言区域与任何本地化消息都不匹配,则会显示默认消息。如果提供了任何本地化的消息,则必须提供默认消息。 | 
          
        
      
    
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-26。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-26。"],[],["The content defines a JSON structure for user-facing messages with locale support. It includes `localizedMessages`, a map where keys are BCP 47 language codes and values are translated messages. The `defaultMessage` field is a string providing a fallback message when no matching locale is found.  `localizedMessages` holds key-value message pairs, and a default message is required if there are any localized ones. The maximum message length is 4096 characters.\n"]]