public final class

ColorProto.ColorProp

extends <any>

implements ColorProto.ColorPropOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Fields
public static final intARGB_FIELD_NUMBER

public static final intDYNAMIC_VALUE_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public intgetArgb()

 The static color value, in ARGB format.

public static ColorProto.ColorPropgetDefaultInstance()

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 static ColorProto.ColorProp.BuildernewBuilder()

public static ColorProto.ColorProp.BuildernewBuilder(ColorProto.ColorProp prototype)

public static ColorProto.ColorPropparseDelimitedFrom(java.io.InputStream input)

public static ColorProto.ColorPropparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorPropparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorPropparseFrom(java.nio.ByteBuffer data)

public static ColorProto.ColorPropparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorPropparseFrom(com.google.protobuf.ByteString data)

public static ColorProto.ColorPropparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorPropparseFrom(com.google.protobuf.CodedInputStream input)

public static ColorProto.ColorPropparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorPropparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int ARGB_FIELD_NUMBER

public static final int DYNAMIC_VALUE_FIELD_NUMBER

Methods

public ColorProto.ColorProp.OptionalArgbCase getOptionalArgbCase()

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 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;

public static ColorProto.ColorProp parseFrom(java.nio.ByteBuffer data)

public static ColorProto.ColorProp parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp parseFrom(com.google.protobuf.ByteString data)

public static ColorProto.ColorProp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp parseDelimitedFrom(java.io.InputStream input)

public static ColorProto.ColorProp parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp parseFrom(com.google.protobuf.CodedInputStream input)

public static ColorProto.ColorProp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorProp.Builder newBuilder()

public static ColorProto.ColorProp.Builder newBuilder(ColorProto.ColorProp prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static ColorProto.ColorProp getDefaultInstance()

public static <any> parser()