public int getContentsCount() {
      return contents_.size();
    }
<pre>
Required. The content of the input in string format.
</pre>

<code>repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED];</code>

@return The count of contents.
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/RomanizeTextRequest.java