RemoteDescriptor

public final class RemoteDescriptor
extends Object

java.lang.Object
   ↳ androidx.test.espresso.remote.RemoteDescriptor


Descriptor object containing all the required information to serialize and deserialize a type to and from a proto. Needs to be registered with an RemoteDescriptorRegistry.

Summary

Nested classes

class RemoteDescriptor.Builder

Builder for RemoteDescriptor  

Public methods

boolean equals(Object o)
List<FieldDescriptor> getInstanceFieldDescriptorList()
Class<?> getInstanceType()
String getInstanceTypeName()
Class<?> getProtoBuilderClass()
Parser<?> getProtoParser()
Class<?> getProtoType()
Class[]<?> getRemoteConstrTypes()
Class<?> getRemoteType()
int hashCode()

Inherited methods

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getInstanceFieldDescriptorList

public List<FieldDescriptor> getInstanceFieldDescriptorList ()

Returns
List<FieldDescriptor> list of field properties which identify target field, in declared order.

getInstanceType

public Class<?> getInstanceType ()

Returns
Class<?> the instance type

getInstanceTypeName

public String getInstanceTypeName ()

Returns
String the class name for instance type

getProtoBuilderClass

public Class<?> getProtoBuilderClass ()

Returns
Class<?> the proto message builder class for proto message type

getProtoParser

public Parser<?> getProtoParser ()

Returns
Parser<?> the proto parser to parse the proto message type

getProtoType

public Class<?> getProtoType ()

Returns
Class<?> the proto message type

getRemoteConstrTypes

public Class[]<?> getRemoteConstrTypes ()

Returns
Class[]<?> list of types which identify the constructor's formal parameter types, in declared order.

getRemoteType

public Class<?> getRemoteType ()

Returns
Class<?> the remote message type

hashCode

public int hashCode ()

Returns
int