public java.lang.String getDestinationPorts(int index) {
    return destinationPorts_.get(index);
  }
<pre>
A list of destination ports to which the external access rule applies. This
field is only applicable for the UDP or TCP protocol.
Each entry must be either an integer or a range. For example: `["22"]`,
`["80","443"]`, or `["12345-12349"]`. To match all destination ports,
specify `["0-65535"]`.
</pre>

<code>repeated string destination_ports = 12;</code>

@param index The index of the element to return.
@return The destinationPorts at the given index.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java