类 MapEntry<K,V>

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.baidu.bjf.remoting.protobuf.MapEntry<K,V>
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder

public final class MapEntry<K,V> extends com.google.protobuf.AbstractMessage
Implements MapEntry messages.

In reflection API, map fields will be treated as repeated message fields and each map entry is accessed as a message. This MapEntry class is used to represent these map entry messages in reflection API.

Protobuf internal. Users shouldn't use this class.

  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    Builder to create MapEntry messages.

    从类继承的嵌套类/接口 com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • 字段概要

    从类继承的字段 com.google.protobuf.AbstractMessage

    memoizedSize

    从类继承的字段 com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • 方法概要

    修饰符和类型
    方法
    说明
    Map<com.google.protobuf.Descriptors.FieldDescriptor,Object>
     
     
    com.google.protobuf.Descriptors.Descriptor
     
    getField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
     
    com.google.protobuf.Parser<MapEntry<K,V>>
     
    getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index)
     
    int
    getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    int
     
    com.google.protobuf.UnknownFieldSet
     
     
    boolean
    hasField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    boolean
     
     
    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.
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    从类继承的方法 com.google.protobuf.AbstractMessage

    equals, findInitializationErrors, getInitializationErrorString, getOneofFieldDescriptor, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, hasOneof, newBuilderForType, toString

    从类继承的方法 com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo
  • 方法详细资料

    • newDefaultInstance

      public 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. A default MapEntry instance should be created only once for each map entry message type. Generated code should store the created default instance and use it later to create new MapEntry messages of the same type.
    • getKey

      public K getKey()
    • getValue

      public V getValue()
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.AbstractMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.AbstractMessage
      抛出:
      IOException
    • isInitialized

      public boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.AbstractMessage
    • getParserForType

      public com.google.protobuf.Parser<MapEntry<K,V>> getParserForType()
    • newBuilderForType

      public MapEntry.Builder<K,V> newBuilderForType()
    • toBuilder

      public MapEntry.Builder<K,V> toBuilder()
    • getDefaultInstanceForType

      public MapEntry<K,V> getDefaultInstanceForType()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    • getAllFields

      public Map<com.google.protobuf.Descriptors.FieldDescriptor,Object> getAllFields()
    • hasField

      public boolean hasField(com.google.protobuf.Descriptors.FieldDescriptor field)
    • getField

      public Object getField(com.google.protobuf.Descriptors.FieldDescriptor field)
    • getRepeatedFieldCount

      public int getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor field)
    • getRepeatedField

      public Object getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index)
    • getUnknownFields

      public com.google.protobuf.UnknownFieldSet getUnknownFields()