Class DominantColorsAnnotation (2.1.1)

public final class DominantColorsAnnotation extends GeneratedMessageV3 implements DominantColorsAnnotationOrBuilder

Set of dominant colors and their corresponding scores.

Protobuf type google.cloud.vision.v1.DominantColorsAnnotation

Static Fields

COLORS_FIELD_NUMBER

public static final int COLORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DominantColorsAnnotation getDefaultInstance()
Returns
TypeDescription
DominantColorsAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DominantColorsAnnotation.Builder newBuilder()
Returns
TypeDescription
DominantColorsAnnotation.Builder

newBuilder(DominantColorsAnnotation prototype)

public static DominantColorsAnnotation.Builder newBuilder(DominantColorsAnnotation prototype)
Parameter
NameDescription
prototypeDominantColorsAnnotation
Returns
TypeDescription
DominantColorsAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static DominantColorsAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DominantColorsAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DominantColorsAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DominantColorsAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DominantColorsAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DominantColorsAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DominantColorsAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DominantColorsAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DominantColorsAnnotation> parser()
Returns
TypeDescription
Parser<DominantColorsAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getColors(int index)

public ColorInfo getColors(int index)

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1.ColorInfo colors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ColorInfo

getColorsCount()

public int getColorsCount()

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1.ColorInfo colors = 1;

Returns
TypeDescription
int

getColorsList()

public List<ColorInfo> getColorsList()

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1.ColorInfo colors = 1;

Returns
TypeDescription
List<ColorInfo>

getColorsOrBuilder(int index)

public ColorInfoOrBuilder getColorsOrBuilder(int index)

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1.ColorInfo colors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ColorInfoOrBuilder

getColorsOrBuilderList()

public List<? extends ColorInfoOrBuilder> getColorsOrBuilderList()

RGB color values with their score and pixel fraction.

repeated .google.cloud.vision.v1.ColorInfo colors = 1;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.ColorInfoOrBuilder>

getDefaultInstanceForType()

public DominantColorsAnnotation getDefaultInstanceForType()
Returns
TypeDescription
DominantColorsAnnotation

getParserForType()

public Parser<DominantColorsAnnotation> getParserForType()
Returns
TypeDescription
Parser<DominantColorsAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DominantColorsAnnotation.Builder newBuilderForType()
Returns
TypeDescription
DominantColorsAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DominantColorsAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DominantColorsAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DominantColorsAnnotation.Builder toBuilder()
Returns
TypeDescription
DominantColorsAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException