Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class NetworkConfig.
The configuration of a Virtual Private Cloud (VPC) network that can access
the Kafka cluster.
Generated from protobuf message google.cloud.managedkafka.v1.NetworkConfig
Namespace
Google \ Cloud \ ManagedKafka \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ subnet
string
Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.
getSubnet
Required. Name of the VPC subnet in which to create Private Service Connect
(PSC) endpoints for the Kafka brokers and bootstrap address. Structured
like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
The subnet must be located in the same region as the Kafka cluster. The
project may differ. Multiple subnets from the same parent network must not
be specified.
Returns
Type
Description
string
setSubnet
Required. Name of the VPC subnet in which to create Private Service Connect
(PSC) endpoints for the Kafka brokers and bootstrap address. Structured
like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
The subnet must be located in the same region as the Kafka cluster. The
project may differ. Multiple subnets from the same parent network must not
be specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Managed Kafka V1 Client - Class NetworkConfig (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-managedkafka/latest/V1.NetworkConfig)\n- [0.6.0](/php/docs/reference/cloud-managedkafka/0.6.0/V1.NetworkConfig)\n- [0.5.0](/php/docs/reference/cloud-managedkafka/0.5.0/V1.NetworkConfig)\n- [0.4.1](/php/docs/reference/cloud-managedkafka/0.4.1/V1.NetworkConfig)\n- [0.3.1](/php/docs/reference/cloud-managedkafka/0.3.1/V1.NetworkConfig)\n- [0.2.3](/php/docs/reference/cloud-managedkafka/0.2.3/V1.NetworkConfig)\n- [0.1.3](/php/docs/reference/cloud-managedkafka/0.1.3/V1.NetworkConfig) \nReference documentation and code samples for the Google Cloud Managed Kafka V1 Client class NetworkConfig.\n\nThe configuration of a Virtual Private Cloud (VPC) network that can access\nthe Kafka cluster.\n\nGenerated from protobuf message `google.cloud.managedkafka.v1.NetworkConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSubnet\n\nRequired. Name of the VPC subnet in which to create Private Service Connect\n(PSC) endpoints for the Kafka brokers and bootstrap address. Structured\nlike: projects/{project}/regions/{region}/subnetworks/{subnet_id}\nThe subnet must be located in the same region as the Kafka cluster. The\nproject may differ. Multiple subnets from the same parent network must not\nbe specified.\n\n### setSubnet\n\nRequired. Name of the VPC subnet in which to create Private Service Connect\n(PSC) endpoints for the Kafka brokers and bootstrap address. Structured\nlike: projects/{project}/regions/{region}/subnetworks/{subnet_id}\nThe subnet must be located in the same region as the Kafka cluster. The\nproject may differ. Multiple subnets from the same parent network must not\nbe specified."]]