public static TtlAction fromProtobuf ( PTtlAction pTtlAction ) { if ( pTtlAction == null ) { return TtlAction . DELETE ; } switch ( pTtlAction ) { case DELETE : return TtlAction . DELETE ; case FREE : return TtlAction . FREE ; default : throw new IllegalStateException ( "Unknown protobuf ttl action: " + pTtlAction ) ; } }
Converts Protobuf type to Wire type .