public final class Document
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 Natural Language 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 |
|---|
Document() |
| Modifier and Type | Method and Description |
|---|---|
Document |
clone() |
String |
getContent()
The content of the input in string format.
|
String |
getGcsContentUri()
The Google Cloud Storage URI where the file content is located.
|
String |
getLanguageCode()
Optional.
|
String |
getType()
Required.
|
Document |
set(String fieldName,
Object value) |
Document |
setContent(String content)
The content of the input in string format.
|
Document |
setGcsContentUri(String gcsContentUri)
The Google Cloud Storage URI where the file content is located.
|
Document |
setLanguageCode(String languageCode)
Optional.
|
Document |
setType(String type)
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 nonepublic Document setContent(String content)
content - content or null for nonepublic String getGcsContentUri()
null for nonepublic Document setGcsContentUri(String gcsContentUri)
gcsContentUri - gcsContentUri or null for nonepublic String getLanguageCode()
null for nonepublic Document setLanguageCode(String languageCode)
languageCode - languageCode or null for nonepublic String getType()
null for nonepublic Document setType(String type)
type - type or null for nonepublic Document set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Document clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.