public Builder setDestinationPorts(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDestinationPortsIsMutable();
      destinationPorts_.set(index, value);
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
<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 to set the value at.
@param value The destinationPorts to set.
@return This builder for chaining.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java