Class Overview
Converters from ERROR(/Any) proto messages to their unwrapped target types.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
Public Methods
public
static
T
anyToType
(Any any)
Performs an ERROR(/Any) proto message to type T conversion.
| Parameters |
any |
Any: type to unwrap into its target type T representation |
| Returns |
T |
unwrapped target type T
|
public
static
T
byteStringToType
(ByteString byteString)
public
static
ByteString
parcelableToByteString
(Parcelable parcelable)
public
static
Any
typeToAny
(T type)
Performs a type T to ERROR(/Any) proto message conversion.
| Parameters |
type |
T: target type to wrap into its ERROR(/Any) representation |
| Returns |
Any |
ERROR(/Any) proto message which contains the wrapped proto representation of T
|
public
static
ByteString
typeToByteString
(Object object)