public Builder setType(
            com.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000001;
          type_ = value.getNumber();
          onChanged();
          return this;
        }
<pre>
Type of MessageEvent. Indicates whether the message was sent or
received.
</pre>

<code>.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;</code>

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