@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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceUid_);
    }
    if (totalSizeBytes_ != 0L) {
      output.writeInt64(5, totalSizeBytes_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(6, getExpireTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, engineVersion_);
    }
    for (int i = 0; i < backupFiles_.size(); i++) {
      output.writeMessage(8, backupFiles_.get(i));
    }
    if (nodeType_
        != com.google.cloud.memorystore.v1.Instance.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(9, nodeType_);
    }
    if (replicaCount_ != 0) {
      output.writeInt32(10, replicaCount_);
    }
    if (shardCount_ != 0) {
      output.writeInt32(11, shardCount_);
    }
    if (backupType_
        != com.google.cloud.memorystore.v1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(12, backupType_);
    }
    if (state_ != com.google.cloud.memorystore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(13, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, uid_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. System assigned unique identifier of the backup.
</pre>

<code>
string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
</code>

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