public final class

DynamicProto.FloatToInt32Op.Builder

extends <any>

implements DynamicProto.FloatToInt32OpOrBuilder

 java.lang.Object

↳<any>

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

Overview

 Converts a Float to an Int32, with a customizable rounding mode.
 
Protobuf type androidx.wear.protolayout.expression.proto.FloatToInt32Op

Summary

Methods
public DynamicProto.FloatToInt32Op.BuilderclearInput()

 The float to round.

public DynamicProto.FloatToInt32Op.BuilderclearRoundMode()

 The rounding mode to use.

public DynamicProto.DynamicFloatgetInput()

 The float to round.

public DynamicProto.FloatToInt32RoundModegetRoundMode()

 The rounding mode to use.

public intgetRoundModeValue()

 The rounding mode to use.

public booleanhasInput()

 The float to round.

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

 The float to round.

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

 The float to round.

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

 The float to round.

public DynamicProto.FloatToInt32Op.BuildersetRoundMode(DynamicProto.FloatToInt32RoundMode value)

 The rounding mode to use.

public DynamicProto.FloatToInt32Op.BuildersetRoundModeValue(int value)

 The rounding mode to use.

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

Methods

public boolean hasInput()

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

public DynamicProto.DynamicFloat getInput()

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

 The float to round.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat input = 1;

public int getRoundModeValue()

 The rounding mode to use. Defaults to ROUND_MODE_FLOOR if not specified.
 
.androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode round_mode = 2;

Returns:

The enum numeric value on the wire for roundMode.

public DynamicProto.FloatToInt32Op.Builder setRoundModeValue(int value)

 The rounding mode to use. Defaults to ROUND_MODE_FLOOR if not specified.
 
.androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode round_mode = 2;

Parameters:

value: The roundMode to set.

Returns:

This builder for chaining.

 The rounding mode to use. Defaults to ROUND_MODE_FLOOR if not specified.
 
.androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode round_mode = 2;

Returns:

The roundMode.

 The rounding mode to use. Defaults to ROUND_MODE_FLOOR if not specified.
 
.androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode round_mode = 2;

Parameters:

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

Returns:

This builder for chaining.

public DynamicProto.FloatToInt32Op.Builder clearRoundMode()

 The rounding mode to use. Defaults to ROUND_MODE_FLOOR if not specified.
 
.androidx.wear.protolayout.expression.proto.FloatToInt32RoundMode round_mode = 2;

Returns:

This builder for chaining.