public static class MapEntryLite.Builder<K,V> extends AbstractMessageLite.Builder<MapEntryLite.Builder<K,V>>
MapEntryLite
messages.Modifier and Type | Method and Description |
---|---|
MapEntryLite<K,V> |
build()
Constructs the message based on the state of the Builder.
|
MapEntryLite<K,V> |
buildPartial()
Like
MessageLite.Builder.build() , but does not throw an exception if the message
is missing required fields. |
MapEntryLite.Builder<K,V> |
clear()
Resets all fields to their default values.
|
MapEntryLite.Builder<K,V> |
clearKey() |
MapEntryLite.Builder<K,V> |
clearValue() |
MapEntryLite.Builder<K,V> |
clone()
Clones the Builder.
|
MessageLite |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
K |
getKey() |
V |
getValue() |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
MapEntryLite.Builder<K,V> |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry)
Like
MessageLite.Builder.mergeFrom(CodedInputStream) , but also
parses extensions. |
MapEntryLite.Builder<K,V> |
setKey(K key) |
MapEntryLite.Builder<K,V> |
setValue(V value) |
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
public K getKey()
public V getValue()
public MapEntryLite.Builder<K,V> setKey(K key)
public MapEntryLite.Builder<K,V> setValue(V value)
public MapEntryLite.Builder<K,V> clearKey()
public MapEntryLite.Builder<K,V> clearValue()
public MapEntryLite.Builder<K,V> clear()
MessageLite.Builder
public MapEntryLite<K,V> build()
MessageLite.Builder
public MapEntryLite<K,V> buildPartial()
MessageLite.Builder
MessageLite.Builder.build()
, but does not throw an exception if the message
is missing required fields. Instead, a partial message is returned.
Subsequent changes to the Builder will not affect the returned message.public MessageLite getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated message classes in that
this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific
class. They return the same thing.public boolean isInitialized()
MessageLiteOrBuilder
public MapEntryLite.Builder<K,V> clone()
MessageLite.Builder
clone
in interface MessageLite.Builder
clone
in class AbstractMessageLite.Builder<MapEntryLite.Builder<K,V>>
Object.clone()
public MapEntryLite.Builder<K,V> mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
MessageLite.Builder
MessageLite.Builder.mergeFrom(CodedInputStream)
, but also
parses extensions. The extensions that you want to be able to parse
must be registered in extensionRegistry
. Extensions not in
the registry will be treated as unknown fields.mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessageLite.Builder<MapEntryLite.Builder<K,V>>
java.io.IOException