Class RgbColor.Builder (0.25.0)

public static final class RgbColor.Builder extends GeneratedMessage.Builder<RgbColor.Builder> implements RgbColorOrBuilder

Represents a color in RGB format.

Protobuf type google.shopping.merchant.productstudio.v1alpha.RgbColor

Implements

RgbColorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RgbColor build()
Returns
Type Description
RgbColor

buildPartial()

public RgbColor buildPartial()
Returns
Type Description
RgbColor

clear()

public RgbColor.Builder clear()
Returns
Type Description
RgbColor.Builder
Overrides

clearBlue()

public RgbColor.Builder clearBlue()

Optional. Values in [0, 255].

int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColor.Builder

This builder for chaining.

clearGreen()

public RgbColor.Builder clearGreen()

Optional. Values in [0, 255].

int32 green = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColor.Builder

This builder for chaining.

clearRed()

public RgbColor.Builder clearRed()

Optional. Values in [0, 255].

int32 red = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RgbColor.Builder

This builder for chaining.

getBlue()

public int getBlue()

Optional. Values in [0, 255].

int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The blue.

getDefaultInstanceForType()

public RgbColor getDefaultInstanceForType()
Returns
Type Description
RgbColor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGreen()

public int getGreen()

Optional. Values in [0, 255].

int32 green = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The green.

getRed()

public int getRed()

Optional. Values in [0, 255].

int32 red = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The red.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RgbColor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RgbColor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RgbColor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RgbColor.Builder
Overrides

mergeFrom(RgbColor other)

public RgbColor.Builder mergeFrom(RgbColor other)
Parameter
Name Description
other RgbColor
Returns
Type Description
RgbColor.Builder

setBlue(int value)

public RgbColor.Builder setBlue(int value)

Optional. Values in [0, 255].

int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The blue to set.

Returns
Type Description
RgbColor.Builder

This builder for chaining.

setGreen(int value)

public RgbColor.Builder setGreen(int value)

Optional. Values in [0, 255].

int32 green = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The green to set.

Returns
Type Description
RgbColor.Builder

This builder for chaining.

setRed(int value)

public RgbColor.Builder setRed(int value)

Optional. Values in [0, 255].

int32 red = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The red to set.

Returns
Type Description
RgbColor.Builder

This builder for chaining.