public static final class Value.RgbColor.Builder extends com.google.protobuf.GeneratedMessage.Builder<Value.RgbColor.Builder> implements Value.RgbColorOrBuilder
A SassScript color value, represented as red, green, and blue channels. All Sass color values can be equivalently represented as `RgbColor`, `HslColor`, and `HwbColor` messages without loss of color information that can affect CSS rendering. As such, either endpoint may choose to send any color value as any one of these three messages.Protobuf type
sass.embedded_protocol.Value.RgbColor| Modifier and Type | Method and Description |
|---|---|
Value.RgbColor |
build() |
Value.RgbColor |
buildPartial() |
Value.RgbColor.Builder |
clear() |
Value.RgbColor.Builder |
clearAlpha()
The color's alpha channel.
|
Value.RgbColor.Builder |
clearBlue()
The color's blue channel.
|
Value.RgbColor.Builder |
clearGreen()
The color's green channel.
|
Value.RgbColor.Builder |
clearRed()
The color's red channel.
|
double |
getAlpha()
The color's alpha channel.
|
int |
getBlue()
The color's blue channel.
|
Value.RgbColor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getGreen()
The color's green channel.
|
int |
getRed()
The color's red channel.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Value.RgbColor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Value.RgbColor.Builder |
mergeFrom(com.google.protobuf.Message other) |
Value.RgbColor.Builder |
mergeFrom(Value.RgbColor other) |
Value.RgbColor.Builder |
setAlpha(double value)
The color's alpha channel.
|
Value.RgbColor.Builder |
setBlue(int value)
The color's blue channel.
|
Value.RgbColor.Builder |
setGreen(int value)
The color's green channel.
|
Value.RgbColor.Builder |
setRed(int value)
The color's red channel.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Value.RgbColor.Builder>public Value.RgbColor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Value.RgbColor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Value.RgbColor.Builder>public Value.RgbColor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Value.RgbColor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Value.RgbColor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Value.RgbColor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Value.RgbColor.Builder>public Value.RgbColor.Builder mergeFrom(Value.RgbColor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Value.RgbColor.Builder>public Value.RgbColor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Value.RgbColor.Builder>IOExceptionpublic int getRed()
The color's red channel. May not be above 255.
uint32 red = 1;getRed in interface Value.RgbColorOrBuilderpublic Value.RgbColor.Builder setRed(int value)
The color's red channel. May not be above 255.
uint32 red = 1;value - The red to set.public Value.RgbColor.Builder clearRed()
The color's red channel. May not be above 255.
uint32 red = 1;public int getGreen()
The color's green channel. May not be above 255.
uint32 green = 2;getGreen in interface Value.RgbColorOrBuilderpublic Value.RgbColor.Builder setGreen(int value)
The color's green channel. May not be above 255.
uint32 green = 2;value - The green to set.public Value.RgbColor.Builder clearGreen()
The color's green channel. May not be above 255.
uint32 green = 2;public int getBlue()
The color's blue channel. May not be above 255.
uint32 blue = 3;getBlue in interface Value.RgbColorOrBuilderpublic Value.RgbColor.Builder setBlue(int value)
The color's blue channel. May not be above 255.
uint32 blue = 3;value - The blue to set.public Value.RgbColor.Builder clearBlue()
The color's blue channel. May not be above 255.
uint32 blue = 3;public double getAlpha()
The color's alpha channel. Must be between 0 and 1, inclusive.
double alpha = 4;getAlpha in interface Value.RgbColorOrBuilderpublic Value.RgbColor.Builder setAlpha(double value)
The color's alpha channel. Must be between 0 and 1, inclusive.
double alpha = 4;value - The alpha to set.public Value.RgbColor.Builder clearAlpha()
The color's alpha channel. Must be between 0 and 1, inclusive.
double alpha = 4;