Class Color (3.6.3)

public final class Color extends GeneratedMessageV3 implements ColorOrBuilder

Represents a color in the RGB color space.

Protobuf type google.privacy.dlp.v2.Color

Implements

ColorOrBuilder

Static Fields

BLUE_FIELD_NUMBER

public static final int BLUE_FIELD_NUMBER
Field Value
TypeDescription
int

GREEN_FIELD_NUMBER

public static final int GREEN_FIELD_NUMBER
Field Value
TypeDescription
int

RED_FIELD_NUMBER

public static final int RED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Color getDefaultInstance()
Returns
TypeDescription
Color

getDescriptor()

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

newBuilder()

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

newBuilder(Color prototype)

public static Color.Builder newBuilder(Color prototype)
Parameter
NameDescription
prototypeColor
Returns
TypeDescription
Color.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBlue()

public float getBlue()

The amount of blue in the color as a value in the interval [0, 1].

float blue = 3;

Returns
TypeDescription
float

The blue.

getDefaultInstanceForType()

public Color getDefaultInstanceForType()
Returns
TypeDescription
Color

getGreen()

public float getGreen()

The amount of green in the color as a value in the interval [0, 1].

float green = 2;

Returns
TypeDescription
float

The green.

getParserForType()

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

getRed()

public float getRed()

The amount of red in the color as a value in the interval [0, 1].

float red = 1;

Returns
TypeDescription
float

The red.

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 Color.Builder newBuilderForType()
Returns
TypeDescription
Color.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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