Optional. Additional subnets may be specified. They may be in another
region, but must be in the same VPC network. The Connect workers can
communicate with network endpoints in either the primary or additional
subnets.
Optional. Additional subnets may be specified. They may be in another
region, but must be in the same VPC network. The Connect workers can
communicate with network endpoints in either the primary or additional
subnets.
The bytes of the additionalSubnets at the given index.
getAdditionalSubnetsCount()
publicabstractintgetAdditionalSubnetsCount()
Optional. Additional subnets may be specified. They may be in another
region, but must be in the same VPC network. The Connect workers can
communicate with network endpoints in either the primary or additional
subnets.
Optional. Additional subnets may be specified. They may be in another
region, but must be in the same VPC network. The Connect workers can
communicate with network endpoints in either the primary or additional
subnets.
Optional. Additional DNS domain names from the subnet's network to be made
visible to the Connect Cluster. When using MirrorMaker2, it's necessary to
add the bootstrap address's dns domain name of the target cluster to make
it visible to the connector. For example:
my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
Optional. Additional DNS domain names from the subnet's network to be made
visible to the Connect Cluster. When using MirrorMaker2, it's necessary to
add the bootstrap address's dns domain name of the target cluster to make
it visible to the connector. For example:
my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
The bytes of the dnsDomainNames at the given index.
getDnsDomainNamesCount()
publicabstractintgetDnsDomainNamesCount()
Optional. Additional DNS domain names from the subnet's network to be made
visible to the Connect Cluster. When using MirrorMaker2, it's necessary to
add the bootstrap address's dns domain name of the target cluster to make
it visible to the connector. For example:
my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
Optional. Additional DNS domain names from the subnet's network to be made
visible to the Connect Cluster. When using MirrorMaker2, it's necessary to
add the bootstrap address's dns domain name of the target cluster to make
it visible to the connector. For example:
my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
Required. VPC subnet to make available to the Kafka Connect cluster.
Structured like:
projects/{project}/regions/{region}/subnetworks/{subnet_id}
It is used to create a Private Service Connect (PSC) interface for the
Kafka Connect workers. It must be located in the same region as the
Kafka Connect cluster.
The CIDR range of the subnet must be within the IPv4 address ranges for
private networks, as specified in RFC 1918. The primary subnet CIDR range
must have a minimum size of /22 (1024 addresses).
Required. VPC subnet to make available to the Kafka Connect cluster.
Structured like:
projects/{project}/regions/{region}/subnetworks/{subnet_id}
It is used to create a Private Service Connect (PSC) interface for the
Kafka Connect workers. It must be located in the same region as the
Kafka Connect cluster.
The CIDR range of the subnet must be within the IPv4 address ranges for
private networks, as specified in RFC 1918. The primary subnet CIDR range
must have a minimum size of /22 (1024 addresses).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface ConnectNetworkConfigOrBuilder (0.28.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.28.0 (latest)](/java/docs/reference/google-cloud-managedkafka/latest/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-managedkafka/0.26.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-managedkafka/0.24.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-managedkafka/0.23.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-managedkafka/0.20.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-managedkafka/0.19.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-managedkafka/0.18.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.16.1](/java/docs/reference/google-cloud-managedkafka/0.16.1/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-managedkafka/0.15.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-managedkafka/0.14.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-managedkafka/0.13.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-managedkafka/0.12.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-managedkafka/0.11.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-managedkafka/0.10.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-managedkafka/0.9.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-managedkafka/0.8.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-managedkafka/0.7.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-managedkafka/0.5.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-managedkafka/0.4.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-managedkafka/0.3.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-managedkafka/0.2.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-managedkafka/0.1.0/com.google.cloud.managedkafka.v1.ConnectNetworkConfigOrBuilder) \n\n public interface ConnectNetworkConfigOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAdditionalSubnets(int index)\n\n public abstract String getAdditionalSubnets(int index)\n\nOptional. Additional subnets may be specified. They may be in another\nregion, but must be in the same VPC network. The Connect workers can\ncommunicate with network endpoints in either the primary or additional\nsubnets.\n\n`repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getAdditionalSubnetsBytes(int index)\n\n public abstract ByteString getAdditionalSubnetsBytes(int index)\n\nOptional. Additional subnets may be specified. They may be in another\nregion, but must be in the same VPC network. The Connect workers can\ncommunicate with network endpoints in either the primary or additional\nsubnets.\n\n`repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getAdditionalSubnetsCount()\n\n public abstract int getAdditionalSubnetsCount()\n\nOptional. Additional subnets may be specified. They may be in another\nregion, but must be in the same VPC network. The Connect workers can\ncommunicate with network endpoints in either the primary or additional\nsubnets.\n\n`repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getAdditionalSubnetsList()\n\n public abstract List\u003cString\u003e getAdditionalSubnetsList()\n\nOptional. Additional subnets may be specified. They may be in another\nregion, but must be in the same VPC network. The Connect workers can\ncommunicate with network endpoints in either the primary or additional\nsubnets.\n\n`repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDnsDomainNames(int index)\n\n public abstract String getDnsDomainNames(int index)\n\nOptional. Additional DNS domain names from the subnet's network to be made\nvisible to the Connect Cluster. When using MirrorMaker2, it's necessary to\nadd the bootstrap address's dns domain name of the target cluster to make\nit visible to the connector. For example:\nmy-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog\n\n`repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDnsDomainNamesBytes(int index)\n\n public abstract ByteString getDnsDomainNamesBytes(int index)\n\nOptional. Additional DNS domain names from the subnet's network to be made\nvisible to the Connect Cluster. When using MirrorMaker2, it's necessary to\nadd the bootstrap address's dns domain name of the target cluster to make\nit visible to the connector. For example:\nmy-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog\n\n`repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDnsDomainNamesCount()\n\n public abstract int getDnsDomainNamesCount()\n\nOptional. Additional DNS domain names from the subnet's network to be made\nvisible to the Connect Cluster. When using MirrorMaker2, it's necessary to\nadd the bootstrap address's dns domain name of the target cluster to make\nit visible to the connector. For example:\nmy-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog\n\n`repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDnsDomainNamesList()\n\n public abstract List\u003cString\u003e getDnsDomainNamesList()\n\nOptional. Additional DNS domain names from the subnet's network to be made\nvisible to the Connect Cluster. When using MirrorMaker2, it's necessary to\nadd the bootstrap address's dns domain name of the target cluster to make\nit visible to the connector. For example:\nmy-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog\n\n`repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getPrimarySubnet()\n\n public abstract String getPrimarySubnet()\n\nRequired. VPC subnet to make available to the Kafka Connect cluster.\nStructured like:\nprojects/{project}/regions/{region}/subnetworks/{subnet_id}\n\nIt is used to create a Private Service Connect (PSC) interface for the\nKafka Connect workers. It must be located in the same region as the\nKafka Connect cluster.\n\nThe CIDR range of the subnet must be within the IPv4 address ranges for\nprivate networks, as specified in RFC 1918. The primary subnet CIDR range\nmust have a minimum size of /22 (1024 addresses).\n\n`string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];`\n\n### getPrimarySubnetBytes()\n\n public abstract ByteString getPrimarySubnetBytes()\n\nRequired. VPC subnet to make available to the Kafka Connect cluster.\nStructured like:\nprojects/{project}/regions/{region}/subnetworks/{subnet_id}\n\nIt is used to create a Private Service Connect (PSC) interface for the\nKafka Connect workers. It must be located in the same region as the\nKafka Connect cluster.\n\nThe CIDR range of the subnet must be within the IPv4 address ranges for\nprivate networks, as specified in RFC 1918. The primary subnet CIDR range\nmust have a minimum size of /22 (1024 addresses).\n\n`string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];`"]]