public final class

DynamicProto.ConditionalColorOp

extends <any>

implements DynamicProto.ConditionalColorOpOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.expression.proto.DynamicProto.ConditionalColorOp

Overview

 A conditional operator which yields a color depending on the boolean
 operand. This implements:
 ```color result = condition ? value_if_true : value_if_false```
 
Protobuf type androidx.wear.protolayout.expression.proto.ConditionalColorOp

Summary

Fields
public static final intCONDITION_FIELD_NUMBER

public static final intVALUE_IF_FALSE_FIELD_NUMBER

public static final intVALUE_IF_TRUE_FIELD_NUMBER

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

public DynamicProto.DynamicBoolgetCondition()

 The condition to use.

public static DynamicProto.ConditionalColorOpgetDefaultInstance()

public DynamicProto.DynamicColorgetValueIfFalse()

 The color to yield if condition is false.

public DynamicProto.DynamicColorgetValueIfTrue()

 The color to yield if condition is true.

public booleanhasCondition()

 The condition to use.

public booleanhasValueIfFalse()

 The color to yield if condition is false.

public booleanhasValueIfTrue()

 The color to yield if condition is true.

public static DynamicProto.ConditionalColorOp.BuildernewBuilder()

public static DynamicProto.ConditionalColorOp.BuildernewBuilder(DynamicProto.ConditionalColorOp prototype)

public static DynamicProto.ConditionalColorOpparseDelimitedFrom(java.io.InputStream input)

public static DynamicProto.ConditionalColorOpparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOpparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOpparseFrom(java.nio.ByteBuffer data)

public static DynamicProto.ConditionalColorOpparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOpparseFrom(com.google.protobuf.ByteString data)

public static DynamicProto.ConditionalColorOpparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOpparseFrom(com.google.protobuf.CodedInputStream input)

public static DynamicProto.ConditionalColorOpparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOpparseFrom(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 CONDITION_FIELD_NUMBER

public static final int VALUE_IF_TRUE_FIELD_NUMBER

public static final int VALUE_IF_FALSE_FIELD_NUMBER

Methods

public boolean hasCondition()

 The condition to use.
 
.androidx.wear.protolayout.expression.proto.DynamicBool condition = 1;

public DynamicProto.DynamicBool getCondition()

 The condition to use.
 
.androidx.wear.protolayout.expression.proto.DynamicBool condition = 1;

public boolean hasValueIfTrue()

 The color to yield if condition is true.
 
.androidx.wear.protolayout.expression.proto.DynamicColor value_if_true = 2;

public DynamicProto.DynamicColor getValueIfTrue()

 The color to yield if condition is true.
 
.androidx.wear.protolayout.expression.proto.DynamicColor value_if_true = 2;

public boolean hasValueIfFalse()

 The color to yield if condition is false.
 
.androidx.wear.protolayout.expression.proto.DynamicColor value_if_false = 3;

public DynamicProto.DynamicColor getValueIfFalse()

 The color to yield if condition is false.
 
.androidx.wear.protolayout.expression.proto.DynamicColor value_if_false = 3;

public static DynamicProto.ConditionalColorOp parseFrom(java.nio.ByteBuffer data)

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

public static DynamicProto.ConditionalColorOp parseFrom(com.google.protobuf.ByteString data)

public static DynamicProto.ConditionalColorOp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static DynamicProto.ConditionalColorOp parseDelimitedFrom(java.io.InputStream input)

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

public static DynamicProto.ConditionalColorOp parseFrom(com.google.protobuf.CodedInputStream input)

public static DynamicProto.ConditionalColorOp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DynamicProto.ConditionalColorOp.Builder newBuilder()

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

public static DynamicProto.ConditionalColorOp getDefaultInstance()

public static <any> parser()