Class Generated.NodeSpec.Builder

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

    public static final class Generated.NodeSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSpec.Builder>
    implements Generated.NodeSpecOrBuilder
     NodeSpec describes the attributes that a node is created with.
     
    Protobuf type k8s.io.api.core.v1.NodeSpec
    • 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.NodeSpec.Builder>
      • clear

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

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

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

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

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

        public Generated.NodeSpec.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.NodeSpec.Builder>
      • clearField

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

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

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

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

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

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

        public boolean hasPodCIDR()
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Specified by:
        hasPodCIDR in interface Generated.NodeSpecOrBuilder
        Returns:
        Whether the podCIDR field is set.
      • getPodCIDR

        public String getPodCIDR()
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Specified by:
        getPodCIDR in interface Generated.NodeSpecOrBuilder
        Returns:
        The podCIDR.
      • getPodCIDRBytes

        public com.google.protobuf.ByteString getPodCIDRBytes()
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Specified by:
        getPodCIDRBytes in interface Generated.NodeSpecOrBuilder
        Returns:
        The bytes for podCIDR.
      • setPodCIDR

        public Generated.NodeSpec.Builder setPodCIDR​(String value)
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Parameters:
        value - The podCIDR to set.
        Returns:
        This builder for chaining.
      • clearPodCIDR

        public Generated.NodeSpec.Builder clearPodCIDR()
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Returns:
        This builder for chaining.
      • setPodCIDRBytes

        public Generated.NodeSpec.Builder setPodCIDRBytes​(com.google.protobuf.ByteString value)
         PodCIDR represents the pod IP range assigned to the node.
         +optional
         
        optional string podCIDR = 1;
        Parameters:
        value - The bytes for podCIDR to set.
        Returns:
        This builder for chaining.
      • getPodCIDRsList

        public com.google.protobuf.ProtocolStringList getPodCIDRsList()
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Specified by:
        getPodCIDRsList in interface Generated.NodeSpecOrBuilder
        Returns:
        A list containing the podCIDRs.
      • getPodCIDRsCount

        public int getPodCIDRsCount()
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Specified by:
        getPodCIDRsCount in interface Generated.NodeSpecOrBuilder
        Returns:
        The count of podCIDRs.
      • getPodCIDRs

        public String getPodCIDRs​(int index)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Specified by:
        getPodCIDRs in interface Generated.NodeSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The podCIDRs at the given index.
      • getPodCIDRsBytes

        public com.google.protobuf.ByteString getPodCIDRsBytes​(int index)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Specified by:
        getPodCIDRsBytes in interface Generated.NodeSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the podCIDRs at the given index.
      • setPodCIDRs

        public Generated.NodeSpec.Builder setPodCIDRs​(int index,
                                                      String value)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Parameters:
        index - The index to set the value at.
        value - The podCIDRs to set.
        Returns:
        This builder for chaining.
      • addPodCIDRs

        public Generated.NodeSpec.Builder addPodCIDRs​(String value)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Parameters:
        value - The podCIDRs to add.
        Returns:
        This builder for chaining.
      • addAllPodCIDRs

        public Generated.NodeSpec.Builder addAllPodCIDRs​(Iterable<String> values)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Parameters:
        values - The podCIDRs to add.
        Returns:
        This builder for chaining.
      • clearPodCIDRs

        public Generated.NodeSpec.Builder clearPodCIDRs()
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Returns:
        This builder for chaining.
      • addPodCIDRsBytes

        public Generated.NodeSpec.Builder addPodCIDRsBytes​(com.google.protobuf.ByteString value)
         podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
         field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
         each of IPv4 and IPv6.
         +optional
         +patchStrategy=merge
         +listType=set
         
        repeated string podCIDRs = 7;
        Parameters:
        value - The bytes of the podCIDRs to add.
        Returns:
        This builder for chaining.
      • hasProviderID

        public boolean hasProviderID()
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Specified by:
        hasProviderID in interface Generated.NodeSpecOrBuilder
        Returns:
        Whether the providerID field is set.
      • getProviderID

        public String getProviderID()
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Specified by:
        getProviderID in interface Generated.NodeSpecOrBuilder
        Returns:
        The providerID.
      • getProviderIDBytes

        public com.google.protobuf.ByteString getProviderIDBytes()
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Specified by:
        getProviderIDBytes in interface Generated.NodeSpecOrBuilder
        Returns:
        The bytes for providerID.
      • setProviderID

        public Generated.NodeSpec.Builder setProviderID​(String value)
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Parameters:
        value - The providerID to set.
        Returns:
        This builder for chaining.
      • clearProviderID

        public Generated.NodeSpec.Builder clearProviderID()
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Returns:
        This builder for chaining.
      • setProviderIDBytes

        public Generated.NodeSpec.Builder setProviderIDBytes​(com.google.protobuf.ByteString value)
         ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
         +optional
         
        optional string providerID = 3;
        Parameters:
        value - The bytes for providerID to set.
        Returns:
        This builder for chaining.
      • hasUnschedulable

        public boolean hasUnschedulable()
         Unschedulable controls node schedulability of new pods. By default, node is schedulable.
         More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
         +optional
         
        optional bool unschedulable = 4;
        Specified by:
        hasUnschedulable in interface Generated.NodeSpecOrBuilder
        Returns:
        Whether the unschedulable field is set.
      • getUnschedulable

        public boolean getUnschedulable()
         Unschedulable controls node schedulability of new pods. By default, node is schedulable.
         More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
         +optional
         
        optional bool unschedulable = 4;
        Specified by:
        getUnschedulable in interface Generated.NodeSpecOrBuilder
        Returns:
        The unschedulable.
      • setUnschedulable

        public Generated.NodeSpec.Builder setUnschedulable​(boolean value)
         Unschedulable controls node schedulability of new pods. By default, node is schedulable.
         More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
         +optional
         
        optional bool unschedulable = 4;
        Parameters:
        value - The unschedulable to set.
        Returns:
        This builder for chaining.
      • clearUnschedulable

        public Generated.NodeSpec.Builder clearUnschedulable()
         Unschedulable controls node schedulability of new pods. By default, node is schedulable.
         More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
         +optional
         
        optional bool unschedulable = 4;
        Returns:
        This builder for chaining.
      • getTaintsCount

        public int getTaintsCount()
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
        Specified by:
        getTaintsCount in interface Generated.NodeSpecOrBuilder
      • clearTaints

        public Generated.NodeSpec.Builder clearTaints()
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • removeTaints

        public Generated.NodeSpec.Builder removeTaints​(int index)
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • getTaintsBuilder

        public Generated.Taint.Builder getTaintsBuilder​(int index)
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • addTaintsBuilder

        public Generated.Taint.Builder addTaintsBuilder()
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • addTaintsBuilder

        public Generated.Taint.Builder addTaintsBuilder​(int index)
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • getTaintsBuilderList

        public List<Generated.Taint.Builder> getTaintsBuilderList()
         If specified, the node's taints.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.Taint taints = 5;
      • hasConfigSource

        public boolean hasConfigSource()
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
        Specified by:
        hasConfigSource in interface Generated.NodeSpecOrBuilder
        Returns:
        Whether the configSource field is set.
      • getConfigSource

        public Generated.NodeConfigSource getConfigSource()
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
        Specified by:
        getConfigSource in interface Generated.NodeSpecOrBuilder
        Returns:
        The configSource.
      • setConfigSource

        public Generated.NodeSpec.Builder setConfigSource​(Generated.NodeConfigSource value)
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
      • setConfigSource

        public Generated.NodeSpec.Builder setConfigSource​(Generated.NodeConfigSource.Builder builderForValue)
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
      • mergeConfigSource

        public Generated.NodeSpec.Builder mergeConfigSource​(Generated.NodeConfigSource value)
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
      • clearConfigSource

        public Generated.NodeSpec.Builder clearConfigSource()
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
      • getConfigSourceBuilder

        public Generated.NodeConfigSource.Builder getConfigSourceBuilder()
         Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
         +optional
         
        optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6;
      • hasExternalID

        public boolean hasExternalID()
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Specified by:
        hasExternalID in interface Generated.NodeSpecOrBuilder
        Returns:
        Whether the externalID field is set.
      • getExternalID

        public String getExternalID()
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Specified by:
        getExternalID in interface Generated.NodeSpecOrBuilder
        Returns:
        The externalID.
      • getExternalIDBytes

        public com.google.protobuf.ByteString getExternalIDBytes()
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Specified by:
        getExternalIDBytes in interface Generated.NodeSpecOrBuilder
        Returns:
        The bytes for externalID.
      • setExternalID

        public Generated.NodeSpec.Builder setExternalID​(String value)
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Parameters:
        value - The externalID to set.
        Returns:
        This builder for chaining.
      • clearExternalID

        public Generated.NodeSpec.Builder clearExternalID()
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Returns:
        This builder for chaining.
      • setExternalIDBytes

        public Generated.NodeSpec.Builder setExternalIDBytes​(com.google.protobuf.ByteString value)
         Deprecated. Not all kubelets will set this field. Remove field after 1.13.
         see: https://issues.k8s.io/61966
         +optional
         
        optional string externalID = 2;
        Parameters:
        value - The bytes for externalID to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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