public static SnapshotPeriod forNumber(int value) {
        switch (value) {
          case 0:
            return SNAPSHOT_PERIOD_UNSPECIFIED;
          case 1:
            return ONE_HOUR;
          case 2:
            return SIX_HOURS;
          case 3:
            return TWELVE_HOURS;
          case 4:
            return TWENTY_FOUR_HOURS;
          default:
            return null;
        }
      }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PersistenceConfig.java