Class NetworkConfig.Builder (2.57.0)

public static final class NetworkConfig.Builder extends GeneratedMessageV3.Builder<NetworkConfig.Builder> implements NetworkConfigOrBuilder

NetworkConfig reports the relative names of network & subnetwork.

Protobuf type google.container.v1.NetworkConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

build()

public NetworkConfig build()
Returns
Type Description
NetworkConfig

buildPartial()

public NetworkConfig buildPartial()
Returns
Type Description
NetworkConfig

clear()

public NetworkConfig.Builder clear()
Returns
Type Description
NetworkConfig.Builder
Overrides

clearDatapathProvider()

public NetworkConfig.Builder clearDatapathProvider()

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
NetworkConfig.Builder

This builder for chaining.

clearDefaultEnablePrivateNodes()

public NetworkConfig.Builder clearDefaultEnablePrivateNodes()

Controls whether by default nodes have private IP addresses only. It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes

optional bool default_enable_private_nodes = 22;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearDefaultSnatStatus()

public NetworkConfig.Builder clearDefaultSnatStatus()

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
NetworkConfig.Builder

clearDnsConfig()

public NetworkConfig.Builder clearDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
Type Description
NetworkConfig.Builder

clearEnableCiliumClusterwideNetworkPolicy()

public NetworkConfig.Builder clearEnableCiliumClusterwideNetworkPolicy()

Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

optional bool enable_cilium_clusterwide_network_policy = 21;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearEnableFqdnNetworkPolicy()

public NetworkConfig.Builder clearEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearEnableIntraNodeVisibility()

public NetworkConfig.Builder clearEnableIntraNodeVisibility()

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
NetworkConfig.Builder

This builder for chaining.

clearEnableL4IlbSubsetting()

public NetworkConfig.Builder clearEnableL4IlbSubsetting()

Whether L4ILB Subsetting is enabled for this cluster.

bool enable_l4ilb_subsetting = 10;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearEnableMultiNetworking()

public NetworkConfig.Builder clearEnableMultiNetworking()

Whether multi-networking is enabled for this cluster.

bool enable_multi_networking = 17;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkConfig.Builder
Overrides

clearGatewayApiConfig()

public NetworkConfig.Builder clearGatewayApiConfig()

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

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

Returns
Type Description
NetworkConfig.Builder

clearInTransitEncryptionConfig()

public NetworkConfig.Builder clearInTransitEncryptionConfig()

Specify the details of in-transit encryption. Now named inter-node transparent encryption.

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

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearNetwork()

public NetworkConfig.Builder clearNetwork()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearNetworkPerformanceConfig()

public NetworkConfig.Builder clearNetworkPerformanceConfig()

Network bandwidth tier configuration.

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

Returns
Type Description
NetworkConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkConfig.Builder
Overrides

clearPrivateIpv6GoogleAccess()

public NetworkConfig.Builder clearPrivateIpv6GoogleAccess()

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
NetworkConfig.Builder

This builder for chaining.

clearServiceExternalIpsConfig()

public NetworkConfig.Builder clearServiceExternalIpsConfig()

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

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

Returns
Type Description
NetworkConfig.Builder

clearSubnetwork()

public NetworkConfig.Builder clearSubnetwork()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clone()

public NetworkConfig.Builder clone()
Returns
Type Description
NetworkConfig.Builder
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.

getDefaultEnablePrivateNodes()

public boolean getDefaultEnablePrivateNodes()

Controls whether by default nodes have private IP addresses only. It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes

optional bool default_enable_private_nodes = 22;

Returns
Type Description
boolean

The defaultEnablePrivateNodes.

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.

getDefaultSnatStatusBuilder()

public DefaultSnatStatus.Builder getDefaultSnatStatusBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDnsConfig()

public DNSConfig getDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
Type Description
DNSConfig

The dnsConfig.

getDnsConfigBuilder()

public DNSConfig.Builder getDnsConfigBuilder()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
Type Description
DNSConfig.Builder

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.

getGatewayApiConfigBuilder()

public GatewayAPIConfig.Builder getGatewayApiConfigBuilder()

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

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

Returns
Type Description
GatewayAPIConfig.Builder

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. Now named inter-node transparent 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. Now named inter-node transparent 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.

getNetworkPerformanceConfigBuilder()

public NetworkConfig.ClusterNetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder()

Network bandwidth tier configuration.

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

Returns
Type Description
NetworkConfig.ClusterNetworkPerformanceConfig.Builder

