K - the key typeV - the value typepublic final class MapEntry<K,V>
extends com.google.protobuf.AbstractMessage
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MapEntry.Builder<K,V>
Builder to create
MapEntry messages. |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<com.google.protobuf.Descriptors.FieldDescriptor,Object> |
getAllFields() |
MapEntry<K,V> |
getDefaultInstanceForType() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Object |
getField(com.google.protobuf.Descriptors.FieldDescriptor field) |
K |
getKey()
Gets the key.
|
com.google.protobuf.Parser<MapEntry<K,V>> |
getParserForType() |
Object |
getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index) |
int |
getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor field) |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
V |
getValue()
Gets the value.
|
boolean |
hasField(com.google.protobuf.Descriptors.FieldDescriptor field) |
boolean |
isInitialized() |
MapEntry.Builder<K,V> |
newBuilderForType() |
static <K,V> MapEntry<K,V> |
newDefaultInstance(com.google.protobuf.Descriptors.Descriptor descriptor,
com.google.protobuf.WireFormat.FieldType keyType,
K defaultKey,
com.google.protobuf.WireFormat.FieldType valueType,
V defaultValue)
Create a default MapEntry instance.
|
MapEntry.Builder<K,V> |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
equals, findInitializationErrors, getInitializationErrorString, getOneofFieldDescriptor, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, hasOneof, newBuilderForType, toStringpublic static <K,V> MapEntry<K,V> newDefaultInstance(com.google.protobuf.Descriptors.Descriptor descriptor, com.google.protobuf.WireFormat.FieldType keyType, K defaultKey, com.google.protobuf.WireFormat.FieldType valueType, V defaultValue)
K - the key typeV - the value typedescriptor - the descriptorkeyType - the key typedefaultKey - the default keyvalueType - the value typedefaultValue - the default valuepublic K getKey()
public V getValue()
public int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.AbstractMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.AbstractMessageIOExceptionpublic boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.AbstractMessagepublic MapEntry.Builder<K,V> newBuilderForType()
public MapEntry.Builder<K,V> toBuilder()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public boolean hasField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Object getField(com.google.protobuf.Descriptors.FieldDescriptor field)
public int getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor field)
public Object getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index)
public com.google.protobuf.UnknownFieldSet getUnknownFields()
Copyright © 2022 Baidu, Inc.. All rights reserved.