Class NetworkConfig.Builder (2.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConfig.Builder
Overrides

build()

public NetworkConfig build()
Returns
TypeDescription
NetworkConfig

buildPartial()

public NetworkConfig buildPartial()
Returns
TypeDescription
NetworkConfig

clear()

public NetworkConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkConfig.Builder

clearDnsConfig()

public NetworkConfig.Builder clearDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
NetworkConfig.Builder

clearEnableFqdnNetworkPolicy()

public NetworkConfig.Builder clearEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
NetworkConfig.Builder

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;

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clone()

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

The enum numeric value on the wire for datapathProvider.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DefaultSnatStatusOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDnsConfig()

public DNSConfig getDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
DNSConfig

The dnsConfig.

getDnsConfigBuilder()

public DNSConfig.Builder getDnsConfigBuilder()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
DNSConfig.Builder

getDnsConfigOrBuilder()

public DNSConfigOrBuilder getDnsConfigOrBuilder()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
DNSConfigOrBuilder

getEnableFqdnNetworkPolicy()

public boolean getEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Returns
TypeDescription
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
TypeDescription
boolean

The enableIntraNodeVisibility.

getEnableL4IlbSubsetting()

public boolean getEnableL4IlbSubsetting()

Whether L4ILB Subsetting is enabled for this cluster.

bool enable_l4ilb_subsetting = 10;

Returns
TypeDescription
boolean

The enableL4ilbSubsetting.

getGatewayApiConfig()

public GatewayAPIConfig getGatewayApiConfig()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GatewayAPIConfigOrBuilder

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
TypeDescription
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
TypeDescription
ByteString

The bytes for network.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the dnsConfig field is set.

hasEnableFqdnNetworkPolicy()

public boolean hasEnableFqdnNetworkPolicy()

Whether FQDN Network Policy is enabled on this cluster.

optional bool enable_fqdn_network_policy = 19;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the gatewayApiConfig 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
TypeDescription
boolean

Whether the serviceExternalIpsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDefaultSnatStatus
Returns
TypeDescription
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
NameDescription
valueDNSConfig
Returns
TypeDescription
NetworkConfig.Builder

mergeFrom(NetworkConfig other)

public NetworkConfig.Builder mergeFrom(NetworkConfig other)
Parameter
NameDescription
otherNetworkConfig
Returns
TypeDescription
NetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGatewayAPIConfig
Returns
TypeDescription
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
NameDescription
valueServiceExternalIPsConfig
Returns
TypeDescription
NetworkConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDatapathProvider

The datapathProvider to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueDefaultSnatStatus
Returns
TypeDescription
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
NameDescription
builderForValueDefaultSnatStatus.Builder
Returns
TypeDescription
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
NameDescription
valueDNSConfig
Returns
TypeDescription
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
NameDescription
builderForValueDNSConfig.Builder
Returns
TypeDescription
NetworkConfig.Builder

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
NameDescription
valueboolean

The enableFqdnNetworkPolicy to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enableIntraNodeVisibility to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enableL4ilbSubsetting to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGatewayAPIConfig
Returns
TypeDescription
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
NameDescription
builderForValueGatewayAPIConfig.Builder
Returns
TypeDescription
NetworkConfig.Builder

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;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

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
NameDescription
valuePrivateIPv6GoogleAccess

The privateIpv6GoogleAccess to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueServiceExternalIPsConfig
Returns
TypeDescription
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
NameDescription
builderForValueServiceExternalIPsConfig.Builder
Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkConfig.Builder
Overrides