Package 

Class InboundParcelablePolicy


  • @ExperimentalApi(value = https://github.com/grpc/grpc-java/issues/8022) 
    public final class InboundParcelablePolicy
    
                        

    Contains the policy for accepting inbound parcelable objects.

    Since parcelables are generally error prone and parsing a parcelable can have unspecified side-effects, their use is generally discouraged. Some use cases require them though (E.g. when dealing with some platform-defined objects), so this policy allows them to be supported.

    Parcelables can arrive as RPC messages, or as metadata values (in headers or footers). The default is to reject both cases, failing the RPC with a PERMISSION_DENED status code. This policy can be updated to accept one or both cases.