public final class GoogleCloudVisionV1p2beta1ColorInfo
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 Vision 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 |
|---|
GoogleCloudVisionV1p2beta1ColorInfo() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudVisionV1p2beta1ColorInfo |
clone() |
Color |
getColor()
RGB components of the color.
|
Float |
getPixelFraction()
The fraction of pixels the color occupies in the image.
|
Float |
getScore()
Image-specific score for this color.
|
GoogleCloudVisionV1p2beta1ColorInfo |
set(String fieldName,
Object value) |
GoogleCloudVisionV1p2beta1ColorInfo |
setColor(Color color)
RGB components of the color.
|
GoogleCloudVisionV1p2beta1ColorInfo |
setPixelFraction(Float pixelFraction)
The fraction of pixels the color occupies in the image.
|
GoogleCloudVisionV1p2beta1ColorInfo |
setScore(Float score)
Image-specific score for this color.
|
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 Color getColor()
null for nonepublic GoogleCloudVisionV1p2beta1ColorInfo setColor(Color color)
color - color or null for nonepublic Float getPixelFraction()
null for nonepublic GoogleCloudVisionV1p2beta1ColorInfo setPixelFraction(Float pixelFraction)
pixelFraction - pixelFraction or null for nonepublic Float getScore()
null for nonepublic GoogleCloudVisionV1p2beta1ColorInfo setScore(Float score)
score - score or null for nonepublic GoogleCloudVisionV1p2beta1ColorInfo set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudVisionV1p2beta1ColorInfo clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.