public final class

ColorProto.ColorProp.Builder

extends <any>

implements ColorProto.ColorPropOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ColorProto.ColorProp.Builder

Overview

 A property defining a color.
 
Protobuf type androidx.wear.protolayout.proto.ColorProp

Summary

Methods
public ColorProto.ColorProp.BuilderclearArgb()

 The static color value, in ARGB format.

public ColorProto.ColorProp.BuilderclearDynamicValue()

 The dynamic value.

public ColorProto.ColorProp.BuilderclearOptionalArgb()

public intgetArgb()

 The static color value, in ARGB format.

public DynamicProto.DynamicColorgetDynamicValue()

 The dynamic value.

public ColorProto.ColorProp.OptionalArgbCasegetOptionalArgbCase()

public booleanhasArgb()

 The static color value, in ARGB format.

public booleanhasDynamicValue()

 The dynamic value.

public ColorProto.ColorProp.BuildermergeDynamicValue(DynamicProto.DynamicColor value)

 The dynamic value.

public ColorProto.ColorProp.BuildersetArgb(int value)

 The static color value, in ARGB format.

public ColorProto.ColorProp.BuildersetDynamicValue(DynamicProto.DynamicColor.Builder builderForValue)

 The dynamic value.

public ColorProto.ColorProp.BuildersetDynamicValue(DynamicProto.DynamicColor value)

 The dynamic value.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public ColorProto.ColorProp.OptionalArgbCase getOptionalArgbCase()

public ColorProto.ColorProp.Builder clearOptionalArgb()

public boolean hasArgb()

 The static color value, in ARGB format. If a dynamic value is also set
 and the renderer supports dynamic values for the corresponding field,
 this static value will be ignored. If the static value is not specified,
 zero (equivalent to {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Returns:

Whether the argb field is set.

public int getArgb()

 The static color value, in ARGB format. If a dynamic value is also set
 and the renderer supports dynamic values for the corresponding field,
 this static value will be ignored. If the static value is not specified,
 zero (equivalent to {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Returns:

The argb.

public ColorProto.ColorProp.Builder setArgb(int value)

 The static color value, in ARGB format. If a dynamic value is also set
 and the renderer supports dynamic values for the corresponding field,
 this static value will be ignored. If the static value is not specified,
 zero (equivalent to {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Parameters:

value: The argb to set.

Returns:

This builder for chaining.

public ColorProto.ColorProp.Builder clearArgb()

 The static color value, in ARGB format. If a dynamic value is also set
 and the renderer supports dynamic values for the corresponding field,
 this static value will be ignored. If the static value is not specified,
 zero (equivalent to {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Returns:

This builder for chaining.

public boolean hasDynamicValue()

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

public DynamicProto.DynamicColor getDynamicValue()

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

public ColorProto.ColorProp.Builder setDynamicValue(DynamicProto.DynamicColor.Builder builderForValue)

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

public ColorProto.ColorProp.Builder clearDynamicValue()

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;