Class ImageProperties.Builder (3.50.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageProperties.Builder
Overrides

build()

public ImageProperties build()
Returns
Type Description
ImageProperties

buildPartial()

public ImageProperties buildPartial()
Returns
Type Description
ImageProperties

clear()

public ImageProperties.Builder clear()
Returns
Type Description
ImageProperties.Builder
Overrides

clearDominantColors()

public ImageProperties.Builder clearDominantColors()

If present, dominant colors completed successfully.

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

Returns
Type Description
ImageProperties.Builder

clearField(Descriptors.FieldDescriptor field)

public ImageProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImageProperties.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImageProperties.Builder
Overrides

clone()

public ImageProperties.Builder clone()
Returns
Type Description
ImageProperties.Builder
Overrides

getDefaultInstanceForType()

public ImageProperties getDefaultInstanceForType()
Returns
Type Description
ImageProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDominantColors()

public DominantColorsAnnotation getDominantColors()

If present, dominant colors completed successfully.

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

Returns
Type Description
DominantColorsAnnotation

The dominantColors.

getDominantColorsBuilder()

public DominantColorsAnnotation.Builder getDominantColorsBuilder()

If present, dominant colors completed successfully.

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

Returns
Type Description
DominantColorsAnnotation.Builder

getDominantColorsOrBuilder()

public DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder()

If present, dominant colors completed successfully.

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

Returns
Type Description
DominantColorsAnnotationOrBuilder

hasDominantColors()

public boolean hasDominantColors()

If present, dominant colors completed successfully.

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

Returns
Type Description
boolean

Whether the dominantColors field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDominantColors(DominantColorsAnnotation value)

public ImageProperties.Builder mergeDominantColors(DominantColorsAnnotation value)

If present, dominant colors completed successfully.

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

Parameter
Name Description
value DominantColorsAnnotation
Returns
Type Description
ImageProperties.Builder

mergeFrom(ImageProperties other)

public ImageProperties.Builder mergeFrom(ImageProperties other)
Parameter
Name Description
other ImageProperties
Returns
Type Description
ImageProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImageProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImageProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImageProperties.Builder
Overrides

setDominantColors(DominantColorsAnnotation value)

public ImageProperties.Builder setDominantColors(DominantColorsAnnotation value)

If present, dominant colors completed successfully.

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

Parameter
Name Description
value DominantColorsAnnotation
Returns
Type Description
ImageProperties.Builder

setDominantColors(DominantColorsAnnotation.Builder builderForValue)

public ImageProperties.Builder setDominantColors(DominantColorsAnnotation.Builder builderForValue)

If present, dominant colors completed successfully.

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

Parameter
Name Description
builderForValue DominantColorsAnnotation.Builder
Returns
Type Description
ImageProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImageProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageProperties.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImageProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImageProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImageProperties.Builder
Overrides