Class DominantColorsAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
- com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder
-
- All Implemented Interfaces:
DominantColorsAnnotationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DominantColorsAnnotation
public static final class DominantColorsAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder> implements DominantColorsAnnotationOrBuilder
Set of dominant colors and their corresponding scores.
Protobuf typegoogle.cloud.vision.v1p4beta1.DominantColorsAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DominantColorsAnnotation.Builder
addAllColors(Iterable<? extends ColorInfo> values)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
addColors(int index, ColorInfo value)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
addColors(int index, ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
addColors(ColorInfo value)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
addColors(ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.ColorInfo.Builder
addColorsBuilder()
RGB color values with their score and pixel fraction.ColorInfo.Builder
addColorsBuilder(int index)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DominantColorsAnnotation
build()
DominantColorsAnnotation
buildPartial()
DominantColorsAnnotation.Builder
clear()
DominantColorsAnnotation.Builder
clearColors()
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DominantColorsAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DominantColorsAnnotation.Builder
clone()
ColorInfo
getColors(int index)
RGB color values with their score and pixel fraction.ColorInfo.Builder
getColorsBuilder(int index)
RGB color values with their score and pixel fraction.List<ColorInfo.Builder>
getColorsBuilderList()
RGB color values with their score and pixel fraction.int
getColorsCount()
RGB color values with their score and pixel fraction.List<ColorInfo>
getColorsList()
RGB color values with their score and pixel fraction.ColorInfoOrBuilder
getColorsOrBuilder(int index)
RGB color values with their score and pixel fraction.List<? extends ColorInfoOrBuilder>
getColorsOrBuilderList()
RGB color values with their score and pixel fraction.DominantColorsAnnotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DominantColorsAnnotation.Builder
mergeFrom(DominantColorsAnnotation other)
DominantColorsAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DominantColorsAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
DominantColorsAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DominantColorsAnnotation.Builder
removeColors(int index)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
setColors(int index, ColorInfo value)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
setColors(int index, ColorInfo.Builder builderForValue)
RGB color values with their score and pixel fraction.DominantColorsAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DominantColorsAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DominantColorsAnnotation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
clear
public DominantColorsAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
getDefaultInstanceForType
public DominantColorsAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DominantColorsAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DominantColorsAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DominantColorsAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
setField
public DominantColorsAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
clearField
public DominantColorsAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
clearOneof
public DominantColorsAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
setRepeatedField
public DominantColorsAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
addRepeatedField
public DominantColorsAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
mergeFrom
public DominantColorsAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DominantColorsAnnotation.Builder>
-
mergeFrom
public DominantColorsAnnotation.Builder mergeFrom(DominantColorsAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
mergeFrom
public DominantColorsAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DominantColorsAnnotation.Builder>
- Throws:
IOException
-
getColorsList
public List<ColorInfo> getColorsList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
- Specified by:
getColorsList
in interfaceDominantColorsAnnotationOrBuilder
-
getColorsCount
public int getColorsCount()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
- Specified by:
getColorsCount
in interfaceDominantColorsAnnotationOrBuilder
-
getColors
public ColorInfo getColors(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
- Specified by:
getColors
in interfaceDominantColorsAnnotationOrBuilder
-
setColors
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
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;
-
addColors
public DominantColorsAnnotation.Builder addColors(ColorInfo value)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
addColors
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
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
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;
-
addAllColors
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;
-
clearColors
public DominantColorsAnnotation.Builder clearColors()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
removeColors
public DominantColorsAnnotation.Builder removeColors(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
getColorsBuilder
public ColorInfo.Builder getColorsBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
getColorsOrBuilder
public ColorInfoOrBuilder getColorsOrBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
- Specified by:
getColorsOrBuilder
in interfaceDominantColorsAnnotationOrBuilder
-
getColorsOrBuilderList
public List<? extends ColorInfoOrBuilder> getColorsOrBuilderList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
- Specified by:
getColorsOrBuilderList
in interfaceDominantColorsAnnotationOrBuilder
-
addColorsBuilder
public ColorInfo.Builder addColorsBuilder()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
addColorsBuilder
public ColorInfo.Builder addColorsBuilder(int index)
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
getColorsBuilderList
public List<ColorInfo.Builder> getColorsBuilderList()
RGB color values with their score and pixel fraction.
repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1;
-
setUnknownFields
public final DominantColorsAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
mergeUnknownFields
public final DominantColorsAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DominantColorsAnnotation.Builder>
-
-