public static final class DominantColorsAnnotation.Builder extends GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder> implements DominantColorsAnnotationOrBuilder
Set of dominant colors and their corresponding scores.
Protobuf type google.cloud.vision.v1p4beta1.DominantColorsAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addAllColors(Iterable<? extends ColorInfo> values)
public DominantColorsAnnotation.Builder addAllColors(Iterable<? extends ColorInfo> values)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p4beta1.ColorInfo>
|
addColors(ColorInfo value)
public DominantColorsAnnotation.Builder addColors(ColorInfo value)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
addColors(ColorInfo.Builder builderForValue)
public DominantColorsAnnotation.Builder addColors(ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
addColors(int index, ColorInfo value)
public DominantColorsAnnotation.Builder addColors(int index, ColorInfo value)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
addColors(int index, ColorInfo.Builder builderForValue)
public DominantColorsAnnotation.Builder addColors(int index, ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
addColorsBuilder()
public ColorInfo.Builder addColorsBuilder()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
addColorsBuilder(int index)
public ColorInfo.Builder addColorsBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DominantColorsAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DominantColorsAnnotation build()
buildPartial()
public DominantColorsAnnotation buildPartial()
clear()
public DominantColorsAnnotation.Builder clear()
Overrides
clearColors()
public DominantColorsAnnotation.Builder clearColors()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
clearField(Descriptors.FieldDescriptor field)
public DominantColorsAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DominantColorsAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public DominantColorsAnnotation.Builder clone()
Overrides
getColors(int index)
public ColorInfo getColors(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
index | int
|
getColorsBuilder(int index)
public ColorInfo.Builder getColorsBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
index | int
|
getColorsBuilderList()
public List<ColorInfo.Builder> getColorsBuilderList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
getColorsCount()
public int getColorsCount()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Returns |
---|
Type | Description |
int | |
getColorsList()
public List<ColorInfo> getColorsList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
getColorsOrBuilder(int index)
public ColorInfoOrBuilder getColorsOrBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
index | int
|
getColorsOrBuilderList()
public List<? extends ColorInfoOrBuilder> getColorsOrBuilderList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> | |
getDefaultInstanceForType()
public DominantColorsAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DominantColorsAnnotation other)
public DominantColorsAnnotation.Builder mergeFrom(DominantColorsAnnotation other)
public DominantColorsAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DominantColorsAnnotation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DominantColorsAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeColors(int index)
public DominantColorsAnnotation.Builder removeColors(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
Parameter |
---|
Name | Description |
index | int
|
setColors(int index, ColorInfo value)
public DominantColorsAnnotation.Builder setColors(int index, ColorInfo value)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
setColors(int index, ColorInfo.Builder builderForValue)
public DominantColorsAnnotation.Builder setColors(int index, ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public DominantColorsAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DominantColorsAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DominantColorsAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides