@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 (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
    }
    if (priority_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_);
    }
    if (action_
        != com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.ACTION_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, action_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ipProtocol_);
    }
    for (int i = 0; i < sourceIpRanges_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, sourceIpRanges_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < sourcePorts_.size(); i++) {
        dataSize += computeStringSizeNoTag(sourcePorts_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getSourcePortsList().size();
    }
    for (int i = 0; i < destinationIpRanges_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(11, destinationIpRanges_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < destinationPorts_.size(); i++) {
        dataSize += computeStringSizeNoTag(destinationPorts_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getDestinationPortsList().size();
    }
    if (state_
        != com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, uid_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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