Class DominantColorsAnnotation.Builder

public static final class DominantColorsAnnotation.Builder extends GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder> implements DominantColorsAnnotationOrBuilder

Set of dominant colors and their corresponding scores.

Protobuf type google.cloud.vision.v1p4beta1.DominantColorsAnnotation

Methods

addAllColors(Iterable<? extends ColorInfo> values)

public DominantColorsAnnotation.Builder addAllColors(Iterable<? extends ColorInfo> values)

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.ColorInfo>
Returns
TypeDescription
DominantColorsAnnotation.Builder

addColors(ColorInfo value)

public DominantColorsAnnotation.Builder addColors(ColorInfo value)

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;

Parameter
NameDescription
valueColorInfo
Returns