public final class MapValue extends GeneratedMessageV3 implements MapValueOrBuilder
A map value.
Protobuf type google.firestore.v1.MapValue
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MapValueImplements
MapValueOrBuilderStatic Fields
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MapValue getDefaultInstance()
Type | Description |
MapValue |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MapValue.Builder newBuilder()
Type | Description |
MapValue.Builder |
newBuilder(MapValue prototype)
public static MapValue.Builder newBuilder(MapValue prototype)
Name | Description |
prototype | MapValue |
Type | Description |
MapValue.Builder |
parseDelimitedFrom(InputStream input)
public static MapValue parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MapValue |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MapValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MapValue parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MapValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MapValue parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MapValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MapValue parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MapValue |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MapValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MapValue parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MapValue |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MapValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MapValue parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MapValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MapValue |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MapValue> parser()
Type | Description |
Parser<MapValue> |
Methods
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;
Name | Description |
key | String |
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public MapValue getDefaultInstanceForType()
Type | Description |
MapValue |
getFields()
public Map<String,Value> getFields()
Use #getFieldsMap() instead.
Type | Description |
Map<String,Value> |
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;
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;
Type | Description |
Map<String,Value> |
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;
Name | Description |
key | String |
defaultValue | Value |
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;
Name | Description |
key | String |
Type | Description |
Value |
getParserForType()
public Parser<MapValue> getParserForType()
Type | Description |
Parser<MapValue> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public MapValue.Builder newBuilderForType()
Type | Description |
MapValue.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MapValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MapValue.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MapValue.Builder toBuilder()
Type | Description |
MapValue.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |