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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > ListValue.BuilderImplements
ListValueOrBuilderMethods
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.Value> |
Returns | |
---|---|
Type | Description |
ListValue.Builder |
addValues(Value value)
public ListValue.Builder addValues(Value value)
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)
public ListValue.Builder addValues(Value.Builder builderForValue)
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)
public ListValue.Builder addValues(int index, Value value)
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)
public ListValue.Builder addValues(int index, Value.Builder builderForValue)
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()
public ListValue.Builder clearValues()
Repeated field of dynamically typed values.
repeated .google.protobuf.Value values = 1;
Returns | |
---|---|
Type | Description |
ListValue.Builder |
getValues(int index)
public Value getValues(int index)
Repeated field of dynamically typed values.
repeated .google.protobuf.Value values = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Value |
getValuesCount()
public int getValuesCount()
Repeated field of dynamically typed values.
repeated .google.protobuf.Value values = 1;
Returns | |
---|---|
Type | Description |
int |
getValuesList()
public List<Value> getValuesList()
Repeated field of dynamically typed values.
repeated .google.protobuf.Value values = 1;
Returns | |
---|---|
Type | Description |
List<Value> |
removeValues(int index)
public ListValue.Builder removeValues(int index)
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)
public ListValue.Builder setValues(int index, Value value)
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)
public ListValue.Builder setValues(int index, Value.Builder builderForValue)
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 |