Class NFSVolumeSource.Builder (0.76.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.76.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  NFSVolumeSource . Builder   extends   GeneratedMessageV3 . Builder<NFSVolumeSource . Builder >  implements   NFSVolumeSourceOrBuilder  
   Represents an NFS mount.
 Protobuf type google.cloud.run.v2.NFSVolumeSource
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NFSVolumeSource . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   NFSVolumeSource   build ()  
  
  buildPartial() 
  
    
public   NFSVolumeSource   buildPartial ()  
  
  clear() 
  
    
public   NFSVolumeSource . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   NFSVolumeSource . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   NFSVolumeSource . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPath() 
  
    
public   NFSVolumeSource . Builder   clearPath ()  
   Path that is exported by the NFS server.
 string path = 2;
clearReadOnly() 
  
    
public   NFSVolumeSource . Builder   clearReadOnly ()  
   If true, the volume will be mounted as read only for all mounts.
 bool read_only = 3;
clearServer() 
  
    
public   NFSVolumeSource . Builder   clearServer ()  
   Hostname or IP address of the NFS server
 string server = 1;
clone() 
  
    
public   NFSVolumeSource . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   NFSVolumeSource   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getPath() 
  
   Path that is exported by the NFS server.
 string path = 2;
    
      
        Returns  
      
        Type Description  
      
        String The path.
 
     
  
  getPathBytes() 
  
    
public   ByteString   getPathBytes ()  
   Path that is exported by the NFS server.
 string path = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for path.
 
     
  
  getReadOnly() 
  
    
public   boolean   getReadOnly ()  
   If true, the volume will be mounted as read only for all mounts.
 bool read_only = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean The readOnly.
 
     
  
  getServer() 
  
    
public   String   getServer ()  
   Hostname or IP address of the NFS server
 string server = 1;
    
      
        Returns  
      
        Type Description  
      
        String The server.
 
     
  
  getServerBytes() 
  
    
public   ByteString   getServerBytes ()  
   Hostname or IP address of the NFS server
 string server = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for server.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(NFSVolumeSource other) 
  
    
public   NFSVolumeSource . Builder   mergeFrom ( NFSVolumeSource   other )  
  
  
  
    
public   NFSVolumeSource . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   NFSVolumeSource . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NFSVolumeSource . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NFSVolumeSource . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setPath(String value) 
  
    
public   NFSVolumeSource . Builder   setPath ( String   value )  
   Path that is exported by the NFS server.
 string path = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The path to set.
 
     
  
  
  setPathBytes(ByteString value) 
  
    
public   NFSVolumeSource . Builder   setPathBytes ( ByteString   value )  
   Path that is exported by the NFS server.
 string path = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for path to set.
 
     
  
  
  setReadOnly(boolean value) 
  
    
public   NFSVolumeSource . Builder   setReadOnly ( boolean   value )  
   If true, the volume will be mounted as read only for all mounts.
 bool read_only = 3;
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The readOnly to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   NFSVolumeSource . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setServer(String value) 
  
    
public   NFSVolumeSource . Builder   setServer ( String   value )  
   Hostname or IP address of the NFS server
 string server = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueString The server to set.
 
     
  
  
  setServerBytes(ByteString value) 
  
    
public   NFSVolumeSource . Builder   setServerBytes ( ByteString   value )  
   Hostname or IP address of the NFS server
 string server = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for server to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NFSVolumeSource . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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-29 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-29 UTC."],[],[]]