public final class XPSExampleSet
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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
XPSExampleSet() |
Modifier and Type | Method and Description |
---|---|
XPSExampleSet |
clone() |
XPSFileSpec |
getFileSpec()
File spec of the examples or input sources.
|
Long |
getFingerprint()
Fingerprint of the example set.
|
Long |
getNumExamples()
Number of examples.
|
Long |
getNumInputSources()
Number of input sources.
|
XPSExampleSet |
set(String fieldName,
Object value) |
XPSExampleSet |
setFileSpec(XPSFileSpec fileSpec)
File spec of the examples or input sources.
|
XPSExampleSet |
setFingerprint(Long fingerprint)
Fingerprint of the example set.
|
XPSExampleSet |
setNumExamples(Long numExamples)
Number of examples.
|
XPSExampleSet |
setNumInputSources(Long numInputSources)
Number of input sources.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public XPSFileSpec getFileSpec()
null
for nonepublic XPSExampleSet setFileSpec(XPSFileSpec fileSpec)
fileSpec
- fileSpec or null
for nonepublic Long getFingerprint()
null
for nonepublic XPSExampleSet setFingerprint(Long fingerprint)
fingerprint
- fingerprint or null
for nonepublic Long getNumExamples()
null
for nonepublic XPSExampleSet setNumExamples(Long numExamples)
numExamples
- numExamples or null
for nonepublic Long getNumInputSources()
null
for nonepublic XPSExampleSet setNumInputSources(Long numInputSources)
numInputSources
- numInputSources or null
for nonepublic XPSExampleSet set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public XPSExampleSet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.