public final class GoogleCloudVisionV1p1beta1ColorInfo
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.Flags
Constructor and Description |
---|
GoogleCloudVisionV1p1beta1ColorInfo() |
Modifier and Type | Method and Description |
---|---|
GoogleCloudVisionV1p1beta1ColorInfo |
clone() |
Color |
getColor()
RGB components of the color.
|
java.lang.Float |
getPixelFraction()
The fraction of pixels the color occupies in the image.
|
java.lang.Float |
getScore()
Image-specific score for this color.
|
GoogleCloudVisionV1p1beta1ColorInfo |
set(java.lang.String fieldName,
java.lang.Object value) |
GoogleCloudVisionV1p1beta1ColorInfo |
setColor(Color color)
RGB components of the color.
|
GoogleCloudVisionV1p1beta1ColorInfo |
setPixelFraction(java.lang.Float pixelFraction)
The fraction of pixels the color occupies in the image.
|
GoogleCloudVisionV1p1beta1ColorInfo |
setScore(java.lang.Float score)
Image-specific score for this color.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Color getColor()
null
for nonepublic GoogleCloudVisionV1p1beta1ColorInfo setColor(Color color)
color
- color or null
for nonepublic java.lang.Float getPixelFraction()
null
for nonepublic GoogleCloudVisionV1p1beta1ColorInfo setPixelFraction(java.lang.Float pixelFraction)
pixelFraction
- pixelFraction or null
for nonepublic java.lang.Float getScore()
null
for nonepublic GoogleCloudVisionV1p1beta1ColorInfo setScore(java.lang.Float score)
score
- score or null
for nonepublic GoogleCloudVisionV1p1beta1ColorInfo set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public GoogleCloudVisionV1p1beta1ColorInfo clone()
clone
in class com.google.api.client.json.GenericJson