int toByte(Span.Kind kind) {
      return kind != null ? kind.ordinal() + 1 : 0;
    }
Contributes to a builder as opposed to reading values directly. Avoids allocation.
zipkin/src/main/java/zipkin2/internal/Proto3ZipkinFields.java