Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class MapEntry.Builder<K,V> (3.19.4)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
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 )
Returns
Type
Description
Builder <K ,V >
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 )
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 ()
Returns
Type
Description
Builder <K ,V >
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 )
Returns
Type
Description
Object
getKey()
Returns
Type
Description
K
getRepeatedField(Descriptors.FieldDescriptor field, int index)
public Object getRepeatedField ( Descriptors . FieldDescriptor field , int index )
Returns
Type
Description
Object
getRepeatedFieldCount(Descriptors.FieldDescriptor field)
public int getRepeatedFieldCount ( Descriptors . FieldDescriptor field )
Returns
Type
Description
int
getUnknownFields()
public UnknownFieldSet getUnknownFields ()
getValue()
Returns
Type
Description
V
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 )
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 )
Returns
Type
Description
Builder <K ,V >
setUnknownFields(UnknownFieldSet unknownFields)
public MapEntry . Builder<K , V > setUnknownFields ( UnknownFieldSet unknownFields )
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 >
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-26 UTC."],[],[]]