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