getNetworkPerformanceConfigOrBuilder()

public NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()

Network bandwidth tier configuration.

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

Returns
Type Description
NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder

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.

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.

getServiceExternalIpsConfigBuilder()

public ServiceExternalIPsConfig.Builder getServiceExternalIpsConfigBuilder()

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

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

Returns
Type Description
ServiceExternalIPsConfig.Builder

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for subnetwork.

hasDefaultEnablePrivateNodes()

public boolean hasDefaultEnablePrivateNodes()

Controls whether by default nodes have private IP addresses only. It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes

optional bool default_enable_private_nodes = 22;

Returns
Type Description
boolean

Whether the defaultEnablePrivateNodes field is set.

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. Now named inter-node transparent 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultSnatStatus(DefaultSnatStatus value)

public NetworkConfig.Builder mergeDefaultSnatStatus(DefaultSnatStatus value)

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;

Parameter
Name Description
value DefaultSnatStatus
Returns
Type Description
NetworkConfig.Builder

mergeDnsConfig(DNSConfig value)

public NetworkConfig.Builder mergeDnsConfig(DNSConfig value)

DNSConfig contains clusterDNS config for this cluster.

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

Parameter
Name Description
value DNSConfig
Returns
Type Description
NetworkConfig.Builder

mergeFrom(NetworkConfig other)

public NetworkConfig.Builder mergeFrom(NetworkConfig other)
Parameter
Name Description
other NetworkConfig
Returns
Type Description
NetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkConfig.Builder
Overrides

mergeGatewayApiConfig(GatewayAPIConfig value)

public NetworkConfig.Builder mergeGatewayApiConfig(GatewayAPIConfig value)

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

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

Parameter
Name Description
value GatewayAPIConfig
Returns
Type Description
NetworkConfig.Builder

mergeNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig value)

public NetworkConfig.Builder mergeNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig value)

Network bandwidth tier configuration.

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

Parameter
Name Description
value NetworkConfig.ClusterNetworkPerformanceConfig
Returns
Type Description
NetworkConfig.Builder

mergeServiceExternalIpsConfig(ServiceExternalIPsConfig value)

public NetworkConfig.Builder mergeServiceExternalIpsConfig(ServiceExternalIPsConfig value)

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

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

Parameter
Name Description
value ServiceExternalIPsConfig
Returns
Type Description
NetworkConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Builder
Overrides

setDatapathProvider(DatapathProvider value)

public NetworkConfig.Builder setDatapathProvider(DatapathProvider value)

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

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

Parameter
Name Description
value DatapathProvider

The datapathProvider to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setDatapathProviderValue(int value)

public NetworkConfig.Builder setDatapathProviderValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for datapathProvider to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setDefaultEnablePrivateNodes(boolean value)

public NetworkConfig.Builder setDefaultEnablePrivateNodes(boolean value)

Controls whether by default nodes have private IP addresses only. It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes

optional bool default_enable_private_nodes = 22;

Parameter
Name Description
value boolean

The defaultEnablePrivateNodes to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setDefaultSnatStatus(DefaultSnatStatus value)

public NetworkConfig.Builder setDefaultSnatStatus(DefaultSnatStatus value)

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;

Parameter
Name Description
value DefaultSnatStatus
Returns
Type Description
NetworkConfig.Builder

setDefaultSnatStatus(DefaultSnatStatus.Builder builderForValue)

public NetworkConfig.Builder setDefaultSnatStatus(DefaultSnatStatus.Builder builderForValue)

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;

Parameter
Name Description
builderForValue DefaultSnatStatus.Builder
Returns
Type Description
NetworkConfig.Builder

setDnsConfig(DNSConfig value)

public NetworkConfig.Builder setDnsConfig(DNSConfig value)

DNSConfig contains clusterDNS config for this cluster.

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

Parameter
Name Description
value DNSConfig
Returns
Type Description
NetworkConfig.Builder

setDnsConfig(DNSConfig.Builder builderForValue)

public NetworkConfig.Builder setDnsConfig(DNSConfig.Builder builderForValue)

DNSConfig contains clusterDNS config for this cluster.

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

Parameter
Name Description
builderForValue DNSConfig.Builder
Returns
Type Description
NetworkConfig.Builder

setEnableCiliumClusterwideNetworkPolicy(boolean value)

public NetworkConfig.Builder setEnableCiliumClusterwideNetworkPolicy(boolean value)

Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

