private void buildPartialRepeatedFields(
        com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest result) {
      if (spansBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          spans_ = java.util.Collections.unmodifiableList(spans_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.spans_ = spans_;
      } else {
        result.spans_ = spansBuilder_.build();
      }
    }
<pre>
The request message for the `BatchWriteSpans` method.
</pre>

Protobuf type {@code google.devtools.cloudtrace.v2.BatchWriteSpansRequest}
java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/BatchWriteSpansRequest.java