@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ipCidrRange_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gatewayIp_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gatewayIp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, type_);
    }
    if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_);
    }
    if (vlanId_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, vlanId_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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