Better javadoc
This commit is contained in:
parent
21d7f0681e
commit
b395da26b7
|
@ -56,7 +56,8 @@ import java.util.Set;
|
||||||
* You can specify which case representation is used for the proto fields when writing/reading the
|
* You can specify which case representation is used for the proto fields when writing/reading the
|
||||||
* JSON payload by calling {@link Builder#setFieldNameSerializationFormat(CaseFormat, CaseFormat)}.
|
* JSON payload by calling {@link Builder#setFieldNameSerializationFormat(CaseFormat, CaseFormat)}.
|
||||||
* <p>
|
* <p>
|
||||||
* An example of default serialization/deserialization using custom proto field names is show below:
|
* An example of default serialization/deserialization using custom proto field names is shown
|
||||||
|
* below:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* message MyMessage {
|
* message MyMessage {
|
||||||
|
@ -138,8 +139,7 @@ public class ProtoTypeAdapter
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* ...the adapter will serialize the field using '{@code appId}' instead of the default '
|
* ...the adapter will serialize the field using '{@code appId}' instead of the default '
|
||||||
* {@code clientAppId}'. This lets you customize the name serialization of any field of your
|
* {@code clientAppId}'. This lets you customize the name serialization of any proto field.
|
||||||
* proto.
|
|
||||||
*/
|
*/
|
||||||
public Builder addSerializedNameExtension(
|
public Builder addSerializedNameExtension(
|
||||||
Extension<FieldOptions, String> serializedNameExtension) {
|
Extension<FieldOptions, String> serializedNameExtension) {
|
||||||
|
@ -148,8 +148,8 @@ public class ProtoTypeAdapter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an enum proto annotation that, when set, overrides the default <b>enum</b> value
|
* Adds an enum value proto annotation that, when set, overrides the default <b>enum</b> value
|
||||||
* serialization/deerialization of this adapter. For example, if you add the '
|
* serialization/deserialization of this adapter. For example, if you add the '
|
||||||
* {@code serialized_value}' annotation and you define an enum in your proto like the one below:
|
* {@code serialized_value}' annotation and you define an enum in your proto like the one below:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user