# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::NetworkConfig (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::NetworkConfig.

The configuration of a Virtual Private Cloud (VPC) network that can access
the Kafka cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #subnet

    def subnet() -> ::String

**Returns**

- (::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.

### #subnet=

    def subnet=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.