Class ListValue.Builder (3.19.4)

public static final class ListValue.Builder extends GeneratedMessageLite.Builder<ListValue,ListValue.Builder> implements ListValueOrBuilder

ListValue is a wrapper around a repeated field of values. The JSON representation for ListValue is JSON array.

Protobuf type google.protobuf.ListValue

Implements

ListValueOrBuilder

Methods

addAllValues(Iterable<? extends Value> values)

public ListValue.Builder addAllValues(Iterable<? extends Value> values)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Value>
Returns
TypeDescription
ListValue.Builder

addValues(Value value)

public ListValue.Builder addValues(Value value)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
NameDescription
valueValue
Returns
TypeDescription
ListValue.Builder

addValues(Value.Builder builderForValue)

public ListValue.Builder addValues(Value.Builder builderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
ListValue.Builder

addValues(int index, Value value)

public ListValue.Builder addValues(int index, Value value)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
NameDescription
indexint
valueValue
Returns
TypeDescription
ListValue.Builder

addValues(int index, Value.Builder builderForValue)

public ListValue.Builder addValues(int index, Value.Builder builderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
ListValue.Builder

clearValues()

public ListValue.Builder clearValues()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
TypeDescription
ListValue.Builder

getValues(int index)

public Value getValues(int index)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Value

getValuesCount()

public int getValuesCount()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
TypeDescription
int

getValuesList()

public List<Value> getValuesList()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
TypeDescription
List<Value>

removeValues(int index)

public ListValue.Builder removeValues(int index)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListValue.Builder

setValues(int index, Value value)

public ListValue.Builder setValues(int index, Value value)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
NameDescription
indexint
valueValue
Returns
TypeDescription
ListValue.Builder

setValues(int index, Value.Builder builderForValue)

public ListValue.Builder setValues(int index, Value.Builder builderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
ListValue.Builder