Class Generated.PersistentVolume.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.PersistentVolumeOrBuilder
    Enclosing class:
    Generated.PersistentVolume

    public static final class Generated.PersistentVolume.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PersistentVolume.Builder>
    implements Generated.PersistentVolumeOrBuilder
     PersistentVolume (PV) is a storage resource provisioned by an administrator.
     It is analogous to a node.
     More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     
    Protobuf type k8s.io.api.core.v1.PersistentVolume
    • 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.PersistentVolume.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.PersistentVolume.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.PersistentVolume buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.PersistentVolume.Builder>
      • mergeFrom

        public Generated.PersistentVolume.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.PersistentVolume.Builder>
        Throws:
        IOException
      • hasMetadata

        public boolean hasMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Specified by:
        hasMetadata in interface Generated.PersistentVolumeOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Generated.ObjectMeta getMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Specified by:
        getMetadata in interface Generated.PersistentVolumeOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public Generated.PersistentVolume.Builder setMetadata​(Generated.ObjectMeta value)
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • setMetadata

        public Generated.PersistentVolume.Builder setMetadata​(Generated.ObjectMeta.Builder builderForValue)
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • mergeMetadata

        public Generated.PersistentVolume.Builder mergeMetadata​(Generated.ObjectMeta value)
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • clearMetadata

        public Generated.PersistentVolume.Builder clearMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • getMetadataBuilder

        public Generated.ObjectMeta.Builder getMetadataBuilder()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • hasSpec

        public boolean hasSpec()
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
        Specified by:
        hasSpec in interface Generated.PersistentVolumeOrBuilder
        Returns:
        Whether the spec field is set.
      • getSpec

        public Generated.PersistentVolumeSpec getSpec()
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
        Specified by:
        getSpec in interface Generated.PersistentVolumeOrBuilder
        Returns:
        The spec.
      • setSpec

        public Generated.PersistentVolume.Builder setSpec​(Generated.PersistentVolumeSpec value)
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
      • setSpec

        public Generated.PersistentVolume.Builder setSpec​(Generated.PersistentVolumeSpec.Builder builderForValue)
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
      • mergeSpec

        public Generated.PersistentVolume.Builder mergeSpec​(Generated.PersistentVolumeSpec value)
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
      • clearSpec

        public Generated.PersistentVolume.Builder clearSpec()
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
      • getSpecBuilder

        public Generated.PersistentVolumeSpec.Builder getSpecBuilder()
         spec defines a specification of a persistent volume owned by the cluster.
         Provisioned by an administrator.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2;
      • hasStatus

        public boolean hasStatus()
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
        Specified by:
        hasStatus in interface Generated.PersistentVolumeOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public Generated.PersistentVolumeStatus getStatus()
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
        Specified by:
        getStatus in interface Generated.PersistentVolumeOrBuilder
        Returns:
        The status.
      • setStatus

        public Generated.PersistentVolume.Builder setStatus​(Generated.PersistentVolumeStatus value)
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
      • setStatus

        public Generated.PersistentVolume.Builder setStatus​(Generated.PersistentVolumeStatus.Builder builderForValue)
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
      • mergeStatus

        public Generated.PersistentVolume.Builder mergeStatus​(Generated.PersistentVolumeStatus value)
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
      • clearStatus

        public Generated.PersistentVolume.Builder clearStatus()
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
      • getStatusBuilder

        public Generated.PersistentVolumeStatus.Builder getStatusBuilder()
         status represents the current information/status for the persistent volume.
         Populated by the system.
         Read-only.
         More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
         +optional
         
        optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3;
      • setUnknownFields

        public final Generated.PersistentVolume.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.PersistentVolume.Builder>
      • mergeUnknownFields

        public final Generated.PersistentVolume.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.PersistentVolume.Builder>