public Builder setSpanKind(com.google.devtools.cloudtrace.v2.Span.SpanKind value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00002000;
      spanKind_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Optional. Distinguishes between spans generated in a particular context.
For example, two spans with the same name may be distinguished using
`CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
</pre>

<code>
.google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
</code>

@param value The spanKind to set.
@return This builder for chaining.
java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/Span.java