public final class

DynamicProto.ConditionalDurationOp

extends <any>

implements DynamicProto.ConditionalDurationOpOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

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.ConditionalDurationOpgetDefaultInstance()

public DynamicProto.DynamicDurationgetValueIfFalse()

 The duration to yield if condition is false.

public DynamicProto.DynamicDurationgetValueIfTrue()

 The duration to yield if condition is true.

public booleanhasCondition()

 The condition to use.

public booleanhasValueIfFalse()

 The duration to yield if condition is false.

public booleanhasValueIfTrue()

 The duration to yield if condition is true.

public static DynamicProto.ConditionalDurationOp.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static DynamicProto.ConditionalDurationOpparseFrom(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 duration to yield if condition is true.
 
.androidx.wear.protolayout.expression.proto.DynamicDuration value_if_true = 2;

public DynamicProto.DynamicDuration getValueIfTrue()

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

public boolean hasValueIfFalse()

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

public DynamicProto.DynamicDuration getValueIfFalse()

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

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

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

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

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

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

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

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

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

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

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

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

public static DynamicProto.ConditionalDurationOp getDefaultInstance()

public static <any> parser()