Class Generated.VolumeMount

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.VolumeMountOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.VolumeMount
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.VolumeMountOrBuilder
     VolumeMount describes a mounting of a Volume within a container.
     
    Protobuf type k8s.io.api.core.v1.VolumeMount
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.VolumeMount.Builder
      VolumeMount describes a mounting of a Volume within a container.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.VolumeMount parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeMount parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeMount parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeMount parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeMount parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.VolumeMount parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected Generated.VolumeMount.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.VolumeMount> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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