public com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet() {
      if (subnetBuilder_ == null) {
        return subnet_ == null
            ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance()
            : subnet_;
      } else {
        return subnetBuilder_.getMessage();
      }
    }
<pre>
The subnet in which to house the VPC Access Connector.
</pre>

<code>.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;</code>

@return The subnet.
java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java