@Retention(value=RUNTIME) @Target(value=FIELD) public @interface ProtobufAttribute
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends IProtobufConverter> |
converter
This should be set to a class that implements the IProtoBufConverter.
|
String |
pojoGetter
This attribute defines what the getter method name
should be to retrieve the data from the POJO object.
|
String |
pojoSetter
This attribute defines what the target setter method
should be used on the POJO object.
|
String |
protobufGetter
This attribute defines what the getter method name
should be to retrieve the data from the
ProtobufEntity object. |
String |
protobufSetter
This attribute defines what the target method should be
used on the
ProtobufEntity. |
boolean |
required
This attribute should be used to indicate that this
interface should consider this field to be required
with ProtoBuf class.
|
public abstract boolean required
public abstract String protobufSetter
ProtobufEntity. This will default to
"set" + upperCaseFirst(fieldName).public abstract String protobufGetter
ProtobufEntity object.
This defaults to "get" + upperCaseFirst(fieldName).public abstract String pojoGetter
public abstract String pojoSetter
public abstract Class<? extends IProtobufConverter> converter
NullConverter.Copyright © 2014. All rights reserved.