public static Type forNumber(int value) {
          switch (value) {
            case 0:
              return TYPE_UNSPECIFIED;
            case 1:
              return SENT;
            case 2:
              return RECEIVED;
            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