target.apidocs.com.google.api.services.translate.v3beta1.model.TranslateTextGlossaryConfig.html Maven / Gradle / Ivy
TranslateTextGlossaryConfig (Cloud Translation API v3beta1-rev20230210-2.0.0)
com.google.api.services.translate.v3beta1.model
Class TranslateTextGlossaryConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.translate.v3beta1.model.TranslateTextGlossaryConfig
-
public final class TranslateTextGlossaryConfig
extends com.google.api.client.json.GenericJson
Configures which glossary should be used for a specific target language, and defines options for
applying that glossary.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Translation API. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
TranslateTextGlossaryConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TranslateTextGlossaryConfig
clone()
String
getGlossary()
Required.
Boolean
getIgnoreCase()
Optional.
TranslateTextGlossaryConfig
set(String fieldName,
Object value)
TranslateTextGlossaryConfig
setGlossary(String glossary)
Required.
TranslateTextGlossaryConfig
setIgnoreCase(Boolean ignoreCase)
Optional.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getGlossary
public String getGlossary()
Required. Specifies the glossary used for this translation. Use this format:
projects/locations/glossaries
- Returns:
- value or
null
for none
-
setGlossary
public TranslateTextGlossaryConfig setGlossary(String glossary)
Required. Specifies the glossary used for this translation. Use this format:
projects/locations/glossaries
- Parameters:
glossary
- glossary or null
for none
-
getIgnoreCase
public Boolean getIgnoreCase()
Optional. Indicates match is case-insensitive. Default value is false if missing.
- Returns:
- value or
null
for none
-
setIgnoreCase
public TranslateTextGlossaryConfig setIgnoreCase(Boolean ignoreCase)
Optional. Indicates match is case-insensitive. Default value is false if missing.
- Parameters:
ignoreCase
- ignoreCase or null
for none
-
set
public TranslateTextGlossaryConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TranslateTextGlossaryConfig clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.