ProtoAnyExtension
class ProtoAnyExtension
Description: Extention method for ProtoAnyExtension
method unpackMessage
fun <T : Message?> Any.unpackMessage(clazz: Class<T>): T?
Description: Change Message to protobuf any
Input parameters: clazz: class object
Output parameter: None。
Related parameters: None。
method test
fun <T, D : GeneratedMessageV3> IAutelConverter<T, D>.test(): Boolean
Description: Check whether the values corresponding to the pack and unpack fields of the created object have changed
Input parameters: None。
Output parameter: true or false
Related parameters: None。
method packMessage
fun <T : Message> packMessage(message: T): Any
Description: Pack the data bean to proto buffer Any data
Input parameters: message : T type
Output parameter: Any data for proto buffer
Related parameters: None。
method unpackMessage
fun <T : Message?> unpackMessage(data: Any, clazz: Class<T>): T?
Description: Unpack the proto buffer Any data to data bean
Input parameters: data: the proto buffer Any data clazz: class type for data bean
Output parameter: data bean
Related parameters: None。