@@ -94,6 +94,7 @@ public class LanguageServiceSettings extends ClientSettings {
9494 analyzeEntitySentimentSettings ;
9595 private final SimpleCallSettings <AnalyzeSyntaxRequest , AnalyzeSyntaxResponse >
9696 analyzeSyntaxSettings ;
97+ private final SimpleCallSettings <ClassifyTextRequest , ClassifyTextResponse > classifyTextSettings ;
9798 private final SimpleCallSettings <AnnotateTextRequest , AnnotateTextResponse > annotateTextSettings ;
9899
99100 /** Returns the object with the settings used for calls to analyzeSentiment. */
@@ -119,6 +120,11 @@ public SimpleCallSettings<AnalyzeSyntaxRequest, AnalyzeSyntaxResponse> analyzeSy
119120 return analyzeSyntaxSettings ;
120121 }
121122
123+ /** Returns the object with the settings used for calls to classifyText. */
124+ public SimpleCallSettings <ClassifyTextRequest , ClassifyTextResponse > classifyTextSettings () {
125+ return classifyTextSettings ;
126+ }
127+
122128 /** Returns the object with the settings used for calls to annotateText. */
123129 public SimpleCallSettings <AnnotateTextRequest , AnnotateTextResponse > annotateTextSettings () {
124130 return annotateTextSettings ;
@@ -221,6 +227,7 @@ private LanguageServiceSettings(Builder settingsBuilder) throws IOException {
221227 analyzeEntitiesSettings = settingsBuilder .analyzeEntitiesSettings ().build ();
222228 analyzeEntitySentimentSettings = settingsBuilder .analyzeEntitySentimentSettings ().build ();
223229 analyzeSyntaxSettings = settingsBuilder .analyzeSyntaxSettings ().build ();
230+ classifyTextSettings = settingsBuilder .classifyTextSettings ().build ();
224231 annotateTextSettings = settingsBuilder .annotateTextSettings ().build ();
225232 }
226233
@@ -237,6 +244,8 @@ public static class Builder extends ClientSettings.Builder {
237244 analyzeEntitySentimentSettings ;
238245 private final SimpleCallSettings .Builder <AnalyzeSyntaxRequest , AnalyzeSyntaxResponse >
239246 analyzeSyntaxSettings ;
247+ private final SimpleCallSettings .Builder <ClassifyTextRequest , ClassifyTextResponse >
248+ classifyTextSettings ;
240249 private final SimpleCallSettings .Builder <AnnotateTextRequest , AnnotateTextResponse >
241250 annotateTextSettings ;
242251
@@ -288,6 +297,8 @@ private Builder(ClientContext clientContext) {
288297
289298 analyzeSyntaxSettings = SimpleCallSettings .newBuilder ();
290299
300+ classifyTextSettings = SimpleCallSettings .newBuilder ();
301+
291302 annotateTextSettings = SimpleCallSettings .newBuilder ();
292303
293304 unaryMethodSettingsBuilders =
@@ -296,6 +307,7 @@ private Builder(ClientContext clientContext) {
296307 analyzeEntitiesSettings ,
297308 analyzeEntitySentimentSettings ,
298309 analyzeSyntaxSettings ,
310+ classifyTextSettings ,
299311 annotateTextSettings );
300312
301313 initDefaults (this );
@@ -330,6 +342,11 @@ private static Builder initDefaults(Builder builder) {
330342 .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent" ))
331343 .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
332344
345+ builder
346+ .classifyTextSettings ()
347+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent" ))
348+ .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
349+
333350 builder
334351 .annotateTextSettings ()
335352 .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent" ))
@@ -345,6 +362,7 @@ private Builder(LanguageServiceSettings settings) {
345362 analyzeEntitiesSettings = settings .analyzeEntitiesSettings .toBuilder ();
346363 analyzeEntitySentimentSettings = settings .analyzeEntitySentimentSettings .toBuilder ();
347364 analyzeSyntaxSettings = settings .analyzeSyntaxSettings .toBuilder ();
365+ classifyTextSettings = settings .classifyTextSettings .toBuilder ();
348366 annotateTextSettings = settings .annotateTextSettings .toBuilder ();
349367
350368 unaryMethodSettingsBuilders =
@@ -353,6 +371,7 @@ private Builder(LanguageServiceSettings settings) {
353371 analyzeEntitiesSettings ,
354372 analyzeEntitySentimentSettings ,
355373 analyzeSyntaxSettings ,
374+ classifyTextSettings ,
356375 annotateTextSettings );
357376 }
358377
@@ -409,6 +428,12 @@ public Builder applyToAllUnaryMethods(
409428 return analyzeSyntaxSettings ;
410429 }
411430
431+ /** Returns the builder for the settings used for calls to classifyText. */
432+ public SimpleCallSettings .Builder <ClassifyTextRequest , ClassifyTextResponse >
433+ classifyTextSettings () {
434+ return classifyTextSettings ;
435+ }
436+
412437 /** Returns the builder for the settings used for calls to annotateText. */
413438 public SimpleCallSettings .Builder <AnnotateTextRequest , AnnotateTextResponse >
414439 annotateTextSettings () {
0 commit comments