public com.google.devtools.cloudtrace.v2.SpanOrBuilder getSpansOrBuilder(int index) {
    return spans_.get(index);
  }
public com . google . devtools . cloudtrace . v2 . SpanOrBuilder getSpansOrBuilder ( int index ) { return spans_ . get ( index ) ; }
<pre>
A list of new spans. The span names must not match existing
spans, or the results are undefined.
</pre>

<code>repeated .google.devtools.cloudtrace.v2.Span spans = 2;</code>