Class ImageProperties.Builder (2.1.2)

public static final class ImageProperties.Builder extends GeneratedMessageV3.Builder<ImageProperties.Builder> implements ImagePropertiesOrBuilder

Stores image properties, such as dominant colors.

Protobuf type google.cloud.vision.v1p2beta1.ImageProperties

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageProperties build()
Returns
TypeDescription
ImageProperties

buildPartial()

public ImageProperties buildPartial()
Returns
TypeDescription
ImageProperties

clear()

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

clearDominantColors()

public ImageProperties.Builder clearDominantColors()

If present, dominant colors completed successfully.

.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1;

Returns
TypeDescription
ImageProperties.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageProperties.Builder
Overrides

clone()

public ImageProperties.Builder clone()
Returns