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.v1.ImageProperties
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ImageProperties build()
Returns
buildPartial()
public ImageProperties buildPartial()
Returns
clear()
public ImageProperties.Builder clear()
Returns
Overrides
clearDominantColors()
public ImageProperties.Builder clearDominantColors()
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ImageProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ImageProperties.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ImageProperties getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDominantColors()
public DominantColorsAnnotation getDominantColors()
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Returns
getDominantColorsBuilder()
public DominantColorsAnnotation.Builder getDominantColorsBuilder()
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Returns
getDominantColorsOrBuilder()
public DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder()
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Returns
hasDominantColors()
public boolean hasDominantColors()
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Returns
Type | Description |
boolean | Whether the dominantColors field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDominantColors(DominantColorsAnnotation value)
public ImageProperties.Builder mergeDominantColors(DominantColorsAnnotation value)
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Parameter
Returns
mergeFrom(ImageProperties other)
public ImageProperties.Builder mergeFrom(ImageProperties other)
Parameter
Returns
public ImageProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImageProperties.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDominantColors(DominantColorsAnnotation value)
public ImageProperties.Builder setDominantColors(DominantColorsAnnotation value)
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Parameter
Returns
setDominantColors(DominantColorsAnnotation.Builder builderForValue)
public ImageProperties.Builder setDominantColors(DominantColorsAnnotation.Builder builderForValue)
If present, dominant colors completed successfully.
.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ImageProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides