Class ColorInfo.Builder (2.1.4)

public static final class ColorInfo.Builder extends GeneratedMessageV3.Builder<ColorInfo.Builder> implements ColorInfoOrBuilder

Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.

Protobuf type google.cloud.vision.v1p3beta1.ColorInfo

Implements

ColorInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ColorInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ColorInfo.Builder
Overrides

build()

public ColorInfo build()
Returns
TypeDescription
ColorInfo

buildPartial()

public ColorInfo buildPartial()
Returns
TypeDescription
ColorInfo

clear()

public ColorInfo.Builder clear()
Returns
TypeDescription
ColorInfo.Builder
Overrides

clearColor()

public ColorInfo.Builder clearColor()

RGB components of the color.

.google.type.Color color = 1;

Returns
TypeDescription
ColorInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public ColorInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ColorInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ColorInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneof