Class BoolValue.Builder (3.19.4)

public static final class BoolValue.Builder extends GeneratedMessageLite.Builder<BoolValue,BoolValue.Builder> implements BoolValueOrBuilder

Wrapper message for bool. The JSON representation for BoolValue is JSON true and false.

Protobuf type google.protobuf.BoolValue

Methods

clearValue()

public BoolValue.Builder clearValue()

The bool value.

bool value = 1;

Returns
TypeDescription
BoolValue.Builder

This builder for chaining.

getValue()

public boolean getValue()

The bool value.

bool value = 1;

Returns
TypeDescription
boolean

The value.

setValue(boolean value)

public BoolValue.Builder setValue(boolean value)

The bool value.

bool value = 1;

Parameter
NameDescription
valueboolean

The value to set.

Returns
TypeDescription
BoolValue.Builder

This builder for chaining.