@java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + AUTOMATED_BACKUP_MODE_FIELD_NUMBER;
    hash = (53 * hash) + automatedBackupMode_;
    if (hasRetention()) {
      hash = (37 * hash) + RETENTION_FIELD_NUMBER;
      hash = (53 * hash) + getRetention().hashCode();
    }
    switch (scheduleCase_) {
      case 2:
        hash = (37 * hash) + FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER;
        hash = (53 * hash) + getFixedFrequencySchedule().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }
<pre>
Optional. How long to keep automated backups before the backups are
deleted. The value should be between 1 day and 365 days. If not specified,
the default value is 35 days.
</pre>

<code>.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AutomatedBackupConfig.java