public final class XPSVisualization
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 |
---|
XPSVisualization() |
Modifier and Type | Method and Description |
---|---|
XPSVisualization |
clone() |
Float |
getClipPercentLowerbound()
Excludes attributions below the specified percentile, from the highlighted areas.
|
Float |
getClipPercentUpperbound()
Excludes attributions above the specified percentile from the highlighted areas.
|
String |
getColorMap()
The color scheme used for the highlighted areas.
|
String |
getOverlayType()
How the original image is displayed in the visualization.
|
String |
getPolarity()
Whether to only highlight pixels with positive contributions, negative or both.
|
String |
getType()
Type of the image visualization.
|
XPSVisualization |
set(String fieldName,
Object value) |
XPSVisualization |
setClipPercentLowerbound(Float clipPercentLowerbound)
Excludes attributions below the specified percentile, from the highlighted areas.
|
XPSVisualization |
setClipPercentUpperbound(Float clipPercentUpperbound)
Excludes attributions above the specified percentile from the highlighted areas.
|
XPSVisualization |
setColorMap(String colorMap)
The color scheme used for the highlighted areas.
|
XPSVisualization |
setOverlayType(String overlayType)
How the original image is displayed in the visualization.
|
XPSVisualization |
setPolarity(String polarity)
Whether to only highlight pixels with positive contributions, negative or both.
|
XPSVisualization |
setType(String type)
Type of the image visualization.
|
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 Float getClipPercentLowerbound()
null
for nonepublic XPSVisualization setClipPercentLowerbound(Float clipPercentLowerbound)
clipPercentLowerbound
- clipPercentLowerbound or null
for nonepublic Float getClipPercentUpperbound()
null
for nonepublic XPSVisualization setClipPercentUpperbound(Float clipPercentUpperbound)
clipPercentUpperbound
- clipPercentUpperbound or null
for nonepublic String getColorMap()
null
for nonepublic XPSVisualization setColorMap(String colorMap)
colorMap
- colorMap or null
for nonepublic String getOverlayType()
null
for nonepublic XPSVisualization setOverlayType(String overlayType)
overlayType
- overlayType or null
for nonepublic String getPolarity()
null
for nonepublic XPSVisualization setPolarity(String polarity)
polarity
- polarity or null
for nonepublic String getType()
null
for nonepublic XPSVisualization setType(String type)
type
- type or null
for nonepublic XPSVisualization set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public XPSVisualization clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.