public static class MapEntry.Builder<K,V> extends AbstractMessage.Builder<MapEntry.Builder<K,V>>
Type Parameters |
---|
Name | Description |
K | |
V | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MapEntry.Builder<K,V> addRepeatedField(Descriptors.FieldDescriptor field, Object value)
build()
public MapEntry<K,V> build()
buildPartial()
public MapEntry<K,V> buildPartial()
clearField(Descriptors.FieldDescriptor field)
public MapEntry.Builder<K,V> clearField(Descriptors.FieldDescriptor field)
clearKey()
public MapEntry.Builder<K,V> clearKey()
clearValue()
public MapEntry.Builder<K,V> clearValue()
clone()
public MapEntry.Builder<K,V> clone()
Overrides
getAllFields()
public Map<Descriptors.FieldDescriptor,Object> getAllFields()
getDefaultInstanceForType()
public MapEntry<K,V> getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
getField(Descriptors.FieldDescriptor field)
public Object getField(Descriptors.FieldDescriptor field)
getKey()
getRepeatedField(Descriptors.FieldDescriptor field, int index)
public Object getRepeatedField(Descriptors.FieldDescriptor field, int index)
getRepeatedFieldCount(Descriptors.FieldDescriptor field)
public int getRepeatedFieldCount(Descriptors.FieldDescriptor field)
Returns |
---|
Type | Description |
int | |
getUnknownFields()
public UnknownFieldSet getUnknownFields()
getValue()
hasField(Descriptors.FieldDescriptor field)
public boolean hasField(Descriptors.FieldDescriptor field)
isInitialized()
public boolean isInitialized()
newBuilderForField(Descriptors.FieldDescriptor field)
public Message.Builder newBuilderForField(Descriptors.FieldDescriptor field)
setField(Descriptors.FieldDescriptor field, Object value)
public MapEntry.Builder<K,V> setField(Descriptors.FieldDescriptor field, Object value)
setKey(K key)
public MapEntry.Builder<K,V> setKey(K key)
Parameter |
---|
Name | Description |
key | K
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MapEntry.Builder<K,V> setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setUnknownFields(UnknownFieldSet unknownFields)
public MapEntry.Builder<K,V> setUnknownFields(UnknownFieldSet unknownFields)
setValue(V value)
public MapEntry.Builder<K,V> setValue(V value)
Parameter |
---|
Name | Description |
value | V
|