Class Generated.VolumeMount.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • clear

        public Generated.VolumeMount.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • getDefaultInstanceForType

        public Generated.VolumeMount getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.VolumeMount build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.VolumeMount buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.VolumeMount.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • clearField

        public Generated.VolumeMount.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • clearOneof

        public Generated.VolumeMount.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • setRepeatedField

        public Generated.VolumeMount.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • addRepeatedField

        public Generated.VolumeMount.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • mergeFrom

        public Generated.VolumeMount.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.VolumeMount.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         This must match the Name of a Volume.
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the name field is set.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         This must match the Name of a Volume.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.VolumeMount.Builder setName​(String value)
         This must match the Name of a Volume.
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.VolumeMount.Builder clearName()
         This must match the Name of a Volume.
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.VolumeMount.Builder setNameBytes​(com.google.protobuf.ByteString value)
         This must match the Name of a Volume.
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasReadOnly

        public boolean hasReadOnly()
         Mounted read-only if true, read-write otherwise (false or unspecified).
         Defaults to false.
         +optional
         
        optional bool readOnly = 2;
        Specified by:
        hasReadOnly in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getReadOnly

        public boolean getReadOnly()
         Mounted read-only if true, read-write otherwise (false or unspecified).
         Defaults to false.
         +optional
         
        optional bool readOnly = 2;
        Specified by:
        getReadOnly in interface Generated.VolumeMountOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.VolumeMount.Builder setReadOnly​(boolean value)
         Mounted read-only if true, read-write otherwise (false or unspecified).
         Defaults to false.
         +optional
         
        optional bool readOnly = 2;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.VolumeMount.Builder clearReadOnly()
         Mounted read-only if true, read-write otherwise (false or unspecified).
         Defaults to false.
         +optional
         
        optional bool readOnly = 2;
        Returns:
        This builder for chaining.
      • hasRecursiveReadOnly

        public boolean hasRecursiveReadOnly()
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Specified by:
        hasRecursiveReadOnly in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the recursiveReadOnly field is set.
      • getRecursiveReadOnly

        public String getRecursiveReadOnly()
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Specified by:
        getRecursiveReadOnly in interface Generated.VolumeMountOrBuilder
        Returns:
        The recursiveReadOnly.
      • getRecursiveReadOnlyBytes

        public com.google.protobuf.ByteString getRecursiveReadOnlyBytes()
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Specified by:
        getRecursiveReadOnlyBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for recursiveReadOnly.
      • setRecursiveReadOnly

        public Generated.VolumeMount.Builder setRecursiveReadOnly​(String value)
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Parameters:
        value - The recursiveReadOnly to set.
        Returns:
        This builder for chaining.
      • clearRecursiveReadOnly

        public Generated.VolumeMount.Builder clearRecursiveReadOnly()
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Returns:
        This builder for chaining.
      • setRecursiveReadOnlyBytes

        public Generated.VolumeMount.Builder setRecursiveReadOnlyBytes​(com.google.protobuf.ByteString value)
         RecursiveReadOnly specifies whether read-only mounts should be handled
         recursively.
        
         If ReadOnly is false, this field has no meaning and must be unspecified.
        
         If ReadOnly is true, and this field is set to Disabled, the mount is not made
         recursively read-only.  If this field is set to IfPossible, the mount is made
         recursively read-only, if it is supported by the container runtime.  If this
         field is set to Enabled, the mount is made recursively read-only if it is
         supported by the container runtime, otherwise the pod will not be started and
         an error will be generated to indicate the reason.
        
         If this field is set to IfPossible or Enabled, MountPropagation must be set to
         None (or be unspecified, which defaults to None).
        
         If this field is not specified, it is treated as an equivalent of Disabled.
        
         +featureGate=RecursiveReadOnlyMounts
         +optional
         
        optional string recursiveReadOnly = 7;
        Parameters:
        value - The bytes for recursiveReadOnly to set.
        Returns:
        This builder for chaining.
      • hasMountPath

        public boolean hasMountPath()
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Specified by:
        hasMountPath in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the mountPath field is set.
      • getMountPath

        public String getMountPath()
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Specified by:
        getMountPath in interface Generated.VolumeMountOrBuilder
        Returns:
        The mountPath.
      • getMountPathBytes

        public com.google.protobuf.ByteString getMountPathBytes()
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Specified by:
        getMountPathBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for mountPath.
      • setMountPath

        public Generated.VolumeMount.Builder setMountPath​(String value)
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Parameters:
        value - The mountPath to set.
        Returns:
        This builder for chaining.
      • clearMountPath

        public Generated.VolumeMount.Builder clearMountPath()
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Returns:
        This builder for chaining.
      • setMountPathBytes

        public Generated.VolumeMount.Builder setMountPathBytes​(com.google.protobuf.ByteString value)
         Path within the container at which the volume should be mounted.  Must
         not contain ':'.
         
        optional string mountPath = 3;
        Parameters:
        value - The bytes for mountPath to set.
        Returns:
        This builder for chaining.
      • hasSubPath

        public boolean hasSubPath()
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Specified by:
        hasSubPath in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the subPath field is set.
      • getSubPath

        public String getSubPath()
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Specified by:
        getSubPath in interface Generated.VolumeMountOrBuilder
        Returns:
        The subPath.
      • getSubPathBytes

        public com.google.protobuf.ByteString getSubPathBytes()
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Specified by:
        getSubPathBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for subPath.
      • setSubPath

        public Generated.VolumeMount.Builder setSubPath​(String value)
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Parameters:
        value - The subPath to set.
        Returns:
        This builder for chaining.
      • clearSubPath

        public Generated.VolumeMount.Builder clearSubPath()
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Returns:
        This builder for chaining.
      • setSubPathBytes

        public Generated.VolumeMount.Builder setSubPathBytes​(com.google.protobuf.ByteString value)
         Path within the volume from which the container's volume should be mounted.
         Defaults to "" (volume's root).
         +optional
         
        optional string subPath = 4;
        Parameters:
        value - The bytes for subPath to set.
        Returns:
        This builder for chaining.
      • hasMountPropagation

        public boolean hasMountPropagation()
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Specified by:
        hasMountPropagation in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the mountPropagation field is set.
      • getMountPropagation

        public String getMountPropagation()
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Specified by:
        getMountPropagation in interface Generated.VolumeMountOrBuilder
        Returns:
        The mountPropagation.
      • getMountPropagationBytes

        public com.google.protobuf.ByteString getMountPropagationBytes()
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Specified by:
        getMountPropagationBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for mountPropagation.
      • setMountPropagation

        public Generated.VolumeMount.Builder setMountPropagation​(String value)
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Parameters:
        value - The mountPropagation to set.
        Returns:
        This builder for chaining.
      • clearMountPropagation

        public Generated.VolumeMount.Builder clearMountPropagation()
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Returns:
        This builder for chaining.
      • setMountPropagationBytes

        public Generated.VolumeMount.Builder setMountPropagationBytes​(com.google.protobuf.ByteString value)
         mountPropagation determines how mounts are propagated from the host
         to container and the other way around.
         When not set, MountPropagationNone is used.
         This field is beta in 1.10.
         When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
         (which defaults to None).
         +optional
         
        optional string mountPropagation = 5;
        Parameters:
        value - The bytes for mountPropagation to set.
        Returns:
        This builder for chaining.
      • hasSubPathExpr

        public boolean hasSubPathExpr()
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Specified by:
        hasSubPathExpr in interface Generated.VolumeMountOrBuilder
        Returns:
        Whether the subPathExpr field is set.
      • getSubPathExpr

        public String getSubPathExpr()
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Specified by:
        getSubPathExpr in interface Generated.VolumeMountOrBuilder
        Returns:
        The subPathExpr.
      • getSubPathExprBytes

        public com.google.protobuf.ByteString getSubPathExprBytes()
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Specified by:
        getSubPathExprBytes in interface Generated.VolumeMountOrBuilder
        Returns:
        The bytes for subPathExpr.
      • setSubPathExpr

        public Generated.VolumeMount.Builder setSubPathExpr​(String value)
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Parameters:
        value - The subPathExpr to set.
        Returns:
        This builder for chaining.
      • clearSubPathExpr

        public Generated.VolumeMount.Builder clearSubPathExpr()
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Returns:
        This builder for chaining.
      • setSubPathExprBytes

        public Generated.VolumeMount.Builder setSubPathExprBytes​(com.google.protobuf.ByteString value)
         Expanded path within the volume from which the container's volume should be mounted.
         Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
         Defaults to "" (volume's root).
         SubPathExpr and SubPath are mutually exclusive.
         +optional
         
        optional string subPathExpr = 6;
        Parameters:
        value - The bytes for subPathExpr to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.VolumeMount.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>
      • mergeUnknownFields

        public final Generated.VolumeMount.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.VolumeMount.Builder>