@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
    }
    if (truncatedByteCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, truncatedByteCount_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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