public static class MapEntry.Builder<K,V> extends AbstractMessage.Builder<MapEntry.Builder<K,V>>
Builder to create MapEntry messages.
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > 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)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
build()
public MapEntry<K,V> build()
Returns | |
---|---|
Type | Description |
MapEntry<K,V> |
buildPartial()
public MapEntry<K,V> buildPartial()
Returns | |
---|---|
Type | Description |
MapEntry<K,V> |
clearField(Descriptors.FieldDescriptor field)
public MapEntry.Builder<K,V> clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
clearKey()
public MapEntry.Builder<K,V> clearKey()
Returns | |
---|---|
Type | Description |
Builder<K,V> |
clearValue()
public MapEntry.Builder<K,V> clearValue()
Returns | |
---|---|
Type | Description |
Builder<K,V> |
clone()
public MapEntry.Builder<K,V> clone()
Clones the Builder.
Returns | |
---|---|
Type | Description |
Builder<K,V> |
getAllFields()
public Map<Descriptors.FieldDescriptor,Object> getAllFields()
Returns | |
---|---|
Type | Description |
Map<FieldDescriptor,Object> |
getDefaultInstanceForType()
public MapEntry<K,V> getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MapEntry<K,V> |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptors.Descriptor |
getField(Descriptors.FieldDescriptor field)
public Object getField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
Object |
getKey()
public K getKey()
Returns | |
---|---|
Type | Description |
K |
getRepeatedField(Descriptors.FieldDescriptor field, int index)
public Object getRepeatedField(Descriptors.FieldDescriptor field, int index)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
index |
int |
Returns | |
---|---|
Type | Description |
Object |
getRepeatedFieldCount(Descriptors.FieldDescriptor field)
public int getRepeatedFieldCount(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
getValue()
public V getValue()
Returns | |
---|---|
Type | Description |
V |
hasField(Descriptors.FieldDescriptor field)
public boolean hasField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
boolean |
isInitialized()
public boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForField(Descriptors.FieldDescriptor field)
public Message.Builder newBuilderForField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
Message.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MapEntry.Builder<K,V> setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
setKey(K key)
public MapEntry.Builder<K,V> setKey(K key)
Parameter | |
---|---|
Name | Description |
key |
K |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MapEntry.Builder<K,V> setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
setUnknownFields(UnknownFieldSet unknownFields)
public MapEntry.Builder<K,V> setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Builder<K,V> |
setValue(V value)
public MapEntry.Builder<K,V> setValue(V value)
Parameter | |
---|---|
Name | Description |
value |
V |
Returns | |
---|---|
Type | Description |
Builder<K,V> |