Class Generated.NodeSpec

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

    public static final class Generated.NodeSpec
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.NodeSpecOrBuilder
     NodeSpec describes the attributes that a node is created with.
     
    Protobuf type k8s.io.api.core.v1.NodeSpec
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.NodeSpec parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.NodeSpec parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Generated.NodeSpec.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.NodeSpec> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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