Class V1Storage.VolumeAttachmentStatus.Builder

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

public static final class V1Storage.VolumeAttachmentStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Storage.VolumeAttachmentStatus.Builder> implements V1Storage.VolumeAttachmentStatusOrBuilder
 VolumeAttachmentStatus is the status of a VolumeAttachment request.
 
Protobuf type k8s.io.api.storage.v1.VolumeAttachmentStatus
  • 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<V1Storage.VolumeAttachmentStatus.Builder>
    • internalGetMutableMapField

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

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

      public V1Storage.VolumeAttachmentStatus 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 V1Storage.VolumeAttachmentStatus 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<V1Storage.VolumeAttachmentStatus.Builder>
    • setField

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • clearField

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • clearOneof

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • setRepeatedField

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • addRepeatedField

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • mergeFrom

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • mergeFrom

      public V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
      Throws:
      IOException
    • hasAttached

      public boolean hasAttached()
       Indicates the volume is successfully attached.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       
      optional bool attached = 1;
      Specified by:
      hasAttached in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttached

      public boolean getAttached()
       Indicates the volume is successfully attached.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       
      optional bool attached = 1;
      Specified by:
      getAttached in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • setAttached

      public V1Storage.VolumeAttachmentStatus.Builder setAttached(boolean value)
       Indicates the volume is successfully attached.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       
      optional bool attached = 1;
    • clearAttached

       Indicates the volume is successfully attached.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       
      optional bool attached = 1;
    • getAttachmentMetadataCount

      public int getAttachmentMetadataCount()
      Description copied from interface: V1Storage.VolumeAttachmentStatusOrBuilder
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
      Specified by:
      getAttachmentMetadataCount in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • containsAttachmentMetadata

      public boolean containsAttachmentMetadata(String key)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
      Specified by:
      containsAttachmentMetadata in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttachmentMetadata

      @Deprecated public Map<String,String> getAttachmentMetadata()
      Deprecated.
      Specified by:
      getAttachmentMetadata in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttachmentMetadataMap

      public Map<String,String> getAttachmentMetadataMap()
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
      Specified by:
      getAttachmentMetadataMap in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttachmentMetadataOrDefault

      public String getAttachmentMetadataOrDefault(String key, String defaultValue)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
      Specified by:
      getAttachmentMetadataOrDefault in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttachmentMetadataOrThrow

      public String getAttachmentMetadataOrThrow(String key)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
      Specified by:
      getAttachmentMetadataOrThrow in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • clearAttachmentMetadata

      public V1Storage.VolumeAttachmentStatus.Builder clearAttachmentMetadata()
    • removeAttachmentMetadata

      public V1Storage.VolumeAttachmentStatus.Builder removeAttachmentMetadata(String key)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
    • getMutableAttachmentMetadata

      @Deprecated public Map<String,String> getMutableAttachmentMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttachmentMetadata

      public V1Storage.VolumeAttachmentStatus.Builder putAttachmentMetadata(String key, String value)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
    • putAllAttachmentMetadata

      public V1Storage.VolumeAttachmentStatus.Builder putAllAttachmentMetadata(Map<String,String> values)
       Upon successful attach, this field is populated with any
       information returned by the attach operation that must be passed
       into subsequent WaitForAttach or Mount calls.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      map<string, string> attachmentMetadata = 2;
    • hasAttachError

      public boolean hasAttachError()
       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
      Specified by:
      hasAttachError in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getAttachError

      public V1Storage.VolumeError getAttachError()
       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
      Specified by:
      getAttachError in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • setAttachError

       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
    • setAttachError

       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
    • mergeAttachError

       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
    • clearAttachError

      public V1Storage.VolumeAttachmentStatus.Builder clearAttachError()
       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
    • getAttachErrorBuilder

      public V1Storage.VolumeError.Builder getAttachErrorBuilder()
       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
    • getAttachErrorOrBuilder

      public V1Storage.VolumeErrorOrBuilder getAttachErrorOrBuilder()
       The last error encountered during attach operation, if any.
       This field must only be set by the entity completing the attach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError attachError = 3;
      Specified by:
      getAttachErrorOrBuilder in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • hasDetachError

      public boolean hasDetachError()
       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
      Specified by:
      hasDetachError in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • getDetachError

      public V1Storage.VolumeError getDetachError()
       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
      Specified by:
      getDetachError in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • setDetachError

       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
    • setDetachError

       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
    • mergeDetachError

       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
    • clearDetachError

      public V1Storage.VolumeAttachmentStatus.Builder clearDetachError()
       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
    • getDetachErrorBuilder

      public V1Storage.VolumeError.Builder getDetachErrorBuilder()
       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
    • getDetachErrorOrBuilder

      public V1Storage.VolumeErrorOrBuilder getDetachErrorOrBuilder()
       The last error encountered during detach operation, if any.
       This field must only be set by the entity completing the detach
       operation, i.e. the external-attacher.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeError detachError = 4;
      Specified by:
      getDetachErrorOrBuilder in interface V1Storage.VolumeAttachmentStatusOrBuilder
    • setUnknownFields

      public final V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>
    • mergeUnknownFields

      public final V1Storage.VolumeAttachmentStatus.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<V1Storage.VolumeAttachmentStatus.Builder>