public static final class MapValue.Builder extends GeneratedMessageV3.Builder<MapValue.Builder> implements MapValueOrBuilder
A map value.
Protobuf type google.firestore.v1.MapValue
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MapValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public MapValue buildPartial()
Returns
clear()
public MapValue.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MapValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFields()
public MapValue.Builder clearFields()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MapValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MapValue.Builder clone()
Returns
Overrides
containsFields(String key)
public boolean containsFields(String key)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameter
Returns
getDefaultInstanceForType()
public MapValue getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFields()
public Map<String,Value> getFields()
Returns
getFieldsCount()
public int getFieldsCount()
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Returns
getFieldsMap()
public Map<String,Value> getFieldsMap()
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Returns
getFieldsOrDefault(String key, Value defaultValue)
public Value getFieldsOrDefault(String key, Value defaultValue)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameters
Returns
getFieldsOrThrow(String key)
public Value getFieldsOrThrow(String key)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameter
Returns
getMutableFields()
public Map<String,Value> getMutableFields()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MapValue other)
public MapValue.Builder mergeFrom(MapValue other)
Parameter
Returns
public MapValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MapValue.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MapValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllFields(Map<String,Value> values)
public MapValue.Builder putAllFields(Map<String,Value> values)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameter
Returns
putFields(String key, Value value)
public MapValue.Builder putFields(String key, Value value)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameters
Returns
removeFields(String key)
public MapValue.Builder removeFields(String key)
The map's fields.
The map keys represent field names. Field names matching the regular
expression .*
are reserved. Reserved field names are forbidden except
in certain documented contexts. The map keys, represented as UTF-8, must
not exceed 1,500 bytes and cannot be empty.
map<string, .google.firestore.v1.Value> fields = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MapValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MapValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MapValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides