public final class

DimensionProto.DpProp

extends <any>

implements DimensionProto.DpPropOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.DimensionProto.DpProp

Overview

 A type for linear dimensions, measured in dp.
 
Protobuf type androidx.wear.protolayout.proto.DpProp

Summary

Fields
public static final intDYNAMIC_VALUE_FIELD_NUMBER

public static final intHORIZONTAL_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

public static final intVALUE_FIELD_NUMBER

public static final intVALUE_FOR_LAYOUT_FIELD_NUMBER

public static final intVERTICAL_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

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

public DimensionProto.DpProp.AlignCasegetAlignCase()

public static DimensionProto.DpPropgetDefaultInstance()

public DynamicProto.DynamicFloatgetDynamicValue()

 The dynamic value, in dp.

public AlignmentProto.HorizontalAlignmentgetHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public intgetHorizontalAlignmentForLayoutValue()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public DimensionProto.DpProp.OptionalValueCasegetOptionalValueCase()

public DimensionProto.DpProp.OptionalValueForLayoutCasegetOptionalValueForLayoutCase()

public floatgetValue()

 The static value, in dp.

public floatgetValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.

public AlignmentProto.VerticalAlignmentgetVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

public intgetVerticalAlignmentForLayoutValue()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

public booleanhasDynamicValue()

 The dynamic value, in dp.

public booleanhasHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public booleanhasValue()

 The static value, in dp.

public booleanhasValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.

public booleanhasVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

public static DimensionProto.DpProp.BuildernewBuilder()

public static DimensionProto.DpProp.BuildernewBuilder(DimensionProto.DpProp prototype)

public static DimensionProto.DpPropparseDelimitedFrom(java.io.InputStream input)

public static DimensionProto.DpPropparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpPropparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpPropparseFrom(java.nio.ByteBuffer data)

public static DimensionProto.DpPropparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpPropparseFrom(com.google.protobuf.ByteString data)

public static DimensionProto.DpPropparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpPropparseFrom(com.google.protobuf.CodedInputStream input)

public static DimensionProto.DpPropparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpPropparseFrom(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 VALUE_FIELD_NUMBER

public static final int DYNAMIC_VALUE_FIELD_NUMBER

public static final int VALUE_FOR_LAYOUT_FIELD_NUMBER

public static final int VERTICAL_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

public static final int HORIZONTAL_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

Methods

public DimensionProto.DpProp.OptionalValueCase getOptionalValueCase()

public DimensionProto.DpProp.OptionalValueForLayoutCase getOptionalValueForLayoutCase()

public DimensionProto.DpProp.AlignCase getAlignCase()

public boolean hasValue()

 The static value, in dp. 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 will be used
 instead.
 
float value = 1;

Returns:

Whether the value field is set.

public float getValue()

 The static value, in dp. 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 will be used
 instead.
 
float value = 1;

Returns:

The value.

public boolean hasDynamicValue()

 The dynamic value, in dp. 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.DynamicFloat dynamic_value = 2;

public DynamicProto.DynamicFloat getDynamicValue()

 The dynamic value, in dp. 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.DynamicFloat dynamic_value = 2;

public boolean hasValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.
 
float value_for_layout = 3;

Returns:

Whether the valueForLayout field is set.

public float getValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.
 
float value_for_layout = 3;

Returns:

The valueForLayout.

public boolean hasVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

Whether the verticalAlignmentForLayout field is set.

public int getVerticalAlignmentForLayoutValue()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

The enum numeric value on the wire for verticalAlignmentForLayout.

public AlignmentProto.VerticalAlignment getVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

The verticalAlignmentForLayout.

public boolean hasHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

Whether the horizontalAlignmentForLayout field is set.

public int getHorizontalAlignmentForLayoutValue()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

The enum numeric value on the wire for horizontalAlignmentForLayout.

public AlignmentProto.HorizontalAlignment getHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

The horizontalAlignmentForLayout.

public static DimensionProto.DpProp parseFrom(java.nio.ByteBuffer data)

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

public static DimensionProto.DpProp parseFrom(com.google.protobuf.ByteString data)

public static DimensionProto.DpProp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static DimensionProto.DpProp parseDelimitedFrom(java.io.InputStream input)

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

public static DimensionProto.DpProp parseFrom(com.google.protobuf.CodedInputStream input)

public static DimensionProto.DpProp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.DpProp.Builder newBuilder()

public static DimensionProto.DpProp.Builder newBuilder(DimensionProto.DpProp prototype)

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

public static DimensionProto.DpProp getDefaultInstance()

public static <any> parser()