Class UpstreamPolicy (1.32.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.32.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  UpstreamPolicy   extends   GeneratedMessageV3   implements   UpstreamPolicyOrBuilder  
   Artifact policy configuration for the repository contents.
 Protobuf type google.devtools.artifactregistry.v1.UpstreamPolicy
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   PRIORITY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   REPOSITORY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   UpstreamPolicy   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   UpstreamPolicy . Builder   newBuilder ()  
  
  
    
public   static   UpstreamPolicy . Builder   newBuilder ( UpstreamPolicy   prototype )  
  
  
  
    
public   static   UpstreamPolicy   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   UpstreamPolicy   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   UpstreamPolicy   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<UpstreamPolicy>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   UpstreamPolicy   getDefaultInstanceForType ()  
  
   The user-provided ID of the upstream policy.
 string id = 1;
    
      
        Returns  
      
        Type Description  
      
        String The id.
 
     
  
  
    
public   ByteString   getIdBytes ()  
   The user-provided ID of the upstream policy.
 string id = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for id.
 
     
  
  
    
public   Parser<UpstreamPolicy>   getParserForType ()  
  
  Overrides 
  
   Entries with a greater priority value take precedence in the pull order.
 int32 priority = 3;
    
      
        Returns  
      
        Type Description  
      
        int The priority.
 
     
  
  
    
public   String   getRepository ()  
   A reference to the repository resource, for example:
 projects/p1/locations/us-central1/repositories/repo1.
 string repository = 2 [(.google.api.resource_reference) = { ... }
    
      
        Returns  
      
        Type Description  
      
        String The repository.
 
     
  
  
    
public   ByteString   getRepositoryBytes ()  
   A reference to the repository resource, for example:
 projects/p1/locations/us-central1/repositories/repo1.
 string repository = 2 [(.google.api.resource_reference) = { ... }
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for repository.
 
     
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   UpstreamPolicy . Builder   newBuilderForType ()  
  
  
    
protected   UpstreamPolicy . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   UpstreamPolicy . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]