Class ImageProperties.Builder (3.33.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
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
TypeDescription
ImageProperties.Builder
Overrides

getDefaultInstanceForType()

public ImageProperties getDefaultInstanceForType()
Returns
TypeDescription
ImageProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDominantColors()

public DominantColorsAnnotation getDominantColors()

If present, dominant colors completed successfully.

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

Returns
TypeDescription
DominantColorsAnnotation

The dominantColors.

getDominantColorsBuilder()

public DominantColorsAnnotation.Builder getDominantColorsBuilder()

If present, dominant colors completed successfully.

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

Returns
TypeDescription
DominantColorsAnnotation.Builder

getDominantColorsOrBuilder()

public DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder()

If present, dominant colors completed successfully.

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

Returns
TypeDescription
DominantColorsAnnotationOrBuilder

hasDominantColors()

public boolean hasDominantColors()

If present, dominant colors completed successfully.

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

Returns
TypeDescription
boolean

Whether the dominantColors field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDominantColorsAnnotation
Returns
TypeDescription
ImageProperties.Builder

mergeFrom(ImageProperties other)

public ImageProperties.Builder mergeFrom(ImageProperties other)
Parameter
NameDescription
otherImageProperties
Returns
TypeDescription
ImageProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageProperties.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageProperties.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDominantColorsAnnotation
Returns
TypeDescription
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
NameDescription
builderForValueDominantColorsAnnotation.Builder
Returns
TypeDescription
ImageProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ImageProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageProperties.Builder
Overrides