Class NetworkConfig (2.45.0)

public final class NetworkConfig extends GeneratedMessageV3 implements NetworkConfigOrBuilder

NetworkConfig reports the relative names of network & subnetwork.

Protobuf type google.container.v1.NetworkConfig

Static Fields

DATAPATH_PROVIDER_FIELD_NUMBER

public static final int DATAPATH_PROVIDER_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_SNAT_STATUS_FIELD_NUMBER

public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER
Field Value
Type Description
int

DNS_CONFIG_FIELD_NUMBER

public static final int DNS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER

public static final int ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER

public static final int ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER

public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER

public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_MULTI_NETWORKING_FIELD_NUMBER

public static final int ENABLE_MULTI_NETWORKING_FIELD_NUMBER
Field Value
Type Description
int

GATEWAY_API_CONFIG_FIELD_NUMBER

public static final int GATEWAY_API_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER

public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER

public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER

public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkConfig getDefaultInstance()
Returns
Type Description
NetworkConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NetworkConfig.Builder newBuilder()
Returns
Type Description
NetworkConfig.Builder

newBuilder(NetworkConfig prototype)

public static NetworkConfig.Builder newBuilder(NetworkConfig prototype)
Parameter
Name Description
prototype NetworkConfig
Returns
Type Description
NetworkConfig.Builder

parseDelimitedFrom(InputStream input)

public static NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworkConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworkConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworkConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworkConfig> parser()
Returns
Type Description
Parser<NetworkConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDatapathProvider()

public DatapathProvider getDatapathProvider()

The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

.google.container.v1.DatapathProvider datapath_provider = 11;

Returns
Type Description
DatapathProvider

The datapathProvider.

getDatapathProviderValue()

public int getDatapathProviderValue()

The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

.google.container.v1.DatapathProvider datapath_provider = 11;

Returns
Type Description
int

The enum numeric value on the wire for datapathProvider.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
Type Description
NetworkConfig

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.v1.DefaultSnatStatus default_snat_status = 7;

Returns
Type Description
DefaultSnatStatus

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.v1.DefaultSnatStatus default_snat_status = 7;

Returns
Type Description
DefaultSnatStatusOrBuilder

getDnsConfig()

public DNSConfig getDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

.google.container.v1.DNSConfig dns_config = 13;

Returns
Type Description
DNSConfig

The dnsConfig.

getDnsConfigOrBuilder()

public DNSConfigOrBuilder getDnsConfigOrBuilder()

DNSConfig contains clusterDNS config for this cluster.

.google.container.v1.DNSConfig dns_config = 13;

Returns
Type Description
DNSConfigOrBuilder

getEnableCiliumClusterwideNetworkPolicy()

public boolean getEnableCiliumClusterwideNetworkPolicy()

Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

optional bool enable_cilium_clusterwide_network_policy = 21;

Returns
Type Description
boolean

The enableCiliumClusterwideNetworkPolicy.

getEnableFqdnNetworkPolicy()

public boolean getEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Returns
Type Description
boolean

The enableFqdnNetworkPolicy.

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;

Returns
Type Description
boolean

The enableIntraNodeVisibility.

getEnableL4IlbSubsetting()

public boolean getEnableL4IlbSubsetting()

Whether L4ILB Subsetting is enabled for this cluster.

bool enable_l4ilb_subsetting = 10;

Returns
Type Description
boolean

The enableL4ilbSubsetting.

getEnableMultiNetworking()

public boolean getEnableMultiNetworking()

Whether multi-networking is enabled for this cluster.

bool enable_multi_networking = 17;

Returns
Type Description
boolean

The enableMultiNetworking.

getGatewayApiConfig()

public GatewayAPIConfig getGatewayApiConfig()

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

.google.container.v1.GatewayAPIConfig gateway_api_config = 16;

Returns
Type Description
GatewayAPIConfig

The gatewayApiConfig.

getGatewayApiConfigOrBuilder()

public GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder()

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

.google.container.v1.GatewayAPIConfig gateway_api_config = 16;

