Class FloatValue.Builder

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
TypeDescription
FloatValue.Builder

This builder for chaining.

getValue()

public float getValue()

The float value.

float value = 1;

Returns
TypeDescription
float

The value.

setValue(float value)

public FloatValue.Builder setValue(float value)

The float value.

float value = 1;

Parameter
NameDescription
valuefloat

The value to set.

Returns
TypeDescription
FloatValue.Builder

This builder for chaining.