Provider
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
A constructor for simple value objects, known as provider instances.
This value has a dual purpose:  
     - It is a function that can be called to construct 'struct'-like values:
DataInfo = provider()
d = DataInfo(x = 2, y = 3)
print(d.x + d.y) # prints 5
     Note: Some providers, defined internally, do not allow instance creation           - It is a key to access a provider instance on a        Target
DataInfo = provider()
def _rule_impl(ctx)
  ... ctx.attr.dep[DataInfo]
        
Create a new 
Provider using the 
provider function.
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
  
  
  
    
      [null,null,["Last updated 2025-10-30 UTC."],[],[]]