public static ConnectionCase forNumber(int value) {
        switch (value) {
          case 1:
            return PSC_AUTO_CONNECTION;
          case 2:
            return PSC_CONNECTION;
          case 0:
            return CONNECTION_NOT_SET;
          default:
            return null;
        }
      }
@param value The number of the enum to look for.
@return The enum associated with the given number.
@deprecated Use {@link #forNumber(int)} instead.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java