Skip to content

Commit 3fd44ea

Browse files
1 parent e72d01d commit 3fd44ea

File tree

11 files changed

+91
-18
lines changed

11 files changed

+91
-18
lines changed

clients/google-api-services-translate/v3/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-translate</artifactId>
25-
<version>v3-rev20241029-2.0.0</version>
25+
<version>v3-rev20241218-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-translate:v3-rev20241029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-translate:v3-rev20241218-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/Translate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7612,7 +7612,7 @@ public class Operations {
76127612
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
76137613
* methods to check whether the cancellation succeeded or whether the operation completed despite
76147614
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
7615-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
7615+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
76167616
* `Code.CANCELLED`.
76177617
*
76187618
* Create a request for the method "operations.cancel".
@@ -7643,7 +7643,7 @@ public class Cancel extends TranslateRequest<com.google.api.services.translate.v
76437643
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
76447644
* methods to check whether the cancellation succeeded or whether the operation completed despite
76457645
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
7646-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
7646+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
76477647
* `Code.CANCELLED`.
76487648
*
76497649
* Create a request for the method "operations.cancel".

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/GlossaryConfig.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
@SuppressWarnings("javadoc")
3232
public final class GlossaryConfig extends com.google.api.client.json.GenericJson {
3333

34+
/**
35+
* Optional. If set to true, the glossary will be used for contextual translation.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean contextualTranslationEnabled;
40+
3441
/**
3542
* Required. The `glossary` to be applied for this translation. The format depends on the
3643
* glossary: - User-provided custom glossary: `projects/{project-number-or-
@@ -47,6 +54,23 @@ public final class GlossaryConfig extends com.google.api.client.json.GenericJson
4754
@com.google.api.client.util.Key
4855
private java.lang.Boolean ignoreCase;
4956

57+
/**
58+
* Optional. If set to true, the glossary will be used for contextual translation.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.Boolean getContextualTranslationEnabled() {
62+
return contextualTranslationEnabled;
63+
}
64+
65+
/**
66+
* Optional. If set to true, the glossary will be used for contextual translation.
67+
* @param contextualTranslationEnabled contextualTranslationEnabled or {@code null} for none
68+
*/
69+
public GlossaryConfig setContextualTranslationEnabled(java.lang.Boolean contextualTranslationEnabled) {
70+
this.contextualTranslationEnabled = contextualTranslationEnabled;
71+
return this;
72+
}
73+
5074
/**
5175
* Required. The `glossary` to be applied for this translation. The format depends on the
5276
* glossary: - User-provided custom glossary: `projects/{project-number-or-

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/TranslateTextGlossaryConfig.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
@SuppressWarnings("javadoc")
3232
public final class TranslateTextGlossaryConfig extends com.google.api.client.json.GenericJson {
3333

34+
/**
35+
* Optional. If set to true, the glossary will be used for contextual translation.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean contextualTranslationEnabled;
40+
3441
/**
3542
* Required. The `glossary` to be applied for this translation. The format depends on the
3643
* glossary: - User-provided custom glossary: `projects/{project-number-or-
@@ -47,6 +54,23 @@ public final class TranslateTextGlossaryConfig extends com.google.api.client.jso
4754
@com.google.api.client.util.Key
4855
private java.lang.Boolean ignoreCase;
4956

57+
/**
58+
* Optional. If set to true, the glossary will be used for contextual translation.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.Boolean getContextualTranslationEnabled() {
62+
return contextualTranslationEnabled;
63+
}
64+
65+
/**
66+
* Optional. If set to true, the glossary will be used for contextual translation.
67+
* @param contextualTranslationEnabled contextualTranslationEnabled or {@code null} for none
68+
*/
69+
public TranslateTextGlossaryConfig setContextualTranslationEnabled(java.lang.Boolean contextualTranslationEnabled) {
70+
this.contextualTranslationEnabled = contextualTranslationEnabled;
71+
return this;
72+
}
73+
5074
/**
5175
* Required. The `glossary` to be applied for this translation. The format depends on the
5276
* glossary: - User-provided custom glossary: `projects/{project-number-or-

clients/google-api-services-translate/v3/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-translate</artifactId>
11-
<version>v3-rev20241029-2.0.0</version>
12-
<name>Cloud Translation API v3-rev20241029-2.0.0</name>
11+
<version>v3-rev20241218-2.0.0</version>
12+
<name>Cloud Translation API v3-rev20241218-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-translate/v3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-translate</artifactId>
25-
<version>v3-rev20241029-2.0.0</version>
25+
<version>v3-rev20241218-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-translate:v3-rev20241029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-translate:v3-rev20241218-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-translate/v3beta1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-translate</artifactId>
25-
<version>v3beta1-rev20241029-2.0.0</version>
25+
<version>v3beta1-rev20241218-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-translate:v3beta1-rev20241029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-translate:v3beta1-rev20241218-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-translate/v3beta1/2.0.0/com/google/api/services/translate/v3beta1/Translate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ public class Operations {
27582758
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
27592759
* methods to check whether the cancellation succeeded or whether the operation completed despite
27602760
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
2761-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
2761+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
27622762
* `Code.CANCELLED`.
27632763
*
27642764
* Create a request for the method "operations.cancel".
@@ -2789,7 +2789,7 @@ public class Cancel extends TranslateRequest<com.google.api.services.translate.v
27892789
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
27902790
* methods to check whether the cancellation succeeded or whether the operation completed despite
27912791
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
2792-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
2792+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
27932793
* `Code.CANCELLED`.
27942794
*
27952795
* Create a request for the method "operations.cancel".

clients/google-api-services-translate/v3beta1/2.0.0/com/google/api/services/translate/v3beta1/model/TranslateTextGlossaryConfig.java

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
package com.google.api.services.translate.v3beta1.model;
1818

1919
/**
20-
* Configures which glossary should be used for a specific target language, and defines options for
21-
* applying that glossary.
20+
* ----------------------------------------------------------------------------- Configures which
21+
* glossary should be used for a specific target language, and defines options for applying that
22+
* glossary.
2223
*
2324
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2425
* transmitted over HTTP when working with the Cloud Translation API. For a detailed explanation
@@ -31,6 +32,13 @@
3132
@SuppressWarnings("javadoc")
3233
public final class TranslateTextGlossaryConfig extends com.google.api.client.json.GenericJson {
3334

35+
/**
36+
* Optional. If set to true, the glossary will be used for contextual translation.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.Boolean contextualTranslationEnabled;
41+
3442
/**
3543
* Required. Specifies the glossary used for this translation. Use this format:
3644
* projects/locations/glossaries
@@ -46,6 +54,23 @@ public final class TranslateTextGlossaryConfig extends com.google.api.client.jso
4654
@com.google.api.client.util.Key
4755
private java.lang.Boolean ignoreCase;
4856

57+
/**
58+
* Optional. If set to true, the glossary will be used for contextual translation.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.Boolean getContextualTranslationEnabled() {
62+
return contextualTranslationEnabled;
63+
}
64+
65+
/**
66+
* Optional. If set to true, the glossary will be used for contextual translation.
67+
* @param contextualTranslationEnabled contextualTranslationEnabled or {@code null} for none
68+
*/
69+
public TranslateTextGlossaryConfig setContextualTranslationEnabled(java.lang.Boolean contextualTranslationEnabled) {
70+
this.contextualTranslationEnabled = contextualTranslationEnabled;
71+
return this;
72+
}
73+
4974
/**
5075
* Required. Specifies the glossary used for this translation. Use this format:
5176
* projects/locations/glossaries

clients/google-api-services-translate/v3beta1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-translate</artifactId>
11-
<version>v3beta1-rev20241029-2.0.0</version>
12-
<name>Cloud Translation API v3beta1-rev20241029-2.0.0</name>
11+
<version>v3beta1-rev20241218-2.0.0</version>
12+
<name>Cloud Translation API v3beta1-rev20241218-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-translate/v3beta1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-translate</artifactId>
25-
<version>v3beta1-rev20241029-2.0.0</version>
25+
<version>v3beta1-rev20241218-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-translate:v3beta1-rev20241029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-translate:v3beta1-rev20241218-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)