public final class ProtoConverterFactory extends 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. |
Converter<?,okhttp3.RequestBody> |
requestBodyConverter(Type type,
Annotation[] parameterAnnotations,
Annotation[] methodAnnotations,
Retrofit retrofit) |
Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(Type type,
Annotation[] annotations,
Retrofit retrofit) |
getParameterUpperBound, getRawType, stringConverterpublic static ProtoConverterFactory create()
public static ProtoConverterFactory createWithRegistry(@Nullable com.google.protobuf.ExtensionRegistryLite registry)
registry when deserializing.@Nullable public Converter<okhttp3.ResponseBody,?> responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit)
responseBodyConverter in class Converter.Factory@Nullable public Converter<?,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, Retrofit retrofit)
requestBodyConverter in class Converter.FactoryCopyright © 2019 Square, Inc.. All rights reserved.