public final class ProtoConverterFactory
extends retrofit2.Converter.Factory
This converter only applies for types which extend from MessageLite (or one of its
subclasses).
| Modifier and Type | Method and Description |
|---|---|
static ProtoConverterFactory |
create() |
static ProtoConverterFactory |
createWithRegistry(com.google.protobuf.ExtensionRegistryLite registry)
Create an instance which uses
registry when deserializing. |
retrofit2.Converter<?,okhttp3.RequestBody> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit) |
public static ProtoConverterFactory create()
public static ProtoConverterFactory createWithRegistry(@Nullable com.google.protobuf.ExtensionRegistryLite registry)
registry when deserializing.@Nullable
public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit)
responseBodyConverter in class retrofit2.Converter.Factory@Nullable
public retrofit2.Converter<?,okhttp3.RequestBody> requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit)
requestBodyConverter in class retrofit2.Converter.Factory