Send feedback
  
   
 
  
    
      Class VersionToPath (0.5.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 0.5.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  VersionToPath   extends   GeneratedMessageV3   implements   VersionToPathOrBuilder  
   
   VersionToPath maps a specific version of a secret to a relative file to mount
 to, relative to VolumeMount's mount_path.
 Protobuf type google.cloud.run.v2.VersionToPath
 
  
  
  
  Static Fields
   
  MODE_FIELD_NUMBER 
  
    
public   static   final   int   MODE_FIELD_NUMBER  
   
  Field Value 
  
  PATH_FIELD_NUMBER 
  
    
public   static   final   int   PATH_FIELD_NUMBER  
   
  Field Value 
  
  VERSION_FIELD_NUMBER 
  
    
public   static   final   int   VERSION_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   VersionToPath   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   VersionToPath . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(VersionToPath prototype) 
  
    
public   static   VersionToPath . Builder   newBuilder ( VersionToPath   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   VersionToPath   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   VersionToPath   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   VersionToPath   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   VersionToPath   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   VersionToPath   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   VersionToPath   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   VersionToPath   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   VersionToPath   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   VersionToPath   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   VersionToPath   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   VersionToPath   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   VersionToPath   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<VersionToPath>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   VersionToPath   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getMode() 
  
   Integer octal mode bits to use on this file, must be a value between
 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
 used.
 Notes
Internally, a umask of 0222 will be applied to any non-zero value. 
This is an integer representation of the mode bits. So, the octal
integer value should look exactly as the chmod numeric notation with a
leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or
511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or
416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493
(base-10). 
This might be in conflict with other options that affect the
file mode, like fsGroup, and the result can be other mode bits set. 
 
 int32 mode = 3;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The mode.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<VersionToPath>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getPath() 
  
   Required. The relative path of the secret in the container.
 string path = 1 [(.google.api.field_behavior) = REQUIRED];
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The path.
 
       
     
  
   
  getPathBytes() 
  
    
public   ByteString   getPathBytes ()  
   
   Required. The relative path of the secret in the container.
 string path = 1 [(.google.api.field_behavior) = REQUIRED];
 
  Returns 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  getVersion() 
  
    
public   String   getVersion ()  
   
   The Cloud Secret Manager secret version.
 Can be 'latest' for the latest value or an integer for a specific version.
 string version = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The version.
 
       
     
  
   
  getVersionBytes() 
  
    
public   ByteString   getVersionBytes ()  
   
   The Cloud Secret Manager secret version.
 Can be 'latest' for the latest value or an integer for a specific version.
 string version = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for version.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   VersionToPath . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   VersionToPath . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   VersionToPath . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]