Class DominantColorsAnnotation.Builder (2.1.4)

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.v1p1beta1.DominantColorsAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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.v1p1beta1.ColorInfo colors = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p1beta1.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.v1p1beta1.ColorInfo colors = 1;

Parameter
NameDescription
valueColorInfo
Returns
TypeDescription
DominantColorsAnnotation.Builder

addColors(ColorInfo.Builder builderForValue)

public DominantColorsAnnotation.Builder addColors(ColorInfo.Builder builderForValue)

RGB color values with their score and pixel fraction.

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

Parameter
NameDescription
builderForValueColorInfo.Builder
Returns
TypeDescription
DominantColorsAnnotation.Builder

addColors(int index, ColorInfo value)

public DominantColorsAnnotation.Builder addColors(int index, ColorInfo value)

RGB color values with their score and pixel fraction.

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

Parameters
NameDescription
indexint
valueColorInfo
Returns
TypeDescription
DominantColorsAnnotation.Builder

addColors(int index, ColorInfo.Builder builderForValue)

public DominantColorsAnnotation.Builder addColors(int index, ColorInfo.Builder builderForValue)

RGB color values with their score and pixel fraction.

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

Parameters
NameDescription