diff --git a/java-translate/README.md b/java-translate/README.md
index f6808dc0d0b3..c73eb201a0d8 100644
--- a/java-translate/README.md
+++ b/java-translate/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
For global (non-regionalized) requests, use `location-id` `global`. For example, * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *
If not provided, the default Google model (NMT) will be used. + *
If not provided, the default Google model (NMT) will be used * @param mimeType Optional. The format of the source text, for example, "text/html", * "text/plain". If left blank, the MIME type defaults to "text/html". * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for @@ -417,7 +417,7 @@ public final TranslateTextResponse translateText( * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, *
For global (non-regionalized) requests, use `location-id` `global`. For example, * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *
If not provided, the default Google model (NMT) will be used. + *
If not provided, the default Google model (NMT) will be used
* @param mimeType Optional. The format of the source text, for example, "text/html",
* "text/plain". If left blank, the MIME type defaults to "text/html".
* @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for
@@ -880,6 +880,7 @@ public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesReque
* .setCustomizedAttribution("customizedAttribution557650238")
* .setIsTranslateNativePdfOnly(true)
* .setEnableShadowRemovalNativePdf(true)
+ * .setEnableRotationCorrection(true)
* .build();
* TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
* }
@@ -918,6 +919,7 @@ public final TranslateDocumentResponse translateDocument(TranslateDocumentReques
* .setCustomizedAttribution("customizedAttribution557650238")
* .setIsTranslateNativePdfOnly(true)
* .setEnableShadowRemovalNativePdf(true)
+ * .setEnableRotationCorrection(true)
* .build();
* ApiFuture
- * Translates a large volume of documents in asynchronous batch mode.
+ * Translates a large volume of document in asynchronous batch mode.
* This function provides real-time output as the inputs are being processed.
* If caller cancels a request, the partial results (for an input file, it's
* all or nothing) may still be available on the specified output location.
@@ -849,7 +849,7 @@ public void batchTranslateText(
*
*
*
*
*
- * Translates a large volume of documents in asynchronous batch mode.
+ * Translates a large volume of document in asynchronous batch mode.
* This function provides real-time output as the inputs are being processed.
* If caller cancels a request, the partial results (for an input file, it's
* all or nothing) may still be available on the specified output location.
@@ -1031,7 +1031,7 @@ public com.google.longrunning.Operation batchTranslateText(
*
*
*
*
*
- * Translates a large volume of documents in asynchronous batch mode.
+ * Translates a large volume of document in asynchronous batch mode.
* This function provides real-time output as the inputs are being processed.
* If caller cancels a request, the partial results (for an input file, it's
* all or nothing) may still be available on the specified output location.
@@ -1201,7 +1201,7 @@ protected TranslationServiceFutureStub build(
*
*
*
*
*
- * Translates a large volume of documents in asynchronous batch mode.
+ * Translates a large volume of document in asynchronous batch mode.
* This function provides real-time output as the inputs are being processed.
* If caller cancels a request, the partial results (for an input file, it's
* all or nothing) may still be available on the specified output location.
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java
index 7b5efed61524..d82fec9585c2 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java
@@ -928,6 +928,46 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
}
}
+ public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 11;
+ private boolean enableShadowRemovalNativePdf_ = false;
+ /**
+ *
+ *
+ *
*
*
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+
+ public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER = 12;
+ private boolean enableRotationCorrection_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -969,6 +1009,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_);
}
+ if (enableShadowRemovalNativePdf_ != false) {
+ output.writeBool(11, enableShadowRemovalNativePdf_);
+ }
+ if (enableRotationCorrection_ != false) {
+ output.writeBool(12, enableRotationCorrection_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1034,6 +1080,13 @@ public int getSerializedSize() {
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;
@@ -1062,6 +1115,8 @@ public boolean equals(final java.lang.Object obj) {
if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false;
if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false;
+ if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false;
+ if (getEnableRotationCorrection() != other.getEnableRotationCorrection()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1103,6 +1158,11 @@ public int hashCode() {
}
hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER;
hash = (53 * hash) + getCustomizedAttribution().hashCode();
+ hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf());
+ hash = (37 * hash) + ENABLE_ROTATION_CORRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRotationCorrection());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1290,6 +1350,8 @@ public Builder clear() {
internalGetMutableGlossaries().clear();
internalGetMutableFormatConversions().clear();
customizedAttribution_ = "";
+ enableShadowRemovalNativePdf_ = false;
+ enableRotationCorrection_ = false;
return this;
}
@@ -1369,6 +1431,12 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR
if (((from_bitField0_ & 0x00000100) != 0)) {
result.customizedAttribution_ = customizedAttribution_;
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.enableShadowRemovalNativePdf_ = enableShadowRemovalNativePdf_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.enableRotationCorrection_ = enableRotationCorrection_;
+ }
}
@java.lang.Override
@@ -1478,6 +1546,12 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq
bitField0_ |= 0x00000100;
onChanged();
}
+ if (other.getEnableShadowRemovalNativePdf() != false) {
+ setEnableShadowRemovalNativePdf(other.getEnableShadowRemovalNativePdf());
+ }
+ if (other.getEnableRotationCorrection() != false) {
+ setEnableRotationCorrection(other.getEnableRotationCorrection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1588,6 +1662,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 82
+ case 88:
+ {
+ enableShadowRemovalNativePdf_ = input.readBool();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 88
+ case 96:
+ {
+ enableRotationCorrection_ = input.readBool();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 96
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3571,6 +3657,124 @@ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString valu
return this;
}
+ private boolean enableShadowRemovalNativePdf_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enableShadowRemovalNativePdf to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableShadowRemovalNativePdf(boolean value) {
+
+ enableShadowRemovalNativePdf_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableShadowRemovalNativePdf() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ enableShadowRemovalNativePdf_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableRotationCorrection_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableRotationCorrection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableRotationCorrection(boolean value) {
+
+ enableRotationCorrection_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableRotationCorrection() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ enableRotationCorrection_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java
index 742d85933e62..d6db2ce5aa8c 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java
@@ -623,4 +623,34 @@ java.lang.String getFormatConversionsOrDefault(
* @return The bytes for customizedAttribution.
*/
com.google.protobuf.ByteString getCustomizedAttributionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ boolean getEnableShadowRemovalNativePdf();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ boolean getEnableRotationCorrection();
}
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index b2a85bba7e18..26a6a3bc40b8 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -725,8 +725,9 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
*
*
*
- * Optional. If true, the page limit of online native pdf translation is 300
- * and only native pdf pages will be translated.
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
*
*
* bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
@@ -744,10 +745,10 @@ public boolean getIsTranslateNativePdfOnly() {
*
*
*
- * Optional. If true, use the text removal to remove the shadow text on
+ * Optional. If true, use the text removal server to remove the shadow text on
* background image for native pdf translation.
* Shadow removal feature can only be enabled when
- * is_translate_native_pdf_only is false
+ * is_translate_native_pdf_only: false && pdf_native_only: false
*
*
* bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
@@ -760,6 +761,24 @@ public boolean getEnableShadowRemovalNativePdf() {
return enableShadowRemovalNativePdf_;
}
+ public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER = 13;
+ private boolean enableRotationCorrection_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -806,6 +825,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableShadowRemovalNativePdf_ != false) {
output.writeBool(12, enableShadowRemovalNativePdf_);
}
+ if (enableRotationCorrection_ != false) {
+ output.writeBool(13, enableRotationCorrection_);
+ }
getUnknownFields().writeTo(output);
}
@@ -857,6 +879,9 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_);
}
+ if (enableRotationCorrection_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableRotationCorrection_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -893,6 +918,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false;
if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false;
if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false;
+ if (getEnableRotationCorrection() != other.getEnableRotationCorrection()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -935,6 +961,8 @@ public int hashCode() {
hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER;
hash =
(53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf());
+ hash = (37 * hash) + ENABLE_ROTATION_CORRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRotationCorrection());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1118,6 +1146,7 @@ public Builder clear() {
customizedAttribution_ = "";
isTranslateNativePdfOnly_ = false;
enableShadowRemovalNativePdf_ = false;
+ enableRotationCorrection_ = false;
return this;
}
@@ -1195,6 +1224,9 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques
if (((from_bitField0_ & 0x00000400) != 0)) {
result.enableShadowRemovalNativePdf_ = enableShadowRemovalNativePdf_;
}
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.enableRotationCorrection_ = enableRotationCorrection_;
+ }
}
@java.lang.Override
@@ -1285,6 +1317,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest
if (other.getEnableShadowRemovalNativePdf() != false) {
setEnableShadowRemovalNativePdf(other.getEnableShadowRemovalNativePdf());
}
+ if (other.getEnableRotationCorrection() != false) {
+ setEnableRotationCorrection(other.getEnableRotationCorrection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1385,6 +1420,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000400;
break;
} // case 96
+ case 104:
+ {
+ enableRotationCorrection_ = input.readBool();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 104
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2992,8 +3033,9 @@ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString valu
*
*
*
- * Optional. If true, the page limit of online native pdf translation is 300
- * and only native pdf pages will be translated.
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
*
*
* bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
@@ -3009,8 +3051,9 @@ public boolean getIsTranslateNativePdfOnly() {
*
*
*
- * Optional. If true, the page limit of online native pdf translation is 300
- * and only native pdf pages will be translated.
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
*
*
* bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
@@ -3030,8 +3073,9 @@ public Builder setIsTranslateNativePdfOnly(boolean value) {
*
*
*
- * Optional. If true, the page limit of online native pdf translation is 300
- * and only native pdf pages will be translated.
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
*
*
* bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
@@ -3051,10 +3095,10 @@ public Builder clearIsTranslateNativePdfOnly() {
*
*
*
- * Optional. If true, use the text removal to remove the shadow text on
+ * Optional. If true, use the text removal server to remove the shadow text on
* background image for native pdf translation.
* Shadow removal feature can only be enabled when
- * is_translate_native_pdf_only is false
+ * is_translate_native_pdf_only: false && pdf_native_only: false
*
*
* bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
@@ -3070,10 +3114,10 @@ public boolean getEnableShadowRemovalNativePdf() {
*
*
*
- * Optional. If true, use the text removal to remove the shadow text on
+ * Optional. If true, use the text removal server to remove the shadow text on
* background image for native pdf translation.
* Shadow removal feature can only be enabled when
- * is_translate_native_pdf_only is false
+ * is_translate_native_pdf_only: false && pdf_native_only: false
*
*
* bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
@@ -3093,10 +3137,10 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) {
*
*
*
- * Optional. If true, use the text removal to remove the shadow text on
+ * Optional. If true, use the text removal server to remove the shadow text on
* background image for native pdf translation.
* Shadow removal feature can only be enabled when
- * is_translate_native_pdf_only is false
+ * is_translate_native_pdf_only: false && pdf_native_only: false
*
*
* bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
@@ -3111,6 +3155,59 @@ public Builder clearEnableShadowRemovalNativePdf() {
return this;
}
+ private boolean enableRotationCorrection_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableRotationCorrection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableRotationCorrection(boolean value) {
+
+ enableRotationCorrection_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableRotationCorrection() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ enableRotationCorrection_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
index 80203b939fbd..07f7d24c018b 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
@@ -455,8 +455,9 @@ java.lang.String getLabelsOrDefault(
*
*
*
- * Optional. If true, the page limit of online native pdf translation is 300
- * and only native pdf pages will be translated.
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
*
*
* bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
@@ -469,10 +470,10 @@ java.lang.String getLabelsOrDefault(
*
*
*
- * Optional. If true, use the text removal to remove the shadow text on
+ * Optional. If true, use the text removal server to remove the shadow text on
* background image for native pdf translation.
* Shadow removal feature can only be enabled when
- * is_translate_native_pdf_only is false
+ * is_translate_native_pdf_only: false && pdf_native_only: false
*
*
* bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
@@ -481,4 +482,17 @@ java.lang.String getLabelsOrDefault(
* @return The enableShadowRemovalNativePdf.
*/
boolean getEnableShadowRemovalNativePdf();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ boolean getEnableRotationCorrection();
}
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java
index fd6a308ec202..b310f3d99ed0 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java
@@ -22,8 +22,8 @@
*
*
*
- * Configures which glossary should be used for a specific target language,
- * and defines options for applying that glossary.
+ * Configures which glossary is used for a specific target language and defines
+ * options for applying that glossary.
*
*
* Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
@@ -316,8 +316,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Configures which glossary should be used for a specific target language,
- * and defines options for applying that glossary.
+ * Configures which glossary is used for a specific target language and defines
+ * options for applying that glossary.
*
*
* Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java
index 6efb315acac1..b593e6b8d8f4 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java
@@ -419,7 +419,7 @@ public com.google.protobuf.ByteString getParentBytes() {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -457,7 +457,7 @@ public java.lang.String getModel() {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -1979,7 +1979,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2016,7 +2016,7 @@ public java.lang.String getModel() {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2053,7 +2053,7 @@ public com.google.protobuf.ByteString getModelBytes() {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
*
*
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2089,7 +2089,7 @@ public Builder setModel(java.lang.String value) {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
*
*
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -2121,7 +2121,7 @@ public Builder clearModel() {
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
*
*
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index 714f465ced31..5ae96bd6a6fa 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -243,7 +243,7 @@ public interface TranslateTextRequestOrBuilder
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
*
*
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -270,7 +270,7 @@ public interface TranslateTextRequestOrBuilder
* For example,
* `projects/{project-number-or-id}/locations/global/models/general/nmt`.
*
- * If not provided, the default Google model (NMT) will be used.
+ * If not provided, the default Google model (NMT) will be used
*
*
* string model = 6 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java
index 51734e862e27..2ba15608f8fd 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java
@@ -233,294 +233,298 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v3\032\034google/api/annotations.proto\032\027google"
+ "/api/client.proto\032\037google/api/field_beha"
+ "vior.proto\032\031google/api/resource.proto\032#g"
- + "oogle/longrunning/operations.proto\032\037goog"
- + "le/protobuf/timestamp.proto\"P\n\033Translate"
- + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A"
- + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl"
- + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027"
- + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua"
- + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c"
- + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#"
- + "\n!locations.googleapis.com/Location\022\023\n\005m"
- + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001("
- + "\01328.google.cloud.translation.v3.Translat"
- + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003("
- + "\0132=.google.cloud.translation.v3.Translat"
- + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels"
- + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001"
- + "\n\025TranslateTextResponse\022>\n\014translations\030"
- + "\001 \003(\0132(.google.cloud.translation.v3.Tran"
- + "slation\022G\n\025glossary_translations\030\003 \003(\0132("
- + ".google.cloud.translation.v3.Translation"
- + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001("
- + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co"
- + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog"
- + "le.cloud.translation.v3.TranslateTextGlo"
- + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n"
- + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google"
- + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021"
- + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A"
- + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl"
- + "ation.v3.DetectLanguageRequest.LabelsEnt"
- + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
- + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan"
- + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden"
- + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla"
- + "nguages\030\001 \003(\0132-.google.cloud.translation"
- + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan"
- + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!"
- + "locations.googleapis.com/Location\022#\n\025dis"
- + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030"
- + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan"
- + "guages\030\001 \003(\0132..google.cloud.translation."
- + "v3.SupportedLanguage\"p\n\021SupportedLanguag"
- + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name"
- + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor"
- + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri"
- + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type"
- + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl"
- + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so"
- + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre"
- + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d"
- + "estination\030\001 \001(\0132+.google.cloud.translat"
- + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203"
- + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H"
- + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra"
- + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001"
- + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n"
- + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr"
- + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm"
- + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030"
- + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t"
- + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A"
- + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U"
- + "\n\025document_input_config\030\004 \001(\01320.google.c"
- + "loud.translation.v3.DocumentInputConfigB"
- + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321."
- + "google.cloud.translation.v3.DocumentOutp"
- + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g"
- + "lossary_config\030\007 \001(\01328.google.cloud.tran"
- + "slation.v3.TranslateTextGlossaryConfigB\004"
- + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran"
- + "slation.v3.TranslateDocumentRequest.Labe"
- + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030"
- + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o"
- + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal"
- + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013"
- + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume"
- + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003"
- + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua"
- + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo"
- + "nse\022N\n\024document_translation\030\001 \001(\01320.goog"
+ + "oogle/longrunning/operations.proto\032\033goog"
+ + "le/protobuf/empty.proto\032\037google/protobuf"
+ + "/timestamp.proto\"P\n\033TranslateTextGlossar"
+ + "yConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignor"
+ + "e_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024TranslateTextRequ"
+ + "est\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027\n\tmime_type"
+ + "\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_language_code\030\004 \001"
+ + "(\tB\004\342A\001\001\022\"\n\024target_language_code\030\005 \001(\tB\004"
+ + "\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#\n!locations"
+ + ".googleapis.com/Location\022\023\n\005model\030\006 \001(\tB"
+ + "\004\342A\001\001\022W\n\017glossary_config\030\007 \001(\01328.google."
+ + "cloud.translation.v3.TranslateTextGlossa"
+ + "ryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(\0132=.google."
+ + "cloud.translation.v3.TranslateTextReques"
+ + "t.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003ke"
+ + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001\n\025Translate"
+ + "TextResponse\022>\n\014translations\030\001 \003(\0132(.goo"
+ + "gle.cloud.translation.v3.Translation\022G\n\025"
+ + "glossary_translations\030\003 \003(\0132(.google.clo"
+ + "ud.translation.v3.Translation\"\250\001\n\013Transl"
+ + "ation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model\030"
+ + "\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022Q\n"
+ + "\017glossary_config\030\003 \001(\01328.google.cloud.tr"
+ + "anslation.v3.TranslateTextGlossaryConfig"
+ + "\"\243\002\n\025DetectLanguageRequest\022:\n\006parent\030\005 \001"
+ + "(\tB*\342A\001\002\372A#\n!locations.googleapis.com/Lo"
+ + "cation\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007content\030\001"
+ + " \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022T\n\006label"
+ + "s\030\006 \003(\0132>.google.cloud.translation.v3.De"
+ + "tectLanguageRequest.LabelsEntryB\004\342A\001\001\032-\n"
+ + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
+ + ":\0028\001B\010\n\006source\"=\n\020DetectedLanguage\022\025\n\rla"
+ + "nguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\"Z\n"
+ + "\026DetectLanguageResponse\022@\n\tlanguages\030\001 \003"
+ + "(\0132-.google.cloud.translation.v3.Detecte"
+ + "dLanguage\"\224\001\n\034GetSupportedLanguagesReque"
+ + "st\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!locations.g"
+ + "oogleapis.com/Location\022#\n\025display_langua"
+ + "ge_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030\002 \001(\tB\004\342A\001\001"
+ + "\"W\n\022SupportedLanguages\022A\n\tlanguages\030\001 \003("
+ + "\0132..google.cloud.translation.v3.Supporte"
+ + "dLanguage\"p\n\021SupportedLanguage\022\025\n\rlangua"
+ + "ge_code\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\026\n\016s"
+ + "upport_source\030\003 \001(\010\022\026\n\016support_target\030\004 "
+ + "\001(\010\"$\n\tGcsSource\022\027\n\tinput_uri\030\001 \001(\tB\004\342A\001"
+ + "\002\"n\n\013InputConfig\022\027\n\tmime_type\030\001 \001(\tB\004\342A\001"
+ + "\001\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra"
+ + "nslation.v3.GcsSourceH\000B\010\n\006source\"1\n\016Gcs"
+ + "Destination\022\037\n\021output_uri_prefix\030\001 \001(\tB\004"
+ + "\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_destination\030"
+ + "\001 \001(\0132+.google.cloud.translation.v3.GcsD"
+ + "estinationH\000B\r\n\013destination\"\203\001\n\023Document"
+ + "InputConfig\022\021\n\007content\030\001 \001(\014H\000\022<\n\ngcs_so"
+ + "urce\030\002 \001(\0132&.google.cloud.translation.v3"
+ + ".GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006sourc"
+ + "e\"\214\001\n\024DocumentOutputConfig\022L\n\017gcs_destin"
+ + "ation\030\001 \001(\0132+.google.cloud.translation.v"
+ + "3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003 "
+ + "\001(\tB\004\342A\001\001B\r\n\013destination\"\312\005\n\030TranslateDo"
+ + "cumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024s"
+ + "ource_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targe"
+ + "t_language_code\030\003 \001(\tB\004\342A\001\002\022U\n\025document_"
+ + "input_config\030\004 \001(\01320.google.cloud.transl"
+ + "ation.v3.DocumentInputConfigB\004\342A\001\002\022W\n\026do"
+ + "cument_output_config\030\005 \001(\01321.google.clou"
+ + "d.translation.v3.DocumentOutputConfigB\004\342"
+ + "A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_con"
+ + "fig\030\007 \001(\01328.google.cloud.translation.v3."
+ + "TranslateTextGlossaryConfigB\004\342A\001\001\022W\n\006lab"
+ + "els\030\010 \003(\0132A.google.cloud.translation.v3."
+ + "TranslateDocumentRequest.LabelsEntryB\004\342A"
+ + "\001\001\022$\n\026customized_attribution\030\n \001(\tB\004\342A\001\001"
+ + "\022*\n\034is_translate_native_pdf_only\030\013 \001(\010B\004"
+ + "\342A\001\001\022.\n enable_shadow_removal_native_pdf"
+ + "\030\014 \001(\010B\004\342A\001\001\022(\n\032enable_rotation_correcti"
+ + "on\030\r \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001"
+ + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023DocumentTransla"
+ + "tion\022\033\n\023byte_stream_outputs\030\001 \003(\014\022\021\n\tmim"
+ + "e_type\030\002 \001(\t\022\036\n\026detected_language_code\030\003"
+ + " \001(\t\"\246\002\n\031TranslateDocumentResponse\022N\n\024do"
+ + "cument_translation\030\001 \001(\01320.google.cloud."
+ + "translation.v3.DocumentTranslation\022W\n\035gl"
+ + "ossary_document_translation\030\002 \001(\01320.goog"
+ "le.cloud.translation.v3.DocumentTranslat"
- + "ion\022W\n\035glossary_document_translation\030\002 \001"
- + "(\01320.google.cloud.translation.v3.Documen"
- + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_"
- + "config\030\004 \001(\01328.google.cloud.translation."
- + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch"
- + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A"
- + "\001\002\372A#\n!locations.googleapis.com/Location"
- + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025"
- + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod"
- + "els\030\004 \003(\0132B.google.cloud.translation.v3."
- + "BatchTranslateTextRequest.ModelsEntryB\004\342"
- + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou"
- + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou"
- + "tput_config\030\006 \001(\0132).google.cloud.transla"
- + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries"
- + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat"
- + "chTranslateTextRequest.GlossariesEntryB\004"
- + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran"
- + "slation.v3.BatchTranslateTextRequest.Lab"
- + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001"
- + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry"
- + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl"
- + "oud.translation.v3.TranslateTextGlossary"
- + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r"
- + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta"
- + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans"
- + "lation.v3.BatchTranslateMetadata.State\022\035"
+ + "ion\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_config\030\004 "
+ + "\001(\01328.google.cloud.translation.v3.Transl"
+ + "ateTextGlossaryConfig\"\220\006\n\031BatchTranslate"
+ + "TextRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!lo"
+ + "cations.googleapis.com/Location\022\"\n\024sourc"
+ + "e_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target_la"
+ + "nguage_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006models\030\004 \003(\013"
+ + "2B.google.cloud.translation.v3.BatchTran"
+ + "slateTextRequest.ModelsEntryB\004\342A\001\001\022E\n\rin"
+ + "put_configs\030\005 \003(\0132(.google.cloud.transla"
+ + "tion.v3.InputConfigB\004\342A\001\002\022F\n\routput_conf"
+ + "ig\030\006 \001(\0132).google.cloud.translation.v3.O"
+ + "utputConfigB\004\342A\001\002\022`\n\nglossaries\030\007 \003(\0132F."
+ + "google.cloud.translation.v3.BatchTransla"
+ + "teTextRequest.GlossariesEntryB\004\342A\001\001\022X\n\006l"
+ + "abels\030\t \003(\0132B.google.cloud.translation.v"
+ + "3.BatchTranslateTextRequest.LabelsEntryB"
+ + "\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+ + "ue\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry\022\013\n\003key\030\001"
+ + " \001(\t\022G\n\005value\030\002 \001(\01328.google.cloud.trans"
+ + "lation.v3.TranslateTextGlossaryConfig:\0028"
+ + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
+ + " \001(\t:\0028\001\"\316\002\n\026BatchTranslateMetadata\022H\n\005s"
+ + "tate\030\001 \001(\01629.google.cloud.translation.v3"
+ + ".BatchTranslateMetadata.State\022\035\n\025transla"
+ + "ted_characters\030\002 \001(\003\022\031\n\021failed_character"
+ + "s\030\003 \001(\003\022\030\n\020total_characters\030\004 \001(\003\022/\n\013sub"
+ + "mit_time\030\005 \001(\0132\032.google.protobuf.Timesta"
+ + "mp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RU"
+ + "NNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCA"
+ + "NCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026BatchTrans"
+ + "lateResponse\022\030\n\020total_characters\030\001 \001(\003\022\035"
+ "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_"
- + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001"
- + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu"
- + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE"
- + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE"
- + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B"
- + "atchTranslateResponse\022\030\n\020total_character"
- + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031"
- + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time"
- + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en"
- + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp"
- + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 "
- + "\001(\0132&.google.cloud.translation.v3.GcsSou"
- + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001"
- + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google"
- + ".cloud.translation.v3.Glossary.LanguageC"
- + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326."
- + "google.cloud.translation.v3.Glossary.Lan"
- + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320."
- + "google.cloud.translation.v3.GlossaryInpu"
- + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su"
- + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest"
- + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro"
- + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t "
- + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_"
- + "language_code\030\001 \001(\t\022\034\n\024target_language_c"
- + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag"
- + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis"
- + ".com/Glossary\022=projects/{project}/locati"
- + "ons/{location}/glossaries/{glossary}B\013\n\t"
- + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p"
- + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap"
- + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog"
- + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N"
- + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002"
- + "\372A#\n!translate.googleapis.com/Glossary\"Q"
- + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342"
- + "A\001\002\372A#\n!translate.googleapis.com/Glossar"
- + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 "
- + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L"
- + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage"
- + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001"
- + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries"
- + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo"
- + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat"
- + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state"
- + "\030\002 \001(\01629.google.cloud.translation.v3.Cre"
- + "ateGlossaryMetadata.State\022/\n\013submit_time"
- + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St"
- + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022"
- + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING"
- + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta"
- + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog"
- + "le.cloud.translation.v3.DeleteGlossaryMe"
- + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_"
- + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020"
- + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL"
- + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030"
- + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot"
- + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl"
- + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD"
- + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n"
- + "!locations.googleapis.com/Location\022\"\n\024so"
- + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target"
- + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con"
- + "figs\030\004 \003(\01325.google.cloud.translation.v3"
- + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu"
- + "t_config\030\005 \001(\01326.google.cloud.translatio"
- + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006"
- + "models\030\006 \003(\0132F.google.cloud.translation."
- + "v3.BatchTranslateDocumentRequest.ModelsE"
- + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google."
- + "cloud.translation.v3.BatchTranslateDocum"
- + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form"
- + "at_conversions\030\010 \003(\0132Q.google.cloud.tran"
- + "slation.v3.BatchTranslateDocumentRequest"
- + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi"
- + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl"
- + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001("
- + "\01328.google.cloud.translation.v3.Translat"
- + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers"
- + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
- + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou"
- + "rce\030\001 \001(\0132&.google.cloud.translation.v3."
- + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu"
- + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go"
- + "ogle.cloud.translation.v3.GcsDestination"
- + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu"
- + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra"
- + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001("
- + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total"
- + "_characters\030\005 \001(\003\022\035\n\025translated_characte"
- + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t"
- + "otal_billable_characters\030\010 \001(\003\022/\n\013submit"
- + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022"
- + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time"
- + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata"
- + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati"
- + "on.v3.BatchTranslateDocumentMetadata.Sta"
- + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa"
- + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total"
- + "_billable_pages\030\005 \001(\003\022\030\n\020total_character"
- + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031"
- + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa"
- + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001("
- + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025"
- + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU"
- + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n"
- + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r"
- + "TranslateText\0221.google.cloud.translation"
- + ".v3.TranslateTextRequest\0322.google.cloud."
- + "translation.v3.TranslateTextResponse\"\333\001\332"
- + "A$parent,target_language_code,contents\332A"
- + "Iparent,model,mime_type,source_language_"
- + "code,target_language_code,contents\202\323\344\223\002b"
- + "\"1/v3/{parent=projects/*/locations/*}:tr"
- + "anslateText:\001*Z*\"%/v3/{parent=projects/*"
- + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222."
- + "google.cloud.translation.v3.DetectLangua"
- + "geRequest\0323.google.cloud.translation.v3."
- + "DetectLanguageResponse\"\213\001\332A\036parent,model"
- + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr"
- + "ojects/*/locations/*}:detectLanguage:\001*Z"
- + "+\"&/v3/{parent=projects/*}:detectLanguag"
- + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google."
- + "cloud.translation.v3.GetSupportedLanguag"
- + "esRequest\032/.google.cloud.translation.v3."
- + "SupportedLanguages\"\221\001\332A\"parent,model,dis"
- + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr"
- + "ojects/*/locations/*}/supportedLanguages"
- + "Z,\022*/v3/{parent=projects/*}/supportedLan"
- + "guages\022\304\001\n\021TranslateDocument\0225.google.cl"
- + "oud.translation.v3.TranslateDocumentRequ"
- + "est\0326.google.cloud.translation.v3.Transl"
- + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent"
- + "=projects/*/locations/*}:translateDocume"
- + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl"
- + "oud.translation.v3.BatchTranslateTextReq"
- + "uest\032\035.google.longrunning.Operation\"t\312A0"
- + "\n\026BatchTranslateResponse\022\026BatchTranslate"
- + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l"
- + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba"
- + "tchTranslateDocument\022:.google.cloud.tran"
- + "slation.v3.BatchTranslateDocumentRequest"
- + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B"
- + "atchTranslateDocumentResponse\022\036BatchTran"
- + "slateDocumentMetadata\332AMparent,source_la"
- + "nguage_code,target_language_codes,input_"
- + "configs,output_config\202\323\344\223\002?\":/v3/{parent"
- + "=projects/*/locations/*}:batchTranslateD"
- + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c"
- + "loud.translation.v3.CreateGlossaryReques"
- + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G"
- + "lossary\022\026CreateGlossaryMetadata\332A\017parent"
- + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/"
- + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li"
- + "stGlossaries\0222.google.cloud.translation."
- + "v3.ListGlossariesRequest\0323.google.cloud."
- + "translation.v3.ListGlossariesResponse\"?\332"
- + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l"
- + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/"
- + ".google.cloud.translation.v3.GetGlossary"
- + "Request\032%.google.cloud.translation.v3.Gl"
- + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project"
- + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete"
- + "Glossary\0222.google.cloud.translation.v3.D"
- + "eleteGlossaryRequest\032\035.google.longrunnin"
- + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse"
- + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./"
- + "v3/{name=projects/*/locations/*/glossari"
- + "es/*}\032~\312A\030translate.googleapis.com\322A`htt"
- + "ps://www.googleapis.com/auth/cloud-platf"
- + "orm,https://www.googleapis.com/auth/clou"
- + "d-translationB\321\001\n\035com.google.cloud.trans"
- + "late.v3B\027TranslationServiceProtoP\001Z;clou"
- + "d.google.com/go/translate/apiv3/translat"
- + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl"
- + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo"
- + "gle::Cloud::Translate::V3b\006proto3"
+ + "characters\030\003 \001(\003\022/\n\013submit_time\030\004 \001(\0132\032."
+ + "google.protobuf.Timestamp\022,\n\010end_time\030\005 "
+ + "\001(\0132\032.google.protobuf.Timestamp\"]\n\023Gloss"
+ + "aryInputConfig\022<\n\ngcs_source\030\001 \001(\0132&.goo"
+ + "gle.cloud.translation.v3.GcsSourceH\000B\010\n\006"
+ + "source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022"
+ + "O\n\rlanguage_pair\030\003 \001(\01326.google.cloud.tr"
+ + "anslation.v3.Glossary.LanguageCodePairH\000"
+ + "\022T\n\022language_codes_set\030\004 \001(\01326.google.cl"
+ + "oud.translation.v3.Glossary.LanguageCode"
+ + "sSetH\000\022F\n\014input_config\030\005 \001(\01320.google.cl"
+ + "oud.translation.v3.GlossaryInputConfig\022\031"
+ + "\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time"
+ + "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
+ + "\0222\n\010end_time\030\010 \001(\0132\032.google.protobuf.Tim"
+ + "estampB\004\342A\001\003\022\032\n\014display_name\030\t \001(\tB\004\342A\001\001"
+ + "\032N\n\020LanguageCodePair\022\034\n\024source_language_"
+ + "code\030\001 \001(\t\022\034\n\024target_language_code\030\002 \001(\t"
+ + "\032*\n\020LanguageCodesSet\022\026\n\016language_codes\030\001"
+ + " \003(\t:e\352Ab\n!translate.googleapis.com/Glos"
+ + "sary\022=projects/{project}/locations/{loca"
+ + "tion}/glossaries/{glossary}B\013\n\tlanguages"
+ + "\"\222\001\n\025CreateGlossaryRequest\022:\n\006parent\030\001 \001"
+ + "(\tB*\342A\001\002\372A#\n!locations.googleapis.com/Lo"
+ + "cation\022=\n\010glossary\030\002 \001(\0132%.google.cloud."
+ + "translation.v3.GlossaryB\004\342A\001\002\"N\n\022GetGlos"
+ + "saryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!tran"
+ + "slate.googleapis.com/Glossary\"Q\n\025DeleteG"
+ + "lossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!t"
+ + "ranslate.googleapis.com/Glossary\"\234\001\n\025Lis"
+ + "tGlossariesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002"
+ + "\372A#\n!locations.googleapis.com/Location\022\027"
+ + "\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 "
+ + "\001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"l\n\026ListG"
+ + "lossariesResponse\0229\n\nglossaries\030\001 \003(\0132%."
+ + "google.cloud.translation.v3.Glossary\022\027\n\017"
+ + "next_page_token\030\002 \001(\t\"\210\002\n\026CreateGlossary"
+ + "Metadata\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629."
+ + "google.cloud.translation.v3.CreateGlossa"
+ + "ryMetadata.State\022/\n\013submit_time\030\003 \001(\0132\032."
+ + "google.protobuf.Timestamp\"e\n\005State\022\025\n\021ST"
+ + "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEE"
+ + "DED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCAN"
+ + "CELLED\020\005\"\210\002\n\026DeleteGlossaryMetadata\022\014\n\004n"
+ + "ame\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.google.cloud."
+ + "translation.v3.DeleteGlossaryMetadata.St"
+ + "ate\022/\n\013submit_time\030\003 \001(\0132\032.google.protob"
+ + "uf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFI"
+ + "ED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAIL"
+ + "ED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026"
+ + "DeleteGlossaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013"
+ + "submit_time\030\002 \001(\0132\032.google.protobuf.Time"
+ + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu"
+ + "f.Timestamp\"\334\007\n\035BatchTranslateDocumentRe"
+ + "quest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!location"
+ + "s.googleapis.com/Location\022\"\n\024source_lang"
+ + "uage_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language"
+ + "_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_configs\030\004 \003("
+ + "\01325.google.cloud.translation.v3.BatchDoc"
+ + "umentInputConfigB\004\342A\001\002\022S\n\routput_config\030"
+ + "\005 \001(\01326.google.cloud.translation.v3.Batc"
+ + "hDocumentOutputConfigB\004\342A\001\002\022\\\n\006models\030\006 "
+ + "\003(\0132F.google.cloud.translation.v3.BatchT"
+ + "ranslateDocumentRequest.ModelsEntryB\004\342A\001"
+ + "\001\022d\n\nglossaries\030\007 \003(\0132J.google.cloud.tra"
+ + "nslation.v3.BatchTranslateDocumentReques"
+ + "t.GlossariesEntryB\004\342A\001\001\022s\n\022format_conver"
+ + "sions\030\010 \003(\0132Q.google.cloud.translation.v"
+ + "3.BatchTranslateDocumentRequest.FormatCo"
+ + "nversionsEntryB\004\342A\001\001\022$\n\026customized_attri"
+ + "bution\030\n \001(\tB\004\342A\001\001\022.\n enable_shadow_remo"
+ + "val_native_pdf\030\013 \001(\010B\004\342A\001\001\022(\n\032enable_rot"
+ + "ation_correction\030\014 \001(\010B\004\342A\001\001\032-\n\013ModelsEn"
+ + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017G"
+ + "lossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001"
+ + "(\01328.google.cloud.translation.v3.Transla"
+ + "teTextGlossaryConfig:\0028\001\0328\n\026FormatConver"
+ + "sionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
+ + "8\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_so"
+ + "urce\030\001 \001(\0132&.google.cloud.translation.v3"
+ + ".GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentO"
+ + "utputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.g"
+ + "oogle.cloud.translation.v3.GcsDestinatio"
+ + "nH\000B\r\n\013destination\"\331\002\n\036BatchTranslateDoc"
+ + "umentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tr"
+ + "anslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001"
+ + "(\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020tota"
+ + "l_characters\030\005 \001(\003\022\035\n\025translated_charact"
+ + "ers\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031"
+ + "total_billable_characters\030\010 \001(\003\022/\n\013submi"
+ + "t_time\030\t \001(\0132\032.google.protobuf.Timestamp"
+ + "\022,\n\010end_time\030\n \001(\0132\032.google.protobuf.Tim"
+ + "estamp\"\344\003\n\036BatchTranslateDocumentMetadat"
+ + "a\022P\n\005state\030\001 \001(\0162A.google.cloud.translat"
+ + "ion.v3.BatchTranslateDocumentMetadata.St"
+ + "ate\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_p"
+ + "ages\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024tota"
+ + "l_billable_pages\030\005 \001(\003\022\030\n\020total_characte"
+ + "rs\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022"
+ + "\031\n\021failed_characters\030\010 \001(\003\022!\n\031total_bill"
+ + "able_characters\030\t \001(\003\022/\n\013submit_time\030\n \001"
+ + "(\0132\032.google.protobuf.Timestamp\"e\n\005State\022"
+ + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tS"
+ + "UCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r"
+ + "\n\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n"
+ + "\rTranslateText\0221.google.cloud.translatio"
+ + "n.v3.TranslateTextRequest\0322.google.cloud"
+ + ".translation.v3.TranslateTextResponse\"\333\001"
+ + "\332A$parent,target_language_code,contents\332"
+ + "AIparent,model,mime_type,source_language"
+ + "_code,target_language_code,contents\202\323\344\223\002"
+ + "b\"1/v3/{parent=projects/*/locations/*}:t"
+ + "ranslateText:\001*Z*\"%/v3/{parent=projects/"
+ + "*}:translateText:\001*\022\207\002\n\016DetectLanguage\0222"
+ + ".google.cloud.translation.v3.DetectLangu"
+ + "ageRequest\0323.google.cloud.translation.v3"
+ + ".DetectLanguageResponse\"\213\001\332A\036parent,mode"
+ + "l,mime_type,content\202\323\344\223\002d\"2/v3/{parent=p"
+ + "rojects/*/locations/*}:detectLanguage:\001*"
+ + "Z+\"&/v3/{parent=projects/*}:detectLangua"
+ + "ge:\001*\022\227\002\n\025GetSupportedLanguages\0229.google"
+ + ".cloud.translation.v3.GetSupportedLangua"
+ + "gesRequest\032/.google.cloud.translation.v3"
+ + ".SupportedLanguages\"\221\001\332A\"parent,model,di"
+ + "splay_language_code\202\323\344\223\002f\0226/v3/{parent=p"
+ + "rojects/*/locations/*}/supportedLanguage"
+ + "sZ,\022*/v3/{parent=projects/*}/supportedLa"
+ + "nguages\022\304\001\n\021TranslateDocument\0225.google.c"
+ + "loud.translation.v3.TranslateDocumentReq"
+ + "uest\0326.google.cloud.translation.v3.Trans"
+ + "lateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{paren"
+ + "t=projects/*/locations/*}:translateDocum"
+ + "ent:\001*\022\341\001\n\022BatchTranslateText\0226.google.c"
+ + "loud.translation.v3.BatchTranslateTextRe"
+ + "quest\032\035.google.longrunning.Operation\"t\312A"
+ + "0\n\026BatchTranslateResponse\022\026BatchTranslat"
+ + "eMetadata\202\323\344\223\002;\"6/v3/{parent=projects/*/"
+ + "locations/*}:batchTranslateText:\001*\022\316\002\n\026B"
+ + "atchTranslateDocument\022:.google.cloud.tra"
+ + "nslation.v3.BatchTranslateDocumentReques"
+ + "t\032\035.google.longrunning.Operation\"\330\001\312A@\n\036"
+ + "BatchTranslateDocumentResponse\022\036BatchTra"
+ + "nslateDocumentMetadata\332AMparent,source_l"
+ + "anguage_code,target_language_codes,input"
+ + "_configs,output_config\202\323\344\223\002?\":/v3/{paren"
+ + "t=projects/*/locations/*}:batchTranslate"
+ + "Document:\001*\022\334\001\n\016CreateGlossary\0222.google."
+ + "cloud.translation.v3.CreateGlossaryReque"
+ + "st\032\035.google.longrunning.Operation\"w\312A\"\n\010"
+ + "Glossary\022\026CreateGlossaryMetadata\332A\017paren"
+ + "t,glossary\202\323\344\223\002:\"./v3/{parent=projects/*"
+ + "/locations/*}/glossaries:\010glossary\022\272\001\n\016L"
+ + "istGlossaries\0222.google.cloud.translation"
+ + ".v3.ListGlossariesRequest\0323.google.cloud"
+ + ".translation.v3.ListGlossariesResponse\"?"
+ + "\332A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/"
+ + "locations/*}/glossaries\022\244\001\n\013GetGlossary\022"
+ + "/.google.cloud.translation.v3.GetGlossar"
+ + "yRequest\032%.google.cloud.translation.v3.G"
+ + "lossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=projec"
+ + "ts/*/locations/*/glossaries/*}\022\325\001\n\016Delet"
+ + "eGlossary\0222.google.cloud.translation.v3."
+ + "DeleteGlossaryRequest\032\035.google.longrunni"
+ + "ng.Operation\"p\312A0\n\026DeleteGlossaryRespons"
+ + "e\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*."
+ + "/v3/{name=projects/*/locations/*/glossar"
+ + "ies/*}\032~\312A\030translate.googleapis.com\322A`ht"
+ + "tps://www.googleapis.com/auth/cloud-plat"
+ + "form,https://www.googleapis.com/auth/clo"
+ + "ud-translationB\321\001\n\035com.google.cloud.tran"
+ + "slate.v3B\027TranslationServiceProtoP\001Z;clo"
+ + "ud.google.com/go/translate/apiv3/transla"
+ + "tepb;translatepb\370\001\001\252\002\031Google.Cloud.Trans"
+ + "late.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Go"
+ + "ogle::Cloud::Translate::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -531,6 +535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor =
@@ -705,6 +710,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CustomizedAttribution",
"IsTranslateNativePdfOnly",
"EnableShadowRemovalNativePdf",
+ "EnableRotationCorrection",
});
internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor =
internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor
@@ -916,6 +922,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Glossaries",
"FormatConversions",
"CustomizedAttribution",
+ "EnableShadowRemovalNativePdf",
+ "EnableRotationCorrection",
});
internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor =
internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor
@@ -1014,6 +1022,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto
index 0eb34aa3ddb4..e89f329501a1 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto
@@ -21,6 +21,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
option cc_enable_arenas = true;
@@ -178,8 +179,8 @@ service TranslationService {
}
}
-// Configures which glossary should be used for a specific target language,
-// and defines options for applying that glossary.
+// Configures which glossary is used for a specific target language and defines
+// options for applying that glossary.
message TranslateTextGlossaryConfig {
// Required. The `glossary` to be applied for this translation.
//
@@ -252,7 +253,7 @@ message TranslateTextRequest {
// For example,
// `projects/{project-number-or-id}/locations/global/models/general/nmt`.
//
- // If not provided, the default Google model (NMT) will be used.
+ // If not provided, the default Google model (NMT) will be used
string model = 6 [(google.api.field_behavior) = OPTIONAL];
// Optional. Glossary to be applied. The glossary must be
@@ -757,17 +758,21 @@ message TranslateDocumentRequest {
// https://cloud.google.com/translate/attribution#attribution_and_logos
string customized_attribution = 10 [(google.api.field_behavior) = OPTIONAL];
- // Optional. If true, the page limit of online native pdf translation is 300
- // and only native pdf pages will be translated.
+ // Optional. is_translate_native_pdf_only field for external customers.
+ // If true, the page limit of online native pdf translation is 300 and only
+ // native pdf pages will be translated.
bool is_translate_native_pdf_only = 11
[(google.api.field_behavior) = OPTIONAL];
- // Optional. If true, use the text removal to remove the shadow text on
+ // Optional. If true, use the text removal server to remove the shadow text on
// background image for native pdf translation.
// Shadow removal feature can only be enabled when
- // is_translate_native_pdf_only is false
+ // is_translate_native_pdf_only: false && pdf_native_only: false
bool enable_shadow_removal_native_pdf = 12
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, enable auto rotation correction in DVS.
+ bool enable_rotation_correction = 13 [(google.api.field_behavior) = OPTIONAL];
}
// A translated document message.
@@ -1293,6 +1298,16 @@ message BatchTranslateDocumentRequest {
// Customized attribution should follow rules in
// https://cloud.google.com/translate/attribution#attribution_and_logos
string customized_attribution = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, use the text removal server to remove the shadow text on
+ // background image for native pdf translation.
+ // Shadow removal feature can only be enabled when
+ // is_translate_native_pdf_only: false && pdf_native_only: false
+ bool enable_shadow_removal_native_pdf = 11
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, enable auto rotation correction in DVS.
+ bool enable_rotation_correction = 12 [(google.api.field_behavior) = OPTIONAL];
}
// Input configuration for BatchTranslateDocument request.
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java
index 995377d556f9..3a16f85d5411 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java
@@ -42,6 +42,7 @@ private BatchTranslateDocumentRequest() {
sourceLanguageCode_ = "";
targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
inputConfigs_ = java.util.Collections.emptyList();
+ customizedAttribution_ = "";
}
@java.lang.Override
@@ -873,6 +874,103 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) {
return map.get(key);
}
+ public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object customizedAttribution_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ @java.lang.Override
+ public java.lang.String getCustomizedAttribution() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customizedAttribution_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customizedAttribution_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 11;
+ private boolean enableShadowRemovalNativePdf_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+
+ public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER = 12;
+ private boolean enableRotationCorrection_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -911,6 +1009,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
internalGetFormatConversions(),
FormatConversionsDefaultEntryHolder.defaultEntry,
8);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_);
+ }
+ if (enableShadowRemovalNativePdf_ != false) {
+ output.writeBool(11, enableShadowRemovalNativePdf_);
+ }
+ if (enableRotationCorrection_ != false) {
+ output.writeBool(12, enableRotationCorrection_);
+ }
getUnknownFields().writeTo(output);
}
@@ -973,6 +1080,16 @@ public int getSerializedSize() {
.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;
@@ -1000,6 +1117,9 @@ public boolean equals(final java.lang.Object obj) {
if (!internalGetModels().equals(other.internalGetModels())) return false;
if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false;
+ if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false;
+ if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false;
+ if (getEnableRotationCorrection() != other.getEnableRotationCorrection()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1039,6 +1159,13 @@ public int hashCode() {
hash = (37 * hash) + FORMAT_CONVERSIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetFormatConversions().hashCode();
}
+ hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomizedAttribution().hashCode();
+ hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf());
+ hash = (37 * hash) + ENABLE_ROTATION_CORRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRotationCorrection());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1225,6 +1352,9 @@ public Builder clear() {
internalGetMutableModels().clear();
internalGetMutableGlossaries().clear();
internalGetMutableFormatConversions().clear();
+ customizedAttribution_ = "";
+ enableShadowRemovalNativePdf_ = false;
+ enableRotationCorrection_ = false;
return this;
}
@@ -1303,6 +1433,15 @@ private void buildPartial0(
result.formatConversions_ = internalGetFormatConversions();
result.formatConversions_.makeImmutable();
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.customizedAttribution_ = customizedAttribution_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.enableShadowRemovalNativePdf_ = enableShadowRemovalNativePdf_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.enableRotationCorrection_ = enableRotationCorrection_;
+ }
}
@java.lang.Override
@@ -1409,6 +1548,17 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions());
bitField0_ |= 0x00000080;
+ if (!other.getCustomizedAttribution().isEmpty()) {
+ customizedAttribution_ = other.customizedAttribution_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (other.getEnableShadowRemovalNativePdf() != false) {
+ setEnableShadowRemovalNativePdf(other.getEnableShadowRemovalNativePdf());
+ }
+ if (other.getEnableRotationCorrection() != false) {
+ setEnableRotationCorrection(other.getEnableRotationCorrection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1514,6 +1664,24 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 66
+ case 82:
+ {
+ customizedAttribution_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 82
+ case 88:
+ {
+ enableShadowRemovalNativePdf_ = input.readBool();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 88
+ case 96:
+ {
+ enableRotationCorrection_ = input.readBool();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 96
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3389,6 +3557,245 @@ public Builder putAllFormatConversions(
return this;
}
+ private java.lang.Object customizedAttribution_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ public java.lang.String getCustomizedAttribution() {
+ java.lang.Object ref = customizedAttribution_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customizedAttribution_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customizedAttribution_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The customizedAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomizedAttribution(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customizedAttribution_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomizedAttribution() {
+ customizedAttribution_ = getDefaultInstance().getCustomizedAttribution();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for customizedAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ customizedAttribution_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableShadowRemovalNativePdf_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enableShadowRemovalNativePdf to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableShadowRemovalNativePdf(boolean value) {
+
+ enableShadowRemovalNativePdf_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableShadowRemovalNativePdf() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ enableShadowRemovalNativePdf_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableRotationCorrection_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableRotationCorrection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableRotationCorrection(boolean value) {
+
+ enableRotationCorrection_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableRotationCorrection() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ enableRotationCorrection_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java
index 417f5d3bcc93..8a97c4b79a40 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java
@@ -592,4 +592,65 @@ java.lang.String getFormatConversionsOrDefault(
*
*/
java.lang.String getFormatConversionsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ java.lang.String getCustomizedAttribution();
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ com.google.protobuf.ByteString getCustomizedAttributionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ boolean getEnableShadowRemovalNativePdf();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ boolean getEnableRotationCorrection();
}
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java
index 6db570106ae1..84a789f92a26 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java
@@ -130,9 +130,8 @@ public SourceCase getSourceCase() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -166,9 +165,8 @@ public boolean hasGcsSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -205,9 +203,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -636,9 +633,8 @@ public Builder clearSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -672,9 +668,8 @@ public boolean hasGcsSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -718,9 +713,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -761,9 +755,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -802,9 +795,8 @@ public Builder setGcsSource(
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -855,9 +847,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -901,9 +892,8 @@ public Builder clearGcsSource() {
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -934,9 +924,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -975,9 +964,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index 02eb6c051740..961654bdf6cf 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -46,9 +46,8 @@ public interface GlossaryInputConfigOrBuilder
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -79,9 +78,8 @@ public interface GlossaryInputConfigOrBuilder
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
@@ -112,9 +110,8 @@ public interface GlossaryInputConfigOrBuilder
* For equivalent term sets glossaries:
*
* - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
- * in multiple languages. The format is defined for Google Translation
- * Toolkit and documented in [Use a
- * glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
+ * in multiple languages. See documentation for more information -
+ * [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
*
*
* .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java
index d50960132abc..5e2145c99954 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java
@@ -146,7 +146,7 @@ public DestinationCase getDestinationCase() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -231,7 +231,7 @@ public boolean hasGcsDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -319,7 +319,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -798,7 +798,7 @@ public Builder clearDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -883,7 +883,7 @@ public boolean hasGcsDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -978,7 +978,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1070,7 +1070,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1160,7 +1160,7 @@ public Builder setGcsDestination(
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1263,7 +1263,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1358,7 +1358,7 @@ public Builder clearGcsDestination() {
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1440,7 +1440,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -1530,7 +1530,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index f52b193db66f..c43c9df88a56 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -62,7 +62,7 @@ public interface OutputConfigOrBuilder
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -144,7 +144,7 @@ public interface OutputConfigOrBuilder
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -226,7 +226,7 @@ public interface OutputConfigOrBuilder
* Since index.csv will be keeping updated during the process, please make
* sure there is no custom retention policy applied on the output bucket
* that may avoid file updating.
- * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
*
* The format of translations_file (for target language code 'trg') is:
* `gs://translation_test/a_b_c_'trg'_translations.[extension]`
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index e1d973149b45..b375d579f259 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -42,6 +42,7 @@ private TranslateDocumentRequest() {
sourceLanguageCode_ = "";
targetLanguageCode_ = "";
model_ = "";
+ customizedAttribution_ = "";
}
@java.lang.Override
@@ -659,6 +660,123 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
return map.get(key);
}
+ public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object customizedAttribution_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ @java.lang.Override
+ public java.lang.String getCustomizedAttribution() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customizedAttribution_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customizedAttribution_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER = 11;
+ private boolean isTranslateNativePdfOnly_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
+ *
+ *
+ * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The isTranslateNativePdfOnly.
+ */
+ @java.lang.Override
+ public boolean getIsTranslateNativePdfOnly() {
+ return isTranslateNativePdfOnly_;
+ }
+
+ public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 12;
+ private boolean enableShadowRemovalNativePdf_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+
+ public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER = 13;
+ private boolean enableRotationCorrection_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -696,6 +814,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_);
+ }
+ if (isTranslateNativePdfOnly_ != false) {
+ output.writeBool(11, isTranslateNativePdfOnly_);
+ }
+ if (enableShadowRemovalNativePdf_ != false) {
+ output.writeBool(12, enableShadowRemovalNativePdf_);
+ }
+ if (enableRotationCorrection_ != false) {
+ output.writeBool(13, enableRotationCorrection_);
+ }
getUnknownFields().writeTo(output);
}
@@ -737,6 +867,19 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_);
+ }
+ if (isTranslateNativePdfOnly_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isTranslateNativePdfOnly_);
+ }
+ if (enableShadowRemovalNativePdf_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_);
+ }
+ if (enableRotationCorrection_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableRotationCorrection_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -770,6 +913,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
}
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+ if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false;
+ if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false;
+ if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false;
+ if (getEnableRotationCorrection() != other.getEnableRotationCorrection()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -805,6 +952,15 @@ public int hashCode() {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
+ hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomizedAttribution().hashCode();
+ hash = (37 * hash) + IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTranslateNativePdfOnly());
+ hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf());
+ hash = (37 * hash) + ENABLE_ROTATION_CORRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRotationCorrection());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -985,6 +1141,10 @@ public Builder clear() {
glossaryConfigBuilder_ = null;
}
internalGetMutableLabels().clear();
+ customizedAttribution_ = "";
+ isTranslateNativePdfOnly_ = false;
+ enableShadowRemovalNativePdf_ = false;
+ enableRotationCorrection_ = false;
return this;
}
@@ -1053,6 +1213,18 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.customizedAttribution_ = customizedAttribution_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.isTranslateNativePdfOnly_ = isTranslateNativePdfOnly_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.enableShadowRemovalNativePdf_ = enableShadowRemovalNativePdf_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.enableRotationCorrection_ = enableRotationCorrection_;
+ }
}
@java.lang.Override
@@ -1132,6 +1304,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000080;
+ if (!other.getCustomizedAttribution().isEmpty()) {
+ customizedAttribution_ = other.customizedAttribution_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (other.getIsTranslateNativePdfOnly() != false) {
+ setIsTranslateNativePdfOnly(other.getIsTranslateNativePdfOnly());
+ }
+ if (other.getEnableShadowRemovalNativePdf() != false) {
+ setEnableShadowRemovalNativePdf(other.getEnableShadowRemovalNativePdf());
+ }
+ if (other.getEnableRotationCorrection() != false) {
+ setEnableRotationCorrection(other.getEnableRotationCorrection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1214,6 +1400,30 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 66
+ case 82:
+ {
+ customizedAttribution_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 82
+ case 88:
+ {
+ isTranslateNativePdfOnly_ = input.readBool();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 88
+ case 96:
+ {
+ enableShadowRemovalNativePdf_ = input.readBool();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 96
+ case 104:
+ {
+ enableRotationCorrection_ = input.readBool();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 104
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2692,6 +2902,307 @@ public Builder putAllLabels(java.util.Map
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ public java.lang.String getCustomizedAttribution() {
+ java.lang.Object ref = customizedAttribution_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customizedAttribution_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
+ java.lang.Object ref = customizedAttribution_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customizedAttribution_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The customizedAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomizedAttribution(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customizedAttribution_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomizedAttribution() {
+ customizedAttribution_ = getDefaultInstance().getCustomizedAttribution();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for customizedAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ customizedAttribution_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private boolean isTranslateNativePdfOnly_;
+ /**
+ *
+ *
+ *
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
+ *
+ *
+ * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The isTranslateNativePdfOnly.
+ */
+ @java.lang.Override
+ public boolean getIsTranslateNativePdfOnly() {
+ return isTranslateNativePdfOnly_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
+ *
+ *
+ * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The isTranslateNativePdfOnly to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsTranslateNativePdfOnly(boolean value) {
+
+ isTranslateNativePdfOnly_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
+ *
+ *
+ * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsTranslateNativePdfOnly() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ isTranslateNativePdfOnly_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableShadowRemovalNativePdf_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ @java.lang.Override
+ public boolean getEnableShadowRemovalNativePdf() {
+ return enableShadowRemovalNativePdf_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enableShadowRemovalNativePdf to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableShadowRemovalNativePdf(boolean value) {
+
+ enableShadowRemovalNativePdf_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableShadowRemovalNativePdf() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ enableShadowRemovalNativePdf_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableRotationCorrection_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ @java.lang.Override
+ public boolean getEnableRotationCorrection() {
+ return enableRotationCorrection_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableRotationCorrection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableRotationCorrection(boolean value) {
+
+ enableRotationCorrection_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableRotationCorrection() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ enableRotationCorrection_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 0d7adac307e9..2b694985907a 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -419,4 +419,80 @@ java.lang.String getLabelsOrDefault(
* map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The customizedAttribution.
+ */
+ java.lang.String getCustomizedAttribution();
+ /**
+ *
+ *
+ *
+ * Optional. This flag is to support user customized attribution.
+ * If not provided, the default is `Machine Translated by Google`.
+ * Customized attribution should follow rules in
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
+ *
+ *
+ * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for customizedAttribution.
+ */
+ com.google.protobuf.ByteString getCustomizedAttributionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. is_translate_native_pdf_only field for external customers.
+ * If true, the page limit of online native pdf translation is 300 and only
+ * native pdf pages will be translated.
+ *
+ *
+ * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The isTranslateNativePdfOnly.
+ */
+ boolean getIsTranslateNativePdfOnly();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, use the text removal server to remove the shadow text on
+ * background image for native pdf translation.
+ * Shadow removal feature can only be enabled when
+ * is_translate_native_pdf_only: false && pdf_native_only: false
+ *
+ *
+ * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableShadowRemovalNativePdf.
+ */
+ boolean getEnableShadowRemovalNativePdf();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable auto rotation correction in DVS.
+ *
+ *
+ * bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableRotationCorrection.
+ */
+ boolean getEnableRotationCorrection();
}
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java
index d5ebbba25ba0..e8cf617d9ada 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java
@@ -292,7 +292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio"
+ "n\030\001 \001(\01320.google.cloud.translation.v3bet"
+ "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003"
- + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD"
+ + " \001(\tB\004\342A\001\001B\r\n\013destination\"\336\005\n\030TranslateD"
+ "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024"
+ "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ"
+ "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document"
@@ -305,225 +305,232 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "slation.v3beta1.TranslateTextGlossaryCon"
+ "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud"
+ ".translation.v3beta1.TranslateDocumentRe"
- + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013"
- + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume"
- + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003"
- + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua"
- + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo"
- + "nse\022S\n\024document_translation\030\001 \001(\01325.goog"
- + "le.cloud.translation.v3beta1.DocumentTra"
- + "nslation\022\\\n\035glossary_document_translatio"
- + "n\030\002 \001(\01325.google.cloud.translation.v3bet"
- + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n"
- + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr"
- + "anslation.v3beta1.TranslateTextGlossaryC"
- + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p"
- + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap"
- + "is.com/Location\022\"\n\024source_language_code\030"
- + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003"
- + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud."
- + "translation.v3beta1.BatchTranslateTextRe"
- + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs"
- + "\030\005 \003(\0132-.google.cloud.translation.v3beta"
- + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001"
- + "(\0132..google.cloud.translation.v3beta1.Ou"
- + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g"
+ + "quest.LabelsEntryB\004\342A\001\001\022$\n\026customized_at"
+ + "tribution\030\n \001(\tB\004\342A\001\001\022*\n\034is_translate_na"
+ + "tive_pdf_only\030\013 \001(\010B\004\342A\001\001\022.\n enable_shad"
+ + "ow_removal_native_pdf\030\014 \001(\010B\004\342A\001\001\022(\n\032ena"
+ + "ble_rotation_correction\030\r \001(\010B\004\342A\001\001\032-\n\013L"
+ + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
+ + "8\001\"e\n\023DocumentTranslation\022\033\n\023byte_stream"
+ + "_outputs\030\001 \003(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026det"
+ + "ected_language_code\030\003 \001(\t\"\265\002\n\031TranslateD"
+ + "ocumentResponse\022S\n\024document_translation\030"
+ + "\001 \001(\01325.google.cloud.translation.v3beta1"
+ + ".DocumentTranslation\022\\\n\035glossary_documen"
+ + "t_translation\030\002 \001(\01325.google.cloud.trans"
+ + "lation.v3beta1.DocumentTranslation\022\r\n\005mo"
+ + "del\030\003 \001(\t\022V\n\017glossary_config\030\004 \001(\0132=.goo"
+ + "gle.cloud.translation.v3beta1.TranslateT"
+ + "extGlossaryConfig\"\256\006\n\031BatchTranslateText"
+ + "Request\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locati"
+ + "ons.googleapis.com/Location\022\"\n\024source_la"
+ + "nguage_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target_langua"
+ + "ge_codes\030\003 \003(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.g"
+ "oogle.cloud.translation.v3beta1.BatchTra"
- + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022"
- + "]\n\006labels\030\t \003(\0132G.google.cloud.translati"
- + "on.v3beta1.BatchTranslateTextRequest.Lab"
- + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001"
- + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry"
- + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl"
- + "oud.translation.v3beta1.TranslateTextGlo"
- + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 "
- + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat"
- + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud."
- + "translation.v3beta1.BatchTranslateMetada"
- + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022"
- + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char"
- + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_"
- + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020"
- + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL"
- + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total"
- + "_characters\030\001 \001(\003\022\035\n\025translated_characte"
- + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s"
- + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times"
- + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf"
- + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs"
- + "_source\030\001 \001(\0132+.google.cloud.translation"
- + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss"
- + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair"
- + "\030\003 \001(\0132;.google.cloud.translation.v3beta"
- + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag"
- + "e_codes_set\030\004 \001(\0132;.google.cloud.transla"
- + "tion.v3beta1.Glossary.LanguageCodesSetH\000"
- + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr"
- + "anslation.v3beta1.GlossaryInputConfig\022\031\n"
- + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030"
- + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022"
- + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time"
- + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc"
- + "e_language_code\030\001 \001(\t\022\034\n\024target_language"
- + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu"
- + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap"
- + "is.com/Glossary\022=projects/{project}/loca"
- + "tions/{location}/glossaries/{glossary}B\013"
- + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n"
- + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google"
- + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go"
- + "ogle.cloud.translation.v3beta1.GlossaryB"
- + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001("
- + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo"
- + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001"
- + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/"
- + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa"
- + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi"
- + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022"
- + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001("
- + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo"
- + "ssaries\030\001 \003(\0132*.google.cloud.translation"
- + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001"
- + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 "
- + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl"
- + "ation.v3beta1.CreateGlossaryMetadata.Sta"
- + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu"
- + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE"
- + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE"
- + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D"
- + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s"
- + "tate\030\002 \001(\0162>.google.cloud.translation.v3"
- + "beta1.DeleteGlossaryMetadata.State\022/\n\013su"
- + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest"
- + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R"
- + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC"
- + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo"
- + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti"
- + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010"
- + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta"
- + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006"
- + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea"
- + "pis.com/Location\022\"\n\024source_language_code"
- + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 "
- + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl"
- + "e.cloud.translation.v3beta1.BatchDocumen"
- + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001("
- + "\0132;.google.cloud.translation.v3beta1.Bat"
- + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006"
- + " \003(\0132K.google.cloud.translation.v3beta1."
- + "BatchTranslateDocumentRequest.ModelsEntr"
- + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo"
- + "ud.translation.v3beta1.BatchTranslateDoc"
- + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo"
- + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr"
- + "anslation.v3beta1.BatchTranslateDocument"
- + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013"
- + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
- + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v"
- + "alue\030\002 \001(\0132=.google.cloud.translation.v3"
- + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n"
- + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
- + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon"
- + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t"
- + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source"
- + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des"
- + "tination\030\001 \001(\01320.google.cloud.translatio"
- + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio"
- + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013"
- + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 "
- + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa"
- + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001("
- + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail"
- + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch"
- + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go"
- + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001("
- + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT"
- + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162"
- + "F.google.cloud.translation.v3beta1.Batch"
- + "TranslateDocumentMetadata.State\022\023\n\013total"
- + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024"
- + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p"
- + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025"
- + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch"
- + "aracters\030\010 \001(\003\022!\n\031total_billable_charact"
- + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google."
- + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS"
- + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n"
- + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020"
- + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe"
- + "xt\0226.google.cloud.translation.v3beta1.Tr"
- + "anslateTextRequest\0327.google.cloud.transl"
- + "ation.v3beta1.TranslateTextResponse\"r\202\323\344"
- + "\223\002l\"6/v3beta1/{parent=projects/*/locatio"
- + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare"
- + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete"
- + "ctLanguage\0227.google.cloud.translation.v3"
- + "beta1.DetectLanguageRequest\0328.google.clo"
- + "ud.translation.v3beta1.DetectLanguageRes"
- + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\""
- + "7/v3beta1/{parent=projects/*/locations/*"
- + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent="
- + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup"
- + "portedLanguages\022>.google.cloud.translati"
- + "on.v3beta1.GetSupportedLanguagesRequest\032"
- + "4.google.cloud.translation.v3beta1.Suppo"
- + "rtedLanguages\"\233\001\332A\"parent,display_langua"
- + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr"
- + "ojects/*/locations/*}/supportedLanguages"
- + "Z1\022//v3beta1/{parent=projects/*}/support"
- + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog"
- + "le.cloud.translation.v3beta1.TranslateDo"
- + "cumentRequest\032;.google.cloud.translation"
- + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223"
- + "\002?\":/v3beta1/{parent=projects/*/location"
- + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans"
- + "lateText\022;.google.cloud.translation.v3be"
- + "ta1.BatchTranslateTextRequest\032\035.google.l"
- + "ongrunning.Operation\"y\312A0\n\026BatchTranslat"
- + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\""
+ + "nslateTextRequest.ModelsEntryB\004\342A\001\001\022J\n\ri"
+ + "nput_configs\030\005 \003(\0132-.google.cloud.transl"
+ + "ation.v3beta1.InputConfigB\004\342A\001\002\022K\n\routpu"
+ + "t_config\030\006 \001(\0132..google.cloud.translatio"
+ + "n.v3beta1.OutputConfigB\004\342A\001\002\022e\n\nglossari"
+ + "es\030\007 \003(\0132K.google.cloud.translation.v3be"
+ + "ta1.BatchTranslateTextRequest.Glossaries"
+ + "EntryB\004\342A\001\001\022]\n\006labels\030\t \003(\0132G.google.clo"
+ + "ud.translation.v3beta1.BatchTranslateTex"
+ + "tRequest.LabelsEntryB\004\342A\001\001\032-\n\013ModelsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017Glo"
+ + "ssariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\013"
+ + "2=.google.cloud.translation.v3beta1.Tran"
+ + "slateTextGlossaryConfig:\0028\001\032-\n\013LabelsEnt"
+ + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026B"
+ + "atchTranslateMetadata\022M\n\005state\030\001 \001(\0162>.g"
+ + "oogle.cloud.translation.v3beta1.BatchTra"
+ + "nslateMetadata.State\022\035\n\025translated_chara"
+ + "cters\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022\030"
+ + "\n\020total_characters\030\004 \001(\003\022/\n\013submit_time\030"
+ + "\005 \001(\0132\032.google.protobuf.Timestamp\"e\n\005Sta"
+ + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r"
+ + "\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020"
+ + "\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026BatchTranslateRespo"
+ + "nse\022\030\n\020total_characters\030\001 \001(\003\022\035\n\025transla"
+ + "ted_characters\030\002 \001(\003\022\031\n\021failed_character"
+ + "s\030\003 \001(\003\022/\n\013submit_time\030\004 \001(\0132\032.google.pr"
+ + "otobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.goo"
+ + "gle.protobuf.Timestamp\"b\n\023GlossaryInputC"
+ + "onfig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud"
+ + ".translation.v3beta1.GcsSourceH\000B\010\n\006sour"
+ + "ce\"\222\005\n\010Glossary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rl"
+ + "anguage_pair\030\003 \001(\0132;.google.cloud.transl"
+ + "ation.v3beta1.Glossary.LanguageCodePairH"
+ + "\000\022Y\n\022language_codes_set\030\004 \001(\0132;.google.c"
+ + "loud.translation.v3beta1.Glossary.Langua"
+ + "geCodesSetH\000\022K\n\014input_config\030\005 \001(\01325.goo"
+ + "gle.cloud.translation.v3beta1.GlossaryIn"
+ + "putConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013"
+ + "submit_time\030\007 \001(\0132\032.google.protobuf.Time"
+ + "stampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\004\342A\001\003\032N\n\020LanguageCodeP"
+ + "air\022\034\n\024source_language_code\030\001 \001(\t\022\034\n\024tar"
+ + "get_language_code\030\002 \001(\t\032*\n\020LanguageCodes"
+ + "Set\022\026\n\016language_codes\030\001 \003(\t:e\352Ab\n!transl"
+ + "ate.googleapis.com/Glossary\022=projects/{p"
+ + "roject}/locations/{location}/glossaries/"
+ + "{glossary}B\013\n\tlanguages\"\227\001\n\025CreateGlossa"
+ + "ryRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!loca"
+ + "tions.googleapis.com/Location\022B\n\010glossar"
+ + "y\030\002 \001(\0132*.google.cloud.translation.v3bet"
+ + "a1.GlossaryB\004\342A\001\002\"N\n\022GetGlossaryRequest\022"
+ + "8\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!translate.google"
+ + "apis.com/Glossary\"Q\n\025DeleteGlossaryReque"
+ + "st\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!translate.goo"
+ + "gleapis.com/Glossary\"\234\001\n\025ListGlossariesR"
+ + "equest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locatio"
+ + "ns.googleapis.com/Location\022\027\n\tpage_size\030"
+ + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n"
+ + "\006filter\030\004 \001(\tB\004\342A\001\001\"q\n\026ListGlossariesRes"
+ + "ponse\022>\n\nglossaries\030\001 \003(\0132*.google.cloud"
+ + ".translation.v3beta1.Glossary\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t\"\215\002\n\026CreateGlossaryMetadat"
+ + "a\022\014\n\004name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google."
+ + "cloud.translation.v3beta1.CreateGlossary"
+ + "Metadata.State\022/\n\013submit_time\030\003 \001(\0132\032.go"
+ + "ogle.protobuf.Timestamp\"e\n\005State\022\025\n\021STAT"
+ + "E_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDE"
+ + "D\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCE"
+ + "LLED\020\005\"\215\002\n\026DeleteGlossaryMetadata\022\014\n\004nam"
+ + "e\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.tr"
+ + "anslation.v3beta1.DeleteGlossaryMetadata"
+ + ".State\022/\n\013submit_time\030\003 \001(\0132\032.google.pro"
+ + "tobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPEC"
+ + "IFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006F"
+ + "AILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205"
+ + "\001\n\026DeleteGlossaryResponse\022\014\n\004name\030\001 \001(\t\022"
+ + "/\n\013submit_time\030\002 \001(\0132\032.google.protobuf.T"
+ + "imestamp\022,\n\010end_time\030\003 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\"\372\007\n\035BatchTranslateDocumen"
+ + "tRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat"
+ + "ions.googleapis.com/Location\022\"\n\024source_l"
+ + "anguage_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target_langu"
+ + "age_codes\030\003 \003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004"
+ + " \003(\0132:.google.cloud.translation.v3beta1."
+ + "BatchDocumentInputConfigB\004\342A\001\002\022X\n\routput"
+ + "_config\030\005 \001(\0132;.google.cloud.translation"
+ + ".v3beta1.BatchDocumentOutputConfigB\004\342A\001\002"
+ + "\022a\n\006models\030\006 \003(\0132K.google.cloud.translat"
+ + "ion.v3beta1.BatchTranslateDocumentReques"
+ + "t.ModelsEntryB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132"
+ + "O.google.cloud.translation.v3beta1.Batch"
+ + "TranslateDocumentRequest.GlossariesEntry"
+ + "B\004\342A\001\001\022x\n\022format_conversions\030\010 \003(\0132V.goo"
+ + "gle.cloud.translation.v3beta1.BatchTrans"
+ + "lateDocumentRequest.FormatConversionsEnt"
+ + "ryB\004\342A\001\001\022$\n\026customized_attribution\030\n \001(\t"
+ + "B\004\342A\001\001\022.\n enable_shadow_removal_native_p"
+ + "df\030\013 \001(\010B\004\342A\001\001\022(\n\032enable_rotation_correc"
+ + "tion\030\014 \001(\010B\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001"
+ + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEnt"
+ + "ry\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google."
+ + "cloud.translation.v3beta1.TranslateTextG"
+ + "lossaryConfig:\0028\001\0328\n\026FormatConversionsEn"
+ + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n\030B"
+ + "atchDocumentInputConfig\022A\n\ngcs_source\030\001 "
+ + "\001(\0132+.google.cloud.translation.v3beta1.G"
+ + "csSourceH\000B\010\n\006source\"w\n\031BatchDocumentOut"
+ + "putConfig\022K\n\017gcs_destination\030\001 \001(\01320.goo"
+ + "gle.cloud.translation.v3beta1.GcsDestina"
+ + "tionH\000B\r\n\013destination\"\331\002\n\036BatchTranslate"
+ + "DocumentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n"
+ + "\020translated_pages\030\002 \001(\003\022\024\n\014failed_pages\030"
+ + "\003 \001(\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020t"
+ + "otal_characters\030\005 \001(\003\022\035\n\025translated_char"
+ + "acters\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022"
+ + "!\n\031total_billable_characters\030\010 \001(\003\022/\n\013su"
+ + "bmit_time\030\t \001(\0132\032.google.protobuf.Timest"
+ + "amp\022,\n\010end_time\030\n \001(\0132\032.google.protobuf."
+ + "Timestamp\"\351\003\n\036BatchTranslateDocumentMeta"
+ + "data\022U\n\005state\030\001 \001(\0162F.google.cloud.trans"
+ + "lation.v3beta1.BatchTranslateDocumentMet"
+ + "adata.State\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020tran"
+ + "slated_pages\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003"
+ + "\022\034\n\024total_billable_pages\030\005 \001(\003\022\030\n\020total_"
+ + "characters\030\006 \001(\003\022\035\n\025translated_character"
+ + "s\030\007 \001(\003\022\031\n\021failed_characters\030\010 \001(\003\022!\n\031to"
+ + "tal_billable_characters\030\t \001(\003\022/\n\013submit_"
+ + "time\030\n \001(\0132\032.google.protobuf.Timestamp\"e"
+ + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNIN"
+ + "G\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCEL"
+ + "LING\020\004\022\r\n\tCANCELLED\020\0052\302\024\n\022TranslationSer"
+ + "vice\022\364\001\n\rTranslateText\0226.google.cloud.tr"
+ + "anslation.v3beta1.TranslateTextRequest\0327"
+ + ".google.cloud.translation.v3beta1.Transl"
+ + "ateTextResponse\"r\202\323\344\223\002l\"6/v3beta1/{paren"
+ + "t=projects/*/locations/*}:translateText:"
+ + "\001*Z/\"*/v3beta1/{parent=projects/*}:trans"
+ + "lateText:\001*\022\223\002\n\016DetectLanguage\0227.google."
+ + "cloud.translation.v3beta1.DetectLanguage"
+ + "Request\0328.google.cloud.translation.v3bet"
+ + "a1.DetectLanguageResponse\"\215\001\332A\026parent,mo"
+ + "del,mime_type\202\323\344\223\002n\"7/v3beta1/{parent=pr"
+ + "ojects/*/locations/*}:detectLanguage:\001*Z"
+ + "0\"+/v3beta1/{parent=projects/*}:detectLa"
+ + "nguage:\001*\022\253\002\n\025GetSupportedLanguages\022>.go"
+ + "ogle.cloud.translation.v3beta1.GetSuppor"
+ + "tedLanguagesRequest\0324.google.cloud.trans"
+ + "lation.v3beta1.SupportedLanguages\"\233\001\332A\"p"
+ + "arent,display_language_code,model\202\323\344\223\002p\022"
+ ";/v3beta1/{parent=projects/*/locations/*"
- + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla"
- + "teDocument\022?.google.cloud.translation.v3"
- + "beta1.BatchTranslateDocumentRequest\032\035.go"
- + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT"
- + "ranslateDocumentResponse\022\036BatchTranslate"
- + "DocumentMetadata\332AMparent,source_languag"
- + "e_code,target_language_codes,input_confi"
- + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent"
- + "=projects/*/locations/*}:batchTranslateD"
- + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c"
- + "loud.translation.v3beta1.CreateGlossaryR"
- + "equest\032\035.google.longrunning.Operation\"|\312"
- + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p"
- + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p"
- + "rojects/*/locations/*}/glossaries:\010gloss"
- + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr"
- + "anslation.v3beta1.ListGlossariesRequest\032"
- + "8.google.cloud.translation.v3beta1.ListG"
- + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002"
- + "5\0223/v3beta1/{parent=projects/*/locations"
- + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google."
- + "cloud.translation.v3beta1.GetGlossaryReq"
- + "uest\032*.google.cloud.translation.v3beta1."
- + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name="
- + "projects/*/locations/*/glossaries/*}\022\337\001\n"
- + "\016DeleteGlossary\0227.google.cloud.translati"
- + "on.v3beta1.DeleteGlossaryRequest\032\035.googl"
- + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos"
- + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n"
- + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc"
- + "ations/*/glossaries/*}\032~\312A\030translate.goo"
- + "gleapis.com\322A`https://www.googleapis.com"
- + "/auth/cloud-platform,https://www.googlea"
- + "pis.com/auth/cloud-translationB\360\001\n\"com.g"
- + "oogle.cloud.translate.v3beta1B\027Translati"
- + "onServiceProtoP\001ZFcloud.google.com/go/tr"
- + "anslation/apiv3beta1/translationpb;trans"
- + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B"
- + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!"
- + "Google::Cloud::Translate::V3beta1b\006proto"
- + "3"
+ + "}/supportedLanguagesZ1\022//v3beta1/{parent"
+ + "=projects/*}/supportedLanguages\022\323\001\n\021Tran"
+ + "slateDocument\022:.google.cloud.translation"
+ + ".v3beta1.TranslateDocumentRequest\032;.goog"
+ + "le.cloud.translation.v3beta1.TranslateDo"
+ + "cumentResponse\"E\202\323\344\223\002?\":/v3beta1/{parent"
+ + "=projects/*/locations/*}:translateDocume"
+ + "nt:\001*\022\353\001\n\022BatchTranslateText\022;.google.cl"
+ + "oud.translation.v3beta1.BatchTranslateTe"
+ + "xtRequest\032\035.google.longrunning.Operation"
+ + "\"y\312A0\n\026BatchTranslateResponse\022\026BatchTran"
+ + "slateMetadata\202\323\344\223\002@\";/v3beta1/{parent=pr"
+ + "ojects/*/locations/*}:batchTranslateText"
+ + ":\001*\022\330\002\n\026BatchTranslateDocument\022?.google."
+ + "cloud.translation.v3beta1.BatchTranslate"
+ + "DocumentRequest\032\035.google.longrunning.Ope"
+ + "ration\"\335\001\312A@\n\036BatchTranslateDocumentResp"
+ + "onse\022\036BatchTranslateDocumentMetadata\332AMp"
+ + "arent,source_language_code,target_langua"
+ + "ge_codes,input_configs,output_config\202\323\344\223"
+ + "\002D\"?/v3beta1/{parent=projects/*/location"
+ + "s/*}:batchTranslateDocument:\001*\022\346\001\n\016Creat"
+ + "eGlossary\0227.google.cloud.translation.v3b"
+ + "eta1.CreateGlossaryRequest\032\035.google.long"
+ + "running.Operation\"|\312A\"\n\010Glossary\022\026Create"
+ + "GlossaryMetadata\332A\017parent,glossary\202\323\344\223\002?"
+ + "\"3/v3beta1/{parent=projects/*/locations/"
+ + "*}/glossaries:\010glossary\022\320\001\n\016ListGlossari"
+ + "es\0227.google.cloud.translation.v3beta1.Li"
+ + "stGlossariesRequest\0328.google.cloud.trans"
+ + "lation.v3beta1.ListGlossariesResponse\"K\332"
+ + "A\rparent,filter\202\323\344\223\0025\0223/v3beta1/{parent="
+ + "projects/*/locations/*}/glossaries\022\263\001\n\013G"
+ + "etGlossary\0224.google.cloud.translation.v3"
+ + "beta1.GetGlossaryRequest\032*.google.cloud."
+ + "translation.v3beta1.Glossary\"B\332A\004name\202\323\344"
+ + "\223\0025\0223/v3beta1/{name=projects/*/locations"
+ + "/*/glossaries/*}\022\337\001\n\016DeleteGlossary\0227.go"
+ + "ogle.cloud.translation.v3beta1.DeleteGlo"
+ + "ssaryRequest\032\035.google.longrunning.Operat"
+ + "ion\"u\312A0\n\026DeleteGlossaryResponse\022\026Delete"
+ + "GlossaryMetadata\332A\004name\202\323\344\223\0025*3/v3beta1/"
+ + "{name=projects/*/locations/*/glossaries/"
+ + "*}\032~\312A\030translate.googleapis.com\322A`https:"
+ + "//www.googleapis.com/auth/cloud-platform"
+ + ",https://www.googleapis.com/auth/cloud-t"
+ + "ranslationB\360\001\n\"com.google.cloud.translat"
+ + "e.v3beta1B\027TranslationServiceProtoP\001ZFcl"
+ + "oud.google.com/go/translation/apiv3beta1"
+ + "/translationpb;translationpb\370\001\001\252\002\036Google"
+ + ".Cloud.Translate.V3Beta1\312\002\036Google\\Cloud\\"
+ + "Translate\\V3beta1\352\002!Google::Cloud::Trans"
+ + "late::V3beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -705,6 +712,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Model",
"GlossaryConfig",
"Labels",
+ "CustomizedAttribution",
+ "IsTranslateNativePdfOnly",
+ "EnableShadowRemovalNativePdf",
+ "EnableRotationCorrection",
});
internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor =
internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor
@@ -918,6 +929,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Models",
"Glossaries",
"FormatConversions",
+ "CustomizedAttribution",
+ "EnableShadowRemovalNativePdf",
+ "EnableRotationCorrection",
});
internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor =
internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto
index a758ce9f9f85..bc7435f72cc0 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto
@@ -106,7 +106,7 @@ service TranslationService {
};
}
- // Translates a large volume of documents in asynchronous batch mode.
+ // Translates a large volume of document in asynchronous batch mode.
// This function provides real-time output as the inputs are being processed.
// If caller cancels a request, the partial results (for an input file, it's
// all or nothing) may still be available on the specified output location.
@@ -532,7 +532,7 @@ message OutputConfig {
// Since index.csv will be keeping updated during the process, please make
// sure there is no custom retention policy applied on the output bucket
// that may avoid file updating.
- // (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ // (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
//
// The format of translations_file (for target language code 'trg') is:
// `gs://translation_test/a_b_c_'trg'_translations.[extension]`
@@ -740,6 +740,28 @@ message TranslateDocumentRequest {
// See https://cloud.google.com/translate/docs/advanced/labels for more
// information.
map