@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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
    }
    if (priority_ != 0) {
      output.writeInt32(6, priority_);
    }
    if (action_
        != com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.ACTION_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(7, action_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ipProtocol_);
    }
    for (int i = 0; i < sourceIpRanges_.size(); i++) {
      output.writeMessage(9, sourceIpRanges_.get(i));
    }
    for (int i = 0; i < sourcePorts_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sourcePorts_.getRaw(i));
    }
    for (int i = 0; i < destinationIpRanges_.size(); i++) {
      output.writeMessage(11, destinationIpRanges_.get(i));
    }
    for (int i = 0; i < destinationPorts_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, destinationPorts_.getRaw(i));
    }
    if (state_
        != com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(13, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, uid_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. System-generated unique identifier for the resource.
</pre>

<code>string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The bytes for uid.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java