Class V1Storage.CSINodeDriver.Builder

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

public static final class V1Storage.CSINodeDriver.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Storage.CSINodeDriver.Builder> implements V1Storage.CSINodeDriverOrBuilder
 CSINodeDriver holds information about the specification of one CSI driver installed on a node
 
Protobuf type k8s.io.api.storage.v1.CSINodeDriver
  • 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<V1Storage.CSINodeDriver.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.CSINodeDriver.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.CSINodeDriver.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public boolean hasName()
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
      Specified by:
      hasName in interface V1Storage.CSINodeDriverOrBuilder
    • getName

      public String getName()
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
      Specified by:
      getName in interface V1Storage.CSINodeDriverOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1Storage.CSINodeDriverOrBuilder
    • setName

      public V1Storage.CSINodeDriver.Builder setName(String value)
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
    • clearName

      public V1Storage.CSINodeDriver.Builder clearName()
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
    • setNameBytes

      public V1Storage.CSINodeDriver.Builder setNameBytes(com.google.protobuf.ByteString value)
       This is the name of the CSI driver that this object refers to.
       This MUST be the same name returned by the CSI GetPluginName() call for
       that driver.
       
      optional string name = 1;
    • hasNodeID

      public boolean hasNodeID()
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
      Specified by:
      hasNodeID in interface V1Storage.CSINodeDriverOrBuilder
    • getNodeID

      public String getNodeID()
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
      Specified by:
      getNodeID in interface V1Storage.CSINodeDriverOrBuilder
    • getNodeIDBytes

      public com.google.protobuf.ByteString getNodeIDBytes()
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
      Specified by:
      getNodeIDBytes in interface V1Storage.CSINodeDriverOrBuilder
    • setNodeID

      public V1Storage.CSINodeDriver.Builder setNodeID(String value)
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
    • clearNodeID

      public V1Storage.CSINodeDriver.Builder clearNodeID()
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
    • setNodeIDBytes

      public V1Storage.CSINodeDriver.Builder setNodeIDBytes(com.google.protobuf.ByteString value)
       nodeID of the node from the driver point of view.
       This field enables Kubernetes to communicate with storage systems that do
       not share the same nomenclature for nodes. For example, Kubernetes may
       refer to a given node as "node1", but the storage system may refer to
       the same node as "nodeA". When Kubernetes issues a command to the storage
       system to attach a volume to a specific node, it can use this field to
       refer to the node name using the ID that the storage system will
       understand, e.g. "nodeA" instead of "node1". This field is required.
       
      optional string nodeID = 2;
    • getTopologyKeysList

      public com.google.protobuf.ProtocolStringList getTopologyKeysList()
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
      Specified by:
      getTopologyKeysList in interface V1Storage.CSINodeDriverOrBuilder
    • getTopologyKeysCount

      public int getTopologyKeysCount()
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
      Specified by:
      getTopologyKeysCount in interface V1Storage.CSINodeDriverOrBuilder
    • getTopologyKeys

      public String getTopologyKeys(int index)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
      Specified by:
      getTopologyKeys in interface V1Storage.CSINodeDriverOrBuilder
    • getTopologyKeysBytes

      public com.google.protobuf.ByteString getTopologyKeysBytes(int index)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
      Specified by:
      getTopologyKeysBytes in interface V1Storage.CSINodeDriverOrBuilder
    • setTopologyKeys

      public V1Storage.CSINodeDriver.Builder setTopologyKeys(int index, String value)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
    • addTopologyKeys

      public V1Storage.CSINodeDriver.Builder addTopologyKeys(String value)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
    • addAllTopologyKeys

      public V1Storage.CSINodeDriver.Builder addAllTopologyKeys(Iterable<String> values)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
    • clearTopologyKeys

      public V1Storage.CSINodeDriver.Builder clearTopologyKeys()
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
    • addTopologyKeysBytes

      public V1Storage.CSINodeDriver.Builder addTopologyKeysBytes(com.google.protobuf.ByteString value)
       topologyKeys is the list of keys supported by the driver.
       When a driver is initialized on a cluster, it provides a set of topology
       keys that it understands (e.g. "company.com/zone", "company.com/region").
       When a driver is initialized on a node, it provides the same topology keys
       along with values. Kubelet will expose these topology keys as labels
       on its own node object.
       When Kubernetes does topology aware provisioning, it can use this list to
       determine which labels it should retrieve from the node object and pass
       back to the driver.
       It is possible for different nodes to use different topology keys.
       This can be empty if driver does not support topology.
       +optional
       
      repeated string topologyKeys = 3;
    • hasAllocatable

      public boolean hasAllocatable()
       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
      Specified by:
      hasAllocatable in interface V1Storage.CSINodeDriverOrBuilder
    • getAllocatable

      public V1Storage.VolumeNodeResources getAllocatable()
       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
      Specified by:
      getAllocatable in interface V1Storage.CSINodeDriverOrBuilder
    • setAllocatable

       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
    • setAllocatable

       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
    • mergeAllocatable

       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
    • clearAllocatable

      public V1Storage.CSINodeDriver.Builder clearAllocatable()
       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
    • getAllocatableBuilder

      public V1Storage.VolumeNodeResources.Builder getAllocatableBuilder()
       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
    • getAllocatableOrBuilder

      public V1Storage.VolumeNodeResourcesOrBuilder getAllocatableOrBuilder()
       allocatable represents the volume resources of a node that are available for scheduling.
       This field is beta.
       +optional
       
      optional .k8s.io.api.storage.v1.VolumeNodeResources allocatable = 4;
      Specified by:
      getAllocatableOrBuilder in interface V1Storage.CSINodeDriverOrBuilder
    • setUnknownFields

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

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