@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
    }
    if (truncatedByteCount_ != 0) {
      output.writeInt32(2, truncatedByteCount_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
The number of bytes removed from the original string. If this
value is 0, then the string was not shortened.
</pre>

<code>int32 truncated_byte_count = 2;</code>

@return The truncatedByteCount.
java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/TruncatableString.java