optional bool enable_cilium_clusterwide_network_policy = 21;

Parameter
Name Description
value boolean

The enableCiliumClusterwideNetworkPolicy to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setEnableFqdnNetworkPolicy(boolean value)

public NetworkConfig.Builder setEnableFqdnNetworkPolicy(boolean value)

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Parameter
Name Description
value boolean

The enableFqdnNetworkPolicy to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setEnableIntraNodeVisibility(boolean value)

public NetworkConfig.Builder setEnableIntraNodeVisibility(boolean value)

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;

Parameter
Name Description
value boolean

The enableIntraNodeVisibility to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setEnableL4IlbSubsetting(boolean value)

public NetworkConfig.Builder setEnableL4IlbSubsetting(boolean value)

Whether L4ILB Subsetting is enabled for this cluster.

bool enable_l4ilb_subsetting = 10;

Parameter
Name Description
value boolean

The enableL4ilbSubsetting to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setEnableMultiNetworking(boolean value)

public NetworkConfig.Builder setEnableMultiNetworking(boolean value)

Whether multi-networking is enabled for this cluster.

bool enable_multi_networking = 17;

Parameter
Name Description
value boolean

The enableMultiNetworking to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

setGatewayApiConfig(GatewayAPIConfig value)

public NetworkConfig.Builder setGatewayApiConfig(GatewayAPIConfig value)

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

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

Parameter
Name Description
value GatewayAPIConfig
Returns
Type Description
NetworkConfig.Builder

setGatewayApiConfig(GatewayAPIConfig.Builder builderForValue)

public NetworkConfig.Builder setGatewayApiConfig(GatewayAPIConfig.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue GatewayAPIConfig.Builder
Returns
Type Description
NetworkConfig.Builder

setInTransitEncryptionConfig(InTransitEncryptionConfig value)

public NetworkConfig.Builder setInTransitEncryptionConfig(InTransitEncryptionConfig value)

Specify the details of in-transit encryption. Now named inter-node transparent encryption.

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

Parameter
Name Description
value InTransitEncryptionConfig

The inTransitEncryptionConfig to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setInTransitEncryptionConfigValue(int value)

public NetworkConfig.Builder setInTransitEncryptionConfigValue(int value)

Specify the details of in-transit encryption. Now named inter-node transparent encryption.

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

Parameter
Name Description
value int

The enum numeric value on the wire for inTransitEncryptionConfig to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetwork(String value)

public NetworkConfig.Builder setNetwork(String value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public NetworkConfig.Builder setNetworkBytes(ByteString value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig value)

public NetworkConfig.Builder setNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig value)

Network bandwidth tier configuration.

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

Parameter
Name Description
value NetworkConfig.ClusterNetworkPerformanceConfig
Returns
Type Description
NetworkConfig.Builder

setNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue)

public NetworkConfig.Builder setNetworkPerformanceConfig(NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue)

Network bandwidth tier configuration.

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

Parameter
Name Description
builderForValue NetworkConfig.ClusterNetworkPerformanceConfig.Builder
Returns
Type Description
NetworkConfig.Builder

setPrivateIpv6GoogleAccess(PrivateIPv6GoogleAccess value)

public NetworkConfig.Builder setPrivateIpv6GoogleAccess(PrivateIPv6GoogleAccess value)

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;

Parameter
Name Description
value PrivateIPv6GoogleAccess

The privateIpv6GoogleAccess to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setPrivateIpv6GoogleAccessValue(int value)

public NetworkConfig.Builder setPrivateIpv6GoogleAccessValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for privateIpv6GoogleAccess to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

setServiceExternalIpsConfig(ServiceExternalIPsConfig value)

public NetworkConfig.Builder setServiceExternalIpsConfig(ServiceExternalIPsConfig value)

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

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

Parameter
Name Description
value ServiceExternalIPsConfig
Returns
Type Description
NetworkConfig.Builder

setServiceExternalIpsConfig(ServiceExternalIPsConfig.Builder builderForValue)

public NetworkConfig.Builder setServiceExternalIpsConfig(ServiceExternalIPsConfig.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue ServiceExternalIPsConfig.Builder
Returns
Type Description
NetworkConfig.Builder

setSubnetwork(String value)

public NetworkConfig.Builder setSubnetwork(String value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public NetworkConfig.Builder setSubnetworkBytes(ByteString value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Builder
Overrides