public final class

DynamicProto.FloatFormatOp.Builder

extends <any>

implements DynamicProto.FloatFormatOpOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.expression.proto.DynamicProto.FloatFormatOp.Builder

Overview

 Simple formatting for dynamic floats.
 
Protobuf type androidx.wear.protolayout.expression.proto.FloatFormatOp

Summary

Methods
public DynamicProto.FloatFormatOp.BuilderclearGroupingUsed()

 Digit grouping used.

public DynamicProto.FloatFormatOp.BuilderclearInput()

 The source of Float data to convert to a string.

public DynamicProto.FloatFormatOp.BuilderclearMaxFractionDigits()

 Maximum fraction digits.

public DynamicProto.FloatFormatOp.BuilderclearMinFractionDigits()

 Minimum fraction digits.

public DynamicProto.FloatFormatOp.BuilderclearMinIntegerDigits()

 Minimum integer digits.

public DynamicProto.FloatFormatOp.BuilderclearOptionalMaxFractionDigits()

public DynamicProto.FloatFormatOp.BuilderclearOptionalMinIntegerDigits()

public booleangetGroupingUsed()

 Digit grouping used.

public DynamicProto.DynamicFloatgetInput()

 The source of Float data to convert to a string.

public intgetMaxFractionDigits()

 Maximum fraction digits.

public intgetMinFractionDigits()

 Minimum fraction digits.

public intgetMinIntegerDigits()

 Minimum integer digits.

public DynamicProto.FloatFormatOp.OptionalMaxFractionDigitsCasegetOptionalMaxFractionDigitsCase()

public DynamicProto.FloatFormatOp.OptionalMinIntegerDigitsCasegetOptionalMinIntegerDigitsCase()

public booleanhasInput()

 The source of Float data to convert to a string.

public booleanhasMaxFractionDigits()

 Maximum fraction digits.

public booleanhasMinIntegerDigits()

 Minimum integer digits.

public DynamicProto.FloatFormatOp.BuildermergeInput(DynamicProto.DynamicFloat value)

 The source of Float data to convert to a string.

public DynamicProto.FloatFormatOp.BuildersetGroupingUsed(boolean value)

 Digit grouping used.

public DynamicProto.FloatFormatOp.BuildersetInput(DynamicProto.DynamicFloat.Builder builderForValue)

 The source of Float data to convert to a string.

public DynamicProto.FloatFormatOp.BuildersetInput(DynamicProto.DynamicFloat value)

 The source of Float data to convert to a string.

public DynamicProto.FloatFormatOp.BuildersetMaxFractionDigits(int value)

 Maximum fraction digits.

public DynamicProto.FloatFormatOp.BuildersetMinFractionDigits(int value)

 Minimum fraction digits.

public DynamicProto.FloatFormatOp.BuildersetMinIntegerDigits(int value)

 Minimum integer digits.

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

Methods

public DynamicProto.FloatFormatOp.OptionalMaxFractionDigitsCase getOptionalMaxFractionDigitsCase()

public DynamicProto.FloatFormatOp.Builder clearOptionalMaxFractionDigits()

public DynamicProto.FloatFormatOp.OptionalMinIntegerDigitsCase getOptionalMinIntegerDigitsCase()

public DynamicProto.FloatFormatOp.Builder clearOptionalMinIntegerDigits()

public boolean hasInput()

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

public DynamicProto.DynamicFloat getInput()

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The source of Float data to convert to a string.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

public boolean hasMaxFractionDigits()

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Returns:

Whether the maxFractionDigits field is set.

public int getMaxFractionDigits()

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Returns:

The maxFractionDigits.

public DynamicProto.FloatFormatOp.Builder setMaxFractionDigits(int value)

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Parameters:

value: The maxFractionDigits to set.

Returns:

This builder for chaining.

public DynamicProto.FloatFormatOp.Builder clearMaxFractionDigits()

 Maximum fraction digits. Rounding will be applied if maxFractionDigits is
 smaller than number of fraction digits. If not defined, defaults to
 three. minimumFractionDigits must be <= maximumFractionDigits. If the
 condition is not satisfied, then minimumFractionDigits will be used for
 both fields.
 
int32 max_fraction_digits = 2;

Returns:

This builder for chaining.

public int getMinFractionDigits()

 Minimum fraction digits. Zeros will be appended to the end to satisfy this
 constraint. If not defined, defaults to zero. minimumFractionDigits must be
 <= maximumFractionDigits. If the condition is not satisfied, then
 minimumFractionDigits will be used for both fields.
 
int32 min_fraction_digits = 3;

Returns:

The minFractionDigits.

public DynamicProto.FloatFormatOp.Builder setMinFractionDigits(int value)

 Minimum fraction digits. Zeros will be appended to the end to satisfy this
 constraint. If not defined, defaults to zero. minimumFractionDigits must be
 <= maximumFractionDigits. If the condition is not satisfied, then
 minimumFractionDigits will be used for both fields.
 
int32 min_fraction_digits = 3;

Parameters:

value: The minFractionDigits to set.

Returns:

This builder for chaining.

public DynamicProto.FloatFormatOp.Builder clearMinFractionDigits()

 Minimum fraction digits. Zeros will be appended to the end to satisfy this
 constraint. If not defined, defaults to zero. minimumFractionDigits must be
 <= maximumFractionDigits. If the condition is not satisfied, then
 minimumFractionDigits will be used for both fields.
 
int32 min_fraction_digits = 3;

Returns:

This builder for chaining.

public boolean hasMinIntegerDigits()

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Returns:

Whether the minIntegerDigits field is set.

public int getMinIntegerDigits()

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Returns:

The minIntegerDigits.

public DynamicProto.FloatFormatOp.Builder setMinIntegerDigits(int value)

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Parameters:

value: The minIntegerDigits to set.

Returns:

This builder for chaining.

public DynamicProto.FloatFormatOp.Builder clearMinIntegerDigits()

 Minimum integer digits. Sign and grouping characters are not considered
 when applying minIntegerDigits constraint. If not defined, defaults to
 one. For example, in the for locale en_US, applying minIntegerDigit=4
 to 12.34 would yield "0012.34".
 
int32 min_integer_digits = 4;

Returns:

This builder for chaining.

public boolean getGroupingUsed()

 Digit grouping used. Grouping size and grouping character depend on the
 current locale. If not defined, defaults to false.
 For example, in the for locale en_US, using grouping with 1234.56 would
 yield "1,234.56".
 
bool grouping_used = 5;

Returns:

The groupingUsed.

public DynamicProto.FloatFormatOp.Builder setGroupingUsed(boolean value)

 Digit grouping used. Grouping size and grouping character depend on the
 current locale. If not defined, defaults to false.
 For example, in the for locale en_US, using grouping with 1234.56 would
 yield "1,234.56".
 
bool grouping_used = 5;

Parameters:

value: The groupingUsed to set.

Returns:

This builder for chaining.

public DynamicProto.FloatFormatOp.Builder clearGroupingUsed()

 Digit grouping used. Grouping size and grouping character depend on the
 current locale. If not defined, defaults to false.
 For example, in the for locale en_US, using grouping with 1234.56 would
 yield "1,234.56".
 
bool grouping_used = 5;

Returns:

This builder for chaining.