public static ValueCase forNumber(int value) {
        switch (value) {
          case 2:
            return ANNOTATION;
          case 3:
            return MESSAGE_EVENT;
          case 0:
            return VALUE_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-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/Span.java