Class NetworkConfig

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

    public final class NetworkConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements NetworkConfigOrBuilder
     NetworkConfig reports the relative names of network & subnetwork.
     
    Protobuf type google.container.v1beta1.NetworkConfig
    See Also:
    Serialized Form
    • Field Detail

      • SUBNETWORK_FIELD_NUMBER

        public static final int SUBNETWORK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER

        public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEFAULT_SNAT_STATUS_FIELD_NUMBER

        public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER

        public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATAPATH_PROVIDER_FIELD_NUMBER

        public static final int DATAPATH_PROVIDER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER

        public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DNS_CONFIG_FIELD_NUMBER

        public static final int DNS_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER

        public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GATEWAY_API_CONFIG_FIELD_NUMBER

        public static final int GATEWAY_API_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLE_MULTI_NETWORKING_FIELD_NUMBER

        public static final int ENABLE_MULTI_NETWORKING_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
      • ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER

        public static final int ENABLE_FQDN_NETWORK_POLICY_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
      • getNetwork

        public String getNetwork()
         Output only. The relative name of the Google Compute Engine
         [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
         to which the cluster is connected. Example:
         projects/my-project/global/networks/my-network
         
        string network = 1;
        Specified by:
        getNetwork in interface NetworkConfigOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Output only. The relative name of the Google Compute Engine
         [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
         to which the cluster is connected. Example:
         projects/my-project/global/networks/my-network
         
        string network = 1;
        Specified by:
        getNetworkBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for network.
      • getSubnetwork

        public String getSubnetwork()
         Output only. The relative name of the Google Compute Engine
         [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
         cluster is connected. Example:
         projects/my-project/regions/us-central1/subnetworks/my-subnet
         
        string subnetwork = 2;
        Specified by:
        getSubnetwork in interface NetworkConfigOrBuilder
        Returns:
        The subnetwork.
      • getSubnetworkBytes

        public com.google.protobuf.ByteString getSubnetworkBytes()
         Output only. The relative name of the Google Compute Engine
         [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
         cluster is connected. Example:
         projects/my-project/regions/us-central1/subnetworks/my-subnet
         
        string subnetwork = 2;
        Specified by:
        getSubnetworkBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for subnetwork.
      • getEnableIntraNodeVisibility

        public boolean getEnableIntraNodeVisibility()
         Whether Intra-node visibility is enabled for this cluster.
         This makes same node pod to pod traffic visible for VPC network.
         
        bool enable_intra_node_visibility = 5;
        Specified by:
        getEnableIntraNodeVisibility in interface NetworkConfigOrBuilder
        Returns:
        The enableIntraNodeVisibility.
      • hasDefaultSnatStatus

        public boolean hasDefaultSnatStatus()
         Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
         will be disabled when default_snat_status is disabled. When disabled is set
         to false, default IP masquerade rules will be applied to the nodes to
         prevent sNAT on cluster internal traffic.
         
        .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7;
        Specified by:
        hasDefaultSnatStatus in interface NetworkConfigOrBuilder
        Returns:
        Whether the defaultSnatStatus field is set.
      • getDefaultSnatStatus

        public DefaultSnatStatus getDefaultSnatStatus()
         Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
         will be disabled when default_snat_status is disabled. When disabled is set
         to false, default IP masquerade rules will be applied to the nodes to
         prevent sNAT on cluster internal traffic.
         
        .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7;
        Specified by:
        getDefaultSnatStatus in interface NetworkConfigOrBuilder
        Returns:
        The defaultSnatStatus.
      • getDefaultSnatStatusOrBuilder

        public DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder()
         Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
         will be disabled when default_snat_status is disabled. When disabled is set
         to false, default IP masquerade rules will be applied to the nodes to
         prevent sNAT on cluster internal traffic.
         
        .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7;
        Specified by:
        getDefaultSnatStatusOrBuilder in interface NetworkConfigOrBuilder
      • getEnableL4IlbSubsetting

        public boolean getEnableL4IlbSubsetting()
         Whether L4ILB Subsetting is enabled for this cluster.
         
        bool enable_l4ilb_subsetting = 10;
        Specified by:
        getEnableL4IlbSubsetting in interface NetworkConfigOrBuilder
        Returns:
        The enableL4ilbSubsetting.
      • getDatapathProviderValue

        public int getDatapathProviderValue()
         The desired datapath provider for this cluster. By default, uses the
         IPTables-based kube-proxy implementation.
         
        .google.container.v1beta1.DatapathProvider datapath_provider = 11;
        Specified by:
        getDatapathProviderValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for datapathProvider.
      • getDatapathProvider

        public DatapathProvider getDatapathProvider()
         The desired datapath provider for this cluster. By default, uses the
         IPTables-based kube-proxy implementation.
         
        .google.container.v1beta1.DatapathProvider datapath_provider = 11;
        Specified by:
        getDatapathProvider in interface NetworkConfigOrBuilder
        Returns:
        The datapathProvider.
      • getPrivateIpv6GoogleAccessValue

        public int getPrivateIpv6GoogleAccessValue()
         The desired state of IPv6 connectivity to Google Services.
         By default, no private IPv6 access to or from Google Services (all access
         will be via IPv4)
         
        .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;
        Specified by:
        getPrivateIpv6GoogleAccessValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for privateIpv6GoogleAccess.
      • getPrivateIpv6GoogleAccess

        public PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess()
         The desired state of IPv6 connectivity to Google Services.
         By default, no private IPv6 access to or from Google Services (all access
         will be via IPv4)
         
        .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;
        Specified by:
        getPrivateIpv6GoogleAccess in interface NetworkConfigOrBuilder
        Returns:
        The privateIpv6GoogleAccess.
      • hasDnsConfig

        public boolean hasDnsConfig()
         DNSConfig contains clusterDNS config for this cluster.
         
        .google.container.v1beta1.DNSConfig dns_config = 13;
        Specified by:
        hasDnsConfig in interface NetworkConfigOrBuilder
        Returns:
        Whether the dnsConfig field is set.
      • getDnsConfig

        public DNSConfig getDnsConfig()
         DNSConfig contains clusterDNS config for this cluster.
         
        .google.container.v1beta1.DNSConfig dns_config = 13;
        Specified by:
        getDnsConfig in interface NetworkConfigOrBuilder
        Returns:
        The dnsConfig.
      • hasServiceExternalIpsConfig

        public boolean hasServiceExternalIpsConfig()
         ServiceExternalIPsConfig specifies if services with externalIPs field are
         blocked or not.
         
        .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15;
        Specified by:
        hasServiceExternalIpsConfig in interface NetworkConfigOrBuilder
        Returns:
        Whether the serviceExternalIpsConfig field is set.
      • getServiceExternalIpsConfig

        public ServiceExternalIPsConfig getServiceExternalIpsConfig()
         ServiceExternalIPsConfig specifies if services with externalIPs field are
         blocked or not.
         
        .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15;
        Specified by:
        getServiceExternalIpsConfig in interface NetworkConfigOrBuilder
        Returns:
        The serviceExternalIpsConfig.
      • hasGatewayApiConfig

        public boolean hasGatewayApiConfig()
         GatewayAPIConfig contains the desired config of Gateway API on this
         cluster.
         
        .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16;
        Specified by:
        hasGatewayApiConfig in interface NetworkConfigOrBuilder
        Returns:
        Whether the gatewayApiConfig field is set.
      • getGatewayApiConfig

        public GatewayAPIConfig getGatewayApiConfig()
         GatewayAPIConfig contains the desired config of Gateway API on this
         cluster.
         
        .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16;
        Specified by:
        getGatewayApiConfig in interface NetworkConfigOrBuilder
        Returns:
        The gatewayApiConfig.
      • getEnableMultiNetworking

        public boolean getEnableMultiNetworking()
         Whether multi-networking is enabled for this cluster.
         
        bool enable_multi_networking = 17;
        Specified by:
        getEnableMultiNetworking in interface NetworkConfigOrBuilder
        Returns:
        The enableMultiNetworking.
      • hasNetworkPerformanceConfig

        public boolean hasNetworkPerformanceConfig()
         Network bandwidth tier configuration.
         
        .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18;
        Specified by:
        hasNetworkPerformanceConfig in interface NetworkConfigOrBuilder
        Returns:
        Whether the networkPerformanceConfig field is set.
      • hasEnableFqdnNetworkPolicy

        public boolean hasEnableFqdnNetworkPolicy()
         Whether FQDN Network Policy is enabled on this cluster.
         
        optional bool enable_fqdn_network_policy = 19;
        Specified by:
        hasEnableFqdnNetworkPolicy in interface NetworkConfigOrBuilder
        Returns:
        Whether the enableFqdnNetworkPolicy field is set.
      • getEnableFqdnNetworkPolicy

        public boolean getEnableFqdnNetworkPolicy()
         Whether FQDN Network Policy is enabled on this cluster.
         
        optional bool enable_fqdn_network_policy = 19;
        Specified by:
        getEnableFqdnNetworkPolicy in interface NetworkConfigOrBuilder
        Returns:
        The enableFqdnNetworkPolicy.
      • 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 NetworkConfig parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static NetworkConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<NetworkConfig> parser()
      • getParserForType

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