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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < targetLanguageCodes_.size(); i++) {
        dataSize += computeStringSizeNoTag(targetLanguageCodes_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getTargetLanguageCodesList().size();
    }
    for (int i = 0; i < inputConfigs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig());
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetModels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> models__ =
          ModelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__);
    }
    for (java.util.Map.Entry<
            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
        entry : internalGetGlossaries().getMap().entrySet()) {
      com.google.protobuf.MapEntry<
              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
          glossaries__ =
              GlossariesDefaultEntryHolder.defaultEntry
                  .newBuilderForType()
                  .setKey(entry.getKey())
                  .setValue(entry.getValue())
                  .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetFormatConversions().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> formatConversions__ =
          FormatConversionsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_);
    }
    if (enableShadowRemovalNativePdf_ != false) {
      size +=
          com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableShadowRemovalNativePdf_);
    }
    if (enableRotationCorrection_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableRotationCorrection_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Optional. If true, enable auto rotation correction in DVS.
</pre>

<code>bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The enableRotationCorrection.
java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java