public final class MapFieldType extends java.lang.Object implements FieldType
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<AccessorTemplate> |
generatedAccessorTemplates()
Obtains the templates of the generated Java accessors for a field of this type.
|
com.squareup.javapoet.TypeName |
getTypeName()
Obtains the
TypeName for the field. |
AccessorTemplate |
primarySetterTemplate()
Returns "putAll" setter prefix,
used to initialize a map field using a protobuf message builder.
|
java.lang.String |
toString() |
public com.squareup.javapoet.TypeName getTypeName()
FieldType
TypeName
for the field.getTypeName
in interface FieldType
public AccessorTemplate primarySetterTemplate()
Call should be like `builder.putAllFieldName(Map
)`.
Obtains the setter prefix for the field.
primarySetterTemplate
in interface FieldType
public com.google.common.collect.ImmutableSet<AccessorTemplate> generatedAccessorTemplates()
FieldType
generatedAccessorTemplates
in interface FieldType
public java.lang.String toString()
toString
in class java.lang.Object