Package com.google.cloud.vision.v1
Interface ColorInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ColorInfo,ColorInfo.Builder
@Generated
public interface ColorInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasColor
boolean hasColor()RGB components of the color.
.google.type.Color color = 1;- Returns:
- Whether the color field is set.
-
getColor
Color getColor()RGB components of the color.
.google.type.Color color = 1;- Returns:
- The color.
-
getColorOrBuilder
ColorOrBuilder getColorOrBuilder()RGB components of the color.
.google.type.Color color = 1; -
getScore
float getScore()Image-specific score for this color. Value in range [0, 1].
float score = 2;- Returns:
- The score.
-
getPixelFraction
float getPixelFraction()The fraction of pixels the color occupies in the image. Value in range [0, 1].
float pixel_fraction = 3;- Returns:
- The pixelFraction.
-