Class V1.PersistentVolumeClaimStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimStatus.Builder>
io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PersistentVolumeClaimStatusOrBuilder, Cloneable
Enclosing class:
V1.PersistentVolumeClaimStatus

public static final class V1.PersistentVolumeClaimStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimStatus.Builder> implements V1.PersistentVolumeClaimStatusOrBuilder
 PersistentVolumeClaimStatus is the current status of a persistent volume claim.
 
Protobuf type k8s.io.api.core.v1.PersistentVolumeClaimStatus
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimStatus.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimStatus.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • clearField

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • clearOneof

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • setRepeatedField

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • addRepeatedField

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • mergeFrom

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • mergeFrom

    • isInitialized

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

      public V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
      Throws:
      IOException
    • hasPhase

      public boolean hasPhase()
       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
      Specified by:
      hasPhase in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getPhase

      public String getPhase()
       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
      Specified by:
      getPhase in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getPhaseBytes

      public com.google.protobuf.ByteString getPhaseBytes()
       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
      Specified by:
      getPhaseBytes in interface V1.PersistentVolumeClaimStatusOrBuilder
    • setPhase

       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
    • clearPhase

       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
    • setPhaseBytes

      public V1.PersistentVolumeClaimStatus.Builder setPhaseBytes(com.google.protobuf.ByteString value)
       Phase represents the current phase of PersistentVolumeClaim.
       +optional
       
      optional string phase = 1;
    • getAccessModesList

      public com.google.protobuf.ProtocolStringList getAccessModesList()
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
      Specified by:
      getAccessModesList in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getAccessModesCount

      public int getAccessModesCount()
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
      Specified by:
      getAccessModesCount in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getAccessModes

      public String getAccessModes(int index)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
      Specified by:
      getAccessModes in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getAccessModesBytes

      public com.google.protobuf.ByteString getAccessModesBytes(int index)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
      Specified by:
      getAccessModesBytes in interface V1.PersistentVolumeClaimStatusOrBuilder
    • setAccessModes

      public V1.PersistentVolumeClaimStatus.Builder setAccessModes(int index, String value)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
    • addAccessModes

      public V1.PersistentVolumeClaimStatus.Builder addAccessModes(String value)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
    • addAllAccessModes

      public V1.PersistentVolumeClaimStatus.Builder addAllAccessModes(Iterable<String> values)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
    • clearAccessModes

      public V1.PersistentVolumeClaimStatus.Builder clearAccessModes()
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
    • addAccessModesBytes

      public V1.PersistentVolumeClaimStatus.Builder addAccessModesBytes(com.google.protobuf.ByteString value)
       AccessModes contains the actual access modes the volume backing the PVC has.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       +optional
       
      repeated string accessModes = 2;
    • getCapacityCount

      public int getCapacityCount()
      Description copied from interface: V1.PersistentVolumeClaimStatusOrBuilder
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
      Specified by:
      getCapacityCount in interface V1.PersistentVolumeClaimStatusOrBuilder
    • containsCapacity

      public boolean containsCapacity(String key)
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
      Specified by:
      containsCapacity in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getCapacity

      @Deprecated public Map<String,Resource.Quantity> getCapacity()
      Deprecated.
      Use getCapacityMap() instead.
      Specified by:
      getCapacity in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getCapacityMap

      public Map<String,Resource.Quantity> getCapacityMap()
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
      Specified by:
      getCapacityMap in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getCapacityOrDefault

      public Resource.Quantity getCapacityOrDefault(String key, Resource.Quantity defaultValue)
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
      Specified by:
      getCapacityOrDefault in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getCapacityOrThrow

      public Resource.Quantity getCapacityOrThrow(String key)
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
      Specified by:
      getCapacityOrThrow in interface V1.PersistentVolumeClaimStatusOrBuilder
    • clearCapacity

    • removeCapacity

      public V1.PersistentVolumeClaimStatus.Builder removeCapacity(String key)
       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
    • getMutableCapacity

      @Deprecated public Map<String,Resource.Quantity> getMutableCapacity()
      Deprecated.
      Use alternate mutation accessors instead.
    • putCapacity

       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
    • putAllCapacity

       Represents the actual resources of the underlying volume.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
    • getConditionsList

      public List<V1.PersistentVolumeClaimCondition> getConditionsList()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
      Specified by:
      getConditionsList in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
      Specified by:
      getConditionsCount in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getConditions

      public V1.PersistentVolumeClaimCondition getConditions(int index)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
      Specified by:
      getConditions in interface V1.PersistentVolumeClaimStatusOrBuilder
    • setConditions

       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • setConditions

      public V1.PersistentVolumeClaimStatus.Builder setConditions(int index, V1.PersistentVolumeClaimCondition.Builder builderForValue)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addConditions

       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addConditions

       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addConditions

       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addConditions

      public V1.PersistentVolumeClaimStatus.Builder addConditions(int index, V1.PersistentVolumeClaimCondition.Builder builderForValue)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addAllConditions

       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • clearConditions

      public V1.PersistentVolumeClaimStatus.Builder clearConditions()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • removeConditions

      public V1.PersistentVolumeClaimStatus.Builder removeConditions(int index)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • getConditionsBuilder

      public V1.PersistentVolumeClaimCondition.Builder getConditionsBuilder(int index)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • getConditionsOrBuilder

      public V1.PersistentVolumeClaimConditionOrBuilder getConditionsOrBuilder(int index)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
      Specified by:
      getConditionsOrBuilder in interface V1.PersistentVolumeClaimStatusOrBuilder
    • getConditionsOrBuilderList

      public List<? extends V1.PersistentVolumeClaimConditionOrBuilder> getConditionsOrBuilderList()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
      Specified by:
      getConditionsOrBuilderList in interface V1.PersistentVolumeClaimStatusOrBuilder
    • addConditionsBuilder

      public V1.PersistentVolumeClaimCondition.Builder addConditionsBuilder()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • addConditionsBuilder

      public V1.PersistentVolumeClaimCondition.Builder addConditionsBuilder(int index)
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • getConditionsBuilderList

      public List<V1.PersistentVolumeClaimCondition.Builder> getConditionsBuilderList()
       Current Condition of persistent volume claim. If underlying persistent volume is being
       resized then the Condition will be set to 'ResizeStarted'.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4;
    • setUnknownFields

      public final V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>
    • mergeUnknownFields

      public final V1.PersistentVolumeClaimStatus.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<V1.PersistentVolumeClaimStatus.Builder>