@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 (serverCaCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2,
              (com.google.cloud.memorystore.v1.CertificateAuthority.ManagedCertificateAuthority)
                  serverCa_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Identifier. Unique name of the certificate authority.
Format:
projects/{project}/locations/{location}/instances/{instance}
</pre>

<code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>

@return The bytes for name.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CertificateAuthority.java