public com.google.devtools.cloudtrace.v1.TraceSpanOrBuilder getSpansOrBuilder(int index) {
      if (spansBuilder_ == null) {
        return spans_.get(index);
      } else {
        return spansBuilder_.getMessageOrBuilder(index);
      }
    }
<pre>
Collection of spans in the trace.
</pre>

<code>repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;</code>
java-trace/proto-google-cloud-trace-v1/src/main/java/com/google/devtools/cloudtrace/v1/Trace.java