@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destRange_);
    }
    if (type_ != com.google.cloud.vmwareengine.v1.PeeringRoute.Type.TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHopRegion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextHopRegion_);
    }
    if (priority_ != 0L) {
      output.writeInt64(4, priority_);
    }
    if (imported_ != false) {
      output.writeBool(5, imported_);
    }
    if (direction_
        != com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.DIRECTION_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, direction_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. Direction of the routes exchanged with the peer network, from
the VMware Engine network perspective:

* Routes of direction `INCOMING` are imported from the peer network.
* Routes of direction `OUTGOING` are exported from the intranet VPC network
of the VMware Engine network.
</pre>

<code>
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The direction.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRoute.java