Class ArrayValue.Builder (3.3.0)

public static final class ArrayValue.Builder extends GeneratedMessageV3.Builder<ArrayValue.Builder> implements ArrayValueOrBuilder

An array value.

Protobuf type google.firestore.v1.ArrayValue

Implements

ArrayValueOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllValues(Iterable<? extends Value> values)

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

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.firestore.v1.Value>
Returns
TypeDescription
ArrayValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ArrayValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ArrayValue.Builder
Overrides

addValues(Value value)

public ArrayValue.Builder addValues(Value value)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
valueValue
Returns
TypeDescription
ArrayValue.Builder

addValues(Value.Builder builderForValue)

public ArrayValue.Builder addValues(Value.Builder builderForValue)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
ArrayValue.Builder

addValues(int index, Value value)

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

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameters
NameDescription
indexint
valueValue
Returns
TypeDescription
ArrayValue.Builder

addValues(int index, Value.Builder builderForValue)

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

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
ArrayValue.Builder

addValuesBuilder()

public Value.Builder addValuesBuilder()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
Value.Builder

addValuesBuilder(int index)

public Value.Builder addValuesBuilder(int index)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Value.Builder

build()

public ArrayValue build()
Returns
TypeDescription
ArrayValue

buildPartial()

public ArrayValue buildPartial()
Returns
TypeDescription
ArrayValue

clear()

public ArrayValue.Builder clear()
Returns
TypeDescription
ArrayValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ArrayValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ArrayValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ArrayValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ArrayValue.Builder
Overrides

clearValues()

public ArrayValue.Builder clearValues()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
ArrayValue.Builder

clone()

public ArrayValue.Builder clone()
Returns
TypeDescription
ArrayValue.Builder
Overrides

getDefaultInstanceForType()

public ArrayValue getDefaultInstanceForType()
Returns
TypeDescription
ArrayValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public Value getValues(int index)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Value

getValuesBuilder(int index)

public Value.Builder getValuesBuilder(int index)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Value.Builder

getValuesBuilderList()

public List<Value.Builder> getValuesBuilderList()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
List<Builder>

getValuesCount()

public int getValuesCount()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
int

getValuesList()

public List<Value> getValuesList()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
List<Value>

getValuesOrBuilder(int index)

public ValueOrBuilder getValuesOrBuilder(int index)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueOrBuilder

getValuesOrBuilderList()

public List<? extends ValueOrBuilder> getValuesOrBuilderList()

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Returns
TypeDescription
List<? extends com.google.firestore.v1.ValueOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ArrayValue other)

public ArrayValue.Builder mergeFrom(ArrayValue other)
Parameter
NameDescription
otherArrayValue
Returns
TypeDescription
ArrayValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ArrayValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ArrayValue.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ArrayValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ArrayValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ArrayValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ArrayValue.Builder
Overrides

removeValues(int index)

public ArrayValue.Builder removeValues(int index)

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ArrayValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ArrayValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ArrayValue.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ArrayValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ArrayValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ArrayValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ArrayValue.Builder
Overrides

setValues(int index, Value value)

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

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameters
NameDescription
indexint
valueValue
Returns
TypeDescription
ArrayValue.Builder

setValues(int index, Value.Builder builderForValue)

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

Values in the array.

repeated .google.firestore.v1.Value values = 1;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
ArrayValue.Builder