public sealed class ConnectNetworkConfig : IMessage<ConnectNetworkConfig>, IEquatable<ConnectNetworkConfig>, IDeepCloneable<ConnectNetworkConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Managed Service for Apache Kafka API v1 API class ConnectNetworkConfig.
The configuration of a Virtual Private Cloud (VPC) network that can access
the Kafka Connect cluster.
public RepeatedField<string> AdditionalSubnets { get; }
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.
public RepeatedField<string> DnsDomainNames { get; }
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).
[[["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-07 UTC."],[],[],null,["# Managed Service for Apache Kafka API v1 API - Class ConnectNetworkConfig (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ConnectNetworkConfig)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/1.0.0-beta06/Google.Cloud.ManagedKafka.V1.ConnectNetworkConfig) \n\n public sealed class ConnectNetworkConfig : IMessage\u003cConnectNetworkConfig\u003e, IEquatable\u003cConnectNetworkConfig\u003e, IDeepCloneable\u003cConnectNetworkConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Managed Service for Apache Kafka API v1 API class ConnectNetworkConfig.\n\nThe configuration of a Virtual Private Cloud (VPC) network that can access\nthe Kafka Connect cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConnectNetworkConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ConnectNetworkConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ConnectNetworkConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ConnectNetworkConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ConnectNetworkConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ConnectNetworkConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ConnectNetworkConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ManagedKafka.V1](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedKafka.V1.dll\n\nConstructors\n------------\n\n### ConnectNetworkConfig()\n\n public ConnectNetworkConfig()\n\n### ConnectNetworkConfig(ConnectNetworkConfig)\n\n public ConnectNetworkConfig(ConnectNetworkConfig other)\n\nProperties\n----------\n\n### AdditionalSubnets\n\n public RepeatedField\u003cstring\u003e AdditionalSubnets { get; }\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### DnsDomainNames\n\n public RepeatedField\u003cstring\u003e DnsDomainNames { get; }\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### PrimarySubnet\n\n public string PrimarySubnet { get; set; }\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)."]]