public Builder setContents(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureContentsIsMutable();
      contents_.set(index, value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<pre>
Required. The content of the input in string format.
</pre>

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

@param index The index to set the value at.
@param value The contents to set.
@return This builder for chaining.
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/RomanizeTextRequest.java