Class FloatValue.Builder (3.19.4)

public static final class FloatValue.Builder extends GeneratedMessageLite.Builder<FloatValue,FloatValue.Builder> implements FloatValueOrBuilder

Wrapper message for float. The JSON representation for FloatValue is JSON number.

Protobuf type google.protobuf.FloatValue

Implements

FloatValueOrBuilder

Methods

clearValue()

public FloatValue.Builder clearValue()

The float value.

float value = 1;

Returns
Type Description
FloatValue.Builder

This builder for chaining.

getValue()

public float getValue()

The float value.

float value = 1;

Returns
Type Description
float

The value.

setValue(float value)

public FloatValue.Builder setValue(float value)

The float value.

float value = 1;

Parameter
Name Description
value float

The value to set.

Returns
Type Description
FloatValue.Builder

This builder for chaining.