Returns
Type Description
GatewayAPIConfigOrBuilder

getInTransitEncryptionConfig()

public InTransitEncryptionConfig getInTransitEncryptionConfig()

Specify the details of in-transit encryption.

optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20;

Returns
Type Description
InTransitEncryptionConfig

The inTransitEncryptionConfig.

getInTransitEncryptionConfigValue()

public int getInTransitEncryptionConfigValue()

Specify the details of in-transit encryption.

optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20;

Returns
Type Description
int

The enum numeric value on the wire for inTransitEncryptionConfig.

getNetwork()

public String getNetwork()

Output only. The relative name of the Google Compute Engine [network]google.container.v1.NetworkConfig.network to which the cluster is connected. Example: projects/my-project/global/networks/my-network

string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Output only. The relative name of the Google Compute Engine [network]google.container.v1.NetworkConfig.network to which the cluster is connected. Example: projects/my-project/global/networks/my-network

string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getNetworkPerformanceConfig()

public NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig()

Network bandwidth tier configuration.

.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18;

Returns
Type Description
NetworkConfig.ClusterNetworkPerformanceConfig

The networkPerformanceConfig.

getNetworkPerformanceConfigOrBuilder()

public NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()

Network bandwidth tier configuration.

.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18;

Returns
Type Description
NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder

getParserForType()

public Parser<NetworkConfig> getParserForType()
Returns
Type Description
Parser<NetworkConfig>
Overrides

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.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;

Returns
Type Description
PrivateIPv6GoogleAccess

The privateIpv6GoogleAccess.

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.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;

Returns
Type Description
int

The enum numeric value on the wire for privateIpv6GoogleAccess.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceExternalIpsConfig()

public ServiceExternalIPsConfig getServiceExternalIpsConfig()

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

.google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15;

Returns
Type Description
ServiceExternalIPsConfig

The serviceExternalIpsConfig.

getServiceExternalIpsConfigOrBuilder()

public ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder()

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

.google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15;

Returns
Type Description
ServiceExternalIPsConfigOrBuilder

getSubnetwork()

public String getSubnetwork()

Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 2;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 2;

Returns
Type Description
ByteString

The bytes for subnetwork.

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.v1.DefaultSnatStatus default_snat_status = 7;

Returns
Type Description
boolean

Whether the defaultSnatStatus field is set.

hasDnsConfig()

public boolean hasDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

.google.container.v1.DNSConfig dns_config = 13;

Returns
Type Description
boolean

Whether the dnsConfig field is set.

hasEnableCiliumClusterwideNetworkPolicy()

public boolean hasEnableCiliumClusterwideNetworkPolicy()

Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

optional bool enable_cilium_clusterwide_network_policy = 21;

Returns
Type Description
boolean

Whether the enableCiliumClusterwideNetworkPolicy field is set.

hasEnableFqdnNetworkPolicy()

public boolean hasEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Returns
Type Description
boolean

Whether the enableFqdnNetworkPolicy field is set.

hasGatewayApiConfig()

public boolean hasGatewayApiConfig()

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

.google.container.v1.GatewayAPIConfig gateway_api_config = 16;

Returns
Type Description
boolean

Whether the gatewayApiConfig field is set.

hasInTransitEncryptionConfig()

public boolean hasInTransitEncryptionConfig()

Specify the details of in-transit encryption.

optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20;

Returns
Type Description
boolean

Whether the inTransitEncryptionConfig field is set.

hasNetworkPerformanceConfig()

public boolean hasNetworkPerformanceConfig()

Network bandwidth tier configuration.

.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18;

Returns
Type Description
boolean

Whether the networkPerformanceConfig field is set.

hasServiceExternalIpsConfig()

public boolean hasServiceExternalIpsConfig()

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

.google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15;

Returns
Type Description
boolean

Whether the serviceExternalIpsConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworkConfig.Builder newBuilderForType()
Returns
Type Description
NetworkConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworkConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworkConfig.Builder toBuilder()
Returns
Type Description
NetworkConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException