public final class FileInputSource
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FileInputSource() |
| Modifier and Type | Method and Description |
|---|---|
FileInputSource |
clone() |
byte[] |
decodeContent()
Required.
|
FileInputSource |
encodeContent(byte[] content)
Required.
|
String |
getContent()
Required.
|
String |
getDisplayName()
Required.
|
String |
getMimeType()
Required.
|
FileInputSource |
set(String fieldName,
Object value) |
FileInputSource |
setContent(String content)
Required.
|
FileInputSource |
setDisplayName(String displayName)
Required.
|
FileInputSource |
setMimeType(String mimeType)
Required.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getContent()
null for nonedecodeContent()public byte[] decodeContent()
null for nonegetContent()public FileInputSource setContent(String content)
content - content or null for none#encodeContent()public FileInputSource encodeContent(byte[] content)
The value is encoded Base64 or {@code null} for none.
public String getDisplayName()
null for nonepublic FileInputSource setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getMimeType()
null for nonepublic FileInputSource setMimeType(String mimeType)
mimeType - mimeType or null for nonepublic FileInputSource set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic FileInputSource clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.