2025 年 4 月 1 日,我们移除了 Library API 中的部分镜重。
点击此处了解详情。
  
        
 
     
  
  
  
    
  
  
  
    
      AlbumPosition
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
      
        
          
            
              | JSON 表示法 | 
          
          
            
              | {
  "position": enum (PositionType),
  // Union fieldrelative_itemcan be only one of the following:
  "relativeMediaItemId": string,
  "relativeEnrichmentItemId": string
  // End of list of possible types for union fieldrelative_item.
} | 
          
        
      
      
        
          
            
            
          
          
            
              | 字段 | 
          
          
            
              | position | enum (PositionType)
 媒体项或扩充项内容的位置类型。 | 
            
              | 联合字段 relative_item。存在相对位置关系的项。仅当使用位置类型AFTER_MEDIA_ITEM或AFTER_ENRICHMENT_ITEM时,才必须设置此字段。relative_item只能是下列其中一项: | 
            
              | relativeMediaItemId | string
 存在相对位置关系的媒体内容。仅在位置类型为 AFTER_MEDIA_ITEM 时使用。 | 
            
              | relativeEnrichmentItemId | string
 存在相对位置关系的丰富内容。仅在位置类型为 AFTER_ENRICHMENT_ITEM 时使用。 | 
          
        
      
      
        PositionType
        
        
          
            
              
              
            
            
              
                | 枚举 | 
            
            
              
                | POSITION_TYPE_UNSPECIFIED | 如果未设置此枚举,则为默认值。 | 
              
                | FIRST_IN_ALBUM | 位于影集开头。 | 
              
                | LAST_IN_ALBUM | 位于影集末尾。 | 
              
                | AFTER_MEDIA_ITEM | 位于媒体项后面。 | 
              
                | AFTER_ENRICHMENT_ITEM | 位于扩充项内容的后面。 | 
            
          
        
      
    
  
  
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 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。"],[],["The content defines how to specify a position within an album using a JSON structure. It uses a `position` field with an enumerated type (`PositionType`) that can be `FIRST_IN_ALBUM`, `LAST_IN_ALBUM`, `AFTER_MEDIA_ITEM`, or `AFTER_ENRICHMENT_ITEM`. If positioning after an item, either `relativeMediaItemId` or `relativeEnrichmentItemId` must be specified in the `relative_item` union field to identify the referenced media or enrichment item.\n"]]