public static final class MapValue.Builder extends GeneratedMessageV3.Builder<MapValue.Builder> implements MapValueOrBuilder
A map value.
Protobuf type google.firestore.v1.MapValue
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MapValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public MapValue buildPartial()
clear()
public MapValue.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MapValue.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFields()
public MapValue.Builder clearFields()
clearOneof(Descriptors.OneofDescriptor oneof)
public MapValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MapValue.Builder clone()
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 |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public MapValue getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFields()
public Map<String,Value> getFields()
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 |
---|
Type | Description |
int | |
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;
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;
Returns |
---|
Type | Description |
Value | |
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 |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
Value | |
getMutableFields()
public Map<String,Value> getMutableFields()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MapValue other)
public MapValue.Builder mergeFrom(MapValue other)
public MapValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MapValue.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MapValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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 |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public MapValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MapValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MapValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides