Class ListValue.Builder (3.19.4)

publicstaticfinalclass ListValue.BuilderextendsGeneratedMessageLite.Builder<ListValue,ListValue.Builder>implementsListValueOrBuilder

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

Inherited Members

Methods

addAllValues(Iterable<? extends Value> values)

publicListValue.BuilderaddAllValues(Iterable<?extendsValue>values)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.Value>
Returns
Type Description
ListValue.Builder

addValues(Value value)

publicListValue.BuilderaddValues(Valuevalue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
Name Description
value Value
Returns
Type Description
ListValue.Builder

addValues(Value.Builder builderForValue)

publicListValue.BuilderaddValues(Value.BuilderbuilderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ListValue.Builder

addValues(int index, Value value)

publicListValue.BuilderaddValues(intindex,Valuevalue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
Name Description
index int
value Value
Returns
Type Description
ListValue.Builder

addValues(int index, Value.Builder builderForValue)

publicListValue.BuilderaddValues(intindex,Value.BuilderbuilderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
ListValue.Builder

clearValues()

publicListValue.BuilderclearValues()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
Type Description
ListValue.Builder

getValues(int index)

publicValuegetValues(intindex)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
Name Description
index int
Returns
Type Description
Value

getValuesCount()

publicintgetValuesCount()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
Type Description
int

getValuesList()

publicList<Value>getValuesList()

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Returns
Type Description
List<Value>

removeValues(int index)

publicListValue.BuilderremoveValues(intindex)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameter
Name Description
index int
Returns
Type Description
ListValue.Builder

setValues(int index, Value value)

publicListValue.BuildersetValues(intindex,Valuevalue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
Name Description
index int
value Value
Returns
Type Description
ListValue.Builder

setValues(int index, Value.Builder builderForValue)

publicListValue.BuildersetValues(intindex,Value.BuilderbuilderForValue)

Repeated field of dynamically typed values.

repeated .google.protobuf.Value values = 1;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
ListValue.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.