public static Type forNumber(int value) {
        switch (value) {
          case 0:
            return TYPE_UNSPECIFIED;
          case 1:
            return CHILD_LINKED_SPAN;
          case 2:
            return PARENT_LINKED_SPAN;
          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-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/Span.java