Class ListValue.Builder (3.19.4)
Stay organized with collections
Save and categorize content based on your preferences.
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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > ListValue.BuilderImplements
ListValueOrBuilderInherited 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 |
|