Class V1.PersistentVolumeStatus.Builder

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

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

    • 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<V1.PersistentVolumeStatus.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.PersistentVolumeStatus.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.PersistentVolumeStatus.Builder>
    • getDefaultInstanceForType

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

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

      public V1.PersistentVolumeStatus 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.PersistentVolumeStatus.Builder>
    • setField

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

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

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

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

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

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

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

      public boolean hasPhase()
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
      Specified by:
      hasPhase in interface V1.PersistentVolumeStatusOrBuilder
    • getPhase

      public String getPhase()
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
      Specified by:
      getPhase in interface V1.PersistentVolumeStatusOrBuilder
    • getPhaseBytes

      public com.google.protobuf.ByteString getPhaseBytes()
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
      Specified by:
      getPhaseBytes in interface V1.PersistentVolumeStatusOrBuilder
    • setPhase

      public V1.PersistentVolumeStatus.Builder setPhase(String value)
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
    • clearPhase

      public V1.PersistentVolumeStatus.Builder clearPhase()
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
    • setPhaseBytes

      public V1.PersistentVolumeStatus.Builder setPhaseBytes(com.google.protobuf.ByteString value)
       Phase indicates if a volume is available, bound to a claim, or released by a claim.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       +optional
       
      optional string phase = 1;
    • hasMessage

      public boolean hasMessage()
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
      Specified by:
      hasMessage in interface V1.PersistentVolumeStatusOrBuilder
    • getMessage

      public String getMessage()
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
      Specified by:
      getMessage in interface V1.PersistentVolumeStatusOrBuilder
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
      Specified by:
      getMessageBytes in interface V1.PersistentVolumeStatusOrBuilder
    • setMessage

      public V1.PersistentVolumeStatus.Builder setMessage(String value)
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
    • clearMessage

      public V1.PersistentVolumeStatus.Builder clearMessage()
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
    • setMessageBytes

      public V1.PersistentVolumeStatus.Builder setMessageBytes(com.google.protobuf.ByteString value)
       A human-readable message indicating details about why the volume is in this state.
       +optional
       
      optional string message = 2;
    • hasReason

      public boolean hasReason()
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
      Specified by:
      hasReason in interface V1.PersistentVolumeStatusOrBuilder
    • getReason

      public String getReason()
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
      Specified by:
      getReason in interface V1.PersistentVolumeStatusOrBuilder
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
      Specified by:
      getReasonBytes in interface V1.PersistentVolumeStatusOrBuilder
    • setReason

      public V1.PersistentVolumeStatus.Builder setReason(String value)
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
    • clearReason

      public V1.PersistentVolumeStatus.Builder clearReason()
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
    • setReasonBytes

      public V1.PersistentVolumeStatus.Builder setReasonBytes(com.google.protobuf.ByteString value)
       Reason is a brief CamelCase string that describes any failure and is meant
       for machine parsing and tidy display in the CLI.
       +optional
       
      optional string reason = 3;
    • setUnknownFields

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

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