Class NetworkConfig (2.4.1)

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

DEFAULT_SNAT_STATUS_FIELD_NUMBER

public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

DNS_CONFIG_FIELD_NUMBER

public static final int DNS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER

public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER

public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER

public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER

public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkConfig getDefaultInstance()
Returns
TypeDescription
NetworkConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NetworkConfig.Builder newBuilder()
Returns
TypeDescription
NetworkConfig.Builder

newBuilder(NetworkConfig prototype)

public static NetworkConfig.Builder newBuilder(NetworkConfig prototype)
Parameter
NameDescription
prototypeNetworkConfig
Returns
TypeDescription
NetworkConfig.Builder

parseDelimitedFrom(InputStream input)

public static NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkConfig> parser()
Returns
TypeDescription
Parser<NetworkConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

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

getDnsConfig()

public DNSConfig getDnsConfig()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
DNSConfig

The dnsConfig.

getDnsConfigOrBuilder()

public DNSConfigOrBuilder getDnsConfigOrBuilder()

DNSConfig contains clusterDNS config for this cluster.

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

Returns
TypeDescription
DNSConfigOrBuilder

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.

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.

getParserForType()

public Parser<NetworkConfig> getParserForType()
Returns
TypeDescription
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
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkConfig.Builder newBuilderForType()
Returns
TypeDescription
NetworkConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkConfig.Builder toBuilder()
Returns
TypeDescription
NetworkConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException