public final class XPSConfusionMatrix
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 |
|---|
XPSConfusionMatrix() |
| Modifier and Type | Method and Description |
|---|---|
XPSConfusionMatrix |
clone() |
List<String> |
getAnnotationSpecIdToken()
For the following three repeated fields, only one is intended to be set.
|
List<Integer> |
getCategory()
Category (mainly for segmentation).
|
List<XPSConfusionMatrixRow> |
getRow()
Rows in the confusion matrix.
|
List<Integer> |
getSentimentLabel()
Sentiment labels used in the confusion matrix.
|
XPSConfusionMatrix |
set(String fieldName,
Object value) |
XPSConfusionMatrix |
setAnnotationSpecIdToken(List<String> annotationSpecIdToken)
For the following three repeated fields, only one is intended to be set.
|
XPSConfusionMatrix |
setCategory(List<Integer> category)
Category (mainly for segmentation).
|
XPSConfusionMatrix |
setRow(List<XPSConfusionMatrixRow> row)
Rows in the confusion matrix.
|
XPSConfusionMatrix |
setSentimentLabel(List<Integer> sentimentLabel)
Sentiment labels used in the confusion matrix.
|
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 List<String> getAnnotationSpecIdToken()
null for nonepublic XPSConfusionMatrix setAnnotationSpecIdToken(List<String> annotationSpecIdToken)
annotationSpecIdToken - annotationSpecIdToken or null for nonepublic List<Integer> getCategory()
null for nonepublic XPSConfusionMatrix setCategory(List<Integer> category)
category - category or null for nonepublic List<XPSConfusionMatrixRow> getRow()
null for nonepublic XPSConfusionMatrix setRow(List<XPSConfusionMatrixRow> row)
row - row or null for nonepublic List<Integer> getSentimentLabel()
null for nonepublic XPSConfusionMatrix setSentimentLabel(List<Integer> sentimentLabel)
sentimentLabel - sentimentLabel or null for nonepublic XPSConfusionMatrix set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic XPSConfusionMatrix clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.