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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(romanizedText_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, romanizedText_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detectedLanguageCode_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
The ISO-639 language code of source text in the initial request, detected
automatically, if no source language was passed within the initial
request. If the source language was passed, auto-detection of the language
does not occur and this field is empty.
</pre>

<code>string detected_language_code = 2;</code>

@return The bytes for detectedLanguageCode.
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Romanization.java