@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ipCidrRange_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gatewayIp_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gatewayIp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, type_);
    }
    if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(13, state_);
    }
    if (vlanId_ != 0) {
      output.writeInt32(16, vlanId_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. VLAN ID of the VLAN on which the subnet is configured
</pre>

<code>int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The vlanId.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java