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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DominantColorsAnnotation.BuilderImplements
DominantColorsAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p1beta1.ColorInfo> |
Type | Description |
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;
Name | Description |
value | ColorInfo |
Type | Description |
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;
Name | Description |
builderForValue | ColorInfo.Builder |
Type | Description |
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;
Name | Description |
index | int |
value | ColorInfo |
Type | Description |
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;
Name | Description |