Class Generated.Volume.Builder

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

    public static final class Generated.Volume.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Volume.Builder>
    implements Generated.VolumeOrBuilder
     Volume represents a named volume in a pod that may be accessed by any container in the pod.
     
    Protobuf type k8s.io.api.core.v1.Volume
    • 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.Volume.Builder>
      • clear

        public Generated.Volume.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.Volume.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.Volume.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.Volume.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.Volume.Builder>
      • setField

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

        public Generated.Volume.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.Volume.Builder>
      • clearOneof

        public Generated.Volume.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.Volume.Builder>
      • setRepeatedField

        public Generated.Volume.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.Volume.Builder>
      • addRepeatedField

        public Generated.Volume.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.Volume.Builder>
      • mergeFrom

        public Generated.Volume.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.Volume.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.Volume.Builder>
      • mergeFrom

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

        public boolean hasName()
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.VolumeOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Specified by:
        getName in interface Generated.VolumeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.VolumeOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.Volume.Builder setName​(String value)
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.Volume.Builder clearName()
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.Volume.Builder setNameBytes​(com.google.protobuf.ByteString value)
         name of the volume.
         Must be a DNS_LABEL and unique within the pod.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasVolumeSource

        public boolean hasVolumeSource()
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
        Specified by:
        hasVolumeSource in interface Generated.VolumeOrBuilder
        Returns:
        Whether the volumeSource field is set.
      • getVolumeSource

        public Generated.VolumeSource getVolumeSource()
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
        Specified by:
        getVolumeSource in interface Generated.VolumeOrBuilder
        Returns:
        The volumeSource.
      • setVolumeSource

        public Generated.Volume.Builder setVolumeSource​(Generated.VolumeSource value)
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      • setVolumeSource

        public Generated.Volume.Builder setVolumeSource​(Generated.VolumeSource.Builder builderForValue)
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      • mergeVolumeSource

        public Generated.Volume.Builder mergeVolumeSource​(Generated.VolumeSource value)
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      • clearVolumeSource

        public Generated.Volume.Builder clearVolumeSource()
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      • getVolumeSourceBuilder

        public Generated.VolumeSource.Builder getVolumeSourceBuilder()
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      • getVolumeSourceOrBuilder

        public Generated.VolumeSourceOrBuilder getVolumeSourceOrBuilder()
         volumeSource represents the location and type of the mounted volume.
         If not specified, the Volume is implied to be an EmptyDir.
         This implied behavior is deprecated and will be removed in a future version.
         
        optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
        Specified by:
        getVolumeSourceOrBuilder in interface Generated.VolumeOrBuilder
      • setUnknownFields

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

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