public final class

DynamicProto.FloatFormatOp

extends <any>

implements DynamicProto.FloatFormatOpOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Fields
public static final intGROUPING_USED_FIELD_NUMBER

public static final intINPUT_FIELD_NUMBER

public static final intMAX_FRACTION_DIGITS_FIELD_NUMBER

public static final intMIN_FRACTION_DIGITS_FIELD_NUMBER

public static final intMIN_INTEGER_DIGITS_FIELD_NUMBER

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

public static DynamicProto.FloatFormatOpgetDefaultInstance()

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 static DynamicProto.FloatFormatOp.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static DynamicProto.FloatFormatOpparseFrom(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 INPUT_FIELD_NUMBER

public static final int MAX_FRACTION_DIGITS_FIELD_NUMBER

public static final int MIN_FRACTION_DIGITS_FIELD_NUMBER

public static final int MIN_INTEGER_DIGITS_FIELD_NUMBER

public static final int GROUPING_USED_FIELD_NUMBER

Methods

public DynamicProto.FloatFormatOp.OptionalMaxFractionDigitsCase getOptionalMaxFractionDigitsCase()

public DynamicProto.FloatFormatOp.OptionalMinIntegerDigitsCase getOptionalMinIntegerDigitsCase()

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;

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 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 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 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 static DynamicProto.FloatFormatOp parseFrom(java.nio.ByteBuffer data)

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

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

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

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

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

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

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

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

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

public static DynamicProto.FloatFormatOp.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.FloatFormatOp getDefaultInstance()

public static <any> parser()