Class NodeNetworkConfig

  • All Implemented Interfaces:
    NodeNetworkConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class NodeNetworkConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements NodeNetworkConfigOrBuilder
     Parameters for node pool-level network config.
     
    Protobuf type google.container.v1beta1.NodeNetworkConfig
    See Also:
    Serialized Form
    • Field Detail

      • CREATE_POD_RANGE_FIELD_NUMBER

        public static final int CREATE_POD_RANGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POD_IPV4_CIDR_BLOCK_FIELD_NUMBER

        public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLE_PRIVATE_NODES_FIELD_NUMBER

        public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER

        public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER

        public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER

        public static final int ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER

        public static final int ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER

        public static final int POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getCreatePodRange

        public boolean getCreatePodRange()
         Input only. Whether to create a new range for pod IPs in this node pool.
         Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
         are not specified.
        
         If neither `create_pod_range` or `pod_range` are specified, the
         cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
         used.
        
         Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
        
         This field cannot be changed after the node pool has been created.
         
        bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getCreatePodRange in interface NodeNetworkConfigOrBuilder
        Returns:
        The createPodRange.
      • getPodRange

        public String getPodRange()
         The ID of the secondary range for pod IPs.
         If `create_pod_range` is true, this ID is used for the new range.
         If `create_pod_range` is false, uses an existing secondary range with this
         ID.
        
         Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
        
         This field cannot be changed after the node pool has been created.
         
        string pod_range = 5;
        Specified by:
        getPodRange in interface NodeNetworkConfigOrBuilder
        Returns:
        The podRange.
      • getPodRangeBytes

        public com.google.protobuf.ByteString getPodRangeBytes()
         The ID of the secondary range for pod IPs.
         If `create_pod_range` is true, this ID is used for the new range.
         If `create_pod_range` is false, uses an existing secondary range with this
         ID.
        
         Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
        
         This field cannot be changed after the node pool has been created.
         
        string pod_range = 5;
        Specified by:
        getPodRangeBytes in interface NodeNetworkConfigOrBuilder
        Returns:
        The bytes for podRange.
      • getPodIpv4CidrBlock

        public String getPodIpv4CidrBlock()
         The IP address range for pod IPs in this node pool.
        
         Only applicable if `create_pod_range` is true.
        
         Set to blank to have a range chosen with the default size.
        
         Set to /netmask (e.g. `/14`) to have a range chosen with a specific
         netmask.
        
         Set to a
         [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
         notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
        
         Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
        
         This field cannot be changed after the node pool has been created.
         
        string pod_ipv4_cidr_block = 6;
        Specified by:
        getPodIpv4CidrBlock in interface NodeNetworkConfigOrBuilder
        Returns:
        The podIpv4CidrBlock.
      • getPodIpv4CidrBlockBytes

        public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes()
         The IP address range for pod IPs in this node pool.
        
         Only applicable if `create_pod_range` is true.
        
         Set to blank to have a range chosen with the default size.
        
         Set to /netmask (e.g. `/14`) to have a range chosen with a specific
         netmask.
        
         Set to a
         [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
         notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
        
         Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
        
         This field cannot be changed after the node pool has been created.
         
        string pod_ipv4_cidr_block = 6;
        Specified by:
        getPodIpv4CidrBlockBytes in interface NodeNetworkConfigOrBuilder
        Returns:
        The bytes for podIpv4CidrBlock.
      • hasEnablePrivateNodes

        public boolean hasEnablePrivateNodes()
         Whether nodes have internal IP addresses only.
         If enable_private_nodes is not specified, then the value is derived from
         [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
         
        optional bool enable_private_nodes = 9;
        Specified by:
        hasEnablePrivateNodes in interface NodeNetworkConfigOrBuilder
        Returns:
        Whether the enablePrivateNodes field is set.
      • getEnablePrivateNodes

        public boolean getEnablePrivateNodes()
         Whether nodes have internal IP addresses only.
         If enable_private_nodes is not specified, then the value is derived from
         [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
         
        optional bool enable_private_nodes = 9;
        Specified by:
        getEnablePrivateNodes in interface NodeNetworkConfigOrBuilder
        Returns:
        The enablePrivateNodes.
      • hasNetworkPerformanceConfig

        public boolean hasNetworkPerformanceConfig()
         Network bandwidth tier configuration.
         
        optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;
        Specified by:
        hasNetworkPerformanceConfig in interface NodeNetworkConfigOrBuilder
        Returns:
        Whether the networkPerformanceConfig field is set.
      • hasPodCidrOverprovisionConfig

        public boolean hasPodCidrOverprovisionConfig()
         [PRIVATE FIELD]
         Pod CIDR size overprovisioning config for the nodepool.
        
         Pod CIDR size per node depends on max_pods_per_node. By default, the value
         of max_pods_per_node is rounded off to next power of 2 and we then double
         that to get the size of pod CIDR block per node.
         Example: max_pods_per_node of 30 would result in 64 IPs (/26).
        
         This config can disable the doubling of IPs (we still round off to next
         power of 2)
         Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
         overprovisioning is disabled.
         
        .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
        Specified by:
        hasPodCidrOverprovisionConfig in interface NodeNetworkConfigOrBuilder
        Returns:
        Whether the podCidrOverprovisionConfig field is set.
      • getPodCidrOverprovisionConfig

        public PodCIDROverprovisionConfig getPodCidrOverprovisionConfig()
         [PRIVATE FIELD]
         Pod CIDR size overprovisioning config for the nodepool.
        
         Pod CIDR size per node depends on max_pods_per_node. By default, the value
         of max_pods_per_node is rounded off to next power of 2 and we then double
         that to get the size of pod CIDR block per node.
         Example: max_pods_per_node of 30 would result in 64 IPs (/26).
        
         This config can disable the doubling of IPs (we still round off to next
         power of 2)
         Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
         overprovisioning is disabled.
         
        .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
        Specified by:
        getPodCidrOverprovisionConfig in interface NodeNetworkConfigOrBuilder
        Returns:
        The podCidrOverprovisionConfig.
      • getPodCidrOverprovisionConfigOrBuilder

        public PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder()
         [PRIVATE FIELD]
         Pod CIDR size overprovisioning config for the nodepool.
        
         Pod CIDR size per node depends on max_pods_per_node. By default, the value
         of max_pods_per_node is rounded off to next power of 2 and we then double
         that to get the size of pod CIDR block per node.
         Example: max_pods_per_node of 30 would result in 64 IPs (/26).
        
         This config can disable the doubling of IPs (we still round off to next
         power of 2)
         Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
         overprovisioning is disabled.
         
        .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
        Specified by:
        getPodCidrOverprovisionConfigOrBuilder in interface NodeNetworkConfigOrBuilder
      • getAdditionalNodeNetworkConfigsCount

        public int getAdditionalNodeNetworkConfigsCount()
         We specify the additional node networks for this node pool using this list.
         Each node network corresponds to an additional interface
         
        repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
        Specified by:
        getAdditionalNodeNetworkConfigsCount in interface NodeNetworkConfigOrBuilder
      • getAdditionalNodeNetworkConfigs

        public AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs​(int index)
         We specify the additional node networks for this node pool using this list.
         Each node network corresponds to an additional interface
         
        repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
        Specified by:
        getAdditionalNodeNetworkConfigs in interface NodeNetworkConfigOrBuilder
      • getAdditionalPodNetworkConfigsList

        public List<AdditionalPodNetworkConfig> getAdditionalPodNetworkConfigsList()
         We specify the additional pod networks for this node pool using this list.
         Each pod network corresponds to an additional alias IP range for the node
         
        repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
        Specified by:
        getAdditionalPodNetworkConfigsList in interface NodeNetworkConfigOrBuilder
      • getAdditionalPodNetworkConfigsCount

        public int getAdditionalPodNetworkConfigsCount()
         We specify the additional pod networks for this node pool using this list.
         Each pod network corresponds to an additional alias IP range for the node
         
        repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
        Specified by:
        getAdditionalPodNetworkConfigsCount in interface NodeNetworkConfigOrBuilder
      • getAdditionalPodNetworkConfigs

        public AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs​(int index)
         We specify the additional pod networks for this node pool using this list.
         Each pod network corresponds to an additional alias IP range for the node
         
        repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
        Specified by:
        getAdditionalPodNetworkConfigs in interface NodeNetworkConfigOrBuilder
      • getPodIpv4RangeUtilization

        public double getPodIpv4RangeUtilization()
         Output only. [Output only] The utilization of the IPv4 range for the pod.
         The ratio is Usage/[Total number of IPs in the secondary range],
         Usage=numNodes*numZones*podIPsPerNode.
         
        double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPodIpv4RangeUtilization in interface NodeNetworkConfigOrBuilder
        Returns:
        The podIpv4RangeUtilization.
      • 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 NodeNetworkConfig parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<NodeNetworkConfig> 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 NodeNetworkConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder