public final class

DimensionProto.DpProp.Builder

extends <any>

implements DimensionProto.DpPropOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Methods
public DimensionProto.DpProp.BuilderclearAlign()

public DimensionProto.DpProp.BuilderclearDynamicValue()

 The dynamic value, in dp.

public DimensionProto.DpProp.BuilderclearHorizontalAlignmentForLayout()

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

public DimensionProto.DpProp.BuilderclearOptionalValue()

public DimensionProto.DpProp.BuilderclearOptionalValueForLayout()

public DimensionProto.DpProp.BuilderclearValue()

 The static value, in dp.

public DimensionProto.DpProp.BuilderclearValueForLayout()

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

public DimensionProto.DpProp.BuilderclearVerticalAlignmentForLayout()

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

public DimensionProto.DpProp.AlignCasegetAlignCase()

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 DimensionProto.DpProp.BuildermergeDynamicValue(DynamicProto.DynamicFloat value)

 The dynamic value, in dp.

public DimensionProto.DpProp.BuildersetDynamicValue(DynamicProto.DynamicFloat.Builder builderForValue)

 The dynamic value, in dp.

public DimensionProto.DpProp.BuildersetDynamicValue(DynamicProto.DynamicFloat value)

 The dynamic value, in dp.

public DimensionProto.DpProp.BuildersetHorizontalAlignmentForLayout(AlignmentProto.HorizontalAlignment value)

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

public DimensionProto.DpProp.BuildersetHorizontalAlignmentForLayoutValue(int value)

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

public DimensionProto.DpProp.BuildersetValue(float value)

 The static value, in dp.

public DimensionProto.DpProp.BuildersetValueForLayout(float value)

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

public DimensionProto.DpProp.BuildersetVerticalAlignmentForLayout(AlignmentProto.VerticalAlignment value)

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

public DimensionProto.DpProp.BuildersetVerticalAlignmentForLayoutValue(int value)

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

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

Methods

public DimensionProto.DpProp.OptionalValueCase getOptionalValueCase()

public DimensionProto.DpProp.Builder clearOptionalValue()

public DimensionProto.DpProp.OptionalValueForLayoutCase getOptionalValueForLayoutCase()

public DimensionProto.DpProp.Builder clearOptionalValueForLayout()

public DimensionProto.DpProp.AlignCase getAlignCase()

public DimensionProto.DpProp.Builder clearAlign()

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 DimensionProto.DpProp.Builder setValue(float value)

 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;

Parameters:

value: The value to set.

Returns:

This builder for chaining.

public DimensionProto.DpProp.Builder clearValue()

 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:

This builder for chaining.

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;

 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;

 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;

 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 DimensionProto.DpProp.Builder clearDynamicValue()

 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 DimensionProto.DpProp.Builder setValueForLayout(float value)

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

Parameters:

value: The valueForLayout to set.

Returns:

This builder for chaining.

public DimensionProto.DpProp.Builder clearValueForLayout()

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

Returns:

This builder for chaining.

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 DimensionProto.DpProp.Builder setVerticalAlignmentForLayoutValue(int value)

 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;

Parameters:

value: The enum numeric value on the wire for verticalAlignmentForLayout to set.

Returns:

This builder for chaining.

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 DimensionProto.DpProp.Builder setVerticalAlignmentForLayout(AlignmentProto.VerticalAlignment value)

 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;

Parameters:

value: The verticalAlignmentForLayout to set.

Returns:

This builder for chaining.

public DimensionProto.DpProp.Builder clearVerticalAlignmentForLayout()

 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:

This builder for chaining.

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 DimensionProto.DpProp.Builder setHorizontalAlignmentForLayoutValue(int value)

 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;

Parameters:

value: The enum numeric value on the wire for horizontalAlignmentForLayout to set.

Returns:

This builder for chaining.

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 DimensionProto.DpProp.Builder setHorizontalAlignmentForLayout(AlignmentProto.HorizontalAlignment value)

 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;

Parameters:

value: The horizontalAlignmentForLayout to set.

Returns:

This builder for chaining.

public DimensionProto.DpProp.Builder clearHorizontalAlignmentForLayout()

 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:

This builder for chaining.